@redocly/mock-server 0.3.13 → 0.3.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/bin.js +28 -28
  2. package/package.json +2 -2
package/dist/bin.js CHANGED
@@ -1,33 +1,33 @@
1
- var Fq=Object.create;var vl=Object.defineProperty;var Bq=Object.getOwnPropertyDescriptor;var Uq=Object.getOwnPropertyNames;var Vq=Object.getPrototypeOf,zq=Object.prototype.hasOwnProperty;var x=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),jd=(e,t)=>{for(var r in t)vl(e,r,{get:t[r],enumerable:!0})},V1=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Uq(t))!zq.call(e,i)&&i!==r&&vl(e,i,{get:()=>t[i],enumerable:!(n=Bq(t,i))||n.enumerable});return e};var Ee=(e,t,r)=>(r=e!=null?Fq(Vq(e)):{},V1(t||!e||!e.__esModule?vl(r,"default",{value:e,enumerable:!0}):r,e)),Hq=e=>V1(vl({},"__esModule",{value:!0}),e);var Bd=x((Dd,Fd)=>{(function(e,t){typeof require=="function"&&typeof Dd=="object"&&typeof Fd=="object"?Fd.exports=t():typeof define=="function"&&define.amd?define(function(){return t()}):e.pluralize=t()})(Dd,function(){var e=[],t=[],r={},n={},i={};function o(d){return typeof d=="string"?new RegExp("^"+d+"$","i"):d}function s(d,f){return d===f?f:d===d.toLowerCase()?f.toLowerCase():d===d.toUpperCase()?f.toUpperCase():d[0]===d[0].toUpperCase()?f.charAt(0).toUpperCase()+f.substr(1).toLowerCase():f.toLowerCase()}function a(d,f){return d.replace(/\$(\d{1,2})/g,function(h,y){return f[y]||""})}function c(d,f){return d.replace(f[0],function(h,y){var b=a(f[1],arguments);return s(h===""?d[y-1]:h,b)})}function l(d,f,h){if(!d.length||r.hasOwnProperty(d))return f;for(var y=h.length;y--;){var b=h[y];if(b[0].test(f))return c(f,b)}return f}function u(d,f,h){return function(y){var b=y.toLowerCase();return f.hasOwnProperty(b)?s(y,b):d.hasOwnProperty(b)?s(y,d[b]):l(b,y,h)}}function p(d,f,h,y){return function(b){var g=b.toLowerCase();return f.hasOwnProperty(g)?!0:d.hasOwnProperty(g)?!1:l(g,g,h)===g}}function m(d,f,h){var y=f===1?m.singular(d):m.plural(d);return(h?f+" ":"")+y}return m.plural=u(i,n,e),m.isPlural=p(i,n,e),m.singular=u(n,i,t),m.isSingular=p(n,i,t),m.addPluralRule=function(d,f){e.push([o(d),f])},m.addSingularRule=function(d,f){t.push([o(d),f])},m.addUncountableRule=function(d){if(typeof d=="string"){r[d.toLowerCase()]=!0;return}m.addPluralRule(d,"$0"),m.addSingularRule(d,"$0")},m.addIrregularRule=function(d,f){f=f.toLowerCase(),d=d.toLowerCase(),i[d]=f,n[f]=d},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(d){return m.addIrregularRule(d[0],d[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(d){return m.addPluralRule(d[0],d[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(d){return m.addSingularRule(d[0],d[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(m.addUncountableRule),m})});var ma=x((Tne,W1)=>{"use strict";var H1="[^\\\\/]",Kq="(?=.)",K1="[^/]",Vd="(?:\\/|$)",G1="(?:^|\\/)",zd=`\\.{1,2}${Vd}`,Gq="(?!\\.)",Yq=`(?!${G1}${zd})`,Wq=`(?!\\.{0,1}${Vd})`,Xq=`(?!${zd})`,Jq="[^.\\/]",Qq=`${K1}*?`,Zq="/",Y1={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:Kq,QMARK:K1,END_ANCHOR:Vd,DOTS_SLASH:zd,NO_DOT:Gq,NO_DOTS:Yq,NO_DOT_SLASH:Wq,NO_DOTS_SLASH:Xq,QMARK_NO_DOT:Jq,STAR:Qq,START_ANCHOR:G1,SEP:Zq},ej={...Y1,SLASH_LITERAL:"[\\\\/]",QMARK:H1,STAR:`${H1}*?`,DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},tj={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};W1.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:tj,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?ej:Y1}}});var ha=x(Yt=>{"use strict";var{REGEX_BACKSLASH:rj,REGEX_REMOVE_BACKSLASH:nj,REGEX_SPECIAL_CHARS:ij,REGEX_SPECIAL_CHARS_GLOBAL:oj}=ma();Yt.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);Yt.hasRegexChars=e=>ij.test(e);Yt.isRegexChar=e=>e.length===1&&Yt.hasRegexChars(e);Yt.escapeRegex=e=>e.replace(oj,"\\$1");Yt.toPosixSlashes=e=>e.replace(rj,"/");Yt.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let e=navigator.platform.toLowerCase();return e==="win32"||e==="windows"}return typeof process<"u"&&process.platform?process.platform==="win32":!1};Yt.removeBackslashes=e=>e.replace(nj,t=>t==="\\"?"":t);Yt.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?Yt.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};Yt.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};Yt.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",o=`${n}(?:${e})${i}`;return t.negated===!0&&(o=`(?:^(?!${o}).*$)`),o};Yt.basename=(e,{windows:t}={})=>{let r=e.split(t?/[\\/]/:"/"),n=r[r.length-1];return n===""?r[r.length-2]:n}});var nx=x((Ine,rx)=>{"use strict";var X1=ha(),{CHAR_ASTERISK:Hd,CHAR_AT:sj,CHAR_BACKWARD_SLASH:ya,CHAR_COMMA:aj,CHAR_DOT:Kd,CHAR_EXCLAMATION_MARK:Gd,CHAR_FORWARD_SLASH:tx,CHAR_LEFT_CURLY_BRACE:Yd,CHAR_LEFT_PARENTHESES:Wd,CHAR_LEFT_SQUARE_BRACKET:cj,CHAR_PLUS:lj,CHAR_QUESTION_MARK:J1,CHAR_RIGHT_CURLY_BRACE:uj,CHAR_RIGHT_PARENTHESES:Q1,CHAR_RIGHT_SQUARE_BRACKET:pj}=ma(),Z1=e=>e===tx||e===ya,ex=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},fj=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,o=[],s=[],a=[],c=e,l=-1,u=0,p=0,m=!1,d=!1,f=!1,h=!1,y=!1,b=!1,g=!1,v=!1,_=!1,w=!1,N=0,S,O,P={value:"",depth:0,isGlob:!1},E=()=>l>=n,R=()=>c.charCodeAt(l+1),A=()=>(S=O,c.charCodeAt(++l));for(;l<n;){O=A();let D;if(O===ya){g=P.backslashes=!0,O=A(),O===Yd&&(b=!0);continue}if(b===!0||O===Yd){for(N++;E()!==!0&&(O=A());){if(O===ya){g=P.backslashes=!0,A();continue}if(O===Yd){N++;continue}if(b!==!0&&O===Kd&&(O=A())===Kd){if(m=P.isBrace=!0,f=P.isGlob=!0,w=!0,i===!0)continue;break}if(b!==!0&&O===aj){if(m=P.isBrace=!0,f=P.isGlob=!0,w=!0,i===!0)continue;break}if(O===uj&&(N--,N===0)){b=!1,m=P.isBrace=!0,w=!0;break}}if(i===!0)continue;break}if(O===tx){if(o.push(l),s.push(P),P={value:"",depth:0,isGlob:!1},w===!0)continue;if(S===Kd&&l===u+1){u+=2;continue}p=l+1;continue}if(r.noext!==!0&&(O===lj||O===sj||O===Hd||O===J1||O===Gd)===!0&&R()===Wd){if(f=P.isGlob=!0,h=P.isExtglob=!0,w=!0,O===Gd&&l===u&&(_=!0),i===!0){for(;E()!==!0&&(O=A());){if(O===ya){g=P.backslashes=!0,O=A();continue}if(O===Q1){f=P.isGlob=!0,w=!0;break}}continue}break}if(O===Hd){if(S===Hd&&(y=P.isGlobstar=!0),f=P.isGlob=!0,w=!0,i===!0)continue;break}if(O===J1){if(f=P.isGlob=!0,w=!0,i===!0)continue;break}if(O===cj){for(;E()!==!0&&(D=A());){if(D===ya){g=P.backslashes=!0,A();continue}if(D===pj){d=P.isBracket=!0,f=P.isGlob=!0,w=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&O===Gd&&l===u){v=P.negated=!0,u++;continue}if(r.noparen!==!0&&O===Wd){if(f=P.isGlob=!0,i===!0){for(;E()!==!0&&(O=A());){if(O===Wd){g=P.backslashes=!0,O=A();continue}if(O===Q1){w=!0;break}}continue}break}if(f===!0){if(w=!0,i===!0)continue;break}}r.noext===!0&&(h=!1,f=!1);let I=c,C="",$="";u>0&&(C=c.slice(0,u),c=c.slice(u),p-=u),I&&f===!0&&p>0?(I=c.slice(0,p),$=c.slice(p)):f===!0?(I="",$=c):I=c,I&&I!==""&&I!=="/"&&I!==c&&Z1(I.charCodeAt(I.length-1))&&(I=I.slice(0,-1)),r.unescape===!0&&($&&($=X1.removeBackslashes($)),I&&g===!0&&(I=X1.removeBackslashes(I)));let L={prefix:C,input:e,start:u,base:I,glob:$,isBrace:m,isBracket:d,isGlob:f,isExtglob:h,isGlobstar:y,negated:v,negatedExtglob:_};if(r.tokens===!0&&(L.maxDepth=0,Z1(O)||s.push(P),L.tokens=s),r.parts===!0||r.tokens===!0){let D;for(let k=0;k<o.length;k++){let q=D?D+1:u,V=o[k],z=e.slice(q,V);r.tokens&&(k===0&&u!==0?(s[k].isPrefix=!0,s[k].value=C):s[k].value=z,ex(s[k]),L.maxDepth+=s[k].depth),(k!==0||z!=="")&&a.push(z),D=V}if(D&&D+1<e.length){let k=e.slice(D+1);a.push(k),r.tokens&&(s[s.length-1].value=k,ex(s[s.length-1]),L.maxDepth+=s[s.length-1].depth)}L.slashes=o,L.parts=a}return L};rx.exports=fj});var sx=x((kne,ox)=>{"use strict";var wl=ma(),Gr=ha(),{MAX_LENGTH:Sl,POSIX_REGEX_SOURCE:dj,REGEX_NON_SPECIAL_CHARS:mj,REGEX_SPECIAL_CHARS_BACKREF:hj,REPLACEMENTS:ix}=wl,yj=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>Gr.escapeRegex(i)).join("..")}return r},Mo=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Xd=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=ix[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Sl,r.maxLength):Sl,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let o={type:"bos",value:"",output:r.prepend||""},s=[o],a=r.capture?"":"?:",c=wl.globChars(r.windows),l=wl.extglobChars(c),{DOT_LITERAL:u,PLUS_LITERAL:p,SLASH_LITERAL:m,ONE_CHAR:d,DOTS_SLASH:f,NO_DOT:h,NO_DOT_SLASH:y,NO_DOTS_SLASH:b,QMARK:g,QMARK_NO_DOT:v,STAR:_,START_ANCHOR:w}=c,N=F=>`(${a}(?:(?!${w}${F.dot?f:u}).)*?)`,S=r.dot?"":h,O=r.dot?g:v,P=r.bash===!0?N(r):_;r.capture&&(P=`(${P})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let E={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:s};e=Gr.removePrefix(e,E),i=e.length;let R=[],A=[],I=[],C=o,$,L=()=>E.index===i-1,D=E.peek=(F=1)=>e[E.index+F],k=E.advance=()=>e[++E.index]||"",q=()=>e.slice(E.index+1),V=(F="",le=0)=>{E.consumed+=F,E.index+=le},z=F=>{E.output+=F.output!=null?F.output:F.value,V(F.value)},ne=()=>{let F=1;for(;D()==="!"&&(D(2)!=="("||D(3)==="?");)k(),E.start++,F++;return F%2===0?!1:(E.negated=!0,E.start++,!0)},pe=F=>{E[F]++,I.push(F)},Ae=F=>{E[F]--,I.pop()},H=F=>{if(C.type==="globstar"){let le=E.braces>0&&(F.type==="comma"||F.type==="brace"),M=F.extglob===!0||R.length&&(F.type==="pipe"||F.type==="paren");F.type!=="slash"&&F.type!=="paren"&&!le&&!M&&(E.output=E.output.slice(0,-C.output.length),C.type="star",C.value="*",C.output=P,E.output+=C.output)}if(R.length&&F.type!=="paren"&&(R[R.length-1].inner+=F.value),(F.value||F.output)&&z(F),C&&C.type==="text"&&F.type==="text"){C.output=(C.output||C.value)+F.value,C.value+=F.value;return}F.prev=C,s.push(F),C=F},Y=(F,le)=>{let M={...l[le],conditions:1,inner:""};M.prev=C,M.parens=E.parens,M.output=E.output;let fe=(r.capture?"(":"")+M.open;pe("parens"),H({type:F,value:le,output:E.output?"":d}),H({type:"paren",extglob:!0,value:k(),output:fe}),R.push(M)},ge=F=>{let le=F.close+(r.capture?")":""),M;if(F.type==="negate"){let fe=P;if(F.inner&&F.inner.length>1&&F.inner.includes("/")&&(fe=N(r)),(fe!==P||L()||/^\)+$/.test(q()))&&(le=F.close=`)$))${fe}`),F.inner.includes("*")&&(M=q())&&/^\.[^\\/.]+$/.test(M)){let je=Xd(M,{...t,fastpaths:!1}).output;le=F.close=`)${je})${fe})`}F.prev.type==="bos"&&(E.negatedExtglob=!0)}H({type:"paren",extglob:!0,value:$,output:le}),Ae("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let F=!1,le=e.replace(hj,(M,fe,je,We,st,qd)=>We==="\\"?(F=!0,M):We==="?"?fe?fe+We+(st?g.repeat(st.length):""):qd===0?O+(st?g.repeat(st.length):""):g.repeat(je.length):We==="."?u.repeat(je.length):We==="*"?fe?fe+We+(st?P:""):P:fe?M:`\\${M}`);return F===!0&&(r.unescape===!0?le=le.replace(/\\/g,""):le=le.replace(/\\+/g,M=>M.length%2===0?"\\\\":M?"\\":"")),le===e&&r.contains===!0?(E.output=e,E):(E.output=Gr.wrapOutput(le,E,t),E)}for(;!L();){if($=k(),$==="\0")continue;if($==="\\"){let M=D();if(M==="/"&&r.bash!==!0||M==="."||M===";")continue;if(!M){$+="\\",H({type:"text",value:$});continue}let fe=/^\\+/.exec(q()),je=0;if(fe&&fe[0].length>2&&(je=fe[0].length,E.index+=je,je%2!==0&&($+="\\")),r.unescape===!0?$=k():$+=k(),E.brackets===0){H({type:"text",value:$});continue}}if(E.brackets>0&&($!=="]"||C.value==="["||C.value==="[^")){if(r.posix!==!1&&$===":"){let M=C.value.slice(1);if(M.includes("[")&&(C.posix=!0,M.includes(":"))){let fe=C.value.lastIndexOf("["),je=C.value.slice(0,fe),We=C.value.slice(fe+2),st=dj[We];if(st){C.value=je+st,E.backtrack=!0,k(),!o.output&&s.indexOf(C)===1&&(o.output=d);continue}}}($==="["&&D()!==":"||$==="-"&&D()==="]")&&($=`\\${$}`),$==="]"&&(C.value==="["||C.value==="[^")&&($=`\\${$}`),r.posix===!0&&$==="!"&&C.value==="["&&($="^"),C.value+=$,z({value:$});continue}if(E.quotes===1&&$!=='"'){$=Gr.escapeRegex($),C.value+=$,z({value:$});continue}if($==='"'){E.quotes=E.quotes===1?0:1,r.keepQuotes===!0&&H({type:"text",value:$});continue}if($==="("){pe("parens"),H({type:"paren",value:$});continue}if($===")"){if(E.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Mo("opening","("));let M=R[R.length-1];if(M&&E.parens===M.parens+1){ge(R.pop());continue}H({type:"paren",value:$,output:E.parens?")":"\\)"}),Ae("parens");continue}if($==="["){if(r.nobracket===!0||!q().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Mo("closing","]"));$=`\\${$}`}else pe("brackets");H({type:"bracket",value:$});continue}if($==="]"){if(r.nobracket===!0||C&&C.type==="bracket"&&C.value.length===1){H({type:"text",value:$,output:`\\${$}`});continue}if(E.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Mo("opening","["));H({type:"text",value:$,output:`\\${$}`});continue}Ae("brackets");let M=C.value.slice(1);if(C.posix!==!0&&M[0]==="^"&&!M.includes("/")&&($=`/${$}`),C.value+=$,z({value:$}),r.literalBrackets===!1||Gr.hasRegexChars(M))continue;let fe=Gr.escapeRegex(C.value);if(E.output=E.output.slice(0,-C.value.length),r.literalBrackets===!0){E.output+=fe,C.value=fe;continue}C.value=`(${a}${fe}|${C.value})`,E.output+=C.value;continue}if($==="{"&&r.nobrace!==!0){pe("braces");let M={type:"brace",value:$,output:"(",outputIndex:E.output.length,tokensIndex:E.tokens.length};A.push(M),H(M);continue}if($==="}"){let M=A[A.length-1];if(r.nobrace===!0||!M){H({type:"text",value:$,output:$});continue}let fe=")";if(M.dots===!0){let je=s.slice(),We=[];for(let st=je.length-1;st>=0&&(s.pop(),je[st].type!=="brace");st--)je[st].type!=="dots"&&We.unshift(je[st].value);fe=yj(We,r),E.backtrack=!0}if(M.comma!==!0&&M.dots!==!0){let je=E.output.slice(0,M.outputIndex),We=E.tokens.slice(M.tokensIndex);M.value=M.output="\\{",$=fe="\\}",E.output=je;for(let st of We)E.output+=st.output||st.value}H({type:"brace",value:$,output:fe}),Ae("braces"),A.pop();continue}if($==="|"){R.length>0&&R[R.length-1].conditions++,H({type:"text",value:$});continue}if($===","){let M=$,fe=A[A.length-1];fe&&I[I.length-1]==="braces"&&(fe.comma=!0,M="|"),H({type:"comma",value:$,output:M});continue}if($==="/"){if(C.type==="dot"&&E.index===E.start+1){E.start=E.index+1,E.consumed="",E.output="",s.pop(),C=o;continue}H({type:"slash",value:$,output:m});continue}if($==="."){if(E.braces>0&&C.type==="dot"){C.value==="."&&(C.output=u);let M=A[A.length-1];C.type="dots",C.output+=$,C.value+=$,M.dots=!0;continue}if(E.braces+E.parens===0&&C.type!=="bos"&&C.type!=="slash"){H({type:"text",value:$,output:u});continue}H({type:"dot",value:$,output:u});continue}if($==="?"){if(!(C&&C.value==="(")&&r.noextglob!==!0&&D()==="("&&D(2)!=="?"){Y("qmark",$);continue}if(C&&C.type==="paren"){let fe=D(),je=$;(C.value==="("&&!/[!=<:]/.test(fe)||fe==="<"&&!/<([!=]|\w+>)/.test(q()))&&(je=`\\${$}`),H({type:"text",value:$,output:je});continue}if(r.dot!==!0&&(C.type==="slash"||C.type==="bos")){H({type:"qmark",value:$,output:v});continue}H({type:"qmark",value:$,output:g});continue}if($==="!"){if(r.noextglob!==!0&&D()==="("&&(D(2)!=="?"||!/[!=<:]/.test(D(3)))){Y("negate",$);continue}if(r.nonegate!==!0&&E.index===0){ne();continue}}if($==="+"){if(r.noextglob!==!0&&D()==="("&&D(2)!=="?"){Y("plus",$);continue}if(C&&C.value==="("||r.regex===!1){H({type:"plus",value:$,output:p});continue}if(C&&(C.type==="bracket"||C.type==="paren"||C.type==="brace")||E.parens>0){H({type:"plus",value:$});continue}H({type:"plus",value:p});continue}if($==="@"){if(r.noextglob!==!0&&D()==="("&&D(2)!=="?"){H({type:"at",extglob:!0,value:$,output:""});continue}H({type:"text",value:$});continue}if($!=="*"){($==="$"||$==="^")&&($=`\\${$}`);let M=mj.exec(q());M&&($+=M[0],E.index+=M[0].length),H({type:"text",value:$});continue}if(C&&(C.type==="globstar"||C.star===!0)){C.type="star",C.star=!0,C.value+=$,C.output=P,E.backtrack=!0,E.globstar=!0,V($);continue}let F=q();if(r.noextglob!==!0&&/^\([^?]/.test(F)){Y("star",$);continue}if(C.type==="star"){if(r.noglobstar===!0){V($);continue}let M=C.prev,fe=M.prev,je=M.type==="slash"||M.type==="bos",We=fe&&(fe.type==="star"||fe.type==="globstar");if(r.bash===!0&&(!je||F[0]&&F[0]!=="/")){H({type:"star",value:$,output:""});continue}let st=E.braces>0&&(M.type==="comma"||M.type==="brace"),qd=R.length&&(M.type==="pipe"||M.type==="paren");if(!je&&M.type!=="paren"&&!st&&!qd){H({type:"star",value:$,output:""});continue}for(;F.slice(0,3)==="/**";){let bl=e[E.index+4];if(bl&&bl!=="/")break;F=F.slice(3),V("/**",3)}if(M.type==="bos"&&L()){C.type="globstar",C.value+=$,C.output=N(r),E.output=C.output,E.globstar=!0,V($);continue}if(M.type==="slash"&&M.prev.type!=="bos"&&!We&&L()){E.output=E.output.slice(0,-(M.output+C.output).length),M.output=`(?:${M.output}`,C.type="globstar",C.output=N(r)+(r.strictSlashes?")":"|$)"),C.value+=$,E.globstar=!0,E.output+=M.output+C.output,V($);continue}if(M.type==="slash"&&M.prev.type!=="bos"&&F[0]==="/"){let bl=F[1]!==void 0?"|$":"";E.output=E.output.slice(0,-(M.output+C.output).length),M.output=`(?:${M.output}`,C.type="globstar",C.output=`${N(r)}${m}|${m}${bl})`,C.value+=$,E.output+=M.output+C.output,E.globstar=!0,V($+k()),H({type:"slash",value:"/",output:""});continue}if(M.type==="bos"&&F[0]==="/"){C.type="globstar",C.value+=$,C.output=`(?:^|${m}|${N(r)}${m})`,E.output=C.output,E.globstar=!0,V($+k()),H({type:"slash",value:"/",output:""});continue}E.output=E.output.slice(0,-C.output.length),C.type="globstar",C.output=N(r),C.value+=$,E.output+=C.output,E.globstar=!0,V($);continue}let le={type:"star",value:$,output:P};if(r.bash===!0){le.output=".*?",(C.type==="bos"||C.type==="slash")&&(le.output=S+le.output),H(le);continue}if(C&&(C.type==="bracket"||C.type==="paren")&&r.regex===!0){le.output=$,H(le);continue}(E.index===E.start||C.type==="slash"||C.type==="dot")&&(C.type==="dot"?(E.output+=y,C.output+=y):r.dot===!0?(E.output+=b,C.output+=b):(E.output+=S,C.output+=S),D()!=="*"&&(E.output+=d,C.output+=d)),H(le)}for(;E.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Mo("closing","]"));E.output=Gr.escapeLast(E.output,"["),Ae("brackets")}for(;E.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Mo("closing",")"));E.output=Gr.escapeLast(E.output,"("),Ae("parens")}for(;E.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Mo("closing","}"));E.output=Gr.escapeLast(E.output,"{"),Ae("braces")}if(r.strictSlashes!==!0&&(C.type==="star"||C.type==="bracket")&&H({type:"maybe_slash",value:"",output:`${m}?`}),E.backtrack===!0){E.output="";for(let F of E.tokens)E.output+=F.output!=null?F.output:F.value,F.suffix&&(E.output+=F.suffix)}return E};Xd.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Sl,r.maxLength):Sl,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=ix[e]||e;let{DOT_LITERAL:o,SLASH_LITERAL:s,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:u,NO_DOTS_SLASH:p,STAR:m,START_ANCHOR:d}=wl.globChars(r.windows),f=r.dot?u:l,h=r.dot?p:l,y=r.capture?"":"?:",b={negated:!1,prefix:""},g=r.bash===!0?".*?":m;r.capture&&(g=`(${g})`);let v=S=>S.noglobstar===!0?g:`(${y}(?:(?!${d}${S.dot?c:o}).)*?)`,_=S=>{switch(S){case"*":return`${f}${a}${g}`;case".*":return`${o}${a}${g}`;case"*.*":return`${f}${g}${o}${a}${g}`;case"*/*":return`${f}${g}${s}${a}${h}${g}`;case"**":return f+v(r);case"**/*":return`(?:${f}${v(r)}${s})?${h}${a}${g}`;case"**/*.*":return`(?:${f}${v(r)}${s})?${h}${g}${o}${a}${g}`;case"**/.*":return`(?:${f}${v(r)}${s})?${o}${a}${g}`;default:{let O=/^(.*?)\.(\w+)$/.exec(S);if(!O)return;let P=_(O[1]);return P?P+o+O[2]:void 0}}},w=Gr.removePrefix(e,b),N=_(w);return N&&r.strictSlashes!==!0&&(N+=`${s}?`),N};ox.exports=Xd});var lx=x((qne,cx)=>{"use strict";var gj=nx(),Jd=sx(),ax=ha(),bj=ma(),vj=e=>e&&typeof e=="object"&&!Array.isArray(e),Xe=(e,t,r=!1)=>{if(Array.isArray(e)){let u=e.map(m=>Xe(m,t,r));return m=>{for(let d of u){let f=d(m);if(f)return f}return!1}}let n=vj(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},o=i.windows,s=n?Xe.compileRe(e,t):Xe.makeRe(e,t,!1,!0),a=s.state;delete s.state;let c=()=>!1;if(i.ignore){let u={...t,ignore:null,onMatch:null,onResult:null};c=Xe(i.ignore,u,r)}let l=(u,p=!1)=>{let{isMatch:m,match:d,output:f}=Xe.test(u,s,t,{glob:e,posix:o}),h={glob:e,state:a,regex:s,posix:o,input:u,output:f,match:d,isMatch:m};return typeof i.onResult=="function"&&i.onResult(h),m===!1?(h.isMatch=!1,p?h:!1):c(u)?(typeof i.onIgnore=="function"&&i.onIgnore(h),h.isMatch=!1,p?h:!1):(typeof i.onMatch=="function"&&i.onMatch(h),p?h:!0)};return r&&(l.state=a),l};Xe.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let o=r||{},s=o.format||(i?ax.toPosixSlashes:null),a=e===n,c=a&&s?s(e):e;return a===!1&&(c=s?s(e):e,a=c===n),(a===!1||o.capture===!0)&&(o.matchBase===!0||o.basename===!0?a=Xe.matchBase(e,t,r,i):a=t.exec(c)),{isMatch:!!a,match:a,output:c}};Xe.matchBase=(e,t,r)=>(t instanceof RegExp?t:Xe.makeRe(t,r)).test(ax.basename(e));Xe.isMatch=(e,t,r)=>Xe(t,r)(e);Xe.parse=(e,t)=>Array.isArray(e)?e.map(r=>Xe.parse(r,t)):Jd(e,{...t,fastpaths:!1});Xe.scan=(e,t)=>gj(e,t);Xe.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},o=i.contains?"":"^",s=i.contains?"":"$",a=`${o}(?:${e.output})${s}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let c=Xe.toRegex(a,t);return n===!0&&(c.state=e),c};Xe.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=Jd.fastpaths(e,t)),i.output||(i=Jd(e,t)),Xe.compileRe(i,t,r,n)};Xe.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};Xe.constants=bj;cx.exports=Xe});var dx=x((jne,fx)=>{"use strict";var ux=lx(),xj=ha();function px(e,t,r=!1){return t&&(t.windows===null||t.windows===void 0)&&(t={...t,windows:xj.isWindows()}),ux(e,t,r)}Object.assign(px,ux);fx.exports=px});var ba=x(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.feedbackConfigSchema=Wt.optionalEmailSettings=Wt.reasonsSettings=void 0;var ww={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}};Wt.reasonsSettings={type:"object",properties:ww,additionalProperties:!1};Wt.optionalEmailSettings={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1};Wt.feedbackConfigSchema={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},ww),{like:Wt.reasonsSettings,dislike:Wt.reasonsSettings,satisfied:Wt.reasonsSettings,neutral:Wt.reasonsSettings,dissatisfied:Wt.reasonsSettings}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:Wt.optionalEmailSettings},additionalProperties:!1}},additionalProperties:!1}});var $l=x(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.redocConfigSchema=Ui.downloadUrlsSchema=void 0;var v4=ba(),x4={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1};Ui.downloadUrlsSchema={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}};Ui.redocConfigSchema={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:v4.feedbackConfigSchema,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:Ui.downloadUrlsSchema,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:x4,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"}},additionalProperties:!1}});var Sm=x(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.graphqlConfigSchema=void 0;var w4=ba(),S4=$l(),Do={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},_4={type:"object",properties:{name:{type:"string"},items:Do,queries:Do,mutations:Do,subscriptions:Do,types:Do,directives:Do},required:["name"],additionalProperties:!1},O4={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:_4},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1};Pl.graphqlConfigSchema={type:"object",properties:{menu:{type:"object",properties:Object.assign({},O4.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:S4.downloadUrlsSchema,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:w4.feedbackConfigSchema},additionalProperties:!1}});var Aw=x(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.deprecatedRefDocsSchema=void 0;var $4={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},P4={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},Sw={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},E4={type:"object",properties:{beforeInfo:{type:"array",items:Sw},end:{type:"array",items:Sw}}},Vi={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},El={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},A4={type:"object",properties:Tl(Vi.properties,["light","dark"])},C4={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},R4={type:"object",properties:{error:El,info:El,redirect:El,success:El}},T4={type:"object",properties:Fo(Vi.properties,["dark"])},N4={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},I4={type:"object",properties:{accent:Vi,border:A4,error:Vi,http:C4,primary:Vi,responses:R4,secondary:T4,success:Vi,text:N4,tonalOffset:{type:"number"},warning:Vi}},Al={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},k4={type:"object",properties:{small:Al,medium:Al,large:Al,xlarge:Al}},Wr={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},q4={type:"object",properties:Object.assign(Object.assign({},Fo(Wr.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:k4})},_w={type:"object",properties:Tl(Wr.properties,["fontSize","lineHeight"])},j4={type:"object",properties:{medium:_w,small:_w}},M4={type:"object",properties:Object.assign(Object.assign({},Fo(Wr.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:j4})},L4={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},D4={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},Ow={type:"object",properties:{fullWidth:{type:"boolean"}}},F4={type:"object",properties:{buttons:q4,httpBadges:M4,layoutControls:L4,panels:D4,tryItButton:Ow,tryItSendButton:Ow}},Rl={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},B4={type:"object",properties:{maxWidth:Rl}},U4={type:"object",properties:{maxWidth:Rl,middlePanelMaxWidth:Rl}},V4={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:B4,"three-panel":U4}},$w={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},z4={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:$w,defaultDetailsWidth:{type:"string"},examples:$w,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},Ew={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},H4={type:"object",properties:Tl(Ew.properties,["textTransform"])},K4={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},G4={type:"object",properties:Object.assign(Object.assign({},Fo(Wr.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:Ew,level1items:H4,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:K4,textColor:{type:"string"},width:{type:"string"}})},Cl={type:"object",properties:Object.assign(Object.assign({},Wr.properties),{color:{type:"string"},transform:{type:"string"}})},Y4={type:"object",properties:Object.assign(Object.assign({},Wr.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},W4={type:"object",properties:Fo(Wr.properties,["fontSize"])},X4={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},J4={type:"object",properties:Object.assign(Object.assign({code:Y4,fieldName:Wr},Tl(Wr.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Cl,heading2:Cl,heading3:Cl,headings:W4,lineHeight:{type:"string"},links:X4,optimizeSpeed:{type:"boolean"},rightPanelHeading:Cl,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},Q4={type:"object",properties:Object.assign({color:{type:"string"}},Fo(Wr.properties,["fontWeight"]))},Z4={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:Q4}},eL={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},tL={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},Pw={type:"object",properties:{custom:{type:"string"}}},rL={type:"object",properties:{DownloadButton:Pw,NextSectionButton:Pw}},nL={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},iL={type:"object",properties:{borderRadius:{type:"string"}}},oL={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},sL={type:"object",properties:{breakpoints:Rl,codeBlock:Z4,colors:I4,components:F4,layout:V4,logo:eL,fab:tL,overrides:rL,rightPanel:nL,schema:z4,shape:iL,sidebar:G4,spacing:oL,typography:J4,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},aL={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:$4}},required:["languages"]};Nl.deprecatedRefDocsSchema={type:"object",properties:{theme:sL,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:aL,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:P4,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:E4,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}},additionalProperties:!1};function Tl(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function Fo(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}});var _m=x(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.decoratorsSchemas=mt.preprocessorSchemas=mt.ruleSchemas=mt.rulesSchema=void 0;mt.rulesSchema={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}};mt.ruleSchemas={rules:mt.rulesSchema,oas2Rules:mt.rulesSchema,oas3_0Rules:mt.rulesSchema,oas3_1Rules:mt.rulesSchema,async2Rules:mt.rulesSchema,async3Rules:mt.rulesSchema,arazzo1Rules:mt.rulesSchema,overlay1Rules:mt.rulesSchema};mt.preprocessorSchemas={preprocessors:{type:"object",additionalProperties:!0},oas2Preprocessors:{type:"object",additionalProperties:!0},oas3_0Preprocessors:{type:"object",additionalProperties:!0},oas3_1Preprocessors:{type:"object",additionalProperties:!0},async2Preprocessors:{type:"object",additionalProperties:!0},async3Preprocessors:{type:"object",additionalProperties:!0},arazzo1Preprocessors:{type:"object",additionalProperties:!0},overlay1Preprocessors:{type:"object",additionalProperties:!0}};mt.decoratorsSchemas={decorators:{type:"object",additionalProperties:!0},oas2Decorators:{type:"object",additionalProperties:!0},oas3_0Decorators:{type:"object",additionalProperties:!0},oas3_1Decorators:{type:"object",additionalProperties:!0},async2Decorators:{type:"object",additionalProperties:!0},async3Decorators:{type:"object",additionalProperties:!0},arazzo1Decorators:{type:"object",additionalProperties:!0},overlay1Decorators:{type:"object",additionalProperties:!0}}});var Il=x(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.scorecardConfigSchema=B.catalogsConfigSchema=B.catalogSchema=B.catalogFilterSchema=B.breadcrumbsConfigSchema=B.versionPickerConfigSchema=B.userMenuConfigSchema=B.analyticsConfigSchema=B.googleAnalyticsConfigSchema=B.productGoogleAnalyticsConfigSchema=B.gtmAnalyticsConfigSchema=B.segmentAnalyticsConfigSchema=B.rudderstackAnalyticsConfigSchema=B.heapAnalyticsConfigSchema=B.fullstoryAnalyticsConfigSchema=B.amplitudeAnalyticsConfigSchema=B.openapiConfigSchema=B.markdownConfigSchema=B.codeSnippetConfigSchema=B.navigationConfigSchema=B.colorModeConfigSchema=B.searchConfigSchema=B.linksConfigSchema=B.scriptsConfigSchema=B.sidebarConfigSchema=B.footerConfigSchema=B.productsConfigSchema=B.navbarConfigSchema=B.logoConfigSchema=B.searchFiltersConfigSchema=B.searchFacetsConfigSchema=B.aiSearchConfigSchema=B.productConfigSchema=B.navItemsSchema=void 0;var Cw=$l(),cL=Aw(),Om=_m(),ht={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Rw={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},$m={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}}}};B.navItemsSchema={type:"array",items:Object.assign(Object.assign({},$m),{properties:Object.assign(Object.assign({},$m.properties),{items:{type:"array",items:$m}})})};B.productConfigSchema={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]};B.aiSearchConfigSchema={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1};B.searchFacetsConfigSchema={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]}},additionalProperties:!1}};B.searchFiltersConfigSchema={type:"object",properties:Object.assign({facets:B.searchFacetsConfigSchema},ht.properties),additionalProperties:!1};var lL={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]};B.logoConfigSchema={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1};B.navbarConfigSchema={type:"object",properties:Object.assign({items:B.navItemsSchema},ht.properties),additionalProperties:!1};B.productsConfigSchema={type:"object",additionalProperties:B.productConfigSchema};B.footerConfigSchema={type:"object",properties:Object.assign({items:B.navItemsSchema,copyrightText:{type:"string"},logo:ht},ht.properties),additionalProperties:!1};B.sidebarConfigSchema={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},ht.properties),additionalProperties:!1};B.scriptsConfigSchema={type:"object",properties:{head:{type:"array",items:Rw},body:{type:"array",items:Rw}},additionalProperties:!1};B.linksConfigSchema={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}};B.searchConfigSchema={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:B.aiSearchConfigSchema,filters:B.searchFiltersConfigSchema,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:lL}},ht.properties),additionalProperties:!1};B.colorModeConfigSchema={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},ht.properties),additionalProperties:!1};var uL={type:"object",properties:Object.assign(Object.assign({},ht.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude"]},default:["copy","view","chatgpt","claude"]}}),additionalProperties:!1};B.navigationConfigSchema={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},ht.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},ht.properties),additionalProperties:!1,default:{}},actions:uL},additionalProperties:!1};B.codeSnippetConfigSchema={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},ht.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},ht.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},ht.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},ht.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1};B.markdownConfigSchema={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["_partials"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},ht.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},ht.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},ht.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}};B.openapiConfigSchema=Object.assign(Object.assign({},Cw.redocConfigSchema),{properties:Object.assign(Object.assign({},Cw.redocConfigSchema.properties),cL.deprecatedRefDocsSchema.properties)});var pL={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]};B.amplitudeAnalyticsConfigSchema={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]};B.fullstoryAnalyticsConfigSchema={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]};B.heapAnalyticsConfigSchema={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]};B.rudderstackAnalyticsConfigSchema={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]};B.segmentAnalyticsConfigSchema={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]};B.gtmAnalyticsConfigSchema={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]};B.productGoogleAnalyticsConfigSchema={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]};B.googleAnalyticsConfigSchema={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:B.productGoogleAnalyticsConfigSchema}},additionalProperties:!1,required:["trackingId"]};B.analyticsConfigSchema={type:"object",properties:{adobe:pL,amplitude:B.amplitudeAnalyticsConfigSchema,fullstory:B.fullstoryAnalyticsConfigSchema,heap:B.heapAnalyticsConfigSchema,rudderstack:B.rudderstackAnalyticsConfigSchema,segment:B.segmentAnalyticsConfigSchema,gtm:B.gtmAnalyticsConfigSchema,ga:B.googleAnalyticsConfigSchema}};B.userMenuConfigSchema={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},ht.properties),additionalProperties:!1};B.versionPickerConfigSchema={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}};B.breadcrumbsConfigSchema={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1};B.catalogFilterSchema={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}};B.catalogSchema={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:B.catalogFilterSchema},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:B.navItemsSchema,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}};B.catalogsConfigSchema={type:"object",patternProperties:{".*":B.catalogSchema}};B.scorecardConfigSchema={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},Om.ruleSchemas),Om.preprocessorSchemas),Om.decoratorsSchemas),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}}});var Pm=x(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.entitiesCatalogConfigSchema=ze.entityCatalogSpecificCatalogSchema=ze.entityCatalogFilterSchema=ze.entityCatalogIncludeSchema=ze.entityCatalogExcludeSchema=void 0;ze.entityCatalogExcludeSchema={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1};ze.entityCatalogIncludeSchema={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1};ze.entityCatalogFilterSchema={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1};ze.entityCatalogSpecificCatalogSchema={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:ze.entityCatalogIncludeSchema},excludes:{type:"array",items:ze.entityCatalogExcludeSchema},filters:{type:"array",items:ze.entityCatalogFilterSchema},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1};ze.entitiesCatalogConfigSchema={type:"object",properties:{catalogs:{type:"object",properties:{all:ze.entityCatalogSpecificCatalogSchema,services:ze.entityCatalogSpecificCatalogSchema,domains:ze.entityCatalogSpecificCatalogSchema,teams:ze.entityCatalogSpecificCatalogSchema,users:ze.entityCatalogSpecificCatalogSchema,apiDescriptions:ze.entityCatalogSpecificCatalogSchema,dataSchemas:ze.entityCatalogSpecificCatalogSchema,apiOperations:ze.entityCatalogSpecificCatalogSchema},additionalProperties:ze.entityCatalogSpecificCatalogSchema}},additionalProperties:!1}});var Em=x(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.themeConfigSchema=void 0;var fL=Sm(),dL=ba(),tt=Il(),mL=Pm();kl.themeConfigSchema={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:tt.logoConfigSchema,navbar:tt.navbarConfigSchema,products:tt.productsConfigSchema,footer:tt.footerConfigSchema,sidebar:tt.sidebarConfigSchema,scripts:tt.scriptsConfigSchema,links:tt.linksConfigSchema,feedback:dL.feedbackConfigSchema,search:tt.searchConfigSchema,colorMode:tt.colorModeConfigSchema,navigation:tt.navigationConfigSchema,codeSnippet:tt.codeSnippetConfigSchema,markdown:tt.markdownConfigSchema,openapi:tt.openapiConfigSchema,graphql:fL.graphqlConfigSchema,analytics:tt.analyticsConfigSchema,userMenu:tt.userMenuConfigSchema,versionPicker:tt.versionPickerConfigSchema,breadcrumbs:tt.breadcrumbsConfigSchema,catalog:tt.catalogsConfigSchema,entitiesCatalog:mL.entitiesCatalogConfigSchema,catalogClassic:tt.catalogsConfigSchema,scorecard:tt.scorecardConfigSchema},additionalProperties:!0}});var Am=x(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.LayoutVariant=Xt.REDOCLY_ROUTE_RBAC=Xt.REDOCLY_TEAMS_RBAC=Xt.ApigeeDevOnboardingIntegrationAuthType=Xt.AuthProviderType=Xt.DEFAULT_TEAM_CLAIM_NAME=void 0;Xt.DEFAULT_TEAM_CLAIM_NAME="https://redocly.com/sso/teams";var Tw;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(Tw||(Xt.AuthProviderType=Tw={}));var Nw;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(Nw||(Xt.ApigeeDevOnboardingIntegrationAuthType=Nw={}));Xt.REDOCLY_TEAMS_RBAC="redocly::teams-rbac";Xt.REDOCLY_ROUTE_RBAC="redocly::route-rbac";var Iw;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(Iw||(Xt.LayoutVariant=Iw={}))});var kw=x(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});Rm.removePropertyRecursively=Cm;function Cm(e,t){return Object.fromEntries(Object.entries(e).map(([r,n])=>{if(r!==t)return typeof n!="object"||!n?[r,n]:Array.isArray(n)?[r,n.map(i=>typeof i=="object"?Cm(i,t):i)]:[r,Cm(n,t)]}).filter(Boolean))}});var qw=x(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.reuniteConfigSchema=void 0;var hL={type:"object",additionalProperties:{type:"string"}},yL={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},ql={type:"string",enum:["error","warn","off"]},gL={type:"object",additionalProperties:!1,properties:{schemaCheck:ql,statusCodeCheck:ql,contentTypeCheck:ql,successCriteriaCheck:ql}},bL={type:"object",properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",enum:["1m","2m","5m","10m","15m","30m","1h","3h","6h","12h","1d","7d"]}},required:["event"],additionalProperties:!1},vL={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1};jl.reuniteConfigSchema={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[bL,vL]},inputs:hL,servers:yL,severity:gL},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1}});var Nm=x(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});U.rootRedoclyConfigSchema=U.redoclyConfigSchema=U.l10nConfigSchema=U.devOnboardingAdapterConfigSchema=U.apigeeEdgeAdapterConfigSchema=U.apigeeXAdapterConfigSchema=U.apigeeAdapterAuthServiceAccountSchema=U.apigeeAdapterAuthOauth2Schema=U.graviteeAdapterConfigSchema=U.graviteeAdapterAuthIdpSchema=U.graviteeAdapterAuthStaticSchema=U.rbacConfigSchema=U.rbacScopeItemsSchema=U.apiFunctionsConfigSchema=U.seoConfigSchema=U.apiConfigSchema=U.redirectsConfigSchema=U.redirectConfigSchema=U.ssoConfigSchema=U.ssoDirectConfigSchema=U.authProviderConfigSchema=U.saml2ProviderConfigSchema=U.oidcProviderConfigSchema=U.oidcIssuerMetadataSchema=void 0;var va=Am(),xL=Em(),wL=ba(),Tm=Sm(),SL=kw(),_L=qw(),Ge=Il(),OL=Pm(),Bo=_m();U.oidcIssuerMetadataSchema={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0};U.oidcProviderConfigSchema={type:"object",properties:{type:{type:"string",const:va.AuthProviderType.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:U.oidcIssuerMetadataSchema,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1};U.saml2ProviderConfigSchema={type:"object",properties:{type:{type:"string",const:va.AuthProviderType.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:va.DEFAULT_TEAM_CLAIM_NAME},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]};U.authProviderConfigSchema={oneOf:[U.oidcProviderConfigSchema,U.saml2ProviderConfigSchema],discriminator:{propertyName:"type"}};U.ssoDirectConfigSchema={type:"object",additionalProperties:U.authProviderConfigSchema};U.ssoConfigSchema={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]};U.redirectConfigSchema={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1};U.redirectsConfigSchema={type:"object",additionalProperties:U.redirectConfigSchema,default:{}};U.apiConfigSchema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:Ge.openapiConfigSchema,graphql:Tm.graphqlConfigSchema,theme:{type:"object",properties:{openapi:Ge.openapiConfigSchema,graphql:Tm.graphqlConfigSchema},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},Bo.ruleSchemas),Bo.preprocessorSchemas),Bo.decoratorsSchemas),{extends:{type:"array",items:{type:"string"}}}),required:["root"]};var $L={type:"object",additionalProperties:!0},PL={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},jw={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1};U.seoConfigSchema={type:"object",properties:{title:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:jw},default:{llmstxt:jw.default},additionalProperties:!1};U.apiFunctionsConfigSchema={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1};U.rbacScopeItemsSchema={type:"object",additionalProperties:{type:"string"}};U.rbacConfigSchema={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:U.rbacScopeItemsSchema,cms:U.rbacScopeItemsSchema,reunite:U.rbacScopeItemsSchema,features:{type:"object",properties:{aiSearch:U.rbacScopeItemsSchema},additionalProperties:!1},content:{type:"object",properties:{"**":U.rbacScopeItemsSchema},additionalProperties:U.rbacScopeItemsSchema}},additionalProperties:U.rbacScopeItemsSchema};U.graviteeAdapterAuthStaticSchema={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]};U.graviteeAdapterAuthIdpSchema={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]};U.graviteeAdapterConfigSchema={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[U.graviteeAdapterAuthStaticSchema,U.graviteeAdapterAuthIdpSchema]}},additionalProperties:!1,required:["type","apiBaseUrl"]};U.apigeeAdapterAuthOauth2Schema={type:"object",properties:{type:{type:"string",const:va.ApigeeDevOnboardingIntegrationAuthType.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]};U.apigeeAdapterAuthServiceAccountSchema={type:"object",properties:{type:{type:"string",const:va.ApigeeDevOnboardingIntegrationAuthType.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]};U.apigeeXAdapterConfigSchema={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[U.apigeeAdapterAuthOauth2Schema,U.apigeeAdapterAuthServiceAccountSchema],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]};U.apigeeEdgeAdapterConfigSchema=Object.assign(Object.assign({},U.apigeeXAdapterConfigSchema),{properties:Object.assign(Object.assign({},U.apigeeXAdapterConfigSchema.properties),{type:{type:"string",const:"APIGEE_EDGE"}})});U.devOnboardingAdapterConfigSchema={type:"object",oneOf:[U.apigeeXAdapterConfigSchema,U.apigeeEdgeAdapterConfigSchema,U.graviteeAdapterConfigSchema],discriminator:{propertyName:"type"}};var EL={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:U.devOnboardingAdapterConfigSchema}}};U.l10nConfigSchema={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]};var AL={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]};U.redoclyConfigSchema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:U.redirectsConfigSchema,seo:U.seoConfigSchema,rbac:U.rbacConfigSchema,apiFunctions:U.apiFunctionsConfigSchema,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:AL}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:U.apiConfigSchema},extends:{type:"array",items:{type:"string"}}},Bo.ruleSchemas),Bo.decoratorsSchemas),Bo.preprocessorSchemas),{ssoDirect:U.ssoDirectConfigSchema,sso:U.ssoConfigSchema,residency:{type:"string"},developerOnboarding:EL,removeAttribution:{type:"boolean"},i18n:U.l10nConfigSchema,l10n:U.l10nConfigSchema,metadata:$L,metadataGlobs:PL,ignore:{type:"array",items:{type:"string"}},theme:xL.themeConfigSchema,reunite:_L.reuniteConfigSchema,logo:Ge.logoConfigSchema,navbar:Ge.navbarConfigSchema,products:Ge.productsConfigSchema,footer:Ge.footerConfigSchema,sidebar:Ge.sidebarConfigSchema,scripts:Ge.scriptsConfigSchema,links:Ge.linksConfigSchema,feedback:wL.feedbackConfigSchema,search:Ge.searchConfigSchema,colorMode:Ge.colorModeConfigSchema,navigation:Ge.navigationConfigSchema,codeSnippet:Ge.codeSnippetConfigSchema,markdown:Ge.markdownConfigSchema,openapi:Ge.openapiConfigSchema,graphql:Tm.graphqlConfigSchema,analytics:Ge.analyticsConfigSchema,userMenu:Ge.userMenuConfigSchema,versionPicker:Ge.versionPickerConfigSchema,breadcrumbs:Ge.breadcrumbsConfigSchema,catalog:Ge.catalogsConfigSchema,entitiesCatalog:OL.entitiesCatalogConfigSchema,catalogClassic:Ge.catalogsConfigSchema,scorecard:Ge.scorecardConfigSchema}),default:{redirects:{},seo:U.seoConfigSchema.default},additionalProperties:!0};var CL=Object.assign(Object.assign({},(0,SL.removePropertyRecursively)(U.redoclyConfigSchema,"default")),{additionalProperties:!1});U.rootRedoclyConfigSchema=Object.assign(Object.assign({$id:"root-redocly-config"},U.redoclyConfigSchema),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},U.redoclyConfigSchema.properties),{env:{type:"object",additionalProperties:CL}}),default:{},additionalProperties:!1})});var Mw=x(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.productConfigOverrideSchema=Gn.productThemeOverrideSchema=void 0;var vn=Em(),RL=Il(),TL=Nm();Gn.productThemeOverrideSchema={type:"object",properties:{logo:vn.themeConfigSchema.properties.logo,navbar:vn.themeConfigSchema.properties.navbar,footer:vn.themeConfigSchema.properties.footer,sidebar:vn.themeConfigSchema.properties.sidebar,search:vn.themeConfigSchema.properties.search,codeSnippet:vn.themeConfigSchema.properties.codeSnippet,breadcrumbs:vn.themeConfigSchema.properties.breadcrumbs,openapi:vn.themeConfigSchema.properties.openapi,feedback:vn.themeConfigSchema.properties.feedback,analytics:{type:"object",properties:{ga:RL.productGoogleAnalyticsConfigSchema}}},additionalProperties:!0,default:{}};Gn.productConfigOverrideSchema={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},Gn.productThemeOverrideSchema.properties),{apis:{type:"object",additionalProperties:TL.apiConfigSchema},theme:Gn.productThemeOverrideSchema}),additionalProperties:!1}});var Dw=x(Lw=>{"use strict";Object.defineProperty(Lw,"__esModule",{value:!0})});var Bw=x(Fw=>{"use strict";Object.defineProperty(Fw,"__esModule",{value:!0})});var Vw=x(Uw=>{"use strict";Object.defineProperty(Uw,"__esModule",{value:!0})});var zw=x(zi=>{"use strict";var NL=zi&&zi.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),IL=zi&&zi.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&NL(t,e,r)};Object.defineProperty(zi,"__esModule",{value:!0});IL(Vw(),zi)});var Kw=x(Hw=>{"use strict";Object.defineProperty(Hw,"__esModule",{value:!0})});var Gw=x(Xr=>{"use strict";var kL=Xr&&Xr.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),Ml=Xr&&Xr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&kL(t,e,r)};Object.defineProperty(Xr,"__esModule",{value:!0});Ml(Dw(),Xr);Ml(Bw(),Xr);Ml(zw(),Xr);Ml(Kw(),Xr)});var Im=x(Ce=>{"use strict";var qL=Ce&&Ce.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),jL=Ce&&Ce.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&qL(t,e,r)};Object.defineProperty(Ce,"__esModule",{value:!0});Ce.REDOCLY_ROUTE_RBAC=Ce.REDOCLY_TEAMS_RBAC=Ce.LayoutVariant=Ce.DEFAULT_TEAM_CLAIM_NAME=Ce.AuthProviderType=Ce.ApigeeDevOnboardingIntegrationAuthType=Ce.redocConfigSchema=Ce.rootRedoclyConfigSchema=Ce.rbacConfigSchema=Ce.productConfigOverrideSchema=Ce.productThemeOverrideSchema=void 0;var Yw=Mw();Object.defineProperty(Ce,"productThemeOverrideSchema",{enumerable:!0,get:function(){return Yw.productThemeOverrideSchema}});Object.defineProperty(Ce,"productConfigOverrideSchema",{enumerable:!0,get:function(){return Yw.productConfigOverrideSchema}});var Ww=Nm();Object.defineProperty(Ce,"rbacConfigSchema",{enumerable:!0,get:function(){return Ww.rbacConfigSchema}});Object.defineProperty(Ce,"rootRedoclyConfigSchema",{enumerable:!0,get:function(){return Ww.rootRedoclyConfigSchema}});var ML=$l();Object.defineProperty(Ce,"redocConfigSchema",{enumerable:!0,get:function(){return ML.redocConfigSchema}});jL(Gw(),Ce);var Uo=Am();Object.defineProperty(Ce,"ApigeeDevOnboardingIntegrationAuthType",{enumerable:!0,get:function(){return Uo.ApigeeDevOnboardingIntegrationAuthType}});Object.defineProperty(Ce,"AuthProviderType",{enumerable:!0,get:function(){return Uo.AuthProviderType}});Object.defineProperty(Ce,"DEFAULT_TEAM_CLAIM_NAME",{enumerable:!0,get:function(){return Uo.DEFAULT_TEAM_CLAIM_NAME}});Object.defineProperty(Ce,"LayoutVariant",{enumerable:!0,get:function(){return Uo.LayoutVariant}});Object.defineProperty(Ce,"REDOCLY_TEAMS_RBAC",{enumerable:!0,get:function(){return Uo.REDOCLY_TEAMS_RBAC}});Object.defineProperty(Ce,"REDOCLY_ROUTE_RBAC",{enumerable:!0,get:function(){return Uo.REDOCLY_ROUTE_RBAC}})});var Sa=x(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.nil=He._Code=He.Name=He.IDENTIFIER=He._CodeOrName=void 0;He._=Zw;He.str=eS;He.addCodeArg=qm;He.strConcat=BL;He.stringify=VL;He.safeStringify=wa;He.getProperty=zL;He.getEsmExportName=HL;He.regexpCode=KL;var xa=class{};He._CodeOrName=xa;He.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Ki=class extends xa{constructor(t){if(super(),!He.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};He.Name=Ki;var br=class extends xa{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof Ki&&(r[n.str]=(r[n.str]||0)+1),r),{})}};He._Code=br;He.nil=new br("");function Zw(e,...t){let r=[e[0]],n=0;for(;n<t.length;)qm(r,t[n]),r.push(e[++n]);return new br(r)}var km=new br("+");function eS(e,...t){let r=[wa(e[0])],n=0;for(;n<t.length;)r.push(km),qm(r,t[n]),r.push(km,wa(e[++n]));return DL(r),new br(r)}function qm(e,t){t instanceof br?e.push(...t._items):t instanceof Ki?e.push(t):e.push(UL(t))}function DL(e){let t=1;for(;t<e.length-1;){if(e[t]===km){let r=FL(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function FL(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Ki||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof Ki))return`"${e}${t.slice(1)}`}function BL(e,t){return t.emptyStr()?e:e.emptyStr()?t:eS`${e}${t}`}function UL(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:wa(Array.isArray(e)?e.join(","):e)}function VL(e){return new br(wa(e))}function wa(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function zL(e){return typeof e=="string"&&He.IDENTIFIER.test(e)?new br(`.${e}`):Zw`[${e}]`}function HL(e){if(typeof e=="string"&&He.IDENTIFIER.test(e))return new br(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}function KL(e){return new br(e.toString())}});var Lm=x(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.ValueScope=Qt.ValueScopeName=Qt.Scope=Qt.varKinds=Qt.UsedValueState=void 0;var Jt=Sa(),jm=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},Ll;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Ll||(Qt.UsedValueState=Ll={}));Qt.varKinds={const:new Jt.Name("const"),let:new Jt.Name("let"),var:new Jt.Name("var")};var Dl=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Jt.Name?t:this.name(t)}name(t){return new Jt.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};Qt.Scope=Dl;var Fl=class extends Jt.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Jt._)`.${new Jt.Name(r)}[${n}]`}};Qt.ValueScopeName=Fl;var GL=(0,Jt._)`\n`,Mm=class extends Dl{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?GL:Jt.nil}}get(){return this._scope}name(t){return new Fl(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:o}=i,s=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[o];if(a){let u=a.get(s);if(u)return u}else a=this._values[o]=new Map;a.set(s,i);let c=this._scope[o]||(this._scope[o]=[]),l=c.length;return c[l]=r.ref,i.setValue(r,{property:o,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Jt._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let o=Jt.nil;for(let s in t){let a=t[s];if(!a)continue;let c=n[s]=n[s]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,Ll.Started);let u=r(l);if(u){let p=this.opts.es5?Qt.varKinds.var:Qt.varKinds.const;o=(0,Jt._)`${o}${p} ${l} = ${u};${this.opts._n}`}else if(u=i==null?void 0:i(l))o=(0,Jt._)`${o}${u}${this.opts._n}`;else throw new jm(l);c.set(l,Ll.Completed)})}return o}};Qt.ValueScope=Mm});var oe=x(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.CodeGen=be.operators=be.varKinds=be.ValueScopeName=be.ValueScope=be.Scope=be.Name=be.regexpCode=be.stringify=be.getProperty=be.nil=be.strConcat=be.str=be._=void 0;be.not=tS;be.and=XL;be.or=QL;var ve=Sa(),qr=Lm(),Yn=Sa();Object.defineProperty(be,"_",{enumerable:!0,get:function(){return Yn._}});Object.defineProperty(be,"str",{enumerable:!0,get:function(){return Yn.str}});Object.defineProperty(be,"strConcat",{enumerable:!0,get:function(){return Yn.strConcat}});Object.defineProperty(be,"nil",{enumerable:!0,get:function(){return Yn.nil}});Object.defineProperty(be,"getProperty",{enumerable:!0,get:function(){return Yn.getProperty}});Object.defineProperty(be,"stringify",{enumerable:!0,get:function(){return Yn.stringify}});Object.defineProperty(be,"regexpCode",{enumerable:!0,get:function(){return Yn.regexpCode}});Object.defineProperty(be,"Name",{enumerable:!0,get:function(){return Yn.Name}});var zl=Lm();Object.defineProperty(be,"Scope",{enumerable:!0,get:function(){return zl.Scope}});Object.defineProperty(be,"ValueScope",{enumerable:!0,get:function(){return zl.ValueScope}});Object.defineProperty(be,"ValueScopeName",{enumerable:!0,get:function(){return zl.ValueScopeName}});Object.defineProperty(be,"varKinds",{enumerable:!0,get:function(){return zl.varKinds}});be.operators={GT:new ve._Code(">"),GTE:new ve._Code(">="),LT:new ve._Code("<"),LTE:new ve._Code("<="),EQ:new ve._Code("==="),NEQ:new ve._Code("!=="),NOT:new ve._Code("!"),OR:new ve._Code("||"),AND:new ve._Code("&&"),ADD:new ve._Code("+")};var xn=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},Dm=class extends xn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?qr.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=zo(this.rhs,t,r)),this}get names(){return this.rhs instanceof ve._CodeOrName?this.rhs.names:{}}},Bl=class extends xn{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof ve.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=zo(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ve.Name?{}:{...this.lhs.names};return Vl(t,this.rhs)}},Fm=class extends Bl{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},Bm=class extends xn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},Um=class extends xn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},Vm=class extends xn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},zm=class extends xn{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=zo(this.code,t,r),this}get names(){return this.code instanceof ve._CodeOrName?this.code.names:{}}},_a=class extends xn{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(t,r)||(YL(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Wi(t,r.names),{})}},wn=class extends _a{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Hm=class extends _a{},Vo=class extends wn{};Vo.kind="else";var Gi=class e extends wn{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new Vo(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(tS(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=zo(this.condition,t,r),this}get names(){let t=super.names;return Vl(t,this.condition),this.else&&Wi(t,this.else.names),t}};Gi.kind="if";var Yi=class extends wn{};Yi.kind="for";var Km=class extends Yi{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=zo(this.iteration,t,r),this}get names(){return Wi(super.names,this.iteration.names)}},Gm=class extends Yi{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?qr.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(t)}get names(){let t=Vl(super.names,this.from);return Vl(t,this.to)}},Ul=class extends Yi{constructor(t,r,n,i){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=zo(this.iterable,t,r),this}get names(){return Wi(super.names,this.iterable.names)}},Oa=class extends wn{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};Oa.kind="func";var $a=class extends _a{render(t){return"return "+super.render(t)}};$a.kind="return";var Ym=class extends wn{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,i;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(i=this.finally)===null||i===void 0||i.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&Wi(t,this.catch.names),this.finally&&Wi(t,this.finally.names),t}},Pa=class extends wn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Pa.kind="catch";var Ea=class extends wn{render(t){return"finally"+super.render(t)}};Ea.kind="finally";var Wm=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
2
- `:""},this._extScope=t,this._scope=new qr.Scope({parent:t}),this._nodes=[new Hm]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let o=this._scope.toName(r);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new Dm(t,o,n)),o}const(t,r,n){return this._def(qr.varKinds.const,t,r,n)}let(t,r,n){return this._def(qr.varKinds.let,t,r,n)}var(t,r,n){return this._def(qr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Bl(t,r,n))}add(t,r){return this._leafNode(new Fm(t,be.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ve.nil&&this._leafNode(new zm(t)),this}object(...t){let r=["{"];for(let[n,i]of t)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,ve.addCodeArg)(r,i));return r.push("}"),new ve._Code(r)}if(t,r,n){if(this._blockNode(new Gi(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new Gi(t))}else(){return this._elseNode(new Vo)}endIf(){return this._endBlockNode(Gi,Vo)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Km(t),r)}forRange(t,r,n,i,o=this.opts.es5?qr.varKinds.var:qr.varKinds.let){let s=this._scope.toName(t);return this._for(new Gm(o,s,r,n),()=>i(s))}forOf(t,r,n,i=qr.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let s=r instanceof ve.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ve._)`${s}.length`,a=>{this.var(o,(0,ve._)`${s}[${a}]`),n(o)})}return this._for(new Ul("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?qr.varKinds.var:qr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ve._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new Ul("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(Yi)}label(t){return this._leafNode(new Bm(t))}break(t){return this._leafNode(new Um(t))}return(t){let r=new $a;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode($a)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Ym;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new Pa(o),r(o)}return n&&(this._currNode=i.finally=new Ea,this.code(n)),this._endBlockNode(Pa,Ea)}throw(t){return this._leafNode(new Vm(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=ve.nil,n,i){return this._blockNode(new Oa(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Oa)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof Gi))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};be.CodeGen=Wm;function Wi(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function Vl(e,t){return t instanceof ve._CodeOrName?Wi(e,t.names):e}function zo(e,t,r){if(e instanceof ve.Name)return n(e);if(!i(e))return e;return new ve._Code(e._items.reduce((o,s)=>(s instanceof ve.Name&&(s=n(s)),s instanceof ve._Code?o.push(...s._items):o.push(s),o),[]));function n(o){let s=r[o.str];return s===void 0||t[o.str]!==1?o:(delete t[o.str],s)}function i(o){return o instanceof ve._Code&&o._items.some(s=>s instanceof ve.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function YL(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function tS(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ve._)`!${Xm(e)}`}var WL=rS(be.operators.AND);function XL(...e){return e.reduce(WL)}var JL=rS(be.operators.OR);function QL(...e){return e.reduce(JL)}function rS(e){return(t,r)=>t===ve.nil?r:r===ve.nil?t:(0,ve._)`${Xm(t)} ${e} ${Xm(r)}`}function Xm(e){return e instanceof ve.Name?e:(0,ve._)`(${e})`}});var ye=x(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.Type=Ye.mergeEvaluated=void 0;Ye.toHash=e9;Ye.alwaysValidSchema=t9;Ye.checkUnknownRules=oS;Ye.schemaHasRules=sS;Ye.schemaHasRulesButRef=r9;Ye.schemaRefOrVal=n9;Ye.unescapeFragment=i9;Ye.escapeFragment=o9;Ye.escapeJsonPointer=Qm;Ye.unescapeJsonPointer=aS;Ye.eachItem=s9;Ye.evaluatedPropsToName=cS;Ye.setEvaluated=Zm;Ye.useFunc=a9;Ye.getErrorPath=c9;Ye.checkStrictMode=lS;var ke=oe(),ZL=Sa();function e9(e){let t={};for(let r of e)t[r]=!0;return t}function t9(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(oS(e,t),!sS(t,e.self.RULES.all))}function oS(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let o in t)i[o]||lS(e,`unknown keyword: "${o}"`)}function sS(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}function r9(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}function n9({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,ke._)`${r}`}return(0,ke._)`${e}${t}${(0,ke.getProperty)(n)}`}function i9(e){return aS(decodeURIComponent(e))}function o9(e){return encodeURIComponent(Qm(e))}function Qm(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function aS(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function s9(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}function nS({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,s,a)=>{let c=s===void 0?o:s instanceof ke.Name?(o instanceof ke.Name?e(i,o,s):t(i,o,s),s):o instanceof ke.Name?(t(i,s,o),o):r(o,s);return a===ke.Name&&!(c instanceof ke.Name)?n(i,c):c}}Ye.mergeEvaluated={props:nS({mergeNames:(e,t,r)=>e.if((0,ke._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,ke._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,ke._)`${r} || {}`).code((0,ke._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,ke._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,ke._)`${r} || {}`),Zm(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:cS}),items:nS({mergeNames:(e,t,r)=>e.if((0,ke._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,ke._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,ke._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,ke._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function cS(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,ke._)`{}`);return t!==void 0&&Zm(e,r,t),r}function Zm(e,t,r){Object.keys(r).forEach(n=>e.assign((0,ke._)`${t}${(0,ke.getProperty)(n)}`,!0))}var iS={};function a9(e,t){return e.scopeValue("func",{ref:t,code:iS[t.code]||(iS[t.code]=new ZL._Code(t.code))})}var Jm;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Jm||(Ye.Type=Jm={}));function c9(e,t,r){if(e instanceof ke.Name){let n=t===Jm.Num;return r?n?(0,ke._)`"[" + ${e} + "]"`:(0,ke._)`"['" + ${e} + "']"`:n?(0,ke._)`"/" + ${e}`:(0,ke._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,ke.getProperty)(e).toString():"/"+Qm(e)}function lS(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}});var vr=x(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});var vt=oe(),l9={data:new vt.Name("data"),valCxt:new vt.Name("valCxt"),instancePath:new vt.Name("instancePath"),parentData:new vt.Name("parentData"),parentDataProperty:new vt.Name("parentDataProperty"),rootData:new vt.Name("rootData"),dynamicAnchors:new vt.Name("dynamicAnchors"),isAllOfVariant:new vt.Name("isAllOfVariant"),vErrors:new vt.Name("vErrors"),errors:new vt.Name("errors"),this:new vt.Name("this"),self:new vt.Name("self"),scope:new vt.Name("scope"),json:new vt.Name("json"),jsonPos:new vt.Name("jsonPos"),jsonLen:new vt.Name("jsonLen"),jsonPart:new vt.Name("jsonPart")};eh.default=l9});var Aa=x(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.keyword$DataError=xr.keywordError=void 0;xr.reportError=u9;xr.reportExtraError=p9;xr.resetErrorsCount=f9;xr.extendErrors=d9;var we=oe(),Hl=ye(),Ft=vr();xr.keywordError={message:({keyword:e})=>(0,we.str)`must pass "${e}" keyword validation`};xr.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,we.str)`"${e}" keyword must be ${t} ($data)`:(0,we.str)`"${e}" keyword is invalid ($data)`};function u9(e,t=xr.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:s,allErrors:a}=i,c=fS(e,t,r);(n!=null?n:s||a)?uS(o,c):pS(i,(0,we._)`[${c}]`)}function p9(e,t=xr.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:s}=n,a=fS(e,t,r);uS(i,a),o||s||pS(n,Ft.default.vErrors)}function f9(e,t){e.assign(Ft.default.errors,t),e.if((0,we._)`${Ft.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,we._)`${Ft.default.vErrors}.length`,t),()=>e.assign(Ft.default.vErrors,null)))}function d9({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let s=e.name("err");e.forRange("i",i,Ft.default.errors,a=>{e.const(s,(0,we._)`${Ft.default.vErrors}[${a}]`),e.if((0,we._)`${s}.instancePath === undefined`,()=>e.assign((0,we._)`${s}.instancePath`,(0,we.strConcat)(Ft.default.instancePath,o.errorPath))),e.assign((0,we._)`${s}.schemaPath`,(0,we.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,we._)`${s}.schema`,r),e.assign((0,we._)`${s}.data`,n))})}function uS(e,t){let r=e.const("err",t);e.if((0,we._)`${Ft.default.vErrors} === null`,()=>e.assign(Ft.default.vErrors,(0,we._)`[${r}]`),(0,we._)`${Ft.default.vErrors}.push(${r})`),e.code((0,we._)`${Ft.default.errors}++`)}function pS(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,we._)`new ${e.ValidationError}(${t})`):(r.assign((0,we._)`${n}.errors`,t),r.return(!1))}var Xi={keyword:new we.Name("keyword"),schemaPath:new we.Name("schemaPath"),params:new we.Name("params"),propertyName:new we.Name("propertyName"),message:new we.Name("message"),schema:new we.Name("schema"),parentSchema:new we.Name("parentSchema")};function fS(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,we._)`{}`:m9(e,t,r)}function m9(e,t,r={}){let{gen:n,it:i}=e,o=[h9(i,r),y9(e,r)];return g9(e,t,o),n.object(...o)}function h9({errorPath:e},{instancePath:t}){let r=t?(0,we.str)`${e}${(0,Hl.getErrorPath)(t,Hl.Type.Str)}`:e;return[Ft.default.instancePath,(0,we.strConcat)(Ft.default.instancePath,r)]}function y9({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,we.str)`${t}/${e}`;return r&&(i=(0,we.str)`${i}${(0,Hl.getErrorPath)(r,Hl.Type.Str)}`),[Xi.schemaPath,i]}function g9(e,{params:t,message:r},n){let{keyword:i,data:o,schemaValue:s,it:a}=e,{opts:c,propertyName:l,topSchemaRef:u,schemaPath:p}=a;n.push([Xi.keyword,i],[Xi.params,typeof t=="function"?t(e):t||(0,we._)`{}`]),c.messages&&n.push([Xi.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([Xi.schema,s],[Xi.parentSchema,(0,we._)`${u}${p}`],[Ft.default.data,o]),l&&n.push([Xi.propertyName,l])}});var mS=x(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.topBoolOrEmptySchema=S9;Kl.boolOrEmptySchema=_9;var b9=Aa(),v9=oe(),x9=vr(),w9={message:"boolean schema is false"};function S9(e){let{gen:t,schema:r,validateName:n}=e;r===!1?dS(e,!1):typeof r=="object"&&r.$async===!0?t.return(x9.default.data):(t.assign((0,v9._)`${n}.errors`,null),t.return(!0))}function _9(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),dS(e)):r.var(t,!0)}function dS(e,t){let{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,b9.reportError)(i,w9,void 0,t)}});var th=x(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.isJSONType=P9;Gl.getRules=E9;var O9=["string","number","integer","boolean","null","object","array"],$9=new Set(O9);function P9(e){return typeof e=="string"&&$9.has(e)}function E9(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}});var rh=x(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.schemaHasRulesForType=A9;Ca.shouldUseGroup=hS;Ca.shouldUseRule=yS;function A9({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&hS(e,n)}function hS(e,t){return t.rules.some(r=>yS(e,r))}function yS(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}});var Ra=x(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.DataType=void 0;Jr.getSchemaTypes=N9;Jr.getJSONTypes=bS;Jr.coerceAndCheckDataType=I9;Jr.checkDataType=nh;Jr.checkDataTypes=ih;Jr.reportTypeError=oh;var C9=th(),R9=rh(),T9=Aa(),ae=oe(),gS=ye(),Ho;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Ho||(Jr.DataType=Ho={}));function N9(e){let t=bS(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}function bS(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(C9.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}function I9(e,t){let{gen:r,data:n,opts:i}=e,o=k9(t,i.coerceTypes),s=t.length>0&&!(o.length===0&&t.length===1&&(0,R9.schemaHasRulesForType)(e,t[0]));if(s){let a=ih(t,n,i.strictNumbers,Ho.Wrong);r.if(a,()=>{o.length?q9(e,t,o):oh(e)})}return s}var vS=new Set(["string","number","integer","boolean","null"]);function k9(e,t){return t?e.filter(r=>vS.has(r)||t==="array"&&r==="array"):[]}function q9(e,t,r){let{gen:n,data:i,opts:o}=e,s=n.let("dataType",(0,ae._)`typeof ${i}`),a=n.let("coerced",(0,ae._)`undefined`);o.coerceTypes==="array"&&n.if((0,ae._)`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,ae._)`${i}[0]`).assign(s,(0,ae._)`typeof ${i}`).if(ih(t,i,o.strictNumbers),()=>n.assign(a,i))),n.if((0,ae._)`${a} !== undefined`);for(let l of r)(vS.has(l)||l==="array"&&o.coerceTypes==="array")&&c(l);n.else(),oh(e),n.endIf(),n.if((0,ae._)`${a} !== undefined`,()=>{n.assign(i,a),j9(e,a)});function c(l){switch(l){case"string":n.elseIf((0,ae._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,ae._)`"" + ${i}`).elseIf((0,ae._)`${i} === null`).assign(a,(0,ae._)`""`);return;case"number":n.elseIf((0,ae._)`${s} == "boolean" || ${i} === null
1
+ var Fq=Object.create;var vl=Object.defineProperty;var Bq=Object.getOwnPropertyDescriptor;var Uq=Object.getOwnPropertyNames;var Vq=Object.getPrototypeOf,zq=Object.prototype.hasOwnProperty;var x=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),jd=(e,t)=>{for(var r in t)vl(e,r,{get:t[r],enumerable:!0})},V1=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Uq(t))!zq.call(e,i)&&i!==r&&vl(e,i,{get:()=>t[i],enumerable:!(n=Bq(t,i))||n.enumerable});return e};var Ee=(e,t,r)=>(r=e!=null?Fq(Vq(e)):{},V1(t||!e||!e.__esModule?vl(r,"default",{value:e,enumerable:!0}):r,e)),Hq=e=>V1(vl({},"__esModule",{value:!0}),e);var Bd=x((Dd,Fd)=>{(function(e,t){typeof require=="function"&&typeof Dd=="object"&&typeof Fd=="object"?Fd.exports=t():typeof define=="function"&&define.amd?define(function(){return t()}):e.pluralize=t()})(Dd,function(){var e=[],t=[],r={},n={},i={};function o(d){return typeof d=="string"?new RegExp("^"+d+"$","i"):d}function s(d,f){return d===f?f:d===d.toLowerCase()?f.toLowerCase():d===d.toUpperCase()?f.toUpperCase():d[0]===d[0].toUpperCase()?f.charAt(0).toUpperCase()+f.substr(1).toLowerCase():f.toLowerCase()}function a(d,f){return d.replace(/\$(\d{1,2})/g,function(h,y){return f[y]||""})}function c(d,f){return d.replace(f[0],function(h,y){var b=a(f[1],arguments);return s(h===""?d[y-1]:h,b)})}function l(d,f,h){if(!d.length||r.hasOwnProperty(d))return f;for(var y=h.length;y--;){var b=h[y];if(b[0].test(f))return c(f,b)}return f}function u(d,f,h){return function(y){var b=y.toLowerCase();return f.hasOwnProperty(b)?s(y,b):d.hasOwnProperty(b)?s(y,d[b]):l(b,y,h)}}function p(d,f,h,y){return function(b){var g=b.toLowerCase();return f.hasOwnProperty(g)?!0:d.hasOwnProperty(g)?!1:l(g,g,h)===g}}function m(d,f,h){var y=f===1?m.singular(d):m.plural(d);return(h?f+" ":"")+y}return m.plural=u(i,n,e),m.isPlural=p(i,n,e),m.singular=u(n,i,t),m.isSingular=p(n,i,t),m.addPluralRule=function(d,f){e.push([o(d),f])},m.addSingularRule=function(d,f){t.push([o(d),f])},m.addUncountableRule=function(d){if(typeof d=="string"){r[d.toLowerCase()]=!0;return}m.addPluralRule(d,"$0"),m.addSingularRule(d,"$0")},m.addIrregularRule=function(d,f){f=f.toLowerCase(),d=d.toLowerCase(),i[d]=f,n[f]=d},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(d){return m.addIrregularRule(d[0],d[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(d){return m.addPluralRule(d[0],d[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(d){return m.addSingularRule(d[0],d[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(m.addUncountableRule),m})});var ma=x((Tne,W1)=>{"use strict";var H1="[^\\\\/]",Kq="(?=.)",K1="[^/]",Vd="(?:\\/|$)",G1="(?:^|\\/)",zd=`\\.{1,2}${Vd}`,Gq="(?!\\.)",Yq=`(?!${G1}${zd})`,Wq=`(?!\\.{0,1}${Vd})`,Xq=`(?!${zd})`,Jq="[^.\\/]",Qq=`${K1}*?`,Zq="/",Y1={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:Kq,QMARK:K1,END_ANCHOR:Vd,DOTS_SLASH:zd,NO_DOT:Gq,NO_DOTS:Yq,NO_DOT_SLASH:Wq,NO_DOTS_SLASH:Xq,QMARK_NO_DOT:Jq,STAR:Qq,START_ANCHOR:G1,SEP:Zq},ej={...Y1,SLASH_LITERAL:"[\\\\/]",QMARK:H1,STAR:`${H1}*?`,DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},tj={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};W1.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:tj,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?ej:Y1}}});var ha=x(Yt=>{"use strict";var{REGEX_BACKSLASH:rj,REGEX_REMOVE_BACKSLASH:nj,REGEX_SPECIAL_CHARS:ij,REGEX_SPECIAL_CHARS_GLOBAL:oj}=ma();Yt.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);Yt.hasRegexChars=e=>ij.test(e);Yt.isRegexChar=e=>e.length===1&&Yt.hasRegexChars(e);Yt.escapeRegex=e=>e.replace(oj,"\\$1");Yt.toPosixSlashes=e=>e.replace(rj,"/");Yt.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let e=navigator.platform.toLowerCase();return e==="win32"||e==="windows"}return typeof process<"u"&&process.platform?process.platform==="win32":!1};Yt.removeBackslashes=e=>e.replace(nj,t=>t==="\\"?"":t);Yt.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?Yt.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};Yt.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};Yt.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",o=`${n}(?:${e})${i}`;return t.negated===!0&&(o=`(?:^(?!${o}).*$)`),o};Yt.basename=(e,{windows:t}={})=>{let r=e.split(t?/[\\/]/:"/"),n=r[r.length-1];return n===""?r[r.length-2]:n}});var nx=x((Ine,rx)=>{"use strict";var X1=ha(),{CHAR_ASTERISK:Hd,CHAR_AT:sj,CHAR_BACKWARD_SLASH:ya,CHAR_COMMA:aj,CHAR_DOT:Kd,CHAR_EXCLAMATION_MARK:Gd,CHAR_FORWARD_SLASH:tx,CHAR_LEFT_CURLY_BRACE:Yd,CHAR_LEFT_PARENTHESES:Wd,CHAR_LEFT_SQUARE_BRACKET:cj,CHAR_PLUS:lj,CHAR_QUESTION_MARK:J1,CHAR_RIGHT_CURLY_BRACE:uj,CHAR_RIGHT_PARENTHESES:Q1,CHAR_RIGHT_SQUARE_BRACKET:pj}=ma(),Z1=e=>e===tx||e===ya,ex=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},fj=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,o=[],s=[],a=[],c=e,l=-1,u=0,p=0,m=!1,d=!1,f=!1,h=!1,y=!1,b=!1,g=!1,v=!1,_=!1,w=!1,N=0,S,O,P={value:"",depth:0,isGlob:!1},E=()=>l>=n,R=()=>c.charCodeAt(l+1),A=()=>(S=O,c.charCodeAt(++l));for(;l<n;){O=A();let D;if(O===ya){g=P.backslashes=!0,O=A(),O===Yd&&(b=!0);continue}if(b===!0||O===Yd){for(N++;E()!==!0&&(O=A());){if(O===ya){g=P.backslashes=!0,A();continue}if(O===Yd){N++;continue}if(b!==!0&&O===Kd&&(O=A())===Kd){if(m=P.isBrace=!0,f=P.isGlob=!0,w=!0,i===!0)continue;break}if(b!==!0&&O===aj){if(m=P.isBrace=!0,f=P.isGlob=!0,w=!0,i===!0)continue;break}if(O===uj&&(N--,N===0)){b=!1,m=P.isBrace=!0,w=!0;break}}if(i===!0)continue;break}if(O===tx){if(o.push(l),s.push(P),P={value:"",depth:0,isGlob:!1},w===!0)continue;if(S===Kd&&l===u+1){u+=2;continue}p=l+1;continue}if(r.noext!==!0&&(O===lj||O===sj||O===Hd||O===J1||O===Gd)===!0&&R()===Wd){if(f=P.isGlob=!0,h=P.isExtglob=!0,w=!0,O===Gd&&l===u&&(_=!0),i===!0){for(;E()!==!0&&(O=A());){if(O===ya){g=P.backslashes=!0,O=A();continue}if(O===Q1){f=P.isGlob=!0,w=!0;break}}continue}break}if(O===Hd){if(S===Hd&&(y=P.isGlobstar=!0),f=P.isGlob=!0,w=!0,i===!0)continue;break}if(O===J1){if(f=P.isGlob=!0,w=!0,i===!0)continue;break}if(O===cj){for(;E()!==!0&&(D=A());){if(D===ya){g=P.backslashes=!0,A();continue}if(D===pj){d=P.isBracket=!0,f=P.isGlob=!0,w=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&O===Gd&&l===u){v=P.negated=!0,u++;continue}if(r.noparen!==!0&&O===Wd){if(f=P.isGlob=!0,i===!0){for(;E()!==!0&&(O=A());){if(O===Wd){g=P.backslashes=!0,O=A();continue}if(O===Q1){w=!0;break}}continue}break}if(f===!0){if(w=!0,i===!0)continue;break}}r.noext===!0&&(h=!1,f=!1);let I=c,C="",$="";u>0&&(C=c.slice(0,u),c=c.slice(u),p-=u),I&&f===!0&&p>0?(I=c.slice(0,p),$=c.slice(p)):f===!0?(I="",$=c):I=c,I&&I!==""&&I!=="/"&&I!==c&&Z1(I.charCodeAt(I.length-1))&&(I=I.slice(0,-1)),r.unescape===!0&&($&&($=X1.removeBackslashes($)),I&&g===!0&&(I=X1.removeBackslashes(I)));let L={prefix:C,input:e,start:u,base:I,glob:$,isBrace:m,isBracket:d,isGlob:f,isExtglob:h,isGlobstar:y,negated:v,negatedExtglob:_};if(r.tokens===!0&&(L.maxDepth=0,Z1(O)||s.push(P),L.tokens=s),r.parts===!0||r.tokens===!0){let D;for(let k=0;k<o.length;k++){let q=D?D+1:u,V=o[k],z=e.slice(q,V);r.tokens&&(k===0&&u!==0?(s[k].isPrefix=!0,s[k].value=C):s[k].value=z,ex(s[k]),L.maxDepth+=s[k].depth),(k!==0||z!=="")&&a.push(z),D=V}if(D&&D+1<e.length){let k=e.slice(D+1);a.push(k),r.tokens&&(s[s.length-1].value=k,ex(s[s.length-1]),L.maxDepth+=s[s.length-1].depth)}L.slashes=o,L.parts=a}return L};rx.exports=fj});var sx=x((kne,ox)=>{"use strict";var wl=ma(),Yr=ha(),{MAX_LENGTH:Sl,POSIX_REGEX_SOURCE:dj,REGEX_NON_SPECIAL_CHARS:mj,REGEX_SPECIAL_CHARS_BACKREF:hj,REPLACEMENTS:ix}=wl,yj=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>Yr.escapeRegex(i)).join("..")}return r},Mo=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Xd=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=ix[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Sl,r.maxLength):Sl,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let o={type:"bos",value:"",output:r.prepend||""},s=[o],a=r.capture?"":"?:",c=wl.globChars(r.windows),l=wl.extglobChars(c),{DOT_LITERAL:u,PLUS_LITERAL:p,SLASH_LITERAL:m,ONE_CHAR:d,DOTS_SLASH:f,NO_DOT:h,NO_DOT_SLASH:y,NO_DOTS_SLASH:b,QMARK:g,QMARK_NO_DOT:v,STAR:_,START_ANCHOR:w}=c,N=F=>`(${a}(?:(?!${w}${F.dot?f:u}).)*?)`,S=r.dot?"":h,O=r.dot?g:v,P=r.bash===!0?N(r):_;r.capture&&(P=`(${P})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let E={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:s};e=Yr.removePrefix(e,E),i=e.length;let R=[],A=[],I=[],C=o,$,L=()=>E.index===i-1,D=E.peek=(F=1)=>e[E.index+F],k=E.advance=()=>e[++E.index]||"",q=()=>e.slice(E.index+1),V=(F="",ue=0)=>{E.consumed+=F,E.index+=ue},z=F=>{E.output+=F.output!=null?F.output:F.value,V(F.value)},ne=()=>{let F=1;for(;D()==="!"&&(D(2)!=="("||D(3)==="?");)k(),E.start++,F++;return F%2===0?!1:(E.negated=!0,E.start++,!0)},fe=F=>{E[F]++,I.push(F)},Ae=F=>{E[F]--,I.pop()},H=F=>{if(C.type==="globstar"){let ue=E.braces>0&&(F.type==="comma"||F.type==="brace"),M=F.extglob===!0||R.length&&(F.type==="pipe"||F.type==="paren");F.type!=="slash"&&F.type!=="paren"&&!ue&&!M&&(E.output=E.output.slice(0,-C.output.length),C.type="star",C.value="*",C.output=P,E.output+=C.output)}if(R.length&&F.type!=="paren"&&(R[R.length-1].inner+=F.value),(F.value||F.output)&&z(F),C&&C.type==="text"&&F.type==="text"){C.output=(C.output||C.value)+F.value,C.value+=F.value;return}F.prev=C,s.push(F),C=F},Y=(F,ue)=>{let M={...l[ue],conditions:1,inner:""};M.prev=C,M.parens=E.parens,M.output=E.output;let de=(r.capture?"(":"")+M.open;fe("parens"),H({type:F,value:ue,output:E.output?"":d}),H({type:"paren",extglob:!0,value:k(),output:de}),R.push(M)},le=F=>{let ue=F.close+(r.capture?")":""),M;if(F.type==="negate"){let de=P;if(F.inner&&F.inner.length>1&&F.inner.includes("/")&&(de=N(r)),(de!==P||L()||/^\)+$/.test(q()))&&(ue=F.close=`)$))${de}`),F.inner.includes("*")&&(M=q())&&/^\.[^\\/.]+$/.test(M)){let je=Xd(M,{...t,fastpaths:!1}).output;ue=F.close=`)${je})${de})`}F.prev.type==="bos"&&(E.negatedExtglob=!0)}H({type:"paren",extglob:!0,value:$,output:ue}),Ae("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let F=!1,ue=e.replace(hj,(M,de,je,We,st,qd)=>We==="\\"?(F=!0,M):We==="?"?de?de+We+(st?g.repeat(st.length):""):qd===0?O+(st?g.repeat(st.length):""):g.repeat(je.length):We==="."?u.repeat(je.length):We==="*"?de?de+We+(st?P:""):P:de?M:`\\${M}`);return F===!0&&(r.unescape===!0?ue=ue.replace(/\\/g,""):ue=ue.replace(/\\+/g,M=>M.length%2===0?"\\\\":M?"\\":"")),ue===e&&r.contains===!0?(E.output=e,E):(E.output=Yr.wrapOutput(ue,E,t),E)}for(;!L();){if($=k(),$==="\0")continue;if($==="\\"){let M=D();if(M==="/"&&r.bash!==!0||M==="."||M===";")continue;if(!M){$+="\\",H({type:"text",value:$});continue}let de=/^\\+/.exec(q()),je=0;if(de&&de[0].length>2&&(je=de[0].length,E.index+=je,je%2!==0&&($+="\\")),r.unescape===!0?$=k():$+=k(),E.brackets===0){H({type:"text",value:$});continue}}if(E.brackets>0&&($!=="]"||C.value==="["||C.value==="[^")){if(r.posix!==!1&&$===":"){let M=C.value.slice(1);if(M.includes("[")&&(C.posix=!0,M.includes(":"))){let de=C.value.lastIndexOf("["),je=C.value.slice(0,de),We=C.value.slice(de+2),st=dj[We];if(st){C.value=je+st,E.backtrack=!0,k(),!o.output&&s.indexOf(C)===1&&(o.output=d);continue}}}($==="["&&D()!==":"||$==="-"&&D()==="]")&&($=`\\${$}`),$==="]"&&(C.value==="["||C.value==="[^")&&($=`\\${$}`),r.posix===!0&&$==="!"&&C.value==="["&&($="^"),C.value+=$,z({value:$});continue}if(E.quotes===1&&$!=='"'){$=Yr.escapeRegex($),C.value+=$,z({value:$});continue}if($==='"'){E.quotes=E.quotes===1?0:1,r.keepQuotes===!0&&H({type:"text",value:$});continue}if($==="("){fe("parens"),H({type:"paren",value:$});continue}if($===")"){if(E.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Mo("opening","("));let M=R[R.length-1];if(M&&E.parens===M.parens+1){le(R.pop());continue}H({type:"paren",value:$,output:E.parens?")":"\\)"}),Ae("parens");continue}if($==="["){if(r.nobracket===!0||!q().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Mo("closing","]"));$=`\\${$}`}else fe("brackets");H({type:"bracket",value:$});continue}if($==="]"){if(r.nobracket===!0||C&&C.type==="bracket"&&C.value.length===1){H({type:"text",value:$,output:`\\${$}`});continue}if(E.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Mo("opening","["));H({type:"text",value:$,output:`\\${$}`});continue}Ae("brackets");let M=C.value.slice(1);if(C.posix!==!0&&M[0]==="^"&&!M.includes("/")&&($=`/${$}`),C.value+=$,z({value:$}),r.literalBrackets===!1||Yr.hasRegexChars(M))continue;let de=Yr.escapeRegex(C.value);if(E.output=E.output.slice(0,-C.value.length),r.literalBrackets===!0){E.output+=de,C.value=de;continue}C.value=`(${a}${de}|${C.value})`,E.output+=C.value;continue}if($==="{"&&r.nobrace!==!0){fe("braces");let M={type:"brace",value:$,output:"(",outputIndex:E.output.length,tokensIndex:E.tokens.length};A.push(M),H(M);continue}if($==="}"){let M=A[A.length-1];if(r.nobrace===!0||!M){H({type:"text",value:$,output:$});continue}let de=")";if(M.dots===!0){let je=s.slice(),We=[];for(let st=je.length-1;st>=0&&(s.pop(),je[st].type!=="brace");st--)je[st].type!=="dots"&&We.unshift(je[st].value);de=yj(We,r),E.backtrack=!0}if(M.comma!==!0&&M.dots!==!0){let je=E.output.slice(0,M.outputIndex),We=E.tokens.slice(M.tokensIndex);M.value=M.output="\\{",$=de="\\}",E.output=je;for(let st of We)E.output+=st.output||st.value}H({type:"brace",value:$,output:de}),Ae("braces"),A.pop();continue}if($==="|"){R.length>0&&R[R.length-1].conditions++,H({type:"text",value:$});continue}if($===","){let M=$,de=A[A.length-1];de&&I[I.length-1]==="braces"&&(de.comma=!0,M="|"),H({type:"comma",value:$,output:M});continue}if($==="/"){if(C.type==="dot"&&E.index===E.start+1){E.start=E.index+1,E.consumed="",E.output="",s.pop(),C=o;continue}H({type:"slash",value:$,output:m});continue}if($==="."){if(E.braces>0&&C.type==="dot"){C.value==="."&&(C.output=u);let M=A[A.length-1];C.type="dots",C.output+=$,C.value+=$,M.dots=!0;continue}if(E.braces+E.parens===0&&C.type!=="bos"&&C.type!=="slash"){H({type:"text",value:$,output:u});continue}H({type:"dot",value:$,output:u});continue}if($==="?"){if(!(C&&C.value==="(")&&r.noextglob!==!0&&D()==="("&&D(2)!=="?"){Y("qmark",$);continue}if(C&&C.type==="paren"){let de=D(),je=$;(C.value==="("&&!/[!=<:]/.test(de)||de==="<"&&!/<([!=]|\w+>)/.test(q()))&&(je=`\\${$}`),H({type:"text",value:$,output:je});continue}if(r.dot!==!0&&(C.type==="slash"||C.type==="bos")){H({type:"qmark",value:$,output:v});continue}H({type:"qmark",value:$,output:g});continue}if($==="!"){if(r.noextglob!==!0&&D()==="("&&(D(2)!=="?"||!/[!=<:]/.test(D(3)))){Y("negate",$);continue}if(r.nonegate!==!0&&E.index===0){ne();continue}}if($==="+"){if(r.noextglob!==!0&&D()==="("&&D(2)!=="?"){Y("plus",$);continue}if(C&&C.value==="("||r.regex===!1){H({type:"plus",value:$,output:p});continue}if(C&&(C.type==="bracket"||C.type==="paren"||C.type==="brace")||E.parens>0){H({type:"plus",value:$});continue}H({type:"plus",value:p});continue}if($==="@"){if(r.noextglob!==!0&&D()==="("&&D(2)!=="?"){H({type:"at",extglob:!0,value:$,output:""});continue}H({type:"text",value:$});continue}if($!=="*"){($==="$"||$==="^")&&($=`\\${$}`);let M=mj.exec(q());M&&($+=M[0],E.index+=M[0].length),H({type:"text",value:$});continue}if(C&&(C.type==="globstar"||C.star===!0)){C.type="star",C.star=!0,C.value+=$,C.output=P,E.backtrack=!0,E.globstar=!0,V($);continue}let F=q();if(r.noextglob!==!0&&/^\([^?]/.test(F)){Y("star",$);continue}if(C.type==="star"){if(r.noglobstar===!0){V($);continue}let M=C.prev,de=M.prev,je=M.type==="slash"||M.type==="bos",We=de&&(de.type==="star"||de.type==="globstar");if(r.bash===!0&&(!je||F[0]&&F[0]!=="/")){H({type:"star",value:$,output:""});continue}let st=E.braces>0&&(M.type==="comma"||M.type==="brace"),qd=R.length&&(M.type==="pipe"||M.type==="paren");if(!je&&M.type!=="paren"&&!st&&!qd){H({type:"star",value:$,output:""});continue}for(;F.slice(0,3)==="/**";){let bl=e[E.index+4];if(bl&&bl!=="/")break;F=F.slice(3),V("/**",3)}if(M.type==="bos"&&L()){C.type="globstar",C.value+=$,C.output=N(r),E.output=C.output,E.globstar=!0,V($);continue}if(M.type==="slash"&&M.prev.type!=="bos"&&!We&&L()){E.output=E.output.slice(0,-(M.output+C.output).length),M.output=`(?:${M.output}`,C.type="globstar",C.output=N(r)+(r.strictSlashes?")":"|$)"),C.value+=$,E.globstar=!0,E.output+=M.output+C.output,V($);continue}if(M.type==="slash"&&M.prev.type!=="bos"&&F[0]==="/"){let bl=F[1]!==void 0?"|$":"";E.output=E.output.slice(0,-(M.output+C.output).length),M.output=`(?:${M.output}`,C.type="globstar",C.output=`${N(r)}${m}|${m}${bl})`,C.value+=$,E.output+=M.output+C.output,E.globstar=!0,V($+k()),H({type:"slash",value:"/",output:""});continue}if(M.type==="bos"&&F[0]==="/"){C.type="globstar",C.value+=$,C.output=`(?:^|${m}|${N(r)}${m})`,E.output=C.output,E.globstar=!0,V($+k()),H({type:"slash",value:"/",output:""});continue}E.output=E.output.slice(0,-C.output.length),C.type="globstar",C.output=N(r),C.value+=$,E.output+=C.output,E.globstar=!0,V($);continue}let ue={type:"star",value:$,output:P};if(r.bash===!0){ue.output=".*?",(C.type==="bos"||C.type==="slash")&&(ue.output=S+ue.output),H(ue);continue}if(C&&(C.type==="bracket"||C.type==="paren")&&r.regex===!0){ue.output=$,H(ue);continue}(E.index===E.start||C.type==="slash"||C.type==="dot")&&(C.type==="dot"?(E.output+=y,C.output+=y):r.dot===!0?(E.output+=b,C.output+=b):(E.output+=S,C.output+=S),D()!=="*"&&(E.output+=d,C.output+=d)),H(ue)}for(;E.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Mo("closing","]"));E.output=Yr.escapeLast(E.output,"["),Ae("brackets")}for(;E.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Mo("closing",")"));E.output=Yr.escapeLast(E.output,"("),Ae("parens")}for(;E.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Mo("closing","}"));E.output=Yr.escapeLast(E.output,"{"),Ae("braces")}if(r.strictSlashes!==!0&&(C.type==="star"||C.type==="bracket")&&H({type:"maybe_slash",value:"",output:`${m}?`}),E.backtrack===!0){E.output="";for(let F of E.tokens)E.output+=F.output!=null?F.output:F.value,F.suffix&&(E.output+=F.suffix)}return E};Xd.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Sl,r.maxLength):Sl,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=ix[e]||e;let{DOT_LITERAL:o,SLASH_LITERAL:s,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:u,NO_DOTS_SLASH:p,STAR:m,START_ANCHOR:d}=wl.globChars(r.windows),f=r.dot?u:l,h=r.dot?p:l,y=r.capture?"":"?:",b={negated:!1,prefix:""},g=r.bash===!0?".*?":m;r.capture&&(g=`(${g})`);let v=S=>S.noglobstar===!0?g:`(${y}(?:(?!${d}${S.dot?c:o}).)*?)`,_=S=>{switch(S){case"*":return`${f}${a}${g}`;case".*":return`${o}${a}${g}`;case"*.*":return`${f}${g}${o}${a}${g}`;case"*/*":return`${f}${g}${s}${a}${h}${g}`;case"**":return f+v(r);case"**/*":return`(?:${f}${v(r)}${s})?${h}${a}${g}`;case"**/*.*":return`(?:${f}${v(r)}${s})?${h}${g}${o}${a}${g}`;case"**/.*":return`(?:${f}${v(r)}${s})?${o}${a}${g}`;default:{let O=/^(.*?)\.(\w+)$/.exec(S);if(!O)return;let P=_(O[1]);return P?P+o+O[2]:void 0}}},w=Yr.removePrefix(e,b),N=_(w);return N&&r.strictSlashes!==!0&&(N+=`${s}?`),N};ox.exports=Xd});var lx=x((qne,cx)=>{"use strict";var gj=nx(),Jd=sx(),ax=ha(),bj=ma(),vj=e=>e&&typeof e=="object"&&!Array.isArray(e),Xe=(e,t,r=!1)=>{if(Array.isArray(e)){let u=e.map(m=>Xe(m,t,r));return m=>{for(let d of u){let f=d(m);if(f)return f}return!1}}let n=vj(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},o=i.windows,s=n?Xe.compileRe(e,t):Xe.makeRe(e,t,!1,!0),a=s.state;delete s.state;let c=()=>!1;if(i.ignore){let u={...t,ignore:null,onMatch:null,onResult:null};c=Xe(i.ignore,u,r)}let l=(u,p=!1)=>{let{isMatch:m,match:d,output:f}=Xe.test(u,s,t,{glob:e,posix:o}),h={glob:e,state:a,regex:s,posix:o,input:u,output:f,match:d,isMatch:m};return typeof i.onResult=="function"&&i.onResult(h),m===!1?(h.isMatch=!1,p?h:!1):c(u)?(typeof i.onIgnore=="function"&&i.onIgnore(h),h.isMatch=!1,p?h:!1):(typeof i.onMatch=="function"&&i.onMatch(h),p?h:!0)};return r&&(l.state=a),l};Xe.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let o=r||{},s=o.format||(i?ax.toPosixSlashes:null),a=e===n,c=a&&s?s(e):e;return a===!1&&(c=s?s(e):e,a=c===n),(a===!1||o.capture===!0)&&(o.matchBase===!0||o.basename===!0?a=Xe.matchBase(e,t,r,i):a=t.exec(c)),{isMatch:!!a,match:a,output:c}};Xe.matchBase=(e,t,r)=>(t instanceof RegExp?t:Xe.makeRe(t,r)).test(ax.basename(e));Xe.isMatch=(e,t,r)=>Xe(t,r)(e);Xe.parse=(e,t)=>Array.isArray(e)?e.map(r=>Xe.parse(r,t)):Jd(e,{...t,fastpaths:!1});Xe.scan=(e,t)=>gj(e,t);Xe.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},o=i.contains?"":"^",s=i.contains?"":"$",a=`${o}(?:${e.output})${s}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let c=Xe.toRegex(a,t);return n===!0&&(c.state=e),c};Xe.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=Jd.fastpaths(e,t)),i.output||(i=Jd(e,t)),Xe.compileRe(i,t,r,n)};Xe.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};Xe.constants=bj;cx.exports=Xe});var dx=x((jne,fx)=>{"use strict";var ux=lx(),xj=ha();function px(e,t,r=!1){return t&&(t.windows===null||t.windows===void 0)&&(t={...t,windows:xj.isWindows()}),ux(e,t,r)}Object.assign(px,ux);fx.exports=px});var ba=x(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.feedbackConfigSchema=Wt.optionalEmailSettings=Wt.reasonsSettings=void 0;var ww={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}};Wt.reasonsSettings={type:"object",properties:ww,additionalProperties:!1};Wt.optionalEmailSettings={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1};Wt.feedbackConfigSchema={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},ww),{like:Wt.reasonsSettings,dislike:Wt.reasonsSettings,satisfied:Wt.reasonsSettings,neutral:Wt.reasonsSettings,dissatisfied:Wt.reasonsSettings}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:Wt.optionalEmailSettings},additionalProperties:!1}},additionalProperties:!1}});var $l=x(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.redocConfigSchema=Ui.downloadUrlsSchema=void 0;var v4=ba(),x4={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1};Ui.downloadUrlsSchema={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}};Ui.redocConfigSchema={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:v4.feedbackConfigSchema,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:Ui.downloadUrlsSchema,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:x4,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"}},additionalProperties:!1}});var Sm=x(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.graphqlConfigSchema=void 0;var w4=ba(),S4=$l(),Do={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},_4={type:"object",properties:{name:{type:"string"},items:Do,queries:Do,mutations:Do,subscriptions:Do,types:Do,directives:Do},required:["name"],additionalProperties:!1},O4={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:_4},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1};Pl.graphqlConfigSchema={type:"object",properties:{menu:{type:"object",properties:Object.assign({},O4.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:S4.downloadUrlsSchema,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:w4.feedbackConfigSchema},additionalProperties:!1}});var Aw=x(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.deprecatedRefDocsSchema=void 0;var $4={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},P4={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},Sw={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},E4={type:"object",properties:{beforeInfo:{type:"array",items:Sw},end:{type:"array",items:Sw}}},Vi={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},El={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},A4={type:"object",properties:Tl(Vi.properties,["light","dark"])},C4={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},R4={type:"object",properties:{error:El,info:El,redirect:El,success:El}},T4={type:"object",properties:Fo(Vi.properties,["dark"])},N4={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},I4={type:"object",properties:{accent:Vi,border:A4,error:Vi,http:C4,primary:Vi,responses:R4,secondary:T4,success:Vi,text:N4,tonalOffset:{type:"number"},warning:Vi}},Al={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},k4={type:"object",properties:{small:Al,medium:Al,large:Al,xlarge:Al}},Xr={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},q4={type:"object",properties:Object.assign(Object.assign({},Fo(Xr.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:k4})},_w={type:"object",properties:Tl(Xr.properties,["fontSize","lineHeight"])},j4={type:"object",properties:{medium:_w,small:_w}},M4={type:"object",properties:Object.assign(Object.assign({},Fo(Xr.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:j4})},L4={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},D4={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},Ow={type:"object",properties:{fullWidth:{type:"boolean"}}},F4={type:"object",properties:{buttons:q4,httpBadges:M4,layoutControls:L4,panels:D4,tryItButton:Ow,tryItSendButton:Ow}},Rl={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},B4={type:"object",properties:{maxWidth:Rl}},U4={type:"object",properties:{maxWidth:Rl,middlePanelMaxWidth:Rl}},V4={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:B4,"three-panel":U4}},$w={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},z4={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:$w,defaultDetailsWidth:{type:"string"},examples:$w,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},Ew={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},H4={type:"object",properties:Tl(Ew.properties,["textTransform"])},K4={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},G4={type:"object",properties:Object.assign(Object.assign({},Fo(Xr.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:Ew,level1items:H4,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:K4,textColor:{type:"string"},width:{type:"string"}})},Cl={type:"object",properties:Object.assign(Object.assign({},Xr.properties),{color:{type:"string"},transform:{type:"string"}})},Y4={type:"object",properties:Object.assign(Object.assign({},Xr.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},W4={type:"object",properties:Fo(Xr.properties,["fontSize"])},X4={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},J4={type:"object",properties:Object.assign(Object.assign({code:Y4,fieldName:Xr},Tl(Xr.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Cl,heading2:Cl,heading3:Cl,headings:W4,lineHeight:{type:"string"},links:X4,optimizeSpeed:{type:"boolean"},rightPanelHeading:Cl,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},Q4={type:"object",properties:Object.assign({color:{type:"string"}},Fo(Xr.properties,["fontWeight"]))},Z4={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:Q4}},eL={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},tL={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},Pw={type:"object",properties:{custom:{type:"string"}}},rL={type:"object",properties:{DownloadButton:Pw,NextSectionButton:Pw}},nL={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},iL={type:"object",properties:{borderRadius:{type:"string"}}},oL={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},sL={type:"object",properties:{breakpoints:Rl,codeBlock:Z4,colors:I4,components:F4,layout:V4,logo:eL,fab:tL,overrides:rL,rightPanel:nL,schema:z4,shape:iL,sidebar:G4,spacing:oL,typography:J4,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},aL={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:$4}},required:["languages"]};Nl.deprecatedRefDocsSchema={type:"object",properties:{theme:sL,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:aL,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:P4,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:E4,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}},additionalProperties:!1};function Tl(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function Fo(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}});var _m=x(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.decoratorsSchemas=mt.preprocessorSchemas=mt.ruleSchemas=mt.rulesSchema=void 0;mt.rulesSchema={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}};mt.ruleSchemas={rules:mt.rulesSchema,oas2Rules:mt.rulesSchema,oas3_0Rules:mt.rulesSchema,oas3_1Rules:mt.rulesSchema,async2Rules:mt.rulesSchema,async3Rules:mt.rulesSchema,arazzo1Rules:mt.rulesSchema,overlay1Rules:mt.rulesSchema};mt.preprocessorSchemas={preprocessors:{type:"object",additionalProperties:!0},oas2Preprocessors:{type:"object",additionalProperties:!0},oas3_0Preprocessors:{type:"object",additionalProperties:!0},oas3_1Preprocessors:{type:"object",additionalProperties:!0},async2Preprocessors:{type:"object",additionalProperties:!0},async3Preprocessors:{type:"object",additionalProperties:!0},arazzo1Preprocessors:{type:"object",additionalProperties:!0},overlay1Preprocessors:{type:"object",additionalProperties:!0}};mt.decoratorsSchemas={decorators:{type:"object",additionalProperties:!0},oas2Decorators:{type:"object",additionalProperties:!0},oas3_0Decorators:{type:"object",additionalProperties:!0},oas3_1Decorators:{type:"object",additionalProperties:!0},async2Decorators:{type:"object",additionalProperties:!0},async3Decorators:{type:"object",additionalProperties:!0},arazzo1Decorators:{type:"object",additionalProperties:!0},overlay1Decorators:{type:"object",additionalProperties:!0}}});var Il=x(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.scorecardConfigSchema=B.catalogsConfigSchema=B.catalogSchema=B.catalogFilterSchema=B.breadcrumbsConfigSchema=B.versionPickerConfigSchema=B.userMenuConfigSchema=B.analyticsConfigSchema=B.googleAnalyticsConfigSchema=B.productGoogleAnalyticsConfigSchema=B.gtmAnalyticsConfigSchema=B.segmentAnalyticsConfigSchema=B.rudderstackAnalyticsConfigSchema=B.heapAnalyticsConfigSchema=B.fullstoryAnalyticsConfigSchema=B.amplitudeAnalyticsConfigSchema=B.openapiConfigSchema=B.markdownConfigSchema=B.codeSnippetConfigSchema=B.navigationConfigSchema=B.colorModeConfigSchema=B.searchConfigSchema=B.linksConfigSchema=B.scriptsConfigSchema=B.sidebarConfigSchema=B.footerConfigSchema=B.productsConfigSchema=B.navbarConfigSchema=B.logoConfigSchema=B.searchFiltersConfigSchema=B.searchFacetsConfigSchema=B.aiSearchConfigSchema=B.productConfigSchema=B.navItemsSchema=void 0;var Cw=$l(),cL=Aw(),Om=_m(),ht={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Rw={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},$m={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}}}};B.navItemsSchema={type:"array",items:Object.assign(Object.assign({},$m),{properties:Object.assign(Object.assign({},$m.properties),{items:{type:"array",items:$m}})})};B.productConfigSchema={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]};B.aiSearchConfigSchema={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1};B.searchFacetsConfigSchema={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]}},additionalProperties:!1}};B.searchFiltersConfigSchema={type:"object",properties:Object.assign({facets:B.searchFacetsConfigSchema},ht.properties),additionalProperties:!1};var lL={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]};B.logoConfigSchema={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1};B.navbarConfigSchema={type:"object",properties:Object.assign({items:B.navItemsSchema},ht.properties),additionalProperties:!1};B.productsConfigSchema={type:"object",additionalProperties:B.productConfigSchema};B.footerConfigSchema={type:"object",properties:Object.assign({items:B.navItemsSchema,copyrightText:{type:"string"},logo:ht},ht.properties),additionalProperties:!1};B.sidebarConfigSchema={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},ht.properties),additionalProperties:!1};B.scriptsConfigSchema={type:"object",properties:{head:{type:"array",items:Rw},body:{type:"array",items:Rw}},additionalProperties:!1};B.linksConfigSchema={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}};B.searchConfigSchema={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:B.aiSearchConfigSchema,filters:B.searchFiltersConfigSchema,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:lL}},ht.properties),additionalProperties:!1};B.colorModeConfigSchema={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},ht.properties),additionalProperties:!1};var uL={type:"object",properties:Object.assign(Object.assign({},ht.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude"]},default:["copy","view","chatgpt","claude"]}}),additionalProperties:!1};B.navigationConfigSchema={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},ht.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},ht.properties),additionalProperties:!1,default:{}},actions:uL},additionalProperties:!1};B.codeSnippetConfigSchema={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},ht.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},ht.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},ht.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},ht.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1};B.markdownConfigSchema={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["_partials"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},ht.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},ht.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},ht.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}};B.openapiConfigSchema=Object.assign(Object.assign({},Cw.redocConfigSchema),{properties:Object.assign(Object.assign({},Cw.redocConfigSchema.properties),cL.deprecatedRefDocsSchema.properties)});var pL={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]};B.amplitudeAnalyticsConfigSchema={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]};B.fullstoryAnalyticsConfigSchema={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]};B.heapAnalyticsConfigSchema={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]};B.rudderstackAnalyticsConfigSchema={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]};B.segmentAnalyticsConfigSchema={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]};B.gtmAnalyticsConfigSchema={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]};B.productGoogleAnalyticsConfigSchema={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]};B.googleAnalyticsConfigSchema={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:B.productGoogleAnalyticsConfigSchema}},additionalProperties:!1,required:["trackingId"]};B.analyticsConfigSchema={type:"object",properties:{adobe:pL,amplitude:B.amplitudeAnalyticsConfigSchema,fullstory:B.fullstoryAnalyticsConfigSchema,heap:B.heapAnalyticsConfigSchema,rudderstack:B.rudderstackAnalyticsConfigSchema,segment:B.segmentAnalyticsConfigSchema,gtm:B.gtmAnalyticsConfigSchema,ga:B.googleAnalyticsConfigSchema}};B.userMenuConfigSchema={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},ht.properties),additionalProperties:!1};B.versionPickerConfigSchema={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}};B.breadcrumbsConfigSchema={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1};B.catalogFilterSchema={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}};B.catalogSchema={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:B.catalogFilterSchema},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:B.navItemsSchema,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}};B.catalogsConfigSchema={type:"object",patternProperties:{".*":B.catalogSchema}};B.scorecardConfigSchema={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},Om.ruleSchemas),Om.preprocessorSchemas),Om.decoratorsSchemas),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}}});var Pm=x(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.entitiesCatalogConfigSchema=ze.entityCatalogSpecificCatalogSchema=ze.entityCatalogFilterSchema=ze.entityCatalogIncludeSchema=ze.entityCatalogExcludeSchema=void 0;ze.entityCatalogExcludeSchema={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1};ze.entityCatalogIncludeSchema={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1};ze.entityCatalogFilterSchema={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1};ze.entityCatalogSpecificCatalogSchema={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:ze.entityCatalogIncludeSchema},excludes:{type:"array",items:ze.entityCatalogExcludeSchema},filters:{type:"array",items:ze.entityCatalogFilterSchema},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1};ze.entitiesCatalogConfigSchema={type:"object",properties:{catalogs:{type:"object",properties:{all:ze.entityCatalogSpecificCatalogSchema,services:ze.entityCatalogSpecificCatalogSchema,domains:ze.entityCatalogSpecificCatalogSchema,teams:ze.entityCatalogSpecificCatalogSchema,users:ze.entityCatalogSpecificCatalogSchema,apiDescriptions:ze.entityCatalogSpecificCatalogSchema,dataSchemas:ze.entityCatalogSpecificCatalogSchema,apiOperations:ze.entityCatalogSpecificCatalogSchema},additionalProperties:ze.entityCatalogSpecificCatalogSchema}},additionalProperties:!1}});var Em=x(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.themeConfigSchema=void 0;var fL=Sm(),dL=ba(),tt=Il(),mL=Pm();kl.themeConfigSchema={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:tt.logoConfigSchema,navbar:tt.navbarConfigSchema,products:tt.productsConfigSchema,footer:tt.footerConfigSchema,sidebar:tt.sidebarConfigSchema,scripts:tt.scriptsConfigSchema,links:tt.linksConfigSchema,feedback:dL.feedbackConfigSchema,search:tt.searchConfigSchema,colorMode:tt.colorModeConfigSchema,navigation:tt.navigationConfigSchema,codeSnippet:tt.codeSnippetConfigSchema,markdown:tt.markdownConfigSchema,openapi:tt.openapiConfigSchema,graphql:fL.graphqlConfigSchema,analytics:tt.analyticsConfigSchema,userMenu:tt.userMenuConfigSchema,versionPicker:tt.versionPickerConfigSchema,breadcrumbs:tt.breadcrumbsConfigSchema,catalog:tt.catalogsConfigSchema,entitiesCatalog:mL.entitiesCatalogConfigSchema,catalogClassic:tt.catalogsConfigSchema,scorecard:tt.scorecardConfigSchema},additionalProperties:!0}});var Am=x(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.LayoutVariant=Xt.REDOCLY_ROUTE_RBAC=Xt.REDOCLY_TEAMS_RBAC=Xt.ApigeeDevOnboardingIntegrationAuthType=Xt.AuthProviderType=Xt.DEFAULT_TEAM_CLAIM_NAME=void 0;Xt.DEFAULT_TEAM_CLAIM_NAME="https://redocly.com/sso/teams";var Tw;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(Tw||(Xt.AuthProviderType=Tw={}));var Nw;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(Nw||(Xt.ApigeeDevOnboardingIntegrationAuthType=Nw={}));Xt.REDOCLY_TEAMS_RBAC="redocly::teams-rbac";Xt.REDOCLY_ROUTE_RBAC="redocly::route-rbac";var Iw;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(Iw||(Xt.LayoutVariant=Iw={}))});var kw=x(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});Rm.removePropertyRecursively=Cm;function Cm(e,t){return Object.fromEntries(Object.entries(e).map(([r,n])=>{if(r!==t)return typeof n!="object"||!n?[r,n]:Array.isArray(n)?[r,n.map(i=>typeof i=="object"?Cm(i,t):i)]:[r,Cm(n,t)]}).filter(Boolean))}});var qw=x(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.reuniteConfigSchema=void 0;var hL={type:"object",additionalProperties:{type:"string"}},yL={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},ql={type:"string",enum:["error","warn","off"]},gL={type:"object",additionalProperties:!1,properties:{schemaCheck:ql,statusCodeCheck:ql,contentTypeCheck:ql,successCriteriaCheck:ql}},bL={type:"object",properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",enum:["1m","2m","5m","10m","15m","30m","1h","3h","6h","12h","1d","7d"]}},required:["event"],additionalProperties:!1},vL={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1};jl.reuniteConfigSchema={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[bL,vL]},inputs:hL,servers:yL,severity:gL},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1}});var Nm=x(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});U.rootRedoclyConfigSchema=U.redoclyConfigSchema=U.l10nConfigSchema=U.devOnboardingAdapterConfigSchema=U.apigeeEdgeAdapterConfigSchema=U.apigeeXAdapterConfigSchema=U.apigeeAdapterAuthServiceAccountSchema=U.apigeeAdapterAuthOauth2Schema=U.graviteeAdapterConfigSchema=U.graviteeAdapterAuthIdpSchema=U.graviteeAdapterAuthStaticSchema=U.rbacConfigSchema=U.rbacScopeItemsSchema=U.apiFunctionsConfigSchema=U.seoConfigSchema=U.apiConfigSchema=U.redirectsConfigSchema=U.redirectConfigSchema=U.ssoConfigSchema=U.ssoDirectConfigSchema=U.authProviderConfigSchema=U.saml2ProviderConfigSchema=U.oidcProviderConfigSchema=U.oidcIssuerMetadataSchema=void 0;var va=Am(),xL=Em(),wL=ba(),Tm=Sm(),SL=kw(),_L=qw(),Ge=Il(),OL=Pm(),Bo=_m();U.oidcIssuerMetadataSchema={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0};U.oidcProviderConfigSchema={type:"object",properties:{type:{type:"string",const:va.AuthProviderType.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:U.oidcIssuerMetadataSchema,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1};U.saml2ProviderConfigSchema={type:"object",properties:{type:{type:"string",const:va.AuthProviderType.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:va.DEFAULT_TEAM_CLAIM_NAME},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]};U.authProviderConfigSchema={oneOf:[U.oidcProviderConfigSchema,U.saml2ProviderConfigSchema],discriminator:{propertyName:"type"}};U.ssoDirectConfigSchema={type:"object",additionalProperties:U.authProviderConfigSchema};U.ssoConfigSchema={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]};U.redirectConfigSchema={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1};U.redirectsConfigSchema={type:"object",additionalProperties:U.redirectConfigSchema,default:{}};U.apiConfigSchema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:Ge.openapiConfigSchema,graphql:Tm.graphqlConfigSchema,theme:{type:"object",properties:{openapi:Ge.openapiConfigSchema,graphql:Tm.graphqlConfigSchema},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},Bo.ruleSchemas),Bo.preprocessorSchemas),Bo.decoratorsSchemas),{extends:{type:"array",items:{type:"string"}}}),required:["root"]};var $L={type:"object",additionalProperties:!0},PL={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},jw={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1};U.seoConfigSchema={type:"object",properties:{title:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:jw},default:{llmstxt:jw.default},additionalProperties:!1};U.apiFunctionsConfigSchema={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1};U.rbacScopeItemsSchema={type:"object",additionalProperties:{type:"string"}};U.rbacConfigSchema={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:U.rbacScopeItemsSchema,cms:U.rbacScopeItemsSchema,reunite:U.rbacScopeItemsSchema,features:{type:"object",properties:{aiSearch:U.rbacScopeItemsSchema},additionalProperties:!1},content:{type:"object",properties:{"**":U.rbacScopeItemsSchema},additionalProperties:U.rbacScopeItemsSchema}},additionalProperties:U.rbacScopeItemsSchema};U.graviteeAdapterAuthStaticSchema={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]};U.graviteeAdapterAuthIdpSchema={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]};U.graviteeAdapterConfigSchema={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[U.graviteeAdapterAuthStaticSchema,U.graviteeAdapterAuthIdpSchema]}},additionalProperties:!1,required:["type","apiBaseUrl"]};U.apigeeAdapterAuthOauth2Schema={type:"object",properties:{type:{type:"string",const:va.ApigeeDevOnboardingIntegrationAuthType.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]};U.apigeeAdapterAuthServiceAccountSchema={type:"object",properties:{type:{type:"string",const:va.ApigeeDevOnboardingIntegrationAuthType.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]};U.apigeeXAdapterConfigSchema={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[U.apigeeAdapterAuthOauth2Schema,U.apigeeAdapterAuthServiceAccountSchema],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]};U.apigeeEdgeAdapterConfigSchema=Object.assign(Object.assign({},U.apigeeXAdapterConfigSchema),{properties:Object.assign(Object.assign({},U.apigeeXAdapterConfigSchema.properties),{type:{type:"string",const:"APIGEE_EDGE"}})});U.devOnboardingAdapterConfigSchema={type:"object",oneOf:[U.apigeeXAdapterConfigSchema,U.apigeeEdgeAdapterConfigSchema,U.graviteeAdapterConfigSchema],discriminator:{propertyName:"type"}};var EL={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:U.devOnboardingAdapterConfigSchema}}};U.l10nConfigSchema={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]};var AL={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]};U.redoclyConfigSchema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:U.redirectsConfigSchema,seo:U.seoConfigSchema,rbac:U.rbacConfigSchema,apiFunctions:U.apiFunctionsConfigSchema,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:AL}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:U.apiConfigSchema},extends:{type:"array",items:{type:"string"}}},Bo.ruleSchemas),Bo.decoratorsSchemas),Bo.preprocessorSchemas),{ssoDirect:U.ssoDirectConfigSchema,sso:U.ssoConfigSchema,residency:{type:"string"},developerOnboarding:EL,removeAttribution:{type:"boolean"},i18n:U.l10nConfigSchema,l10n:U.l10nConfigSchema,metadata:$L,metadataGlobs:PL,ignore:{type:"array",items:{type:"string"}},theme:xL.themeConfigSchema,reunite:_L.reuniteConfigSchema,logo:Ge.logoConfigSchema,navbar:Ge.navbarConfigSchema,products:Ge.productsConfigSchema,footer:Ge.footerConfigSchema,sidebar:Ge.sidebarConfigSchema,scripts:Ge.scriptsConfigSchema,links:Ge.linksConfigSchema,feedback:wL.feedbackConfigSchema,search:Ge.searchConfigSchema,colorMode:Ge.colorModeConfigSchema,navigation:Ge.navigationConfigSchema,codeSnippet:Ge.codeSnippetConfigSchema,markdown:Ge.markdownConfigSchema,openapi:Ge.openapiConfigSchema,graphql:Tm.graphqlConfigSchema,analytics:Ge.analyticsConfigSchema,userMenu:Ge.userMenuConfigSchema,versionPicker:Ge.versionPickerConfigSchema,breadcrumbs:Ge.breadcrumbsConfigSchema,catalog:Ge.catalogsConfigSchema,entitiesCatalog:OL.entitiesCatalogConfigSchema,catalogClassic:Ge.catalogsConfigSchema,scorecard:Ge.scorecardConfigSchema}),default:{redirects:{},seo:U.seoConfigSchema.default},additionalProperties:!0};var CL=Object.assign(Object.assign({},(0,SL.removePropertyRecursively)(U.redoclyConfigSchema,"default")),{additionalProperties:!1});U.rootRedoclyConfigSchema=Object.assign(Object.assign({$id:"root-redocly-config"},U.redoclyConfigSchema),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},U.redoclyConfigSchema.properties),{env:{type:"object",additionalProperties:CL}}),default:{},additionalProperties:!1})});var Mw=x(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.productConfigOverrideSchema=Gn.productThemeOverrideSchema=void 0;var vn=Em(),RL=Il(),TL=Nm();Gn.productThemeOverrideSchema={type:"object",properties:{logo:vn.themeConfigSchema.properties.logo,navbar:vn.themeConfigSchema.properties.navbar,footer:vn.themeConfigSchema.properties.footer,sidebar:vn.themeConfigSchema.properties.sidebar,search:vn.themeConfigSchema.properties.search,codeSnippet:vn.themeConfigSchema.properties.codeSnippet,breadcrumbs:vn.themeConfigSchema.properties.breadcrumbs,openapi:vn.themeConfigSchema.properties.openapi,feedback:vn.themeConfigSchema.properties.feedback,analytics:{type:"object",properties:{ga:RL.productGoogleAnalyticsConfigSchema}}},additionalProperties:!0,default:{}};Gn.productConfigOverrideSchema={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},Gn.productThemeOverrideSchema.properties),{apis:{type:"object",additionalProperties:TL.apiConfigSchema},theme:Gn.productThemeOverrideSchema}),additionalProperties:!1}});var Dw=x(Lw=>{"use strict";Object.defineProperty(Lw,"__esModule",{value:!0})});var Bw=x(Fw=>{"use strict";Object.defineProperty(Fw,"__esModule",{value:!0})});var Vw=x(Uw=>{"use strict";Object.defineProperty(Uw,"__esModule",{value:!0})});var zw=x(zi=>{"use strict";var NL=zi&&zi.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),IL=zi&&zi.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&NL(t,e,r)};Object.defineProperty(zi,"__esModule",{value:!0});IL(Vw(),zi)});var Kw=x(Hw=>{"use strict";Object.defineProperty(Hw,"__esModule",{value:!0})});var Gw=x(Jr=>{"use strict";var kL=Jr&&Jr.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),Ml=Jr&&Jr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&kL(t,e,r)};Object.defineProperty(Jr,"__esModule",{value:!0});Ml(Dw(),Jr);Ml(Bw(),Jr);Ml(zw(),Jr);Ml(Kw(),Jr)});var Im=x(Ce=>{"use strict";var qL=Ce&&Ce.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),jL=Ce&&Ce.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&qL(t,e,r)};Object.defineProperty(Ce,"__esModule",{value:!0});Ce.REDOCLY_ROUTE_RBAC=Ce.REDOCLY_TEAMS_RBAC=Ce.LayoutVariant=Ce.DEFAULT_TEAM_CLAIM_NAME=Ce.AuthProviderType=Ce.ApigeeDevOnboardingIntegrationAuthType=Ce.redocConfigSchema=Ce.rootRedoclyConfigSchema=Ce.rbacConfigSchema=Ce.productConfigOverrideSchema=Ce.productThemeOverrideSchema=void 0;var Yw=Mw();Object.defineProperty(Ce,"productThemeOverrideSchema",{enumerable:!0,get:function(){return Yw.productThemeOverrideSchema}});Object.defineProperty(Ce,"productConfigOverrideSchema",{enumerable:!0,get:function(){return Yw.productConfigOverrideSchema}});var Ww=Nm();Object.defineProperty(Ce,"rbacConfigSchema",{enumerable:!0,get:function(){return Ww.rbacConfigSchema}});Object.defineProperty(Ce,"rootRedoclyConfigSchema",{enumerable:!0,get:function(){return Ww.rootRedoclyConfigSchema}});var ML=$l();Object.defineProperty(Ce,"redocConfigSchema",{enumerable:!0,get:function(){return ML.redocConfigSchema}});jL(Gw(),Ce);var Uo=Am();Object.defineProperty(Ce,"ApigeeDevOnboardingIntegrationAuthType",{enumerable:!0,get:function(){return Uo.ApigeeDevOnboardingIntegrationAuthType}});Object.defineProperty(Ce,"AuthProviderType",{enumerable:!0,get:function(){return Uo.AuthProviderType}});Object.defineProperty(Ce,"DEFAULT_TEAM_CLAIM_NAME",{enumerable:!0,get:function(){return Uo.DEFAULT_TEAM_CLAIM_NAME}});Object.defineProperty(Ce,"LayoutVariant",{enumerable:!0,get:function(){return Uo.LayoutVariant}});Object.defineProperty(Ce,"REDOCLY_TEAMS_RBAC",{enumerable:!0,get:function(){return Uo.REDOCLY_TEAMS_RBAC}});Object.defineProperty(Ce,"REDOCLY_ROUTE_RBAC",{enumerable:!0,get:function(){return Uo.REDOCLY_ROUTE_RBAC}})});var Sa=x(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.nil=He._Code=He.Name=He.IDENTIFIER=He._CodeOrName=void 0;He._=Zw;He.str=eS;He.addCodeArg=qm;He.strConcat=BL;He.stringify=VL;He.safeStringify=wa;He.getProperty=zL;He.getEsmExportName=HL;He.regexpCode=KL;var xa=class{};He._CodeOrName=xa;He.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Ki=class extends xa{constructor(t){if(super(),!He.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};He.Name=Ki;var br=class extends xa{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof Ki&&(r[n.str]=(r[n.str]||0)+1),r),{})}};He._Code=br;He.nil=new br("");function Zw(e,...t){let r=[e[0]],n=0;for(;n<t.length;)qm(r,t[n]),r.push(e[++n]);return new br(r)}var km=new br("+");function eS(e,...t){let r=[wa(e[0])],n=0;for(;n<t.length;)r.push(km),qm(r,t[n]),r.push(km,wa(e[++n]));return DL(r),new br(r)}function qm(e,t){t instanceof br?e.push(...t._items):t instanceof Ki?e.push(t):e.push(UL(t))}function DL(e){let t=1;for(;t<e.length-1;){if(e[t]===km){let r=FL(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function FL(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Ki||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof Ki))return`"${e}${t.slice(1)}`}function BL(e,t){return t.emptyStr()?e:e.emptyStr()?t:eS`${e}${t}`}function UL(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:wa(Array.isArray(e)?e.join(","):e)}function VL(e){return new br(wa(e))}function wa(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function zL(e){return typeof e=="string"&&He.IDENTIFIER.test(e)?new br(`.${e}`):Zw`[${e}]`}function HL(e){if(typeof e=="string"&&He.IDENTIFIER.test(e))return new br(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}function KL(e){return new br(e.toString())}});var Lm=x(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.ValueScope=Qt.ValueScopeName=Qt.Scope=Qt.varKinds=Qt.UsedValueState=void 0;var Jt=Sa(),jm=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},Ll;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Ll||(Qt.UsedValueState=Ll={}));Qt.varKinds={const:new Jt.Name("const"),let:new Jt.Name("let"),var:new Jt.Name("var")};var Dl=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Jt.Name?t:this.name(t)}name(t){return new Jt.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};Qt.Scope=Dl;var Fl=class extends Jt.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Jt._)`.${new Jt.Name(r)}[${n}]`}};Qt.ValueScopeName=Fl;var GL=(0,Jt._)`\n`,Mm=class extends Dl{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?GL:Jt.nil}}get(){return this._scope}name(t){return new Fl(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:o}=i,s=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[o];if(a){let u=a.get(s);if(u)return u}else a=this._values[o]=new Map;a.set(s,i);let c=this._scope[o]||(this._scope[o]=[]),l=c.length;return c[l]=r.ref,i.setValue(r,{property:o,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Jt._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let o=Jt.nil;for(let s in t){let a=t[s];if(!a)continue;let c=n[s]=n[s]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,Ll.Started);let u=r(l);if(u){let p=this.opts.es5?Qt.varKinds.var:Qt.varKinds.const;o=(0,Jt._)`${o}${p} ${l} = ${u};${this.opts._n}`}else if(u=i==null?void 0:i(l))o=(0,Jt._)`${o}${u}${this.opts._n}`;else throw new jm(l);c.set(l,Ll.Completed)})}return o}};Qt.ValueScope=Mm});var oe=x(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.CodeGen=be.operators=be.varKinds=be.ValueScopeName=be.ValueScope=be.Scope=be.Name=be.regexpCode=be.stringify=be.getProperty=be.nil=be.strConcat=be.str=be._=void 0;be.not=tS;be.and=XL;be.or=QL;var ve=Sa(),qr=Lm(),Yn=Sa();Object.defineProperty(be,"_",{enumerable:!0,get:function(){return Yn._}});Object.defineProperty(be,"str",{enumerable:!0,get:function(){return Yn.str}});Object.defineProperty(be,"strConcat",{enumerable:!0,get:function(){return Yn.strConcat}});Object.defineProperty(be,"nil",{enumerable:!0,get:function(){return Yn.nil}});Object.defineProperty(be,"getProperty",{enumerable:!0,get:function(){return Yn.getProperty}});Object.defineProperty(be,"stringify",{enumerable:!0,get:function(){return Yn.stringify}});Object.defineProperty(be,"regexpCode",{enumerable:!0,get:function(){return Yn.regexpCode}});Object.defineProperty(be,"Name",{enumerable:!0,get:function(){return Yn.Name}});var zl=Lm();Object.defineProperty(be,"Scope",{enumerable:!0,get:function(){return zl.Scope}});Object.defineProperty(be,"ValueScope",{enumerable:!0,get:function(){return zl.ValueScope}});Object.defineProperty(be,"ValueScopeName",{enumerable:!0,get:function(){return zl.ValueScopeName}});Object.defineProperty(be,"varKinds",{enumerable:!0,get:function(){return zl.varKinds}});be.operators={GT:new ve._Code(">"),GTE:new ve._Code(">="),LT:new ve._Code("<"),LTE:new ve._Code("<="),EQ:new ve._Code("==="),NEQ:new ve._Code("!=="),NOT:new ve._Code("!"),OR:new ve._Code("||"),AND:new ve._Code("&&"),ADD:new ve._Code("+")};var xn=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},Dm=class extends xn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?qr.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=zo(this.rhs,t,r)),this}get names(){return this.rhs instanceof ve._CodeOrName?this.rhs.names:{}}},Bl=class extends xn{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof ve.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=zo(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ve.Name?{}:{...this.lhs.names};return Vl(t,this.rhs)}},Fm=class extends Bl{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},Bm=class extends xn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},Um=class extends xn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},Vm=class extends xn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},zm=class extends xn{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=zo(this.code,t,r),this}get names(){return this.code instanceof ve._CodeOrName?this.code.names:{}}},_a=class extends xn{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(t,r)||(YL(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Wi(t,r.names),{})}},wn=class extends _a{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Hm=class extends _a{},Vo=class extends wn{};Vo.kind="else";var Gi=class e extends wn{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new Vo(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(tS(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=zo(this.condition,t,r),this}get names(){let t=super.names;return Vl(t,this.condition),this.else&&Wi(t,this.else.names),t}};Gi.kind="if";var Yi=class extends wn{};Yi.kind="for";var Km=class extends Yi{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=zo(this.iteration,t,r),this}get names(){return Wi(super.names,this.iteration.names)}},Gm=class extends Yi{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?qr.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(t)}get names(){let t=Vl(super.names,this.from);return Vl(t,this.to)}},Ul=class extends Yi{constructor(t,r,n,i){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=zo(this.iterable,t,r),this}get names(){return Wi(super.names,this.iterable.names)}},Oa=class extends wn{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};Oa.kind="func";var $a=class extends _a{render(t){return"return "+super.render(t)}};$a.kind="return";var Ym=class extends wn{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,i;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(i=this.finally)===null||i===void 0||i.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&Wi(t,this.catch.names),this.finally&&Wi(t,this.finally.names),t}},Pa=class extends wn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Pa.kind="catch";var Ea=class extends wn{render(t){return"finally"+super.render(t)}};Ea.kind="finally";var Wm=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
2
+ `:""},this._extScope=t,this._scope=new qr.Scope({parent:t}),this._nodes=[new Hm]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let o=this._scope.toName(r);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new Dm(t,o,n)),o}const(t,r,n){return this._def(qr.varKinds.const,t,r,n)}let(t,r,n){return this._def(qr.varKinds.let,t,r,n)}var(t,r,n){return this._def(qr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Bl(t,r,n))}add(t,r){return this._leafNode(new Fm(t,be.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ve.nil&&this._leafNode(new zm(t)),this}object(...t){let r=["{"];for(let[n,i]of t)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,ve.addCodeArg)(r,i));return r.push("}"),new ve._Code(r)}if(t,r,n){if(this._blockNode(new Gi(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new Gi(t))}else(){return this._elseNode(new Vo)}endIf(){return this._endBlockNode(Gi,Vo)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Km(t),r)}forRange(t,r,n,i,o=this.opts.es5?qr.varKinds.var:qr.varKinds.let){let s=this._scope.toName(t);return this._for(new Gm(o,s,r,n),()=>i(s))}forOf(t,r,n,i=qr.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let s=r instanceof ve.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ve._)`${s}.length`,a=>{this.var(o,(0,ve._)`${s}[${a}]`),n(o)})}return this._for(new Ul("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?qr.varKinds.var:qr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ve._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new Ul("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(Yi)}label(t){return this._leafNode(new Bm(t))}break(t){return this._leafNode(new Um(t))}return(t){let r=new $a;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode($a)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Ym;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new Pa(o),r(o)}return n&&(this._currNode=i.finally=new Ea,this.code(n)),this._endBlockNode(Pa,Ea)}throw(t){return this._leafNode(new Vm(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=ve.nil,n,i){return this._blockNode(new Oa(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Oa)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof Gi))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};be.CodeGen=Wm;function Wi(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function Vl(e,t){return t instanceof ve._CodeOrName?Wi(e,t.names):e}function zo(e,t,r){if(e instanceof ve.Name)return n(e);if(!i(e))return e;return new ve._Code(e._items.reduce((o,s)=>(s instanceof ve.Name&&(s=n(s)),s instanceof ve._Code?o.push(...s._items):o.push(s),o),[]));function n(o){let s=r[o.str];return s===void 0||t[o.str]!==1?o:(delete t[o.str],s)}function i(o){return o instanceof ve._Code&&o._items.some(s=>s instanceof ve.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function YL(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function tS(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ve._)`!${Xm(e)}`}var WL=rS(be.operators.AND);function XL(...e){return e.reduce(WL)}var JL=rS(be.operators.OR);function QL(...e){return e.reduce(JL)}function rS(e){return(t,r)=>t===ve.nil?r:r===ve.nil?t:(0,ve._)`${Xm(t)} ${e} ${Xm(r)}`}function Xm(e){return e instanceof ve.Name?e:(0,ve._)`(${e})`}});var ge=x(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.Type=Ye.mergeEvaluated=void 0;Ye.toHash=e9;Ye.alwaysValidSchema=t9;Ye.checkUnknownRules=oS;Ye.schemaHasRules=sS;Ye.schemaHasRulesButRef=r9;Ye.schemaRefOrVal=n9;Ye.unescapeFragment=i9;Ye.escapeFragment=o9;Ye.escapeJsonPointer=Qm;Ye.unescapeJsonPointer=aS;Ye.eachItem=s9;Ye.evaluatedPropsToName=cS;Ye.setEvaluated=Zm;Ye.useFunc=a9;Ye.getErrorPath=c9;Ye.checkStrictMode=lS;var ke=oe(),ZL=Sa();function e9(e){let t={};for(let r of e)t[r]=!0;return t}function t9(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(oS(e,t),!sS(t,e.self.RULES.all))}function oS(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let o in t)i[o]||lS(e,`unknown keyword: "${o}"`)}function sS(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}function r9(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}function n9({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,ke._)`${r}`}return(0,ke._)`${e}${t}${(0,ke.getProperty)(n)}`}function i9(e){return aS(decodeURIComponent(e))}function o9(e){return encodeURIComponent(Qm(e))}function Qm(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function aS(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function s9(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}function nS({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,s,a)=>{let c=s===void 0?o:s instanceof ke.Name?(o instanceof ke.Name?e(i,o,s):t(i,o,s),s):o instanceof ke.Name?(t(i,s,o),o):r(o,s);return a===ke.Name&&!(c instanceof ke.Name)?n(i,c):c}}Ye.mergeEvaluated={props:nS({mergeNames:(e,t,r)=>e.if((0,ke._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,ke._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,ke._)`${r} || {}`).code((0,ke._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,ke._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,ke._)`${r} || {}`),Zm(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:cS}),items:nS({mergeNames:(e,t,r)=>e.if((0,ke._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,ke._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,ke._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,ke._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function cS(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,ke._)`{}`);return t!==void 0&&Zm(e,r,t),r}function Zm(e,t,r){Object.keys(r).forEach(n=>e.assign((0,ke._)`${t}${(0,ke.getProperty)(n)}`,!0))}var iS={};function a9(e,t){return e.scopeValue("func",{ref:t,code:iS[t.code]||(iS[t.code]=new ZL._Code(t.code))})}var Jm;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Jm||(Ye.Type=Jm={}));function c9(e,t,r){if(e instanceof ke.Name){let n=t===Jm.Num;return r?n?(0,ke._)`"[" + ${e} + "]"`:(0,ke._)`"['" + ${e} + "']"`:n?(0,ke._)`"/" + ${e}`:(0,ke._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,ke.getProperty)(e).toString():"/"+Qm(e)}function lS(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}});var vr=x(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});var vt=oe(),l9={data:new vt.Name("data"),valCxt:new vt.Name("valCxt"),instancePath:new vt.Name("instancePath"),parentData:new vt.Name("parentData"),parentDataProperty:new vt.Name("parentDataProperty"),rootData:new vt.Name("rootData"),dynamicAnchors:new vt.Name("dynamicAnchors"),isAllOfVariant:new vt.Name("isAllOfVariant"),vErrors:new vt.Name("vErrors"),errors:new vt.Name("errors"),this:new vt.Name("this"),self:new vt.Name("self"),scope:new vt.Name("scope"),json:new vt.Name("json"),jsonPos:new vt.Name("jsonPos"),jsonLen:new vt.Name("jsonLen"),jsonPart:new vt.Name("jsonPart")};eh.default=l9});var Aa=x(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.keyword$DataError=xr.keywordError=void 0;xr.reportError=u9;xr.reportExtraError=p9;xr.resetErrorsCount=f9;xr.extendErrors=d9;var Se=oe(),Hl=ge(),Ft=vr();xr.keywordError={message:({keyword:e})=>(0,Se.str)`must pass "${e}" keyword validation`};xr.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,Se.str)`"${e}" keyword must be ${t} ($data)`:(0,Se.str)`"${e}" keyword is invalid ($data)`};function u9(e,t=xr.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:s,allErrors:a}=i,c=fS(e,t,r);(n!=null?n:s||a)?uS(o,c):pS(i,(0,Se._)`[${c}]`)}function p9(e,t=xr.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:s}=n,a=fS(e,t,r);uS(i,a),o||s||pS(n,Ft.default.vErrors)}function f9(e,t){e.assign(Ft.default.errors,t),e.if((0,Se._)`${Ft.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,Se._)`${Ft.default.vErrors}.length`,t),()=>e.assign(Ft.default.vErrors,null)))}function d9({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let s=e.name("err");e.forRange("i",i,Ft.default.errors,a=>{e.const(s,(0,Se._)`${Ft.default.vErrors}[${a}]`),e.if((0,Se._)`${s}.instancePath === undefined`,()=>e.assign((0,Se._)`${s}.instancePath`,(0,Se.strConcat)(Ft.default.instancePath,o.errorPath))),e.assign((0,Se._)`${s}.schemaPath`,(0,Se.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,Se._)`${s}.schema`,r),e.assign((0,Se._)`${s}.data`,n))})}function uS(e,t){let r=e.const("err",t);e.if((0,Se._)`${Ft.default.vErrors} === null`,()=>e.assign(Ft.default.vErrors,(0,Se._)`[${r}]`),(0,Se._)`${Ft.default.vErrors}.push(${r})`),e.code((0,Se._)`${Ft.default.errors}++`)}function pS(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,Se._)`new ${e.ValidationError}(${t})`):(r.assign((0,Se._)`${n}.errors`,t),r.return(!1))}var Xi={keyword:new Se.Name("keyword"),schemaPath:new Se.Name("schemaPath"),params:new Se.Name("params"),propertyName:new Se.Name("propertyName"),message:new Se.Name("message"),schema:new Se.Name("schema"),parentSchema:new Se.Name("parentSchema")};function fS(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,Se._)`{}`:m9(e,t,r)}function m9(e,t,r={}){let{gen:n,it:i}=e,o=[h9(i,r),y9(e,r)];return g9(e,t,o),n.object(...o)}function h9({errorPath:e},{instancePath:t}){let r=t?(0,Se.str)`${e}${(0,Hl.getErrorPath)(t,Hl.Type.Str)}`:e;return[Ft.default.instancePath,(0,Se.strConcat)(Ft.default.instancePath,r)]}function y9({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,Se.str)`${t}/${e}`;return r&&(i=(0,Se.str)`${i}${(0,Hl.getErrorPath)(r,Hl.Type.Str)}`),[Xi.schemaPath,i]}function g9(e,{params:t,message:r},n){let{keyword:i,data:o,schemaValue:s,it:a}=e,{opts:c,propertyName:l,topSchemaRef:u,schemaPath:p}=a;n.push([Xi.keyword,i],[Xi.params,typeof t=="function"?t(e):t||(0,Se._)`{}`]),c.messages&&n.push([Xi.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([Xi.schema,s],[Xi.parentSchema,(0,Se._)`${u}${p}`],[Ft.default.data,o]),l&&n.push([Xi.propertyName,l])}});var mS=x(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.topBoolOrEmptySchema=S9;Kl.boolOrEmptySchema=_9;var b9=Aa(),v9=oe(),x9=vr(),w9={message:"boolean schema is false"};function S9(e){let{gen:t,schema:r,validateName:n}=e;r===!1?dS(e,!1):typeof r=="object"&&r.$async===!0?t.return(x9.default.data):(t.assign((0,v9._)`${n}.errors`,null),t.return(!0))}function _9(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),dS(e)):r.var(t,!0)}function dS(e,t){let{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,b9.reportError)(i,w9,void 0,t)}});var th=x(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.isJSONType=P9;Gl.getRules=E9;var O9=["string","number","integer","boolean","null","object","array"],$9=new Set(O9);function P9(e){return typeof e=="string"&&$9.has(e)}function E9(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}});var rh=x(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.schemaHasRulesForType=A9;Ca.shouldUseGroup=hS;Ca.shouldUseRule=yS;function A9({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&hS(e,n)}function hS(e,t){return t.rules.some(r=>yS(e,r))}function yS(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}});var Ra=x(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.DataType=void 0;Qr.getSchemaTypes=N9;Qr.getJSONTypes=bS;Qr.coerceAndCheckDataType=I9;Qr.checkDataType=nh;Qr.checkDataTypes=ih;Qr.reportTypeError=oh;var C9=th(),R9=rh(),T9=Aa(),ae=oe(),gS=ge(),Ho;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Ho||(Qr.DataType=Ho={}));function N9(e){let t=bS(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}function bS(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(C9.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}function I9(e,t){let{gen:r,data:n,opts:i}=e,o=k9(t,i.coerceTypes),s=t.length>0&&!(o.length===0&&t.length===1&&(0,R9.schemaHasRulesForType)(e,t[0]));if(s){let a=ih(t,n,i.strictNumbers,Ho.Wrong);r.if(a,()=>{o.length?q9(e,t,o):oh(e)})}return s}var vS=new Set(["string","number","integer","boolean","null"]);function k9(e,t){return t?e.filter(r=>vS.has(r)||t==="array"&&r==="array"):[]}function q9(e,t,r){let{gen:n,data:i,opts:o}=e,s=n.let("dataType",(0,ae._)`typeof ${i}`),a=n.let("coerced",(0,ae._)`undefined`);o.coerceTypes==="array"&&n.if((0,ae._)`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,ae._)`${i}[0]`).assign(s,(0,ae._)`typeof ${i}`).if(ih(t,i,o.strictNumbers),()=>n.assign(a,i))),n.if((0,ae._)`${a} !== undefined`);for(let l of r)(vS.has(l)||l==="array"&&o.coerceTypes==="array")&&c(l);n.else(),oh(e),n.endIf(),n.if((0,ae._)`${a} !== undefined`,()=>{n.assign(i,a),j9(e,a)});function c(l){switch(l){case"string":n.elseIf((0,ae._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,ae._)`"" + ${i}`).elseIf((0,ae._)`${i} === null`).assign(a,(0,ae._)`""`);return;case"number":n.elseIf((0,ae._)`${s} == "boolean" || ${i} === null
3
3
  || (${s} == "string" && ${i} && ${i} == +${i})`).assign(a,(0,ae._)`+${i}`);return;case"integer":n.elseIf((0,ae._)`${s} === "boolean" || ${i} === null
4
4
  || (${s} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(a,(0,ae._)`+${i}`);return;case"boolean":n.elseIf((0,ae._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(a,!1).elseIf((0,ae._)`${i} === "true" || ${i} === 1`).assign(a,!0);return;case"null":n.elseIf((0,ae._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(a,null);return;case"array":n.elseIf((0,ae._)`${s} === "string" || ${s} === "number"
5
- || ${s} === "boolean" || ${i} === null`).assign(a,(0,ae._)`[${i}]`)}}}function j9({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,ae._)`${t} !== undefined`,()=>e.assign((0,ae._)`${t}[${r}]`,n))}function nh(e,t,r,n=Ho.Correct){let i=n===Ho.Correct?ae.operators.EQ:ae.operators.NEQ,o;switch(e){case"null":return(0,ae._)`${t} ${i} null`;case"array":o=(0,ae._)`Array.isArray(${t})`;break;case"object":o=(0,ae._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=s((0,ae._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=s();break;default:return(0,ae._)`typeof ${t} ${i} ${e}`}return n===Ho.Correct?o:(0,ae.not)(o);function s(a=ae.nil){return(0,ae.and)((0,ae._)`typeof ${t} == "number"`,a,r?(0,ae._)`isFinite(${t})`:ae.nil)}}function ih(e,t,r,n){if(e.length===1)return nh(e[0],t,r,n);let i,o=(0,gS.toHash)(e);if(o.array&&o.object){let s=(0,ae._)`typeof ${t} != "object"`;i=o.null?s:(0,ae._)`!${t} || ${s}`,delete o.null,delete o.array,delete o.object}else i=ae.nil;o.number&&delete o.integer;for(let s in o)i=(0,ae.and)(i,nh(s,t,r,n));return i}var M9={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,ae._)`{type: ${e}}`:(0,ae._)`{type: ${t}}`};function oh(e){let t=L9(e);(0,T9.reportError)(t,M9)}function L9(e){let{gen:t,data:r,schema:n}=e,i=(0,gS.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}});var wS=x(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.assignDefaults=F9;var Ko=oe(),D9=ye();function F9(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)xS(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>xS(e,o,i.default))}function xS(e,t,r){let{gen:n,compositeRule:i,data:o,opts:s}=e;if(r===void 0)return;let a=(0,Ko._)`${o}${(0,Ko.getProperty)(t)}`;if(i){(0,D9.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,Ko._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,Ko._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,Ko._)`${a} = ${(0,Ko.stringify)(r)}`)}});var wr=x(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.checkReportMissingProp=U9;Bt.checkMissingProp=V9;Bt.reportMissingProp=z9;Bt.hasPropFunc=SS;Bt.isOwnProperty=ch;Bt.propertyInData=H9;Bt.noPropertyInData=lh;Bt.allSchemaProperties=_S;Bt.schemaProperties=K9;Bt.callValidateCode=G9;Bt.usePattern=W9;Bt.validateArray=X9;Bt.validateUnion=J9;var De=oe(),ah=ye(),Sn=vr(),B9=ye();function U9(e,t){let{gen:r,data:n,it:i}=e;r.if(lh(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,De._)`${t}`},!0),e.error()})}function V9({gen:e,data:t,it:{opts:r}},n,i){return(0,De.or)(...n.map(o=>(0,De.and)(lh(e,t,o,r.ownProperties),(0,De._)`${i} = ${o}`)))}function z9(e,t){e.setParams({missingProperty:t},!0),e.error()}function SS(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,De._)`Object.prototype.hasOwnProperty`})}function ch(e,t,r){return(0,De._)`${SS(e)}.call(${t}, ${r})`}function H9(e,t,r,n){let i=(0,De._)`${t}${(0,De.getProperty)(r)} !== undefined`;return n?(0,De._)`${i} && ${ch(e,t,r)}`:i}function lh(e,t,r,n){let i=(0,De._)`${t}${(0,De.getProperty)(r)} === undefined`;return n?(0,De.or)(i,(0,De.not)(ch(e,t,r))):i}function _S(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}function K9(e,t){return _S(t).filter(r=>!(0,ah.alwaysValidSchema)(e,t[r]))}function G9({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:s},a,c,l){let u=l?(0,De._)`${e}, ${t}, ${n}${i}`:t,p=[[Sn.default.instancePath,(0,De.strConcat)(Sn.default.instancePath,o)],[Sn.default.parentData,s.parentData],[Sn.default.parentDataProperty,s.parentDataProperty],[Sn.default.rootData,Sn.default.rootData],[Sn.default.isAllOfVariant,s.isAllOfVariant?1:0]];s.opts.dynamicRef&&p.push([Sn.default.dynamicAnchors,Sn.default.dynamicAnchors]);let m=(0,De._)`${u}, ${r.object(...p)}`;return c!==De.nil?(0,De._)`${a}.call(${c}, ${m})`:(0,De._)`${a}(${m})`}var Y9=(0,De._)`new RegExp`;function W9({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,De._)`${i.code==="new RegExp"?Y9:(0,B9.useFunc)(e,i)}(${r}, ${n})`})}function X9(e){let{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){let a=t.let("valid",!0);return s(()=>t.assign(a,!1)),a}return t.var(o,!0),s(()=>t.break()),o;function s(a){let c=t.const("len",(0,De._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:ah.Type.Num},o),t.if((0,De.not)(o),a)})}}function J9(e){let{gen:t,schema:r,keyword:n,parentSchema:i,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&i.discriminator||r.some(l=>(0,ah.alwaysValidSchema)(o,l))&&!o.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((l,u)=>{let p=e.subschema({keyword:n,schemaProp:u,compositeRule:!0},c);t.assign(a,(0,De._)`${a} || ${c}`),e.mergeValidEvaluated(p,c)||t.if((0,De.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}});var PS=x(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.macroKeywordCode=e3;Go.funcKeywordCode=t3;Go.validSchemaType=i3;Go.validateKeywordUsage=o3;var Ut=oe(),Ji=vr(),Q9=wr(),Z9=Aa();function e3(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:s}=e,a=t.macro.call(s.self,i,o,s),c=$S(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let l=r.name("valid");e.subschema({schema:a,schemaPath:Ut.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}function t3(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:s,$data:a,it:c}=e;n3(c,t);let l=!a&&t.compile?t.compile.call(c.self,o,s,c):t.validate,u=$S(n,i,l),p=n.let("valid");e.block$data(p,m),e.ok((r=t.valid)!==null&&r!==void 0?r:p);function m(){if(t.errors===!1)h(),t.modifying&&OS(e),y(()=>e.error());else{let b=t.async?d():f();t.modifying&&OS(e),y(()=>r3(e,b))}}function d(){let b=n.let("ruleErrs",null);return n.try(()=>h((0,Ut._)`await `),g=>n.assign(p,!1).if((0,Ut._)`${g} instanceof ${c.ValidationError}`,()=>n.assign(b,(0,Ut._)`${g}.errors`),()=>n.throw(g))),b}function f(){let b=(0,Ut._)`${u}.errors`;return n.assign(b,null),h(Ut.nil),b}function h(b=t.async?(0,Ut._)`await `:Ut.nil){let g=c.opts.passContext?Ji.default.this:Ji.default.self,v=!("compile"in t&&!a||t.schema===!1);n.assign(p,(0,Ut._)`${b}${(0,Q9.callValidateCode)(e,u,g,v)}`,t.modifying)}function y(b){var g;n.if((0,Ut.not)((g=t.valid)!==null&&g!==void 0?g:p),b)}}function OS(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Ut._)`${n.parentData}[${n.parentDataProperty}]`))}function r3(e,t){let{gen:r}=e;r.if((0,Ut._)`Array.isArray(${t})`,()=>{r.assign(Ji.default.vErrors,(0,Ut._)`${Ji.default.vErrors} === null ? ${t} : ${Ji.default.vErrors}.concat(${t})`).assign(Ji.default.errors,(0,Ut._)`${Ji.default.vErrors}.length`),(0,Z9.extendErrors)(e)},()=>e.error())}function n3({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function $S(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Ut.stringify)(r)})}function i3(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}function o3({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");let s=i.dependencies;if(s!=null&&s.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){let c=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}});var AS=x(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.getSubschema=s3;Ta.extendSubschemaData=a3;Ta.extendSubschemaMode=c3;var Qr=oe(),ES=ye();function s3(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:s}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,Qr._)`${e.schemaPath}${(0,Qr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,Qr._)`${e.schemaPath}${(0,Qr.getProperty)(t)}${(0,Qr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,ES.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:s,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}function a3(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:s}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=t;if(r!==void 0){let{errorPath:l,dataPathArr:u,opts:p}=t,m=a.let("data",(0,Qr._)`${t.data}${(0,Qr.getProperty)(r)}`,!0);c(m),e.errorPath=(0,Qr.str)`${l}${(0,ES.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,Qr._)`${r}`,e.dataPathArr=[...u,e.parentDataProperty]}if(i!==void 0){let l=i instanceof Qr.Name?i:a.let("data",i,!0);c(l),s!==void 0&&(e.propertyName=s)}o&&(e.dataTypes=o);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}function c3(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}});var Na=x((ooe,CS)=>{"use strict";CS.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var s=o[i];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}});var uh=x((soe,RS)=>{"use strict";var Wn=RS.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};Yl(t,n,i,e,"",e)};Wn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Wn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Wn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Wn.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 Yl(e,t,r,n,i,o,s,a,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,s,a,c,l);for(var u in n){var p=n[u];if(Array.isArray(p)){if(u in Wn.arrayKeywords)for(var m=0;m<p.length;m++)Yl(e,t,r,p[m],i+"/"+u+"/"+m,o,i,u,n,m)}else if(u in Wn.propsKeywords){if(p&&typeof p=="object")for(var d in p)Yl(e,t,r,p[d],i+"/"+u+"/"+l3(d),o,i,u,n,d)}else(u in Wn.keywords||e.allKeys&&!(u in Wn.skipKeywords))&&Yl(e,t,r,p,i+"/"+u,o,i,u,n)}r(n,i,o,s,a,c,l)}}function l3(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var Ia=x(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.inlineRef=m3;Xn.getFullPath=NS;Xn._getFullPath=IS;Xn.normalizeId=Yo;Xn.resolveUrl=g3;Xn.getSchemaRefs=v3;var u3=ye(),p3=Na(),f3=uh(),d3=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function m3(e,t=!0){return typeof e=="boolean"?!0:t===!0?!ph(e):t?TS(e)<=t:!1}var h3=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function ph(e){for(let t in e){if(h3.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(ph)||typeof r=="object"&&ph(r))return!0}return!1}function TS(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!d3.has(r)&&(typeof e[r]=="object"&&(0,u3.eachItem)(e[r],n=>t+=TS(n)),t===1/0))return 1/0}return t}function NS(e,t="",r){r!==!1&&(t=Yo(t));let n=e.parse(t);return IS(e,n)}function IS(e,t){return e.serialize(t).split("#")[0]+"#"}var y3=/#\/?$/;function Yo(e){return e?e.replace(y3,""):""}function g3(e,t,r){return r=Yo(r),e.resolve(t,r)}var b3=/^[a-z_][-a-z0-9._]*$/i;function v3(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=Yo(e[r]||t),o={"":i},s=NS(n,i,!1),a={},c=new Set;return f3(e,{allKeys:!0},(p,m,d,f)=>{if(f===void 0)return;let h=s+m,y=o[f];typeof p[r]=="string"&&(y=b.call(this,p[r])),g.call(this,p.$anchor),g.call(this,p.$dynamicAnchor),o[m]=y;function b(v){let _=this.opts.uriResolver.resolve;if(v=Yo(y?_(y,v):v),c.has(v))throw u(v);c.add(v);let w=this.refs[v];return typeof w=="string"&&(w=this.refs[w]),typeof w=="object"?l(p,w.schema,v):v!==Yo(h)&&(v[0]==="#"?(l(p,a[v],v),a[v]=p):this.refs[v]=h),v}function g(v){if(typeof v=="string"){if(!b3.test(v))throw new Error(`invalid anchor "${v}"`);b.call(this,`#${v}`)}}}),a;function l(p,m,d){if(m!==void 0&&!p3(p,m))throw u(d)}function u(p){return new Error(`reference "${p}" resolves to more than one schema`)}}});var Xo=x(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.KeywordCxt=void 0;Wo.validateFunctionCode=S3;Wo.getData=GS;var DS=mS(),kS=Ra(),dh=rh(),Wl=Ra(),x3=wS(),qa=PS(),fh=AS(),G=oe(),Z=vr(),w3=Ia(),_n=ye(),ka=Aa();function S3(e){if(US(e)&&(VS(e),BS(e))){$3(e);return}FS(e,()=>(0,DS.topBoolOrEmptySchema)(e))}function FS({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,G._)`${Z.default.data}, ${Z.default.valCxt}`,n.$async,()=>{e.code((0,G._)`"use strict"; ${qS(r,i)}`),O3(e,i),e.code(o)}):e.func(t,(0,G._)`${Z.default.data}, ${_3(i)}`,n.$async,()=>e.code(qS(r,i)).code(o))}function _3(e){return(0,G._)`{${Z.default.instancePath}="", ${Z.default.parentData}, ${Z.default.parentDataProperty}, ${Z.default.rootData}=${Z.default.data}${e.dynamicRef?(0,G._)`, ${Z.default.dynamicAnchors}={}`:G.nil}, ${Z.default.isAllOfVariant} = 0}={}`}function O3(e,t){e.if(Z.default.valCxt,()=>{e.var(Z.default.instancePath,(0,G._)`${Z.default.valCxt}.${Z.default.instancePath}`),e.var(Z.default.parentData,(0,G._)`${Z.default.valCxt}.${Z.default.parentData}`),e.var(Z.default.parentDataProperty,(0,G._)`${Z.default.valCxt}.${Z.default.parentDataProperty}`),e.var(Z.default.rootData,(0,G._)`${Z.default.valCxt}.${Z.default.rootData}`),e.var(Z.default.isAllOfVariant,(0,G._)`${Z.default.valCxt}.${Z.default.isAllOfVariant}`),t.dynamicRef&&e.var(Z.default.dynamicAnchors,(0,G._)`${Z.default.valCxt}.${Z.default.dynamicAnchors}`)},()=>{e.var(Z.default.instancePath,(0,G._)`""`),e.var(Z.default.parentData,(0,G._)`undefined`),e.var(Z.default.parentDataProperty,(0,G._)`undefined`),e.var(Z.default.rootData,Z.default.data),e.var(Z.default.isAllOfVariant,(0,G._)`0`),t.dynamicRef&&e.var(Z.default.dynamicAnchors,(0,G._)`{}`)})}function $3(e){let{schema:t,opts:r,gen:n}=e;FS(e,()=>{r.$comment&&t.$comment&&HS(e),R3(e),n.let(Z.default.vErrors,null),n.let(Z.default.errors,0),r.unevaluated&&P3(e),zS(e),I3(e)})}function P3(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,G._)`${r}.evaluated`),t.if((0,G._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,G._)`${e.evaluated}.props`,(0,G._)`undefined`)),t.if((0,G._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,G._)`${e.evaluated}.items`,(0,G._)`undefined`))}function qS(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,G._)`/*# sourceURL=${r} */`:G.nil}function E3(e,t){if(US(e)&&(VS(e),BS(e))){A3(e,t);return}(0,DS.boolOrEmptySchema)(e,t)}function BS({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function US(e){return typeof e.schema!="boolean"}function A3(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&HS(e),T3(e),N3(e);let o=n.const("_errs",Z.default.errors);zS(e,o),n.var(t,(0,G._)`${o} === ${Z.default.errors}`)}function VS(e){(0,_n.checkUnknownRules)(e),C3(e)}function zS(e,t){if(e.opts.jtd)return jS(e,[],!1,t);let r=(0,kS.getSchemaTypes)(e.schema),n=(0,kS.coerceAndCheckDataType)(e,r);jS(e,r,!n,t)}function C3(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,_n.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function R3(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,_n.checkStrictMode)(e,"default is ignored in the schema root")}function T3(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,w3.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function N3(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function HS({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,G._)`${Z.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let s=(0,G.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,G._)`${Z.default.self}.opts.$comment(${o}, ${s}, ${a}.schema)`)}}function I3(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,G._)`${Z.default.errors} === 0`,()=>t.return(Z.default.data),()=>t.throw((0,G._)`new ${i}(${Z.default.vErrors})`)):(t.assign((0,G._)`${n}.errors`,Z.default.vErrors),o.unevaluated&&k3(e),t.return((0,G._)`${Z.default.errors} === 0`))}function k3({gen:e,evaluated:t,props:r,items:n}){r instanceof G.Name&&e.assign((0,G._)`${t}.props`,r),n instanceof G.Name&&e.assign((0,G._)`${t}.items`,n)}function jS(e,t,r,n){let{gen:i,schema:o,data:s,allErrors:a,opts:c,self:l}=e,{RULES:u}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,_n.schemaHasRulesButRef)(o,u))){i.block(()=>KS(e,"$ref",u.all.$ref.definition));return}c.jtd||q3(e,t),i.block(()=>{for(let m of u.rules)p(m);p(u.post)});function p(m){(0,dh.shouldUseGroup)(o,m)&&(m.type?(i.if((0,Wl.checkDataType)(m.type,s,c.strictNumbers)),MS(e,m),t.length===1&&t[0]===m.type&&r&&(i.else(),(0,Wl.reportTypeError)(e)),i.endIf()):MS(e,m),a||i.if((0,G._)`${Z.default.errors} === ${n||0}`))}}function MS(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,x3.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)((0,dh.shouldUseRule)(n,s)||o(n,s))&&KS(e,s.keyword,s.definition,t.type)});function o(s,a){return!!(a.keyword==="unevaluatedProperties"&&(s.properties||s.patternProperties)&&!e.isAllOfVariant&&e.opts.defaultUnevaluatedProperties===!1)}}function q3(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(j3(e,t),e.opts.allowUnionTypes||M3(e,t),L3(e,e.dataTypes))}function j3(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{LS(e.dataTypes,r)||mh(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),e.dataTypes=e.dataTypes.filter(r=>LS(t,r))}}function M3(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&mh(e,"use allowUnionTypes to allow union type keyword")}function L3(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,dh.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(s=>D3(t,s))&&mh(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function D3(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function LS(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function mh(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,_n.checkStrictMode)(e,t,e.opts.strictTypes)}var Xl=class{constructor(t,r,n){if((0,qa.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,_n.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",GS(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,qa.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",Z.default.errors))}result(t,r,n){this.failResult((0,G.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,G.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,G._)`${r} !== undefined && (${(0,G.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?ka.reportExtraError:ka.reportError)(this,this.def.error,r)}$dataError(){(0,ka.reportError)(this,this.def.$dataError||ka.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,ka.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=G.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=G.nil,r=G.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:s}=this;n.if((0,G.or)((0,G._)`${i} === undefined`,r)),t!==G.nil&&n.assign(t,!0),(o.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==G.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,G.or)(s(),a());function s(){if(n.length){if(!(r instanceof G.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,G._)`${(0,Wl.checkDataTypes)(c,r,o.opts.strictNumbers,Wl.DataType.Wrong)}`}return G.nil}function a(){if(i.validateSchema){let c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,G._)`!${c}(${r})`}return G.nil}}subschema(t,r,n){let i=(0,fh.getSubschema)(this.it,t);(0,fh.extendSubschemaData)(i,this.it,t),(0,fh.extendSubschemaMode)(i,t);let o={...this.it,...i,items:void 0,props:void 0,isAllOfVariant:n};return E3(o,r),o}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=_n.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=_n.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,G.Name)),!0}};Wo.KeywordCxt=Xl;function KS(e,t,r,n){let i=new Xl(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,qa.funcKeywordCode)(i,r):"macro"in r?(0,qa.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,qa.funcKeywordCode)(i,r)}var F3=/^\/(?:[^~]|~0|~1)*$/,B3=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function GS(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return Z.default.rootData;if(e[0]==="/"){if(!F3.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=Z.default.rootData}else{let l=B3.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let u=+l[1];if(i=l[2],i==="#"){if(u>=t)throw new Error(c("property/index",u));return n[t-u]}if(u>t)throw new Error(c("data",u));if(o=r[t-u],!i)return o}let s=o,a=i.split("/");for(let l of a)l&&(o=(0,G._)`${o}${(0,G.getProperty)((0,_n.unescapeJsonPointer)(l))}`,s=(0,G._)`${s} && ${o}`);return s;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${t}`}}});var gh=x(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});var hh=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};yh.default=hh});var wh=x(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});var bh=Ia(),vh=class extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,bh.resolveUrl)(t,r,n),this.missingSchema=(0,bh.normalizeId)((0,bh.getFullPath)(t,this.missingRef))}};xh.default=vh});var ja=x(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.SchemaEnv=void 0;Jn.compileSchema=_h;Jn.resolveRef=z3;Jn.getCompilingSchema=XS;Jn.resolveSchema=Jl;var jr=oe(),U3=gh(),Qi=vr(),Mr=Ia(),YS=ye(),V3=Xo(),Jo=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,Mr.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};Jn.SchemaEnv=Jo;function _h(e){let t=XS.call(this,e);if(t)return t;let r=(0,Mr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,s=new jr.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),a;e.$async&&(a=s.scopeValue("Error",{ref:U3.default,code:(0,jr._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let l={gen:s,allErrors:this.opts.allErrors,data:Qi.default.data,parentData:Qi.default.parentData,parentDataProperty:Qi.default.parentDataProperty,dataNames:[Qi.default.data],dataPathArr:[jr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,jr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:jr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,jr._)`""`,opts:this.opts,self:this},u;try{this._compilations.add(e),(0,V3.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);let p=s.toString();u=`const visitedNodesForRef = new WeakMap(); ${s.scopeRefs(Qi.default.scope)}return ${p}`,this.opts.code.process&&(u=this.opts.code.process(u,e));let d=new Function(`${Qi.default.self}`,`${Qi.default.scope}`,u)(this,this.scope.get());if(this.scope.value(c,{ref:d}),d.errors=null,d.schema=e.schema,d.schemaEnv=e,e.$async&&(d.$async=!0),this.opts.code.source===!0&&(d.source={validateName:c,validateCode:p,scopeValues:s._values}),this.opts.unevaluated){let{props:f,items:h}=l;d.evaluated={props:f instanceof jr.Name?void 0:f,items:h instanceof jr.Name?void 0:h,dynamicProps:f instanceof jr.Name,dynamicItems:h instanceof jr.Name},d.source&&(d.source.evaluated=(0,jr.stringify)(d.evaluated))}return e.validate=d,e}catch(p){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),p}finally{this._compilations.delete(e)}}function z3(e,t,r){var n;let i=(0,Mr.resolveUrl)(this.opts.uriResolver,t,r),o=e.refs[i];if(o)return o;let s=WS.call(this,e,i);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[i],{schemaId:c}=this.opts;a&&(s=new Jo({schema:a,schemaId:c,root:e,baseId:t}))}if(s===void 0&&this.opts.loadSchemaSync){let a=this.opts.loadSchemaSync(t,r,i);a&&!(this.refs[i]||this.schemas[i])&&(this.addSchema(a,i,void 0),s=WS.call(this,e,i))}if(s!==void 0)return e.refs[i]=H3.call(this,s)}function H3(e){return(0,Mr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:_h.call(this,e)}function XS(e){for(let t of this._compilations)if(K3(t,e))return t}function K3(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function WS(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Jl.call(this,e,t)}function Jl(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Mr._getFullPath)(this.opts.uriResolver,r),i=(0,Mr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Sh.call(this,r,e);let o=(0,Mr.normalizeId)(n),s=this.refs[o]||this.schemas[o];if(typeof s=="string"){let a=Jl.call(this,e,s);return typeof(a==null?void 0:a.schema)!="object"?void 0:Sh.call(this,r,a)}if(typeof(s==null?void 0:s.schema)=="object"){if(s.validate||_h.call(this,s),o===(0,Mr.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(i=(0,Mr.resolveUrl)(this.opts.uriResolver,i,l)),new Jo({schema:a,schemaId:c,root:e,baseId:i})}return Sh.call(this,r,s)}}var G3=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Sh(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,YS.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!G3.has(a)&&l&&(t=(0,Mr.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,YS.schemaHasRulesButRef)(r,this.RULES)){let a=(0,Mr.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=Jl.call(this,n,a)}let{schemaId:s}=this.opts;if(o=o||new Jo({schema:r,schemaId:s,root:n,baseId:t}),o.schema!==o.root.schema)return o}});var JS=x((foe,Y3)=>{Y3.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var Zl=x(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.serialize=void 0;function W3(e){let t=X3(e),r;try{r=new URL(t.startUrl)}catch(i){return i.message&&console.error(i.message+" "+t.startUrl),""}if(e.scheme!==void 0&&!t.temporarySchemeAndHostUsed&&!t.temporarySchemeUsed?r.protocol=e.scheme.toLowerCase():r.protocol="",e.host!==void 0&&!t.temporarySchemeAndHostUsed&&!t.temporaryHostUsed?r.host=e.host:r.host="",e.port&&(r.port=String(e.port)),e.path&&(r.pathname=e.path),e.userinfo){let i=e.userinfo.split(":");i[0]&&(r.username=i[0]),i[1]&&(r.password=i[1])}e.query&&(r.search=e.query),e.fragment&&(r.hash=e.fragment);let n=r.toString();return!e.path&&n.endsWith("/")&&(n=n.slice(0,-1)),t.temporarySchemeAndHostUsed&&(n=n.replace(QS,""),n.startsWith("/")&&(n=n.slice(1))),t.temporaryHostUsed&&(n=n.replace($h,"")),t.temporarySchemeUsed&&(n=n.replace(Oh,"")),n}Ql.serialize=W3;var Oh="https:",$h="_remove_me_host_",QS=Oh+"//"+$h;function X3(e){let t={startUrl:"",temporaryHostUsed:!1,temporarySchemeUsed:!1,temporarySchemeAndHostUsed:!1};return e.scheme&&e.host?(t.startUrl=e.scheme+"://"+e.host,t):e.host?(t.temporarySchemeUsed=!0,t.startUrl=Oh+e.host,t):e.scheme?e.path?(t.startUrl=e.scheme+":"+e.path,t):(t.temporaryHostUsed=!0,t.startUrl=e.scheme+":"+$h,t):(t.temporarySchemeAndHostUsed=!0,t.startUrl=QS,t)}});var tu=x(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.parse=void 0;function J3(e){let t={path:"",fragment:void 0,host:void 0,port:void 0,query:void 0,reference:void 0,scheme:void 0,userinfo:void 0};e.includes("#")&&(t.fragment="");let{parsed:r,addedDefaultScheme:n,addedTemporaryHost:i,error:o}=Z3(e);if(o||r===void 0)return t.error=o,t;if(typeof r.protocol!==void 0&&r.protocol!==""&&!n&&(t.scheme=String(r.protocol).replace(":","")),typeof r.username!==void 0&&r.username!==""){let s=r.username;r.password&&(s+=":"+r.password),t.userinfo=s}return typeof r.hostname!==void 0&&r.hostname!==""&&!i&&(t.host=r.hostname,t.host.startsWith("[")&&(t.host=t.host.substring(1),t.host=t.host.slice(0,-1))),typeof r.port!==void 0&&r.port!==""&&(t.port=Number(r.port)),typeof r.pathname!==void 0&&r.pathname!=="/"&&(t.path=r.pathname,i&&t.path.startsWith("/")&&(t.path=t.path.substring(1))),typeof r.search!==void 0&&r.search!==""&&(t.query=r.search.replace("?","")),typeof r.hash!==void 0&&r.hash!==""&&(t.fragment=r.hash.replace("#","")),t.scheme===void 0&&t.userinfo===void 0&&t.host===void 0&&t.port===void 0&&!t.path&&t.query===void 0?t.reference="same-document":t.scheme===void 0?t.reference="relative":t.fragment===void 0?t.reference="absolute":t.reference="uri",t}eu.parse=J3;var Q3="_remove_me_host/";function Z3(e){let t={parsed:void 0,addedDefaultScheme:!1,addedTemporaryHost:!1,error:void 0},r;try{return t.parsed=new URL(e),t}catch(n){r=n}if(e.startsWith("//"))try{return t.parsed=new URL("https:"+e),t.addedDefaultScheme=!0,t}catch{return t.error=r.message,t}try{return t.parsed=new URL("https://"+Q3+e),t.addedDefaultScheme=!0,t.addedTemporaryHost=!0,t}catch{}return t.error=r.message,t}});var e_=x(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.resolveComponents=Qo.resolve=void 0;var nu=tu(),Ph=Zl();function e6(e,t,r){let n=Object.assign({scheme:"null"},r),i=ZS((0,nu.parse)(e),(0,nu.parse)(t),n,!0);return(0,Ph.serialize)(i)}Qo.resolve=e6;function ZS(e,t,r,n){let i={};return n||(e=(0,nu.parse)((0,Ph.serialize)(e)),t=(0,nu.parse)((0,Ph.serialize)(t))),r=r||{},!r.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=ru(t.path||""),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=ru(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=ru(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path,i.path=ru(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}Qo.resolveComponents=ZS;function ru(e){let t=/^\.\.?\//u,r=/^\/\.(?:\/|$)/u,n=/^\/\.\.(?:\/|$)/u,i=/^\/?(?:.|\n)*?(?=\/|$)/u,o=[];for(;e.length;)if(e.match(t))e=e.replace(t,"");else if(e.match(r))e=e.replace(r,"/");else if(e.match(n))e=e.replace(n,"/"),o.pop();else if(e==="."||e==="..")e="";else{let s=e.match(i);if(s){let a=s[0];e=e.slice(a.length),o.push(a)}else throw new Error("Unexpected dot segment condition")}return o.join("")}});var t_=x(cr=>{"use strict";var t6=cr&&cr.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),Eh=cr&&cr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&t6(t,e,r)};Object.defineProperty(cr,"__esModule",{value:!0});cr.normalize=cr.equal=void 0;var Zo=Zl(),iu=tu();Eh(e_(),cr);Eh(Zl(),cr);Eh(tu(),cr);function r6(e,t){let r,n;return typeof e=="string"?r=(0,Zo.serialize)((0,iu.parse)(e)):r=(0,Zo.serialize)(e),typeof t=="string"?n=(0,Zo.serialize)((0,iu.parse)(t)):n=(0,Zo.serialize)(t),r.toLowerCase()===n.toLowerCase()}cr.equal=r6;function n6(e){return typeof e=="string"?(0,Zo.serialize)((0,iu.parse)(e)):(0,iu.parse)((0,Zo.serialize)(e))}cr.normalize=n6});var n_=x(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});var r_=t_();r_.code='require("ajv/dist/runtime/uri").default';Ah.default=r_});var Th=x(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.CodeGen=xt.Name=xt.nil=xt.stringify=xt.str=xt._=xt.KeywordCxt=void 0;var i6=Xo();Object.defineProperty(xt,"KeywordCxt",{enumerable:!0,get:function(){return i6.KeywordCxt}});var es=oe();Object.defineProperty(xt,"_",{enumerable:!0,get:function(){return es._}});Object.defineProperty(xt,"str",{enumerable:!0,get:function(){return es.str}});Object.defineProperty(xt,"stringify",{enumerable:!0,get:function(){return es.stringify}});Object.defineProperty(xt,"nil",{enumerable:!0,get:function(){return es.nil}});Object.defineProperty(xt,"Name",{enumerable:!0,get:function(){return es.Name}});Object.defineProperty(xt,"CodeGen",{enumerable:!0,get:function(){return es.CodeGen}});var o6=gh(),c_=wh(),s6=th(),Ma=ja(),a6=oe(),La=Ia(),ou=Ra(),Rh=ye(),i_=JS(),c6=n_(),l_=(e,t)=>new RegExp(e,t);l_.code="new RegExp";var l6=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],u6=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),p6={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},f6={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},o_=200;function d6(e){var t,r,n,i,o,s,a,c,l,u,p,m,d,f,h,y,b,g,v,_,w,N,S,O,P;let E=e.strict,R=(t=e.code)===null||t===void 0?void 0:t.optimize,A=R===!0||R===void 0?1:R||0,I=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:l_,C=(i=e.uriResolver)!==null&&i!==void 0?i:c6.default;return{strictSchema:(s=(o=e.strictSchema)!==null&&o!==void 0?o:E)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:E)!==null&&c!==void 0?c:!0,strictTypes:(u=(l=e.strictTypes)!==null&&l!==void 0?l:E)!==null&&u!==void 0?u:"log",strictTuples:(m=(p=e.strictTuples)!==null&&p!==void 0?p:E)!==null&&m!==void 0?m:"log",strictRequired:(f=(d=e.strictRequired)!==null&&d!==void 0?d:E)!==null&&f!==void 0?f:!1,code:e.code?{...e.code,optimize:A,regExp:I}:{optimize:A,regExp:I},loopRequired:(h=e.loopRequired)!==null&&h!==void 0?h:o_,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:o_,meta:(b=e.meta)!==null&&b!==void 0?b:!0,messages:(g=e.messages)!==null&&g!==void 0?g:!0,inlineRefs:(v=e.inlineRefs)!==null&&v!==void 0?v:!0,schemaId:(_=e.schemaId)!==null&&_!==void 0?_:"$id",addUsedSchema:(w=e.addUsedSchema)!==null&&w!==void 0?w:!0,validateSchema:(N=e.validateSchema)!==null&&N!==void 0?N:!0,validateFormats:(S=e.validateFormats)!==null&&S!==void 0?S:!0,unicodeRegExp:(O=e.unicodeRegExp)!==null&&O!==void 0?O:!0,int32range:(P=e.int32range)!==null&&P!==void 0?P:!0,uriResolver:C}}var Da=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...d6(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new a6.ValueScope({scope:{},prefixes:u6,es5:r,lines:n}),this.logger=v6(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,s6.getRules)(),s_.call(this,p6,t,"NOT SUPPORTED"),s_.call(this,f6,t,"DEPRECATED","warn"),this._metaOpts=g6.call(this),t.formats&&h6.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&y6.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),m6.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=i_;n==="id"&&(i={...i_},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(u,p){await o.call(this,u.$schema);let m=this._addSchema(u,p);return m.validate||s.call(this,m)}async function o(u){u&&!this.getSchema(u)&&await i.call(this,{$ref:u},!0)}async function s(u){try{return this._compileSchemaEnv(u)}catch(p){if(!(p instanceof c_.default))throw p;return a.call(this,p),await c.call(this,p.missingSchema),s.call(this,u)}}function a({missingSchema:u,missingRef:p}){if(this.refs[u])throw new Error(`AnySchema ${u} is loaded but ${p} cannot be resolved`)}async function c(u){let p=await l.call(this,u);this.refs[u]||await o.call(this,p.$schema),this.refs[u]||this.addSchema(p,u,r)}async function l(u){let p=this._loading[u];if(p)return p;try{return await(this._loading[u]=n(u))}finally{delete this._loading[u]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let s of t)this.addSchema(s,void 0,n,i);return this}let o;if(typeof t=="object"){let{schemaId:s}=this.opts;if(o=t[s],o!==void 0&&typeof o!="string")throw new Error(`schema ${s} must be string`)}return r=(0,La.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(t){let r;for(;typeof(r=a_.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new Ma.SchemaEnv({schema:{},schemaId:n});if(r=Ma.resolveSchema.call(this,i,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=a_.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,La.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(w6.call(this,n,r),!r)return(0,Rh.eachItem)(n,o=>Ch.call(this,o)),this;_6.call(this,r);let i={...r,type:(0,ou.getJSONTypes)(r.type),schemaType:(0,ou.getJSONTypes)(r.schemaType)};return(0,Rh.eachItem)(n,i.type.length===0?o=>Ch.call(this,o,i):o=>i.type.forEach(s=>Ch.call(this,o,i,s))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(o=>o.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,o)=>i+r+o)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let o=i.split("/").slice(1),s=t;for(let a of o)s=s[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:l}=c.definition,u=s[a];l&&u&&(s[a]=u_(u))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,o=this.opts.addUsedSchema){let s,{schemaId:a}=this.opts;if(typeof t=="object")s=t[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,La.normalizeId)(s||n);let l=La.getSchemaRefs.call(this,t,n);return c=new Ma.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),i&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):Ma.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{Ma.compileSchema.call(this,t)}finally{this.opts=r}}};Da.ValidationError=o6.default;Da.MissingRefError=c_.default;xt.default=Da;function s_(e,t,r,n="error"){for(let i in e){let o=i;o in t&&this.logger[n](`${r}: option ${i}. ${e[o]}`)}}function a_(e){return e=(0,La.normalizeId)(e),this.schemas[e]||this.refs[e]}function m6(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function h6(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function y6(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function g6(){let e={...this.opts};for(let t of l6)delete e[t];return e}var b6={log(){},warn(){},error(){}};function v6(e){if(e===!1)return b6;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var x6=/^[a-z_$][a-z0-9_$:-]*$/i;function w6(e,t){let{RULES:r}=this;if((0,Rh.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!x6.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function Ch(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,s=i?o.post:o.rules.find(({type:c})=>c===r);if(s||(s={type:r,rules:[]},o.rules.push(s)),o.keywords[e]=!0,!t)return;let a={keyword:e,definition:{...t,type:(0,ou.getJSONTypes)(t.type),schemaType:(0,ou.getJSONTypes)(t.schemaType)}};t.before?S6.call(this,s,a,t.before):s.rules.push(a),o.all[e]=a,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function S6(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function _6(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=u_(t)),e.validateSchema=this.compile(t,!0))}var O6={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function u_(e){return{anyOf:[e,O6]}}});var p_=x(Nh=>{"use strict";Object.defineProperty(Nh,"__esModule",{value:!0});var $6={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Nh.default=$6});var cu=x(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.getValidate=m_;Fa.callRef=au;var P6=wh(),f_=wr(),rt=oe(),ts=vr(),d_=ja(),su=ye(),E6={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:s,opts:a,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return p();let u=d_.resolveRef.call(c,l,i,r);if(u===void 0)throw new P6.default(n.opts.uriResolver,i,r);if(u instanceof d_.SchemaEnv)return m(u);return d(u);function p(){if(o===l)return au(e,s,o,o.$async);let f=t.scopeValue("root",{ref:l});return au(e,(0,rt._)`${f}.validate`,l,l.$async)}function m(f){let h=m_(e,f);au(e,h,f,f.$async)}function d(f){let h=t.scopeValue("schema",a.code.source===!0?{ref:f,code:(0,rt.stringify)(f)}:{ref:f}),y=t.name("valid"),b=e.subschema({schema:f,dataTypes:[],schemaPath:rt.nil,topSchemaRef:h,errSchemaPath:r},y,n.isAllOfVariant);e.mergeEvaluated(b),e.ok(y)}}};function m_(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,rt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}function au(e,t,r,n){let{gen:i,it:o}=e,{allErrors:s,schemaEnv:a,opts:c}=o,l=c.passContext?ts.default.this:rt.nil;n?u():p();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");let f=i.let("valid");i.try(()=>{i.code((0,rt._)`await ${(0,f_.callValidateCode)(e,t,l)}`),d(t),s||i.assign(f,!0)},h=>{i.if((0,rt._)`!(${h} instanceof ${o.ValidationError})`,()=>i.throw(h)),m(h),s||i.assign(f,!1)}),e.ok(f)}function p(){let f=i.name("visitedNodes");i.code((0,rt._)`const ${f} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${t}) || new Set()`),i.if((0,rt._)`!${f}.has(${e.data})`,()=>{i.code((0,rt._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${t}, ${f})`),i.code((0,rt._)`const dataNode = ${e.data}`),i.code((0,rt._)`if (typeof dataNode === "object" && dataNode !== null) ${f}.add(dataNode)`);let h=e.result((0,f_.callValidateCode)(e,t,l),()=>d(t),()=>m(t));return i.code((0,rt._)`${f}.delete(dataNode)`),h})}function m(f){let h=(0,rt._)`${f}.errors`;i.assign(ts.default.vErrors,(0,rt._)`${ts.default.vErrors} === null ? ${h} : ${ts.default.vErrors}.concat(${h})`),i.assign(ts.default.errors,(0,rt._)`${ts.default.vErrors}.length`)}function d(f){var h;if(!o.opts.unevaluated)return;let y=(h=r==null?void 0:r.validate)===null||h===void 0?void 0:h.evaluated;if(o.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(o.props=su.mergeEvaluated.props(i,y.props,o.props));else{let b=i.var("props",(0,rt._)`${f}.evaluated.props`);o.props=su.mergeEvaluated.props(i,b,o.props,rt.Name)}if(o.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(o.items=su.mergeEvaluated.items(i,y.items,o.items));else{let b=i.var("items",(0,rt._)`${f}.evaluated.items`);o.items=su.mergeEvaluated.items(i,b,o.items,rt.Name)}}}Fa.default=E6});var kh=x(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});var A6=p_(),C6=cu(),R6=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",A6.default,C6.default];Ih.default=R6});var h_=x(qh=>{"use strict";Object.defineProperty(qh,"__esModule",{value:!0});var lu=oe(),Qn=lu.operators,uu={maximum:{okStr:"<=",ok:Qn.LTE,fail:Qn.GT},minimum:{okStr:">=",ok:Qn.GTE,fail:Qn.LT},exclusiveMaximum:{okStr:"<",ok:Qn.LT,fail:Qn.GTE},exclusiveMinimum:{okStr:">",ok:Qn.GT,fail:Qn.LTE}},T6={message:({keyword:e,schemaCode:t})=>(0,lu.str)`must be ${uu[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,lu._)`{comparison: ${uu[e].okStr}, limit: ${t}}`},N6={keyword:Object.keys(uu),type:"number",schemaType:"number",$data:!0,error:T6,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,lu._)`${r} ${uu[t].fail} ${n} || isNaN(${r})`)}};qh.default=N6});var y_=x(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});var Ba=oe(),I6={message:({schemaCode:e})=>(0,Ba.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Ba._)`{multipleOf: ${e}}`},k6={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:I6,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,s=t.let("res"),a=o?(0,Ba._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,Ba._)`${s} !== parseInt(${s})`;e.fail$data((0,Ba._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};jh.default=k6});var b_=x(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});Mh.default=g_;function g_(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}g_.code='require("ajv/dist/runtime/ucs2length").default'});var v_=x(Lh=>{"use strict";Object.defineProperty(Lh,"__esModule",{value:!0});var Zi=oe(),q6=ye(),j6=b_(),M6={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Zi.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Zi._)`{limit: ${e}}`},L6={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:M6,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?Zi.operators.GT:Zi.operators.LT,s=i.opts.unicode===!1?(0,Zi._)`${r}.length`:(0,Zi._)`${(0,q6.useFunc)(e.gen,j6.default)}(${r})`;e.fail$data((0,Zi._)`${s} ${o} ${n}`)}};Lh.default=L6});var x_=x(Dh=>{"use strict";Object.defineProperty(Dh,"__esModule",{value:!0});var D6=wr(),pu=oe(),F6={message:({schemaCode:e})=>(0,pu.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,pu._)`{pattern: ${e}}`},B6={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:F6,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,s=o.opts.unicodeRegExp?"u":"",a=r?(0,pu._)`(new RegExp(${i}, ${s}))`:(0,D6.usePattern)(e,n);e.fail$data((0,pu._)`!${a}.test(${t})`)}};Dh.default=B6});var w_=x(Fh=>{"use strict";Object.defineProperty(Fh,"__esModule",{value:!0});var Ua=oe(),U6={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Ua.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Ua._)`{limit: ${e}}`},V6={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:U6,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Ua.operators.GT:Ua.operators.LT;e.fail$data((0,Ua._)`Object.keys(${r}).length ${i} ${n}`)}};Fh.default=V6});var S_=x(Bh=>{"use strict";Object.defineProperty(Bh,"__esModule",{value:!0});var Va=wr(),za=oe(),z6=ye(),H6={message:({params:{missingProperty:e}})=>(0,za.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,za._)`{missingProperty: ${e}}`},K6={keyword:"required",type:"object",schemaType:"array",$data:!0,error:H6,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:s}=e,{opts:a}=s;if(!o&&r.length===0)return;let c=r.length>=a.loopRequired;if(s.allErrors?l():u(),a.strictRequired){let d=e.parentSchema.properties,{definedProperties:f}=e.it;for(let h of r)if((d==null?void 0:d[h])===void 0&&!f.has(h)){let y=s.schemaEnv.baseId+s.errSchemaPath,b=`required property "${h}" is not defined at "${y}" (strictRequired)`;(0,z6.checkStrictMode)(s,b,s.opts.strictRequired)}}function l(){if(c||o)e.block$data(za.nil,p);else for(let d of r)(0,Va.checkReportMissingProp)(e,d)}function u(){let d=t.let("missing");if(c||o){let f=t.let("valid",!0);e.block$data(f,()=>m(d,f)),e.ok(f)}else t.if((0,Va.checkMissingProp)(e,r,d)),(0,Va.reportMissingProp)(e,d),t.else()}function p(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,Va.noPropertyInData)(t,i,d,a.ownProperties),()=>e.error())})}function m(d,f){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(f,(0,Va.propertyInData)(t,i,d,a.ownProperties)),t.if((0,za.not)(f),()=>{e.error(),t.break()})},za.nil)}}};Bh.default=K6});var __=x(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});var Ha=oe(),G6={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Ha.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Ha._)`{limit: ${e}}`},Y6={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:G6,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Ha.operators.GT:Ha.operators.LT;e.fail$data((0,Ha._)`${r}.length ${i} ${n}`)}};Uh.default=Y6});var fu=x(Vh=>{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0});var O_=Na();O_.code='require("ajv/dist/runtime/equal").default';Vh.default=O_});var $_=x(Hh=>{"use strict";Object.defineProperty(Hh,"__esModule",{value:!0});var zh=Ra(),wt=oe(),W6=ye(),X6=fu(),J6={message:({params:{i:e,j:t}})=>(0,wt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,wt._)`{i: ${e}, j: ${t}}`},Q6={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:J6,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:s,it:a}=e;if(!n&&!i)return;let c=t.let("valid"),l=o.items?(0,zh.getSchemaTypes)(o.items):[];e.block$data(c,u,(0,wt._)`${s} === false`),e.ok(c);function u(){let f=t.let("i",(0,wt._)`${r}.length`),h=t.let("j");e.setParams({i:f,j:h}),t.assign(c,!0),t.if((0,wt._)`${f} > 1`,()=>(p()?m:d)(f,h))}function p(){return l.length>0&&!l.some(f=>f==="object"||f==="array")}function m(f,h){let y=t.name("item"),b=(0,zh.checkDataTypes)(l,y,a.opts.strictNumbers,zh.DataType.Wrong),g=t.const("indices",(0,wt._)`{}`);t.for((0,wt._)`;${f}--;`,()=>{t.let(y,(0,wt._)`${r}[${f}]`),t.if(b,(0,wt._)`continue`),l.length>1&&t.if((0,wt._)`typeof ${y} == "string"`,(0,wt._)`${y} += "_"`),t.if((0,wt._)`typeof ${g}[${y}] == "number"`,()=>{t.assign(h,(0,wt._)`${g}[${y}]`),e.error(),t.assign(c,!1).break()}).code((0,wt._)`${g}[${y}] = ${f}`)})}function d(f,h){let y=(0,W6.useFunc)(t,X6.default),b=t.name("outer");t.label(b).for((0,wt._)`;${f}--;`,()=>t.for((0,wt._)`${h} = ${f}; ${h}--;`,()=>t.if((0,wt._)`${y}(${r}[${f}], ${r}[${h}])`,()=>{e.error(),t.assign(c,!1).break(b)})))}}};Hh.default=Q6});var P_=x(Gh=>{"use strict";Object.defineProperty(Gh,"__esModule",{value:!0});var Kh=oe(),Z6=ye(),e5=fu(),t5={message:"must be equal to constant",params:({schemaCode:e})=>(0,Kh._)`{allowedValue: ${e}}`},r5={keyword:"const",$data:!0,error:t5,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,Kh._)`!${(0,Z6.useFunc)(t,e5.default)}(${r}, ${i})`):e.fail((0,Kh._)`${o} !== ${r}`)}};Gh.default=r5});var E_=x(Yh=>{"use strict";Object.defineProperty(Yh,"__esModule",{value:!0});var Ka=oe(),n5=ye(),i5=fu(),o5={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Ka._)`{allowedValues: ${e}}`},s5={keyword:"enum",schemaType:"array",$data:!0,error:o5,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:s}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let a=i.length>=s.opts.loopEnum,c,l=()=>c!=null?c:c=(0,n5.useFunc)(t,i5.default),u;if(a||n)u=t.let("valid"),e.block$data(u,p);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let d=t.const("vSchema",o);u=(0,Ka.or)(...i.map((f,h)=>m(d,h)))}e.pass(u);function p(){t.assign(u,!1),t.forOf("v",o,d=>t.if((0,Ka._)`${l()}(${r}, ${d})`,()=>t.assign(u,!0).break()))}function m(d,f){let h=i[f];return typeof h=="object"&&h!==null?(0,Ka._)`${l()}(${r}, ${d}[${f}])`:(0,Ka._)`${r} === ${h}`}}};Yh.default=s5});var Xh=x(Wh=>{"use strict";Object.defineProperty(Wh,"__esModule",{value:!0});var a5=h_(),c5=y_(),l5=v_(),u5=x_(),p5=w_(),f5=S_(),d5=__(),m5=$_(),h5=P_(),y5=E_(),g5=[a5.default,c5.default,l5.default,u5.default,p5.default,f5.default,d5.default,m5.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},h5.default,y5.default];Wh.default=g5});var Qh=x(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.validateAdditionalItems=A_;var eo=oe(),Jh=ye(),b5={message:({params:{len:e}})=>(0,eo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,eo._)`{limit: ${e}}`},v5={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:b5,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Jh.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}A_(e,n)}};function A_(e,t){let{gen:r,schema:n,data:i,keyword:o,it:s}=e;s.items=!0;let a=r.const("len",(0,eo._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,eo._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,Jh.alwaysValidSchema)(s,n)){let l=r.var("valid",(0,eo._)`${a} <= ${t.length}`);r.if((0,eo.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,u=>{e.subschema({keyword:o,dataProp:u,dataPropType:Jh.Type.Num},l),s.allErrors||r.if((0,eo.not)(l),()=>r.break())})}}du.default=v5});var Zh=x(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.validateTuple=R_;var C_=oe(),mu=ye(),x5=wr(),w5={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return R_(e,"additionalItems",t);r.items=!0,!(0,mu.alwaysValidSchema)(r,t)&&e.ok((0,x5.validateArray)(e))}};function R_(e,t,r=e.schema){let{gen:n,parentSchema:i,data:o,keyword:s,it:a}=e;u(i),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=mu.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),l=n.const("len",(0,C_._)`${o}.length`);r.forEach((p,m)=>{(0,mu.alwaysValidSchema)(a,p)||(n.if((0,C_._)`${l} > ${m}`,()=>e.subschema({keyword:s,schemaProp:m,dataProp:m},c)),e.ok(c))});function u(p){let{opts:m,errSchemaPath:d}=a,f=r.length,h=f===p.minItems&&(f===p.maxItems||p[t]===!1);if(m.strictTuples&&!h){let y=`"${s}" is ${f}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,mu.checkStrictMode)(a,y,m.strictTuples)}}}hu.default=w5});var T_=x(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});var S5=Zh(),_5={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,S5.validateTuple)(e,"items")};ey.default=_5});var I_=x(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});var N_=oe(),O5=ye(),$5=wr(),P5=Qh(),E5={message:({params:{len:e}})=>(0,N_.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,N_._)`{limit: ${e}}`},A5={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:E5,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,O5.alwaysValidSchema)(n,t)&&(i?(0,P5.validateAdditionalItems)(e,i):e.ok((0,$5.validateArray)(e)))}};ty.default=A5});var k_=x(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});var Sr=oe(),yu=ye(),C5={message:({params:{min:e,max:t}})=>t===void 0?(0,Sr.str)`must contain at least ${e} valid item(s)`:(0,Sr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Sr._)`{minContains: ${e}}`:(0,Sr._)`{minContains: ${e}, maxContains: ${t}}`},R5={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:C5,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e,s,a,{minContains:c,maxContains:l}=n;o.opts.next?(s=c===void 0?1:c,a=l):s=1;let u=t.const("len",(0,Sr._)`${i}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,yu.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,yu.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,yu.alwaysValidSchema)(o,r)){let h=(0,Sr._)`${u} >= ${s}`;a!==void 0&&(h=(0,Sr._)`${h} && ${u} <= ${a}`),e.pass(h);return}o.items=!0;let p=t.name("valid");a===void 0&&s===1?d(p,()=>t.if(p,()=>t.break())):s===0?(t.let(p,!0),a!==void 0&&t.if((0,Sr._)`${i}.length > 0`,m)):(t.let(p,!1),m()),e.result(p,()=>e.reset());function m(){let h=t.name("_valid"),y=t.let("count",0);d(h,()=>t.if(h,()=>f(y)))}function d(h,y){t.forRange("i",0,u,b=>{e.subschema({keyword:"contains",dataProp:b,dataPropType:yu.Type.Num,compositeRule:!0},h),y()})}function f(h){t.code((0,Sr._)`${h}++`),a===void 0?t.if((0,Sr._)`${h} >= ${s}`,()=>t.assign(p,!0).break()):(t.if((0,Sr._)`${h} > ${a}`,()=>t.assign(p,!1).break()),s===1?t.assign(p,!0):t.if((0,Sr._)`${h} >= ${s}`,()=>t.assign(p,!0)))}}};ry.default=R5});var gu=x(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.error=void 0;Zn.validatePropertyDeps=q_;Zn.validateSchemaDeps=j_;var ny=oe(),T5=ye(),Ga=wr();Zn.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,ny.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,ny._)`{property: ${e},
5
+ || ${s} === "boolean" || ${i} === null`).assign(a,(0,ae._)`[${i}]`)}}}function j9({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,ae._)`${t} !== undefined`,()=>e.assign((0,ae._)`${t}[${r}]`,n))}function nh(e,t,r,n=Ho.Correct){let i=n===Ho.Correct?ae.operators.EQ:ae.operators.NEQ,o;switch(e){case"null":return(0,ae._)`${t} ${i} null`;case"array":o=(0,ae._)`Array.isArray(${t})`;break;case"object":o=(0,ae._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=s((0,ae._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=s();break;default:return(0,ae._)`typeof ${t} ${i} ${e}`}return n===Ho.Correct?o:(0,ae.not)(o);function s(a=ae.nil){return(0,ae.and)((0,ae._)`typeof ${t} == "number"`,a,r?(0,ae._)`isFinite(${t})`:ae.nil)}}function ih(e,t,r,n){if(e.length===1)return nh(e[0],t,r,n);let i,o=(0,gS.toHash)(e);if(o.array&&o.object){let s=(0,ae._)`typeof ${t} != "object"`;i=o.null?s:(0,ae._)`!${t} || ${s}`,delete o.null,delete o.array,delete o.object}else i=ae.nil;o.number&&delete o.integer;for(let s in o)i=(0,ae.and)(i,nh(s,t,r,n));return i}var M9={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,ae._)`{type: ${e}}`:(0,ae._)`{type: ${t}}`};function oh(e){let t=L9(e);(0,T9.reportError)(t,M9)}function L9(e){let{gen:t,data:r,schema:n}=e,i=(0,gS.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}});var wS=x(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.assignDefaults=F9;var Ko=oe(),D9=ge();function F9(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)xS(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>xS(e,o,i.default))}function xS(e,t,r){let{gen:n,compositeRule:i,data:o,opts:s}=e;if(r===void 0)return;let a=(0,Ko._)`${o}${(0,Ko.getProperty)(t)}`;if(i){(0,D9.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,Ko._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,Ko._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,Ko._)`${a} = ${(0,Ko.stringify)(r)}`)}});var wr=x(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.checkReportMissingProp=U9;Bt.checkMissingProp=V9;Bt.reportMissingProp=z9;Bt.hasPropFunc=SS;Bt.isOwnProperty=ch;Bt.propertyInData=H9;Bt.noPropertyInData=lh;Bt.allSchemaProperties=_S;Bt.schemaProperties=K9;Bt.callValidateCode=G9;Bt.usePattern=W9;Bt.validateArray=X9;Bt.validateUnion=J9;var De=oe(),ah=ge(),Sn=vr(),B9=ge();function U9(e,t){let{gen:r,data:n,it:i}=e;r.if(lh(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,De._)`${t}`},!0),e.error()})}function V9({gen:e,data:t,it:{opts:r}},n,i){return(0,De.or)(...n.map(o=>(0,De.and)(lh(e,t,o,r.ownProperties),(0,De._)`${i} = ${o}`)))}function z9(e,t){e.setParams({missingProperty:t},!0),e.error()}function SS(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,De._)`Object.prototype.hasOwnProperty`})}function ch(e,t,r){return(0,De._)`${SS(e)}.call(${t}, ${r})`}function H9(e,t,r,n){let i=(0,De._)`${t}${(0,De.getProperty)(r)} !== undefined`;return n?(0,De._)`${i} && ${ch(e,t,r)}`:i}function lh(e,t,r,n){let i=(0,De._)`${t}${(0,De.getProperty)(r)} === undefined`;return n?(0,De.or)(i,(0,De.not)(ch(e,t,r))):i}function _S(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}function K9(e,t){return _S(t).filter(r=>!(0,ah.alwaysValidSchema)(e,t[r]))}function G9({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:s},a,c,l){let u=l?(0,De._)`${e}, ${t}, ${n}${i}`:t,p=[[Sn.default.instancePath,(0,De.strConcat)(Sn.default.instancePath,o)],[Sn.default.parentData,s.parentData],[Sn.default.parentDataProperty,s.parentDataProperty],[Sn.default.rootData,Sn.default.rootData],[Sn.default.isAllOfVariant,s.isAllOfVariant?1:0]];s.opts.dynamicRef&&p.push([Sn.default.dynamicAnchors,Sn.default.dynamicAnchors]);let m=(0,De._)`${u}, ${r.object(...p)}`;return c!==De.nil?(0,De._)`${a}.call(${c}, ${m})`:(0,De._)`${a}(${m})`}var Y9=(0,De._)`new RegExp`;function W9({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,De._)`${i.code==="new RegExp"?Y9:(0,B9.useFunc)(e,i)}(${r}, ${n})`})}function X9(e){let{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){let a=t.let("valid",!0);return s(()=>t.assign(a,!1)),a}return t.var(o,!0),s(()=>t.break()),o;function s(a){let c=t.const("len",(0,De._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:ah.Type.Num},o),t.if((0,De.not)(o),a)})}}function J9(e){let{gen:t,schema:r,keyword:n,parentSchema:i,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&i.discriminator||r.some(l=>(0,ah.alwaysValidSchema)(o,l))&&!o.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((l,u)=>{let p=e.subschema({keyword:n,schemaProp:u,compositeRule:!0},c);t.assign(a,(0,De._)`${a} || ${c}`),e.mergeValidEvaluated(p,c)||t.if((0,De.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}});var PS=x(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.macroKeywordCode=e3;Go.funcKeywordCode=t3;Go.validSchemaType=i3;Go.validateKeywordUsage=o3;var Ut=oe(),Ji=vr(),Q9=wr(),Z9=Aa();function e3(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:s}=e,a=t.macro.call(s.self,i,o,s),c=$S(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let l=r.name("valid");e.subschema({schema:a,schemaPath:Ut.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}function t3(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:s,$data:a,it:c}=e;n3(c,t);let l=!a&&t.compile?t.compile.call(c.self,o,s,c):t.validate,u=$S(n,i,l),p=n.let("valid");e.block$data(p,m),e.ok((r=t.valid)!==null&&r!==void 0?r:p);function m(){if(t.errors===!1)h(),t.modifying&&OS(e),y(()=>e.error());else{let b=t.async?d():f();t.modifying&&OS(e),y(()=>r3(e,b))}}function d(){let b=n.let("ruleErrs",null);return n.try(()=>h((0,Ut._)`await `),g=>n.assign(p,!1).if((0,Ut._)`${g} instanceof ${c.ValidationError}`,()=>n.assign(b,(0,Ut._)`${g}.errors`),()=>n.throw(g))),b}function f(){let b=(0,Ut._)`${u}.errors`;return n.assign(b,null),h(Ut.nil),b}function h(b=t.async?(0,Ut._)`await `:Ut.nil){let g=c.opts.passContext?Ji.default.this:Ji.default.self,v=!("compile"in t&&!a||t.schema===!1);n.assign(p,(0,Ut._)`${b}${(0,Q9.callValidateCode)(e,u,g,v)}`,t.modifying)}function y(b){var g;n.if((0,Ut.not)((g=t.valid)!==null&&g!==void 0?g:p),b)}}function OS(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Ut._)`${n.parentData}[${n.parentDataProperty}]`))}function r3(e,t){let{gen:r}=e;r.if((0,Ut._)`Array.isArray(${t})`,()=>{r.assign(Ji.default.vErrors,(0,Ut._)`${Ji.default.vErrors} === null ? ${t} : ${Ji.default.vErrors}.concat(${t})`).assign(Ji.default.errors,(0,Ut._)`${Ji.default.vErrors}.length`),(0,Z9.extendErrors)(e)},()=>e.error())}function n3({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function $S(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Ut.stringify)(r)})}function i3(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}function o3({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");let s=i.dependencies;if(s!=null&&s.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){let c=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}});var AS=x(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.getSubschema=s3;Ta.extendSubschemaData=a3;Ta.extendSubschemaMode=c3;var Zr=oe(),ES=ge();function s3(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:s}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,Zr._)`${e.schemaPath}${(0,Zr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,Zr._)`${e.schemaPath}${(0,Zr.getProperty)(t)}${(0,Zr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,ES.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:s,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}function a3(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:s}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=t;if(r!==void 0){let{errorPath:l,dataPathArr:u,opts:p}=t,m=a.let("data",(0,Zr._)`${t.data}${(0,Zr.getProperty)(r)}`,!0);c(m),e.errorPath=(0,Zr.str)`${l}${(0,ES.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,Zr._)`${r}`,e.dataPathArr=[...u,e.parentDataProperty]}if(i!==void 0){let l=i instanceof Zr.Name?i:a.let("data",i,!0);c(l),s!==void 0&&(e.propertyName=s)}o&&(e.dataTypes=o);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}function c3(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}});var Na=x((ooe,CS)=>{"use strict";CS.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var s=o[i];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}});var uh=x((soe,RS)=>{"use strict";var Wn=RS.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};Yl(t,n,i,e,"",e)};Wn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Wn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Wn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Wn.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 Yl(e,t,r,n,i,o,s,a,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,s,a,c,l);for(var u in n){var p=n[u];if(Array.isArray(p)){if(u in Wn.arrayKeywords)for(var m=0;m<p.length;m++)Yl(e,t,r,p[m],i+"/"+u+"/"+m,o,i,u,n,m)}else if(u in Wn.propsKeywords){if(p&&typeof p=="object")for(var d in p)Yl(e,t,r,p[d],i+"/"+u+"/"+l3(d),o,i,u,n,d)}else(u in Wn.keywords||e.allKeys&&!(u in Wn.skipKeywords))&&Yl(e,t,r,p,i+"/"+u,o,i,u,n)}r(n,i,o,s,a,c,l)}}function l3(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var Ia=x(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.inlineRef=m3;Xn.getFullPath=NS;Xn._getFullPath=IS;Xn.normalizeId=Yo;Xn.resolveUrl=g3;Xn.getSchemaRefs=v3;var u3=ge(),p3=Na(),f3=uh(),d3=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function m3(e,t=!0){return typeof e=="boolean"?!0:t===!0?!ph(e):t?TS(e)<=t:!1}var h3=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function ph(e){for(let t in e){if(h3.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(ph)||typeof r=="object"&&ph(r))return!0}return!1}function TS(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!d3.has(r)&&(typeof e[r]=="object"&&(0,u3.eachItem)(e[r],n=>t+=TS(n)),t===1/0))return 1/0}return t}function NS(e,t="",r){r!==!1&&(t=Yo(t));let n=e.parse(t);return IS(e,n)}function IS(e,t){return e.serialize(t).split("#")[0]+"#"}var y3=/#\/?$/;function Yo(e){return e?e.replace(y3,""):""}function g3(e,t,r){return r=Yo(r),e.resolve(t,r)}var b3=/^[a-z_][-a-z0-9._]*$/i;function v3(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=Yo(e[r]||t),o={"":i},s=NS(n,i,!1),a={},c=new Set;return f3(e,{allKeys:!0},(p,m,d,f)=>{if(f===void 0)return;let h=s+m,y=o[f];typeof p[r]=="string"&&(y=b.call(this,p[r])),g.call(this,p.$anchor),g.call(this,p.$dynamicAnchor),o[m]=y;function b(v){let _=this.opts.uriResolver.resolve;if(v=Yo(y?_(y,v):v),c.has(v))throw u(v);c.add(v);let w=this.refs[v];return typeof w=="string"&&(w=this.refs[w]),typeof w=="object"?l(p,w.schema,v):v!==Yo(h)&&(v[0]==="#"?(l(p,a[v],v),a[v]=p):this.refs[v]=h),v}function g(v){if(typeof v=="string"){if(!b3.test(v))throw new Error(`invalid anchor "${v}"`);b.call(this,`#${v}`)}}}),a;function l(p,m,d){if(m!==void 0&&!p3(p,m))throw u(d)}function u(p){return new Error(`reference "${p}" resolves to more than one schema`)}}});var Xo=x(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.KeywordCxt=void 0;Wo.validateFunctionCode=S3;Wo.getData=GS;var DS=mS(),kS=Ra(),dh=rh(),Wl=Ra(),x3=wS(),qa=PS(),fh=AS(),G=oe(),Z=vr(),w3=Ia(),_n=ge(),ka=Aa();function S3(e){if(US(e)&&(VS(e),BS(e))){$3(e);return}FS(e,()=>(0,DS.topBoolOrEmptySchema)(e))}function FS({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,G._)`${Z.default.data}, ${Z.default.valCxt}`,n.$async,()=>{e.code((0,G._)`"use strict"; ${qS(r,i)}`),O3(e,i),e.code(o)}):e.func(t,(0,G._)`${Z.default.data}, ${_3(i)}`,n.$async,()=>e.code(qS(r,i)).code(o))}function _3(e){return(0,G._)`{${Z.default.instancePath}="", ${Z.default.parentData}, ${Z.default.parentDataProperty}, ${Z.default.rootData}=${Z.default.data}${e.dynamicRef?(0,G._)`, ${Z.default.dynamicAnchors}={}`:G.nil}, ${Z.default.isAllOfVariant} = 0}={}`}function O3(e,t){e.if(Z.default.valCxt,()=>{e.var(Z.default.instancePath,(0,G._)`${Z.default.valCxt}.${Z.default.instancePath}`),e.var(Z.default.parentData,(0,G._)`${Z.default.valCxt}.${Z.default.parentData}`),e.var(Z.default.parentDataProperty,(0,G._)`${Z.default.valCxt}.${Z.default.parentDataProperty}`),e.var(Z.default.rootData,(0,G._)`${Z.default.valCxt}.${Z.default.rootData}`),e.var(Z.default.isAllOfVariant,(0,G._)`${Z.default.valCxt}.${Z.default.isAllOfVariant}`),t.dynamicRef&&e.var(Z.default.dynamicAnchors,(0,G._)`${Z.default.valCxt}.${Z.default.dynamicAnchors}`)},()=>{e.var(Z.default.instancePath,(0,G._)`""`),e.var(Z.default.parentData,(0,G._)`undefined`),e.var(Z.default.parentDataProperty,(0,G._)`undefined`),e.var(Z.default.rootData,Z.default.data),e.var(Z.default.isAllOfVariant,(0,G._)`0`),t.dynamicRef&&e.var(Z.default.dynamicAnchors,(0,G._)`{}`)})}function $3(e){let{schema:t,opts:r,gen:n}=e;FS(e,()=>{r.$comment&&t.$comment&&HS(e),R3(e),n.let(Z.default.vErrors,null),n.let(Z.default.errors,0),r.unevaluated&&P3(e),zS(e),I3(e)})}function P3(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,G._)`${r}.evaluated`),t.if((0,G._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,G._)`${e.evaluated}.props`,(0,G._)`undefined`)),t.if((0,G._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,G._)`${e.evaluated}.items`,(0,G._)`undefined`))}function qS(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,G._)`/*# sourceURL=${r} */`:G.nil}function E3(e,t){if(US(e)&&(VS(e),BS(e))){A3(e,t);return}(0,DS.boolOrEmptySchema)(e,t)}function BS({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function US(e){return typeof e.schema!="boolean"}function A3(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&HS(e),T3(e),N3(e);let o=n.const("_errs",Z.default.errors);zS(e,o),n.var(t,(0,G._)`${o} === ${Z.default.errors}`)}function VS(e){(0,_n.checkUnknownRules)(e),C3(e)}function zS(e,t){if(e.opts.jtd)return jS(e,[],!1,t);let r=(0,kS.getSchemaTypes)(e.schema),n=(0,kS.coerceAndCheckDataType)(e,r);jS(e,r,!n,t)}function C3(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,_n.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function R3(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,_n.checkStrictMode)(e,"default is ignored in the schema root")}function T3(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,w3.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function N3(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function HS({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,G._)`${Z.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let s=(0,G.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,G._)`${Z.default.self}.opts.$comment(${o}, ${s}, ${a}.schema)`)}}function I3(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,G._)`${Z.default.errors} === 0`,()=>t.return(Z.default.data),()=>t.throw((0,G._)`new ${i}(${Z.default.vErrors})`)):(t.assign((0,G._)`${n}.errors`,Z.default.vErrors),o.unevaluated&&k3(e),t.return((0,G._)`${Z.default.errors} === 0`))}function k3({gen:e,evaluated:t,props:r,items:n}){r instanceof G.Name&&e.assign((0,G._)`${t}.props`,r),n instanceof G.Name&&e.assign((0,G._)`${t}.items`,n)}function jS(e,t,r,n){let{gen:i,schema:o,data:s,allErrors:a,opts:c,self:l}=e,{RULES:u}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,_n.schemaHasRulesButRef)(o,u))){i.block(()=>KS(e,"$ref",u.all.$ref.definition));return}c.jtd||q3(e,t),i.block(()=>{for(let m of u.rules)p(m);p(u.post)});function p(m){(0,dh.shouldUseGroup)(o,m)&&(m.type?(i.if((0,Wl.checkDataType)(m.type,s,c.strictNumbers)),MS(e,m),t.length===1&&t[0]===m.type&&r&&(i.else(),(0,Wl.reportTypeError)(e)),i.endIf()):MS(e,m),a||i.if((0,G._)`${Z.default.errors} === ${n||0}`))}}function MS(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,x3.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)((0,dh.shouldUseRule)(n,s)||o(n,s))&&KS(e,s.keyword,s.definition,t.type)});function o(s,a){return!!(a.keyword==="unevaluatedProperties"&&(s.properties||s.patternProperties)&&!e.isAllOfVariant&&e.opts.defaultUnevaluatedProperties===!1)}}function q3(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(j3(e,t),e.opts.allowUnionTypes||M3(e,t),L3(e,e.dataTypes))}function j3(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{LS(e.dataTypes,r)||mh(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),e.dataTypes=e.dataTypes.filter(r=>LS(t,r))}}function M3(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&mh(e,"use allowUnionTypes to allow union type keyword")}function L3(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,dh.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(s=>D3(t,s))&&mh(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function D3(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function LS(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function mh(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,_n.checkStrictMode)(e,t,e.opts.strictTypes)}var Xl=class{constructor(t,r,n){if((0,qa.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,_n.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",GS(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,qa.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",Z.default.errors))}result(t,r,n){this.failResult((0,G.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,G.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,G._)`${r} !== undefined && (${(0,G.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?ka.reportExtraError:ka.reportError)(this,this.def.error,r)}$dataError(){(0,ka.reportError)(this,this.def.$dataError||ka.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,ka.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=G.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=G.nil,r=G.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:s}=this;n.if((0,G.or)((0,G._)`${i} === undefined`,r)),t!==G.nil&&n.assign(t,!0),(o.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==G.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,G.or)(s(),a());function s(){if(n.length){if(!(r instanceof G.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,G._)`${(0,Wl.checkDataTypes)(c,r,o.opts.strictNumbers,Wl.DataType.Wrong)}`}return G.nil}function a(){if(i.validateSchema){let c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,G._)`!${c}(${r})`}return G.nil}}subschema(t,r,n){let i=(0,fh.getSubschema)(this.it,t);(0,fh.extendSubschemaData)(i,this.it,t),(0,fh.extendSubschemaMode)(i,t);let o={...this.it,...i,items:void 0,props:void 0,isAllOfVariant:n};return E3(o,r),o}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=_n.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=_n.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,G.Name)),!0}};Wo.KeywordCxt=Xl;function KS(e,t,r,n){let i=new Xl(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,qa.funcKeywordCode)(i,r):"macro"in r?(0,qa.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,qa.funcKeywordCode)(i,r)}var F3=/^\/(?:[^~]|~0|~1)*$/,B3=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function GS(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return Z.default.rootData;if(e[0]==="/"){if(!F3.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=Z.default.rootData}else{let l=B3.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let u=+l[1];if(i=l[2],i==="#"){if(u>=t)throw new Error(c("property/index",u));return n[t-u]}if(u>t)throw new Error(c("data",u));if(o=r[t-u],!i)return o}let s=o,a=i.split("/");for(let l of a)l&&(o=(0,G._)`${o}${(0,G.getProperty)((0,_n.unescapeJsonPointer)(l))}`,s=(0,G._)`${s} && ${o}`);return s;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${t}`}}});var gh=x(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});var hh=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};yh.default=hh});var wh=x(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});var bh=Ia(),vh=class extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,bh.resolveUrl)(t,r,n),this.missingSchema=(0,bh.normalizeId)((0,bh.getFullPath)(t,this.missingRef))}};xh.default=vh});var ja=x(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.SchemaEnv=void 0;Jn.compileSchema=_h;Jn.resolveRef=z3;Jn.getCompilingSchema=XS;Jn.resolveSchema=Jl;var jr=oe(),U3=gh(),Qi=vr(),Mr=Ia(),YS=ge(),V3=Xo(),Jo=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,Mr.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};Jn.SchemaEnv=Jo;function _h(e){let t=XS.call(this,e);if(t)return t;let r=(0,Mr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,s=new jr.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),a;e.$async&&(a=s.scopeValue("Error",{ref:U3.default,code:(0,jr._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let l={gen:s,allErrors:this.opts.allErrors,data:Qi.default.data,parentData:Qi.default.parentData,parentDataProperty:Qi.default.parentDataProperty,dataNames:[Qi.default.data],dataPathArr:[jr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,jr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:jr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,jr._)`""`,opts:this.opts,self:this},u;try{this._compilations.add(e),(0,V3.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);let p=s.toString();u=`const visitedNodesForRef = new WeakMap(); ${s.scopeRefs(Qi.default.scope)}return ${p}`,this.opts.code.process&&(u=this.opts.code.process(u,e));let d=new Function(`${Qi.default.self}`,`${Qi.default.scope}`,u)(this,this.scope.get());if(this.scope.value(c,{ref:d}),d.errors=null,d.schema=e.schema,d.schemaEnv=e,e.$async&&(d.$async=!0),this.opts.code.source===!0&&(d.source={validateName:c,validateCode:p,scopeValues:s._values}),this.opts.unevaluated){let{props:f,items:h}=l;d.evaluated={props:f instanceof jr.Name?void 0:f,items:h instanceof jr.Name?void 0:h,dynamicProps:f instanceof jr.Name,dynamicItems:h instanceof jr.Name},d.source&&(d.source.evaluated=(0,jr.stringify)(d.evaluated))}return e.validate=d,e}catch(p){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),p}finally{this._compilations.delete(e)}}function z3(e,t,r){var n;let i=(0,Mr.resolveUrl)(this.opts.uriResolver,t,r),o=e.refs[i];if(o)return o;let s=WS.call(this,e,i);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[i],{schemaId:c}=this.opts;a&&(s=new Jo({schema:a,schemaId:c,root:e,baseId:t}))}if(s===void 0&&this.opts.loadSchemaSync){let a=this.opts.loadSchemaSync(t,r,i);a&&!(this.refs[i]||this.schemas[i])&&(this.addSchema(a,i,void 0),s=WS.call(this,e,i))}if(s!==void 0)return e.refs[i]=H3.call(this,s)}function H3(e){return(0,Mr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:_h.call(this,e)}function XS(e){for(let t of this._compilations)if(K3(t,e))return t}function K3(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function WS(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Jl.call(this,e,t)}function Jl(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Mr._getFullPath)(this.opts.uriResolver,r),i=(0,Mr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Sh.call(this,r,e);let o=(0,Mr.normalizeId)(n),s=this.refs[o]||this.schemas[o];if(typeof s=="string"){let a=Jl.call(this,e,s);return typeof(a==null?void 0:a.schema)!="object"?void 0:Sh.call(this,r,a)}if(typeof(s==null?void 0:s.schema)=="object"){if(s.validate||_h.call(this,s),o===(0,Mr.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(i=(0,Mr.resolveUrl)(this.opts.uriResolver,i,l)),new Jo({schema:a,schemaId:c,root:e,baseId:i})}return Sh.call(this,r,s)}}var G3=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Sh(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,YS.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!G3.has(a)&&l&&(t=(0,Mr.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,YS.schemaHasRulesButRef)(r,this.RULES)){let a=(0,Mr.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=Jl.call(this,n,a)}let{schemaId:s}=this.opts;if(o=o||new Jo({schema:r,schemaId:s,root:n,baseId:t}),o.schema!==o.root.schema)return o}});var JS=x((foe,Y3)=>{Y3.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var Zl=x(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.serialize=void 0;function W3(e){let t=X3(e),r;try{r=new URL(t.startUrl)}catch(i){return i.message&&console.error(i.message+" "+t.startUrl),""}if(e.scheme!==void 0&&!t.temporarySchemeAndHostUsed&&!t.temporarySchemeUsed?r.protocol=e.scheme.toLowerCase():r.protocol="",e.host!==void 0&&!t.temporarySchemeAndHostUsed&&!t.temporaryHostUsed?r.host=e.host:r.host="",e.port&&(r.port=String(e.port)),e.path&&(r.pathname=e.path),e.userinfo){let i=e.userinfo.split(":");i[0]&&(r.username=i[0]),i[1]&&(r.password=i[1])}e.query&&(r.search=e.query),e.fragment&&(r.hash=e.fragment);let n=r.toString();return!e.path&&n.endsWith("/")&&(n=n.slice(0,-1)),t.temporarySchemeAndHostUsed&&(n=n.replace(QS,""),n.startsWith("/")&&(n=n.slice(1))),t.temporaryHostUsed&&(n=n.replace($h,"")),t.temporarySchemeUsed&&(n=n.replace(Oh,"")),n}Ql.serialize=W3;var Oh="https:",$h="_remove_me_host_",QS=Oh+"//"+$h;function X3(e){let t={startUrl:"",temporaryHostUsed:!1,temporarySchemeUsed:!1,temporarySchemeAndHostUsed:!1};return e.scheme&&e.host?(t.startUrl=e.scheme+"://"+e.host,t):e.host?(t.temporarySchemeUsed=!0,t.startUrl=Oh+e.host,t):e.scheme?e.path?(t.startUrl=e.scheme+":"+e.path,t):(t.temporaryHostUsed=!0,t.startUrl=e.scheme+":"+$h,t):(t.temporarySchemeAndHostUsed=!0,t.startUrl=QS,t)}});var tu=x(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.parse=void 0;function J3(e){let t={path:"",fragment:void 0,host:void 0,port:void 0,query:void 0,reference:void 0,scheme:void 0,userinfo:void 0};e.includes("#")&&(t.fragment="");let{parsed:r,addedDefaultScheme:n,addedTemporaryHost:i,error:o}=Z3(e);if(o||r===void 0)return t.error=o,t;if(typeof r.protocol!==void 0&&r.protocol!==""&&!n&&(t.scheme=String(r.protocol).replace(":","")),typeof r.username!==void 0&&r.username!==""){let s=r.username;r.password&&(s+=":"+r.password),t.userinfo=s}return typeof r.hostname!==void 0&&r.hostname!==""&&!i&&(t.host=r.hostname,t.host.startsWith("[")&&(t.host=t.host.substring(1),t.host=t.host.slice(0,-1))),typeof r.port!==void 0&&r.port!==""&&(t.port=Number(r.port)),typeof r.pathname!==void 0&&r.pathname!=="/"&&(t.path=r.pathname,i&&t.path.startsWith("/")&&(t.path=t.path.substring(1))),typeof r.search!==void 0&&r.search!==""&&(t.query=r.search.replace("?","")),typeof r.hash!==void 0&&r.hash!==""&&(t.fragment=r.hash.replace("#","")),t.scheme===void 0&&t.userinfo===void 0&&t.host===void 0&&t.port===void 0&&!t.path&&t.query===void 0?t.reference="same-document":t.scheme===void 0?t.reference="relative":t.fragment===void 0?t.reference="absolute":t.reference="uri",t}eu.parse=J3;var Q3="_remove_me_host/";function Z3(e){let t={parsed:void 0,addedDefaultScheme:!1,addedTemporaryHost:!1,error:void 0},r;try{return t.parsed=new URL(e),t}catch(n){r=n}if(e.startsWith("//"))try{return t.parsed=new URL("https:"+e),t.addedDefaultScheme=!0,t}catch{return t.error=r.message,t}try{return t.parsed=new URL("https://"+Q3+e),t.addedDefaultScheme=!0,t.addedTemporaryHost=!0,t}catch{}return t.error=r.message,t}});var e_=x(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.resolveComponents=Qo.resolve=void 0;var nu=tu(),Ph=Zl();function e6(e,t,r){let n=Object.assign({scheme:"null"},r),i=ZS((0,nu.parse)(e),(0,nu.parse)(t),n,!0);return(0,Ph.serialize)(i)}Qo.resolve=e6;function ZS(e,t,r,n){let i={};return n||(e=(0,nu.parse)((0,Ph.serialize)(e)),t=(0,nu.parse)((0,Ph.serialize)(t))),r=r||{},!r.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=ru(t.path||""),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=ru(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=ru(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path,i.path=ru(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}Qo.resolveComponents=ZS;function ru(e){let t=/^\.\.?\//u,r=/^\/\.(?:\/|$)/u,n=/^\/\.\.(?:\/|$)/u,i=/^\/?(?:.|\n)*?(?=\/|$)/u,o=[];for(;e.length;)if(e.match(t))e=e.replace(t,"");else if(e.match(r))e=e.replace(r,"/");else if(e.match(n))e=e.replace(n,"/"),o.pop();else if(e==="."||e==="..")e="";else{let s=e.match(i);if(s){let a=s[0];e=e.slice(a.length),o.push(a)}else throw new Error("Unexpected dot segment condition")}return o.join("")}});var t_=x(cr=>{"use strict";var t6=cr&&cr.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),Eh=cr&&cr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&t6(t,e,r)};Object.defineProperty(cr,"__esModule",{value:!0});cr.normalize=cr.equal=void 0;var Zo=Zl(),iu=tu();Eh(e_(),cr);Eh(Zl(),cr);Eh(tu(),cr);function r6(e,t){let r,n;return typeof e=="string"?r=(0,Zo.serialize)((0,iu.parse)(e)):r=(0,Zo.serialize)(e),typeof t=="string"?n=(0,Zo.serialize)((0,iu.parse)(t)):n=(0,Zo.serialize)(t),r.toLowerCase()===n.toLowerCase()}cr.equal=r6;function n6(e){return typeof e=="string"?(0,Zo.serialize)((0,iu.parse)(e)):(0,iu.parse)((0,Zo.serialize)(e))}cr.normalize=n6});var n_=x(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});var r_=t_();r_.code='require("ajv/dist/runtime/uri").default';Ah.default=r_});var Th=x(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.CodeGen=xt.Name=xt.nil=xt.stringify=xt.str=xt._=xt.KeywordCxt=void 0;var i6=Xo();Object.defineProperty(xt,"KeywordCxt",{enumerable:!0,get:function(){return i6.KeywordCxt}});var es=oe();Object.defineProperty(xt,"_",{enumerable:!0,get:function(){return es._}});Object.defineProperty(xt,"str",{enumerable:!0,get:function(){return es.str}});Object.defineProperty(xt,"stringify",{enumerable:!0,get:function(){return es.stringify}});Object.defineProperty(xt,"nil",{enumerable:!0,get:function(){return es.nil}});Object.defineProperty(xt,"Name",{enumerable:!0,get:function(){return es.Name}});Object.defineProperty(xt,"CodeGen",{enumerable:!0,get:function(){return es.CodeGen}});var o6=gh(),c_=wh(),s6=th(),Ma=ja(),a6=oe(),La=Ia(),ou=Ra(),Rh=ge(),i_=JS(),c6=n_(),l_=(e,t)=>new RegExp(e,t);l_.code="new RegExp";var l6=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],u6=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),p6={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},f6={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},o_=200;function d6(e){var t,r,n,i,o,s,a,c,l,u,p,m,d,f,h,y,b,g,v,_,w,N,S,O,P;let E=e.strict,R=(t=e.code)===null||t===void 0?void 0:t.optimize,A=R===!0||R===void 0?1:R||0,I=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:l_,C=(i=e.uriResolver)!==null&&i!==void 0?i:c6.default;return{strictSchema:(s=(o=e.strictSchema)!==null&&o!==void 0?o:E)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:E)!==null&&c!==void 0?c:!0,strictTypes:(u=(l=e.strictTypes)!==null&&l!==void 0?l:E)!==null&&u!==void 0?u:"log",strictTuples:(m=(p=e.strictTuples)!==null&&p!==void 0?p:E)!==null&&m!==void 0?m:"log",strictRequired:(f=(d=e.strictRequired)!==null&&d!==void 0?d:E)!==null&&f!==void 0?f:!1,code:e.code?{...e.code,optimize:A,regExp:I}:{optimize:A,regExp:I},loopRequired:(h=e.loopRequired)!==null&&h!==void 0?h:o_,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:o_,meta:(b=e.meta)!==null&&b!==void 0?b:!0,messages:(g=e.messages)!==null&&g!==void 0?g:!0,inlineRefs:(v=e.inlineRefs)!==null&&v!==void 0?v:!0,schemaId:(_=e.schemaId)!==null&&_!==void 0?_:"$id",addUsedSchema:(w=e.addUsedSchema)!==null&&w!==void 0?w:!0,validateSchema:(N=e.validateSchema)!==null&&N!==void 0?N:!0,validateFormats:(S=e.validateFormats)!==null&&S!==void 0?S:!0,unicodeRegExp:(O=e.unicodeRegExp)!==null&&O!==void 0?O:!0,int32range:(P=e.int32range)!==null&&P!==void 0?P:!0,uriResolver:C}}var Da=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...d6(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new a6.ValueScope({scope:{},prefixes:u6,es5:r,lines:n}),this.logger=v6(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,s6.getRules)(),s_.call(this,p6,t,"NOT SUPPORTED"),s_.call(this,f6,t,"DEPRECATED","warn"),this._metaOpts=g6.call(this),t.formats&&h6.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&y6.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),m6.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=i_;n==="id"&&(i={...i_},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(u,p){await o.call(this,u.$schema);let m=this._addSchema(u,p);return m.validate||s.call(this,m)}async function o(u){u&&!this.getSchema(u)&&await i.call(this,{$ref:u},!0)}async function s(u){try{return this._compileSchemaEnv(u)}catch(p){if(!(p instanceof c_.default))throw p;return a.call(this,p),await c.call(this,p.missingSchema),s.call(this,u)}}function a({missingSchema:u,missingRef:p}){if(this.refs[u])throw new Error(`AnySchema ${u} is loaded but ${p} cannot be resolved`)}async function c(u){let p=await l.call(this,u);this.refs[u]||await o.call(this,p.$schema),this.refs[u]||this.addSchema(p,u,r)}async function l(u){let p=this._loading[u];if(p)return p;try{return await(this._loading[u]=n(u))}finally{delete this._loading[u]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let s of t)this.addSchema(s,void 0,n,i);return this}let o;if(typeof t=="object"){let{schemaId:s}=this.opts;if(o=t[s],o!==void 0&&typeof o!="string")throw new Error(`schema ${s} must be string`)}return r=(0,La.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(t){let r;for(;typeof(r=a_.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new Ma.SchemaEnv({schema:{},schemaId:n});if(r=Ma.resolveSchema.call(this,i,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=a_.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,La.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(w6.call(this,n,r),!r)return(0,Rh.eachItem)(n,o=>Ch.call(this,o)),this;_6.call(this,r);let i={...r,type:(0,ou.getJSONTypes)(r.type),schemaType:(0,ou.getJSONTypes)(r.schemaType)};return(0,Rh.eachItem)(n,i.type.length===0?o=>Ch.call(this,o,i):o=>i.type.forEach(s=>Ch.call(this,o,i,s))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(o=>o.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,o)=>i+r+o)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let o=i.split("/").slice(1),s=t;for(let a of o)s=s[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:l}=c.definition,u=s[a];l&&u&&(s[a]=u_(u))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,o=this.opts.addUsedSchema){let s,{schemaId:a}=this.opts;if(typeof t=="object")s=t[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,La.normalizeId)(s||n);let l=La.getSchemaRefs.call(this,t,n);return c=new Ma.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),i&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):Ma.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{Ma.compileSchema.call(this,t)}finally{this.opts=r}}};Da.ValidationError=o6.default;Da.MissingRefError=c_.default;xt.default=Da;function s_(e,t,r,n="error"){for(let i in e){let o=i;o in t&&this.logger[n](`${r}: option ${i}. ${e[o]}`)}}function a_(e){return e=(0,La.normalizeId)(e),this.schemas[e]||this.refs[e]}function m6(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function h6(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function y6(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function g6(){let e={...this.opts};for(let t of l6)delete e[t];return e}var b6={log(){},warn(){},error(){}};function v6(e){if(e===!1)return b6;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var x6=/^[a-z_$][a-z0-9_$:-]*$/i;function w6(e,t){let{RULES:r}=this;if((0,Rh.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!x6.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function Ch(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,s=i?o.post:o.rules.find(({type:c})=>c===r);if(s||(s={type:r,rules:[]},o.rules.push(s)),o.keywords[e]=!0,!t)return;let a={keyword:e,definition:{...t,type:(0,ou.getJSONTypes)(t.type),schemaType:(0,ou.getJSONTypes)(t.schemaType)}};t.before?S6.call(this,s,a,t.before):s.rules.push(a),o.all[e]=a,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function S6(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function _6(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=u_(t)),e.validateSchema=this.compile(t,!0))}var O6={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function u_(e){return{anyOf:[e,O6]}}});var p_=x(Nh=>{"use strict";Object.defineProperty(Nh,"__esModule",{value:!0});var $6={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Nh.default=$6});var cu=x(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.getValidate=m_;Fa.callRef=au;var P6=wh(),f_=wr(),rt=oe(),ts=vr(),d_=ja(),su=ge(),E6={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:s,opts:a,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return p();let u=d_.resolveRef.call(c,l,i,r);if(u===void 0)throw new P6.default(n.opts.uriResolver,i,r);if(u instanceof d_.SchemaEnv)return m(u);return d(u);function p(){if(o===l)return au(e,s,o,o.$async);let f=t.scopeValue("root",{ref:l});return au(e,(0,rt._)`${f}.validate`,l,l.$async)}function m(f){let h=m_(e,f);au(e,h,f,f.$async)}function d(f){let h=t.scopeValue("schema",a.code.source===!0?{ref:f,code:(0,rt.stringify)(f)}:{ref:f}),y=t.name("valid"),b=e.subschema({schema:f,dataTypes:[],schemaPath:rt.nil,topSchemaRef:h,errSchemaPath:r},y,n.isAllOfVariant);e.mergeEvaluated(b),e.ok(y)}}};function m_(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,rt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}function au(e,t,r,n){let{gen:i,it:o}=e,{allErrors:s,schemaEnv:a,opts:c}=o,l=c.passContext?ts.default.this:rt.nil;n?u():p();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");let f=i.let("valid");i.try(()=>{i.code((0,rt._)`await ${(0,f_.callValidateCode)(e,t,l)}`),d(t),s||i.assign(f,!0)},h=>{i.if((0,rt._)`!(${h} instanceof ${o.ValidationError})`,()=>i.throw(h)),m(h),s||i.assign(f,!1)}),e.ok(f)}function p(){let f=i.name("visitedNodes");i.code((0,rt._)`const ${f} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${t}) || new Set()`),i.if((0,rt._)`!${f}.has(${e.data})`,()=>{i.code((0,rt._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${t}, ${f})`),i.code((0,rt._)`const dataNode = ${e.data}`),i.code((0,rt._)`if (typeof dataNode === "object" && dataNode !== null) ${f}.add(dataNode)`);let h=e.result((0,f_.callValidateCode)(e,t,l),()=>d(t),()=>m(t));return i.code((0,rt._)`${f}.delete(dataNode)`),h})}function m(f){let h=(0,rt._)`${f}.errors`;i.assign(ts.default.vErrors,(0,rt._)`${ts.default.vErrors} === null ? ${h} : ${ts.default.vErrors}.concat(${h})`),i.assign(ts.default.errors,(0,rt._)`${ts.default.vErrors}.length`)}function d(f){var h;if(!o.opts.unevaluated)return;let y=(h=r==null?void 0:r.validate)===null||h===void 0?void 0:h.evaluated;if(o.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(o.props=su.mergeEvaluated.props(i,y.props,o.props));else{let b=i.var("props",(0,rt._)`${f}.evaluated.props`);o.props=su.mergeEvaluated.props(i,b,o.props,rt.Name)}if(o.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(o.items=su.mergeEvaluated.items(i,y.items,o.items));else{let b=i.var("items",(0,rt._)`${f}.evaluated.items`);o.items=su.mergeEvaluated.items(i,b,o.items,rt.Name)}}}Fa.default=E6});var kh=x(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});var A6=p_(),C6=cu(),R6=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",A6.default,C6.default];Ih.default=R6});var h_=x(qh=>{"use strict";Object.defineProperty(qh,"__esModule",{value:!0});var lu=oe(),Qn=lu.operators,uu={maximum:{okStr:"<=",ok:Qn.LTE,fail:Qn.GT},minimum:{okStr:">=",ok:Qn.GTE,fail:Qn.LT},exclusiveMaximum:{okStr:"<",ok:Qn.LT,fail:Qn.GTE},exclusiveMinimum:{okStr:">",ok:Qn.GT,fail:Qn.LTE}},T6={message:({keyword:e,schemaCode:t})=>(0,lu.str)`must be ${uu[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,lu._)`{comparison: ${uu[e].okStr}, limit: ${t}}`},N6={keyword:Object.keys(uu),type:"number",schemaType:"number",$data:!0,error:T6,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,lu._)`${r} ${uu[t].fail} ${n} || isNaN(${r})`)}};qh.default=N6});var y_=x(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});var Ba=oe(),I6={message:({schemaCode:e})=>(0,Ba.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Ba._)`{multipleOf: ${e}}`},k6={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:I6,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,s=t.let("res"),a=o?(0,Ba._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,Ba._)`${s} !== parseInt(${s})`;e.fail$data((0,Ba._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};jh.default=k6});var b_=x(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});Mh.default=g_;function g_(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}g_.code='require("ajv/dist/runtime/ucs2length").default'});var v_=x(Lh=>{"use strict";Object.defineProperty(Lh,"__esModule",{value:!0});var Zi=oe(),q6=ge(),j6=b_(),M6={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Zi.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Zi._)`{limit: ${e}}`},L6={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:M6,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?Zi.operators.GT:Zi.operators.LT,s=i.opts.unicode===!1?(0,Zi._)`${r}.length`:(0,Zi._)`${(0,q6.useFunc)(e.gen,j6.default)}(${r})`;e.fail$data((0,Zi._)`${s} ${o} ${n}`)}};Lh.default=L6});var x_=x(Dh=>{"use strict";Object.defineProperty(Dh,"__esModule",{value:!0});var D6=wr(),pu=oe(),F6={message:({schemaCode:e})=>(0,pu.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,pu._)`{pattern: ${e}}`},B6={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:F6,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,s=o.opts.unicodeRegExp?"u":"",a=r?(0,pu._)`(new RegExp(${i}, ${s}))`:(0,D6.usePattern)(e,n);e.fail$data((0,pu._)`!${a}.test(${t})`)}};Dh.default=B6});var w_=x(Fh=>{"use strict";Object.defineProperty(Fh,"__esModule",{value:!0});var Ua=oe(),U6={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Ua.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Ua._)`{limit: ${e}}`},V6={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:U6,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Ua.operators.GT:Ua.operators.LT;e.fail$data((0,Ua._)`Object.keys(${r}).length ${i} ${n}`)}};Fh.default=V6});var S_=x(Bh=>{"use strict";Object.defineProperty(Bh,"__esModule",{value:!0});var Va=wr(),za=oe(),z6=ge(),H6={message:({params:{missingProperty:e}})=>(0,za.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,za._)`{missingProperty: ${e}}`},K6={keyword:"required",type:"object",schemaType:"array",$data:!0,error:H6,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:s}=e,{opts:a}=s;if(!o&&r.length===0)return;let c=r.length>=a.loopRequired;if(s.allErrors?l():u(),a.strictRequired){let d=e.parentSchema.properties,{definedProperties:f}=e.it;for(let h of r)if((d==null?void 0:d[h])===void 0&&!f.has(h)){let y=s.schemaEnv.baseId+s.errSchemaPath,b=`required property "${h}" is not defined at "${y}" (strictRequired)`;(0,z6.checkStrictMode)(s,b,s.opts.strictRequired)}}function l(){if(c||o)e.block$data(za.nil,p);else for(let d of r)(0,Va.checkReportMissingProp)(e,d)}function u(){let d=t.let("missing");if(c||o){let f=t.let("valid",!0);e.block$data(f,()=>m(d,f)),e.ok(f)}else t.if((0,Va.checkMissingProp)(e,r,d)),(0,Va.reportMissingProp)(e,d),t.else()}function p(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,Va.noPropertyInData)(t,i,d,a.ownProperties),()=>e.error())})}function m(d,f){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(f,(0,Va.propertyInData)(t,i,d,a.ownProperties)),t.if((0,za.not)(f),()=>{e.error(),t.break()})},za.nil)}}};Bh.default=K6});var __=x(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});var Ha=oe(),G6={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Ha.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Ha._)`{limit: ${e}}`},Y6={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:G6,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Ha.operators.GT:Ha.operators.LT;e.fail$data((0,Ha._)`${r}.length ${i} ${n}`)}};Uh.default=Y6});var fu=x(Vh=>{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0});var O_=Na();O_.code='require("ajv/dist/runtime/equal").default';Vh.default=O_});var $_=x(Hh=>{"use strict";Object.defineProperty(Hh,"__esModule",{value:!0});var zh=Ra(),wt=oe(),W6=ge(),X6=fu(),J6={message:({params:{i:e,j:t}})=>(0,wt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,wt._)`{i: ${e}, j: ${t}}`},Q6={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:J6,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:s,it:a}=e;if(!n&&!i)return;let c=t.let("valid"),l=o.items?(0,zh.getSchemaTypes)(o.items):[];e.block$data(c,u,(0,wt._)`${s} === false`),e.ok(c);function u(){let f=t.let("i",(0,wt._)`${r}.length`),h=t.let("j");e.setParams({i:f,j:h}),t.assign(c,!0),t.if((0,wt._)`${f} > 1`,()=>(p()?m:d)(f,h))}function p(){return l.length>0&&!l.some(f=>f==="object"||f==="array")}function m(f,h){let y=t.name("item"),b=(0,zh.checkDataTypes)(l,y,a.opts.strictNumbers,zh.DataType.Wrong),g=t.const("indices",(0,wt._)`{}`);t.for((0,wt._)`;${f}--;`,()=>{t.let(y,(0,wt._)`${r}[${f}]`),t.if(b,(0,wt._)`continue`),l.length>1&&t.if((0,wt._)`typeof ${y} == "string"`,(0,wt._)`${y} += "_"`),t.if((0,wt._)`typeof ${g}[${y}] == "number"`,()=>{t.assign(h,(0,wt._)`${g}[${y}]`),e.error(),t.assign(c,!1).break()}).code((0,wt._)`${g}[${y}] = ${f}`)})}function d(f,h){let y=(0,W6.useFunc)(t,X6.default),b=t.name("outer");t.label(b).for((0,wt._)`;${f}--;`,()=>t.for((0,wt._)`${h} = ${f}; ${h}--;`,()=>t.if((0,wt._)`${y}(${r}[${f}], ${r}[${h}])`,()=>{e.error(),t.assign(c,!1).break(b)})))}}};Hh.default=Q6});var P_=x(Gh=>{"use strict";Object.defineProperty(Gh,"__esModule",{value:!0});var Kh=oe(),Z6=ge(),e5=fu(),t5={message:"must be equal to constant",params:({schemaCode:e})=>(0,Kh._)`{allowedValue: ${e}}`},r5={keyword:"const",$data:!0,error:t5,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,Kh._)`!${(0,Z6.useFunc)(t,e5.default)}(${r}, ${i})`):e.fail((0,Kh._)`${o} !== ${r}`)}};Gh.default=r5});var E_=x(Yh=>{"use strict";Object.defineProperty(Yh,"__esModule",{value:!0});var Ka=oe(),n5=ge(),i5=fu(),o5={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Ka._)`{allowedValues: ${e}}`},s5={keyword:"enum",schemaType:"array",$data:!0,error:o5,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:s}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let a=i.length>=s.opts.loopEnum,c,l=()=>c!=null?c:c=(0,n5.useFunc)(t,i5.default),u;if(a||n)u=t.let("valid"),e.block$data(u,p);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let d=t.const("vSchema",o);u=(0,Ka.or)(...i.map((f,h)=>m(d,h)))}e.pass(u);function p(){t.assign(u,!1),t.forOf("v",o,d=>t.if((0,Ka._)`${l()}(${r}, ${d})`,()=>t.assign(u,!0).break()))}function m(d,f){let h=i[f];return typeof h=="object"&&h!==null?(0,Ka._)`${l()}(${r}, ${d}[${f}])`:(0,Ka._)`${r} === ${h}`}}};Yh.default=s5});var Xh=x(Wh=>{"use strict";Object.defineProperty(Wh,"__esModule",{value:!0});var a5=h_(),c5=y_(),l5=v_(),u5=x_(),p5=w_(),f5=S_(),d5=__(),m5=$_(),h5=P_(),y5=E_(),g5=[a5.default,c5.default,l5.default,u5.default,p5.default,f5.default,d5.default,m5.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},h5.default,y5.default];Wh.default=g5});var Qh=x(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.validateAdditionalItems=A_;var eo=oe(),Jh=ge(),b5={message:({params:{len:e}})=>(0,eo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,eo._)`{limit: ${e}}`},v5={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:b5,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Jh.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}A_(e,n)}};function A_(e,t){let{gen:r,schema:n,data:i,keyword:o,it:s}=e;s.items=!0;let a=r.const("len",(0,eo._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,eo._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,Jh.alwaysValidSchema)(s,n)){let l=r.var("valid",(0,eo._)`${a} <= ${t.length}`);r.if((0,eo.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,u=>{e.subschema({keyword:o,dataProp:u,dataPropType:Jh.Type.Num},l),s.allErrors||r.if((0,eo.not)(l),()=>r.break())})}}du.default=v5});var Zh=x(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.validateTuple=R_;var C_=oe(),mu=ge(),x5=wr(),w5={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return R_(e,"additionalItems",t);r.items=!0,!(0,mu.alwaysValidSchema)(r,t)&&e.ok((0,x5.validateArray)(e))}};function R_(e,t,r=e.schema){let{gen:n,parentSchema:i,data:o,keyword:s,it:a}=e;u(i),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=mu.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),l=n.const("len",(0,C_._)`${o}.length`);r.forEach((p,m)=>{(0,mu.alwaysValidSchema)(a,p)||(n.if((0,C_._)`${l} > ${m}`,()=>e.subschema({keyword:s,schemaProp:m,dataProp:m},c)),e.ok(c))});function u(p){let{opts:m,errSchemaPath:d}=a,f=r.length,h=f===p.minItems&&(f===p.maxItems||p[t]===!1);if(m.strictTuples&&!h){let y=`"${s}" is ${f}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,mu.checkStrictMode)(a,y,m.strictTuples)}}}hu.default=w5});var T_=x(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});var S5=Zh(),_5={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,S5.validateTuple)(e,"items")};ey.default=_5});var I_=x(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});var N_=oe(),O5=ge(),$5=wr(),P5=Qh(),E5={message:({params:{len:e}})=>(0,N_.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,N_._)`{limit: ${e}}`},A5={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:E5,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,O5.alwaysValidSchema)(n,t)&&(i?(0,P5.validateAdditionalItems)(e,i):e.ok((0,$5.validateArray)(e)))}};ty.default=A5});var k_=x(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});var Sr=oe(),yu=ge(),C5={message:({params:{min:e,max:t}})=>t===void 0?(0,Sr.str)`must contain at least ${e} valid item(s)`:(0,Sr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Sr._)`{minContains: ${e}}`:(0,Sr._)`{minContains: ${e}, maxContains: ${t}}`},R5={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:C5,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e,s,a,{minContains:c,maxContains:l}=n;o.opts.next?(s=c===void 0?1:c,a=l):s=1;let u=t.const("len",(0,Sr._)`${i}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,yu.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,yu.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,yu.alwaysValidSchema)(o,r)){let h=(0,Sr._)`${u} >= ${s}`;a!==void 0&&(h=(0,Sr._)`${h} && ${u} <= ${a}`),e.pass(h);return}o.items=!0;let p=t.name("valid");a===void 0&&s===1?d(p,()=>t.if(p,()=>t.break())):s===0?(t.let(p,!0),a!==void 0&&t.if((0,Sr._)`${i}.length > 0`,m)):(t.let(p,!1),m()),e.result(p,()=>e.reset());function m(){let h=t.name("_valid"),y=t.let("count",0);d(h,()=>t.if(h,()=>f(y)))}function d(h,y){t.forRange("i",0,u,b=>{e.subschema({keyword:"contains",dataProp:b,dataPropType:yu.Type.Num,compositeRule:!0},h),y()})}function f(h){t.code((0,Sr._)`${h}++`),a===void 0?t.if((0,Sr._)`${h} >= ${s}`,()=>t.assign(p,!0).break()):(t.if((0,Sr._)`${h} > ${a}`,()=>t.assign(p,!1).break()),s===1?t.assign(p,!0):t.if((0,Sr._)`${h} >= ${s}`,()=>t.assign(p,!0)))}}};ry.default=R5});var gu=x(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.error=void 0;Zn.validatePropertyDeps=q_;Zn.validateSchemaDeps=j_;var ny=oe(),T5=ge(),Ga=wr();Zn.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,ny.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,ny._)`{property: ${e},
6
6
  missingProperty: ${n},
7
7
  depsCount: ${t},
8
- deps: ${r}}`};var N5={keyword:"dependencies",type:"object",schemaType:"object",error:Zn.error,code(e){let[t,r]=I5(e);q_(e,t),j_(e,r)}};function I5({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}function q_(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let s in t){let a=t[s];if(a.length===0)continue;let c=(0,Ga.propertyInData)(r,n,s,i.opts.ownProperties);e.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),i.allErrors?r.if(c,()=>{for(let l of a)(0,Ga.checkReportMissingProp)(e,l)}):(r.if((0,ny._)`${c} && (${(0,Ga.checkMissingProp)(e,a,o)})`),(0,Ga.reportMissingProp)(e,o),r.else())}}function j_(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,s=r.name("valid");for(let a in t)(0,T5.alwaysValidSchema)(o,t[a])||(r.if((0,Ga.propertyInData)(r,n,a,o.opts.ownProperties),()=>{let c=e.subschema({keyword:i,schemaProp:a},s);e.mergeValidEvaluated(c,s)},()=>r.var(s,!0)),e.ok(s))}Zn.default=N5});var L_=x(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});var M_=oe(),k5=ye(),q5={message:"property name must be valid",params:({params:e})=>(0,M_._)`{propertyName: ${e.propertyName}}`},j5={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:q5,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,k5.alwaysValidSchema)(i,r))return;let o=t.name("valid");t.forIn("key",n,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),t.if((0,M_.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};iy.default=j5});var sy=x(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});var bu=wr(),Lr=oe(),M5=vr(),vu=ye(),L5={message:"must NOT have additional properties",params:({params:e})=>(0,Lr._)`{additionalProperty: ${e.additionalProperty}}`},D5={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:L5,code(e){let{gen:t,parentSchema:r,data:n,errsCount:i,it:o}=e,{schema:s=o.opts.defaultAdditionalProperties}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=o;if(o.props=!0,c.removeAdditional!=="all"&&(0,vu.alwaysValidSchema)(o,s))return;let l=(0,bu.allSchemaProperties)(r.properties),u=(0,bu.allSchemaProperties)(r.patternProperties);p(),e.ok((0,Lr._)`${i} === ${M5.default.errors}`);function p(){t.forIn("key",n,y=>{!l.length&&!u.length?f(y):t.if(m(y),()=>f(y))})}function m(y){let b;if(l.length>8){let g=(0,vu.schemaRefOrVal)(o,r.properties,"properties");b=(0,bu.isOwnProperty)(t,g,y)}else l.length?b=(0,Lr.or)(...l.map(g=>(0,Lr._)`${y} === ${g}`)):b=Lr.nil;return u.length&&(b=(0,Lr.or)(b,...u.map(g=>(0,Lr._)`${(0,bu.usePattern)(e,g)}.test(${y})`))),(0,Lr.not)(b)}function d(y){t.code((0,Lr._)`delete ${n}[${y}]`)}function f(y){if(c.removeAdditional==="all"||c.removeAdditional&&s===!1){d(y);return}if(s===!1){e.setParams({additionalProperty:y}),e.error(),a||t.break();return}if(typeof s=="object"&&!(0,vu.alwaysValidSchema)(o,s)){let b=t.name("valid");c.removeAdditional==="failing"?(h(y,b,!1),t.if((0,Lr.not)(b),()=>{e.reset(),d(y)})):(h(y,b),a||t.if((0,Lr.not)(b),()=>t.break()))}}function h(y,b,g){let v={keyword:"additionalProperties",dataProp:y,dataPropType:vu.Type.Str};g===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(v,b)}}};oy.default=D5});var B_=x(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0});var F5=Xo(),D_=wr(),ay=ye(),F_=sy(),B5={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;(o.opts.removeAdditional==="all"&&n.additionalProperties===void 0||o.opts.defaultAdditionalProperties===!1)&&F_.default.code(new F5.KeywordCxt(o,F_.default,"additionalProperties"));let s=(0,D_.allSchemaProperties)(r);for(let p of s)o.definedProperties.add(p);o.opts.unevaluated&&s.length&&o.props!==!0&&(o.props=ay.mergeEvaluated.props(t,(0,ay.toHash)(s),o.props));let a=s.filter(p=>!(0,ay.alwaysValidSchema)(o,r[p]));if(a.length===0)return;let c=t.name("valid");for(let p of a)l(p)?u(p):(t.if((0,D_.propertyInData)(t,i,p,o.opts.ownProperties)),u(p),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(c);function l(p){return o.opts.useDefaults&&!o.compositeRule&&r[p].default!==void 0}function u(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},c)}}};cy.default=B5});var H_=x(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});var U_=wr(),xu=oe(),V_=ye(),z_=ye(),U5={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:s}=o,a=(0,U_.allSchemaProperties)(r),c=a.filter(h=>(0,V_.alwaysValidSchema)(o,r[h]));if(a.length===0||c.length===a.length&&(!o.opts.unevaluated||o.props===!0))return;let l=s.strictSchema&&!s.allowMatchingProperties&&i.properties,u=t.name("valid");o.props!==!0&&!(o.props instanceof xu.Name)&&(o.props=(0,z_.evaluatedPropsToName)(t,o.props));let{props:p}=o;m();function m(){for(let h of a)l&&d(h),o.allErrors?f(h):(t.var(u,!0),f(h),t.if(u))}function d(h){for(let y in l)new RegExp(h).test(y)&&(0,V_.checkStrictMode)(o,`property ${y} matches pattern ${h} (use allowMatchingProperties)`)}function f(h){t.forIn("key",n,y=>{t.if((0,xu._)`${(0,U_.usePattern)(e,h)}.test(${y})`,()=>{let b=c.includes(h);b||e.subschema({keyword:"patternProperties",schemaProp:h,dataProp:y,dataPropType:z_.Type.Str},u),o.opts.unevaluated&&p!==!0?t.assign((0,xu._)`${p}[${y}]`,!0):!b&&!o.allErrors&&t.if((0,xu.not)(u),()=>t.break())})})}}};ly.default=U5});var K_=x(uy=>{"use strict";Object.defineProperty(uy,"__esModule",{value:!0});var V5=ye(),z5={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,V5.alwaysValidSchema)(n,r)){e.fail();return}let i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};uy.default=z5});var G_=x(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0});var H5=wr(),K5={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:H5.validateUnion,error:{message:"must match a schema in anyOf"}};py.default=K5});var Y_=x(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0});var wu=oe(),G5=ye(),Y5={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,wu._)`{passingSchemas: ${e.passing}}`},W5={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Y5,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let o=r,s=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(l),e.result(s,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((u,p)=>{let m;(0,G5.alwaysValidSchema)(i,u)?t.var(c,!0):m=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},c),p>0&&t.if((0,wu._)`${c} && ${s}`).assign(s,!1).assign(a,(0,wu._)`[${a}, ${p}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,p),m&&e.mergeEvaluated(m,wu.Name)})})}}};fy.default=W5});var W_=x(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});var X5=ye(),J5={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((o,s)=>{if((0,X5.alwaysValidSchema)(n,o))return;let a=e.subschema({keyword:"allOf",schemaProp:s},i,!0);e.ok(i),e.mergeEvaluated(a)})}};dy.default=J5});var Q_=x(my=>{"use strict";Object.defineProperty(my,"__esModule",{value:!0});var Su=oe(),J_=ye(),Q5={message:({params:e})=>(0,Su.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Su._)`{failingKeyword: ${e.ifClause}}`},Z5={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Q5,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,J_.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=X_(n,"then"),o=X_(n,"else");if(!i&&!o)return;let s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),i&&o){let u=t.let("ifClause");e.setParams({ifClause:u}),t.if(a,l("then",u),l("else",u))}else i?t.if(a,l("then")):t.if((0,Su.not)(a),l("else"));e.pass(s,()=>e.error(!0));function c(){let u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(u)}function l(u,p){return()=>{let m=e.subschema({keyword:u},a);t.assign(s,a),e.mergeValidEvaluated(m,s),p?t.assign(p,(0,Su._)`${u}`):e.setParams({ifClause:u})}}}};function X_(e,t){let r=e.schema[t];return r!==void 0&&!(0,J_.alwaysValidSchema)(e,r)}my.default=Z5});var Z_=x(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0});var eD=ye(),tD={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,eD.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};hy.default=tD});var gy=x(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});yy.default=bD;var rD=Qh(),nD=T_(),iD=Zh(),oD=I_(),sD=k_(),aD=gu(),cD=L_(),lD=sy(),uD=B_(),pD=H_(),fD=K_(),dD=G_(),mD=Y_(),hD=W_(),yD=Q_(),gD=Z_();function bD(e=!1){let t=[fD.default,dD.default,mD.default,hD.default,yD.default,gD.default,cD.default,lD.default,aD.default,uD.default,pD.default];return e?t.push(nD.default,oD.default):t.push(rD.default,iD.default),t.push(sD.default),t}});var vy=x(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.dynamicAnchor=tO;var by=oe(),vD=vr(),eO=ja(),xD=cu(),wD={keyword:"$dynamicAnchor",schemaType:"string",code:e=>tO(e,e.schema)};function tO(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,by._)`${vD.default.dynamicAnchors}${(0,by.getProperty)(t)}`,o=n.errSchemaPath==="#"?n.validateName:SD(e);r.if((0,by._)`!${i}`,()=>r.assign(i,o))}function SD(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:o,localRefs:s,meta:a}=t.root,{schemaId:c}=n.opts,l=new eO.SchemaEnv({schema:r,schemaId:c,root:i,baseId:o,localRefs:s,meta:a});return eO.compileSchema.call(n,l),(0,xD.getValidate)(e,l)}_u.default=wD});var xy=x(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.dynamicRef=iO;var rO=oe(),_D=vr(),nO=cu(),OD={keyword:"$dynamicRef",schemaType:"string",code:e=>iO(e,e.schema)};function iO(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let o=t.slice(1);if(i.allErrors)s();else{let c=r.let("valid",!1);s(c),e.ok(c)}function s(c){if(i.schemaEnv.root.dynamicAnchors[o]){let l=r.let("_v",(0,rO._)`${_D.default.dynamicAnchors}${(0,rO.getProperty)(o)}`);r.if(l,a(l,c),a(i.validateName,c))}else a(i.validateName,c)()}function a(c,l){return l?()=>r.block(()=>{(0,nO.callRef)(e,c),r.let(l,!0)}):()=>(0,nO.callRef)(e,c)}}Ou.default=OD});var oO=x(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});var $D=vy(),PD=ye(),ED={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,$D.dynamicAnchor)(e,""):(0,PD.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};wy.default=ED});var sO=x(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});var AD=xy(),CD={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,AD.dynamicRef)(e,e.schema)};Sy.default=CD});var Oy=x(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});var RD=vy(),TD=xy(),ND=oO(),ID=sO(),kD=[RD.default,TD.default,ND.default,ID.default];_y.default=kD});var cO=x($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});var aO=gu(),qD={keyword:"dependentRequired",type:"object",schemaType:"object",error:aO.error,code:e=>(0,aO.validatePropertyDeps)(e)};$y.default=qD});var lO=x(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});var jD=gu(),MD={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,jD.validateSchemaDeps)(e)};Py.default=MD});var uO=x(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});var LD=ye(),DD={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,LD.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};Ey.default=DD});var Cy=x(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});var FD=cO(),BD=lO(),UD=uO(),VD=[FD.default,BD.default,UD.default];Ay.default=VD});var dO=x(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});var On=oe(),pO=ye(),fO=vr(),zD={message:"must NOT have unevaluated properties",params:({params:e})=>(0,On._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},HD={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:zD,code(e){let{gen:t,schema:r=e.it.opts.defaultUnevaluatedProperties,data:n,errsCount:i,it:o}=e,s=e.schema===void 0&&e.it.opts.defaultUnevaluatedProperties===!1;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:c}=o;if(c instanceof On.Name)t.if((0,On._)`${c} !== true`,()=>t.forIn("key",n,m=>t.if(u(c,m),()=>l(m))));else if(c!==!0){let m=()=>t.forIn("key",n,d=>c===void 0?l(d):t.if(p(c,d),()=>l(d)));s&&o.errorPath.emptyStr()?t.if((0,On._)`${fO.default.isAllOfVariant} === 0`,m):m()}s||(o.props=!0),e.ok((0,On._)`${i} === ${fO.default.errors}`);function l(m){if(r===!1){e.setParams({unevaluatedProperty:m}),e.error(),a||t.break();return}if(!(0,pO.alwaysValidSchema)(o,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:m,dataPropType:pO.Type.Str},d),a||t.if((0,On.not)(d),()=>t.break())}}function u(m,d){return(0,On._)`!${m} || !${m}[${d}]`}function p(m,d){let f=[];for(let h in m)m[h]===!0&&f.push((0,On._)`${d} !== ${h}`);return(0,On.and)(...f)}}};Ry.default=HD});var hO=x(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});var to=oe(),mO=ye(),KD={message:({params:{len:e}})=>(0,to.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,to._)`{limit: ${e}}`},GD={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:KD,code(e){let{gen:t,schema:r,data:n,it:i}=e,o=i.items||0;if(o===!0)return;let s=t.const("len",(0,to._)`${n}.length`);if(r===!1)e.setParams({len:o}),e.fail((0,to._)`${s} > ${o}`);else if(typeof r=="object"&&!(0,mO.alwaysValidSchema)(i,r)){let c=t.var("valid",(0,to._)`${s} <= ${o}`);t.if((0,to.not)(c),()=>a(c,o)),e.ok(c)}i.items=!0;function a(c,l){t.forRange("i",l,s,u=>{e.subschema({keyword:"unevaluatedItems",dataProp:u,dataPropType:mO.Type.Num},c),i.allErrors||t.if((0,to.not)(c),()=>t.break())})}}};Ty.default=GD});var Iy=x(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var YD=dO(),WD=hO(),XD=[YD.default,WD.default];Ny.default=XD});var yO=x(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});var Qe=oe(),JD={message:({schemaCode:e})=>(0,Qe.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Qe._)`{format: ${e}}`},QD={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:JD,code(e,t){let{gen:r,data:n,$data:i,schema:o,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:l,schemaEnv:u,self:p}=a;if(!c.validateFormats)return;i?m():d();function m(){let f=r.scopeValue("formats",{ref:p.formats,code:c.code.formats}),h=r.const("fDef",(0,Qe._)`${f}[${s}]`),y=r.let("fType"),b=r.let("format");r.if((0,Qe._)`typeof ${h} == "object" && !(${h} instanceof RegExp)`,()=>r.assign(y,(0,Qe._)`${h}.type || "string"`).assign(b,(0,Qe._)`${h}.validate`),()=>r.assign(y,(0,Qe._)`"string"`).assign(b,h)),e.fail$data((0,Qe.or)(g(),v()));function g(){return c.strictSchema===!1?Qe.nil:(0,Qe._)`${s} && !${b}`}function v(){let _=u.$async?(0,Qe._)`(${h}.async ? await ${b}(${n}) : ${b}(${n}))`:(0,Qe._)`${b}(${n})`,w=(0,Qe._)`(typeof ${b} == "function" ? ${_} : ${b}.test(${n}))`;return(0,Qe._)`${b} && ${b} !== true && ${y} === ${t} && !${w}`}}function d(){let f=p.formats[o];if(!f){g();return}if(f===!0)return;let[h,y,b]=v(f);h===t&&e.pass(_());function g(){if(c.strictSchema===!1){p.logger.warn(w());return}throw new Error(w());function w(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function v(w){let N=w instanceof RegExp?(0,Qe.regexpCode)(w):c.code.formats?(0,Qe._)`${c.code.formats}${(0,Qe.getProperty)(o)}`:void 0,S=r.scopeValue("formats",{key:o,ref:w,code:N});return typeof w=="object"&&!(w instanceof RegExp)?[w.type||"string",w.validate,(0,Qe._)`${S}.validate`]:["string",w,S]}function _(){if(typeof f=="object"&&!(f instanceof RegExp)&&f.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Qe._)`await ${b}(${n})`}return typeof y=="function"?(0,Qe._)`${b}(${n})`:(0,Qe._)`${b}.test(${n})`}}}};ky.default=QD});var jy=x(qy=>{"use strict";Object.defineProperty(qy,"__esModule",{value:!0});var ZD=yO(),eF=[ZD.default];qy.default=eF});var My=x(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.contentVocabulary=rs.metadataVocabulary=void 0;rs.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];rs.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var bO=x(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});var tF=kh(),rF=Xh(),nF=gy(),iF=Oy(),oF=Cy(),sF=Iy(),aF=jy(),gO=My(),cF=[iF.default,tF.default,rF.default,(0,nF.default)(!0),aF.default,gO.metadataVocabulary,gO.contentVocabulary,oF.default,sF.default];Ly.default=cF});var xO=x($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.DiscrError=void 0;var vO;(function(e){e.Tag="tag",e.Mapping="mapping"})(vO||($u.DiscrError=vO={}))});var By=x(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});var ns=oe(),Dy=xO(),wO=ja(),lF=ye(),uF={message:({params:{discrError:e,tagName:t}})=>e===Dy.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf or anyOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,ns._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`};function pF(e,t){var r;if(!(!e.allOf||!Array.isArray(e.allOf))){for(let n of e.allOf)if(!((r=n==null?void 0:n.properties)===null||r===void 0)&&r[t])return n.properties[t]}}var fF={keyword:"discriminator",type:"object",schemaType:"object",error:uF,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,s=i.oneOf?"oneOf":i.anyOf?"anyOf":void 0;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(!s)throw new Error("discriminator: requires oneOf or anyOf composite keyword");let c=i[s],l=t.let("valid",!1),u=t.const("tag",(0,ns._)`${r}${(0,ns.getProperty)(a)}`);t.if((0,ns._)`typeof ${u} == "string"`,()=>p(),()=>e.error(!1,{discrError:Dy.DiscrError.Tag,tag:u,tagName:a})),e.ok(l);function p(){let f=d();t.if(!1);for(let h in f)t.elseIf((0,ns._)`${u} === ${h}`),t.assign(l,m(f[h]));t.else(),e.error(!1,{discrError:Dy.DiscrError.Mapping,tag:u,tagName:a}),t.endIf()}function m(f){let h=t.name("valid"),y=e.subschema({keyword:s,schemaProp:f},h);return e.mergeEvaluated(y,ns.Name),h}function d(){var f;let h={},y=g(i),b=!0;for(let w=0;w<c.length;w++){let N=c[w],S=N==null?void 0:N.$ref;if(S&&n.mapping){let{mapping:P}=n,E=Object.keys(P).filter(R=>P[R]===N.$ref);if(E.length){for(let R of E)_(R,w);continue}}S&&!(0,lF.schemaHasRulesButRef)(N,o.self.RULES)&&(N=wO.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,S),N instanceof wO.SchemaEnv&&(N=N.schema));let O=(f=N==null?void 0:N.properties)===null||f===void 0?void 0:f[a];if(!O&&(N!=null&&N.allOf)&&(O=pF(N,a)),typeof O!="object")throw new Error(`discriminator: ${s} subschemas (or referenced schemas) must have "properties/${a}" or match mapping`);b=b&&(y||g(N)),v(O,w)}if(!b)throw new Error(`discriminator: "${a}" must be required`);return h;function g(w){if(Array.isArray(w.required)&&w.required.includes(a))return!0;if(w.allOf&&Array.isArray(w.allOf))for(let N of w.allOf){let S=N;if(Array.isArray(S.required)&&S.required.includes(a))return!0}return!1}function v(w,N){if(w.const)_(w.const,N);else if(w.enum)for(let S of w.enum)_(S,N);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function _(w,N){if(typeof w!="string"||w in h)throw new Error(`discriminator: "${a}" values must be unique strings`);h[w]=N}}}};Fy.default=fF});var SO=x((yse,dF)=>{dF.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var _O=x((gse,mF)=>{mF.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var OO=x((bse,hF)=>{hF.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var $O=x((vse,yF)=>{yF.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var PO=x((xse,gF)=>{gF.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var EO=x((wse,bF)=>{bF.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var AO=x((Sse,vF)=>{vF.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var CO=x((_se,xF)=>{xF.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var RO=x(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});Uy.default=RF;var wF=SO(),SF=_O(),_F=OO(),OF=$O(),$F=PO(),PF=EO(),EF=AO(),AF=CO(),CF=["/properties"];function RF(e){return[wF,SF,_F,OF,$F,t(this,PF),EF,t(this,AF)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,CF):n}}});var zy=x((ut,TO)=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.CodeGen=ut.Name=ut.nil=ut.stringify=ut.str=ut._=ut.KeywordCxt=void 0;var TF=Th(),NF=bO(),IF=By(),kF=RO(),Vy="https://json-schema.org/draft/2020-12/schema",Pu=class extends TF.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),NF.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(IF.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(kF.default.call(this,t),this.refs["http://json-schema.org/schema"]=Vy)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Vy)?Vy:void 0)}};TO.exports=ut=Pu;Object.defineProperty(ut,"__esModule",{value:!0});ut.default=Pu;var qF=Xo();Object.defineProperty(ut,"KeywordCxt",{enumerable:!0,get:function(){return qF.KeywordCxt}});var is=oe();Object.defineProperty(ut,"_",{enumerable:!0,get:function(){return is._}});Object.defineProperty(ut,"str",{enumerable:!0,get:function(){return is.str}});Object.defineProperty(ut,"stringify",{enumerable:!0,get:function(){return is.stringify}});Object.defineProperty(ut,"nil",{enumerable:!0,get:function(){return is.nil}});Object.defineProperty(ut,"Name",{enumerable:!0,get:function(){return is.Name}});Object.defineProperty(ut,"CodeGen",{enumerable:!0,get:function(){return is.CodeGen}})});var rP=x((Pae,tP)=>{"use strict";tP.exports=(function(){function e(t,r,n,i,o){return t<r||n<r?t>n?n+1:t+1:i===o?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;s<i&&t.charCodeAt(s)===r.charCodeAt(s);)s++;if(i-=s,o-=s,i===0||o<3)return o;var a=0,c,l,u,p,m,d,f,h,y,b,g,v,_=[];for(c=0;c<i;c++)_.push(c+1),_.push(t.charCodeAt(s+c));for(var w=_.length-1;a<o-3;)for(y=r.charCodeAt(s+(l=a)),b=r.charCodeAt(s+(u=a+1)),g=r.charCodeAt(s+(p=a+2)),v=r.charCodeAt(s+(m=a+3)),d=a+=4,c=0;c<w;c+=2)f=_[c],h=_[c+1],l=e(f,l,u,y,h),u=e(l,u,p,b,h),p=e(u,p,m,g,h),d=e(p,m,d,v,h),_[c]=d,m=p,p=u,u=l,l=f;for(;a<o;)for(y=r.charCodeAt(s+(l=a)),d=++a,c=0;c<w;c+=2)f=_[c],_[c]=d=e(f,l,d,y,_[c+1]),l=f;return d}})()});var cP=x(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.formatNames=en.fastFormats=en.fullFormats=void 0;function ms(e,t){return{validate:e,compare:t}}en.fullFormats={date:ms(oP,ug),time:ms(sP,pg),"date-time":ms(_V,aP),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:PV,"uri-reference":/^(?:[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,"uri-template":/^(?:(?:[^\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,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,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:/^(?=.{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,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([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}))|:)))$/i,regex:IV,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:EV,int32:{type:"number",validate:RV},int64:{type:"number",validate:TV},float:{type:"number",validate:iP},double:{type:"number",validate:iP},password:!0,binary:!0};en.fastFormats={...en.fullFormats,date:ms(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,ug),time:ms(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,pg),"date-time":ms(/^\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,aP),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,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};en.formatNames=Object.keys(en.fullFormats);function xV(e){return e%4===0&&(e%100!==0||e%400===0)}var wV=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,SV=[0,31,28,31,30,31,30,31,31,30,31,30,31];function oP(e){let t=wV.exec(e);if(!t)return!1;let r=+t[1],n=+t[2],i=+t[3];return n>=1&&n<=12&&i>=1&&i<=(n===2&&xV(r)?29:SV[n])}function ug(e,t){if(e&&t)return e>t?1:e<t?-1:0}var cg=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function sP(e,t){let r=cg.exec(e);if(!r)return!1;let n=+r[1],i=+r[2],o=+r[3],s=r[5];return(n<=23&&i<=59&&o<=59||n===23&&i===59&&o===60)&&(!t||s!=="")}function pg(e,t){if(!(e&&t))return;let r=cg.exec(e),n=cg.exec(t);if(r&&n)return e=r[1]+r[2]+r[3]+(r[4]||""),t=n[1]+n[2]+n[3]+(n[4]||""),e>t?1:e<t?-1:0}var lg=/t|\s/i;function _V(e){let t=e.split(lg);return t.length===2&&oP(t[0])&&sP(t[1],!0)}function aP(e,t){if(!(e&&t))return;let[r,n]=e.split(lg),[i,o]=t.split(lg),s=ug(r,i);if(s!==void 0)return s||pg(n,o)}var OV=/\/|:/,$V=/^(?:[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;function PV(e){return OV.test(e)&&$V.test(e)}var nP=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function EV(e){return nP.lastIndex=0,nP.test(e)}var AV=-(2**31),CV=2**31-1;function RV(e){return Number.isInteger(e)&&e<=CV&&e>=AV}function TV(e){return Number.isInteger(e)}function iP(){return!0}var NV=/[^\\]\\Z/;function IV(e){if(NV.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var oc=x($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.regexpCode=$e.getEsmExportName=$e.getProperty=$e.safeStringify=$e.stringify=$e.strConcat=$e.addCodeArg=$e.str=$e._=$e.nil=$e._Code=$e.Name=$e.IDENTIFIER=$e._CodeOrName=void 0;var nc=class{};$e._CodeOrName=nc;$e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var io=class extends nc{constructor(t){if(super(),!$e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};$e.Name=io;var _r=class extends nc{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof io&&(r[n.str]=(r[n.str]||0)+1),r),{})}};$e._Code=_r;$e.nil=new _r("");function lP(e,...t){let r=[e[0]],n=0;for(;n<t.length;)dg(r,t[n]),r.push(e[++n]);return new _r(r)}$e._=lP;var fg=new _r("+");function uP(e,...t){let r=[ic(e[0])],n=0;for(;n<t.length;)r.push(fg),dg(r,t[n]),r.push(fg,ic(e[++n]));return kV(r),new _r(r)}$e.str=uP;function dg(e,t){t instanceof _r?e.push(...t._items):t instanceof io?e.push(t):e.push(MV(t))}$e.addCodeArg=dg;function kV(e){let t=1;for(;t<e.length-1;){if(e[t]===fg){let r=qV(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function qV(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof io||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof io))return`"${e}${t.slice(1)}`}function jV(e,t){return t.emptyStr()?e:e.emptyStr()?t:uP`${e}${t}`}$e.strConcat=jV;function MV(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ic(Array.isArray(e)?e.join(","):e)}function LV(e){return new _r(ic(e))}$e.stringify=LV;function ic(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}$e.safeStringify=ic;function DV(e){return typeof e=="string"&&$e.IDENTIFIER.test(e)?new _r(`.${e}`):lP`[${e}]`}$e.getProperty=DV;function FV(e){if(typeof e=="string"&&$e.IDENTIFIER.test(e))return new _r(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}$e.getEsmExportName=FV;function BV(e){return new _r(e.toString())}$e.regexpCode=BV});var yg=x(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.ValueScope=rr.ValueScopeName=rr.Scope=rr.varKinds=rr.UsedValueState=void 0;var tr=oc(),mg=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},Uu;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Uu||(rr.UsedValueState=Uu={}));rr.varKinds={const:new tr.Name("const"),let:new tr.Name("let"),var:new tr.Name("var")};var Vu=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof tr.Name?t:this.name(t)}name(t){return new tr.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};rr.Scope=Vu;var zu=class extends tr.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,tr._)`.${new tr.Name(r)}[${n}]`}};rr.ValueScopeName=zu;var UV=(0,tr._)`\n`,hg=class extends Vu{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?UV:tr.nil}}get(){return this._scope}name(t){return new zu(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:o}=i,s=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[o];if(a){let u=a.get(s);if(u)return u}else a=this._values[o]=new Map;a.set(s,i);let c=this._scope[o]||(this._scope[o]=[]),l=c.length;return c[l]=r.ref,i.setValue(r,{property:o,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,tr._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let o=tr.nil;for(let s in t){let a=t[s];if(!a)continue;let c=n[s]=n[s]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,Uu.Started);let u=r(l);if(u){let p=this.opts.es5?rr.varKinds.var:rr.varKinds.const;o=(0,tr._)`${o}${p} ${l} = ${u};${this.opts._n}`}else if(u=i==null?void 0:i(l))o=(0,tr._)`${o}${u}${this.opts._n}`;else throw new mg(l);c.set(l,Uu.Completed)})}return o}};rr.ValueScope=hg});var ue=x(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.or=de.and=de.not=de.CodeGen=de.operators=de.varKinds=de.ValueScopeName=de.ValueScope=de.Scope=de.Name=de.regexpCode=de.stringify=de.getProperty=de.nil=de.strConcat=de.str=de._=void 0;var xe=oc(),Dr=yg(),ii=oc();Object.defineProperty(de,"_",{enumerable:!0,get:function(){return ii._}});Object.defineProperty(de,"str",{enumerable:!0,get:function(){return ii.str}});Object.defineProperty(de,"strConcat",{enumerable:!0,get:function(){return ii.strConcat}});Object.defineProperty(de,"nil",{enumerable:!0,get:function(){return ii.nil}});Object.defineProperty(de,"getProperty",{enumerable:!0,get:function(){return ii.getProperty}});Object.defineProperty(de,"stringify",{enumerable:!0,get:function(){return ii.stringify}});Object.defineProperty(de,"regexpCode",{enumerable:!0,get:function(){return ii.regexpCode}});Object.defineProperty(de,"Name",{enumerable:!0,get:function(){return ii.Name}});var Yu=yg();Object.defineProperty(de,"Scope",{enumerable:!0,get:function(){return Yu.Scope}});Object.defineProperty(de,"ValueScope",{enumerable:!0,get:function(){return Yu.ValueScope}});Object.defineProperty(de,"ValueScopeName",{enumerable:!0,get:function(){return Yu.ValueScopeName}});Object.defineProperty(de,"varKinds",{enumerable:!0,get:function(){return Yu.varKinds}});de.operators={GT:new xe._Code(">"),GTE:new xe._Code(">="),LT:new xe._Code("<"),LTE:new xe._Code("<="),EQ:new xe._Code("==="),NEQ:new xe._Code("!=="),NOT:new xe._Code("!"),OR:new xe._Code("||"),AND:new xe._Code("&&"),ADD:new xe._Code("+")};var En=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},gg=class extends En{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Dr.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=ys(this.rhs,t,r)),this}get names(){return this.rhs instanceof xe._CodeOrName?this.rhs.names:{}}},Hu=class extends En{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof xe.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=ys(this.rhs,t,r),this}get names(){let t=this.lhs instanceof xe.Name?{}:{...this.lhs.names};return Gu(t,this.rhs)}},bg=class extends Hu{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},vg=class extends En{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},xg=class extends En{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},wg=class extends En{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},Sg=class extends En{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=ys(this.code,t,r),this}get names(){return this.code instanceof xe._CodeOrName?this.code.names:{}}},sc=class extends En{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(t,r)||(VV(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>ao(t,r.names),{})}},An=class extends sc{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},_g=class extends sc{},hs=class extends An{};hs.kind="else";var oo=class e extends An{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new hs(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(pP(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=ys(this.condition,t,r),this}get names(){let t=super.names;return Gu(t,this.condition),this.else&&ao(t,this.else.names),t}};oo.kind="if";var so=class extends An{};so.kind="for";var Og=class extends so{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=ys(this.iteration,t,r),this}get names(){return ao(super.names,this.iteration.names)}},$g=class extends so{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?Dr.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(t)}get names(){let t=Gu(super.names,this.from);return Gu(t,this.to)}},Ku=class extends so{constructor(t,r,n,i){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=ys(this.iterable,t,r),this}get names(){return ao(super.names,this.iterable.names)}},ac=class extends An{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};ac.kind="func";var cc=class extends sc{render(t){return"return "+super.render(t)}};cc.kind="return";var Pg=class extends An{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,i;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(i=this.finally)===null||i===void 0||i.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&ao(t,this.catch.names),this.finally&&ao(t,this.finally.names),t}},lc=class extends An{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};lc.kind="catch";var uc=class extends An{render(t){return"finally"+super.render(t)}};uc.kind="finally";var Eg=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
9
- `:""},this._extScope=t,this._scope=new Dr.Scope({parent:t}),this._nodes=[new _g]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let o=this._scope.toName(r);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new gg(t,o,n)),o}const(t,r,n){return this._def(Dr.varKinds.const,t,r,n)}let(t,r,n){return this._def(Dr.varKinds.let,t,r,n)}var(t,r,n){return this._def(Dr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Hu(t,r,n))}add(t,r){return this._leafNode(new bg(t,de.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==xe.nil&&this._leafNode(new Sg(t)),this}object(...t){let r=["{"];for(let[n,i]of t)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,xe.addCodeArg)(r,i));return r.push("}"),new xe._Code(r)}if(t,r,n){if(this._blockNode(new oo(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new oo(t))}else(){return this._elseNode(new hs)}endIf(){return this._endBlockNode(oo,hs)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Og(t),r)}forRange(t,r,n,i,o=this.opts.es5?Dr.varKinds.var:Dr.varKinds.let){let s=this._scope.toName(t);return this._for(new $g(o,s,r,n),()=>i(s))}forOf(t,r,n,i=Dr.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let s=r instanceof xe.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,xe._)`${s}.length`,a=>{this.var(o,(0,xe._)`${s}[${a}]`),n(o)})}return this._for(new Ku("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?Dr.varKinds.var:Dr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,xe._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new Ku("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(so)}label(t){return this._leafNode(new vg(t))}break(t){return this._leafNode(new xg(t))}return(t){let r=new cc;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(cc)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Pg;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new lc(o),r(o)}return n&&(this._currNode=i.finally=new uc,this.code(n)),this._endBlockNode(lc,uc)}throw(t){return this._leafNode(new wg(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=xe.nil,n,i){return this._blockNode(new ac(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(ac)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof oo))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};de.CodeGen=Eg;function ao(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function Gu(e,t){return t instanceof xe._CodeOrName?ao(e,t.names):e}function ys(e,t,r){if(e instanceof xe.Name)return n(e);if(!i(e))return e;return new xe._Code(e._items.reduce((o,s)=>(s instanceof xe.Name&&(s=n(s)),s instanceof xe._Code?o.push(...s._items):o.push(s),o),[]));function n(o){let s=r[o.str];return s===void 0||t[o.str]!==1?o:(delete t[o.str],s)}function i(o){return o instanceof xe._Code&&o._items.some(s=>s instanceof xe.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function VV(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function pP(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,xe._)`!${Ag(e)}`}de.not=pP;var zV=fP(de.operators.AND);function HV(...e){return e.reduce(zV)}de.and=HV;var KV=fP(de.operators.OR);function GV(...e){return e.reduce(KV)}de.or=GV;function fP(e){return(t,r)=>t===xe.nil?r:r===xe.nil?t:(0,xe._)`${Ag(t)} ${e} ${Ag(r)}`}function Ag(e){return e instanceof xe.Name?e:(0,xe._)`(${e})`}});var Pe=x(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.checkStrictMode=he.getErrorPath=he.Type=he.useFunc=he.setEvaluated=he.evaluatedPropsToName=he.mergeEvaluated=he.eachItem=he.unescapeJsonPointer=he.escapeJsonPointer=he.escapeFragment=he.unescapeFragment=he.schemaRefOrVal=he.schemaHasRulesButRef=he.schemaHasRules=he.checkUnknownRules=he.alwaysValidSchema=he.toHash=void 0;var qe=ue(),YV=oc();function WV(e){let t={};for(let r of e)t[r]=!0;return t}he.toHash=WV;function XV(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(hP(e,t),!yP(t,e.self.RULES.all))}he.alwaysValidSchema=XV;function hP(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let o in t)i[o]||vP(e,`unknown keyword: "${o}"`)}he.checkUnknownRules=hP;function yP(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}he.schemaHasRules=yP;function JV(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}he.schemaHasRulesButRef=JV;function QV({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,qe._)`${r}`}return(0,qe._)`${e}${t}${(0,qe.getProperty)(n)}`}he.schemaRefOrVal=QV;function ZV(e){return gP(decodeURIComponent(e))}he.unescapeFragment=ZV;function ez(e){return encodeURIComponent(Rg(e))}he.escapeFragment=ez;function Rg(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}he.escapeJsonPointer=Rg;function gP(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}he.unescapeJsonPointer=gP;function tz(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}he.eachItem=tz;function dP({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,s,a)=>{let c=s===void 0?o:s instanceof qe.Name?(o instanceof qe.Name?e(i,o,s):t(i,o,s),s):o instanceof qe.Name?(t(i,s,o),o):r(o,s);return a===qe.Name&&!(c instanceof qe.Name)?n(i,c):c}}he.mergeEvaluated={props:dP({mergeNames:(e,t,r)=>e.if((0,qe._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,qe._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,qe._)`${r} || {}`).code((0,qe._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,qe._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,qe._)`${r} || {}`),Tg(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:bP}),items:dP({mergeNames:(e,t,r)=>e.if((0,qe._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,qe._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,qe._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,qe._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function bP(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,qe._)`{}`);return t!==void 0&&Tg(e,r,t),r}he.evaluatedPropsToName=bP;function Tg(e,t,r){Object.keys(r).forEach(n=>e.assign((0,qe._)`${t}${(0,qe.getProperty)(n)}`,!0))}he.setEvaluated=Tg;var mP={};function rz(e,t){return e.scopeValue("func",{ref:t,code:mP[t.code]||(mP[t.code]=new YV._Code(t.code))})}he.useFunc=rz;var Cg;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Cg||(he.Type=Cg={}));function nz(e,t,r){if(e instanceof qe.Name){let n=t===Cg.Num;return r?n?(0,qe._)`"[" + ${e} + "]"`:(0,qe._)`"['" + ${e} + "']"`:n?(0,qe._)`"/" + ${e}`:(0,qe._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,qe.getProperty)(e).toString():"/"+Rg(e)}he.getErrorPath=nz;function vP(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}he.checkStrictMode=vP});var Cn=x(Ng=>{"use strict";Object.defineProperty(Ng,"__esModule",{value:!0});var Tt=ue(),iz={data:new Tt.Name("data"),valCxt:new Tt.Name("valCxt"),instancePath:new Tt.Name("instancePath"),parentData:new Tt.Name("parentData"),parentDataProperty:new Tt.Name("parentDataProperty"),rootData:new Tt.Name("rootData"),dynamicAnchors:new Tt.Name("dynamicAnchors"),vErrors:new Tt.Name("vErrors"),errors:new Tt.Name("errors"),this:new Tt.Name("this"),self:new Tt.Name("self"),scope:new Tt.Name("scope"),json:new Tt.Name("json"),jsonPos:new Tt.Name("jsonPos"),jsonLen:new Tt.Name("jsonLen"),jsonPart:new Tt.Name("jsonPart")};Ng.default=iz});var pc=x(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.extendErrors=Nt.resetErrorsCount=Nt.reportExtraError=Nt.reportError=Nt.keyword$DataError=Nt.keywordError=void 0;var Se=ue(),Wu=Pe(),Vt=Cn();Nt.keywordError={message:({keyword:e})=>(0,Se.str)`must pass "${e}" keyword validation`};Nt.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,Se.str)`"${e}" keyword must be ${t} ($data)`:(0,Se.str)`"${e}" keyword is invalid ($data)`};function oz(e,t=Nt.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:s,allErrors:a}=i,c=SP(e,t,r);(n!=null?n:s||a)?xP(o,c):wP(i,(0,Se._)`[${c}]`)}Nt.reportError=oz;function sz(e,t=Nt.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:s}=n,a=SP(e,t,r);xP(i,a),o||s||wP(n,Vt.default.vErrors)}Nt.reportExtraError=sz;function az(e,t){e.assign(Vt.default.errors,t),e.if((0,Se._)`${Vt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,Se._)`${Vt.default.vErrors}.length`,t),()=>e.assign(Vt.default.vErrors,null)))}Nt.resetErrorsCount=az;function cz({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let s=e.name("err");e.forRange("i",i,Vt.default.errors,a=>{e.const(s,(0,Se._)`${Vt.default.vErrors}[${a}]`),e.if((0,Se._)`${s}.instancePath === undefined`,()=>e.assign((0,Se._)`${s}.instancePath`,(0,Se.strConcat)(Vt.default.instancePath,o.errorPath))),e.assign((0,Se._)`${s}.schemaPath`,(0,Se.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,Se._)`${s}.schema`,r),e.assign((0,Se._)`${s}.data`,n))})}Nt.extendErrors=cz;function xP(e,t){let r=e.const("err",t);e.if((0,Se._)`${Vt.default.vErrors} === null`,()=>e.assign(Vt.default.vErrors,(0,Se._)`[${r}]`),(0,Se._)`${Vt.default.vErrors}.push(${r})`),e.code((0,Se._)`${Vt.default.errors}++`)}function wP(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,Se._)`new ${e.ValidationError}(${t})`):(r.assign((0,Se._)`${n}.errors`,t),r.return(!1))}var co={keyword:new Se.Name("keyword"),schemaPath:new Se.Name("schemaPath"),params:new Se.Name("params"),propertyName:new Se.Name("propertyName"),message:new Se.Name("message"),schema:new Se.Name("schema"),parentSchema:new Se.Name("parentSchema")};function SP(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,Se._)`{}`:lz(e,t,r)}function lz(e,t,r={}){let{gen:n,it:i}=e,o=[uz(i,r),pz(e,r)];return fz(e,t,o),n.object(...o)}function uz({errorPath:e},{instancePath:t}){let r=t?(0,Se.str)`${e}${(0,Wu.getErrorPath)(t,Wu.Type.Str)}`:e;return[Vt.default.instancePath,(0,Se.strConcat)(Vt.default.instancePath,r)]}function pz({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,Se.str)`${t}/${e}`;return r&&(i=(0,Se.str)`${i}${(0,Wu.getErrorPath)(r,Wu.Type.Str)}`),[co.schemaPath,i]}function fz(e,{params:t,message:r},n){let{keyword:i,data:o,schemaValue:s,it:a}=e,{opts:c,propertyName:l,topSchemaRef:u,schemaPath:p}=a;n.push([co.keyword,i],[co.params,typeof t=="function"?t(e):t||(0,Se._)`{}`]),c.messages&&n.push([co.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([co.schema,s],[co.parentSchema,(0,Se._)`${u}${p}`],[Vt.default.data,o]),l&&n.push([co.propertyName,l])}});var OP=x(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.boolOrEmptySchema=gs.topBoolOrEmptySchema=void 0;var dz=pc(),mz=ue(),hz=Cn(),yz={message:"boolean schema is false"};function gz(e){let{gen:t,schema:r,validateName:n}=e;r===!1?_P(e,!1):typeof r=="object"&&r.$async===!0?t.return(hz.default.data):(t.assign((0,mz._)`${n}.errors`,null),t.return(!0))}gs.topBoolOrEmptySchema=gz;function bz(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),_P(e)):r.var(t,!0)}gs.boolOrEmptySchema=bz;function _P(e,t){let{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,dz.reportError)(i,yz,void 0,t)}});var Ig=x(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.getRules=bs.isJSONType=void 0;var vz=["string","number","integer","boolean","null","object","array"],xz=new Set(vz);function wz(e){return typeof e=="string"&&xz.has(e)}bs.isJSONType=wz;function Sz(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}bs.getRules=Sz});var kg=x(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.shouldUseRule=oi.shouldUseGroup=oi.schemaHasRulesForType=void 0;function _z({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&$P(e,n)}oi.schemaHasRulesForType=_z;function $P(e,t){return t.rules.some(r=>PP(e,r))}oi.shouldUseGroup=$P;function PP(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}oi.shouldUseRule=PP});var fc=x(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.reportTypeError=It.checkDataTypes=It.checkDataType=It.coerceAndCheckDataType=It.getJSONTypes=It.getSchemaTypes=It.DataType=void 0;var Oz=Ig(),$z=kg(),Pz=pc(),ce=ue(),EP=Pe(),vs;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(vs||(It.DataType=vs={}));function Ez(e){let t=AP(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}It.getSchemaTypes=Ez;function AP(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(Oz.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}It.getJSONTypes=AP;function Az(e,t){let{gen:r,data:n,opts:i}=e,o=Cz(t,i.coerceTypes),s=t.length>0&&!(o.length===0&&t.length===1&&(0,$z.schemaHasRulesForType)(e,t[0]));if(s){let a=jg(t,n,i.strictNumbers,vs.Wrong);r.if(a,()=>{o.length?Rz(e,t,o):Mg(e)})}return s}It.coerceAndCheckDataType=Az;var CP=new Set(["string","number","integer","boolean","null"]);function Cz(e,t){return t?e.filter(r=>CP.has(r)||t==="array"&&r==="array"):[]}function Rz(e,t,r){let{gen:n,data:i,opts:o}=e,s=n.let("dataType",(0,ce._)`typeof ${i}`),a=n.let("coerced",(0,ce._)`undefined`);o.coerceTypes==="array"&&n.if((0,ce._)`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,ce._)`${i}[0]`).assign(s,(0,ce._)`typeof ${i}`).if(jg(t,i,o.strictNumbers),()=>n.assign(a,i))),n.if((0,ce._)`${a} !== undefined`);for(let l of r)(CP.has(l)||l==="array"&&o.coerceTypes==="array")&&c(l);n.else(),Mg(e),n.endIf(),n.if((0,ce._)`${a} !== undefined`,()=>{n.assign(i,a),Tz(e,a)});function c(l){switch(l){case"string":n.elseIf((0,ce._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,ce._)`"" + ${i}`).elseIf((0,ce._)`${i} === null`).assign(a,(0,ce._)`""`);return;case"number":n.elseIf((0,ce._)`${s} == "boolean" || ${i} === null
8
+ deps: ${r}}`};var N5={keyword:"dependencies",type:"object",schemaType:"object",error:Zn.error,code(e){let[t,r]=I5(e);q_(e,t),j_(e,r)}};function I5({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}function q_(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let s in t){let a=t[s];if(a.length===0)continue;let c=(0,Ga.propertyInData)(r,n,s,i.opts.ownProperties);e.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),i.allErrors?r.if(c,()=>{for(let l of a)(0,Ga.checkReportMissingProp)(e,l)}):(r.if((0,ny._)`${c} && (${(0,Ga.checkMissingProp)(e,a,o)})`),(0,Ga.reportMissingProp)(e,o),r.else())}}function j_(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,s=r.name("valid");for(let a in t)(0,T5.alwaysValidSchema)(o,t[a])||(r.if((0,Ga.propertyInData)(r,n,a,o.opts.ownProperties),()=>{let c=e.subschema({keyword:i,schemaProp:a},s);e.mergeValidEvaluated(c,s)},()=>r.var(s,!0)),e.ok(s))}Zn.default=N5});var L_=x(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});var M_=oe(),k5=ge(),q5={message:"property name must be valid",params:({params:e})=>(0,M_._)`{propertyName: ${e.propertyName}}`},j5={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:q5,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,k5.alwaysValidSchema)(i,r))return;let o=t.name("valid");t.forIn("key",n,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),t.if((0,M_.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};iy.default=j5});var sy=x(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});var bu=wr(),Lr=oe(),M5=vr(),vu=ge(),L5={message:"must NOT have additional properties",params:({params:e})=>(0,Lr._)`{additionalProperty: ${e.additionalProperty}}`},D5={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:L5,code(e){let{gen:t,parentSchema:r,data:n,errsCount:i,it:o}=e,{schema:s=o.opts.defaultAdditionalProperties}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=o;if(o.props=!0,c.removeAdditional!=="all"&&(0,vu.alwaysValidSchema)(o,s))return;let l=(0,bu.allSchemaProperties)(r.properties),u=(0,bu.allSchemaProperties)(r.patternProperties);p(),e.ok((0,Lr._)`${i} === ${M5.default.errors}`);function p(){t.forIn("key",n,y=>{!l.length&&!u.length?f(y):t.if(m(y),()=>f(y))})}function m(y){let b;if(l.length>8){let g=(0,vu.schemaRefOrVal)(o,r.properties,"properties");b=(0,bu.isOwnProperty)(t,g,y)}else l.length?b=(0,Lr.or)(...l.map(g=>(0,Lr._)`${y} === ${g}`)):b=Lr.nil;return u.length&&(b=(0,Lr.or)(b,...u.map(g=>(0,Lr._)`${(0,bu.usePattern)(e,g)}.test(${y})`))),(0,Lr.not)(b)}function d(y){t.code((0,Lr._)`delete ${n}[${y}]`)}function f(y){if(c.removeAdditional==="all"||c.removeAdditional&&s===!1){d(y);return}if(s===!1){e.setParams({additionalProperty:y}),e.error(),a||t.break();return}if(typeof s=="object"&&!(0,vu.alwaysValidSchema)(o,s)){let b=t.name("valid");c.removeAdditional==="failing"?(h(y,b,!1),t.if((0,Lr.not)(b),()=>{e.reset(),d(y)})):(h(y,b),a||t.if((0,Lr.not)(b),()=>t.break()))}}function h(y,b,g){let v={keyword:"additionalProperties",dataProp:y,dataPropType:vu.Type.Str};g===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(v,b)}}};oy.default=D5});var B_=x(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0});var F5=Xo(),D_=wr(),ay=ge(),F_=sy(),B5={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;(o.opts.removeAdditional==="all"&&n.additionalProperties===void 0||o.opts.defaultAdditionalProperties===!1)&&F_.default.code(new F5.KeywordCxt(o,F_.default,"additionalProperties"));let s=(0,D_.allSchemaProperties)(r);for(let p of s)o.definedProperties.add(p);o.opts.unevaluated&&s.length&&o.props!==!0&&(o.props=ay.mergeEvaluated.props(t,(0,ay.toHash)(s),o.props));let a=s.filter(p=>!(0,ay.alwaysValidSchema)(o,r[p]));if(a.length===0)return;let c=t.name("valid");for(let p of a)l(p)?u(p):(t.if((0,D_.propertyInData)(t,i,p,o.opts.ownProperties)),u(p),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(c);function l(p){return o.opts.useDefaults&&!o.compositeRule&&r[p].default!==void 0}function u(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},c)}}};cy.default=B5});var H_=x(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});var U_=wr(),xu=oe(),V_=ge(),z_=ge(),U5={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:s}=o,a=(0,U_.allSchemaProperties)(r),c=a.filter(h=>(0,V_.alwaysValidSchema)(o,r[h]));if(a.length===0||c.length===a.length&&(!o.opts.unevaluated||o.props===!0))return;let l=s.strictSchema&&!s.allowMatchingProperties&&i.properties,u=t.name("valid");o.props!==!0&&!(o.props instanceof xu.Name)&&(o.props=(0,z_.evaluatedPropsToName)(t,o.props));let{props:p}=o;m();function m(){for(let h of a)l&&d(h),o.allErrors?f(h):(t.var(u,!0),f(h),t.if(u))}function d(h){for(let y in l)new RegExp(h).test(y)&&(0,V_.checkStrictMode)(o,`property ${y} matches pattern ${h} (use allowMatchingProperties)`)}function f(h){t.forIn("key",n,y=>{t.if((0,xu._)`${(0,U_.usePattern)(e,h)}.test(${y})`,()=>{let b=c.includes(h);b||e.subschema({keyword:"patternProperties",schemaProp:h,dataProp:y,dataPropType:z_.Type.Str},u),o.opts.unevaluated&&p!==!0?t.assign((0,xu._)`${p}[${y}]`,!0):!b&&!o.allErrors&&t.if((0,xu.not)(u),()=>t.break())})})}}};ly.default=U5});var K_=x(uy=>{"use strict";Object.defineProperty(uy,"__esModule",{value:!0});var V5=ge(),z5={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,V5.alwaysValidSchema)(n,r)){e.fail();return}let i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};uy.default=z5});var G_=x(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0});var H5=wr(),K5={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:H5.validateUnion,error:{message:"must match a schema in anyOf"}};py.default=K5});var Y_=x(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0});var wu=oe(),G5=ge(),Y5={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,wu._)`{passingSchemas: ${e.passing}}`},W5={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Y5,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let o=r,s=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(l),e.result(s,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((u,p)=>{let m;(0,G5.alwaysValidSchema)(i,u)?t.var(c,!0):m=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},c),p>0&&t.if((0,wu._)`${c} && ${s}`).assign(s,!1).assign(a,(0,wu._)`[${a}, ${p}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,p),m&&e.mergeEvaluated(m,wu.Name)})})}}};fy.default=W5});var W_=x(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});var X5=ge(),J5={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((o,s)=>{if((0,X5.alwaysValidSchema)(n,o))return;let a=e.subschema({keyword:"allOf",schemaProp:s},i,!0);e.ok(i),e.mergeEvaluated(a)})}};dy.default=J5});var Q_=x(my=>{"use strict";Object.defineProperty(my,"__esModule",{value:!0});var Su=oe(),J_=ge(),Q5={message:({params:e})=>(0,Su.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Su._)`{failingKeyword: ${e.ifClause}}`},Z5={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Q5,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,J_.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=X_(n,"then"),o=X_(n,"else");if(!i&&!o)return;let s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),i&&o){let u=t.let("ifClause");e.setParams({ifClause:u}),t.if(a,l("then",u),l("else",u))}else i?t.if(a,l("then")):t.if((0,Su.not)(a),l("else"));e.pass(s,()=>e.error(!0));function c(){let u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(u)}function l(u,p){return()=>{let m=e.subschema({keyword:u},a);t.assign(s,a),e.mergeValidEvaluated(m,s),p?t.assign(p,(0,Su._)`${u}`):e.setParams({ifClause:u})}}}};function X_(e,t){let r=e.schema[t];return r!==void 0&&!(0,J_.alwaysValidSchema)(e,r)}my.default=Z5});var Z_=x(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0});var eD=ge(),tD={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,eD.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};hy.default=tD});var gy=x(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});yy.default=bD;var rD=Qh(),nD=T_(),iD=Zh(),oD=I_(),sD=k_(),aD=gu(),cD=L_(),lD=sy(),uD=B_(),pD=H_(),fD=K_(),dD=G_(),mD=Y_(),hD=W_(),yD=Q_(),gD=Z_();function bD(e=!1){let t=[fD.default,dD.default,mD.default,hD.default,yD.default,gD.default,cD.default,lD.default,aD.default,uD.default,pD.default];return e?t.push(nD.default,oD.default):t.push(rD.default,iD.default),t.push(sD.default),t}});var vy=x(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.dynamicAnchor=tO;var by=oe(),vD=vr(),eO=ja(),xD=cu(),wD={keyword:"$dynamicAnchor",schemaType:"string",code:e=>tO(e,e.schema)};function tO(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,by._)`${vD.default.dynamicAnchors}${(0,by.getProperty)(t)}`,o=n.errSchemaPath==="#"?n.validateName:SD(e);r.if((0,by._)`!${i}`,()=>r.assign(i,o))}function SD(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:o,localRefs:s,meta:a}=t.root,{schemaId:c}=n.opts,l=new eO.SchemaEnv({schema:r,schemaId:c,root:i,baseId:o,localRefs:s,meta:a});return eO.compileSchema.call(n,l),(0,xD.getValidate)(e,l)}_u.default=wD});var xy=x(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.dynamicRef=iO;var rO=oe(),_D=vr(),nO=cu(),OD={keyword:"$dynamicRef",schemaType:"string",code:e=>iO(e,e.schema)};function iO(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let o=t.slice(1);if(i.allErrors)s();else{let c=r.let("valid",!1);s(c),e.ok(c)}function s(c){if(i.schemaEnv.root.dynamicAnchors[o]){let l=r.let("_v",(0,rO._)`${_D.default.dynamicAnchors}${(0,rO.getProperty)(o)}`);r.if(l,a(l,c),a(i.validateName,c))}else a(i.validateName,c)()}function a(c,l){return l?()=>r.block(()=>{(0,nO.callRef)(e,c),r.let(l,!0)}):()=>(0,nO.callRef)(e,c)}}Ou.default=OD});var oO=x(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});var $D=vy(),PD=ge(),ED={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,$D.dynamicAnchor)(e,""):(0,PD.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};wy.default=ED});var sO=x(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});var AD=xy(),CD={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,AD.dynamicRef)(e,e.schema)};Sy.default=CD});var Oy=x(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});var RD=vy(),TD=xy(),ND=oO(),ID=sO(),kD=[RD.default,TD.default,ND.default,ID.default];_y.default=kD});var cO=x($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});var aO=gu(),qD={keyword:"dependentRequired",type:"object",schemaType:"object",error:aO.error,code:e=>(0,aO.validatePropertyDeps)(e)};$y.default=qD});var lO=x(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});var jD=gu(),MD={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,jD.validateSchemaDeps)(e)};Py.default=MD});var uO=x(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});var LD=ge(),DD={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,LD.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};Ey.default=DD});var Cy=x(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});var FD=cO(),BD=lO(),UD=uO(),VD=[FD.default,BD.default,UD.default];Ay.default=VD});var dO=x(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});var On=oe(),pO=ge(),fO=vr(),zD={message:"must NOT have unevaluated properties",params:({params:e})=>(0,On._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},HD={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:zD,code(e){let{gen:t,schema:r=e.it.opts.defaultUnevaluatedProperties,data:n,errsCount:i,it:o}=e,s=e.schema===void 0&&e.it.opts.defaultUnevaluatedProperties===!1;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:c}=o;if(c instanceof On.Name)t.if((0,On._)`${c} !== true`,()=>t.forIn("key",n,m=>t.if(u(c,m),()=>l(m))));else if(c!==!0){let m=()=>t.forIn("key",n,d=>c===void 0?l(d):t.if(p(c,d),()=>l(d)));s&&o.errorPath.emptyStr()?t.if((0,On._)`${fO.default.isAllOfVariant} === 0`,m):m()}s||(o.props=!0),e.ok((0,On._)`${i} === ${fO.default.errors}`);function l(m){if(r===!1){e.setParams({unevaluatedProperty:m}),e.error(),a||t.break();return}if(!(0,pO.alwaysValidSchema)(o,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:m,dataPropType:pO.Type.Str},d),a||t.if((0,On.not)(d),()=>t.break())}}function u(m,d){return(0,On._)`!${m} || !${m}[${d}]`}function p(m,d){let f=[];for(let h in m)m[h]===!0&&f.push((0,On._)`${d} !== ${h}`);return(0,On.and)(...f)}}};Ry.default=HD});var hO=x(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});var to=oe(),mO=ge(),KD={message:({params:{len:e}})=>(0,to.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,to._)`{limit: ${e}}`},GD={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:KD,code(e){let{gen:t,schema:r,data:n,it:i}=e,o=i.items||0;if(o===!0)return;let s=t.const("len",(0,to._)`${n}.length`);if(r===!1)e.setParams({len:o}),e.fail((0,to._)`${s} > ${o}`);else if(typeof r=="object"&&!(0,mO.alwaysValidSchema)(i,r)){let c=t.var("valid",(0,to._)`${s} <= ${o}`);t.if((0,to.not)(c),()=>a(c,o)),e.ok(c)}i.items=!0;function a(c,l){t.forRange("i",l,s,u=>{e.subschema({keyword:"unevaluatedItems",dataProp:u,dataPropType:mO.Type.Num},c),i.allErrors||t.if((0,to.not)(c),()=>t.break())})}}};Ty.default=GD});var Iy=x(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var YD=dO(),WD=hO(),XD=[YD.default,WD.default];Ny.default=XD});var yO=x(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});var Qe=oe(),JD={message:({schemaCode:e})=>(0,Qe.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Qe._)`{format: ${e}}`},QD={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:JD,code(e,t){let{gen:r,data:n,$data:i,schema:o,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:l,schemaEnv:u,self:p}=a;if(!c.validateFormats)return;i?m():d();function m(){let f=r.scopeValue("formats",{ref:p.formats,code:c.code.formats}),h=r.const("fDef",(0,Qe._)`${f}[${s}]`),y=r.let("fType"),b=r.let("format");r.if((0,Qe._)`typeof ${h} == "object" && !(${h} instanceof RegExp)`,()=>r.assign(y,(0,Qe._)`${h}.type || "string"`).assign(b,(0,Qe._)`${h}.validate`),()=>r.assign(y,(0,Qe._)`"string"`).assign(b,h)),e.fail$data((0,Qe.or)(g(),v()));function g(){return c.strictSchema===!1?Qe.nil:(0,Qe._)`${s} && !${b}`}function v(){let _=u.$async?(0,Qe._)`(${h}.async ? await ${b}(${n}) : ${b}(${n}))`:(0,Qe._)`${b}(${n})`,w=(0,Qe._)`(typeof ${b} == "function" ? ${_} : ${b}.test(${n}))`;return(0,Qe._)`${b} && ${b} !== true && ${y} === ${t} && !${w}`}}function d(){let f=p.formats[o];if(!f){g();return}if(f===!0)return;let[h,y,b]=v(f);h===t&&e.pass(_());function g(){if(c.strictSchema===!1){p.logger.warn(w());return}throw new Error(w());function w(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function v(w){let N=w instanceof RegExp?(0,Qe.regexpCode)(w):c.code.formats?(0,Qe._)`${c.code.formats}${(0,Qe.getProperty)(o)}`:void 0,S=r.scopeValue("formats",{key:o,ref:w,code:N});return typeof w=="object"&&!(w instanceof RegExp)?[w.type||"string",w.validate,(0,Qe._)`${S}.validate`]:["string",w,S]}function _(){if(typeof f=="object"&&!(f instanceof RegExp)&&f.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Qe._)`await ${b}(${n})`}return typeof y=="function"?(0,Qe._)`${b}(${n})`:(0,Qe._)`${b}.test(${n})`}}}};ky.default=QD});var jy=x(qy=>{"use strict";Object.defineProperty(qy,"__esModule",{value:!0});var ZD=yO(),eF=[ZD.default];qy.default=eF});var My=x(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.contentVocabulary=rs.metadataVocabulary=void 0;rs.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];rs.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var bO=x(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});var tF=kh(),rF=Xh(),nF=gy(),iF=Oy(),oF=Cy(),sF=Iy(),aF=jy(),gO=My(),cF=[iF.default,tF.default,rF.default,(0,nF.default)(!0),aF.default,gO.metadataVocabulary,gO.contentVocabulary,oF.default,sF.default];Ly.default=cF});var xO=x($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.DiscrError=void 0;var vO;(function(e){e.Tag="tag",e.Mapping="mapping"})(vO||($u.DiscrError=vO={}))});var By=x(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});var ns=oe(),Dy=xO(),wO=ja(),lF=ge(),uF={message:({params:{discrError:e,tagName:t}})=>e===Dy.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf or anyOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,ns._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`};function pF(e,t){var r;if(!(!e.allOf||!Array.isArray(e.allOf))){for(let n of e.allOf)if(!((r=n==null?void 0:n.properties)===null||r===void 0)&&r[t])return n.properties[t]}}var fF={keyword:"discriminator",type:"object",schemaType:"object",error:uF,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,s=i.oneOf?"oneOf":i.anyOf?"anyOf":void 0;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(!s)throw new Error("discriminator: requires oneOf or anyOf composite keyword");let c=i[s],l=t.let("valid",!1),u=t.const("tag",(0,ns._)`${r}${(0,ns.getProperty)(a)}`);t.if((0,ns._)`typeof ${u} == "string"`,()=>p(),()=>e.error(!1,{discrError:Dy.DiscrError.Tag,tag:u,tagName:a})),e.ok(l);function p(){let f=d();t.if(!1);for(let h in f)t.elseIf((0,ns._)`${u} === ${h}`),t.assign(l,m(f[h]));t.else(),e.error(!1,{discrError:Dy.DiscrError.Mapping,tag:u,tagName:a}),t.endIf()}function m(f){let h=t.name("valid"),y=e.subschema({keyword:s,schemaProp:f},h);return e.mergeEvaluated(y,ns.Name),h}function d(){var f;let h={},y=g(i),b=!0;for(let w=0;w<c.length;w++){let N=c[w],S=N==null?void 0:N.$ref;if(S&&n.mapping){let{mapping:P}=n,E=Object.keys(P).filter(R=>P[R]===N.$ref);if(E.length){for(let R of E)_(R,w);continue}}S&&!(0,lF.schemaHasRulesButRef)(N,o.self.RULES)&&(N=wO.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,S),N instanceof wO.SchemaEnv&&(N=N.schema));let O=(f=N==null?void 0:N.properties)===null||f===void 0?void 0:f[a];if(!O&&(N!=null&&N.allOf)&&(O=pF(N,a)),typeof O!="object")throw new Error(`discriminator: ${s} subschemas (or referenced schemas) must have "properties/${a}" or match mapping`);b=b&&(y||g(N)),v(O,w)}if(!b)throw new Error(`discriminator: "${a}" must be required`);return h;function g(w){if(Array.isArray(w.required)&&w.required.includes(a))return!0;if(w.allOf&&Array.isArray(w.allOf))for(let N of w.allOf){let S=N;if(Array.isArray(S.required)&&S.required.includes(a))return!0}return!1}function v(w,N){if(w.const)_(w.const,N);else if(w.enum)for(let S of w.enum)_(S,N);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function _(w,N){if(typeof w!="string"||w in h)throw new Error(`discriminator: "${a}" values must be unique strings`);h[w]=N}}}};Fy.default=fF});var SO=x((yse,dF)=>{dF.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var _O=x((gse,mF)=>{mF.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var OO=x((bse,hF)=>{hF.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var $O=x((vse,yF)=>{yF.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var PO=x((xse,gF)=>{gF.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var EO=x((wse,bF)=>{bF.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var AO=x((Sse,vF)=>{vF.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var CO=x((_se,xF)=>{xF.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var RO=x(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});Uy.default=RF;var wF=SO(),SF=_O(),_F=OO(),OF=$O(),$F=PO(),PF=EO(),EF=AO(),AF=CO(),CF=["/properties"];function RF(e){return[wF,SF,_F,OF,$F,t(this,PF),EF,t(this,AF)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,CF):n}}});var zy=x((ut,TO)=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.CodeGen=ut.Name=ut.nil=ut.stringify=ut.str=ut._=ut.KeywordCxt=void 0;var TF=Th(),NF=bO(),IF=By(),kF=RO(),Vy="https://json-schema.org/draft/2020-12/schema",Pu=class extends TF.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),NF.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(IF.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(kF.default.call(this,t),this.refs["http://json-schema.org/schema"]=Vy)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Vy)?Vy:void 0)}};TO.exports=ut=Pu;Object.defineProperty(ut,"__esModule",{value:!0});ut.default=Pu;var qF=Xo();Object.defineProperty(ut,"KeywordCxt",{enumerable:!0,get:function(){return qF.KeywordCxt}});var is=oe();Object.defineProperty(ut,"_",{enumerable:!0,get:function(){return is._}});Object.defineProperty(ut,"str",{enumerable:!0,get:function(){return is.str}});Object.defineProperty(ut,"stringify",{enumerable:!0,get:function(){return is.stringify}});Object.defineProperty(ut,"nil",{enumerable:!0,get:function(){return is.nil}});Object.defineProperty(ut,"Name",{enumerable:!0,get:function(){return is.Name}});Object.defineProperty(ut,"CodeGen",{enumerable:!0,get:function(){return is.CodeGen}})});var rP=x((Pae,tP)=>{"use strict";tP.exports=(function(){function e(t,r,n,i,o){return t<r||n<r?t>n?n+1:t+1:i===o?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;s<i&&t.charCodeAt(s)===r.charCodeAt(s);)s++;if(i-=s,o-=s,i===0||o<3)return o;var a=0,c,l,u,p,m,d,f,h,y,b,g,v,_=[];for(c=0;c<i;c++)_.push(c+1),_.push(t.charCodeAt(s+c));for(var w=_.length-1;a<o-3;)for(y=r.charCodeAt(s+(l=a)),b=r.charCodeAt(s+(u=a+1)),g=r.charCodeAt(s+(p=a+2)),v=r.charCodeAt(s+(m=a+3)),d=a+=4,c=0;c<w;c+=2)f=_[c],h=_[c+1],l=e(f,l,u,y,h),u=e(l,u,p,b,h),p=e(u,p,m,g,h),d=e(p,m,d,v,h),_[c]=d,m=p,p=u,u=l,l=f;for(;a<o;)for(y=r.charCodeAt(s+(l=a)),d=++a,c=0;c<w;c+=2)f=_[c],_[c]=d=e(f,l,d,y,_[c+1]),l=f;return d}})()});var cP=x(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.formatNames=tn.fastFormats=tn.fullFormats=void 0;function ms(e,t){return{validate:e,compare:t}}tn.fullFormats={date:ms(oP,ug),time:ms(sP,pg),"date-time":ms(_V,aP),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:PV,"uri-reference":/^(?:[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,"uri-template":/^(?:(?:[^\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,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,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:/^(?=.{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,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([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}))|:)))$/i,regex:IV,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:EV,int32:{type:"number",validate:RV},int64:{type:"number",validate:TV},float:{type:"number",validate:iP},double:{type:"number",validate:iP},password:!0,binary:!0};tn.fastFormats={...tn.fullFormats,date:ms(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,ug),time:ms(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,pg),"date-time":ms(/^\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,aP),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,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};tn.formatNames=Object.keys(tn.fullFormats);function xV(e){return e%4===0&&(e%100!==0||e%400===0)}var wV=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,SV=[0,31,28,31,30,31,30,31,31,30,31,30,31];function oP(e){let t=wV.exec(e);if(!t)return!1;let r=+t[1],n=+t[2],i=+t[3];return n>=1&&n<=12&&i>=1&&i<=(n===2&&xV(r)?29:SV[n])}function ug(e,t){if(e&&t)return e>t?1:e<t?-1:0}var cg=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function sP(e,t){let r=cg.exec(e);if(!r)return!1;let n=+r[1],i=+r[2],o=+r[3],s=r[5];return(n<=23&&i<=59&&o<=59||n===23&&i===59&&o===60)&&(!t||s!=="")}function pg(e,t){if(!(e&&t))return;let r=cg.exec(e),n=cg.exec(t);if(r&&n)return e=r[1]+r[2]+r[3]+(r[4]||""),t=n[1]+n[2]+n[3]+(n[4]||""),e>t?1:e<t?-1:0}var lg=/t|\s/i;function _V(e){let t=e.split(lg);return t.length===2&&oP(t[0])&&sP(t[1],!0)}function aP(e,t){if(!(e&&t))return;let[r,n]=e.split(lg),[i,o]=t.split(lg),s=ug(r,i);if(s!==void 0)return s||pg(n,o)}var OV=/\/|:/,$V=/^(?:[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;function PV(e){return OV.test(e)&&$V.test(e)}var nP=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function EV(e){return nP.lastIndex=0,nP.test(e)}var AV=-(2**31),CV=2**31-1;function RV(e){return Number.isInteger(e)&&e<=CV&&e>=AV}function TV(e){return Number.isInteger(e)}function iP(){return!0}var NV=/[^\\]\\Z/;function IV(e){if(NV.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var oc=x($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.regexpCode=$e.getEsmExportName=$e.getProperty=$e.safeStringify=$e.stringify=$e.strConcat=$e.addCodeArg=$e.str=$e._=$e.nil=$e._Code=$e.Name=$e.IDENTIFIER=$e._CodeOrName=void 0;var nc=class{};$e._CodeOrName=nc;$e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var io=class extends nc{constructor(t){if(super(),!$e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};$e.Name=io;var _r=class extends nc{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof io&&(r[n.str]=(r[n.str]||0)+1),r),{})}};$e._Code=_r;$e.nil=new _r("");function lP(e,...t){let r=[e[0]],n=0;for(;n<t.length;)dg(r,t[n]),r.push(e[++n]);return new _r(r)}$e._=lP;var fg=new _r("+");function uP(e,...t){let r=[ic(e[0])],n=0;for(;n<t.length;)r.push(fg),dg(r,t[n]),r.push(fg,ic(e[++n]));return kV(r),new _r(r)}$e.str=uP;function dg(e,t){t instanceof _r?e.push(...t._items):t instanceof io?e.push(t):e.push(MV(t))}$e.addCodeArg=dg;function kV(e){let t=1;for(;t<e.length-1;){if(e[t]===fg){let r=qV(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function qV(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof io||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof io))return`"${e}${t.slice(1)}`}function jV(e,t){return t.emptyStr()?e:e.emptyStr()?t:uP`${e}${t}`}$e.strConcat=jV;function MV(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ic(Array.isArray(e)?e.join(","):e)}function LV(e){return new _r(ic(e))}$e.stringify=LV;function ic(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}$e.safeStringify=ic;function DV(e){return typeof e=="string"&&$e.IDENTIFIER.test(e)?new _r(`.${e}`):lP`[${e}]`}$e.getProperty=DV;function FV(e){if(typeof e=="string"&&$e.IDENTIFIER.test(e))return new _r(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}$e.getEsmExportName=FV;function BV(e){return new _r(e.toString())}$e.regexpCode=BV});var yg=x(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.ValueScope=rr.ValueScopeName=rr.Scope=rr.varKinds=rr.UsedValueState=void 0;var tr=oc(),mg=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},Uu;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Uu||(rr.UsedValueState=Uu={}));rr.varKinds={const:new tr.Name("const"),let:new tr.Name("let"),var:new tr.Name("var")};var Vu=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof tr.Name?t:this.name(t)}name(t){return new tr.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};rr.Scope=Vu;var zu=class extends tr.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,tr._)`.${new tr.Name(r)}[${n}]`}};rr.ValueScopeName=zu;var UV=(0,tr._)`\n`,hg=class extends Vu{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?UV:tr.nil}}get(){return this._scope}name(t){return new zu(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:o}=i,s=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[o];if(a){let u=a.get(s);if(u)return u}else a=this._values[o]=new Map;a.set(s,i);let c=this._scope[o]||(this._scope[o]=[]),l=c.length;return c[l]=r.ref,i.setValue(r,{property:o,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,tr._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let o=tr.nil;for(let s in t){let a=t[s];if(!a)continue;let c=n[s]=n[s]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,Uu.Started);let u=r(l);if(u){let p=this.opts.es5?rr.varKinds.var:rr.varKinds.const;o=(0,tr._)`${o}${p} ${l} = ${u};${this.opts._n}`}else if(u=i==null?void 0:i(l))o=(0,tr._)`${o}${u}${this.opts._n}`;else throw new mg(l);c.set(l,Uu.Completed)})}return o}};rr.ValueScope=hg});var pe=x(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.or=me.and=me.not=me.CodeGen=me.operators=me.varKinds=me.ValueScopeName=me.ValueScope=me.Scope=me.Name=me.regexpCode=me.stringify=me.getProperty=me.nil=me.strConcat=me.str=me._=void 0;var xe=oc(),Dr=yg(),ii=oc();Object.defineProperty(me,"_",{enumerable:!0,get:function(){return ii._}});Object.defineProperty(me,"str",{enumerable:!0,get:function(){return ii.str}});Object.defineProperty(me,"strConcat",{enumerable:!0,get:function(){return ii.strConcat}});Object.defineProperty(me,"nil",{enumerable:!0,get:function(){return ii.nil}});Object.defineProperty(me,"getProperty",{enumerable:!0,get:function(){return ii.getProperty}});Object.defineProperty(me,"stringify",{enumerable:!0,get:function(){return ii.stringify}});Object.defineProperty(me,"regexpCode",{enumerable:!0,get:function(){return ii.regexpCode}});Object.defineProperty(me,"Name",{enumerable:!0,get:function(){return ii.Name}});var Yu=yg();Object.defineProperty(me,"Scope",{enumerable:!0,get:function(){return Yu.Scope}});Object.defineProperty(me,"ValueScope",{enumerable:!0,get:function(){return Yu.ValueScope}});Object.defineProperty(me,"ValueScopeName",{enumerable:!0,get:function(){return Yu.ValueScopeName}});Object.defineProperty(me,"varKinds",{enumerable:!0,get:function(){return Yu.varKinds}});me.operators={GT:new xe._Code(">"),GTE:new xe._Code(">="),LT:new xe._Code("<"),LTE:new xe._Code("<="),EQ:new xe._Code("==="),NEQ:new xe._Code("!=="),NOT:new xe._Code("!"),OR:new xe._Code("||"),AND:new xe._Code("&&"),ADD:new xe._Code("+")};var En=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},gg=class extends En{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Dr.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=ys(this.rhs,t,r)),this}get names(){return this.rhs instanceof xe._CodeOrName?this.rhs.names:{}}},Hu=class extends En{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof xe.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=ys(this.rhs,t,r),this}get names(){let t=this.lhs instanceof xe.Name?{}:{...this.lhs.names};return Gu(t,this.rhs)}},bg=class extends Hu{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},vg=class extends En{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},xg=class extends En{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},wg=class extends En{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},Sg=class extends En{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=ys(this.code,t,r),this}get names(){return this.code instanceof xe._CodeOrName?this.code.names:{}}},sc=class extends En{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(t,r)||(VV(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>ao(t,r.names),{})}},An=class extends sc{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},_g=class extends sc{},hs=class extends An{};hs.kind="else";var oo=class e extends An{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new hs(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(pP(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=ys(this.condition,t,r),this}get names(){let t=super.names;return Gu(t,this.condition),this.else&&ao(t,this.else.names),t}};oo.kind="if";var so=class extends An{};so.kind="for";var Og=class extends so{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=ys(this.iteration,t,r),this}get names(){return ao(super.names,this.iteration.names)}},$g=class extends so{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?Dr.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(t)}get names(){let t=Gu(super.names,this.from);return Gu(t,this.to)}},Ku=class extends so{constructor(t,r,n,i){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=ys(this.iterable,t,r),this}get names(){return ao(super.names,this.iterable.names)}},ac=class extends An{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};ac.kind="func";var cc=class extends sc{render(t){return"return "+super.render(t)}};cc.kind="return";var Pg=class extends An{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,i;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(i=this.finally)===null||i===void 0||i.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&ao(t,this.catch.names),this.finally&&ao(t,this.finally.names),t}},lc=class extends An{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};lc.kind="catch";var uc=class extends An{render(t){return"finally"+super.render(t)}};uc.kind="finally";var Eg=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
9
+ `:""},this._extScope=t,this._scope=new Dr.Scope({parent:t}),this._nodes=[new _g]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let o=this._scope.toName(r);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new gg(t,o,n)),o}const(t,r,n){return this._def(Dr.varKinds.const,t,r,n)}let(t,r,n){return this._def(Dr.varKinds.let,t,r,n)}var(t,r,n){return this._def(Dr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Hu(t,r,n))}add(t,r){return this._leafNode(new bg(t,me.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==xe.nil&&this._leafNode(new Sg(t)),this}object(...t){let r=["{"];for(let[n,i]of t)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,xe.addCodeArg)(r,i));return r.push("}"),new xe._Code(r)}if(t,r,n){if(this._blockNode(new oo(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new oo(t))}else(){return this._elseNode(new hs)}endIf(){return this._endBlockNode(oo,hs)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Og(t),r)}forRange(t,r,n,i,o=this.opts.es5?Dr.varKinds.var:Dr.varKinds.let){let s=this._scope.toName(t);return this._for(new $g(o,s,r,n),()=>i(s))}forOf(t,r,n,i=Dr.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let s=r instanceof xe.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,xe._)`${s}.length`,a=>{this.var(o,(0,xe._)`${s}[${a}]`),n(o)})}return this._for(new Ku("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?Dr.varKinds.var:Dr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,xe._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new Ku("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(so)}label(t){return this._leafNode(new vg(t))}break(t){return this._leafNode(new xg(t))}return(t){let r=new cc;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(cc)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Pg;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new lc(o),r(o)}return n&&(this._currNode=i.finally=new uc,this.code(n)),this._endBlockNode(lc,uc)}throw(t){return this._leafNode(new wg(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=xe.nil,n,i){return this._blockNode(new ac(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(ac)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof oo))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};me.CodeGen=Eg;function ao(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function Gu(e,t){return t instanceof xe._CodeOrName?ao(e,t.names):e}function ys(e,t,r){if(e instanceof xe.Name)return n(e);if(!i(e))return e;return new xe._Code(e._items.reduce((o,s)=>(s instanceof xe.Name&&(s=n(s)),s instanceof xe._Code?o.push(...s._items):o.push(s),o),[]));function n(o){let s=r[o.str];return s===void 0||t[o.str]!==1?o:(delete t[o.str],s)}function i(o){return o instanceof xe._Code&&o._items.some(s=>s instanceof xe.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function VV(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function pP(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,xe._)`!${Ag(e)}`}me.not=pP;var zV=fP(me.operators.AND);function HV(...e){return e.reduce(zV)}me.and=HV;var KV=fP(me.operators.OR);function GV(...e){return e.reduce(KV)}me.or=GV;function fP(e){return(t,r)=>t===xe.nil?r:r===xe.nil?t:(0,xe._)`${Ag(t)} ${e} ${Ag(r)}`}function Ag(e){return e instanceof xe.Name?e:(0,xe._)`(${e})`}});var Pe=x(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.checkStrictMode=ye.getErrorPath=ye.Type=ye.useFunc=ye.setEvaluated=ye.evaluatedPropsToName=ye.mergeEvaluated=ye.eachItem=ye.unescapeJsonPointer=ye.escapeJsonPointer=ye.escapeFragment=ye.unescapeFragment=ye.schemaRefOrVal=ye.schemaHasRulesButRef=ye.schemaHasRules=ye.checkUnknownRules=ye.alwaysValidSchema=ye.toHash=void 0;var qe=pe(),YV=oc();function WV(e){let t={};for(let r of e)t[r]=!0;return t}ye.toHash=WV;function XV(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(hP(e,t),!yP(t,e.self.RULES.all))}ye.alwaysValidSchema=XV;function hP(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let o in t)i[o]||vP(e,`unknown keyword: "${o}"`)}ye.checkUnknownRules=hP;function yP(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}ye.schemaHasRules=yP;function JV(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}ye.schemaHasRulesButRef=JV;function QV({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,qe._)`${r}`}return(0,qe._)`${e}${t}${(0,qe.getProperty)(n)}`}ye.schemaRefOrVal=QV;function ZV(e){return gP(decodeURIComponent(e))}ye.unescapeFragment=ZV;function ez(e){return encodeURIComponent(Rg(e))}ye.escapeFragment=ez;function Rg(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}ye.escapeJsonPointer=Rg;function gP(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}ye.unescapeJsonPointer=gP;function tz(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}ye.eachItem=tz;function dP({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,s,a)=>{let c=s===void 0?o:s instanceof qe.Name?(o instanceof qe.Name?e(i,o,s):t(i,o,s),s):o instanceof qe.Name?(t(i,s,o),o):r(o,s);return a===qe.Name&&!(c instanceof qe.Name)?n(i,c):c}}ye.mergeEvaluated={props:dP({mergeNames:(e,t,r)=>e.if((0,qe._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,qe._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,qe._)`${r} || {}`).code((0,qe._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,qe._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,qe._)`${r} || {}`),Tg(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:bP}),items:dP({mergeNames:(e,t,r)=>e.if((0,qe._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,qe._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,qe._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,qe._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function bP(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,qe._)`{}`);return t!==void 0&&Tg(e,r,t),r}ye.evaluatedPropsToName=bP;function Tg(e,t,r){Object.keys(r).forEach(n=>e.assign((0,qe._)`${t}${(0,qe.getProperty)(n)}`,!0))}ye.setEvaluated=Tg;var mP={};function rz(e,t){return e.scopeValue("func",{ref:t,code:mP[t.code]||(mP[t.code]=new YV._Code(t.code))})}ye.useFunc=rz;var Cg;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Cg||(ye.Type=Cg={}));function nz(e,t,r){if(e instanceof qe.Name){let n=t===Cg.Num;return r?n?(0,qe._)`"[" + ${e} + "]"`:(0,qe._)`"['" + ${e} + "']"`:n?(0,qe._)`"/" + ${e}`:(0,qe._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,qe.getProperty)(e).toString():"/"+Rg(e)}ye.getErrorPath=nz;function vP(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}ye.checkStrictMode=vP});var Cn=x(Ng=>{"use strict";Object.defineProperty(Ng,"__esModule",{value:!0});var Tt=pe(),iz={data:new Tt.Name("data"),valCxt:new Tt.Name("valCxt"),instancePath:new Tt.Name("instancePath"),parentData:new Tt.Name("parentData"),parentDataProperty:new Tt.Name("parentDataProperty"),rootData:new Tt.Name("rootData"),dynamicAnchors:new Tt.Name("dynamicAnchors"),vErrors:new Tt.Name("vErrors"),errors:new Tt.Name("errors"),this:new Tt.Name("this"),self:new Tt.Name("self"),scope:new Tt.Name("scope"),json:new Tt.Name("json"),jsonPos:new Tt.Name("jsonPos"),jsonLen:new Tt.Name("jsonLen"),jsonPart:new Tt.Name("jsonPart")};Ng.default=iz});var pc=x(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.extendErrors=Nt.resetErrorsCount=Nt.reportExtraError=Nt.reportError=Nt.keyword$DataError=Nt.keywordError=void 0;var _e=pe(),Wu=Pe(),Vt=Cn();Nt.keywordError={message:({keyword:e})=>(0,_e.str)`must pass "${e}" keyword validation`};Nt.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,_e.str)`"${e}" keyword must be ${t} ($data)`:(0,_e.str)`"${e}" keyword is invalid ($data)`};function oz(e,t=Nt.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:s,allErrors:a}=i,c=SP(e,t,r);(n!=null?n:s||a)?xP(o,c):wP(i,(0,_e._)`[${c}]`)}Nt.reportError=oz;function sz(e,t=Nt.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:s}=n,a=SP(e,t,r);xP(i,a),o||s||wP(n,Vt.default.vErrors)}Nt.reportExtraError=sz;function az(e,t){e.assign(Vt.default.errors,t),e.if((0,_e._)`${Vt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,_e._)`${Vt.default.vErrors}.length`,t),()=>e.assign(Vt.default.vErrors,null)))}Nt.resetErrorsCount=az;function cz({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let s=e.name("err");e.forRange("i",i,Vt.default.errors,a=>{e.const(s,(0,_e._)`${Vt.default.vErrors}[${a}]`),e.if((0,_e._)`${s}.instancePath === undefined`,()=>e.assign((0,_e._)`${s}.instancePath`,(0,_e.strConcat)(Vt.default.instancePath,o.errorPath))),e.assign((0,_e._)`${s}.schemaPath`,(0,_e.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,_e._)`${s}.schema`,r),e.assign((0,_e._)`${s}.data`,n))})}Nt.extendErrors=cz;function xP(e,t){let r=e.const("err",t);e.if((0,_e._)`${Vt.default.vErrors} === null`,()=>e.assign(Vt.default.vErrors,(0,_e._)`[${r}]`),(0,_e._)`${Vt.default.vErrors}.push(${r})`),e.code((0,_e._)`${Vt.default.errors}++`)}function wP(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,_e._)`new ${e.ValidationError}(${t})`):(r.assign((0,_e._)`${n}.errors`,t),r.return(!1))}var co={keyword:new _e.Name("keyword"),schemaPath:new _e.Name("schemaPath"),params:new _e.Name("params"),propertyName:new _e.Name("propertyName"),message:new _e.Name("message"),schema:new _e.Name("schema"),parentSchema:new _e.Name("parentSchema")};function SP(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,_e._)`{}`:lz(e,t,r)}function lz(e,t,r={}){let{gen:n,it:i}=e,o=[uz(i,r),pz(e,r)];return fz(e,t,o),n.object(...o)}function uz({errorPath:e},{instancePath:t}){let r=t?(0,_e.str)`${e}${(0,Wu.getErrorPath)(t,Wu.Type.Str)}`:e;return[Vt.default.instancePath,(0,_e.strConcat)(Vt.default.instancePath,r)]}function pz({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,_e.str)`${t}/${e}`;return r&&(i=(0,_e.str)`${i}${(0,Wu.getErrorPath)(r,Wu.Type.Str)}`),[co.schemaPath,i]}function fz(e,{params:t,message:r},n){let{keyword:i,data:o,schemaValue:s,it:a}=e,{opts:c,propertyName:l,topSchemaRef:u,schemaPath:p}=a;n.push([co.keyword,i],[co.params,typeof t=="function"?t(e):t||(0,_e._)`{}`]),c.messages&&n.push([co.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([co.schema,s],[co.parentSchema,(0,_e._)`${u}${p}`],[Vt.default.data,o]),l&&n.push([co.propertyName,l])}});var OP=x(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.boolOrEmptySchema=gs.topBoolOrEmptySchema=void 0;var dz=pc(),mz=pe(),hz=Cn(),yz={message:"boolean schema is false"};function gz(e){let{gen:t,schema:r,validateName:n}=e;r===!1?_P(e,!1):typeof r=="object"&&r.$async===!0?t.return(hz.default.data):(t.assign((0,mz._)`${n}.errors`,null),t.return(!0))}gs.topBoolOrEmptySchema=gz;function bz(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),_P(e)):r.var(t,!0)}gs.boolOrEmptySchema=bz;function _P(e,t){let{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,dz.reportError)(i,yz,void 0,t)}});var Ig=x(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.getRules=bs.isJSONType=void 0;var vz=["string","number","integer","boolean","null","object","array"],xz=new Set(vz);function wz(e){return typeof e=="string"&&xz.has(e)}bs.isJSONType=wz;function Sz(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}bs.getRules=Sz});var kg=x(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.shouldUseRule=oi.shouldUseGroup=oi.schemaHasRulesForType=void 0;function _z({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&$P(e,n)}oi.schemaHasRulesForType=_z;function $P(e,t){return t.rules.some(r=>PP(e,r))}oi.shouldUseGroup=$P;function PP(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}oi.shouldUseRule=PP});var fc=x(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.reportTypeError=It.checkDataTypes=It.checkDataType=It.coerceAndCheckDataType=It.getJSONTypes=It.getSchemaTypes=It.DataType=void 0;var Oz=Ig(),$z=kg(),Pz=pc(),ce=pe(),EP=Pe(),vs;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(vs||(It.DataType=vs={}));function Ez(e){let t=AP(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}It.getSchemaTypes=Ez;function AP(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(Oz.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}It.getJSONTypes=AP;function Az(e,t){let{gen:r,data:n,opts:i}=e,o=Cz(t,i.coerceTypes),s=t.length>0&&!(o.length===0&&t.length===1&&(0,$z.schemaHasRulesForType)(e,t[0]));if(s){let a=jg(t,n,i.strictNumbers,vs.Wrong);r.if(a,()=>{o.length?Rz(e,t,o):Mg(e)})}return s}It.coerceAndCheckDataType=Az;var CP=new Set(["string","number","integer","boolean","null"]);function Cz(e,t){return t?e.filter(r=>CP.has(r)||t==="array"&&r==="array"):[]}function Rz(e,t,r){let{gen:n,data:i,opts:o}=e,s=n.let("dataType",(0,ce._)`typeof ${i}`),a=n.let("coerced",(0,ce._)`undefined`);o.coerceTypes==="array"&&n.if((0,ce._)`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,ce._)`${i}[0]`).assign(s,(0,ce._)`typeof ${i}`).if(jg(t,i,o.strictNumbers),()=>n.assign(a,i))),n.if((0,ce._)`${a} !== undefined`);for(let l of r)(CP.has(l)||l==="array"&&o.coerceTypes==="array")&&c(l);n.else(),Mg(e),n.endIf(),n.if((0,ce._)`${a} !== undefined`,()=>{n.assign(i,a),Tz(e,a)});function c(l){switch(l){case"string":n.elseIf((0,ce._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,ce._)`"" + ${i}`).elseIf((0,ce._)`${i} === null`).assign(a,(0,ce._)`""`);return;case"number":n.elseIf((0,ce._)`${s} == "boolean" || ${i} === null
10
10
  || (${s} == "string" && ${i} && ${i} == +${i})`).assign(a,(0,ce._)`+${i}`);return;case"integer":n.elseIf((0,ce._)`${s} === "boolean" || ${i} === null
11
11
  || (${s} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(a,(0,ce._)`+${i}`);return;case"boolean":n.elseIf((0,ce._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(a,!1).elseIf((0,ce._)`${i} === "true" || ${i} === 1`).assign(a,!0);return;case"null":n.elseIf((0,ce._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(a,null);return;case"array":n.elseIf((0,ce._)`${s} === "string" || ${s} === "number"
12
- || ${s} === "boolean" || ${i} === null`).assign(a,(0,ce._)`[${i}]`)}}}function Tz({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,ce._)`${t} !== undefined`,()=>e.assign((0,ce._)`${t}[${r}]`,n))}function qg(e,t,r,n=vs.Correct){let i=n===vs.Correct?ce.operators.EQ:ce.operators.NEQ,o;switch(e){case"null":return(0,ce._)`${t} ${i} null`;case"array":o=(0,ce._)`Array.isArray(${t})`;break;case"object":o=(0,ce._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=s((0,ce._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=s();break;default:return(0,ce._)`typeof ${t} ${i} ${e}`}return n===vs.Correct?o:(0,ce.not)(o);function s(a=ce.nil){return(0,ce.and)((0,ce._)`typeof ${t} == "number"`,a,r?(0,ce._)`isFinite(${t})`:ce.nil)}}It.checkDataType=qg;function jg(e,t,r,n){if(e.length===1)return qg(e[0],t,r,n);let i,o=(0,EP.toHash)(e);if(o.array&&o.object){let s=(0,ce._)`typeof ${t} != "object"`;i=o.null?s:(0,ce._)`!${t} || ${s}`,delete o.null,delete o.array,delete o.object}else i=ce.nil;o.number&&delete o.integer;for(let s in o)i=(0,ce.and)(i,qg(s,t,r,n));return i}It.checkDataTypes=jg;var Nz={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,ce._)`{type: ${e}}`:(0,ce._)`{type: ${t}}`};function Mg(e){let t=Iz(e);(0,Pz.reportError)(t,Nz)}It.reportTypeError=Mg;function Iz(e){let{gen:t,data:r,schema:n}=e,i=(0,EP.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}});var TP=x(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.assignDefaults=void 0;var xs=ue(),kz=Pe();function qz(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)RP(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>RP(e,o,i.default))}Xu.assignDefaults=qz;function RP(e,t,r){let{gen:n,compositeRule:i,data:o,opts:s}=e;if(r===void 0)return;let a=(0,xs._)`${o}${(0,xs.getProperty)(t)}`;if(i){(0,kz.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,xs._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,xs._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,xs._)`${a} = ${(0,xs.stringify)(r)}`)}});var Or=x(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.validateUnion=Te.validateArray=Te.usePattern=Te.callValidateCode=Te.schemaProperties=Te.allSchemaProperties=Te.noPropertyInData=Te.propertyInData=Te.isOwnProperty=Te.hasPropFunc=Te.reportMissingProp=Te.checkMissingProp=Te.checkReportMissingProp=void 0;var Fe=ue(),Lg=Pe(),si=Cn(),jz=Pe();function Mz(e,t){let{gen:r,data:n,it:i}=e;r.if(Fg(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Fe._)`${t}`},!0),e.error()})}Te.checkReportMissingProp=Mz;function Lz({gen:e,data:t,it:{opts:r}},n,i){return(0,Fe.or)(...n.map(o=>(0,Fe.and)(Fg(e,t,o,r.ownProperties),(0,Fe._)`${i} = ${o}`)))}Te.checkMissingProp=Lz;function Dz(e,t){e.setParams({missingProperty:t},!0),e.error()}Te.reportMissingProp=Dz;function NP(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Fe._)`Object.prototype.hasOwnProperty`})}Te.hasPropFunc=NP;function Dg(e,t,r){return(0,Fe._)`${NP(e)}.call(${t}, ${r})`}Te.isOwnProperty=Dg;function Fz(e,t,r,n){let i=(0,Fe._)`${t}${(0,Fe.getProperty)(r)} !== undefined`;return n?(0,Fe._)`${i} && ${Dg(e,t,r)}`:i}Te.propertyInData=Fz;function Fg(e,t,r,n){let i=(0,Fe._)`${t}${(0,Fe.getProperty)(r)} === undefined`;return n?(0,Fe.or)(i,(0,Fe.not)(Dg(e,t,r))):i}Te.noPropertyInData=Fg;function IP(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Te.allSchemaProperties=IP;function Bz(e,t){return IP(t).filter(r=>!(0,Lg.alwaysValidSchema)(e,t[r]))}Te.schemaProperties=Bz;function Uz({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:s},a,c,l){let u=l?(0,Fe._)`${e}, ${t}, ${n}${i}`:t,p=[[si.default.instancePath,(0,Fe.strConcat)(si.default.instancePath,o)],[si.default.parentData,s.parentData],[si.default.parentDataProperty,s.parentDataProperty],[si.default.rootData,si.default.rootData]];s.opts.dynamicRef&&p.push([si.default.dynamicAnchors,si.default.dynamicAnchors]);let m=(0,Fe._)`${u}, ${r.object(...p)}`;return c!==Fe.nil?(0,Fe._)`${a}.call(${c}, ${m})`:(0,Fe._)`${a}(${m})`}Te.callValidateCode=Uz;var Vz=(0,Fe._)`new RegExp`;function zz({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,Fe._)`${i.code==="new RegExp"?Vz:(0,jz.useFunc)(e,i)}(${r}, ${n})`})}Te.usePattern=zz;function Hz(e){let{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){let a=t.let("valid",!0);return s(()=>t.assign(a,!1)),a}return t.var(o,!0),s(()=>t.break()),o;function s(a){let c=t.const("len",(0,Fe._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Lg.Type.Num},o),t.if((0,Fe.not)(o),a)})}}Te.validateArray=Hz;function Kz(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,Lg.alwaysValidSchema)(i,c))&&!i.opts.unevaluated)return;let s=t.let("valid",!1),a=t.name("_valid");t.block(()=>r.forEach((c,l)=>{let u=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},a);t.assign(s,(0,Fe._)`${s} || ${a}`),e.mergeValidEvaluated(u,a)||t.if((0,Fe.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}Te.validateUnion=Kz});var jP=x(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.validateKeywordUsage=tn.validSchemaType=tn.funcKeywordCode=tn.macroKeywordCode=void 0;var zt=ue(),lo=Cn(),Gz=Or(),Yz=pc();function Wz(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:s}=e,a=t.macro.call(s.self,i,o,s),c=qP(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let l=r.name("valid");e.subschema({schema:a,schemaPath:zt.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}tn.macroKeywordCode=Wz;function Xz(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:s,$data:a,it:c}=e;Qz(c,t);let l=!a&&t.compile?t.compile.call(c.self,o,s,c):t.validate,u=qP(n,i,l),p=n.let("valid");e.block$data(p,m),e.ok((r=t.valid)!==null&&r!==void 0?r:p);function m(){if(t.errors===!1)h(),t.modifying&&kP(e),y(()=>e.error());else{let b=t.async?d():f();t.modifying&&kP(e),y(()=>Jz(e,b))}}function d(){let b=n.let("ruleErrs",null);return n.try(()=>h((0,zt._)`await `),g=>n.assign(p,!1).if((0,zt._)`${g} instanceof ${c.ValidationError}`,()=>n.assign(b,(0,zt._)`${g}.errors`),()=>n.throw(g))),b}function f(){let b=(0,zt._)`${u}.errors`;return n.assign(b,null),h(zt.nil),b}function h(b=t.async?(0,zt._)`await `:zt.nil){let g=c.opts.passContext?lo.default.this:lo.default.self,v=!("compile"in t&&!a||t.schema===!1);n.assign(p,(0,zt._)`${b}${(0,Gz.callValidateCode)(e,u,g,v)}`,t.modifying)}function y(b){var g;n.if((0,zt.not)((g=t.valid)!==null&&g!==void 0?g:p),b)}}tn.funcKeywordCode=Xz;function kP(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,zt._)`${n.parentData}[${n.parentDataProperty}]`))}function Jz(e,t){let{gen:r}=e;r.if((0,zt._)`Array.isArray(${t})`,()=>{r.assign(lo.default.vErrors,(0,zt._)`${lo.default.vErrors} === null ? ${t} : ${lo.default.vErrors}.concat(${t})`).assign(lo.default.errors,(0,zt._)`${lo.default.vErrors}.length`),(0,Yz.extendErrors)(e)},()=>e.error())}function Qz({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function qP(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,zt.stringify)(r)})}function Zz(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}tn.validSchemaType=Zz;function e7({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");let s=i.dependencies;if(s!=null&&s.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){let c=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}tn.validateKeywordUsage=e7});var LP=x(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.extendSubschemaMode=ai.extendSubschemaData=ai.getSubschema=void 0;var rn=ue(),MP=Pe();function t7(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:s}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,rn._)`${e.schemaPath}${(0,rn.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,rn._)`${e.schemaPath}${(0,rn.getProperty)(t)}${(0,rn.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,MP.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:s,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}ai.getSubschema=t7;function r7(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:s}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=t;if(r!==void 0){let{errorPath:l,dataPathArr:u,opts:p}=t,m=a.let("data",(0,rn._)`${t.data}${(0,rn.getProperty)(r)}`,!0);c(m),e.errorPath=(0,rn.str)`${l}${(0,MP.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,rn._)`${r}`,e.dataPathArr=[...u,e.parentDataProperty]}if(i!==void 0){let l=i instanceof rn.Name?i:a.let("data",i,!0);c(l),s!==void 0&&(e.propertyName=s)}o&&(e.dataTypes=o);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}ai.extendSubschemaData=r7;function n7(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}ai.extendSubschemaMode=n7});var dc=x(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.getSchemaRefs=nr.resolveUrl=nr.normalizeId=nr._getFullPath=nr.getFullPath=nr.inlineRef=void 0;var i7=Pe(),o7=Na(),s7=uh(),a7=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function c7(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Bg(e):t?DP(e)<=t:!1}nr.inlineRef=c7;var l7=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Bg(e){for(let t in e){if(l7.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Bg)||typeof r=="object"&&Bg(r))return!0}return!1}function DP(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!a7.has(r)&&(typeof e[r]=="object"&&(0,i7.eachItem)(e[r],n=>t+=DP(n)),t===1/0))return 1/0}return t}function FP(e,t="",r){r!==!1&&(t=ws(t));let n=e.parse(t);return BP(e,n)}nr.getFullPath=FP;function BP(e,t){return e.serialize(t).split("#")[0]+"#"}nr._getFullPath=BP;var u7=/#\/?$/;function ws(e){return e?e.replace(u7,""):""}nr.normalizeId=ws;function p7(e,t,r){return r=ws(r),e.resolve(t,r)}nr.resolveUrl=p7;var f7=/^[a-z_][-a-z0-9._]*$/i;function d7(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=ws(e[r]||t),o={"":i},s=FP(n,i,!1),a={},c=new Set;return s7(e,{allKeys:!0},(p,m,d,f)=>{if(f===void 0)return;let h=s+m,y=o[f];typeof p[r]=="string"&&(y=b.call(this,p[r])),g.call(this,p.$anchor),g.call(this,p.$dynamicAnchor),o[m]=y;function b(v){let _=this.opts.uriResolver.resolve;if(v=ws(y?_(y,v):v),c.has(v))throw u(v);c.add(v);let w=this.refs[v];return typeof w=="string"&&(w=this.refs[w]),typeof w=="object"?l(p,w.schema,v):v!==ws(h)&&(v[0]==="#"?(l(p,a[v],v),a[v]=p):this.refs[v]=h),v}function g(v){if(typeof v=="string"){if(!f7.test(v))throw new Error(`invalid anchor "${v}"`);b.call(this,`#${v}`)}}}),a;function l(p,m,d){if(m!==void 0&&!o7(p,m))throw u(d)}function u(p){return new Error(`reference "${p}" resolves to more than one schema`)}}nr.getSchemaRefs=d7});var yc=x(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.getData=ci.KeywordCxt=ci.validateFunctionCode=void 0;var KP=OP(),UP=fc(),Vg=kg(),Ju=fc(),m7=TP(),hc=jP(),Ug=LP(),J=ue(),te=Cn(),h7=dc(),Rn=Pe(),mc=pc();function y7(e){if(WP(e)&&(XP(e),YP(e))){v7(e);return}GP(e,()=>(0,KP.topBoolOrEmptySchema)(e))}ci.validateFunctionCode=y7;function GP({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,J._)`${te.default.data}, ${te.default.valCxt}`,n.$async,()=>{e.code((0,J._)`"use strict"; ${VP(r,i)}`),b7(e,i),e.code(o)}):e.func(t,(0,J._)`${te.default.data}, ${g7(i)}`,n.$async,()=>e.code(VP(r,i)).code(o))}function g7(e){return(0,J._)`{${te.default.instancePath}="", ${te.default.parentData}, ${te.default.parentDataProperty}, ${te.default.rootData}=${te.default.data}${e.dynamicRef?(0,J._)`, ${te.default.dynamicAnchors}={}`:J.nil}}={}`}function b7(e,t){e.if(te.default.valCxt,()=>{e.var(te.default.instancePath,(0,J._)`${te.default.valCxt}.${te.default.instancePath}`),e.var(te.default.parentData,(0,J._)`${te.default.valCxt}.${te.default.parentData}`),e.var(te.default.parentDataProperty,(0,J._)`${te.default.valCxt}.${te.default.parentDataProperty}`),e.var(te.default.rootData,(0,J._)`${te.default.valCxt}.${te.default.rootData}`),t.dynamicRef&&e.var(te.default.dynamicAnchors,(0,J._)`${te.default.valCxt}.${te.default.dynamicAnchors}`)},()=>{e.var(te.default.instancePath,(0,J._)`""`),e.var(te.default.parentData,(0,J._)`undefined`),e.var(te.default.parentDataProperty,(0,J._)`undefined`),e.var(te.default.rootData,te.default.data),t.dynamicRef&&e.var(te.default.dynamicAnchors,(0,J._)`{}`)})}function v7(e){let{schema:t,opts:r,gen:n}=e;GP(e,()=>{r.$comment&&t.$comment&&QP(e),O7(e),n.let(te.default.vErrors,null),n.let(te.default.errors,0),r.unevaluated&&x7(e),JP(e),E7(e)})}function x7(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,J._)`${r}.evaluated`),t.if((0,J._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,J._)`${e.evaluated}.props`,(0,J._)`undefined`)),t.if((0,J._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,J._)`${e.evaluated}.items`,(0,J._)`undefined`))}function VP(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,J._)`/*# sourceURL=${r} */`:J.nil}function w7(e,t){if(WP(e)&&(XP(e),YP(e))){S7(e,t);return}(0,KP.boolOrEmptySchema)(e,t)}function YP({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function WP(e){return typeof e.schema!="boolean"}function S7(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&QP(e),$7(e),P7(e);let o=n.const("_errs",te.default.errors);JP(e,o),n.var(t,(0,J._)`${o} === ${te.default.errors}`)}function XP(e){(0,Rn.checkUnknownRules)(e),_7(e)}function JP(e,t){if(e.opts.jtd)return zP(e,[],!1,t);let r=(0,UP.getSchemaTypes)(e.schema),n=(0,UP.coerceAndCheckDataType)(e,r);zP(e,r,!n,t)}function _7(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Rn.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function O7(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Rn.checkStrictMode)(e,"default is ignored in the schema root")}function $7(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,h7.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function P7(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function QP({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,J._)`${te.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let s=(0,J.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,J._)`${te.default.self}.opts.$comment(${o}, ${s}, ${a}.schema)`)}}function E7(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,J._)`${te.default.errors} === 0`,()=>t.return(te.default.data),()=>t.throw((0,J._)`new ${i}(${te.default.vErrors})`)):(t.assign((0,J._)`${n}.errors`,te.default.vErrors),o.unevaluated&&A7(e),t.return((0,J._)`${te.default.errors} === 0`))}function A7({gen:e,evaluated:t,props:r,items:n}){r instanceof J.Name&&e.assign((0,J._)`${t}.props`,r),n instanceof J.Name&&e.assign((0,J._)`${t}.items`,n)}function zP(e,t,r,n){let{gen:i,schema:o,data:s,allErrors:a,opts:c,self:l}=e,{RULES:u}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,Rn.schemaHasRulesButRef)(o,u))){i.block(()=>eE(e,"$ref",u.all.$ref.definition));return}c.jtd||C7(e,t),i.block(()=>{for(let m of u.rules)p(m);p(u.post)});function p(m){(0,Vg.shouldUseGroup)(o,m)&&(m.type?(i.if((0,Ju.checkDataType)(m.type,s,c.strictNumbers)),HP(e,m),t.length===1&&t[0]===m.type&&r&&(i.else(),(0,Ju.reportTypeError)(e)),i.endIf()):HP(e,m),a||i.if((0,J._)`${te.default.errors} === ${n||0}`))}}function HP(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,m7.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,Vg.shouldUseRule)(n,o)&&eE(e,o.keyword,o.definition,t.type)})}function C7(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(R7(e,t),e.opts.allowUnionTypes||T7(e,t),N7(e,e.dataTypes))}function R7(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{ZP(e.dataTypes,r)||zg(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),k7(e,t)}}function T7(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&zg(e,"use allowUnionTypes to allow union type keyword")}function N7(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Vg.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(s=>I7(t,s))&&zg(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function I7(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function ZP(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function k7(e,t){let r=[];for(let n of e.dataTypes)ZP(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function zg(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Rn.checkStrictMode)(e,t,e.opts.strictTypes)}var Qu=class{constructor(t,r,n){if((0,hc.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Rn.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",tE(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,hc.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",te.default.errors))}result(t,r,n){this.failResult((0,J.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,J.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,J._)`${r} !== undefined && (${(0,J.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?mc.reportExtraError:mc.reportError)(this,this.def.error,r)}$dataError(){(0,mc.reportError)(this,this.def.$dataError||mc.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,mc.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=J.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=J.nil,r=J.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:s}=this;n.if((0,J.or)((0,J._)`${i} === undefined`,r)),t!==J.nil&&n.assign(t,!0),(o.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==J.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,J.or)(s(),a());function s(){if(n.length){if(!(r instanceof J.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,J._)`${(0,Ju.checkDataTypes)(c,r,o.opts.strictNumbers,Ju.DataType.Wrong)}`}return J.nil}function a(){if(i.validateSchema){let c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,J._)`!${c}(${r})`}return J.nil}}subschema(t,r){let n=(0,Ug.getSubschema)(this.it,t);(0,Ug.extendSubschemaData)(n,this.it,t),(0,Ug.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return w7(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Rn.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Rn.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,J.Name)),!0}};ci.KeywordCxt=Qu;function eE(e,t,r,n){let i=new Qu(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,hc.funcKeywordCode)(i,r):"macro"in r?(0,hc.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,hc.funcKeywordCode)(i,r)}var q7=/^\/(?:[^~]|~0|~1)*$/,j7=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function tE(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return te.default.rootData;if(e[0]==="/"){if(!q7.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=te.default.rootData}else{let l=j7.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let u=+l[1];if(i=l[2],i==="#"){if(u>=t)throw new Error(c("property/index",u));return n[t-u]}if(u>t)throw new Error(c("data",u));if(o=r[t-u],!i)return o}let s=o,a=i.split("/");for(let l of a)l&&(o=(0,J._)`${o}${(0,J.getProperty)((0,Rn.unescapeJsonPointer)(l))}`,s=(0,J._)`${s} && ${o}`);return s;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${t}`}}ci.getData=tE});var Zu=x(Kg=>{"use strict";Object.defineProperty(Kg,"__esModule",{value:!0});var Hg=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};Kg.default=Hg});var gc=x(Wg=>{"use strict";Object.defineProperty(Wg,"__esModule",{value:!0});var Gg=dc(),Yg=class extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Gg.resolveUrl)(t,r,n),this.missingSchema=(0,Gg.normalizeId)((0,Gg.getFullPath)(t,this.missingRef))}};Wg.default=Yg});var tp=x($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.resolveSchema=$r.getCompilingSchema=$r.resolveRef=$r.compileSchema=$r.SchemaEnv=void 0;var Fr=ue(),M7=Zu(),uo=Cn(),Br=dc(),rE=Pe(),L7=yc(),Ss=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,Br.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};$r.SchemaEnv=Ss;function Jg(e){let t=nE.call(this,e);if(t)return t;let r=(0,Br.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,s=new Fr.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),a;e.$async&&(a=s.scopeValue("Error",{ref:M7.default,code:(0,Fr._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let l={gen:s,allErrors:this.opts.allErrors,data:uo.default.data,parentData:uo.default.parentData,parentDataProperty:uo.default.parentDataProperty,dataNames:[uo.default.data],dataPathArr:[Fr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Fr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Fr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Fr._)`""`,opts:this.opts,self:this},u;try{this._compilations.add(e),(0,L7.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);let p=s.toString();u=`${s.scopeRefs(uo.default.scope)}return ${p}`,this.opts.code.process&&(u=this.opts.code.process(u,e));let d=new Function(`${uo.default.self}`,`${uo.default.scope}`,u)(this,this.scope.get());if(this.scope.value(c,{ref:d}),d.errors=null,d.schema=e.schema,d.schemaEnv=e,e.$async&&(d.$async=!0),this.opts.code.source===!0&&(d.source={validateName:c,validateCode:p,scopeValues:s._values}),this.opts.unevaluated){let{props:f,items:h}=l;d.evaluated={props:f instanceof Fr.Name?void 0:f,items:h instanceof Fr.Name?void 0:h,dynamicProps:f instanceof Fr.Name,dynamicItems:h instanceof Fr.Name},d.source&&(d.source.evaluated=(0,Fr.stringify)(d.evaluated))}return e.validate=d,e}catch(p){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),p}finally{this._compilations.delete(e)}}$r.compileSchema=Jg;function D7(e,t,r){var n;r=(0,Br.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let o=U7.call(this,e,r);if(o===void 0){let s=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;s&&(o=new Ss({schema:s,schemaId:a,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=F7.call(this,o)}$r.resolveRef=D7;function F7(e){return(0,Br.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Jg.call(this,e)}function nE(e){for(let t of this._compilations)if(B7(t,e))return t}$r.getCompilingSchema=nE;function B7(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function U7(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||ep.call(this,e,t)}function ep(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Br._getFullPath)(this.opts.uriResolver,r),i=(0,Br.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Xg.call(this,r,e);let o=(0,Br.normalizeId)(n),s=this.refs[o]||this.schemas[o];if(typeof s=="string"){let a=ep.call(this,e,s);return typeof(a==null?void 0:a.schema)!="object"?void 0:Xg.call(this,r,a)}if(typeof(s==null?void 0:s.schema)=="object"){if(s.validate||Jg.call(this,s),o===(0,Br.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(i=(0,Br.resolveUrl)(this.opts.uriResolver,i,l)),new Ss({schema:a,schemaId:c,root:e,baseId:i})}return Xg.call(this,r,s)}}$r.resolveSchema=ep;var V7=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Xg(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,rE.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!V7.has(a)&&l&&(t=(0,Br.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,rE.schemaHasRulesButRef)(r,this.RULES)){let a=(0,Br.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=ep.call(this,n,a)}let{schemaId:s}=this.opts;if(o=o||new Ss({schema:r,schemaId:s,root:n,baseId:t}),o.schema!==o.root.schema)return o}});var iE=x((Gae,z7)=>{z7.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var sE=x((Yae,oE)=>{"use strict";var H7={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};oE.exports={HEX:H7}});var mE=x((Wae,dE)=>{"use strict";var{HEX:K7}=sE(),G7=/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;function uE(e){if(fE(e,".")<3)return{host:e,isIPV4:!1};let t=e.match(G7)||[],[r]=t;return r?{host:W7(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}function Qg(e,t=!1){let r="",n=!0;for(let i of e){if(K7[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}function Y7(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],o=!1,s=!1,a=!1;function c(){if(i.length){if(o===!1){let l=Qg(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}for(let l=0;l<e.length;l++){let u=e[l];if(!(u==="["||u==="]"))if(u===":"){if(s===!0&&(a=!0),!c())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(s=!0);continue}else if(u==="%"){if(!c())break;o=!0}else{i.push(u);continue}}return i.length&&(o?r.zone=i.join(""):a?n.push(i.join("")):n.push(Qg(i))),r.address=n.join(""),r}function pE(e){if(fE(e,":")<2)return{host:e,isIPV6:!1};let t=Y7(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,n=t.address;return t.zone&&(r+="%"+t.zone,n+="%25"+t.zone),{host:r,escapedHost:n,isIPV6:!0}}}function W7(e,t){let r="",n=!0,i=e.length;for(let o=0;o<i;o++){let s=e[o];s==="0"&&n?(o+1<=i&&e[o+1]===t||o+1===i)&&(r+=s,n=!1):(s===t?n=!0:n=!1,r+=s)}return r}function fE(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}var aE=/^\.\.?\//u,cE=/^\/\.(?:\/|$)/u,lE=/^\/\.\.(?:\/|$)/u,X7=/^\/?(?:.|\n)*?(?=\/|$)/u;function J7(e){let t=[];for(;e.length;)if(e.match(aE))e=e.replace(aE,"");else if(e.match(cE))e=e.replace(cE,"/");else if(e.match(lE))e=e.replace(lE,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(X7);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}function Q7(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}function Z7(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host),n=uE(r);if(n.isIPV4)r=n.host;else{let i=pE(n.host);i.isIPV6===!0?r=`[${i.escapedHost}]`:r=e.host}t.push(r)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}dE.exports={recomposeAuthority:Z7,normalizeComponentEncoding:Q7,removeDotSegments:J7,normalizeIPv4:uE,normalizeIPv6:pE,stringArrayToHexStripped:Qg}});var xE=x((Xae,vE)=>{"use strict";var eH=/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu,tH=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function hE(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}function yE(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function gE(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function rH(e){return e.secure=hE(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function nH(e){if((e.port===(hE(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function iH(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(tH);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,o=Zg[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function oH(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,o=Zg[i];o&&(e=o.serialize(e,t));let s=e,a=e.nss;return s.path=`${n||t.nid}:${a}`,t.skipEscape=!0,s}function sH(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!eH.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function aH(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var bE={scheme:"http",domainHost:!0,parse:yE,serialize:gE},cH={scheme:"https",domainHost:bE.domainHost,parse:yE,serialize:gE},rp={scheme:"ws",domainHost:!0,parse:rH,serialize:nH},lH={scheme:"wss",domainHost:rp.domainHost,parse:rp.parse,serialize:rp.serialize},uH={scheme:"urn",parse:iH,serialize:oH,skipNormalize:!0},pH={scheme:"urn:uuid",parse:sH,serialize:aH,skipNormalize:!0},Zg={http:bE,https:cH,ws:rp,wss:lH,urn:uH,"urn:uuid":pH};vE.exports=Zg});var SE=x((Jae,ip)=>{"use strict";var{normalizeIPv6:fH,normalizeIPv4:dH,removeDotSegments:bc,recomposeAuthority:mH,normalizeComponentEncoding:np}=mE(),e0=xE();function hH(e,t){return typeof e=="string"?e=nn(Tn(e,t),t):typeof e=="object"&&(e=Tn(nn(e,t),t)),e}function yH(e,t,r){let n=Object.assign({scheme:"null"},r),i=wE(Tn(e,n),Tn(t,n),n,!0);return nn(i,{...n,skipEscape:!0})}function wE(e,t,r,n){let i={};return n||(e=Tn(nn(e,r),r),t=Tn(nn(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=bc(t.path||""),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=bc(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=bc(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path,i.path=bc(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}function gH(e,t,r){return typeof e=="string"?(e=unescape(e),e=nn(np(Tn(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=nn(np(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=nn(np(Tn(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=nn(np(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function nn(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],o=e0[(n.scheme||r.scheme||"").toLowerCase()];o&&o.serialize&&o.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&i.push(r.scheme,":");let s=mH(r);if(s!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(s),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let a=r.path;!n.absolutePath&&(!o||!o.absolutePath)&&(a=bc(a)),s===void 0&&(a=a.replace(/^\/\//u,"/%2F")),i.push(a)}return r.query!==void 0&&i.push("?",r.query),r.fragment!==void 0&&i.push("#",r.fragment),i.join("")}var bH=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function vH(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||bH[t])return!0;return!1}var xH=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Tn(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,o=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let s=e.match(xH);if(s){if(n.scheme=s[1],n.userinfo=s[3],n.host=s[4],n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=s[7],n.fragment=s[8],isNaN(n.port)&&(n.port=s[5]),n.host){let c=dH(n.host);if(c.isIPV4===!1){let l=fH(c.host);n.host=l.host.toLowerCase(),o=l.isIPV6}else n.host=c.host,o=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let a=e0[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!a||!a.unicodeSupport)&&n.host&&(r.domainHost||a&&a.domainHost)&&o===!1&&vH(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(c){n.error=n.error||"Host's domain name can not be converted to ASCII: "+c}(!a||a&&!a.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path&&(n.path=escape(unescape(n.path))),n.fragment&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),a&&a.parse&&a.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}var t0={SCHEMES:e0,normalize:hH,resolve:yH,resolveComponents:wE,equal:gH,serialize:nn,parse:Tn};ip.exports=t0;ip.exports.default=t0;ip.exports.fastUri=t0});var OE=x(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});var _E=SE();_E.code='require("ajv/dist/runtime/uri").default';r0.default=_E});var NE=x(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.CodeGen=St.Name=St.nil=St.stringify=St.str=St._=St.KeywordCxt=void 0;var wH=yc();Object.defineProperty(St,"KeywordCxt",{enumerable:!0,get:function(){return wH.KeywordCxt}});var _s=ue();Object.defineProperty(St,"_",{enumerable:!0,get:function(){return _s._}});Object.defineProperty(St,"str",{enumerable:!0,get:function(){return _s.str}});Object.defineProperty(St,"stringify",{enumerable:!0,get:function(){return _s.stringify}});Object.defineProperty(St,"nil",{enumerable:!0,get:function(){return _s.nil}});Object.defineProperty(St,"Name",{enumerable:!0,get:function(){return _s.Name}});Object.defineProperty(St,"CodeGen",{enumerable:!0,get:function(){return _s.CodeGen}});var SH=Zu(),CE=gc(),_H=Ig(),vc=tp(),OH=ue(),xc=dc(),op=fc(),i0=Pe(),$E=iE(),$H=OE(),RE=(e,t)=>new RegExp(e,t);RE.code="new RegExp";var PH=["removeAdditional","useDefaults","coerceTypes"],EH=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),AH={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},CH={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},PE=200;function RH(e){var t,r,n,i,o,s,a,c,l,u,p,m,d,f,h,y,b,g,v,_,w,N,S,O,P;let E=e.strict,R=(t=e.code)===null||t===void 0?void 0:t.optimize,A=R===!0||R===void 0?1:R||0,I=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:RE,C=(i=e.uriResolver)!==null&&i!==void 0?i:$H.default;return{strictSchema:(s=(o=e.strictSchema)!==null&&o!==void 0?o:E)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:E)!==null&&c!==void 0?c:!0,strictTypes:(u=(l=e.strictTypes)!==null&&l!==void 0?l:E)!==null&&u!==void 0?u:"log",strictTuples:(m=(p=e.strictTuples)!==null&&p!==void 0?p:E)!==null&&m!==void 0?m:"log",strictRequired:(f=(d=e.strictRequired)!==null&&d!==void 0?d:E)!==null&&f!==void 0?f:!1,code:e.code?{...e.code,optimize:A,regExp:I}:{optimize:A,regExp:I},loopRequired:(h=e.loopRequired)!==null&&h!==void 0?h:PE,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:PE,meta:(b=e.meta)!==null&&b!==void 0?b:!0,messages:(g=e.messages)!==null&&g!==void 0?g:!0,inlineRefs:(v=e.inlineRefs)!==null&&v!==void 0?v:!0,schemaId:(_=e.schemaId)!==null&&_!==void 0?_:"$id",addUsedSchema:(w=e.addUsedSchema)!==null&&w!==void 0?w:!0,validateSchema:(N=e.validateSchema)!==null&&N!==void 0?N:!0,validateFormats:(S=e.validateFormats)!==null&&S!==void 0?S:!0,unicodeRegExp:(O=e.unicodeRegExp)!==null&&O!==void 0?O:!0,int32range:(P=e.int32range)!==null&&P!==void 0?P:!0,uriResolver:C}}var wc=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...RH(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new OH.ValueScope({scope:{},prefixes:EH,es5:r,lines:n}),this.logger=jH(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,_H.getRules)(),EE.call(this,AH,t,"NOT SUPPORTED"),EE.call(this,CH,t,"DEPRECATED","warn"),this._metaOpts=kH.call(this),t.formats&&NH.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&IH.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),TH.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=$E;n==="id"&&(i={...$E},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(u,p){await o.call(this,u.$schema);let m=this._addSchema(u,p);return m.validate||s.call(this,m)}async function o(u){u&&!this.getSchema(u)&&await i.call(this,{$ref:u},!0)}async function s(u){try{return this._compileSchemaEnv(u)}catch(p){if(!(p instanceof CE.default))throw p;return a.call(this,p),await c.call(this,p.missingSchema),s.call(this,u)}}function a({missingSchema:u,missingRef:p}){if(this.refs[u])throw new Error(`AnySchema ${u} is loaded but ${p} cannot be resolved`)}async function c(u){let p=await l.call(this,u);this.refs[u]||await o.call(this,p.$schema),this.refs[u]||this.addSchema(p,u,r)}async function l(u){let p=this._loading[u];if(p)return p;try{return await(this._loading[u]=n(u))}finally{delete this._loading[u]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let s of t)this.addSchema(s,void 0,n,i);return this}let o;if(typeof t=="object"){let{schemaId:s}=this.opts;if(o=t[s],o!==void 0&&typeof o!="string")throw new Error(`schema ${s} must be string`)}return r=(0,xc.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(t){let r;for(;typeof(r=AE.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new vc.SchemaEnv({schema:{},schemaId:n});if(r=vc.resolveSchema.call(this,i,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=AE.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,xc.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(LH.call(this,n,r),!r)return(0,i0.eachItem)(n,o=>n0.call(this,o)),this;FH.call(this,r);let i={...r,type:(0,op.getJSONTypes)(r.type),schemaType:(0,op.getJSONTypes)(r.schemaType)};return(0,i0.eachItem)(n,i.type.length===0?o=>n0.call(this,o,i):o=>i.type.forEach(s=>n0.call(this,o,i,s))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(o=>o.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,o)=>i+r+o)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let o=i.split("/").slice(1),s=t;for(let a of o)s=s[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:l}=c.definition,u=s[a];l&&u&&(s[a]=TE(u))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,o=this.opts.addUsedSchema){let s,{schemaId:a}=this.opts;if(typeof t=="object")s=t[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,xc.normalizeId)(s||n);let l=xc.getSchemaRefs.call(this,t,n);return c=new vc.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),i&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):vc.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{vc.compileSchema.call(this,t)}finally{this.opts=r}}};wc.ValidationError=SH.default;wc.MissingRefError=CE.default;St.default=wc;function EE(e,t,r,n="error"){for(let i in e){let o=i;o in t&&this.logger[n](`${r}: option ${i}. ${e[o]}`)}}function AE(e){return e=(0,xc.normalizeId)(e),this.schemas[e]||this.refs[e]}function TH(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function NH(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function IH(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function kH(){let e={...this.opts};for(let t of PH)delete e[t];return e}var qH={log(){},warn(){},error(){}};function jH(e){if(e===!1)return qH;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var MH=/^[a-z_$][a-z0-9_$:-]*$/i;function LH(e,t){let{RULES:r}=this;if((0,i0.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!MH.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function n0(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,s=i?o.post:o.rules.find(({type:c})=>c===r);if(s||(s={type:r,rules:[]},o.rules.push(s)),o.keywords[e]=!0,!t)return;let a={keyword:e,definition:{...t,type:(0,op.getJSONTypes)(t.type),schemaType:(0,op.getJSONTypes)(t.schemaType)}};t.before?DH.call(this,s,a,t.before):s.rules.push(a),o.all[e]=a,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function DH(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function FH(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=TE(t)),e.validateSchema=this.compile(t,!0))}var BH={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function TE(e){return{anyOf:[e,BH]}}});var IE=x(o0=>{"use strict";Object.defineProperty(o0,"__esModule",{value:!0});var UH={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};o0.default=UH});var ME=x(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.callRef=po.getValidate=void 0;var VH=gc(),kE=Or(),ir=ue(),Os=Cn(),qE=tp(),sp=Pe(),zH={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:s,opts:a,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return p();let u=qE.resolveRef.call(c,l,i,r);if(u===void 0)throw new VH.default(n.opts.uriResolver,i,r);if(u instanceof qE.SchemaEnv)return m(u);return d(u);function p(){if(o===l)return ap(e,s,o,o.$async);let f=t.scopeValue("root",{ref:l});return ap(e,(0,ir._)`${f}.validate`,l,l.$async)}function m(f){let h=jE(e,f);ap(e,h,f,f.$async)}function d(f){let h=t.scopeValue("schema",a.code.source===!0?{ref:f,code:(0,ir.stringify)(f)}:{ref:f}),y=t.name("valid"),b=e.subschema({schema:f,dataTypes:[],schemaPath:ir.nil,topSchemaRef:h,errSchemaPath:r},y);e.mergeEvaluated(b),e.ok(y)}}};function jE(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,ir._)`${r.scopeValue("wrapper",{ref:t})}.validate`}po.getValidate=jE;function ap(e,t,r,n){let{gen:i,it:o}=e,{allErrors:s,schemaEnv:a,opts:c}=o,l=c.passContext?Os.default.this:ir.nil;n?u():p();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");let f=i.let("valid");i.try(()=>{i.code((0,ir._)`await ${(0,kE.callValidateCode)(e,t,l)}`),d(t),s||i.assign(f,!0)},h=>{i.if((0,ir._)`!(${h} instanceof ${o.ValidationError})`,()=>i.throw(h)),m(h),s||i.assign(f,!1)}),e.ok(f)}function p(){e.result((0,kE.callValidateCode)(e,t,l),()=>d(t),()=>m(t))}function m(f){let h=(0,ir._)`${f}.errors`;i.assign(Os.default.vErrors,(0,ir._)`${Os.default.vErrors} === null ? ${h} : ${Os.default.vErrors}.concat(${h})`),i.assign(Os.default.errors,(0,ir._)`${Os.default.vErrors}.length`)}function d(f){var h;if(!o.opts.unevaluated)return;let y=(h=r==null?void 0:r.validate)===null||h===void 0?void 0:h.evaluated;if(o.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(o.props=sp.mergeEvaluated.props(i,y.props,o.props));else{let b=i.var("props",(0,ir._)`${f}.evaluated.props`);o.props=sp.mergeEvaluated.props(i,b,o.props,ir.Name)}if(o.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(o.items=sp.mergeEvaluated.items(i,y.items,o.items));else{let b=i.var("items",(0,ir._)`${f}.evaluated.items`);o.items=sp.mergeEvaluated.items(i,b,o.items,ir.Name)}}}po.callRef=ap;po.default=zH});var LE=x(s0=>{"use strict";Object.defineProperty(s0,"__esModule",{value:!0});var HH=IE(),KH=ME(),GH=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",HH.default,KH.default];s0.default=GH});var DE=x(a0=>{"use strict";Object.defineProperty(a0,"__esModule",{value:!0});var cp=ue(),li=cp.operators,lp={maximum:{okStr:"<=",ok:li.LTE,fail:li.GT},minimum:{okStr:">=",ok:li.GTE,fail:li.LT},exclusiveMaximum:{okStr:"<",ok:li.LT,fail:li.GTE},exclusiveMinimum:{okStr:">",ok:li.GT,fail:li.LTE}},YH={message:({keyword:e,schemaCode:t})=>(0,cp.str)`must be ${lp[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,cp._)`{comparison: ${lp[e].okStr}, limit: ${t}}`},WH={keyword:Object.keys(lp),type:"number",schemaType:"number",$data:!0,error:YH,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,cp._)`${r} ${lp[t].fail} ${n} || isNaN(${r})`)}};a0.default=WH});var FE=x(c0=>{"use strict";Object.defineProperty(c0,"__esModule",{value:!0});var Sc=ue(),XH={message:({schemaCode:e})=>(0,Sc.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Sc._)`{multipleOf: ${e}}`},JH={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:XH,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,s=t.let("res"),a=o?(0,Sc._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,Sc._)`${s} !== parseInt(${s})`;e.fail$data((0,Sc._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};c0.default=JH});var UE=x(l0=>{"use strict";Object.defineProperty(l0,"__esModule",{value:!0});function BE(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}l0.default=BE;BE.code='require("ajv/dist/runtime/ucs2length").default'});var VE=x(u0=>{"use strict";Object.defineProperty(u0,"__esModule",{value:!0});var fo=ue(),QH=Pe(),ZH=UE(),eK={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,fo.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,fo._)`{limit: ${e}}`},tK={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:eK,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?fo.operators.GT:fo.operators.LT,s=i.opts.unicode===!1?(0,fo._)`${r}.length`:(0,fo._)`${(0,QH.useFunc)(e.gen,ZH.default)}(${r})`;e.fail$data((0,fo._)`${s} ${o} ${n}`)}};u0.default=tK});var zE=x(p0=>{"use strict";Object.defineProperty(p0,"__esModule",{value:!0});var rK=Or(),up=ue(),nK={message:({schemaCode:e})=>(0,up.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,up._)`{pattern: ${e}}`},iK={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:nK,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,s=o.opts.unicodeRegExp?"u":"",a=r?(0,up._)`(new RegExp(${i}, ${s}))`:(0,rK.usePattern)(e,n);e.fail$data((0,up._)`!${a}.test(${t})`)}};p0.default=iK});var HE=x(f0=>{"use strict";Object.defineProperty(f0,"__esModule",{value:!0});var _c=ue(),oK={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,_c.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,_c._)`{limit: ${e}}`},sK={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:oK,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?_c.operators.GT:_c.operators.LT;e.fail$data((0,_c._)`Object.keys(${r}).length ${i} ${n}`)}};f0.default=sK});var KE=x(d0=>{"use strict";Object.defineProperty(d0,"__esModule",{value:!0});var Oc=Or(),$c=ue(),aK=Pe(),cK={message:({params:{missingProperty:e}})=>(0,$c.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,$c._)`{missingProperty: ${e}}`},lK={keyword:"required",type:"object",schemaType:"array",$data:!0,error:cK,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:s}=e,{opts:a}=s;if(!o&&r.length===0)return;let c=r.length>=a.loopRequired;if(s.allErrors?l():u(),a.strictRequired){let d=e.parentSchema.properties,{definedProperties:f}=e.it;for(let h of r)if((d==null?void 0:d[h])===void 0&&!f.has(h)){let y=s.schemaEnv.baseId+s.errSchemaPath,b=`required property "${h}" is not defined at "${y}" (strictRequired)`;(0,aK.checkStrictMode)(s,b,s.opts.strictRequired)}}function l(){if(c||o)e.block$data($c.nil,p);else for(let d of r)(0,Oc.checkReportMissingProp)(e,d)}function u(){let d=t.let("missing");if(c||o){let f=t.let("valid",!0);e.block$data(f,()=>m(d,f)),e.ok(f)}else t.if((0,Oc.checkMissingProp)(e,r,d)),(0,Oc.reportMissingProp)(e,d),t.else()}function p(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,Oc.noPropertyInData)(t,i,d,a.ownProperties),()=>e.error())})}function m(d,f){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(f,(0,Oc.propertyInData)(t,i,d,a.ownProperties)),t.if((0,$c.not)(f),()=>{e.error(),t.break()})},$c.nil)}}};d0.default=lK});var GE=x(m0=>{"use strict";Object.defineProperty(m0,"__esModule",{value:!0});var Pc=ue(),uK={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Pc.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Pc._)`{limit: ${e}}`},pK={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:uK,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Pc.operators.GT:Pc.operators.LT;e.fail$data((0,Pc._)`${r}.length ${i} ${n}`)}};m0.default=pK});var pp=x(h0=>{"use strict";Object.defineProperty(h0,"__esModule",{value:!0});var YE=Na();YE.code='require("ajv/dist/runtime/equal").default';h0.default=YE});var WE=x(g0=>{"use strict";Object.defineProperty(g0,"__esModule",{value:!0});var y0=fc(),_t=ue(),fK=Pe(),dK=pp(),mK={message:({params:{i:e,j:t}})=>(0,_t.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,_t._)`{i: ${e}, j: ${t}}`},hK={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:mK,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:s,it:a}=e;if(!n&&!i)return;let c=t.let("valid"),l=o.items?(0,y0.getSchemaTypes)(o.items):[];e.block$data(c,u,(0,_t._)`${s} === false`),e.ok(c);function u(){let f=t.let("i",(0,_t._)`${r}.length`),h=t.let("j");e.setParams({i:f,j:h}),t.assign(c,!0),t.if((0,_t._)`${f} > 1`,()=>(p()?m:d)(f,h))}function p(){return l.length>0&&!l.some(f=>f==="object"||f==="array")}function m(f,h){let y=t.name("item"),b=(0,y0.checkDataTypes)(l,y,a.opts.strictNumbers,y0.DataType.Wrong),g=t.const("indices",(0,_t._)`{}`);t.for((0,_t._)`;${f}--;`,()=>{t.let(y,(0,_t._)`${r}[${f}]`),t.if(b,(0,_t._)`continue`),l.length>1&&t.if((0,_t._)`typeof ${y} == "string"`,(0,_t._)`${y} += "_"`),t.if((0,_t._)`typeof ${g}[${y}] == "number"`,()=>{t.assign(h,(0,_t._)`${g}[${y}]`),e.error(),t.assign(c,!1).break()}).code((0,_t._)`${g}[${y}] = ${f}`)})}function d(f,h){let y=(0,fK.useFunc)(t,dK.default),b=t.name("outer");t.label(b).for((0,_t._)`;${f}--;`,()=>t.for((0,_t._)`${h} = ${f}; ${h}--;`,()=>t.if((0,_t._)`${y}(${r}[${f}], ${r}[${h}])`,()=>{e.error(),t.assign(c,!1).break(b)})))}}};g0.default=hK});var XE=x(v0=>{"use strict";Object.defineProperty(v0,"__esModule",{value:!0});var b0=ue(),yK=Pe(),gK=pp(),bK={message:"must be equal to constant",params:({schemaCode:e})=>(0,b0._)`{allowedValue: ${e}}`},vK={keyword:"const",$data:!0,error:bK,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,b0._)`!${(0,yK.useFunc)(t,gK.default)}(${r}, ${i})`):e.fail((0,b0._)`${o} !== ${r}`)}};v0.default=vK});var JE=x(x0=>{"use strict";Object.defineProperty(x0,"__esModule",{value:!0});var Ec=ue(),xK=Pe(),wK=pp(),SK={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Ec._)`{allowedValues: ${e}}`},_K={keyword:"enum",schemaType:"array",$data:!0,error:SK,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:s}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let a=i.length>=s.opts.loopEnum,c,l=()=>c!=null?c:c=(0,xK.useFunc)(t,wK.default),u;if(a||n)u=t.let("valid"),e.block$data(u,p);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let d=t.const("vSchema",o);u=(0,Ec.or)(...i.map((f,h)=>m(d,h)))}e.pass(u);function p(){t.assign(u,!1),t.forOf("v",o,d=>t.if((0,Ec._)`${l()}(${r}, ${d})`,()=>t.assign(u,!0).break()))}function m(d,f){let h=i[f];return typeof h=="object"&&h!==null?(0,Ec._)`${l()}(${r}, ${d}[${f}])`:(0,Ec._)`${r} === ${h}`}}};x0.default=_K});var QE=x(w0=>{"use strict";Object.defineProperty(w0,"__esModule",{value:!0});var OK=DE(),$K=FE(),PK=VE(),EK=zE(),AK=HE(),CK=KE(),RK=GE(),TK=WE(),NK=XE(),IK=JE(),kK=[OK.default,$K.default,PK.default,EK.default,AK.default,CK.default,RK.default,TK.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},NK.default,IK.default];w0.default=kK});var _0=x(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});Ac.validateAdditionalItems=void 0;var mo=ue(),S0=Pe(),qK={message:({params:{len:e}})=>(0,mo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,mo._)`{limit: ${e}}`},jK={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:qK,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,S0.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}ZE(e,n)}};function ZE(e,t){let{gen:r,schema:n,data:i,keyword:o,it:s}=e;s.items=!0;let a=r.const("len",(0,mo._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,mo._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,S0.alwaysValidSchema)(s,n)){let l=r.var("valid",(0,mo._)`${a} <= ${t.length}`);r.if((0,mo.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,u=>{e.subschema({keyword:o,dataProp:u,dataPropType:S0.Type.Num},l),s.allErrors||r.if((0,mo.not)(l),()=>r.break())})}}Ac.validateAdditionalItems=ZE;Ac.default=jK});var O0=x(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.validateTuple=void 0;var eA=ue(),fp=Pe(),MK=Or(),LK={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return tA(e,"additionalItems",t);r.items=!0,!(0,fp.alwaysValidSchema)(r,t)&&e.ok((0,MK.validateArray)(e))}};function tA(e,t,r=e.schema){let{gen:n,parentSchema:i,data:o,keyword:s,it:a}=e;u(i),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=fp.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),l=n.const("len",(0,eA._)`${o}.length`);r.forEach((p,m)=>{(0,fp.alwaysValidSchema)(a,p)||(n.if((0,eA._)`${l} > ${m}`,()=>e.subschema({keyword:s,schemaProp:m,dataProp:m},c)),e.ok(c))});function u(p){let{opts:m,errSchemaPath:d}=a,f=r.length,h=f===p.minItems&&(f===p.maxItems||p[t]===!1);if(m.strictTuples&&!h){let y=`"${s}" is ${f}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,fp.checkStrictMode)(a,y,m.strictTuples)}}}Cc.validateTuple=tA;Cc.default=LK});var rA=x($0=>{"use strict";Object.defineProperty($0,"__esModule",{value:!0});var DK=O0(),FK={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,DK.validateTuple)(e,"items")};$0.default=FK});var iA=x(P0=>{"use strict";Object.defineProperty(P0,"__esModule",{value:!0});var nA=ue(),BK=Pe(),UK=Or(),VK=_0(),zK={message:({params:{len:e}})=>(0,nA.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,nA._)`{limit: ${e}}`},HK={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:zK,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,BK.alwaysValidSchema)(n,t)&&(i?(0,VK.validateAdditionalItems)(e,i):e.ok((0,UK.validateArray)(e)))}};P0.default=HK});var oA=x(E0=>{"use strict";Object.defineProperty(E0,"__esModule",{value:!0});var Pr=ue(),dp=Pe(),KK={message:({params:{min:e,max:t}})=>t===void 0?(0,Pr.str)`must contain at least ${e} valid item(s)`:(0,Pr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Pr._)`{minContains: ${e}}`:(0,Pr._)`{minContains: ${e}, maxContains: ${t}}`},GK={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:KK,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e,s,a,{minContains:c,maxContains:l}=n;o.opts.next?(s=c===void 0?1:c,a=l):s=1;let u=t.const("len",(0,Pr._)`${i}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,dp.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,dp.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,dp.alwaysValidSchema)(o,r)){let h=(0,Pr._)`${u} >= ${s}`;a!==void 0&&(h=(0,Pr._)`${h} && ${u} <= ${a}`),e.pass(h);return}o.items=!0;let p=t.name("valid");a===void 0&&s===1?d(p,()=>t.if(p,()=>t.break())):s===0?(t.let(p,!0),a!==void 0&&t.if((0,Pr._)`${i}.length > 0`,m)):(t.let(p,!1),m()),e.result(p,()=>e.reset());function m(){let h=t.name("_valid"),y=t.let("count",0);d(h,()=>t.if(h,()=>f(y)))}function d(h,y){t.forRange("i",0,u,b=>{e.subschema({keyword:"contains",dataProp:b,dataPropType:dp.Type.Num,compositeRule:!0},h),y()})}function f(h){t.code((0,Pr._)`${h}++`),a===void 0?t.if((0,Pr._)`${h} >= ${s}`,()=>t.assign(p,!0).break()):(t.if((0,Pr._)`${h} > ${a}`,()=>t.assign(p,!1).break()),s===1?t.assign(p,!0):t.if((0,Pr._)`${h} >= ${s}`,()=>t.assign(p,!0)))}}};E0.default=GK});var cA=x(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.validateSchemaDeps=on.validatePropertyDeps=on.error=void 0;var A0=ue(),YK=Pe(),Rc=Or();on.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,A0.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,A0._)`{property: ${e},
12
+ || ${s} === "boolean" || ${i} === null`).assign(a,(0,ce._)`[${i}]`)}}}function Tz({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,ce._)`${t} !== undefined`,()=>e.assign((0,ce._)`${t}[${r}]`,n))}function qg(e,t,r,n=vs.Correct){let i=n===vs.Correct?ce.operators.EQ:ce.operators.NEQ,o;switch(e){case"null":return(0,ce._)`${t} ${i} null`;case"array":o=(0,ce._)`Array.isArray(${t})`;break;case"object":o=(0,ce._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=s((0,ce._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=s();break;default:return(0,ce._)`typeof ${t} ${i} ${e}`}return n===vs.Correct?o:(0,ce.not)(o);function s(a=ce.nil){return(0,ce.and)((0,ce._)`typeof ${t} == "number"`,a,r?(0,ce._)`isFinite(${t})`:ce.nil)}}It.checkDataType=qg;function jg(e,t,r,n){if(e.length===1)return qg(e[0],t,r,n);let i,o=(0,EP.toHash)(e);if(o.array&&o.object){let s=(0,ce._)`typeof ${t} != "object"`;i=o.null?s:(0,ce._)`!${t} || ${s}`,delete o.null,delete o.array,delete o.object}else i=ce.nil;o.number&&delete o.integer;for(let s in o)i=(0,ce.and)(i,qg(s,t,r,n));return i}It.checkDataTypes=jg;var Nz={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,ce._)`{type: ${e}}`:(0,ce._)`{type: ${t}}`};function Mg(e){let t=Iz(e);(0,Pz.reportError)(t,Nz)}It.reportTypeError=Mg;function Iz(e){let{gen:t,data:r,schema:n}=e,i=(0,EP.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}});var TP=x(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.assignDefaults=void 0;var xs=pe(),kz=Pe();function qz(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)RP(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>RP(e,o,i.default))}Xu.assignDefaults=qz;function RP(e,t,r){let{gen:n,compositeRule:i,data:o,opts:s}=e;if(r===void 0)return;let a=(0,xs._)`${o}${(0,xs.getProperty)(t)}`;if(i){(0,kz.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,xs._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,xs._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,xs._)`${a} = ${(0,xs.stringify)(r)}`)}});var Or=x(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.validateUnion=Te.validateArray=Te.usePattern=Te.callValidateCode=Te.schemaProperties=Te.allSchemaProperties=Te.noPropertyInData=Te.propertyInData=Te.isOwnProperty=Te.hasPropFunc=Te.reportMissingProp=Te.checkMissingProp=Te.checkReportMissingProp=void 0;var Fe=pe(),Lg=Pe(),si=Cn(),jz=Pe();function Mz(e,t){let{gen:r,data:n,it:i}=e;r.if(Fg(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Fe._)`${t}`},!0),e.error()})}Te.checkReportMissingProp=Mz;function Lz({gen:e,data:t,it:{opts:r}},n,i){return(0,Fe.or)(...n.map(o=>(0,Fe.and)(Fg(e,t,o,r.ownProperties),(0,Fe._)`${i} = ${o}`)))}Te.checkMissingProp=Lz;function Dz(e,t){e.setParams({missingProperty:t},!0),e.error()}Te.reportMissingProp=Dz;function NP(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Fe._)`Object.prototype.hasOwnProperty`})}Te.hasPropFunc=NP;function Dg(e,t,r){return(0,Fe._)`${NP(e)}.call(${t}, ${r})`}Te.isOwnProperty=Dg;function Fz(e,t,r,n){let i=(0,Fe._)`${t}${(0,Fe.getProperty)(r)} !== undefined`;return n?(0,Fe._)`${i} && ${Dg(e,t,r)}`:i}Te.propertyInData=Fz;function Fg(e,t,r,n){let i=(0,Fe._)`${t}${(0,Fe.getProperty)(r)} === undefined`;return n?(0,Fe.or)(i,(0,Fe.not)(Dg(e,t,r))):i}Te.noPropertyInData=Fg;function IP(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Te.allSchemaProperties=IP;function Bz(e,t){return IP(t).filter(r=>!(0,Lg.alwaysValidSchema)(e,t[r]))}Te.schemaProperties=Bz;function Uz({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:s},a,c,l){let u=l?(0,Fe._)`${e}, ${t}, ${n}${i}`:t,p=[[si.default.instancePath,(0,Fe.strConcat)(si.default.instancePath,o)],[si.default.parentData,s.parentData],[si.default.parentDataProperty,s.parentDataProperty],[si.default.rootData,si.default.rootData]];s.opts.dynamicRef&&p.push([si.default.dynamicAnchors,si.default.dynamicAnchors]);let m=(0,Fe._)`${u}, ${r.object(...p)}`;return c!==Fe.nil?(0,Fe._)`${a}.call(${c}, ${m})`:(0,Fe._)`${a}(${m})`}Te.callValidateCode=Uz;var Vz=(0,Fe._)`new RegExp`;function zz({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,Fe._)`${i.code==="new RegExp"?Vz:(0,jz.useFunc)(e,i)}(${r}, ${n})`})}Te.usePattern=zz;function Hz(e){let{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){let a=t.let("valid",!0);return s(()=>t.assign(a,!1)),a}return t.var(o,!0),s(()=>t.break()),o;function s(a){let c=t.const("len",(0,Fe._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Lg.Type.Num},o),t.if((0,Fe.not)(o),a)})}}Te.validateArray=Hz;function Kz(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,Lg.alwaysValidSchema)(i,c))&&!i.opts.unevaluated)return;let s=t.let("valid",!1),a=t.name("_valid");t.block(()=>r.forEach((c,l)=>{let u=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},a);t.assign(s,(0,Fe._)`${s} || ${a}`),e.mergeValidEvaluated(u,a)||t.if((0,Fe.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}Te.validateUnion=Kz});var jP=x(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.validateKeywordUsage=rn.validSchemaType=rn.funcKeywordCode=rn.macroKeywordCode=void 0;var zt=pe(),lo=Cn(),Gz=Or(),Yz=pc();function Wz(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:s}=e,a=t.macro.call(s.self,i,o,s),c=qP(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let l=r.name("valid");e.subschema({schema:a,schemaPath:zt.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}rn.macroKeywordCode=Wz;function Xz(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:s,$data:a,it:c}=e;Qz(c,t);let l=!a&&t.compile?t.compile.call(c.self,o,s,c):t.validate,u=qP(n,i,l),p=n.let("valid");e.block$data(p,m),e.ok((r=t.valid)!==null&&r!==void 0?r:p);function m(){if(t.errors===!1)h(),t.modifying&&kP(e),y(()=>e.error());else{let b=t.async?d():f();t.modifying&&kP(e),y(()=>Jz(e,b))}}function d(){let b=n.let("ruleErrs",null);return n.try(()=>h((0,zt._)`await `),g=>n.assign(p,!1).if((0,zt._)`${g} instanceof ${c.ValidationError}`,()=>n.assign(b,(0,zt._)`${g}.errors`),()=>n.throw(g))),b}function f(){let b=(0,zt._)`${u}.errors`;return n.assign(b,null),h(zt.nil),b}function h(b=t.async?(0,zt._)`await `:zt.nil){let g=c.opts.passContext?lo.default.this:lo.default.self,v=!("compile"in t&&!a||t.schema===!1);n.assign(p,(0,zt._)`${b}${(0,Gz.callValidateCode)(e,u,g,v)}`,t.modifying)}function y(b){var g;n.if((0,zt.not)((g=t.valid)!==null&&g!==void 0?g:p),b)}}rn.funcKeywordCode=Xz;function kP(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,zt._)`${n.parentData}[${n.parentDataProperty}]`))}function Jz(e,t){let{gen:r}=e;r.if((0,zt._)`Array.isArray(${t})`,()=>{r.assign(lo.default.vErrors,(0,zt._)`${lo.default.vErrors} === null ? ${t} : ${lo.default.vErrors}.concat(${t})`).assign(lo.default.errors,(0,zt._)`${lo.default.vErrors}.length`),(0,Yz.extendErrors)(e)},()=>e.error())}function Qz({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function qP(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,zt.stringify)(r)})}function Zz(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}rn.validSchemaType=Zz;function e7({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");let s=i.dependencies;if(s!=null&&s.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){let c=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}rn.validateKeywordUsage=e7});var LP=x(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.extendSubschemaMode=ai.extendSubschemaData=ai.getSubschema=void 0;var nn=pe(),MP=Pe();function t7(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:s}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,nn._)`${e.schemaPath}${(0,nn.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,nn._)`${e.schemaPath}${(0,nn.getProperty)(t)}${(0,nn.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,MP.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:s,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}ai.getSubschema=t7;function r7(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:s}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=t;if(r!==void 0){let{errorPath:l,dataPathArr:u,opts:p}=t,m=a.let("data",(0,nn._)`${t.data}${(0,nn.getProperty)(r)}`,!0);c(m),e.errorPath=(0,nn.str)`${l}${(0,MP.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,nn._)`${r}`,e.dataPathArr=[...u,e.parentDataProperty]}if(i!==void 0){let l=i instanceof nn.Name?i:a.let("data",i,!0);c(l),s!==void 0&&(e.propertyName=s)}o&&(e.dataTypes=o);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}ai.extendSubschemaData=r7;function n7(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}ai.extendSubschemaMode=n7});var dc=x(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.getSchemaRefs=nr.resolveUrl=nr.normalizeId=nr._getFullPath=nr.getFullPath=nr.inlineRef=void 0;var i7=Pe(),o7=Na(),s7=uh(),a7=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function c7(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Bg(e):t?DP(e)<=t:!1}nr.inlineRef=c7;var l7=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Bg(e){for(let t in e){if(l7.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Bg)||typeof r=="object"&&Bg(r))return!0}return!1}function DP(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!a7.has(r)&&(typeof e[r]=="object"&&(0,i7.eachItem)(e[r],n=>t+=DP(n)),t===1/0))return 1/0}return t}function FP(e,t="",r){r!==!1&&(t=ws(t));let n=e.parse(t);return BP(e,n)}nr.getFullPath=FP;function BP(e,t){return e.serialize(t).split("#")[0]+"#"}nr._getFullPath=BP;var u7=/#\/?$/;function ws(e){return e?e.replace(u7,""):""}nr.normalizeId=ws;function p7(e,t,r){return r=ws(r),e.resolve(t,r)}nr.resolveUrl=p7;var f7=/^[a-z_][-a-z0-9._]*$/i;function d7(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=ws(e[r]||t),o={"":i},s=FP(n,i,!1),a={},c=new Set;return s7(e,{allKeys:!0},(p,m,d,f)=>{if(f===void 0)return;let h=s+m,y=o[f];typeof p[r]=="string"&&(y=b.call(this,p[r])),g.call(this,p.$anchor),g.call(this,p.$dynamicAnchor),o[m]=y;function b(v){let _=this.opts.uriResolver.resolve;if(v=ws(y?_(y,v):v),c.has(v))throw u(v);c.add(v);let w=this.refs[v];return typeof w=="string"&&(w=this.refs[w]),typeof w=="object"?l(p,w.schema,v):v!==ws(h)&&(v[0]==="#"?(l(p,a[v],v),a[v]=p):this.refs[v]=h),v}function g(v){if(typeof v=="string"){if(!f7.test(v))throw new Error(`invalid anchor "${v}"`);b.call(this,`#${v}`)}}}),a;function l(p,m,d){if(m!==void 0&&!o7(p,m))throw u(d)}function u(p){return new Error(`reference "${p}" resolves to more than one schema`)}}nr.getSchemaRefs=d7});var yc=x(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.getData=ci.KeywordCxt=ci.validateFunctionCode=void 0;var KP=OP(),UP=fc(),Vg=kg(),Ju=fc(),m7=TP(),hc=jP(),Ug=LP(),J=pe(),te=Cn(),h7=dc(),Rn=Pe(),mc=pc();function y7(e){if(WP(e)&&(XP(e),YP(e))){v7(e);return}GP(e,()=>(0,KP.topBoolOrEmptySchema)(e))}ci.validateFunctionCode=y7;function GP({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,J._)`${te.default.data}, ${te.default.valCxt}`,n.$async,()=>{e.code((0,J._)`"use strict"; ${VP(r,i)}`),b7(e,i),e.code(o)}):e.func(t,(0,J._)`${te.default.data}, ${g7(i)}`,n.$async,()=>e.code(VP(r,i)).code(o))}function g7(e){return(0,J._)`{${te.default.instancePath}="", ${te.default.parentData}, ${te.default.parentDataProperty}, ${te.default.rootData}=${te.default.data}${e.dynamicRef?(0,J._)`, ${te.default.dynamicAnchors}={}`:J.nil}}={}`}function b7(e,t){e.if(te.default.valCxt,()=>{e.var(te.default.instancePath,(0,J._)`${te.default.valCxt}.${te.default.instancePath}`),e.var(te.default.parentData,(0,J._)`${te.default.valCxt}.${te.default.parentData}`),e.var(te.default.parentDataProperty,(0,J._)`${te.default.valCxt}.${te.default.parentDataProperty}`),e.var(te.default.rootData,(0,J._)`${te.default.valCxt}.${te.default.rootData}`),t.dynamicRef&&e.var(te.default.dynamicAnchors,(0,J._)`${te.default.valCxt}.${te.default.dynamicAnchors}`)},()=>{e.var(te.default.instancePath,(0,J._)`""`),e.var(te.default.parentData,(0,J._)`undefined`),e.var(te.default.parentDataProperty,(0,J._)`undefined`),e.var(te.default.rootData,te.default.data),t.dynamicRef&&e.var(te.default.dynamicAnchors,(0,J._)`{}`)})}function v7(e){let{schema:t,opts:r,gen:n}=e;GP(e,()=>{r.$comment&&t.$comment&&QP(e),O7(e),n.let(te.default.vErrors,null),n.let(te.default.errors,0),r.unevaluated&&x7(e),JP(e),E7(e)})}function x7(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,J._)`${r}.evaluated`),t.if((0,J._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,J._)`${e.evaluated}.props`,(0,J._)`undefined`)),t.if((0,J._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,J._)`${e.evaluated}.items`,(0,J._)`undefined`))}function VP(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,J._)`/*# sourceURL=${r} */`:J.nil}function w7(e,t){if(WP(e)&&(XP(e),YP(e))){S7(e,t);return}(0,KP.boolOrEmptySchema)(e,t)}function YP({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function WP(e){return typeof e.schema!="boolean"}function S7(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&QP(e),$7(e),P7(e);let o=n.const("_errs",te.default.errors);JP(e,o),n.var(t,(0,J._)`${o} === ${te.default.errors}`)}function XP(e){(0,Rn.checkUnknownRules)(e),_7(e)}function JP(e,t){if(e.opts.jtd)return zP(e,[],!1,t);let r=(0,UP.getSchemaTypes)(e.schema),n=(0,UP.coerceAndCheckDataType)(e,r);zP(e,r,!n,t)}function _7(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Rn.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function O7(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Rn.checkStrictMode)(e,"default is ignored in the schema root")}function $7(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,h7.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function P7(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function QP({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,J._)`${te.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let s=(0,J.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,J._)`${te.default.self}.opts.$comment(${o}, ${s}, ${a}.schema)`)}}function E7(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,J._)`${te.default.errors} === 0`,()=>t.return(te.default.data),()=>t.throw((0,J._)`new ${i}(${te.default.vErrors})`)):(t.assign((0,J._)`${n}.errors`,te.default.vErrors),o.unevaluated&&A7(e),t.return((0,J._)`${te.default.errors} === 0`))}function A7({gen:e,evaluated:t,props:r,items:n}){r instanceof J.Name&&e.assign((0,J._)`${t}.props`,r),n instanceof J.Name&&e.assign((0,J._)`${t}.items`,n)}function zP(e,t,r,n){let{gen:i,schema:o,data:s,allErrors:a,opts:c,self:l}=e,{RULES:u}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,Rn.schemaHasRulesButRef)(o,u))){i.block(()=>eE(e,"$ref",u.all.$ref.definition));return}c.jtd||C7(e,t),i.block(()=>{for(let m of u.rules)p(m);p(u.post)});function p(m){(0,Vg.shouldUseGroup)(o,m)&&(m.type?(i.if((0,Ju.checkDataType)(m.type,s,c.strictNumbers)),HP(e,m),t.length===1&&t[0]===m.type&&r&&(i.else(),(0,Ju.reportTypeError)(e)),i.endIf()):HP(e,m),a||i.if((0,J._)`${te.default.errors} === ${n||0}`))}}function HP(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,m7.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,Vg.shouldUseRule)(n,o)&&eE(e,o.keyword,o.definition,t.type)})}function C7(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(R7(e,t),e.opts.allowUnionTypes||T7(e,t),N7(e,e.dataTypes))}function R7(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{ZP(e.dataTypes,r)||zg(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),k7(e,t)}}function T7(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&zg(e,"use allowUnionTypes to allow union type keyword")}function N7(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Vg.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(s=>I7(t,s))&&zg(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function I7(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function ZP(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function k7(e,t){let r=[];for(let n of e.dataTypes)ZP(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function zg(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Rn.checkStrictMode)(e,t,e.opts.strictTypes)}var Qu=class{constructor(t,r,n){if((0,hc.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Rn.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",tE(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,hc.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",te.default.errors))}result(t,r,n){this.failResult((0,J.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,J.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,J._)`${r} !== undefined && (${(0,J.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?mc.reportExtraError:mc.reportError)(this,this.def.error,r)}$dataError(){(0,mc.reportError)(this,this.def.$dataError||mc.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,mc.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=J.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=J.nil,r=J.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:s}=this;n.if((0,J.or)((0,J._)`${i} === undefined`,r)),t!==J.nil&&n.assign(t,!0),(o.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==J.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,J.or)(s(),a());function s(){if(n.length){if(!(r instanceof J.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,J._)`${(0,Ju.checkDataTypes)(c,r,o.opts.strictNumbers,Ju.DataType.Wrong)}`}return J.nil}function a(){if(i.validateSchema){let c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,J._)`!${c}(${r})`}return J.nil}}subschema(t,r){let n=(0,Ug.getSubschema)(this.it,t);(0,Ug.extendSubschemaData)(n,this.it,t),(0,Ug.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return w7(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Rn.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Rn.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,J.Name)),!0}};ci.KeywordCxt=Qu;function eE(e,t,r,n){let i=new Qu(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,hc.funcKeywordCode)(i,r):"macro"in r?(0,hc.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,hc.funcKeywordCode)(i,r)}var q7=/^\/(?:[^~]|~0|~1)*$/,j7=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function tE(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return te.default.rootData;if(e[0]==="/"){if(!q7.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=te.default.rootData}else{let l=j7.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let u=+l[1];if(i=l[2],i==="#"){if(u>=t)throw new Error(c("property/index",u));return n[t-u]}if(u>t)throw new Error(c("data",u));if(o=r[t-u],!i)return o}let s=o,a=i.split("/");for(let l of a)l&&(o=(0,J._)`${o}${(0,J.getProperty)((0,Rn.unescapeJsonPointer)(l))}`,s=(0,J._)`${s} && ${o}`);return s;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${t}`}}ci.getData=tE});var Zu=x(Kg=>{"use strict";Object.defineProperty(Kg,"__esModule",{value:!0});var Hg=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};Kg.default=Hg});var gc=x(Wg=>{"use strict";Object.defineProperty(Wg,"__esModule",{value:!0});var Gg=dc(),Yg=class extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Gg.resolveUrl)(t,r,n),this.missingSchema=(0,Gg.normalizeId)((0,Gg.getFullPath)(t,this.missingRef))}};Wg.default=Yg});var tp=x($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.resolveSchema=$r.getCompilingSchema=$r.resolveRef=$r.compileSchema=$r.SchemaEnv=void 0;var Fr=pe(),M7=Zu(),uo=Cn(),Br=dc(),rE=Pe(),L7=yc(),Ss=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,Br.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};$r.SchemaEnv=Ss;function Jg(e){let t=nE.call(this,e);if(t)return t;let r=(0,Br.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,s=new Fr.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),a;e.$async&&(a=s.scopeValue("Error",{ref:M7.default,code:(0,Fr._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let l={gen:s,allErrors:this.opts.allErrors,data:uo.default.data,parentData:uo.default.parentData,parentDataProperty:uo.default.parentDataProperty,dataNames:[uo.default.data],dataPathArr:[Fr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Fr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Fr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Fr._)`""`,opts:this.opts,self:this},u;try{this._compilations.add(e),(0,L7.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);let p=s.toString();u=`${s.scopeRefs(uo.default.scope)}return ${p}`,this.opts.code.process&&(u=this.opts.code.process(u,e));let d=new Function(`${uo.default.self}`,`${uo.default.scope}`,u)(this,this.scope.get());if(this.scope.value(c,{ref:d}),d.errors=null,d.schema=e.schema,d.schemaEnv=e,e.$async&&(d.$async=!0),this.opts.code.source===!0&&(d.source={validateName:c,validateCode:p,scopeValues:s._values}),this.opts.unevaluated){let{props:f,items:h}=l;d.evaluated={props:f instanceof Fr.Name?void 0:f,items:h instanceof Fr.Name?void 0:h,dynamicProps:f instanceof Fr.Name,dynamicItems:h instanceof Fr.Name},d.source&&(d.source.evaluated=(0,Fr.stringify)(d.evaluated))}return e.validate=d,e}catch(p){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),p}finally{this._compilations.delete(e)}}$r.compileSchema=Jg;function D7(e,t,r){var n;r=(0,Br.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let o=U7.call(this,e,r);if(o===void 0){let s=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;s&&(o=new Ss({schema:s,schemaId:a,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=F7.call(this,o)}$r.resolveRef=D7;function F7(e){return(0,Br.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Jg.call(this,e)}function nE(e){for(let t of this._compilations)if(B7(t,e))return t}$r.getCompilingSchema=nE;function B7(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function U7(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||ep.call(this,e,t)}function ep(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Br._getFullPath)(this.opts.uriResolver,r),i=(0,Br.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return Xg.call(this,r,e);let o=(0,Br.normalizeId)(n),s=this.refs[o]||this.schemas[o];if(typeof s=="string"){let a=ep.call(this,e,s);return typeof(a==null?void 0:a.schema)!="object"?void 0:Xg.call(this,r,a)}if(typeof(s==null?void 0:s.schema)=="object"){if(s.validate||Jg.call(this,s),o===(0,Br.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(i=(0,Br.resolveUrl)(this.opts.uriResolver,i,l)),new Ss({schema:a,schemaId:c,root:e,baseId:i})}return Xg.call(this,r,s)}}$r.resolveSchema=ep;var V7=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Xg(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,rE.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!V7.has(a)&&l&&(t=(0,Br.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,rE.schemaHasRulesButRef)(r,this.RULES)){let a=(0,Br.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=ep.call(this,n,a)}let{schemaId:s}=this.opts;if(o=o||new Ss({schema:r,schemaId:s,root:n,baseId:t}),o.schema!==o.root.schema)return o}});var iE=x((Gae,z7)=>{z7.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var sE=x((Yae,oE)=>{"use strict";var H7={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};oE.exports={HEX:H7}});var mE=x((Wae,dE)=>{"use strict";var{HEX:K7}=sE(),G7=/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;function uE(e){if(fE(e,".")<3)return{host:e,isIPV4:!1};let t=e.match(G7)||[],[r]=t;return r?{host:W7(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}function Qg(e,t=!1){let r="",n=!0;for(let i of e){if(K7[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}function Y7(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],o=!1,s=!1,a=!1;function c(){if(i.length){if(o===!1){let l=Qg(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}for(let l=0;l<e.length;l++){let u=e[l];if(!(u==="["||u==="]"))if(u===":"){if(s===!0&&(a=!0),!c())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(s=!0);continue}else if(u==="%"){if(!c())break;o=!0}else{i.push(u);continue}}return i.length&&(o?r.zone=i.join(""):a?n.push(i.join("")):n.push(Qg(i))),r.address=n.join(""),r}function pE(e){if(fE(e,":")<2)return{host:e,isIPV6:!1};let t=Y7(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,n=t.address;return t.zone&&(r+="%"+t.zone,n+="%25"+t.zone),{host:r,escapedHost:n,isIPV6:!0}}}function W7(e,t){let r="",n=!0,i=e.length;for(let o=0;o<i;o++){let s=e[o];s==="0"&&n?(o+1<=i&&e[o+1]===t||o+1===i)&&(r+=s,n=!1):(s===t?n=!0:n=!1,r+=s)}return r}function fE(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}var aE=/^\.\.?\//u,cE=/^\/\.(?:\/|$)/u,lE=/^\/\.\.(?:\/|$)/u,X7=/^\/?(?:.|\n)*?(?=\/|$)/u;function J7(e){let t=[];for(;e.length;)if(e.match(aE))e=e.replace(aE,"");else if(e.match(cE))e=e.replace(cE,"/");else if(e.match(lE))e=e.replace(lE,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(X7);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}function Q7(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}function Z7(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host),n=uE(r);if(n.isIPV4)r=n.host;else{let i=pE(n.host);i.isIPV6===!0?r=`[${i.escapedHost}]`:r=e.host}t.push(r)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}dE.exports={recomposeAuthority:Z7,normalizeComponentEncoding:Q7,removeDotSegments:J7,normalizeIPv4:uE,normalizeIPv6:pE,stringArrayToHexStripped:Qg}});var xE=x((Xae,vE)=>{"use strict";var eH=/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu,tH=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function hE(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}function yE(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function gE(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function rH(e){return e.secure=hE(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function nH(e){if((e.port===(hE(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function iH(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(tH);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,o=Zg[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function oH(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,o=Zg[i];o&&(e=o.serialize(e,t));let s=e,a=e.nss;return s.path=`${n||t.nid}:${a}`,t.skipEscape=!0,s}function sH(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!eH.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function aH(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var bE={scheme:"http",domainHost:!0,parse:yE,serialize:gE},cH={scheme:"https",domainHost:bE.domainHost,parse:yE,serialize:gE},rp={scheme:"ws",domainHost:!0,parse:rH,serialize:nH},lH={scheme:"wss",domainHost:rp.domainHost,parse:rp.parse,serialize:rp.serialize},uH={scheme:"urn",parse:iH,serialize:oH,skipNormalize:!0},pH={scheme:"urn:uuid",parse:sH,serialize:aH,skipNormalize:!0},Zg={http:bE,https:cH,ws:rp,wss:lH,urn:uH,"urn:uuid":pH};vE.exports=Zg});var SE=x((Jae,ip)=>{"use strict";var{normalizeIPv6:fH,normalizeIPv4:dH,removeDotSegments:bc,recomposeAuthority:mH,normalizeComponentEncoding:np}=mE(),e0=xE();function hH(e,t){return typeof e=="string"?e=on(Tn(e,t),t):typeof e=="object"&&(e=Tn(on(e,t),t)),e}function yH(e,t,r){let n=Object.assign({scheme:"null"},r),i=wE(Tn(e,n),Tn(t,n),n,!0);return on(i,{...n,skipEscape:!0})}function wE(e,t,r,n){let i={};return n||(e=Tn(on(e,r),r),t=Tn(on(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=bc(t.path||""),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=bc(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=bc(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path,i.path=bc(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}function gH(e,t,r){return typeof e=="string"?(e=unescape(e),e=on(np(Tn(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=on(np(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=on(np(Tn(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=on(np(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function on(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],o=e0[(n.scheme||r.scheme||"").toLowerCase()];o&&o.serialize&&o.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&i.push(r.scheme,":");let s=mH(r);if(s!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(s),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let a=r.path;!n.absolutePath&&(!o||!o.absolutePath)&&(a=bc(a)),s===void 0&&(a=a.replace(/^\/\//u,"/%2F")),i.push(a)}return r.query!==void 0&&i.push("?",r.query),r.fragment!==void 0&&i.push("#",r.fragment),i.join("")}var bH=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function vH(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||bH[t])return!0;return!1}var xH=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Tn(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,o=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let s=e.match(xH);if(s){if(n.scheme=s[1],n.userinfo=s[3],n.host=s[4],n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=s[7],n.fragment=s[8],isNaN(n.port)&&(n.port=s[5]),n.host){let c=dH(n.host);if(c.isIPV4===!1){let l=fH(c.host);n.host=l.host.toLowerCase(),o=l.isIPV6}else n.host=c.host,o=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let a=e0[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!a||!a.unicodeSupport)&&n.host&&(r.domainHost||a&&a.domainHost)&&o===!1&&vH(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(c){n.error=n.error||"Host's domain name can not be converted to ASCII: "+c}(!a||a&&!a.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path&&(n.path=escape(unescape(n.path))),n.fragment&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),a&&a.parse&&a.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}var t0={SCHEMES:e0,normalize:hH,resolve:yH,resolveComponents:wE,equal:gH,serialize:on,parse:Tn};ip.exports=t0;ip.exports.default=t0;ip.exports.fastUri=t0});var OE=x(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});var _E=SE();_E.code='require("ajv/dist/runtime/uri").default';r0.default=_E});var NE=x(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.CodeGen=St.Name=St.nil=St.stringify=St.str=St._=St.KeywordCxt=void 0;var wH=yc();Object.defineProperty(St,"KeywordCxt",{enumerable:!0,get:function(){return wH.KeywordCxt}});var _s=pe();Object.defineProperty(St,"_",{enumerable:!0,get:function(){return _s._}});Object.defineProperty(St,"str",{enumerable:!0,get:function(){return _s.str}});Object.defineProperty(St,"stringify",{enumerable:!0,get:function(){return _s.stringify}});Object.defineProperty(St,"nil",{enumerable:!0,get:function(){return _s.nil}});Object.defineProperty(St,"Name",{enumerable:!0,get:function(){return _s.Name}});Object.defineProperty(St,"CodeGen",{enumerable:!0,get:function(){return _s.CodeGen}});var SH=Zu(),CE=gc(),_H=Ig(),vc=tp(),OH=pe(),xc=dc(),op=fc(),i0=Pe(),$E=iE(),$H=OE(),RE=(e,t)=>new RegExp(e,t);RE.code="new RegExp";var PH=["removeAdditional","useDefaults","coerceTypes"],EH=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),AH={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},CH={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},PE=200;function RH(e){var t,r,n,i,o,s,a,c,l,u,p,m,d,f,h,y,b,g,v,_,w,N,S,O,P;let E=e.strict,R=(t=e.code)===null||t===void 0?void 0:t.optimize,A=R===!0||R===void 0?1:R||0,I=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:RE,C=(i=e.uriResolver)!==null&&i!==void 0?i:$H.default;return{strictSchema:(s=(o=e.strictSchema)!==null&&o!==void 0?o:E)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:E)!==null&&c!==void 0?c:!0,strictTypes:(u=(l=e.strictTypes)!==null&&l!==void 0?l:E)!==null&&u!==void 0?u:"log",strictTuples:(m=(p=e.strictTuples)!==null&&p!==void 0?p:E)!==null&&m!==void 0?m:"log",strictRequired:(f=(d=e.strictRequired)!==null&&d!==void 0?d:E)!==null&&f!==void 0?f:!1,code:e.code?{...e.code,optimize:A,regExp:I}:{optimize:A,regExp:I},loopRequired:(h=e.loopRequired)!==null&&h!==void 0?h:PE,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:PE,meta:(b=e.meta)!==null&&b!==void 0?b:!0,messages:(g=e.messages)!==null&&g!==void 0?g:!0,inlineRefs:(v=e.inlineRefs)!==null&&v!==void 0?v:!0,schemaId:(_=e.schemaId)!==null&&_!==void 0?_:"$id",addUsedSchema:(w=e.addUsedSchema)!==null&&w!==void 0?w:!0,validateSchema:(N=e.validateSchema)!==null&&N!==void 0?N:!0,validateFormats:(S=e.validateFormats)!==null&&S!==void 0?S:!0,unicodeRegExp:(O=e.unicodeRegExp)!==null&&O!==void 0?O:!0,int32range:(P=e.int32range)!==null&&P!==void 0?P:!0,uriResolver:C}}var wc=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...RH(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new OH.ValueScope({scope:{},prefixes:EH,es5:r,lines:n}),this.logger=jH(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,_H.getRules)(),EE.call(this,AH,t,"NOT SUPPORTED"),EE.call(this,CH,t,"DEPRECATED","warn"),this._metaOpts=kH.call(this),t.formats&&NH.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&IH.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),TH.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=$E;n==="id"&&(i={...$E},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(u,p){await o.call(this,u.$schema);let m=this._addSchema(u,p);return m.validate||s.call(this,m)}async function o(u){u&&!this.getSchema(u)&&await i.call(this,{$ref:u},!0)}async function s(u){try{return this._compileSchemaEnv(u)}catch(p){if(!(p instanceof CE.default))throw p;return a.call(this,p),await c.call(this,p.missingSchema),s.call(this,u)}}function a({missingSchema:u,missingRef:p}){if(this.refs[u])throw new Error(`AnySchema ${u} is loaded but ${p} cannot be resolved`)}async function c(u){let p=await l.call(this,u);this.refs[u]||await o.call(this,p.$schema),this.refs[u]||this.addSchema(p,u,r)}async function l(u){let p=this._loading[u];if(p)return p;try{return await(this._loading[u]=n(u))}finally{delete this._loading[u]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let s of t)this.addSchema(s,void 0,n,i);return this}let o;if(typeof t=="object"){let{schemaId:s}=this.opts;if(o=t[s],o!==void 0&&typeof o!="string")throw new Error(`schema ${s} must be string`)}return r=(0,xc.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(t){let r;for(;typeof(r=AE.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new vc.SchemaEnv({schema:{},schemaId:n});if(r=vc.resolveSchema.call(this,i,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=AE.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,xc.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(LH.call(this,n,r),!r)return(0,i0.eachItem)(n,o=>n0.call(this,o)),this;FH.call(this,r);let i={...r,type:(0,op.getJSONTypes)(r.type),schemaType:(0,op.getJSONTypes)(r.schemaType)};return(0,i0.eachItem)(n,i.type.length===0?o=>n0.call(this,o,i):o=>i.type.forEach(s=>n0.call(this,o,i,s))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(o=>o.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,o)=>i+r+o)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let o=i.split("/").slice(1),s=t;for(let a of o)s=s[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:l}=c.definition,u=s[a];l&&u&&(s[a]=TE(u))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,o=this.opts.addUsedSchema){let s,{schemaId:a}=this.opts;if(typeof t=="object")s=t[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,xc.normalizeId)(s||n);let l=xc.getSchemaRefs.call(this,t,n);return c=new vc.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),i&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):vc.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{vc.compileSchema.call(this,t)}finally{this.opts=r}}};wc.ValidationError=SH.default;wc.MissingRefError=CE.default;St.default=wc;function EE(e,t,r,n="error"){for(let i in e){let o=i;o in t&&this.logger[n](`${r}: option ${i}. ${e[o]}`)}}function AE(e){return e=(0,xc.normalizeId)(e),this.schemas[e]||this.refs[e]}function TH(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function NH(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function IH(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function kH(){let e={...this.opts};for(let t of PH)delete e[t];return e}var qH={log(){},warn(){},error(){}};function jH(e){if(e===!1)return qH;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var MH=/^[a-z_$][a-z0-9_$:-]*$/i;function LH(e,t){let{RULES:r}=this;if((0,i0.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!MH.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function n0(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,s=i?o.post:o.rules.find(({type:c})=>c===r);if(s||(s={type:r,rules:[]},o.rules.push(s)),o.keywords[e]=!0,!t)return;let a={keyword:e,definition:{...t,type:(0,op.getJSONTypes)(t.type),schemaType:(0,op.getJSONTypes)(t.schemaType)}};t.before?DH.call(this,s,a,t.before):s.rules.push(a),o.all[e]=a,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function DH(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function FH(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=TE(t)),e.validateSchema=this.compile(t,!0))}var BH={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function TE(e){return{anyOf:[e,BH]}}});var IE=x(o0=>{"use strict";Object.defineProperty(o0,"__esModule",{value:!0});var UH={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};o0.default=UH});var ME=x(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.callRef=po.getValidate=void 0;var VH=gc(),kE=Or(),ir=pe(),Os=Cn(),qE=tp(),sp=Pe(),zH={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:s,opts:a,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return p();let u=qE.resolveRef.call(c,l,i,r);if(u===void 0)throw new VH.default(n.opts.uriResolver,i,r);if(u instanceof qE.SchemaEnv)return m(u);return d(u);function p(){if(o===l)return ap(e,s,o,o.$async);let f=t.scopeValue("root",{ref:l});return ap(e,(0,ir._)`${f}.validate`,l,l.$async)}function m(f){let h=jE(e,f);ap(e,h,f,f.$async)}function d(f){let h=t.scopeValue("schema",a.code.source===!0?{ref:f,code:(0,ir.stringify)(f)}:{ref:f}),y=t.name("valid"),b=e.subschema({schema:f,dataTypes:[],schemaPath:ir.nil,topSchemaRef:h,errSchemaPath:r},y);e.mergeEvaluated(b),e.ok(y)}}};function jE(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,ir._)`${r.scopeValue("wrapper",{ref:t})}.validate`}po.getValidate=jE;function ap(e,t,r,n){let{gen:i,it:o}=e,{allErrors:s,schemaEnv:a,opts:c}=o,l=c.passContext?Os.default.this:ir.nil;n?u():p();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");let f=i.let("valid");i.try(()=>{i.code((0,ir._)`await ${(0,kE.callValidateCode)(e,t,l)}`),d(t),s||i.assign(f,!0)},h=>{i.if((0,ir._)`!(${h} instanceof ${o.ValidationError})`,()=>i.throw(h)),m(h),s||i.assign(f,!1)}),e.ok(f)}function p(){e.result((0,kE.callValidateCode)(e,t,l),()=>d(t),()=>m(t))}function m(f){let h=(0,ir._)`${f}.errors`;i.assign(Os.default.vErrors,(0,ir._)`${Os.default.vErrors} === null ? ${h} : ${Os.default.vErrors}.concat(${h})`),i.assign(Os.default.errors,(0,ir._)`${Os.default.vErrors}.length`)}function d(f){var h;if(!o.opts.unevaluated)return;let y=(h=r==null?void 0:r.validate)===null||h===void 0?void 0:h.evaluated;if(o.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(o.props=sp.mergeEvaluated.props(i,y.props,o.props));else{let b=i.var("props",(0,ir._)`${f}.evaluated.props`);o.props=sp.mergeEvaluated.props(i,b,o.props,ir.Name)}if(o.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(o.items=sp.mergeEvaluated.items(i,y.items,o.items));else{let b=i.var("items",(0,ir._)`${f}.evaluated.items`);o.items=sp.mergeEvaluated.items(i,b,o.items,ir.Name)}}}po.callRef=ap;po.default=zH});var LE=x(s0=>{"use strict";Object.defineProperty(s0,"__esModule",{value:!0});var HH=IE(),KH=ME(),GH=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",HH.default,KH.default];s0.default=GH});var DE=x(a0=>{"use strict";Object.defineProperty(a0,"__esModule",{value:!0});var cp=pe(),li=cp.operators,lp={maximum:{okStr:"<=",ok:li.LTE,fail:li.GT},minimum:{okStr:">=",ok:li.GTE,fail:li.LT},exclusiveMaximum:{okStr:"<",ok:li.LT,fail:li.GTE},exclusiveMinimum:{okStr:">",ok:li.GT,fail:li.LTE}},YH={message:({keyword:e,schemaCode:t})=>(0,cp.str)`must be ${lp[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,cp._)`{comparison: ${lp[e].okStr}, limit: ${t}}`},WH={keyword:Object.keys(lp),type:"number",schemaType:"number",$data:!0,error:YH,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,cp._)`${r} ${lp[t].fail} ${n} || isNaN(${r})`)}};a0.default=WH});var FE=x(c0=>{"use strict";Object.defineProperty(c0,"__esModule",{value:!0});var Sc=pe(),XH={message:({schemaCode:e})=>(0,Sc.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Sc._)`{multipleOf: ${e}}`},JH={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:XH,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,s=t.let("res"),a=o?(0,Sc._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,Sc._)`${s} !== parseInt(${s})`;e.fail$data((0,Sc._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};c0.default=JH});var UE=x(l0=>{"use strict";Object.defineProperty(l0,"__esModule",{value:!0});function BE(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}l0.default=BE;BE.code='require("ajv/dist/runtime/ucs2length").default'});var VE=x(u0=>{"use strict";Object.defineProperty(u0,"__esModule",{value:!0});var fo=pe(),QH=Pe(),ZH=UE(),eK={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,fo.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,fo._)`{limit: ${e}}`},tK={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:eK,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?fo.operators.GT:fo.operators.LT,s=i.opts.unicode===!1?(0,fo._)`${r}.length`:(0,fo._)`${(0,QH.useFunc)(e.gen,ZH.default)}(${r})`;e.fail$data((0,fo._)`${s} ${o} ${n}`)}};u0.default=tK});var zE=x(p0=>{"use strict";Object.defineProperty(p0,"__esModule",{value:!0});var rK=Or(),up=pe(),nK={message:({schemaCode:e})=>(0,up.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,up._)`{pattern: ${e}}`},iK={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:nK,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,s=o.opts.unicodeRegExp?"u":"",a=r?(0,up._)`(new RegExp(${i}, ${s}))`:(0,rK.usePattern)(e,n);e.fail$data((0,up._)`!${a}.test(${t})`)}};p0.default=iK});var HE=x(f0=>{"use strict";Object.defineProperty(f0,"__esModule",{value:!0});var _c=pe(),oK={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,_c.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,_c._)`{limit: ${e}}`},sK={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:oK,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?_c.operators.GT:_c.operators.LT;e.fail$data((0,_c._)`Object.keys(${r}).length ${i} ${n}`)}};f0.default=sK});var KE=x(d0=>{"use strict";Object.defineProperty(d0,"__esModule",{value:!0});var Oc=Or(),$c=pe(),aK=Pe(),cK={message:({params:{missingProperty:e}})=>(0,$c.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,$c._)`{missingProperty: ${e}}`},lK={keyword:"required",type:"object",schemaType:"array",$data:!0,error:cK,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:s}=e,{opts:a}=s;if(!o&&r.length===0)return;let c=r.length>=a.loopRequired;if(s.allErrors?l():u(),a.strictRequired){let d=e.parentSchema.properties,{definedProperties:f}=e.it;for(let h of r)if((d==null?void 0:d[h])===void 0&&!f.has(h)){let y=s.schemaEnv.baseId+s.errSchemaPath,b=`required property "${h}" is not defined at "${y}" (strictRequired)`;(0,aK.checkStrictMode)(s,b,s.opts.strictRequired)}}function l(){if(c||o)e.block$data($c.nil,p);else for(let d of r)(0,Oc.checkReportMissingProp)(e,d)}function u(){let d=t.let("missing");if(c||o){let f=t.let("valid",!0);e.block$data(f,()=>m(d,f)),e.ok(f)}else t.if((0,Oc.checkMissingProp)(e,r,d)),(0,Oc.reportMissingProp)(e,d),t.else()}function p(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,Oc.noPropertyInData)(t,i,d,a.ownProperties),()=>e.error())})}function m(d,f){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(f,(0,Oc.propertyInData)(t,i,d,a.ownProperties)),t.if((0,$c.not)(f),()=>{e.error(),t.break()})},$c.nil)}}};d0.default=lK});var GE=x(m0=>{"use strict";Object.defineProperty(m0,"__esModule",{value:!0});var Pc=pe(),uK={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Pc.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Pc._)`{limit: ${e}}`},pK={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:uK,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Pc.operators.GT:Pc.operators.LT;e.fail$data((0,Pc._)`${r}.length ${i} ${n}`)}};m0.default=pK});var pp=x(h0=>{"use strict";Object.defineProperty(h0,"__esModule",{value:!0});var YE=Na();YE.code='require("ajv/dist/runtime/equal").default';h0.default=YE});var WE=x(g0=>{"use strict";Object.defineProperty(g0,"__esModule",{value:!0});var y0=fc(),_t=pe(),fK=Pe(),dK=pp(),mK={message:({params:{i:e,j:t}})=>(0,_t.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,_t._)`{i: ${e}, j: ${t}}`},hK={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:mK,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:s,it:a}=e;if(!n&&!i)return;let c=t.let("valid"),l=o.items?(0,y0.getSchemaTypes)(o.items):[];e.block$data(c,u,(0,_t._)`${s} === false`),e.ok(c);function u(){let f=t.let("i",(0,_t._)`${r}.length`),h=t.let("j");e.setParams({i:f,j:h}),t.assign(c,!0),t.if((0,_t._)`${f} > 1`,()=>(p()?m:d)(f,h))}function p(){return l.length>0&&!l.some(f=>f==="object"||f==="array")}function m(f,h){let y=t.name("item"),b=(0,y0.checkDataTypes)(l,y,a.opts.strictNumbers,y0.DataType.Wrong),g=t.const("indices",(0,_t._)`{}`);t.for((0,_t._)`;${f}--;`,()=>{t.let(y,(0,_t._)`${r}[${f}]`),t.if(b,(0,_t._)`continue`),l.length>1&&t.if((0,_t._)`typeof ${y} == "string"`,(0,_t._)`${y} += "_"`),t.if((0,_t._)`typeof ${g}[${y}] == "number"`,()=>{t.assign(h,(0,_t._)`${g}[${y}]`),e.error(),t.assign(c,!1).break()}).code((0,_t._)`${g}[${y}] = ${f}`)})}function d(f,h){let y=(0,fK.useFunc)(t,dK.default),b=t.name("outer");t.label(b).for((0,_t._)`;${f}--;`,()=>t.for((0,_t._)`${h} = ${f}; ${h}--;`,()=>t.if((0,_t._)`${y}(${r}[${f}], ${r}[${h}])`,()=>{e.error(),t.assign(c,!1).break(b)})))}}};g0.default=hK});var XE=x(v0=>{"use strict";Object.defineProperty(v0,"__esModule",{value:!0});var b0=pe(),yK=Pe(),gK=pp(),bK={message:"must be equal to constant",params:({schemaCode:e})=>(0,b0._)`{allowedValue: ${e}}`},vK={keyword:"const",$data:!0,error:bK,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,b0._)`!${(0,yK.useFunc)(t,gK.default)}(${r}, ${i})`):e.fail((0,b0._)`${o} !== ${r}`)}};v0.default=vK});var JE=x(x0=>{"use strict";Object.defineProperty(x0,"__esModule",{value:!0});var Ec=pe(),xK=Pe(),wK=pp(),SK={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Ec._)`{allowedValues: ${e}}`},_K={keyword:"enum",schemaType:"array",$data:!0,error:SK,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:s}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let a=i.length>=s.opts.loopEnum,c,l=()=>c!=null?c:c=(0,xK.useFunc)(t,wK.default),u;if(a||n)u=t.let("valid"),e.block$data(u,p);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let d=t.const("vSchema",o);u=(0,Ec.or)(...i.map((f,h)=>m(d,h)))}e.pass(u);function p(){t.assign(u,!1),t.forOf("v",o,d=>t.if((0,Ec._)`${l()}(${r}, ${d})`,()=>t.assign(u,!0).break()))}function m(d,f){let h=i[f];return typeof h=="object"&&h!==null?(0,Ec._)`${l()}(${r}, ${d}[${f}])`:(0,Ec._)`${r} === ${h}`}}};x0.default=_K});var QE=x(w0=>{"use strict";Object.defineProperty(w0,"__esModule",{value:!0});var OK=DE(),$K=FE(),PK=VE(),EK=zE(),AK=HE(),CK=KE(),RK=GE(),TK=WE(),NK=XE(),IK=JE(),kK=[OK.default,$K.default,PK.default,EK.default,AK.default,CK.default,RK.default,TK.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},NK.default,IK.default];w0.default=kK});var _0=x(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});Ac.validateAdditionalItems=void 0;var mo=pe(),S0=Pe(),qK={message:({params:{len:e}})=>(0,mo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,mo._)`{limit: ${e}}`},jK={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:qK,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,S0.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}ZE(e,n)}};function ZE(e,t){let{gen:r,schema:n,data:i,keyword:o,it:s}=e;s.items=!0;let a=r.const("len",(0,mo._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,mo._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,S0.alwaysValidSchema)(s,n)){let l=r.var("valid",(0,mo._)`${a} <= ${t.length}`);r.if((0,mo.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,u=>{e.subschema({keyword:o,dataProp:u,dataPropType:S0.Type.Num},l),s.allErrors||r.if((0,mo.not)(l),()=>r.break())})}}Ac.validateAdditionalItems=ZE;Ac.default=jK});var O0=x(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.validateTuple=void 0;var eA=pe(),fp=Pe(),MK=Or(),LK={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return tA(e,"additionalItems",t);r.items=!0,!(0,fp.alwaysValidSchema)(r,t)&&e.ok((0,MK.validateArray)(e))}};function tA(e,t,r=e.schema){let{gen:n,parentSchema:i,data:o,keyword:s,it:a}=e;u(i),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=fp.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),l=n.const("len",(0,eA._)`${o}.length`);r.forEach((p,m)=>{(0,fp.alwaysValidSchema)(a,p)||(n.if((0,eA._)`${l} > ${m}`,()=>e.subschema({keyword:s,schemaProp:m,dataProp:m},c)),e.ok(c))});function u(p){let{opts:m,errSchemaPath:d}=a,f=r.length,h=f===p.minItems&&(f===p.maxItems||p[t]===!1);if(m.strictTuples&&!h){let y=`"${s}" is ${f}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,fp.checkStrictMode)(a,y,m.strictTuples)}}}Cc.validateTuple=tA;Cc.default=LK});var rA=x($0=>{"use strict";Object.defineProperty($0,"__esModule",{value:!0});var DK=O0(),FK={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,DK.validateTuple)(e,"items")};$0.default=FK});var iA=x(P0=>{"use strict";Object.defineProperty(P0,"__esModule",{value:!0});var nA=pe(),BK=Pe(),UK=Or(),VK=_0(),zK={message:({params:{len:e}})=>(0,nA.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,nA._)`{limit: ${e}}`},HK={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:zK,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,BK.alwaysValidSchema)(n,t)&&(i?(0,VK.validateAdditionalItems)(e,i):e.ok((0,UK.validateArray)(e)))}};P0.default=HK});var oA=x(E0=>{"use strict";Object.defineProperty(E0,"__esModule",{value:!0});var Pr=pe(),dp=Pe(),KK={message:({params:{min:e,max:t}})=>t===void 0?(0,Pr.str)`must contain at least ${e} valid item(s)`:(0,Pr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Pr._)`{minContains: ${e}}`:(0,Pr._)`{minContains: ${e}, maxContains: ${t}}`},GK={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:KK,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e,s,a,{minContains:c,maxContains:l}=n;o.opts.next?(s=c===void 0?1:c,a=l):s=1;let u=t.const("len",(0,Pr._)`${i}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,dp.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,dp.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,dp.alwaysValidSchema)(o,r)){let h=(0,Pr._)`${u} >= ${s}`;a!==void 0&&(h=(0,Pr._)`${h} && ${u} <= ${a}`),e.pass(h);return}o.items=!0;let p=t.name("valid");a===void 0&&s===1?d(p,()=>t.if(p,()=>t.break())):s===0?(t.let(p,!0),a!==void 0&&t.if((0,Pr._)`${i}.length > 0`,m)):(t.let(p,!1),m()),e.result(p,()=>e.reset());function m(){let h=t.name("_valid"),y=t.let("count",0);d(h,()=>t.if(h,()=>f(y)))}function d(h,y){t.forRange("i",0,u,b=>{e.subschema({keyword:"contains",dataProp:b,dataPropType:dp.Type.Num,compositeRule:!0},h),y()})}function f(h){t.code((0,Pr._)`${h}++`),a===void 0?t.if((0,Pr._)`${h} >= ${s}`,()=>t.assign(p,!0).break()):(t.if((0,Pr._)`${h} > ${a}`,()=>t.assign(p,!1).break()),s===1?t.assign(p,!0):t.if((0,Pr._)`${h} >= ${s}`,()=>t.assign(p,!0)))}}};E0.default=GK});var cA=x(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.validateSchemaDeps=sn.validatePropertyDeps=sn.error=void 0;var A0=pe(),YK=Pe(),Rc=Or();sn.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,A0.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,A0._)`{property: ${e},
13
13
  missingProperty: ${n},
14
14
  depsCount: ${t},
15
- deps: ${r}}`};var WK={keyword:"dependencies",type:"object",schemaType:"object",error:on.error,code(e){let[t,r]=XK(e);sA(e,t),aA(e,r)}};function XK({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}function sA(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let s in t){let a=t[s];if(a.length===0)continue;let c=(0,Rc.propertyInData)(r,n,s,i.opts.ownProperties);e.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),i.allErrors?r.if(c,()=>{for(let l of a)(0,Rc.checkReportMissingProp)(e,l)}):(r.if((0,A0._)`${c} && (${(0,Rc.checkMissingProp)(e,a,o)})`),(0,Rc.reportMissingProp)(e,o),r.else())}}on.validatePropertyDeps=sA;function aA(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,s=r.name("valid");for(let a in t)(0,YK.alwaysValidSchema)(o,t[a])||(r.if((0,Rc.propertyInData)(r,n,a,o.opts.ownProperties),()=>{let c=e.subschema({keyword:i,schemaProp:a},s);e.mergeValidEvaluated(c,s)},()=>r.var(s,!0)),e.ok(s))}on.validateSchemaDeps=aA;on.default=WK});var uA=x(C0=>{"use strict";Object.defineProperty(C0,"__esModule",{value:!0});var lA=ue(),JK=Pe(),QK={message:"property name must be valid",params:({params:e})=>(0,lA._)`{propertyName: ${e.propertyName}}`},ZK={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:QK,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,JK.alwaysValidSchema)(i,r))return;let o=t.name("valid");t.forIn("key",n,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),t.if((0,lA.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};C0.default=ZK});var T0=x(R0=>{"use strict";Object.defineProperty(R0,"__esModule",{value:!0});var mp=Or(),Ur=ue(),eG=Cn(),hp=Pe(),tG={message:"must NOT have additional properties",params:({params:e})=>(0,Ur._)`{additionalProperty: ${e.additionalProperty}}`},rG={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:tG,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:s}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=s;if(s.props=!0,c.removeAdditional!=="all"&&(0,hp.alwaysValidSchema)(s,r))return;let l=(0,mp.allSchemaProperties)(n.properties),u=(0,mp.allSchemaProperties)(n.patternProperties);p(),e.ok((0,Ur._)`${o} === ${eG.default.errors}`);function p(){t.forIn("key",i,y=>{!l.length&&!u.length?f(y):t.if(m(y),()=>f(y))})}function m(y){let b;if(l.length>8){let g=(0,hp.schemaRefOrVal)(s,n.properties,"properties");b=(0,mp.isOwnProperty)(t,g,y)}else l.length?b=(0,Ur.or)(...l.map(g=>(0,Ur._)`${y} === ${g}`)):b=Ur.nil;return u.length&&(b=(0,Ur.or)(b,...u.map(g=>(0,Ur._)`${(0,mp.usePattern)(e,g)}.test(${y})`))),(0,Ur.not)(b)}function d(y){t.code((0,Ur._)`delete ${i}[${y}]`)}function f(y){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){d(y);return}if(r===!1){e.setParams({additionalProperty:y}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,hp.alwaysValidSchema)(s,r)){let b=t.name("valid");c.removeAdditional==="failing"?(h(y,b,!1),t.if((0,Ur.not)(b),()=>{e.reset(),d(y)})):(h(y,b),a||t.if((0,Ur.not)(b),()=>t.break()))}}function h(y,b,g){let v={keyword:"additionalProperties",dataProp:y,dataPropType:hp.Type.Str};g===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(v,b)}}};R0.default=rG});var dA=x(I0=>{"use strict";Object.defineProperty(I0,"__esModule",{value:!0});var nG=yc(),pA=Or(),N0=Pe(),fA=T0(),iG={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&fA.default.code(new nG.KeywordCxt(o,fA.default,"additionalProperties"));let s=(0,pA.allSchemaProperties)(r);for(let p of s)o.definedProperties.add(p);o.opts.unevaluated&&s.length&&o.props!==!0&&(o.props=N0.mergeEvaluated.props(t,(0,N0.toHash)(s),o.props));let a=s.filter(p=>!(0,N0.alwaysValidSchema)(o,r[p]));if(a.length===0)return;let c=t.name("valid");for(let p of a)l(p)?u(p):(t.if((0,pA.propertyInData)(t,i,p,o.opts.ownProperties)),u(p),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(c);function l(p){return o.opts.useDefaults&&!o.compositeRule&&r[p].default!==void 0}function u(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},c)}}};I0.default=iG});var gA=x(k0=>{"use strict";Object.defineProperty(k0,"__esModule",{value:!0});var mA=Or(),yp=ue(),hA=Pe(),yA=Pe(),oG={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:s}=o,a=(0,mA.allSchemaProperties)(r),c=a.filter(h=>(0,hA.alwaysValidSchema)(o,r[h]));if(a.length===0||c.length===a.length&&(!o.opts.unevaluated||o.props===!0))return;let l=s.strictSchema&&!s.allowMatchingProperties&&i.properties,u=t.name("valid");o.props!==!0&&!(o.props instanceof yp.Name)&&(o.props=(0,yA.evaluatedPropsToName)(t,o.props));let{props:p}=o;m();function m(){for(let h of a)l&&d(h),o.allErrors?f(h):(t.var(u,!0),f(h),t.if(u))}function d(h){for(let y in l)new RegExp(h).test(y)&&(0,hA.checkStrictMode)(o,`property ${y} matches pattern ${h} (use allowMatchingProperties)`)}function f(h){t.forIn("key",n,y=>{t.if((0,yp._)`${(0,mA.usePattern)(e,h)}.test(${y})`,()=>{let b=c.includes(h);b||e.subschema({keyword:"patternProperties",schemaProp:h,dataProp:y,dataPropType:yA.Type.Str},u),o.opts.unevaluated&&p!==!0?t.assign((0,yp._)`${p}[${y}]`,!0):!b&&!o.allErrors&&t.if((0,yp.not)(u),()=>t.break())})})}}};k0.default=oG});var bA=x(q0=>{"use strict";Object.defineProperty(q0,"__esModule",{value:!0});var sG=Pe(),aG={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,sG.alwaysValidSchema)(n,r)){e.fail();return}let i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};q0.default=aG});var vA=x(j0=>{"use strict";Object.defineProperty(j0,"__esModule",{value:!0});var cG=Or(),lG={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:cG.validateUnion,error:{message:"must match a schema in anyOf"}};j0.default=lG});var xA=x(M0=>{"use strict";Object.defineProperty(M0,"__esModule",{value:!0});var gp=ue(),uG=Pe(),pG={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,gp._)`{passingSchemas: ${e.passing}}`},fG={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:pG,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let o=r,s=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(l),e.result(s,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((u,p)=>{let m;(0,uG.alwaysValidSchema)(i,u)?t.var(c,!0):m=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},c),p>0&&t.if((0,gp._)`${c} && ${s}`).assign(s,!1).assign(a,(0,gp._)`[${a}, ${p}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,p),m&&e.mergeEvaluated(m,gp.Name)})})}}};M0.default=fG});var wA=x(L0=>{"use strict";Object.defineProperty(L0,"__esModule",{value:!0});var dG=Pe(),mG={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((o,s)=>{if((0,dG.alwaysValidSchema)(n,o))return;let a=e.subschema({keyword:"allOf",schemaProp:s},i);e.ok(i),e.mergeEvaluated(a)})}};L0.default=mG});var OA=x(D0=>{"use strict";Object.defineProperty(D0,"__esModule",{value:!0});var bp=ue(),_A=Pe(),hG={message:({params:e})=>(0,bp.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,bp._)`{failingKeyword: ${e.ifClause}}`},yG={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:hG,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,_A.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=SA(n,"then"),o=SA(n,"else");if(!i&&!o)return;let s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),i&&o){let u=t.let("ifClause");e.setParams({ifClause:u}),t.if(a,l("then",u),l("else",u))}else i?t.if(a,l("then")):t.if((0,bp.not)(a),l("else"));e.pass(s,()=>e.error(!0));function c(){let u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(u)}function l(u,p){return()=>{let m=e.subschema({keyword:u},a);t.assign(s,a),e.mergeValidEvaluated(m,s),p?t.assign(p,(0,bp._)`${u}`):e.setParams({ifClause:u})}}}};function SA(e,t){let r=e.schema[t];return r!==void 0&&!(0,_A.alwaysValidSchema)(e,r)}D0.default=yG});var $A=x(F0=>{"use strict";Object.defineProperty(F0,"__esModule",{value:!0});var gG=Pe(),bG={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,gG.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};F0.default=bG});var PA=x(B0=>{"use strict";Object.defineProperty(B0,"__esModule",{value:!0});var vG=_0(),xG=rA(),wG=O0(),SG=iA(),_G=oA(),OG=cA(),$G=uA(),PG=T0(),EG=dA(),AG=gA(),CG=bA(),RG=vA(),TG=xA(),NG=wA(),IG=OA(),kG=$A();function qG(e=!1){let t=[CG.default,RG.default,TG.default,NG.default,IG.default,kG.default,$G.default,PG.default,OG.default,EG.default,AG.default];return e?t.push(xG.default,SG.default):t.push(vG.default,wG.default),t.push(_G.default),t}B0.default=qG});var EA=x(U0=>{"use strict";Object.defineProperty(U0,"__esModule",{value:!0});var Ze=ue(),jG={message:({schemaCode:e})=>(0,Ze.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Ze._)`{format: ${e}}`},MG={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:jG,code(e,t){let{gen:r,data:n,$data:i,schema:o,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:l,schemaEnv:u,self:p}=a;if(!c.validateFormats)return;i?m():d();function m(){let f=r.scopeValue("formats",{ref:p.formats,code:c.code.formats}),h=r.const("fDef",(0,Ze._)`${f}[${s}]`),y=r.let("fType"),b=r.let("format");r.if((0,Ze._)`typeof ${h} == "object" && !(${h} instanceof RegExp)`,()=>r.assign(y,(0,Ze._)`${h}.type || "string"`).assign(b,(0,Ze._)`${h}.validate`),()=>r.assign(y,(0,Ze._)`"string"`).assign(b,h)),e.fail$data((0,Ze.or)(g(),v()));function g(){return c.strictSchema===!1?Ze.nil:(0,Ze._)`${s} && !${b}`}function v(){let _=u.$async?(0,Ze._)`(${h}.async ? await ${b}(${n}) : ${b}(${n}))`:(0,Ze._)`${b}(${n})`,w=(0,Ze._)`(typeof ${b} == "function" ? ${_} : ${b}.test(${n}))`;return(0,Ze._)`${b} && ${b} !== true && ${y} === ${t} && !${w}`}}function d(){let f=p.formats[o];if(!f){g();return}if(f===!0)return;let[h,y,b]=v(f);h===t&&e.pass(_());function g(){if(c.strictSchema===!1){p.logger.warn(w());return}throw new Error(w());function w(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function v(w){let N=w instanceof RegExp?(0,Ze.regexpCode)(w):c.code.formats?(0,Ze._)`${c.code.formats}${(0,Ze.getProperty)(o)}`:void 0,S=r.scopeValue("formats",{key:o,ref:w,code:N});return typeof w=="object"&&!(w instanceof RegExp)?[w.type||"string",w.validate,(0,Ze._)`${S}.validate`]:["string",w,S]}function _(){if(typeof f=="object"&&!(f instanceof RegExp)&&f.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Ze._)`await ${b}(${n})`}return typeof y=="function"?(0,Ze._)`${b}(${n})`:(0,Ze._)`${b}.test(${n})`}}}};U0.default=MG});var AA=x(V0=>{"use strict";Object.defineProperty(V0,"__esModule",{value:!0});var LG=EA(),DG=[LG.default];V0.default=DG});var CA=x($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.contentVocabulary=$s.metadataVocabulary=void 0;$s.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];$s.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var TA=x(z0=>{"use strict";Object.defineProperty(z0,"__esModule",{value:!0});var FG=LE(),BG=QE(),UG=PA(),VG=AA(),RA=CA(),zG=[FG.default,BG.default,(0,UG.default)(),VG.default,RA.metadataVocabulary,RA.contentVocabulary];z0.default=zG});var IA=x(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.DiscrError=void 0;var NA;(function(e){e.Tag="tag",e.Mapping="mapping"})(NA||(vp.DiscrError=NA={}))});var qA=x(K0=>{"use strict";Object.defineProperty(K0,"__esModule",{value:!0});var Ps=ue(),H0=IA(),kA=tp(),HG=gc(),KG=Pe(),GG={message:({params:{discrError:e,tagName:t}})=>e===H0.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Ps._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},YG={keyword:"discriminator",type:"object",schemaType:"object",error:GG,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:s}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let c=t.let("valid",!1),l=t.const("tag",(0,Ps._)`${r}${(0,Ps.getProperty)(a)}`);t.if((0,Ps._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:H0.DiscrError.Tag,tag:l,tagName:a})),e.ok(c);function u(){let d=m();t.if(!1);for(let f in d)t.elseIf((0,Ps._)`${l} === ${f}`),t.assign(c,p(d[f]));t.else(),e.error(!1,{discrError:H0.DiscrError.Mapping,tag:l,tagName:a}),t.endIf()}function p(d){let f=t.name("valid"),h=e.subschema({keyword:"oneOf",schemaProp:d},f);return e.mergeEvaluated(h,Ps.Name),f}function m(){var d;let f={},h=b(i),y=!0;for(let _=0;_<s.length;_++){let w=s[_];if(w!=null&&w.$ref&&!(0,KG.schemaHasRulesButRef)(w,o.self.RULES)){let S=w.$ref;if(w=kA.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,S),w instanceof kA.SchemaEnv&&(w=w.schema),w===void 0)throw new HG.default(o.opts.uriResolver,o.baseId,S)}let N=(d=w==null?void 0:w.properties)===null||d===void 0?void 0:d[a];if(typeof N!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);y=y&&(h||b(w)),g(N,_)}if(!y)throw new Error(`discriminator: "${a}" must be required`);return f;function b({required:_}){return Array.isArray(_)&&_.includes(a)}function g(_,w){if(_.const)v(_.const,w);else if(_.enum)for(let N of _.enum)v(N,w);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function v(_,w){if(typeof _!="string"||_ in f)throw new Error(`discriminator: "${a}" values must be unique strings`);f[_]=w}}}};K0.default=YG});var jA=x((Dce,WG)=>{WG.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 LA=x((Be,G0)=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.MissingRefError=Be.ValidationError=Be.CodeGen=Be.Name=Be.nil=Be.stringify=Be.str=Be._=Be.KeywordCxt=Be.Ajv=void 0;var XG=NE(),JG=TA(),QG=qA(),MA=jA(),ZG=["/properties"],xp="http://json-schema.org/draft-07/schema",Es=class extends XG.default{_addVocabularies(){super._addVocabularies(),JG.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(QG.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(MA,ZG):MA;this.addMetaSchema(t,xp,!1),this.refs["http://json-schema.org/schema"]=xp}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(xp)?xp:void 0)}};Be.Ajv=Es;G0.exports=Be=Es;G0.exports.Ajv=Es;Object.defineProperty(Be,"__esModule",{value:!0});Be.default=Es;var eY=yc();Object.defineProperty(Be,"KeywordCxt",{enumerable:!0,get:function(){return eY.KeywordCxt}});var As=ue();Object.defineProperty(Be,"_",{enumerable:!0,get:function(){return As._}});Object.defineProperty(Be,"str",{enumerable:!0,get:function(){return As.str}});Object.defineProperty(Be,"stringify",{enumerable:!0,get:function(){return As.stringify}});Object.defineProperty(Be,"nil",{enumerable:!0,get:function(){return As.nil}});Object.defineProperty(Be,"Name",{enumerable:!0,get:function(){return As.Name}});Object.defineProperty(Be,"CodeGen",{enumerable:!0,get:function(){return As.CodeGen}});var tY=Zu();Object.defineProperty(Be,"ValidationError",{enumerable:!0,get:function(){return tY.default}});var rY=gc();Object.defineProperty(Be,"MissingRefError",{enumerable:!0,get:function(){return rY.default}})});var DA=x(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.formatLimitDefinition=void 0;var nY=LA(),Vr=ue(),ui=Vr.operators,wp={formatMaximum:{okStr:"<=",ok:ui.LTE,fail:ui.GT},formatMinimum:{okStr:">=",ok:ui.GTE,fail:ui.LT},formatExclusiveMaximum:{okStr:"<",ok:ui.LT,fail:ui.GTE},formatExclusiveMinimum:{okStr:">",ok:ui.GT,fail:ui.LTE}},iY={message:({keyword:e,schemaCode:t})=>Vr.str`should be ${wp[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>Vr._`{comparison: ${wp[e].okStr}, limit: ${t}}`};Cs.formatLimitDefinition={keyword:Object.keys(wp),type:"string",schemaType:"string",$data:!0,error:iY,code(e){let{gen:t,data:r,schemaCode:n,keyword:i,it:o}=e,{opts:s,self:a}=o;if(!s.validateFormats)return;let c=new nY.KeywordCxt(o,a.RULES.all.format.definition,"format");c.$data?l():u();function l(){let m=t.scopeValue("formats",{ref:a.formats,code:s.code.formats}),d=t.const("fmt",Vr._`${m}[${c.schemaCode}]`);e.fail$data(Vr.or(Vr._`typeof ${d} != "object"`,Vr._`${d} instanceof RegExp`,Vr._`typeof ${d}.compare != "function"`,p(d)))}function u(){let m=c.schema,d=a.formats[m];if(!d||d===!0)return;if(typeof d!="object"||d instanceof RegExp||typeof d.compare!="function")throw new Error(`"${i}": format "${m}" does not define "compare" function`);let f=t.scopeValue("formats",{key:m,ref:d,code:s.code.formats?Vr._`${s.code.formats}${Vr.getProperty(m)}`:void 0});e.fail$data(p(f))}function p(m){return Vr._`${m}.compare(${r}, ${n}) ${wp[i].fail} 0`}},dependencies:["format"]};var oY=e=>(e.addKeyword(Cs.formatLimitDefinition),e);Cs.default=oY});var X0=x((Tc,UA)=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});var Rs=cP(),sY=DA(),Y0=ue(),FA=new Y0.Name("fullFormats"),aY=new Y0.Name("fastFormats"),W0=(e,t={keywords:!0})=>{if(Array.isArray(t))return BA(e,t,Rs.fullFormats,FA),e;let[r,n]=t.mode==="fast"?[Rs.fastFormats,aY]:[Rs.fullFormats,FA],i=t.formats||Rs.formatNames;return BA(e,i,r,n),t.keywords&&sY.default(e),e};W0.get=(e,t="full")=>{let n=(t==="fast"?Rs.fastFormats:Rs.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function BA(e,t,r,n){var i,o;(i=(o=e.opts.code).formats)!==null&&i!==void 0||(o.formats=Y0._`require("ajv-formats/dist/formats").${n}`);for(let s of t)e.addFormat(s,r[s])}UA.exports=Tc=W0;Object.defineProperty(Tc,"__esModule",{value:!0});Tc.default=W0});var jc=x(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});var Ds;(function(e){e[e.SCALAR=0]="SCALAR",e[e.MAPPING=1]="MAPPING",e[e.MAP=2]="MAP",e[e.SEQ=3]="SEQ",e[e.ANCHOR_REF=4]="ANCHOR_REF",e[e.INCLUDE_REF=5]="INCLUDE_REF"})(Ds=fn.Kind||(fn.Kind={}));function RW(e,t){var r=t?t.endPosition:e.endPosition+1,n={key:e,value:t,startPosition:e.startPosition,endPosition:r,kind:Ds.MAPPING,parent:null,errors:[]};return n}fn.newMapping=RW;function TW(e,t,r,n){return{errors:[],referencesAnchor:e,value:n,startPosition:t,endPosition:r,kind:Ds.ANCHOR_REF,parent:null}}fn.newAnchorRef=TW;function NW(e){e===void 0&&(e="");var t={errors:[],startPosition:-1,endPosition:-1,value:""+e,kind:Ds.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(t.valueObject=e),t}fn.newScalar=NW;function DR(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:Ds.SEQ,parent:null}}fn.newItems=DR;function IW(){return DR()}fn.newSeq=IW;function kW(e){return{errors:[],startPosition:-1,endPosition:-1,mappings:e||[],kind:Ds.MAP,parent:null}}fn.newMap=kW});var yo=x(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});function FR(e){return typeof e>"u"||e===null}_i.isNothing=FR;function qW(e){return typeof e=="object"&&e!==null}_i.isObject=qW;function jW(e){return Array.isArray(e)?e:FR(e)?[]:[e]}_i.toArray=jW;function MW(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=t[i];return e}_i.extend=MW;function LW(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}_i.repeat=LW;function DW(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}_i.isNegativeZero=DW});var Fs=x((Kge,BR)=>{"use strict";var FW=(function(){function e(t,r,n){r===void 0&&(r=null),n===void 0&&(n=!1),this.name="YAMLException",this.reason=t,this.mark=r,this.message=this.toString(!1),this.isWarning=n}return e.isInstance=function(t){if(t!=null&&t.getClassIdentifier&&typeof t.getClassIdentifier=="function")for(var r=0,n=t.getClassIdentifier();r<n.length;r++){var i=n[r];if(i==e.CLASS_IDENTIFIER)return!0}return!1},e.prototype.getClassIdentifier=function(){var t=[];return t.concat(e.CLASS_IDENTIFIER)},e.prototype.toString=function(t){t===void 0&&(t=!1);var r;return r="JS-YAML: "+(this.reason||"(unknown reason)"),!t&&this.mark&&(r+=" "+this.mark.toString()),r},e.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException",e})();BR.exports=FW});var zR=x((Gge,VR)=>{"use strict";var UR=yo(),BW=(function(){function e(t,r,n,i,o){this.name=t,this.buffer=r,this.position=n,this.line=i,this.column=o}return e.prototype.getSnippet=function(t,r){t===void 0&&(t=0),r===void 0&&(r=75);var n,i,o,s,a;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
15
+ deps: ${r}}`};var WK={keyword:"dependencies",type:"object",schemaType:"object",error:sn.error,code(e){let[t,r]=XK(e);sA(e,t),aA(e,r)}};function XK({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}function sA(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let s in t){let a=t[s];if(a.length===0)continue;let c=(0,Rc.propertyInData)(r,n,s,i.opts.ownProperties);e.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),i.allErrors?r.if(c,()=>{for(let l of a)(0,Rc.checkReportMissingProp)(e,l)}):(r.if((0,A0._)`${c} && (${(0,Rc.checkMissingProp)(e,a,o)})`),(0,Rc.reportMissingProp)(e,o),r.else())}}sn.validatePropertyDeps=sA;function aA(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,s=r.name("valid");for(let a in t)(0,YK.alwaysValidSchema)(o,t[a])||(r.if((0,Rc.propertyInData)(r,n,a,o.opts.ownProperties),()=>{let c=e.subschema({keyword:i,schemaProp:a},s);e.mergeValidEvaluated(c,s)},()=>r.var(s,!0)),e.ok(s))}sn.validateSchemaDeps=aA;sn.default=WK});var uA=x(C0=>{"use strict";Object.defineProperty(C0,"__esModule",{value:!0});var lA=pe(),JK=Pe(),QK={message:"property name must be valid",params:({params:e})=>(0,lA._)`{propertyName: ${e.propertyName}}`},ZK={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:QK,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,JK.alwaysValidSchema)(i,r))return;let o=t.name("valid");t.forIn("key",n,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),t.if((0,lA.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};C0.default=ZK});var T0=x(R0=>{"use strict";Object.defineProperty(R0,"__esModule",{value:!0});var mp=Or(),Ur=pe(),eG=Cn(),hp=Pe(),tG={message:"must NOT have additional properties",params:({params:e})=>(0,Ur._)`{additionalProperty: ${e.additionalProperty}}`},rG={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:tG,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:s}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=s;if(s.props=!0,c.removeAdditional!=="all"&&(0,hp.alwaysValidSchema)(s,r))return;let l=(0,mp.allSchemaProperties)(n.properties),u=(0,mp.allSchemaProperties)(n.patternProperties);p(),e.ok((0,Ur._)`${o} === ${eG.default.errors}`);function p(){t.forIn("key",i,y=>{!l.length&&!u.length?f(y):t.if(m(y),()=>f(y))})}function m(y){let b;if(l.length>8){let g=(0,hp.schemaRefOrVal)(s,n.properties,"properties");b=(0,mp.isOwnProperty)(t,g,y)}else l.length?b=(0,Ur.or)(...l.map(g=>(0,Ur._)`${y} === ${g}`)):b=Ur.nil;return u.length&&(b=(0,Ur.or)(b,...u.map(g=>(0,Ur._)`${(0,mp.usePattern)(e,g)}.test(${y})`))),(0,Ur.not)(b)}function d(y){t.code((0,Ur._)`delete ${i}[${y}]`)}function f(y){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){d(y);return}if(r===!1){e.setParams({additionalProperty:y}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,hp.alwaysValidSchema)(s,r)){let b=t.name("valid");c.removeAdditional==="failing"?(h(y,b,!1),t.if((0,Ur.not)(b),()=>{e.reset(),d(y)})):(h(y,b),a||t.if((0,Ur.not)(b),()=>t.break()))}}function h(y,b,g){let v={keyword:"additionalProperties",dataProp:y,dataPropType:hp.Type.Str};g===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(v,b)}}};R0.default=rG});var dA=x(I0=>{"use strict";Object.defineProperty(I0,"__esModule",{value:!0});var nG=yc(),pA=Or(),N0=Pe(),fA=T0(),iG={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&fA.default.code(new nG.KeywordCxt(o,fA.default,"additionalProperties"));let s=(0,pA.allSchemaProperties)(r);for(let p of s)o.definedProperties.add(p);o.opts.unevaluated&&s.length&&o.props!==!0&&(o.props=N0.mergeEvaluated.props(t,(0,N0.toHash)(s),o.props));let a=s.filter(p=>!(0,N0.alwaysValidSchema)(o,r[p]));if(a.length===0)return;let c=t.name("valid");for(let p of a)l(p)?u(p):(t.if((0,pA.propertyInData)(t,i,p,o.opts.ownProperties)),u(p),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(c);function l(p){return o.opts.useDefaults&&!o.compositeRule&&r[p].default!==void 0}function u(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},c)}}};I0.default=iG});var gA=x(k0=>{"use strict";Object.defineProperty(k0,"__esModule",{value:!0});var mA=Or(),yp=pe(),hA=Pe(),yA=Pe(),oG={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:s}=o,a=(0,mA.allSchemaProperties)(r),c=a.filter(h=>(0,hA.alwaysValidSchema)(o,r[h]));if(a.length===0||c.length===a.length&&(!o.opts.unevaluated||o.props===!0))return;let l=s.strictSchema&&!s.allowMatchingProperties&&i.properties,u=t.name("valid");o.props!==!0&&!(o.props instanceof yp.Name)&&(o.props=(0,yA.evaluatedPropsToName)(t,o.props));let{props:p}=o;m();function m(){for(let h of a)l&&d(h),o.allErrors?f(h):(t.var(u,!0),f(h),t.if(u))}function d(h){for(let y in l)new RegExp(h).test(y)&&(0,hA.checkStrictMode)(o,`property ${y} matches pattern ${h} (use allowMatchingProperties)`)}function f(h){t.forIn("key",n,y=>{t.if((0,yp._)`${(0,mA.usePattern)(e,h)}.test(${y})`,()=>{let b=c.includes(h);b||e.subschema({keyword:"patternProperties",schemaProp:h,dataProp:y,dataPropType:yA.Type.Str},u),o.opts.unevaluated&&p!==!0?t.assign((0,yp._)`${p}[${y}]`,!0):!b&&!o.allErrors&&t.if((0,yp.not)(u),()=>t.break())})})}}};k0.default=oG});var bA=x(q0=>{"use strict";Object.defineProperty(q0,"__esModule",{value:!0});var sG=Pe(),aG={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,sG.alwaysValidSchema)(n,r)){e.fail();return}let i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};q0.default=aG});var vA=x(j0=>{"use strict";Object.defineProperty(j0,"__esModule",{value:!0});var cG=Or(),lG={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:cG.validateUnion,error:{message:"must match a schema in anyOf"}};j0.default=lG});var xA=x(M0=>{"use strict";Object.defineProperty(M0,"__esModule",{value:!0});var gp=pe(),uG=Pe(),pG={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,gp._)`{passingSchemas: ${e.passing}}`},fG={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:pG,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let o=r,s=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(l),e.result(s,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((u,p)=>{let m;(0,uG.alwaysValidSchema)(i,u)?t.var(c,!0):m=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},c),p>0&&t.if((0,gp._)`${c} && ${s}`).assign(s,!1).assign(a,(0,gp._)`[${a}, ${p}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,p),m&&e.mergeEvaluated(m,gp.Name)})})}}};M0.default=fG});var wA=x(L0=>{"use strict";Object.defineProperty(L0,"__esModule",{value:!0});var dG=Pe(),mG={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((o,s)=>{if((0,dG.alwaysValidSchema)(n,o))return;let a=e.subschema({keyword:"allOf",schemaProp:s},i);e.ok(i),e.mergeEvaluated(a)})}};L0.default=mG});var OA=x(D0=>{"use strict";Object.defineProperty(D0,"__esModule",{value:!0});var bp=pe(),_A=Pe(),hG={message:({params:e})=>(0,bp.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,bp._)`{failingKeyword: ${e.ifClause}}`},yG={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:hG,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,_A.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=SA(n,"then"),o=SA(n,"else");if(!i&&!o)return;let s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),i&&o){let u=t.let("ifClause");e.setParams({ifClause:u}),t.if(a,l("then",u),l("else",u))}else i?t.if(a,l("then")):t.if((0,bp.not)(a),l("else"));e.pass(s,()=>e.error(!0));function c(){let u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(u)}function l(u,p){return()=>{let m=e.subschema({keyword:u},a);t.assign(s,a),e.mergeValidEvaluated(m,s),p?t.assign(p,(0,bp._)`${u}`):e.setParams({ifClause:u})}}}};function SA(e,t){let r=e.schema[t];return r!==void 0&&!(0,_A.alwaysValidSchema)(e,r)}D0.default=yG});var $A=x(F0=>{"use strict";Object.defineProperty(F0,"__esModule",{value:!0});var gG=Pe(),bG={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,gG.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};F0.default=bG});var PA=x(B0=>{"use strict";Object.defineProperty(B0,"__esModule",{value:!0});var vG=_0(),xG=rA(),wG=O0(),SG=iA(),_G=oA(),OG=cA(),$G=uA(),PG=T0(),EG=dA(),AG=gA(),CG=bA(),RG=vA(),TG=xA(),NG=wA(),IG=OA(),kG=$A();function qG(e=!1){let t=[CG.default,RG.default,TG.default,NG.default,IG.default,kG.default,$G.default,PG.default,OG.default,EG.default,AG.default];return e?t.push(xG.default,SG.default):t.push(vG.default,wG.default),t.push(_G.default),t}B0.default=qG});var EA=x(U0=>{"use strict";Object.defineProperty(U0,"__esModule",{value:!0});var Ze=pe(),jG={message:({schemaCode:e})=>(0,Ze.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Ze._)`{format: ${e}}`},MG={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:jG,code(e,t){let{gen:r,data:n,$data:i,schema:o,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:l,schemaEnv:u,self:p}=a;if(!c.validateFormats)return;i?m():d();function m(){let f=r.scopeValue("formats",{ref:p.formats,code:c.code.formats}),h=r.const("fDef",(0,Ze._)`${f}[${s}]`),y=r.let("fType"),b=r.let("format");r.if((0,Ze._)`typeof ${h} == "object" && !(${h} instanceof RegExp)`,()=>r.assign(y,(0,Ze._)`${h}.type || "string"`).assign(b,(0,Ze._)`${h}.validate`),()=>r.assign(y,(0,Ze._)`"string"`).assign(b,h)),e.fail$data((0,Ze.or)(g(),v()));function g(){return c.strictSchema===!1?Ze.nil:(0,Ze._)`${s} && !${b}`}function v(){let _=u.$async?(0,Ze._)`(${h}.async ? await ${b}(${n}) : ${b}(${n}))`:(0,Ze._)`${b}(${n})`,w=(0,Ze._)`(typeof ${b} == "function" ? ${_} : ${b}.test(${n}))`;return(0,Ze._)`${b} && ${b} !== true && ${y} === ${t} && !${w}`}}function d(){let f=p.formats[o];if(!f){g();return}if(f===!0)return;let[h,y,b]=v(f);h===t&&e.pass(_());function g(){if(c.strictSchema===!1){p.logger.warn(w());return}throw new Error(w());function w(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function v(w){let N=w instanceof RegExp?(0,Ze.regexpCode)(w):c.code.formats?(0,Ze._)`${c.code.formats}${(0,Ze.getProperty)(o)}`:void 0,S=r.scopeValue("formats",{key:o,ref:w,code:N});return typeof w=="object"&&!(w instanceof RegExp)?[w.type||"string",w.validate,(0,Ze._)`${S}.validate`]:["string",w,S]}function _(){if(typeof f=="object"&&!(f instanceof RegExp)&&f.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Ze._)`await ${b}(${n})`}return typeof y=="function"?(0,Ze._)`${b}(${n})`:(0,Ze._)`${b}.test(${n})`}}}};U0.default=MG});var AA=x(V0=>{"use strict";Object.defineProperty(V0,"__esModule",{value:!0});var LG=EA(),DG=[LG.default];V0.default=DG});var CA=x($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.contentVocabulary=$s.metadataVocabulary=void 0;$s.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];$s.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var TA=x(z0=>{"use strict";Object.defineProperty(z0,"__esModule",{value:!0});var FG=LE(),BG=QE(),UG=PA(),VG=AA(),RA=CA(),zG=[FG.default,BG.default,(0,UG.default)(),VG.default,RA.metadataVocabulary,RA.contentVocabulary];z0.default=zG});var IA=x(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.DiscrError=void 0;var NA;(function(e){e.Tag="tag",e.Mapping="mapping"})(NA||(vp.DiscrError=NA={}))});var qA=x(K0=>{"use strict";Object.defineProperty(K0,"__esModule",{value:!0});var Ps=pe(),H0=IA(),kA=tp(),HG=gc(),KG=Pe(),GG={message:({params:{discrError:e,tagName:t}})=>e===H0.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Ps._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},YG={keyword:"discriminator",type:"object",schemaType:"object",error:GG,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:s}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let c=t.let("valid",!1),l=t.const("tag",(0,Ps._)`${r}${(0,Ps.getProperty)(a)}`);t.if((0,Ps._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:H0.DiscrError.Tag,tag:l,tagName:a})),e.ok(c);function u(){let d=m();t.if(!1);for(let f in d)t.elseIf((0,Ps._)`${l} === ${f}`),t.assign(c,p(d[f]));t.else(),e.error(!1,{discrError:H0.DiscrError.Mapping,tag:l,tagName:a}),t.endIf()}function p(d){let f=t.name("valid"),h=e.subschema({keyword:"oneOf",schemaProp:d},f);return e.mergeEvaluated(h,Ps.Name),f}function m(){var d;let f={},h=b(i),y=!0;for(let _=0;_<s.length;_++){let w=s[_];if(w!=null&&w.$ref&&!(0,KG.schemaHasRulesButRef)(w,o.self.RULES)){let S=w.$ref;if(w=kA.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,S),w instanceof kA.SchemaEnv&&(w=w.schema),w===void 0)throw new HG.default(o.opts.uriResolver,o.baseId,S)}let N=(d=w==null?void 0:w.properties)===null||d===void 0?void 0:d[a];if(typeof N!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);y=y&&(h||b(w)),g(N,_)}if(!y)throw new Error(`discriminator: "${a}" must be required`);return f;function b({required:_}){return Array.isArray(_)&&_.includes(a)}function g(_,w){if(_.const)v(_.const,w);else if(_.enum)for(let N of _.enum)v(N,w);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function v(_,w){if(typeof _!="string"||_ in f)throw new Error(`discriminator: "${a}" values must be unique strings`);f[_]=w}}}};K0.default=YG});var jA=x((Dce,WG)=>{WG.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 LA=x((Be,G0)=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.MissingRefError=Be.ValidationError=Be.CodeGen=Be.Name=Be.nil=Be.stringify=Be.str=Be._=Be.KeywordCxt=Be.Ajv=void 0;var XG=NE(),JG=TA(),QG=qA(),MA=jA(),ZG=["/properties"],xp="http://json-schema.org/draft-07/schema",Es=class extends XG.default{_addVocabularies(){super._addVocabularies(),JG.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(QG.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(MA,ZG):MA;this.addMetaSchema(t,xp,!1),this.refs["http://json-schema.org/schema"]=xp}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(xp)?xp:void 0)}};Be.Ajv=Es;G0.exports=Be=Es;G0.exports.Ajv=Es;Object.defineProperty(Be,"__esModule",{value:!0});Be.default=Es;var eY=yc();Object.defineProperty(Be,"KeywordCxt",{enumerable:!0,get:function(){return eY.KeywordCxt}});var As=pe();Object.defineProperty(Be,"_",{enumerable:!0,get:function(){return As._}});Object.defineProperty(Be,"str",{enumerable:!0,get:function(){return As.str}});Object.defineProperty(Be,"stringify",{enumerable:!0,get:function(){return As.stringify}});Object.defineProperty(Be,"nil",{enumerable:!0,get:function(){return As.nil}});Object.defineProperty(Be,"Name",{enumerable:!0,get:function(){return As.Name}});Object.defineProperty(Be,"CodeGen",{enumerable:!0,get:function(){return As.CodeGen}});var tY=Zu();Object.defineProperty(Be,"ValidationError",{enumerable:!0,get:function(){return tY.default}});var rY=gc();Object.defineProperty(Be,"MissingRefError",{enumerable:!0,get:function(){return rY.default}})});var DA=x(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.formatLimitDefinition=void 0;var nY=LA(),Vr=pe(),ui=Vr.operators,wp={formatMaximum:{okStr:"<=",ok:ui.LTE,fail:ui.GT},formatMinimum:{okStr:">=",ok:ui.GTE,fail:ui.LT},formatExclusiveMaximum:{okStr:"<",ok:ui.LT,fail:ui.GTE},formatExclusiveMinimum:{okStr:">",ok:ui.GT,fail:ui.LTE}},iY={message:({keyword:e,schemaCode:t})=>Vr.str`should be ${wp[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>Vr._`{comparison: ${wp[e].okStr}, limit: ${t}}`};Cs.formatLimitDefinition={keyword:Object.keys(wp),type:"string",schemaType:"string",$data:!0,error:iY,code(e){let{gen:t,data:r,schemaCode:n,keyword:i,it:o}=e,{opts:s,self:a}=o;if(!s.validateFormats)return;let c=new nY.KeywordCxt(o,a.RULES.all.format.definition,"format");c.$data?l():u();function l(){let m=t.scopeValue("formats",{ref:a.formats,code:s.code.formats}),d=t.const("fmt",Vr._`${m}[${c.schemaCode}]`);e.fail$data(Vr.or(Vr._`typeof ${d} != "object"`,Vr._`${d} instanceof RegExp`,Vr._`typeof ${d}.compare != "function"`,p(d)))}function u(){let m=c.schema,d=a.formats[m];if(!d||d===!0)return;if(typeof d!="object"||d instanceof RegExp||typeof d.compare!="function")throw new Error(`"${i}": format "${m}" does not define "compare" function`);let f=t.scopeValue("formats",{key:m,ref:d,code:s.code.formats?Vr._`${s.code.formats}${Vr.getProperty(m)}`:void 0});e.fail$data(p(f))}function p(m){return Vr._`${m}.compare(${r}, ${n}) ${wp[i].fail} 0`}},dependencies:["format"]};var oY=e=>(e.addKeyword(Cs.formatLimitDefinition),e);Cs.default=oY});var X0=x((Tc,UA)=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});var Rs=cP(),sY=DA(),Y0=pe(),FA=new Y0.Name("fullFormats"),aY=new Y0.Name("fastFormats"),W0=(e,t={keywords:!0})=>{if(Array.isArray(t))return BA(e,t,Rs.fullFormats,FA),e;let[r,n]=t.mode==="fast"?[Rs.fastFormats,aY]:[Rs.fullFormats,FA],i=t.formats||Rs.formatNames;return BA(e,i,r,n),t.keywords&&sY.default(e),e};W0.get=(e,t="full")=>{let n=(t==="fast"?Rs.fastFormats:Rs.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function BA(e,t,r,n){var i,o;(i=(o=e.opts.code).formats)!==null&&i!==void 0||(o.formats=Y0._`require("ajv-formats/dist/formats").${n}`);for(let s of t)e.addFormat(s,r[s])}UA.exports=Tc=W0;Object.defineProperty(Tc,"__esModule",{value:!0});Tc.default=W0});var jc=x(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});var Ds;(function(e){e[e.SCALAR=0]="SCALAR",e[e.MAPPING=1]="MAPPING",e[e.MAP=2]="MAP",e[e.SEQ=3]="SEQ",e[e.ANCHOR_REF=4]="ANCHOR_REF",e[e.INCLUDE_REF=5]="INCLUDE_REF"})(Ds=fn.Kind||(fn.Kind={}));function RW(e,t){var r=t?t.endPosition:e.endPosition+1,n={key:e,value:t,startPosition:e.startPosition,endPosition:r,kind:Ds.MAPPING,parent:null,errors:[]};return n}fn.newMapping=RW;function TW(e,t,r,n){return{errors:[],referencesAnchor:e,value:n,startPosition:t,endPosition:r,kind:Ds.ANCHOR_REF,parent:null}}fn.newAnchorRef=TW;function NW(e){e===void 0&&(e="");var t={errors:[],startPosition:-1,endPosition:-1,value:""+e,kind:Ds.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(t.valueObject=e),t}fn.newScalar=NW;function DR(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:Ds.SEQ,parent:null}}fn.newItems=DR;function IW(){return DR()}fn.newSeq=IW;function kW(e){return{errors:[],startPosition:-1,endPosition:-1,mappings:e||[],kind:Ds.MAP,parent:null}}fn.newMap=kW});var yo=x(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});function FR(e){return typeof e>"u"||e===null}_i.isNothing=FR;function qW(e){return typeof e=="object"&&e!==null}_i.isObject=qW;function jW(e){return Array.isArray(e)?e:FR(e)?[]:[e]}_i.toArray=jW;function MW(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=t[i];return e}_i.extend=MW;function LW(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}_i.repeat=LW;function DW(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}_i.isNegativeZero=DW});var Fs=x((Kge,BR)=>{"use strict";var FW=(function(){function e(t,r,n){r===void 0&&(r=null),n===void 0&&(n=!1),this.name="YAMLException",this.reason=t,this.mark=r,this.message=this.toString(!1),this.isWarning=n}return e.isInstance=function(t){if(t!=null&&t.getClassIdentifier&&typeof t.getClassIdentifier=="function")for(var r=0,n=t.getClassIdentifier();r<n.length;r++){var i=n[r];if(i==e.CLASS_IDENTIFIER)return!0}return!1},e.prototype.getClassIdentifier=function(){var t=[];return t.concat(e.CLASS_IDENTIFIER)},e.prototype.toString=function(t){t===void 0&&(t=!1);var r;return r="JS-YAML: "+(this.reason||"(unknown reason)"),!t&&this.mark&&(r+=" "+this.mark.toString()),r},e.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException",e})();BR.exports=FW});var zR=x((Gge,VR)=>{"use strict";var UR=yo(),BW=(function(){function e(t,r,n,i,o){this.name=t,this.buffer=r,this.position=n,this.line=i,this.column=o}return e.prototype.getSnippet=function(t,r){t===void 0&&(t=0),r===void 0&&(r=75);var n,i,o,s,a;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
16
16
  \x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(o="",s=this.position;s<this.buffer.length&&`\0\r
17
17
  \x85\u2028\u2029`.indexOf(this.buffer.charAt(s))===-1;)if(s+=1,s-this.position>r/2-1){o=" ... ",s-=5;break}return a=this.buffer.slice(i,s),UR.repeat(" ",t)+n+a+o+`
18
18
  `+UR.repeat(" ",t+this.position-i+n.length)+"^"},e.prototype.toString=function(t){t===void 0&&(t=!0);var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
19
19
  `+r)),n},e})();VR.exports=BW});var Ot=x(Sb=>{"use strict";Object.defineProperty(Sb,"__esModule",{value:!0});var HR=Fs(),UW=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],VW=["scalar","sequence","mapping"];function zW(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}var HW=(function(){function e(t,r){if(r=r||{},Object.keys(r).forEach(function(n){if(UW.indexOf(n)===-1)throw new HR('Unknown option "'+n+'" is met in definition of "'+t+'" YAML type.')}),this.tag=t,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(n){return n},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.defaultStyle=r.defaultStyle||null,this.styleAliases=zW(r.styleAliases||null),VW.indexOf(this.kind)===-1)throw new HR('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}return e})();Sb.Type=HW});var Bs=x(Ob=>{"use strict";Object.defineProperty(Ob,"__esModule",{value:!0});var KR=yo(),vf=Fs(),KW=Ot();function _b(e,t,r){var n=[];return e.include.forEach(function(i){r=_b(i,t,r)}),e[t].forEach(function(i){r.forEach(function(o,s){o.tag===i.tag&&n.push(s)}),r.push(i)}),r.filter(function(i,o){return n.indexOf(o)===-1})}function GW(){var e={},t,r;function n(i){e[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}var YW=(function(){function e(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach(function(r){if(r.loadKind&&r.loadKind!=="scalar")throw new vf("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=_b(this,"implicit",[]),this.compiledExplicit=_b(this,"explicit",[]),this.compiledTypeMap=GW(this.compiledImplicit,this.compiledExplicit)}return e.DEFAULT=null,e.create=function(){var r,n;switch(arguments.length){case 1:r=e.DEFAULT,n=arguments[0];break;case 2:r=arguments[0],n=arguments[1];break;default:throw new vf("Wrong number of arguments for Schema.create function")}if(r=KR.toArray(r),n=KR.toArray(n),!r.every(function(i){return i instanceof e}))throw new vf("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!n.every(function(i){return i instanceof KW.Type}))throw new vf("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new e({include:r,explicit:n})},e})();Ob.Schema=YW});var YR=x((Xge,GR)=>{"use strict";var WW=Ot();GR.exports=new WW.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var XR=x((Jge,WR)=>{"use strict";var XW=Ot();WR.exports=new XW.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var QR=x((Qge,JR)=>{"use strict";var JW=Ot();JR.exports=new JW.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var eT=x((Zge,ZR)=>{"use strict";var QW=Bs();ZR.exports=new QW.Schema({explicit:[YR(),XR(),QR()]})});var rT=x((e0e,tT)=>{"use strict";var ZW=Ot();function eX(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function tX(){return null}function rX(e){return e===null}tT.exports=new ZW.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:eX,construct:tX,predicate:rX,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var iT=x((t0e,nT)=>{"use strict";var nX=Ot();function iX(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function oX(e){return e==="true"||e==="True"||e==="TRUE"}function sX(e){return Object.prototype.toString.call(e)==="[object Boolean]"}nT.exports=new nX.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:iX,construct:oX,predicate:sX,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var sT=x((r0e,oT)=>{"use strict";var aX=yo(),cX=Ot();function lX(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function uX(e){return 48<=e&&e<=55}function pX(e){return 48<=e&&e<=57}function fX(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!lX(e.charCodeAt(r)))return!1;n=!0}return n}for(;r<t;r++)if(i=e[r],i!=="_"){if(!uX(e.charCodeAt(r)))return!1;n=!0}return n}for(;r<t;r++)if(i=e[r],i!=="_"){if(i===":")break;if(!pX(e.charCodeAt(r)))return!1;n=!0}return n?i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r)):!1}function dX(e){var t=e,r=1,n,i,o=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(s){o.unshift(parseInt(s,10))}),t=0,i=1,o.forEach(function(s){t+=s*i,i*=60}),r*t):r*parseInt(t,10)}function mX(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!aX.isNegativeZero(e)}oT.exports=new cX.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:fX,construct:dX,predicate:mX,represent:{binary:function(e){return"0b"+e.toString(2)},octal:function(e){return"0"+e.toString(8)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return"0x"+e.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var lT=x((n0e,cT)=>{"use strict";var aT=yo(),hX=Ot(),yX=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function gX(e){if(e===null)return!1;var t,r,n,i;return!!yX.test(e)}function bX(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],0<="+-".indexOf(t[0])&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:0<=t.indexOf(":")?(t.split(":").forEach(function(o){i.unshift(parseFloat(o,10))}),t=0,n=1,i.forEach(function(o){t+=o*n,n*=60}),r*t):r*parseFloat(t,10)}function vX(e,t){if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(aT.isNegativeZero(e))return"-0.0";return e.toString(10)}function xX(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||aT.isNegativeZero(e))}cT.exports=new hX.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:gX,construct:bX,predicate:xX,represent:vX,defaultStyle:"lowercase"})});var pT=x((i0e,uT)=>{"use strict";var wX=Bs();uT.exports=new wX.Schema({include:[eT()],implicit:[rT(),iT(),sT(),lT()]})});var dT=x((o0e,fT)=>{"use strict";var SX=Bs();fT.exports=new SX.Schema({include:[pT()]})});var yT=x((s0e,hT)=>{"use strict";var _X=Ot(),mT=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?)?$");function OX(e){if(e===null)return!1;var t,r,n,i,o,s,a,c=0,l=null,u,p,m;return t=mT.exec(e),t!==null}function $X(e){var t,r,n,i,o,s,a,c=0,l=null,u,p,m;if(t=mT.exec(e),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(o=+t[4],s=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c=c+"0";c=+c}return t[9]&&(u=+t[10],p=+(t[11]||0),l=(u*60+p)*6e4,t[9]==="-"&&(l=-l)),m=new Date(Date.UTC(r,n,i,o,s,a,c)),l&&m.setTime(m.getTime()-l),m}function PX(e){return e.toISOString()}hT.exports=new _X.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:OX,construct:$X,instanceOf:Date,represent:PX})});var bT=x((a0e,gT)=>{"use strict";var EX=Ot();function AX(e){return e==="<<"||e===null}gT.exports=new EX.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:AX})});var xT=x((c0e,vT)=>{"use strict";var xf=require("buffer").Buffer,CX=Ot(),$b=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
20
- \r`;function RX(e){if(e===null)return!1;var t,r,n=0,i=0,o=e.length,s=$b;for(r=0;r<o;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function TX(e){var t,r,n,i=e.replace(/[\r\n=]/g,""),o=i.length,s=$b,a=0,c=[];for(r=0;r<o;r++)r%4===0&&r&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(i.charAt(r));return n=o%4*6,n===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):n===18?(c.push(a>>10&255),c.push(a>>2&255)):n===12&&c.push(a>>4&255),xf?new xf(c):c}function NX(e){var t="",r=0,n,i,o=e.length,s=$b;for(n=0;n<o;n++)n%3===0&&n&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[n];return i=o%3,i===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):i===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):i===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function IX(e){return xf&&xf.isBuffer(e)}vT.exports=new CX.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:RX,construct:TX,predicate:IX,represent:NX})});var ST=x((l0e,wT)=>{"use strict";var kX=Ot(),qX=Object.prototype.hasOwnProperty,jX=Object.prototype.toString;function MX(e){if(e===null)return!0;var t=[],r,n,i,o,s,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],s=!1,jX.call(i)!=="[object Object]")return!1;for(o in i)if(qX.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function LX(e){return e!==null?e:[]}wT.exports=new kX.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:MX,construct:LX})});var OT=x((u0e,_T)=>{"use strict";var DX=Ot(),Pb=jc(),FX=Object.prototype.toString;function BX(e){if(e===null)return!0;if(e.kind!=Pb.Kind.SEQ)return!1;var t,r,n,i,o,s=e.items;for(t=0,r=s.length;t<r;t+=1)if(n=s[t],FX.call(n)!=="[object Object]"||!Array.isArray(n.mappings)||n.mappings.length!==1)return!1;return!0}function UX(e){if(e===null||!Array.isArray(e.items))return[];var t,r,n,i,o=e.items;for(i=Pb.newItems(),i.parent=e.parent,i.startPosition=e.startPosition,i.endPosition=e.endPosition,t=0,r=o.length;t<r;t+=1){var s=o[t],a=s.mappings[0],c=Pb.newItems();c.parent=i,c.startPosition=a.key.startPosition,c.endPosition=a.value.startPosition,a.key.parent=c,a.value.parent=c,c.items=[a.key,a.value],i.items.push(c)}return i}_T.exports=new DX.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:BX,construct:UX})});var PT=x((p0e,$T)=>{"use strict";var VX=Ot(),zX=jc();function HX(e){return e===null?!0:e.kind==zX.Kind.MAP}function KX(e){return e!==null?e:{}}$T.exports=new VX.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:HX,construct:KX})});var wf=x((f0e,ET)=>{"use strict";var GX=Bs(),YX=new GX.Schema({include:[dT()],implicit:[yT(),bT()],explicit:[xT(),ST(),OT(),PT()]});ET.exports=YX});var CT=x((d0e,AT)=>{"use strict";var WX=Ot();function XX(){return!0}function JX(){}function QX(){return""}function ZX(e){return typeof e>"u"}AT.exports=new WX.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:XX,construct:JX,predicate:ZX,represent:QX})});var TT=x((m0e,RT)=>{"use strict";var eJ=Ot();function tJ(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";if(t[0]==="/"){if(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/")return!1;t=t.slice(1,t.length-n.length-1)}try{var i=new RegExp(t,n);return!0}catch{return!1}}function rJ(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}function nJ(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function iJ(e){return Object.prototype.toString.call(e)==="[object RegExp]"}RT.exports=new eJ.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:tJ,construct:rJ,predicate:iJ,represent:nJ})});var Eb=x((h0e,kT)=>{"use strict";var NT=Bs(),IT=new NT.Schema({include:[wf()],explicit:[CT(),TT()]});NT.Schema.DEFAULT=IT;kT.exports=IT});var GT=x((Hs,Lc)=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});var dr=jc(),Oi=yo(),kb=Fs(),qb=zR(),LT=wf(),oJ=Eb(),Of=Object.prototype.hasOwnProperty,Sf=1,DT=2,FT=3,_f=4,Ab=1,sJ=2,qT=3,aJ=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,cJ=/[\x85\u2028\u2029]/,lJ=/[,\[\]\{\}]/,BT=/^(?:!|!!|![a-z\-]+!)$/i,UT=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function zr(e){return e===10||e===13}function go(e){return e===9||e===32}function sr(e){return e===9||e===32||e===10||e===13}function Us(e){return e===44||e===91||e===93||e===123||e===125}function uJ(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function pJ(e){return e===120?2:e===117?4:e===85?8:0}function fJ(e){return 48<=e&&e<=57?e-48:-1}function dJ(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
20
+ \r`;function RX(e){if(e===null)return!1;var t,r,n=0,i=0,o=e.length,s=$b;for(r=0;r<o;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function TX(e){var t,r,n,i=e.replace(/[\r\n=]/g,""),o=i.length,s=$b,a=0,c=[];for(r=0;r<o;r++)r%4===0&&r&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(i.charAt(r));return n=o%4*6,n===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):n===18?(c.push(a>>10&255),c.push(a>>2&255)):n===12&&c.push(a>>4&255),xf?new xf(c):c}function NX(e){var t="",r=0,n,i,o=e.length,s=$b;for(n=0;n<o;n++)n%3===0&&n&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[n];return i=o%3,i===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):i===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):i===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function IX(e){return xf&&xf.isBuffer(e)}vT.exports=new CX.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:RX,construct:TX,predicate:IX,represent:NX})});var ST=x((l0e,wT)=>{"use strict";var kX=Ot(),qX=Object.prototype.hasOwnProperty,jX=Object.prototype.toString;function MX(e){if(e===null)return!0;var t=[],r,n,i,o,s,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],s=!1,jX.call(i)!=="[object Object]")return!1;for(o in i)if(qX.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function LX(e){return e!==null?e:[]}wT.exports=new kX.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:MX,construct:LX})});var OT=x((u0e,_T)=>{"use strict";var DX=Ot(),Pb=jc(),FX=Object.prototype.toString;function BX(e){if(e===null)return!0;if(e.kind!=Pb.Kind.SEQ)return!1;var t,r,n,i,o,s=e.items;for(t=0,r=s.length;t<r;t+=1)if(n=s[t],FX.call(n)!=="[object Object]"||!Array.isArray(n.mappings)||n.mappings.length!==1)return!1;return!0}function UX(e){if(e===null||!Array.isArray(e.items))return[];var t,r,n,i,o=e.items;for(i=Pb.newItems(),i.parent=e.parent,i.startPosition=e.startPosition,i.endPosition=e.endPosition,t=0,r=o.length;t<r;t+=1){var s=o[t],a=s.mappings[0],c=Pb.newItems();c.parent=i,c.startPosition=a.key.startPosition,c.endPosition=a.value.startPosition,a.key.parent=c,a.value.parent=c,c.items=[a.key,a.value],i.items.push(c)}return i}_T.exports=new DX.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:BX,construct:UX})});var PT=x((p0e,$T)=>{"use strict";var VX=Ot(),zX=jc();function HX(e){return e===null?!0:e.kind==zX.Kind.MAP}function KX(e){return e!==null?e:{}}$T.exports=new VX.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:HX,construct:KX})});var wf=x((f0e,ET)=>{"use strict";var GX=Bs(),YX=new GX.Schema({include:[dT()],implicit:[yT(),bT()],explicit:[xT(),ST(),OT(),PT()]});ET.exports=YX});var CT=x((d0e,AT)=>{"use strict";var WX=Ot();function XX(){return!0}function JX(){}function QX(){return""}function ZX(e){return typeof e>"u"}AT.exports=new WX.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:XX,construct:JX,predicate:ZX,represent:QX})});var TT=x((m0e,RT)=>{"use strict";var eJ=Ot();function tJ(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";if(t[0]==="/"){if(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/")return!1;t=t.slice(1,t.length-n.length-1)}try{var i=new RegExp(t,n);return!0}catch{return!1}}function rJ(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}function nJ(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function iJ(e){return Object.prototype.toString.call(e)==="[object RegExp]"}RT.exports=new eJ.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:tJ,construct:rJ,predicate:iJ,represent:nJ})});var Eb=x((h0e,kT)=>{"use strict";var NT=Bs(),IT=new NT.Schema({include:[wf()],explicit:[CT(),TT()]});NT.Schema.DEFAULT=IT;kT.exports=IT});var GT=x((Hs,Lc)=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});var dr=jc(),Oi=yo(),kb=Fs(),qb=zR(),LT=wf(),oJ=Eb(),Of=Object.prototype.hasOwnProperty,Sf=1,DT=2,FT=3,_f=4,Ab=1,sJ=2,qT=3,aJ=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,cJ=/[\x85\u2028\u2029]/,lJ=/[,\[\]\{\}]/,BT=/^(?:!|!!|![a-z\-]+!)$/i,UT=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Hr(e){return e===10||e===13}function go(e){return e===9||e===32}function sr(e){return e===9||e===32||e===10||e===13}function Us(e){return e===44||e===91||e===93||e===123||e===125}function uJ(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function pJ(e){return e===120?2:e===117?4:e===85?8:0}function fJ(e){return 48<=e&&e<=57?e-48:-1}function dJ(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
21
21
  `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function mJ(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Cb=new Array(256),Rb=new Array(256),VT=new Array(256),Tb=new Array(256);for(Ar=0;Ar<256;Ar++)Tb[Ar]=Rb[Ar]=dJ(Ar),Cb[Ar]=Rb[Ar]?1:0,VT[Ar]=1,Cb[Ar]||(Tb[Ar]="\\"+String.fromCharCode(Ar));var Ar,hJ=(function(){function e(t,r){this.errorMap={},this.errors=[],this.lines=[],this.input=t,this.filename=r.filename||null,this.schema=r.schema||oJ,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.allowAnyEscape=r.allowAnyEscape||!1,this.ignoreDuplicateKeys=r.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}return e})();function jb(e,t,r){return r===void 0&&(r=!1),new kb(t,new qb(e.filename,e.input,e.position,e.line,e.position-e.lineStart),r)}function Nb(e,t,r,n,i){n===void 0&&(n=!1),i===void 0&&(i=!1);var o=yJ(e,t);if(o){var s=r+t;if(!e.errorMap[s]){var a=new qb(e.filename,e.input,t,o.line,t-o.start);i&&(a.toLineEnd=!0);var c=new kb(r,a,n);e.errors.push(c)}}}function ee(e,t){var r=jb(e,t),n=r.message+r.mark.position;if(!e.errorMap[n]){e.errors.push(r),e.errorMap[n]=1;for(var i=e.position;;){if(e.position>=e.input.length-1)return;var o=e.input.charAt(e.position);if(o==`
22
- `){e.position--,e.position==i&&(e.position+=1);return}if(o=="\r"){e.position--,e.position==i&&(e.position+=1);return}e.position++}}}function Ib(e,t){var r=jb(e,t);e.onWarning&&e.onWarning.call(null,r)}var jT={YAML:function(t,r,n){var i,o,s;t.version!==null&&ee(t,"duplication of %YAML directive"),n.length!==1&&ee(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&ee(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&ee(t,"found incompatible YAML document (version 1.2 is required)"),t.version=n[0],t.checkLineBreaks=s<2,s!==2&&ee(t,"found incompatible YAML document (version 1.2 is required)")},TAG:function(t,r,n){var i,o;n.length!==2&&ee(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],BT.test(i)||ee(t,"ill-formed tag handle (first argument) of the TAG directive"),Of.call(t.tagMap,i)&&ee(t,'there is a previously declared suffix for "'+i+'" tag handle'),UT.test(o)||ee(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o}};function $i(e,t,r,n){var i,o,s,a,c=e.result;if(c.startPosition==-1&&(c.startPosition=t),t<=r){if(a=e.input.slice(t,r),n)for(i=0,o=a.length;i<o;i+=1)s=a.charCodeAt(i),s===9||32<=s&&s<=1114111||ee(e,"expected valid JSON character");else aJ.test(a)&&ee(e,"the stream contains non-printable characters");c.value+=a,c.endPosition=r}}function Vs(e,t,r,n,i){var o,s;if(n!=null){t===null&&(t={startPosition:n.startPosition,endPosition:i.endPosition,parent:null,errors:[],mappings:[],kind:dr.Kind.MAP});var a=dr.newMapping(n,i);return a.parent=t,n.parent=a,i!=null&&(i.parent=a),!e.ignoreDuplicateKeys&&t.mappings.forEach(function(c){c.key&&c.key.value===(a.key&&a.key.value)&&(Nb(e,a.key.startPosition,"duplicate key"),Nb(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(a),t.endPosition=i?i.endPosition:n.endPosition+1,t}}function Mb(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ee(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.lines.push({start:e.lineStart,line:e.line})}function yJ(e,t){for(var r,n=0;n<e.lines.length&&!(e.lines[n].start>t);n++)r=e.lines[n];return r||{start:0,line:0}}function it(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;go(i);)i===9&&e.errors.push(jb(e,"Using tabs can lead to unpredictable results",!0)),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(zr(i))for(Mb(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&Ib(e,"deficient indentation"),n}function Mc(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&e.input.charCodeAt(t+1)===r&&e.input.charCodeAt(t+2)===r&&(t+=3,r=e.input.charCodeAt(t),r===0||sr(r)))}function Lb(e,t,r){r===1?t.value+=" ":r>1&&(t.value+=Oi.repeat(`
23
- `,r-1))}function gJ(e,t,r){var n,i,o,s,a,c,l,u,p=e.kind,m=e.result,d,f=dr.newScalar();if(f.plainScalar=!0,e.result=f,d=e.input.charCodeAt(e.position),sr(d)||Us(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),sr(i)||r&&Us(i)))return!1;for(e.kind="scalar",o=s=e.position,a=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),sr(i)||r&&Us(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),sr(n))break}else{if(e.position===e.lineStart&&Mc(e)||r&&Us(d))break;if(zr(d))if(c=e.line,l=e.lineStart,u=e.lineIndent,it(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=c,e.lineStart=l,e.lineIndent=u;break}}if(a&&($i(e,o,s,!1),Lb(e,f,e.line-c),o=s=e.position,a=!1),go(d)||(s=e.position+1),d=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return $i(e,o,s,!1),e.result.startPosition!=-1?(f.rawValue=e.input.substring(f.startPosition,f.endPosition),!0):(e.kind=p,e.result=m,!1)}function bJ(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;var o=dr.newScalar();for(o.singleQuoted=!0,e.kind="scalar",e.result=o,o.startPosition=e.position,e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if($i(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),o.endPosition=e.position,r===39)n=i=e.position,e.position++;else return!0;else zr(r)?($i(e,n,i,!0),Lb(e,o,it(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Mc(e)?ee(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position,o.endPosition=e.position);ee(e,"unexpected end of the stream within a single quoted scalar")}function vJ(e,t){var r,n,i,o,s,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;e.kind="scalar";var l=dr.newScalar();for(l.doubleQuoted=!0,e.result=l,l.startPosition=e.position,e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return $i(e,r,e.position,!0),e.position++,l.endPosition=e.position,l.rawValue=e.input.substring(l.startPosition,l.endPosition),!0;if(c===92){if($i(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),zr(c))it(e,!1,t);else if(c<256&&(e.allowAnyEscape?VT[c]:Cb[c]))l.value+=e.allowAnyEscape?Tb[c]:Rb[c],e.position++;else if((s=pJ(c))>0){for(i=s,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(s=uJ(c))>=0?o=(o<<4)+s:ee(e,"expected hexadecimal character");l.value+=mJ(o),e.position++}else ee(e,"unknown escape sequence");r=n=e.position}else zr(c)?($i(e,r,n,!0),Lb(e,l,it(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Mc(e)?ee(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}ee(e,"unexpected end of the stream within a double quoted scalar")}function xJ(e,t){var r=!0,n,i=e.tag,o,s=e.anchor,a,c,l,u,p,m,d,f,h;if(h=e.input.charCodeAt(e.position),h===91)c=93,p=!1,o=dr.newItems(),o.startPosition=e.position;else if(h===123)c=125,p=!0,o=dr.newMap(),o.startPosition=e.position;else return!1;for(e.anchor!==null&&(o.anchorId=e.anchor,e.anchorMap[e.anchor]=o),h=e.input.charCodeAt(++e.position);h!==0;){if(it(e,!0,t),h=e.input.charCodeAt(e.position),h===c)return e.position++,e.tag=i,e.anchor=s,e.kind=p?"mapping":"sequence",e.result=o,o.endPosition=e.position,!0;if(!r){var y=e.position;ee(e,"missed comma between flow collection entries"),e.position=y+1}if(d=m=f=null,l=u=!1,h===63&&(a=e.input.charCodeAt(e.position+1),sr(a)&&(l=u=!0,e.position++,it(e,!0,t))),n=e.line,zs(e,t,Sf,!1,!0),d=e.tag,m=e.result,it(e,!0,t),h=e.input.charCodeAt(e.position),(u||e.line===n)&&h===58&&(l=!0,h=e.input.charCodeAt(++e.position),it(e,!0,t),zs(e,t,Sf,!1,!0),f=e.result),p)Vs(e,o,d,m,f);else if(l){var b=Vs(e,null,d,m,f);b.parent=o,o.items.push(b)}else m&&(m.parent=o),o.items.push(m);o.endPosition=e.position+1,it(e,!0,t),h=e.input.charCodeAt(e.position),h===44?(r=!0,h=e.input.charCodeAt(++e.position)):r=!1}ee(e,"unexpected end of the stream within a flow collection")}function wJ(e,t){var r,n,i=Ab,o=!1,s=t,a=0,c=!1,l,u;if(u=e.input.charCodeAt(e.position),u===124)n=!1;else if(u===62)n=!0;else return!1;var p=dr.newScalar();for(e.kind="scalar",e.result=p,p.startPosition=e.position;u!==0;)if(u=e.input.charCodeAt(++e.position),u===43||u===45)Ab===i?i=u===43?qT:sJ:ee(e,"repeat of a chomping mode identifier");else if((l=fJ(u))>=0)l===0?ee(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ee(e,"repeat of an indentation width identifier"):(s=t+l-1,o=!0);else break;if(go(u)){do u=e.input.charCodeAt(++e.position);while(go(u));if(u===35)do u=e.input.charCodeAt(++e.position);while(!zr(u)&&u!==0)}for(;u!==0;){for(Mb(e),e.lineIndent=0,u=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&u===32;)e.lineIndent++,u=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),zr(u)){a++;continue}if(e.lineIndent<s){i===qT?p.value+=Oi.repeat(`
22
+ `){e.position--,e.position==i&&(e.position+=1);return}if(o=="\r"){e.position--,e.position==i&&(e.position+=1);return}e.position++}}}function Ib(e,t){var r=jb(e,t);e.onWarning&&e.onWarning.call(null,r)}var jT={YAML:function(t,r,n){var i,o,s;t.version!==null&&ee(t,"duplication of %YAML directive"),n.length!==1&&ee(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&ee(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&ee(t,"found incompatible YAML document (version 1.2 is required)"),t.version=n[0],t.checkLineBreaks=s<2,s!==2&&ee(t,"found incompatible YAML document (version 1.2 is required)")},TAG:function(t,r,n){var i,o;n.length!==2&&ee(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],BT.test(i)||ee(t,"ill-formed tag handle (first argument) of the TAG directive"),Of.call(t.tagMap,i)&&ee(t,'there is a previously declared suffix for "'+i+'" tag handle'),UT.test(o)||ee(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o}};function $i(e,t,r,n){var i,o,s,a,c=e.result;if(c.startPosition==-1&&(c.startPosition=t),t<=r){if(a=e.input.slice(t,r),n)for(i=0,o=a.length;i<o;i+=1)s=a.charCodeAt(i),s===9||32<=s&&s<=1114111||ee(e,"expected valid JSON character");else aJ.test(a)&&ee(e,"the stream contains non-printable characters");c.value+=a,c.endPosition=r}}function Vs(e,t,r,n,i){var o,s;if(n!=null){t===null&&(t={startPosition:n.startPosition,endPosition:i.endPosition,parent:null,errors:[],mappings:[],kind:dr.Kind.MAP});var a=dr.newMapping(n,i);return a.parent=t,n.parent=a,i!=null&&(i.parent=a),!e.ignoreDuplicateKeys&&t.mappings.forEach(function(c){c.key&&c.key.value===(a.key&&a.key.value)&&(Nb(e,a.key.startPosition,"duplicate key"),Nb(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(a),t.endPosition=i?i.endPosition:n.endPosition+1,t}}function Mb(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ee(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.lines.push({start:e.lineStart,line:e.line})}function yJ(e,t){for(var r,n=0;n<e.lines.length&&!(e.lines[n].start>t);n++)r=e.lines[n];return r||{start:0,line:0}}function it(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;go(i);)i===9&&e.errors.push(jb(e,"Using tabs can lead to unpredictable results",!0)),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Hr(i))for(Mb(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&Ib(e,"deficient indentation"),n}function Mc(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&e.input.charCodeAt(t+1)===r&&e.input.charCodeAt(t+2)===r&&(t+=3,r=e.input.charCodeAt(t),r===0||sr(r)))}function Lb(e,t,r){r===1?t.value+=" ":r>1&&(t.value+=Oi.repeat(`
23
+ `,r-1))}function gJ(e,t,r){var n,i,o,s,a,c,l,u,p=e.kind,m=e.result,d,f=dr.newScalar();if(f.plainScalar=!0,e.result=f,d=e.input.charCodeAt(e.position),sr(d)||Us(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),sr(i)||r&&Us(i)))return!1;for(e.kind="scalar",o=s=e.position,a=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),sr(i)||r&&Us(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),sr(n))break}else{if(e.position===e.lineStart&&Mc(e)||r&&Us(d))break;if(Hr(d))if(c=e.line,l=e.lineStart,u=e.lineIndent,it(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=c,e.lineStart=l,e.lineIndent=u;break}}if(a&&($i(e,o,s,!1),Lb(e,f,e.line-c),o=s=e.position,a=!1),go(d)||(s=e.position+1),d=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return $i(e,o,s,!1),e.result.startPosition!=-1?(f.rawValue=e.input.substring(f.startPosition,f.endPosition),!0):(e.kind=p,e.result=m,!1)}function bJ(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;var o=dr.newScalar();for(o.singleQuoted=!0,e.kind="scalar",e.result=o,o.startPosition=e.position,e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if($i(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),o.endPosition=e.position,r===39)n=i=e.position,e.position++;else return!0;else Hr(r)?($i(e,n,i,!0),Lb(e,o,it(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Mc(e)?ee(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position,o.endPosition=e.position);ee(e,"unexpected end of the stream within a single quoted scalar")}function vJ(e,t){var r,n,i,o,s,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;e.kind="scalar";var l=dr.newScalar();for(l.doubleQuoted=!0,e.result=l,l.startPosition=e.position,e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return $i(e,r,e.position,!0),e.position++,l.endPosition=e.position,l.rawValue=e.input.substring(l.startPosition,l.endPosition),!0;if(c===92){if($i(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),Hr(c))it(e,!1,t);else if(c<256&&(e.allowAnyEscape?VT[c]:Cb[c]))l.value+=e.allowAnyEscape?Tb[c]:Rb[c],e.position++;else if((s=pJ(c))>0){for(i=s,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(s=uJ(c))>=0?o=(o<<4)+s:ee(e,"expected hexadecimal character");l.value+=mJ(o),e.position++}else ee(e,"unknown escape sequence");r=n=e.position}else Hr(c)?($i(e,r,n,!0),Lb(e,l,it(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Mc(e)?ee(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}ee(e,"unexpected end of the stream within a double quoted scalar")}function xJ(e,t){var r=!0,n,i=e.tag,o,s=e.anchor,a,c,l,u,p,m,d,f,h;if(h=e.input.charCodeAt(e.position),h===91)c=93,p=!1,o=dr.newItems(),o.startPosition=e.position;else if(h===123)c=125,p=!0,o=dr.newMap(),o.startPosition=e.position;else return!1;for(e.anchor!==null&&(o.anchorId=e.anchor,e.anchorMap[e.anchor]=o),h=e.input.charCodeAt(++e.position);h!==0;){if(it(e,!0,t),h=e.input.charCodeAt(e.position),h===c)return e.position++,e.tag=i,e.anchor=s,e.kind=p?"mapping":"sequence",e.result=o,o.endPosition=e.position,!0;if(!r){var y=e.position;ee(e,"missed comma between flow collection entries"),e.position=y+1}if(d=m=f=null,l=u=!1,h===63&&(a=e.input.charCodeAt(e.position+1),sr(a)&&(l=u=!0,e.position++,it(e,!0,t))),n=e.line,zs(e,t,Sf,!1,!0),d=e.tag,m=e.result,it(e,!0,t),h=e.input.charCodeAt(e.position),(u||e.line===n)&&h===58&&(l=!0,h=e.input.charCodeAt(++e.position),it(e,!0,t),zs(e,t,Sf,!1,!0),f=e.result),p)Vs(e,o,d,m,f);else if(l){var b=Vs(e,null,d,m,f);b.parent=o,o.items.push(b)}else m&&(m.parent=o),o.items.push(m);o.endPosition=e.position+1,it(e,!0,t),h=e.input.charCodeAt(e.position),h===44?(r=!0,h=e.input.charCodeAt(++e.position)):r=!1}ee(e,"unexpected end of the stream within a flow collection")}function wJ(e,t){var r,n,i=Ab,o=!1,s=t,a=0,c=!1,l,u;if(u=e.input.charCodeAt(e.position),u===124)n=!1;else if(u===62)n=!0;else return!1;var p=dr.newScalar();for(e.kind="scalar",e.result=p,p.startPosition=e.position;u!==0;)if(u=e.input.charCodeAt(++e.position),u===43||u===45)Ab===i?i=u===43?qT:sJ:ee(e,"repeat of a chomping mode identifier");else if((l=fJ(u))>=0)l===0?ee(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ee(e,"repeat of an indentation width identifier"):(s=t+l-1,o=!0);else break;if(go(u)){do u=e.input.charCodeAt(++e.position);while(go(u));if(u===35)do u=e.input.charCodeAt(++e.position);while(!Hr(u)&&u!==0)}for(;u!==0;){for(Mb(e),e.lineIndent=0,u=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&u===32;)e.lineIndent++,u=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),Hr(u)){a++;continue}if(e.lineIndent<s){i===qT?p.value+=Oi.repeat(`
24
24
  `,a):i===Ab&&o&&(p.value+=`
25
25
  `);break}for(n?go(u)?(c=!0,p.value+=Oi.repeat(`
26
26
  `,a+1)):c?(c=!1,p.value+=Oi.repeat(`
27
27
  `,a+1)):a===0?o&&(p.value+=" "):p.value+=Oi.repeat(`
28
28
  `,a):o&&(p.value+=Oi.repeat(`
29
- `,a+1)),o=!0,a=0,r=e.position;!zr(u)&&u!==0;)u=e.input.charCodeAt(++e.position);$i(e,r,e.position,!1)}p.endPosition=e.position;for(var m=e.position-1,d=!1;;){var f=e.input[m];if(f=="\r"||f==`
30
- `){d&&m--;break}if(f!=" "&&f!=" ")break;m--}return p.endPosition=m,p.rawValue=e.input.substring(p.startPosition,p.endPosition),!0}function MT(e,t){var r,n=e.tag,i=e.anchor,o=dr.newItems(),s,a=!1,c;for(e.anchor!==null&&(o.anchorId=e.anchor,e.anchorMap[e.anchor]=o),o.startPosition=e.position,c=e.input.charCodeAt(e.position);c!==0&&!(c!==45||(s=e.input.charCodeAt(e.position+1),!sr(s)));){if(a=!0,e.position++,it(e,!0,-1)&&e.lineIndent<=t){o.items.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,zs(e,t,FT,!1,!0),e.result&&(e.result.parent=o,o.items.push(e.result)),it(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)ee(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o.endPosition=e.position,a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,o.endPosition=e.position,!0):!1}function SJ(e,t,r){var n,i,o,s=e.tag,a=e.anchor,c=dr.newMap(),l=null,u=null,p=null,m=!1,d=!1,f;for(c.startPosition=e.position,e.anchor!==null&&(c.anchorId=e.anchor,e.anchorMap[e.anchor]=c),f=e.input.charCodeAt(e.position);f!==0;){if(n=e.input.charCodeAt(e.position+1),o=e.line,(f===63||f===58)&&sr(n))f===63?(m&&(Vs(e,c,l,u,null),l=u=p=null),d=!0,m=!0,i=!0):m?(m=!1,i=!0):ee(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,f=n;else if(zs(e,r,DT,!1,!0))if(e.line===o){for(f=e.input.charCodeAt(e.position);go(f);)f=e.input.charCodeAt(++e.position);if(f===58)f=e.input.charCodeAt(++e.position),sr(f)||ee(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Vs(e,c,l,u,null),l=u=p=null),d=!0,m=!1,i=!1,l=e.tag,u=e.result;else{if(e.position==e.lineStart&&Mc(e))break;if(d)ee(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=s,e.anchor=a,!0}}else if(d){for(ee(e,"can not read a block mapping entry; a multiline key may not be an implicit key");e.position>0;)if(f=e.input.charCodeAt(--e.position),zr(f)){e.position++;break}}else return e.tag=s,e.anchor=a,!0;else break;if((e.line===o||e.lineIndent>t)&&(zs(e,t,_f,!0,i)&&(m?u=e.result:p=e.result),m||(Vs(e,c,l,u,p),l=u=p=null),it(e,!0,-1),f=e.input.charCodeAt(e.position)),e.lineIndent>t&&f!==0)ee(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&Vs(e,c,l,u,null),d&&(e.tag=s,e.anchor=a,e.kind="mapping",e.result=c),d}function _J(e){var t,r=!1,n=!1,i,o,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&ee(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(n=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(o=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):ee(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!sr(s);)s===33&&(n?ee(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),BT.test(i)||ee(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),lJ.test(o)&&ee(e,"tag suffix cannot contain flow indicator characters")}return o&&!UT.test(o)&&ee(e,"tag name cannot contain such characters: "+o),r?e.tag=o:Of.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:ee(e,'undeclared tag handle "'+i+'"'),!0}function OJ(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&ee(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!sr(r)&&!Us(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ee(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function $J(e){var t,r,n=e.length,i=e.input,o;if(o=e.input.charCodeAt(e.position),o!==42)return!1;for(o=e.input.charCodeAt(++e.position),t=e.position;o!==0&&!sr(o)&&!Us(o);)o=e.input.charCodeAt(++e.position);return e.position<=t&&(ee(e,"name of an alias node must contain at least one character"),e.position=t+1),r=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(r)||(ee(e,'unidentified alias "'+r+'"'),e.position<=t&&(e.position=t+1)),e.result=dr.newAnchorRef(r,t,e.position,e.anchorMap[r]),it(e,!0,-1),!0}function zs(e,t,r,n,i){var o,s,a,c=1,l=!1,u=!1,p,m,d,f,h,y;e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=_f===r||FT===r,n&&it(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1));var b=e.position,g=e.position-e.lineStart;if(c===1)for(;_J(e)||OJ(e);)it(e,!0,-1)?(l=!0,a=o,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):a=!1;if(a&&(a=l||i),(c===1||_f===r)&&(Sf===r||DT===r?f=t:f=t+1,h=e.position-e.lineStart,c===1?a&&(MT(e,h)||SJ(e,h,f))||xJ(e,f)?u=!0:(s&&wJ(e,f)||bJ(e,f)||vJ(e,f)?u=!0:$J(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&ee(e,"alias node should not have any properties")):gJ(e,f,Sf===r)&&(u=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result,e.result.anchorId=e.anchor)):c===0&&(u=a&&MT(e,h))),e.tag!==null&&e.tag!=="!")if(e.tag=="!include")e.result||(e.result=dr.newScalar(),e.result.startPosition=e.position,e.result.endPosition=e.position,ee(e,"!include without value")),e.result.kind=dr.Kind.INCLUDE_REF;else if(e.tag==="?")for(p=0,m=e.implicitTypes.length;p<m;p+=1){d=e.implicitTypes[p];var v=e.result.value;if(d.resolve(v)){e.result.valueObject=d.construct(e.result.value),e.tag=d.tag,e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result);break}}else Of.call(e.typeMap,e.tag)?(d=e.typeMap[e.tag],e.result!==null&&d.kind!==e.kind&&ee(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result)?(e.result=d.construct(e.result),e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result)):ee(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):Nb(e,b,"unknown tag <"+e.tag+">",!1,!0);return e.tag!==null||e.anchor!==null||u}function PJ(e){var t=e.position,r,n,i,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(s=e.input.charCodeAt(e.position))!==0&&(it(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!sr(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&ee(e,"directive name must not be less than one character in length");s!==0;){for(;go(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!zr(s));break}if(zr(s))break;for(r=e.position;s!==0&&!sr(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}s!==0&&Mb(e),Of.call(jT,n)?jT[n](e,n,i):(Ib(e,'unknown document directive "'+n+'"'),e.position++)}if(it(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,it(e,!0,-1)):o&&ee(e,"directives end mark is expected"),zs(e,e.lineIndent-1,_f,!1,!0),it(e,!0,-1),e.checkLineBreaks&&cJ.test(e.input.slice(t,e.position))&&Ib(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Mc(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,it(e,!0,-1));return}if(e.position<e.length-1)ee(e,"end of the stream or a document separator is expected");else return}function zT(e,t){e=String(e),t=t||{};var r=e.length;r!==0&&(e.charCodeAt(r-1)!==10&&e.charCodeAt(r-1)!==13&&(e+=`
29
+ `,a+1)),o=!0,a=0,r=e.position;!Hr(u)&&u!==0;)u=e.input.charCodeAt(++e.position);$i(e,r,e.position,!1)}p.endPosition=e.position;for(var m=e.position-1,d=!1;;){var f=e.input[m];if(f=="\r"||f==`
30
+ `){d&&m--;break}if(f!=" "&&f!=" ")break;m--}return p.endPosition=m,p.rawValue=e.input.substring(p.startPosition,p.endPosition),!0}function MT(e,t){var r,n=e.tag,i=e.anchor,o=dr.newItems(),s,a=!1,c;for(e.anchor!==null&&(o.anchorId=e.anchor,e.anchorMap[e.anchor]=o),o.startPosition=e.position,c=e.input.charCodeAt(e.position);c!==0&&!(c!==45||(s=e.input.charCodeAt(e.position+1),!sr(s)));){if(a=!0,e.position++,it(e,!0,-1)&&e.lineIndent<=t){o.items.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,zs(e,t,FT,!1,!0),e.result&&(e.result.parent=o,o.items.push(e.result)),it(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)ee(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o.endPosition=e.position,a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,o.endPosition=e.position,!0):!1}function SJ(e,t,r){var n,i,o,s=e.tag,a=e.anchor,c=dr.newMap(),l=null,u=null,p=null,m=!1,d=!1,f;for(c.startPosition=e.position,e.anchor!==null&&(c.anchorId=e.anchor,e.anchorMap[e.anchor]=c),f=e.input.charCodeAt(e.position);f!==0;){if(n=e.input.charCodeAt(e.position+1),o=e.line,(f===63||f===58)&&sr(n))f===63?(m&&(Vs(e,c,l,u,null),l=u=p=null),d=!0,m=!0,i=!0):m?(m=!1,i=!0):ee(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,f=n;else if(zs(e,r,DT,!1,!0))if(e.line===o){for(f=e.input.charCodeAt(e.position);go(f);)f=e.input.charCodeAt(++e.position);if(f===58)f=e.input.charCodeAt(++e.position),sr(f)||ee(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Vs(e,c,l,u,null),l=u=p=null),d=!0,m=!1,i=!1,l=e.tag,u=e.result;else{if(e.position==e.lineStart&&Mc(e))break;if(d)ee(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=s,e.anchor=a,!0}}else if(d){for(ee(e,"can not read a block mapping entry; a multiline key may not be an implicit key");e.position>0;)if(f=e.input.charCodeAt(--e.position),Hr(f)){e.position++;break}}else return e.tag=s,e.anchor=a,!0;else break;if((e.line===o||e.lineIndent>t)&&(zs(e,t,_f,!0,i)&&(m?u=e.result:p=e.result),m||(Vs(e,c,l,u,p),l=u=p=null),it(e,!0,-1),f=e.input.charCodeAt(e.position)),e.lineIndent>t&&f!==0)ee(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&Vs(e,c,l,u,null),d&&(e.tag=s,e.anchor=a,e.kind="mapping",e.result=c),d}function _J(e){var t,r=!1,n=!1,i,o,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&ee(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(n=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(o=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):ee(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!sr(s);)s===33&&(n?ee(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),BT.test(i)||ee(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),lJ.test(o)&&ee(e,"tag suffix cannot contain flow indicator characters")}return o&&!UT.test(o)&&ee(e,"tag name cannot contain such characters: "+o),r?e.tag=o:Of.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:ee(e,'undeclared tag handle "'+i+'"'),!0}function OJ(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&ee(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!sr(r)&&!Us(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ee(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function $J(e){var t,r,n=e.length,i=e.input,o;if(o=e.input.charCodeAt(e.position),o!==42)return!1;for(o=e.input.charCodeAt(++e.position),t=e.position;o!==0&&!sr(o)&&!Us(o);)o=e.input.charCodeAt(++e.position);return e.position<=t&&(ee(e,"name of an alias node must contain at least one character"),e.position=t+1),r=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(r)||(ee(e,'unidentified alias "'+r+'"'),e.position<=t&&(e.position=t+1)),e.result=dr.newAnchorRef(r,t,e.position,e.anchorMap[r]),it(e,!0,-1),!0}function zs(e,t,r,n,i){var o,s,a,c=1,l=!1,u=!1,p,m,d,f,h,y;e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=_f===r||FT===r,n&&it(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1));var b=e.position,g=e.position-e.lineStart;if(c===1)for(;_J(e)||OJ(e);)it(e,!0,-1)?(l=!0,a=o,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):a=!1;if(a&&(a=l||i),(c===1||_f===r)&&(Sf===r||DT===r?f=t:f=t+1,h=e.position-e.lineStart,c===1?a&&(MT(e,h)||SJ(e,h,f))||xJ(e,f)?u=!0:(s&&wJ(e,f)||bJ(e,f)||vJ(e,f)?u=!0:$J(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&ee(e,"alias node should not have any properties")):gJ(e,f,Sf===r)&&(u=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result,e.result.anchorId=e.anchor)):c===0&&(u=a&&MT(e,h))),e.tag!==null&&e.tag!=="!")if(e.tag=="!include")e.result||(e.result=dr.newScalar(),e.result.startPosition=e.position,e.result.endPosition=e.position,ee(e,"!include without value")),e.result.kind=dr.Kind.INCLUDE_REF;else if(e.tag==="?")for(p=0,m=e.implicitTypes.length;p<m;p+=1){d=e.implicitTypes[p];var v=e.result.value;if(d.resolve(v)){e.result.valueObject=d.construct(e.result.value),e.tag=d.tag,e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result);break}}else Of.call(e.typeMap,e.tag)?(d=e.typeMap[e.tag],e.result!==null&&d.kind!==e.kind&&ee(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result)?(e.result=d.construct(e.result),e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result)):ee(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):Nb(e,b,"unknown tag <"+e.tag+">",!1,!0);return e.tag!==null||e.anchor!==null||u}function PJ(e){var t=e.position,r,n,i,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(s=e.input.charCodeAt(e.position))!==0&&(it(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!sr(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&ee(e,"directive name must not be less than one character in length");s!==0;){for(;go(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!Hr(s));break}if(Hr(s))break;for(r=e.position;s!==0&&!sr(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}s!==0&&Mb(e),Of.call(jT,n)?jT[n](e,n,i):(Ib(e,'unknown document directive "'+n+'"'),e.position++)}if(it(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,it(e,!0,-1)):o&&ee(e,"directives end mark is expected"),zs(e,e.lineIndent-1,_f,!1,!0),it(e,!0,-1),e.checkLineBreaks&&cJ.test(e.input.slice(t,e.position))&&Ib(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Mc(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,it(e,!0,-1));return}if(e.position<e.length-1)ee(e,"end of the stream or a document separator is expected");else return}function zT(e,t){e=String(e),t=t||{};var r=e.length;r!==0&&(e.charCodeAt(r-1)!==10&&e.charCodeAt(r-1)!==13&&(e+=`
31
31
  `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new hJ(e,t);for(n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;){var i=n.position;if(PJ(n),n.position<=i)for(;n.position<n.length-1;n.position++){var o=n.input.charAt(n.position);if(o==`
32
32
  `)break}}var s=n.documents,a=s.length;a>0&&(s[a-1].endPosition=r);for(var c=0,l=s;c<l.length;c++){var u=l[c];u.errors=n.errors,u.startPosition>u.endPosition&&(u.startPosition=u.endPosition)}return s}function Db(e,t,r){r===void 0&&(r={});var n=zT(e,r),i,o;for(i=0,o=n.length;i<o;i+=1)t(n[i])}Hs.loadAll=Db;function Fb(e,t){t===void 0&&(t={});var r=zT(e,t),n,i;if(r.length!==0){if(r.length===1)return r[0];var o=new kb("expected a single document in the stream, but found more");return o.mark=new qb("","",0,0,0),o.mark.position=r[0].endPosition,r[0].errors.push(o),r[0]}}Hs.load=Fb;function HT(e,t,r){r===void 0&&(r={}),Db(e,t,Oi.extend({schema:LT},r))}Hs.safeLoadAll=HT;function KT(e,t){return t===void 0&&(t={}),Fb(e,Oi.extend({schema:LT},t))}Hs.safeLoad=KT;Lc.exports.loadAll=Db;Lc.exports.load=Fb;Lc.exports.safeLoadAll=HT;Lc.exports.safeLoad=KT});var e2=x(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});var Dc=yo(),Kb=Fs(),EJ=Eb(),AJ=wf(),Gb=Object.prototype.toString,JT=Object.prototype.hasOwnProperty,CJ=9,bo=10,RJ=13,Bb=32,TJ=33,Ub=34,NJ=35,IJ=37,kJ=38,Vb=39,qJ=42,jJ=44,MJ=45,LJ=58,DJ=62,FJ=63,BJ=64,UJ=91,VJ=93,zJ=96,HJ=123,KJ=124,GJ=125,yt={};yt[0]="\\0";yt[7]="\\a";yt[8]="\\b";yt[9]="\\t";yt[10]="\\n";yt[11]="\\v";yt[12]="\\f";yt[13]="\\r";yt[27]="\\e";yt[34]='\\"';yt[92]="\\\\";yt[133]="\\N";yt[160]="\\_";yt[8232]="\\L";yt[8233]="\\P";var YJ=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function WJ(e,t){var r,n,i,o,s,a,c;if(t===null)return{};for(r={},n=Object.keys(t),i=0,o=n.length;i<o;i+=1)s=n[i],a=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),c=e.compiledTypeMap[s],c&&JT.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[s]=a;return r}function XJ(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Kb("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Dc.repeat("0",n-t.length)+t}function JJ(e){this.schema=e.schema||EJ,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Dc.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=WJ(this.schema,e.styles||null),this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function YT(e,t){for(var r=Dc.repeat(" ",t),n=0,i=-1,o="",s,a=e.length;n<a;)i=e.indexOf(`
33
33
  `,n),i===-1?(s=e.slice(n),n=a):(s=e.slice(n,i+1),n=i+1),s.length&&s!==`
@@ -46,7 +46,7 @@ var Fq=Object.create;var vl=Object.defineProperty;var Bq=Object.getOwnPropertyDe
46
46
  `+e.slice(i+1):n+=e.slice(o),n}function tQ(e){return CJ!==e&&bo!==e&&RJ!==e&&jJ!==e&&UJ!==e&&VJ!==e&&HJ!==e&&GJ!==e&&NJ!==e&&kJ!==e&&qJ!==e&&TJ!==e&&KJ!==e&&DJ!==e&&Vb!==e&&Ub!==e&&IJ!==e&&LJ!==e&&!yt[e]&&!QT(e)}function QT(e){return!(32<=e&&e<=126||e===133||160<=e&&e<=55295||57344<=e&&e<=65533||65536<=e&&e<=1114111)}function rQ(e,t,r){var n="",i=e.tag,o,s;for(o=0,s=r.length;o<s;o+=1)vo(e,t,r[o],!1,!1)&&(o!==0&&(n+=", "),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function nQ(e,t,r,n){var i="",o=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)vo(e,t+1,r[s],!0,!0)&&((!n||s!==0)&&(i+=zb(e,t)),i+="- "+e.dump);e.tag=o,e.dump=i||"[]"}function iQ(e,t,r){var n="",i=e.tag,o=Object.keys(r),s,a,c,l,u;for(s=0,a=o.length;s<a;s+=1)u="",s!==0&&(u+=", "),c=o[s],l=r[c],vo(e,t,c,!1,!1)&&(e.dump.length>1024&&(u+="? "),u+=e.dump+": ",vo(e,t,l,!1,!1)&&(u+=e.dump,n+=u));e.tag=i,e.dump="{"+n+"}"}function oQ(e,t,r,n){var i="",o=e.tag,s=Object.keys(r),a,c,l,u,p,m;for(a=0,c=s.length;a<c;a+=1)m="",(!n||a!==0)&&(m+=zb(e,t)),l=s[a],u=r[l],vo(e,t+1,l,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&bo===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,p&&(m+=zb(e,t)),vo(e,t+1,u,!0,p)&&(e.dump&&bo===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,i+=m));e.tag=o,e.dump=i||"{}"}function XT(e,t,r){var n,i,o,s,a,c;for(i=r?e.explicitTypes:e.implicitTypes,o=0,s=i.length;o<s;o+=1)if(a=i[o],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(e.tag=r?a.tag:"?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,Gb.call(a.represent)==="[object Function]")n=a.represent(t,c);else if(JT.call(a.represent,c))n=a.represent[c](t,c);else throw new Kb("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}function vo(e,t,r,n,i){e.tag=null,e.dump=r,XT(e,r,!1)||XT(e,r,!0);var o=Gb.call(e.dump);n&&(n=0>e.flowLevel||e.flowLevel>t),(e.tag!==null&&e.tag!=="?"||e.indent!==2&&t>0)&&(i=!1);var s=o==="[object Object]"||o==="[object Array]",a,c;if(s&&(a=e.duplicates.indexOf(r),c=a!==-1),c&&e.usedDuplicates[a])e.dump="*ref_"+a;else{if(s&&c&&!e.usedDuplicates[a]&&(e.usedDuplicates[a]=!0),o==="[object Object]")n&&Object.keys(e.dump).length!==0?(oQ(e,t,e.dump,i),c&&(e.dump="&ref_"+a+(t===0?`
47
47
  `:"")+e.dump)):(iQ(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(o==="[object Array]")n&&e.dump.length!==0?(nQ(e,t,e.dump,i),c&&(e.dump="&ref_"+a+(t===0?`
48
48
  `:"")+e.dump)):(rQ(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&ZJ(e,e.dump,t);else{if(e.skipInvalid)return!1;throw new Kb("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function sQ(e,t){var r=[],n=[],i,o;for(Hb(e,r,n),i=0,o=n.length;i<o;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(o)}function Hb(e,t,r){var n=Gb.call(e),i,o,s;if(e!==null&&typeof e=="object")if(o=t.indexOf(e),o!==-1)r.indexOf(o)===-1&&r.push(o);else if(t.push(e),Array.isArray(e))for(o=0,s=e.length;o<s;o+=1)Hb(e[o],t,r);else for(i=Object.keys(e),o=0,s=i.length;o<s;o+=1)Hb(e[i[o]],t,r)}function ZT(e,t){t=t||{};var r=new JJ(t);return sQ(e,r),vo(r,0,e,!0,!0)?r.dump+`
49
- `:""}Pf.dump=ZT;function aQ(e,t){return ZT(e,Dc.extend({schema:AJ},t))}Pf.safeDump=aQ});var t2=x(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});function cQ(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw'Invalid boolean "'+e+'"'}Pi.parseYamlBoolean=cQ;function lQ(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function uQ(e){var t=lQ(e);if(isNaN(t))throw'Invalid integer "'+e+'"';return t}Pi.parseYamlInteger=uQ;function pQ(e){if([".nan",".NaN",".NAN"].lastIndexOf(e)>=0)return NaN;var t=/^([-+])?(?:\.inf|\.Inf|\.INF)$/,r=t.exec(e);if(r)return r[1]==="-"?-1/0:1/0;var n=parseFloat(e);if(!isNaN(n))return n;throw'Invalid float "'+e+'"'}Pi.parseYamlFloat=pQ;var qn;(function(e){e[e.null=0]="null",e[e.bool=1]="bool",e[e.int=2]="int",e[e.float=3]="float",e[e.string=4]="string"})(qn=Pi.ScalarType||(Pi.ScalarType={}));function fQ(e){if(e===void 0)return qn.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return qn.string;var t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return qn.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return qn.bool;var r=/^[-+]?[0-9]+$/,n=/^0o[0-7]+$/,i=/^0x[0-9a-fA-F]+$/;if(r.test(t)||n.test(t)||i.test(t))return qn.int;var o=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,s=/^[-+]?(\.inf|\.Inf|\.INF)$/;return o.test(t)||s.test(t)||[".nan",".NaN",".NAN"].indexOf(t)>=0?qn.float:qn.string}Pi.determineScalarType=fQ});var i2=x(Hr=>{"use strict";function r2(e){for(var t in e)Hr.hasOwnProperty(t)||(Hr[t]=e[t])}Object.defineProperty(Hr,"__esModule",{value:!0});var Ef=GT();Hr.load=Ef.load;Hr.loadAll=Ef.loadAll;Hr.safeLoad=Ef.safeLoad;Hr.safeLoadAll=Ef.safeLoadAll;var n2=e2();Hr.dump=n2.dump;Hr.safeDump=n2.safeDump;Hr.YAMLException=Fs();r2(jc());r2(t2())});var l2=x((Jbe,c2)=>{"use strict";function gQ(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:function(t){setTimeout(t,0)}}c2.exports=gQ()});var f2=x((Qbe,p2)=>{"use strict";var u2=l2();p2.exports=function(t,r){if(t){r.then(function(n){u2(function(){t(null,n)})},function(n){u2(function(){t(n)})});return}else return r}});var Wb=x((Zbe,m2)=>{var Yb=class{constructor(t,r){this.cb=t,this.delay=r,this.timers={},this.pausers={}}setDelay(t){t>=0&&(this.delay=t)}pause(t){this.pausers[t]=this.pausers[t]||0,this.pausers[t]++}unpause(t){var r=this.pausers[t]||0;r>0&&r--,this.pausers[t]=r}unpauseAndTime(t){this.unpause(t),this.time(t)}time(t){var r=this,n=this.timers,i=this.timers[t];this.pausers[t]>0||(i&&clearTimeout(i),n[t]=setTimeout(function(){r.cb(t),delete n[t]},r.delay))}},Af=class extends TypeError{constructor(t,r,n){let i=t.includes(".")?"property":"argument",o=`The "${t}" ${i} ${determiner} ${r}`}};function d2(e,t,r="Object"){if(e!==void 0&&(e===null||typeof e!="object"||Array.isArray(e))){let n=new Af(t,r,e);throw Error.captureStackTrace(n,d2),n}}m2.exports={ERR_INVALID_ARG_TYPE:Af,assertIsObject:d2,DebounceTimers:Yb}});var g2=x((eve,y2)=>{var{assertIsObject:h2}=Wb();function bQ(e){return h2(e,"options"),e=Object.assign({},e),e.allowHalfOpen=!0,e.rejectUnauthorized=!1,h2(e.settings,"options.settings"),e.settings=Object.assign({},e.settings),e.Http1IncomingMessage=e.Http1IncomingMessage||this.http.IncomingMessage,e.Http1ServerResponse=e.Http1ServerResponse||this.http.ServerResponse,e.Http2ServerRequest=e.Http2ServerRequest||(this.http2||{}).Http2ServerRequest,e.Http2ServerResponse=e.Http2ServerResponse||(this.http2||{}).Http2ServerResponse,e}function vQ(e,t){e=bQ.call(this,e);var r=e.ALPNProtocols=[];return this.http2Support&&r.push("h2"),(e.allowHTTP1==!0||!this.http2Support)&&r.push("http/1.1"),t!==void 0&&e.servername===void 0&&(e.servername=t),e}y2.exports={initializeTLSOptions:vQ}});var Nf=x((rve,w2)=>{var{URL:Cf}=require("url"),{EventEmitter:v2}=require("events"),Rf=require("util")._extend,{DebounceTimers:xQ,assertIsObject:b2,ERR_INVALID_ARG_TYPE:tve}=Wb(),{initializeTLSOptions:wQ}=g2(),Fc=require("http"),Xb=require("https"),{Stream:SQ}=require("stream");function Tf(e,t){let r=t.prototype;Object.keys(r).forEach(n=>{e.indexOf(n)==-1&&n.indexOf("_")!=0&&typeof r[n]=="function"&&e.push(n)})}var jn=[];Tf(jn,Fc.ClientRequest);Tf(jn,Fc.OutgoingMessage);Tf(jn,v2);Tf(jn,SQ);var _Q=["httpVersionMajor","httpVersionMinor","httpVersion"],OQ=["host","connection"],Ei=Symbol("stubs");function Bc(){this.http2Mimic=!0,this[Ei]=[];for(var e=0;e<jn.length;e++){let l=jn[e];Bc.prototype[l]||(this[l]=function(){return this.genericStubber(l,arguments)}.bind(this))}var t,r,n,i;let o=arguments[0]instanceof Uc;var s,a;if(o){let l=arguments[0];l.method&&(s=l.method),l.protocol&&(a=l.protocol)}if(o?i=arguments[0].args:i=arguments,i[2]!=null?(n=i[0],t=i[1],r=i[2]):i[1]==null?t=i[0]:(t=i[0],r=i[1]),r=r||function(){},typeof t=="string"){if(t=Jb(new Cf(t)),!t.hostname)throw new Error("Unable to determine the domain name")}else n?t=Rf(Jb(new Cf(n)),t):t=Rf({},t);a!=a&&(t.protocol=a),t.protocol=="https:"&&!t.port&&t.port!=0&&(t.port=443),!t.port&&t.port!=0&&(t.port=80),s?t.method=s:t.method||(t.method="GET"),t.method=t.method.toUpperCase(),(t.requestManager||this.getGlobalManager(t)).handleClientRequest(this,t,r)}Bc.prototype={getGlobalManager(e){return e.agent?e.agent.protocol=="https:"?Ci.globalManager:Ri.globalManager:Ai.globalManager},genericStubber(e,t){return this[Ei]?(this[Ei].push([e,t]),!0):this[e](...arguments)},on(e,t){e=="response"&&(t.http2Safe||(e="http1.response",arguments[0]=e)),this._on?this._on(...arguments):this.genericStubber("on",arguments)},once(e,t){e=="response"&&(t.http2Safe||(e="http1.response")),this._once?this._once(...arguments):this.genericStubber("once",arguments)},emitError(e){if(this[Ei])this[Ei].forEach(([t,r])=>{(t==="on"||t==="once")&&r[0]==="error"&&r[1](e)});else return this.emit("error",e)},take(e){for(var t=0;t<jn.length;t++){let n=jn[t];e[n]&&(this[n]=e[n].bind(e))}this._on=e.on.bind(e),this._once=e.once.bind(e),this.proxyProps(e);for(let n=0;n<this[Ei].length;n++){var r=this[Ei][n];e[r[0]](...r[1])}this[Ei]=null},proxyProps(e){function t(){return e[this]}function r(c){e[this]=c}let n=["on","_on","_once","once","http2Mimic"].concat(jn),i=Object.keys(this),o=[].concat(_Q);i.forEach(function(l){n.indexOf(l)==-1&&o.indexOf(l)==-1&&o.push(l)});let s=Object.getOwnPropertyDescriptors(e);for(var a=0;a<o.length;a++){let c=o[a],l=s[c],u;l||(u=!0),l&&(l.writable||l)&&(u=!0),u&&(e[c]=this[c]),Object.defineProperty(this,c,{get:t.bind(c),set:r.bind(c)})}}};var Ai=class e extends v2{constructor(t){super(),this.httpsAgent=Xb.globalAgent,this.httpAgent=Fc.globalAgent,this.init(t)}log(){}init(t){t=t||{},this.http2Clients={},this.cachedHTTP1Result={},this.setModules(),this.http2Debouncer=new xQ(function(n){this.log("stopping ",n);var i=this.http2Clients[n];i&&this.removeHttp2Client(n,i)}.bind(this),1e3),this.keepH1IdentificationCacheFor=t.keepH1IdentificationCacheFor||3e4,this.http2Debouncer.setDelay(t.keepH2ConnectionFor),t.useHttp?this.enforceProtocol="http:":t.useHttps&&(this.enforceProtocol="https:")}setModules(){this.http=require("http"),this.https=require("https"),this.tls=require("tls"),this.net=require("net"),this.http2Support=!1;try{this.http2=require("http2"),this.http2Support=!0}catch{}}handleClientRequest(t,r,n){let i=this,o=i.getClientKey(r);if(i.hasCachedConnection(o)){let s=i.getHttp2Client(o),a={createConnection(){return s}};process.nextTick(function(){i.makeRequest(t,o,r,n,a)}.bind(i))}else i.holdConnectionToIdentification(o,r,function(a,c){if(a){t.emitError(a);return}i.makeRequest(t,o,r,n,c)}.bind(i))}getClientKey(t){return`${t.protocol||this.enforceProtocol}${t.servername||t.host||t.hostname}:${t.port}`}getHttp2Client(t){return this.http2Clients[t]}setHttp2Client(t,r){let n=this,i=n.http2Clients[t];i&&n.removeHttp2Client(t,i),n.http2Clients[t]=r;function o(){n.removeHttp2Client(t,r)}r.on("close",o),r.on("goaway",o),r.on("error",o),r.on("frameError",o),r.on("timeout",o)}removeHttp2Client(t,r){try{delete this.http2Clients[t],r.closed||r.close()}catch{}r.removeAllListeners("close"),r.removeAllListeners("error"),r.removeAllListeners("frameError"),r.removeAllListeners("timeout")}request(t,r,n){var i=new Uc(arguments);return this.enforceProtocol&&(i.protocol=this.enforceProtocol),new Bc(i)}get(){var t=new Uc(arguments);t.method="GET";var r=this.request(t);return r.end(),r}hasCachedConnection(t){return this.getHttp2Client(t)?!0:this.cachedHTTP1Result[t]+this.keepH1IdentificationCacheFor<Date.now()}makeRequest(t,r,n,i,o){let s=this.getHttp2Client(r);return s?this.makeHttp2Request(r,t,s,Object.assign(o||{},n),i):(n.agent||(n.protocol=="https:"?n.agent=this.httpsAgent:n.agent=this.httpAgent),this.makeHttpRequest(r,t,n,i,o))}holdConnectionToIdentification(t,r,n){let i=`identify-${t}`;if(this._events[i])this.once(i,n);else{this.once(i,function(){});let o=this.identifyConnection(r,function(a,c){if(a)return n(a);var l={createConnection(){return o}};if(c=="h2"&&this.http2Support){var u=this.http2.connect(r,l);this.setHttp2Client(t,u)}else this.cachedHTTP1Result[t]=Date.now();n(null,l),this.emit(i,l)}.bind(this))}}makeHttpRequest(t,r,n,i,o){n instanceof Cf&&(n=Jb(n));let s=Rf({},n);o&&(s.createConnection=o.createConnection);let c=(s.protocol=="https:"?this.https:this.http).request(s,i);r.take(c),r._on("response",function(u){this.emit("http1.response",u)})}makeHttp2Request(t,r,n,i,o){var s=this.http2Debouncer;s.pause(t);var a=Rf({},i.headers||{});i.method&&(a[":method"]=i.method),i.path&&(a[":path"]=i.path),Object.keys(a).forEach(m=>{OQ.indexOf((m+"").toLowerCase())!=-1&&delete a[m]}),i.headers=a;var c=n.request(a);r.emit("socket",i.createConnection());let l,u=0;c.on("data",function(d){u+=d.length,u>=l&&s.unpauseAndTime(t)}),r.take(c);function p(m){l=parseInt(m["content-length"]),l<0&&this.http2Debouncer.unpauseAndTime(t),e.httpCompatibleResponse(c,i,m),r.emit("http1.response",c),o&&o(c)}p.http2Safe=!0,c.once("response",p.bind(this))}static httpCompatibleResponse(t,r,n){t.httpVersion="2.0",t.rawHeaders=n,t.headers=n,t.statusCode=n[":status"],delete n[":status"]}identifyConnection(t,r){var n=this.connect(t,{allowHTTP1:!0},function(){n.removeListener("error",r),n.alpnProtocol=="h2"?r(null,"h2"):(n.end(),r(null,"h1"))});return n.on("error",r),n}connect(t,r,n){typeof r=="function"&&(n=r,r=void 0),b2(r,"options"),r=Object.assign({},r),typeof t=="string"&&(t=new Cf(t)),b2(t,"authority",["string","Object","URL"]);var i=t.protocol||r.protocol||(this.enforceProtocol!="detect"?this.enforceProtocol:null)||"http:",o=""+(t.port!==""?t.port:t.protocol==="http:"?80:443),s=t.hostname||t.host||"localhost",a;if(typeof r.createConnection=="function")a=r.createConnection(t,r);else switch(i){case"http:":a=this.net.connect(o,s,n);break;case"https:":a=this.tls.connect(o,s,wQ.call(this,r,s),n);break;default:throw new Error("Not supprted"+i)}return a}};function Jb(e){var t={protocol:e.protocol,hostname:e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:`${e.pathname}${e.search}`,href:e.href};return e.port!==""&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=`${e.username}:${e.password}`),t}var Uc=class e{constructor(t){if(t[0]instanceof e)return t[0];this.args=t,this.method=null,this.protocol=null}},Ci=class extends Ai{constructor(){super(...arguments),this.Agent=Xb.Agent,this.globalAgent=Xb.globalAgent,this.enforceProtocol="https:"}},$Q=new Ci;Ci.globalManager=$Q;Ci.Manager=Ci;var Ri=class extends Ai{constructor(){super(...arguments),this.Agent=Fc.Agent,this.globalAgent=Fc.globalAgent,this.enforceProtocol="http:"}},PQ=new Ri;Ri.globalManager=PQ;Ri.Manager=Ri;var x2=new Ai;x2.enforceProtocol="detect";Ai.globalManager=x2;w2.exports={HttpRequest:Ri,HttpsRequest:Ci,HTTP2OutgoingMessage:Bc,ClientRequest:Bc,HttpRequestManager:Ai}});var _2=x((nve,S2)=>{var{HttpRequest:EQ,ClientRequest:AQ}=Nf(),Vc=EQ.globalManager,CQ=Vc.request.bind(Vc),RQ=Vc.get.bind(Vc),TQ=Object.assign({},require("http"));S2.exports=Object.assign(TQ,{ClientRequest:AQ,globalManager:Vc,request:CQ,get:RQ})});var $2=x((ive,O2)=>{var{HttpsRequest:NQ,ClientRequest:IQ}=Nf(),zc=NQ.globalManager,kQ=zc.request.bind(zc),qQ=zc.get.bind(zc),jQ=Object.assign({},require("https"));O2.exports=Object.assign(jQ,{ClientRequest:IQ,globalManager:zc,request:kQ,get:qQ})});var E2=x((ove,P2)=>{var{HttpRequestManager:Qb,HTTP2OutgoingMessage:MQ,ClientRequest:LQ}=Nf(),DQ=_2(),FQ=$2(),Hc=new Qb;Qb.globalManager=Hc;var BQ=Hc.request.bind(Hc),UQ=Hc.get.bind(Hc);P2.exports={HTTP2OutgoingMessage:MQ,ClientRequest:LQ,globalManager:Qb.globalManager,request:BQ,get:UQ,http:DQ,https:FQ}});var Mn=x((sve,A2)=>{"use strict";var If=require("buffer"),Ks=If.Buffer,Cr={},Rr;for(Rr in If)If.hasOwnProperty(Rr)&&(Rr==="SlowBuffer"||Rr==="Buffer"||(Cr[Rr]=If[Rr]));var Gs=Cr.Buffer={};for(Rr in Ks)Ks.hasOwnProperty(Rr)&&(Rr==="allocUnsafe"||Rr==="allocUnsafeSlow"||(Gs[Rr]=Ks[Rr]));Cr.Buffer.prototype=Ks.prototype;(!Gs.from||Gs.from===Uint8Array.from)&&(Gs.from=function(e,t,r){if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&typeof e.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return Ks(e,t,r)});Gs.alloc||(Gs.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=Ks(e);return!t||t.length===0?n.fill(0):typeof r=="string"?n.fill(t,r):n.fill(t),n});if(!Cr.kStringMaxLength)try{Cr.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}Cr.constants||(Cr.constants={MAX_LENGTH:Cr.kMaxLength},Cr.kStringMaxLength&&(Cr.constants.MAX_STRING_LENGTH=Cr.kStringMaxLength));A2.exports=Cr});var R2=x(tv=>{"use strict";var C2="\uFEFF";tv.PrependBOM=Zb;function Zb(e,t){this.encoder=e,this.addBOM=!0}Zb.prototype.write=function(e){return this.addBOM&&(e=C2+e,this.addBOM=!1),this.encoder.write(e)};Zb.prototype.end=function(){return this.encoder.end()};tv.StripBOM=ev;function ev(e,t){this.decoder=e,this.pass=!1,this.options=t||{}}ev.prototype.write=function(e){var t=this.decoder.write(e);return this.pass||!t||(t[0]===C2&&(t=t.slice(1),typeof this.options.stripBOM=="function"&&this.options.stripBOM()),this.pass=!0),t};ev.prototype.end=function(){return this.decoder.end()}});var N2=x((cve,T2)=>{"use strict";var xo=Mn().Buffer;T2.exports={utf8:{type:"_internal",bomAware:!0},cesu8:{type:"_internal",bomAware:!0},unicode11utf8:"utf8",ucs2:{type:"_internal",bomAware:!0},utf16le:"ucs2",binary:{type:"_internal"},base64:{type:"_internal"},hex:{type:"_internal"},_internal:nv};function nv(e,t){this.enc=e.encodingName,this.bomAware=e.bomAware,this.enc==="base64"?this.encoder=sv:this.enc==="cesu8"&&(this.enc="utf8",this.encoder=av,xo.from("eda0bdedb2a9","hex").toString()!=="\u{1F4A9}"&&(this.decoder=cv,this.defaultCharUnicode=t.defaultCharUnicode))}nv.prototype.encoder=ov;nv.prototype.decoder=iv;var rv=require("string_decoder").StringDecoder;rv.prototype.end||(rv.prototype.end=function(){});function iv(e,t){this.decoder=new rv(t.enc)}iv.prototype.write=function(e){return xo.isBuffer(e)||(e=xo.from(e)),this.decoder.write(e)};iv.prototype.end=function(){return this.decoder.end()};function ov(e,t){this.enc=t.enc}ov.prototype.write=function(e){return xo.from(e,this.enc)};ov.prototype.end=function(){};function sv(e,t){this.prevStr=""}sv.prototype.write=function(e){e=this.prevStr+e;var t=e.length-e.length%4;return this.prevStr=e.slice(t),e=e.slice(0,t),xo.from(e,"base64")};sv.prototype.end=function(){return xo.from(this.prevStr,"base64")};function av(e,t){}av.prototype.write=function(e){for(var t=xo.alloc(e.length*3),r=0,n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t[r++]=i:i<2048?(t[r++]=192+(i>>>6),t[r++]=128+(i&63)):(t[r++]=224+(i>>>12),t[r++]=128+(i>>>6&63),t[r++]=128+(i&63))}return t.slice(0,r)};av.prototype.end=function(){};function cv(e,t){this.acc=0,this.contBytes=0,this.accBytes=0,this.defaultCharUnicode=t.defaultCharUnicode}cv.prototype.write=function(e){for(var t=this.acc,r=this.contBytes,n=this.accBytes,i="",o=0;o<e.length;o++){var s=e[o];(s&192)!==128?(r>0&&(i+=this.defaultCharUnicode,r=0),s<128?i+=String.fromCharCode(s):s<224?(t=s&31,r=1,n=1):s<240?(t=s&15,r=2,n=1):i+=this.defaultCharUnicode):r>0?(t=t<<6|s&63,r--,n++,r===0&&(n===2&&t<128&&t>0?i+=this.defaultCharUnicode:n===3&&t<2048?i+=this.defaultCharUnicode:i+=String.fromCharCode(t))):i+=this.defaultCharUnicode}return this.acc=t,this.contBytes=r,this.accBytes=n,i};cv.prototype.end=function(){var e=0;return this.contBytes>0&&(e+=this.defaultCharUnicode),e}});var q2=x(Ti=>{"use strict";var kf=Mn().Buffer;Ti._utf32=lv;function lv(e,t){this.iconv=t,this.bomAware=!0,this.isLE=e.isLE}Ti.utf32le={type:"_utf32",isLE:!0};Ti.utf32be={type:"_utf32",isLE:!1};Ti.ucs4le="utf32le";Ti.ucs4be="utf32be";lv.prototype.encoder=uv;lv.prototype.decoder=pv;function uv(e,t){this.isLE=t.isLE,this.highSurrogate=0}uv.prototype.write=function(e){for(var t=kf.from(e,"ucs2"),r=kf.alloc(t.length*2),n=this.isLE?r.writeUInt32LE:r.writeUInt32BE,i=0,o=0;o<t.length;o+=2){var s=t.readUInt16LE(o),a=55296<=s&&s<56320,c=56320<=s&&s<57344;if(this.highSurrogate)if(a||!c)n.call(r,this.highSurrogate,i),i+=4;else{var l=(this.highSurrogate-55296<<10|s-56320)+65536;n.call(r,l,i),i+=4,this.highSurrogate=0;continue}a?this.highSurrogate=s:(n.call(r,s,i),i+=4,this.highSurrogate=0)}return i<r.length&&(r=r.slice(0,i)),r};uv.prototype.end=function(){if(this.highSurrogate){var e=kf.alloc(4);return this.isLE?e.writeUInt32LE(this.highSurrogate,0):e.writeUInt32BE(this.highSurrogate,0),this.highSurrogate=0,e}};function pv(e,t){this.isLE=t.isLE,this.badChar=t.iconv.defaultCharUnicode.charCodeAt(0),this.overflow=[]}pv.prototype.write=function(e){if(e.length===0)return"";var t=0,r=0,n=kf.alloc(e.length+4),i=0,o=this.isLE,s=this.overflow,a=this.badChar;if(s.length>0){for(;t<e.length&&s.length<4;t++)s.push(e[t]);s.length===4&&(o?r=s[t]|s[t+1]<<8|s[t+2]<<16|s[t+3]<<24:r=s[t+3]|s[t+2]<<8|s[t+1]<<16|s[t]<<24,s.length=0,i=I2(n,i,r,a))}for(;t<e.length-3;t+=4)o?r=e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24:r=e[t+3]|e[t+2]<<8|e[t+1]<<16|e[t]<<24,i=I2(n,i,r,a);for(;t<e.length;t++)s.push(e[t]);return n.slice(0,i).toString("ucs2")};function I2(e,t,r,n){if((r<0||r>1114111)&&(r=n),r>=65536){r-=65536;var i=55296|r>>10;e[t++]=i&255,e[t++]=i>>8;var r=56320|r&1023}return e[t++]=r&255,e[t++]=r>>8,t}pv.prototype.end=function(){this.overflow.length=0};Ti.utf32=fv;Ti.ucs4="utf32";function fv(e,t){this.iconv=t}fv.prototype.encoder=dv;fv.prototype.decoder=mv;function dv(e,t){e=e||{},e.addBOM===void 0&&(e.addBOM=!0),this.encoder=t.iconv.getEncoder(e.defaultEncoding||"utf-32le",e)}dv.prototype.write=function(e){return this.encoder.write(e)};dv.prototype.end=function(){return this.encoder.end()};function mv(e,t){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=e||{},this.iconv=t.iconv}mv.prototype.write=function(e){if(!this.decoder){if(this.initialBufs.push(e),this.initialBufsLen+=e.length,this.initialBufsLen<32)return"";var t=k2(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(t,this.options);for(var r="",n=0;n<this.initialBufs.length;n++)r+=this.decoder.write(this.initialBufs[n]);return this.initialBufs.length=this.initialBufsLen=0,r}return this.decoder.write(e)};mv.prototype.end=function(){if(!this.decoder){var e=k2(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(e,this.options);for(var t="",r=0;r<this.initialBufs.length;r++)t+=this.decoder.write(this.initialBufs[r]);var n=this.decoder.end();return n&&(t+=n),this.initialBufs.length=this.initialBufsLen=0,t}return this.decoder.end()};function k2(e,t){var r=[],n=0,i=0,o=0,s=0,a=0;e:for(var c=0;c<e.length;c++)for(var l=e[c],u=0;u<l.length;u++)if(r.push(l[u]),r.length===4){if(n===0){if(r[0]===255&&r[1]===254&&r[2]===0&&r[3]===0)return"utf-32le";if(r[0]===0&&r[1]===0&&r[2]===254&&r[3]===255)return"utf-32be"}if((r[0]!==0||r[1]>16)&&o++,(r[3]!==0||r[2]>16)&&i++,r[0]===0&&r[1]===0&&(r[2]!==0||r[3]!==0)&&a++,(r[0]!==0||r[1]!==0)&&r[2]===0&&r[3]===0&&s++,r.length=0,n++,n>=100)break e}return a-o>s-i?"utf-32be":a-o<s-i?"utf-32le":t||"utf-32le"}});var L2=x(xv=>{"use strict";var j2=Mn().Buffer;xv.utf16be=qf;function qf(){}qf.prototype.encoder=hv;qf.prototype.decoder=yv;qf.prototype.bomAware=!0;function hv(){}hv.prototype.write=function(e){for(var t=j2.from(e,"ucs2"),r=0;r<t.length;r+=2){var n=t[r];t[r]=t[r+1],t[r+1]=n}return t};hv.prototype.end=function(){};function yv(){this.overflowByte=-1}yv.prototype.write=function(e){if(e.length==0)return"";var t=j2.alloc(e.length+1),r=0,n=0;for(this.overflowByte!==-1&&(t[0]=e[0],t[1]=this.overflowByte,r=1,n=2);r<e.length-1;r+=2,n+=2)t[n]=e[r+1],t[n+1]=e[r];return this.overflowByte=r==e.length-1?e[e.length-1]:-1,t.slice(0,n).toString("ucs2")};yv.prototype.end=function(){this.overflowByte=-1};xv.utf16=gv;function gv(e,t){this.iconv=t}gv.prototype.encoder=bv;gv.prototype.decoder=vv;function bv(e,t){e=e||{},e.addBOM===void 0&&(e.addBOM=!0),this.encoder=t.iconv.getEncoder("utf-16le",e)}bv.prototype.write=function(e){return this.encoder.write(e)};bv.prototype.end=function(){return this.encoder.end()};function vv(e,t){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=e||{},this.iconv=t.iconv}vv.prototype.write=function(e){if(!this.decoder){if(this.initialBufs.push(e),this.initialBufsLen+=e.length,this.initialBufsLen<16)return"";var t=M2(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(t,this.options);for(var r="",n=0;n<this.initialBufs.length;n++)r+=this.decoder.write(this.initialBufs[n]);return this.initialBufs.length=this.initialBufsLen=0,r}return this.decoder.write(e)};vv.prototype.end=function(){if(!this.decoder){var e=M2(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(e,this.options);for(var t="",r=0;r<this.initialBufs.length;r++)t+=this.decoder.write(this.initialBufs[r]);var n=this.decoder.end();return n&&(t+=n),this.initialBufs.length=this.initialBufsLen=0,t}return this.decoder.end()};function M2(e,t){var r=[],n=0,i=0,o=0;e:for(var s=0;s<e.length;s++)for(var a=e[s],c=0;c<a.length;c++)if(r.push(a[c]),r.length===2){if(n===0){if(r[0]===255&&r[1]===254)return"utf-16le";if(r[0]===254&&r[1]===255)return"utf-16be"}if(r[0]===0&&r[1]!==0&&o++,r[0]!==0&&r[1]===0&&i++,r.length=0,n++,n>=100)break e}return o>i?"utf-16be":o<i?"utf-16le":t||"utf-16le"}});var F2=x(Lf=>{"use strict";var dn=Mn().Buffer;Lf.utf7=jf;Lf.unicode11utf7="utf7";function jf(e,t){this.iconv=t}jf.prototype.encoder=Sv;jf.prototype.decoder=_v;jf.prototype.bomAware=!0;var VQ=/[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;function Sv(e,t){this.iconv=t.iconv}Sv.prototype.write=function(e){return dn.from(e.replace(VQ,function(t){return"+"+(t==="+"?"":this.iconv.encode(t,"utf16-be").toString("base64").replace(/=+$/,""))+"-"}.bind(this)))};Sv.prototype.end=function(){};function _v(e,t){this.iconv=t.iconv,this.inBase64=!1,this.base64Accum=""}var zQ=/[A-Za-z0-9\/+]/,Ov=[];for(Kc=0;Kc<256;Kc++)Ov[Kc]=zQ.test(String.fromCharCode(Kc));var Kc,HQ=43,wo=45,wv=38;_v.prototype.write=function(e){for(var t="",r=0,n=this.inBase64,i=this.base64Accum,o=0;o<e.length;o++)if(!n)e[o]==HQ&&(t+=this.iconv.decode(e.slice(r,o),"ascii"),r=o+1,n=!0);else if(!Ov[e[o]]){if(o==r&&e[o]==wo)t+="+";else{var s=i+this.iconv.decode(e.slice(r,o),"ascii");t+=this.iconv.decode(dn.from(s,"base64"),"utf16-be")}e[o]!=wo&&o--,r=o+1,n=!1,i=""}if(!n)t+=this.iconv.decode(e.slice(r),"ascii");else{var s=i+this.iconv.decode(e.slice(r),"ascii"),a=s.length-s.length%8;i=s.slice(a),s=s.slice(0,a),t+=this.iconv.decode(dn.from(s,"base64"),"utf16-be")}return this.inBase64=n,this.base64Accum=i,t};_v.prototype.end=function(){var e="";return this.inBase64&&this.base64Accum.length>0&&(e=this.iconv.decode(dn.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",e};Lf.utf7imap=Mf;function Mf(e,t){this.iconv=t}Mf.prototype.encoder=$v;Mf.prototype.decoder=Pv;Mf.prototype.bomAware=!0;function $v(e,t){this.iconv=t.iconv,this.inBase64=!1,this.base64Accum=dn.alloc(6),this.base64AccumIdx=0}$v.prototype.write=function(e){for(var t=this.inBase64,r=this.base64Accum,n=this.base64AccumIdx,i=dn.alloc(e.length*5+10),o=0,s=0;s<e.length;s++){var a=e.charCodeAt(s);32<=a&&a<=126?(t&&(n>0&&(o+=i.write(r.slice(0,n).toString("base64").replace(/\//g,",").replace(/=+$/,""),o),n=0),i[o++]=wo,t=!1),t||(i[o++]=a,a===wv&&(i[o++]=wo))):(t||(i[o++]=wv,t=!0),t&&(r[n++]=a>>8,r[n++]=a&255,n==r.length&&(o+=i.write(r.toString("base64").replace(/\//g,","),o),n=0)))}return this.inBase64=t,this.base64AccumIdx=n,i.slice(0,o)};$v.prototype.end=function(){var e=dn.alloc(10),t=0;return this.inBase64&&(this.base64AccumIdx>0&&(t+=e.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),t),this.base64AccumIdx=0),e[t++]=wo,this.inBase64=!1),e.slice(0,t)};function Pv(e,t){this.iconv=t.iconv,this.inBase64=!1,this.base64Accum=""}var D2=Ov.slice();D2[44]=!0;Pv.prototype.write=function(e){for(var t="",r=0,n=this.inBase64,i=this.base64Accum,o=0;o<e.length;o++)if(!n)e[o]==wv&&(t+=this.iconv.decode(e.slice(r,o),"ascii"),r=o+1,n=!0);else if(!D2[e[o]]){if(o==r&&e[o]==wo)t+="&";else{var s=i+this.iconv.decode(e.slice(r,o),"ascii").replace(/,/g,"/");t+=this.iconv.decode(dn.from(s,"base64"),"utf16-be")}e[o]!=wo&&o--,r=o+1,n=!1,i=""}if(!n)t+=this.iconv.decode(e.slice(r),"ascii");else{var s=i+this.iconv.decode(e.slice(r),"ascii").replace(/,/g,"/"),a=s.length-s.length%8;i=s.slice(a),s=s.slice(0,a),t+=this.iconv.decode(dn.from(s,"base64"),"utf16-be")}return this.inBase64=n,this.base64Accum=i,t};Pv.prototype.end=function(){var e="";return this.inBase64&&this.base64Accum.length>0&&(e=this.iconv.decode(dn.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",e}});var U2=x(B2=>{"use strict";var Df=Mn().Buffer;B2._sbcs=Ev;function Ev(e,t){if(!e)throw new Error("SBCS codec is called without the data.");if(!e.chars||e.chars.length!==128&&e.chars.length!==256)throw new Error("Encoding '"+e.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(e.chars.length===128){for(var r="",n=0;n<128;n++)r+=String.fromCharCode(n);e.chars=r+e.chars}this.decodeBuf=Df.from(e.chars,"ucs2");for(var i=Df.alloc(65536,t.defaultCharSingleByte.charCodeAt(0)),n=0;n<e.chars.length;n++)i[e.chars.charCodeAt(n)]=n;this.encodeBuf=i}Ev.prototype.encoder=Av;Ev.prototype.decoder=Cv;function Av(e,t){this.encodeBuf=t.encodeBuf}Av.prototype.write=function(e){for(var t=Df.alloc(e.length),r=0;r<e.length;r++)t[r]=this.encodeBuf[e.charCodeAt(r)];return t};Av.prototype.end=function(){};function Cv(e,t){this.decodeBuf=t.decodeBuf}Cv.prototype.write=function(e){for(var t=this.decodeBuf,r=Df.alloc(e.length*2),n=0,i=0,o=0;o<e.length;o++)n=e[o]*2,i=o*2,r[i]=t[n],r[i+1]=t[n+1];return r.toString("ucs2")};Cv.prototype.end=function(){}});var z2=x((dve,V2)=>{"use strict";V2.exports={10029:"maccenteuro",maccenteuro:{type:"_sbcs",chars:"\xC4\u0100\u0101\xC9\u0104\xD6\xDC\xE1\u0105\u010C\xE4\u010D\u0106\u0107\xE9\u0179\u017A\u010E\xED\u010F\u0112\u0113\u0116\xF3\u0117\xF4\xF6\xF5\xFA\u011A\u011B\xFC\u2020\xB0\u0118\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\u0119\xA8\u2260\u0123\u012E\u012F\u012A\u2264\u2265\u012B\u0136\u2202\u2211\u0142\u013B\u013C\u013D\u013E\u0139\u013A\u0145\u0146\u0143\xAC\u221A\u0144\u0147\u2206\xAB\xBB\u2026\xA0\u0148\u0150\xD5\u0151\u014C\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\u014D\u0154\u0155\u0158\u2039\u203A\u0159\u0156\u0157\u0160\u201A\u201E\u0161\u015A\u015B\xC1\u0164\u0165\xCD\u017D\u017E\u016A\xD3\xD4\u016B\u016E\xDA\u016F\u0170\u0171\u0172\u0173\xDD\xFD\u0137\u017B\u0141\u017C\u0122\u02C7"},808:"cp808",ibm808:"cp808",cp808:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\u20AC\u25A0\xA0"},mik:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2514\u2534\u252C\u251C\u2500\u253C\u2563\u2551\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2510\u2591\u2592\u2593\u2502\u2524\u2116\xA7\u2557\u255D\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},cp720:{type:"_sbcs",chars:"\x80\x81\xE9\xE2\x84\xE0\x86\xE7\xEA\xEB\xE8\xEF\xEE\x8D\x8E\x8F\x90\u0651\u0652\xF4\xA4\u0640\xFB\xF9\u0621\u0622\u0623\u0624\xA3\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0636\u0637\u0638\u0639\u063A\u0641\xB5\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u2261\u064B\u064C\u064D\u064E\u064F\u0650\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ascii8bit:"ascii",usascii:"ascii",ansix34:"ascii",ansix341968:"ascii",ansix341986:"ascii",csascii:"ascii",cp367:"ascii",ibm367:"ascii",isoir6:"ascii",iso646us:"ascii",iso646irv:"ascii",us:"ascii",latin1:"iso88591",latin2:"iso88592",latin3:"iso88593",latin4:"iso88594",latin5:"iso88599",latin6:"iso885910",latin7:"iso885913",latin8:"iso885914",latin9:"iso885915",latin10:"iso885916",csisolatin1:"iso88591",csisolatin2:"iso88592",csisolatin3:"iso88593",csisolatin4:"iso88594",csisolatincyrillic:"iso88595",csisolatinarabic:"iso88596",csisolatingreek:"iso88597",csisolatinhebrew:"iso88598",csisolatin5:"iso88599",csisolatin6:"iso885910",l1:"iso88591",l2:"iso88592",l3:"iso88593",l4:"iso88594",l5:"iso88599",l6:"iso885910",l7:"iso885913",l8:"iso885914",l9:"iso885915",l10:"iso885916",isoir14:"iso646jp",isoir57:"iso646cn",isoir100:"iso88591",isoir101:"iso88592",isoir109:"iso88593",isoir110:"iso88594",isoir144:"iso88595",isoir127:"iso88596",isoir126:"iso88597",isoir138:"iso88598",isoir148:"iso88599",isoir157:"iso885910",isoir166:"tis620",isoir179:"iso885913",isoir199:"iso885914",isoir203:"iso885915",isoir226:"iso885916",cp819:"iso88591",ibm819:"iso88591",cyrillic:"iso88595",arabic:"iso88596",arabic8:"iso88596",ecma114:"iso88596",asmo708:"iso88596",greek:"iso88597",greek8:"iso88597",ecma118:"iso88597",elot928:"iso88597",hebrew:"iso88598",hebrew8:"iso88598",turkish:"iso88599",turkish8:"iso88599",thai:"iso885911",thai8:"iso885911",celtic:"iso885914",celtic8:"iso885914",isoceltic:"iso885914",tis6200:"tis620",tis62025291:"tis620",tis62025330:"tis620",1e4:"macroman",10006:"macgreek",10007:"maccyrillic",10079:"maciceland",10081:"macturkish",cspc8codepage437:"cp437",cspc775baltic:"cp775",cspc850multilingual:"cp850",cspcp852:"cp852",cspc862latinhebrew:"cp862",cpgr:"cp869",msee:"cp1250",mscyrl:"cp1251",msansi:"cp1252",msgreek:"cp1253",msturk:"cp1254",mshebr:"cp1255",msarab:"cp1256",winbaltrim:"cp1257",cp20866:"koi8r",20866:"koi8r",ibm878:"koi8r",cskoi8r:"koi8r",cp21866:"koi8u",21866:"koi8u",ibm1168:"koi8u",strk10482002:"rk1048",tcvn5712:"tcvn",tcvn57121:"tcvn",gb198880:"iso646cn",cn:"iso646cn",csiso14jisc6220ro:"iso646jp",jisc62201969ro:"iso646jp",jp:"iso646jp",cshproman8:"hproman8",r8:"hproman8",roman8:"hproman8",xroman8:"hproman8",ibm1051:"hproman8",mac:"macintosh",csmacintosh:"macintosh"}});var K2=x((mve,H2)=>{"use strict";H2.exports={437:"cp437",737:"cp737",775:"cp775",850:"cp850",852:"cp852",855:"cp855",856:"cp856",857:"cp857",858:"cp858",860:"cp860",861:"cp861",862:"cp862",863:"cp863",864:"cp864",865:"cp865",866:"cp866",869:"cp869",874:"windows874",922:"cp922",1046:"cp1046",1124:"cp1124",1125:"cp1125",1129:"cp1129",1133:"cp1133",1161:"cp1161",1162:"cp1162",1163:"cp1163",1250:"windows1250",1251:"windows1251",1252:"windows1252",1253:"windows1253",1254:"windows1254",1255:"windows1255",1256:"windows1256",1257:"windows1257",1258:"windows1258",28591:"iso88591",28592:"iso88592",28593:"iso88593",28594:"iso88594",28595:"iso88595",28596:"iso88596",28597:"iso88597",28598:"iso88598",28599:"iso88599",28600:"iso885910",28601:"iso885911",28603:"iso885913",28604:"iso885914",28605:"iso885915",28606:"iso885916",windows874:{type:"_sbcs",chars:"\u20AC\uFFFD\uFFFD\uFFFD\uFFFD\u2026\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xA0\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"},win874:"windows874",cp874:"windows874",windows1250:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\uFFFD\u201E\u2026\u2020\u2021\uFFFD\u2030\u0160\u2039\u015A\u0164\u017D\u0179\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\u0161\u203A\u015B\u0165\u017E\u017A\xA0\u02C7\u02D8\u0141\xA4\u0104\xA6\xA7\xA8\xA9\u015E\xAB\xAC\xAD\xAE\u017B\xB0\xB1\u02DB\u0142\xB4\xB5\xB6\xB7\xB8\u0105\u015F\xBB\u013D\u02DD\u013E\u017C\u0154\xC1\xC2\u0102\xC4\u0139\u0106\xC7\u010C\xC9\u0118\xCB\u011A\xCD\xCE\u010E\u0110\u0143\u0147\xD3\xD4\u0150\xD6\xD7\u0158\u016E\xDA\u0170\xDC\xDD\u0162\xDF\u0155\xE1\xE2\u0103\xE4\u013A\u0107\xE7\u010D\xE9\u0119\xEB\u011B\xED\xEE\u010F\u0111\u0144\u0148\xF3\xF4\u0151\xF6\xF7\u0159\u016F\xFA\u0171\xFC\xFD\u0163\u02D9"},win1250:"windows1250",cp1250:"windows1250",windows1251:{type:"_sbcs",chars:"\u0402\u0403\u201A\u0453\u201E\u2026\u2020\u2021\u20AC\u2030\u0409\u2039\u040A\u040C\u040B\u040F\u0452\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\u0459\u203A\u045A\u045C\u045B\u045F\xA0\u040E\u045E\u0408\xA4\u0490\xA6\xA7\u0401\xA9\u0404\xAB\xAC\xAD\xAE\u0407\xB0\xB1\u0406\u0456\u0491\xB5\xB6\xB7\u0451\u2116\u0454\xBB\u0458\u0405\u0455\u0457\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},win1251:"windows1251",cp1251:"windows1251",windows1252:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\uFFFD\u017D\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\uFFFD\u017E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},win1252:"windows1252",cp1252:"windows1252",windows1253:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\uFFFD\u2030\uFFFD\u2039\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\uFFFD\u203A\uFFFD\uFFFD\uFFFD\uFFFD\xA0\u0385\u0386\xA3\xA4\xA5\xA6\xA7\xA8\xA9\uFFFD\xAB\xAC\xAD\xAE\u2015\xB0\xB1\xB2\xB3\u0384\xB5\xB6\xB7\u0388\u0389\u038A\xBB\u038C\xBD\u038E\u038F\u0390\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039A\u039B\u039C\u039D\u039E\u039F\u03A0\u03A1\uFFFD\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03AA\u03AB\u03AC\u03AD\u03AE\u03AF\u03B0\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C2\u03C3\u03C4\u03C5\u03C6\u03C7\u03C8\u03C9\u03CA\u03CB\u03CC\u03CD\u03CE\uFFFD"},win1253:"windows1253",cp1253:"windows1253",windows1254:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\uFFFD\uFFFD\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u011E\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u0130\u015E\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u011F\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u0131\u015F\xFF"},win1254:"windows1254",cp1254:"windows1254",windows1255:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\uFFFD\u2039\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\uFFFD\u203A\uFFFD\uFFFD\uFFFD\uFFFD\xA0\xA1\xA2\xA3\u20AA\xA5\xA6\xA7\xA8\xA9\xD7\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xF7\xBB\xBC\xBD\xBE\xBF\u05B0\u05B1\u05B2\u05B3\u05B4\u05B5\u05B6\u05B7\u05B8\u05B9\u05BA\u05BB\u05BC\u05BD\u05BE\u05BF\u05C0\u05C1\u05C2\u05C3\u05F0\u05F1\u05F2\u05F3\u05F4\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA\uFFFD\uFFFD\u200E\u200F\uFFFD"},win1255:"windows1255",cp1255:"windows1255",windows1256:{type:"_sbcs",chars:"\u20AC\u067E\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0679\u2039\u0152\u0686\u0698\u0688\u06AF\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u06A9\u2122\u0691\u203A\u0153\u200C\u200D\u06BA\xA0\u060C\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\u06BE\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\u061B\xBB\xBC\xBD\xBE\u061F\u06C1\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\xD7\u0637\u0638\u0639\u063A\u0640\u0641\u0642\u0643\xE0\u0644\xE2\u0645\u0646\u0647\u0648\xE7\xE8\xE9\xEA\xEB\u0649\u064A\xEE\xEF\u064B\u064C\u064D\u064E\xF4\u064F\u0650\xF7\u0651\xF9\u0652\xFB\xFC\u200E\u200F\u06D2"},win1256:"windows1256",cp1256:"windows1256",windows1257:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\uFFFD\u201E\u2026\u2020\u2021\uFFFD\u2030\uFFFD\u2039\uFFFD\xA8\u02C7\xB8\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\uFFFD\u203A\uFFFD\xAF\u02DB\uFFFD\xA0\uFFFD\xA2\xA3\xA4\uFFFD\xA6\xA7\xD8\xA9\u0156\xAB\xAC\xAD\xAE\xC6\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xF8\xB9\u0157\xBB\xBC\xBD\xBE\xE6\u0104\u012E\u0100\u0106\xC4\xC5\u0118\u0112\u010C\xC9\u0179\u0116\u0122\u0136\u012A\u013B\u0160\u0143\u0145\xD3\u014C\xD5\xD6\xD7\u0172\u0141\u015A\u016A\xDC\u017B\u017D\xDF\u0105\u012F\u0101\u0107\xE4\xE5\u0119\u0113\u010D\xE9\u017A\u0117\u0123\u0137\u012B\u013C\u0161\u0144\u0146\xF3\u014D\xF5\xF6\xF7\u0173\u0142\u015B\u016B\xFC\u017C\u017E\u02D9"},win1257:"windows1257",cp1257:"windows1257",windows1258:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\uFFFD\u2039\u0152\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\uFFFD\u203A\u0153\uFFFD\uFFFD\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\u0102\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\u0300\xCD\xCE\xCF\u0110\xD1\u0309\xD3\xD4\u01A0\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u01AF\u0303\xDF\xE0\xE1\xE2\u0103\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\u0301\xED\xEE\xEF\u0111\xF1\u0323\xF3\xF4\u01A1\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u01B0\u20AB\xFF"},win1258:"windows1258",cp1258:"windows1258",iso88591:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},cp28591:"iso88591",iso88592:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0104\u02D8\u0141\xA4\u013D\u015A\xA7\xA8\u0160\u015E\u0164\u0179\xAD\u017D\u017B\xB0\u0105\u02DB\u0142\xB4\u013E\u015B\u02C7\xB8\u0161\u015F\u0165\u017A\u02DD\u017E\u017C\u0154\xC1\xC2\u0102\xC4\u0139\u0106\xC7\u010C\xC9\u0118\xCB\u011A\xCD\xCE\u010E\u0110\u0143\u0147\xD3\xD4\u0150\xD6\xD7\u0158\u016E\xDA\u0170\xDC\xDD\u0162\xDF\u0155\xE1\xE2\u0103\xE4\u013A\u0107\xE7\u010D\xE9\u0119\xEB\u011B\xED\xEE\u010F\u0111\u0144\u0148\xF3\xF4\u0151\xF6\xF7\u0159\u016F\xFA\u0171\xFC\xFD\u0163\u02D9"},cp28592:"iso88592",iso88593:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0126\u02D8\xA3\xA4\uFFFD\u0124\xA7\xA8\u0130\u015E\u011E\u0134\xAD\uFFFD\u017B\xB0\u0127\xB2\xB3\xB4\xB5\u0125\xB7\xB8\u0131\u015F\u011F\u0135\xBD\uFFFD\u017C\xC0\xC1\xC2\uFFFD\xC4\u010A\u0108\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\uFFFD\xD1\xD2\xD3\xD4\u0120\xD6\xD7\u011C\xD9\xDA\xDB\xDC\u016C\u015C\xDF\xE0\xE1\xE2\uFFFD\xE4\u010B\u0109\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\uFFFD\xF1\xF2\xF3\xF4\u0121\xF6\xF7\u011D\xF9\xFA\xFB\xFC\u016D\u015D\u02D9"},cp28593:"iso88593",iso88594:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0104\u0138\u0156\xA4\u0128\u013B\xA7\xA8\u0160\u0112\u0122\u0166\xAD\u017D\xAF\xB0\u0105\u02DB\u0157\xB4\u0129\u013C\u02C7\xB8\u0161\u0113\u0123\u0167\u014A\u017E\u014B\u0100\xC1\xC2\xC3\xC4\xC5\xC6\u012E\u010C\xC9\u0118\xCB\u0116\xCD\xCE\u012A\u0110\u0145\u014C\u0136\xD4\xD5\xD6\xD7\xD8\u0172\xDA\xDB\xDC\u0168\u016A\xDF\u0101\xE1\xE2\xE3\xE4\xE5\xE6\u012F\u010D\xE9\u0119\xEB\u0117\xED\xEE\u012B\u0111\u0146\u014D\u0137\xF4\xF5\xF6\xF7\xF8\u0173\xFA\xFB\xFC\u0169\u016B\u02D9"},cp28594:"iso88594",iso88595:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0403\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2116\u0451\u0452\u0453\u0454\u0455\u0456\u0457\u0458\u0459\u045A\u045B\u045C\xA7\u045E\u045F"},cp28595:"iso88595",iso88596:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\uFFFD\uFFFD\uFFFD\xA4\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u060C\xAD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u061B\uFFFD\uFFFD\uFFFD\u061F\uFFFD\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063A\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},cp28596:"iso88596",iso88597:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u2018\u2019\xA3\u20AC\u20AF\xA6\xA7\xA8\xA9\u037A\xAB\xAC\xAD\uFFFD\u2015\xB0\xB1\xB2\xB3\u0384\u0385\u0386\xB7\u0388\u0389\u038A\xBB\u038C\xBD\u038E\u038F\u0390\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039A\u039B\u039C\u039D\u039E\u039F\u03A0\u03A1\uFFFD\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03AA\u03AB\u03AC\u03AD\u03AE\u03AF\u03B0\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C2\u03C3\u03C4\u03C5\u03C6\u03C7\u03C8\u03C9\u03CA\u03CB\u03CC\u03CD\u03CE\uFFFD"},cp28597:"iso88597",iso88598:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\uFFFD\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xD7\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xF7\xBB\xBC\xBD\xBE\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2017\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA\uFFFD\uFFFD\u200E\u200F\uFFFD"},cp28598:"iso88598",iso88599:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u011E\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u0130\u015E\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u011F\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u0131\u015F\xFF"},cp28599:"iso88599",iso885910:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0104\u0112\u0122\u012A\u0128\u0136\xA7\u013B\u0110\u0160\u0166\u017D\xAD\u016A\u014A\xB0\u0105\u0113\u0123\u012B\u0129\u0137\xB7\u013C\u0111\u0161\u0167\u017E\u2015\u016B\u014B\u0100\xC1\xC2\xC3\xC4\xC5\xC6\u012E\u010C\xC9\u0118\xCB\u0116\xCD\xCE\xCF\xD0\u0145\u014C\xD3\xD4\xD5\xD6\u0168\xD8\u0172\xDA\xDB\xDC\xDD\xDE\xDF\u0101\xE1\xE2\xE3\xE4\xE5\xE6\u012F\u010D\xE9\u0119\xEB\u0117\xED\xEE\xEF\xF0\u0146\u014D\xF3\xF4\xF5\xF6\u0169\xF8\u0173\xFA\xFB\xFC\xFD\xFE\u0138"},cp28600:"iso885910",iso885911:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"},cp28601:"iso885911",iso885913:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u201D\xA2\xA3\xA4\u201E\xA6\xA7\xD8\xA9\u0156\xAB\xAC\xAD\xAE\xC6\xB0\xB1\xB2\xB3\u201C\xB5\xB6\xB7\xF8\xB9\u0157\xBB\xBC\xBD\xBE\xE6\u0104\u012E\u0100\u0106\xC4\xC5\u0118\u0112\u010C\xC9\u0179\u0116\u0122\u0136\u012A\u013B\u0160\u0143\u0145\xD3\u014C\xD5\xD6\xD7\u0172\u0141\u015A\u016A\xDC\u017B\u017D\xDF\u0105\u012F\u0101\u0107\xE4\xE5\u0119\u0113\u010D\xE9\u017A\u0117\u0123\u0137\u012B\u013C\u0161\u0144\u0146\xF3\u014D\xF5\xF6\xF7\u0173\u0142\u015B\u016B\xFC\u017C\u017E\u2019"},cp28603:"iso885913",iso885914:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u1E02\u1E03\xA3\u010A\u010B\u1E0A\xA7\u1E80\xA9\u1E82\u1E0B\u1EF2\xAD\xAE\u0178\u1E1E\u1E1F\u0120\u0121\u1E40\u1E41\xB6\u1E56\u1E81\u1E57\u1E83\u1E60\u1EF3\u1E84\u1E85\u1E61\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0174\xD1\xD2\xD3\xD4\xD5\xD6\u1E6A\xD8\xD9\xDA\xDB\xDC\xDD\u0176\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0175\xF1\xF2\xF3\xF4\xF5\xF6\u1E6B\xF8\xF9\xFA\xFB\xFC\xFD\u0177\xFF"},cp28604:"iso885914",iso885915:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\u20AC\xA5\u0160\xA7\u0161\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\u017D\xB5\xB6\xB7\u017E\xB9\xBA\xBB\u0152\u0153\u0178\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},cp28605:"iso885915",iso885916:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0104\u0105\u0141\u20AC\u201E\u0160\xA7\u0161\xA9\u0218\xAB\u0179\xAD\u017A\u017B\xB0\xB1\u010C\u0142\u017D\u201D\xB6\xB7\u017E\u010D\u0219\xBB\u0152\u0153\u0178\u017C\xC0\xC1\xC2\u0102\xC4\u0106\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0110\u0143\xD2\xD3\xD4\u0150\xD6\u015A\u0170\xD9\xDA\xDB\xDC\u0118\u021A\xDF\xE0\xE1\xE2\u0103\xE4\u0107\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0111\u0144\xF2\xF3\xF4\u0151\xF6\u015B\u0171\xF9\xFA\xFB\xFC\u0119\u021B\xFF"},cp28606:"iso885916",cp437:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm437:"cp437",csibm437:"cp437",cp737:{type:"_sbcs",chars:"\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039A\u039B\u039C\u039D\u039E\u039F\u03A0\u03A1\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u03C5\u03C6\u03C7\u03C8\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03C9\u03AC\u03AD\u03AE\u03CA\u03AF\u03CC\u03CD\u03CB\u03CE\u0386\u0388\u0389\u038A\u038C\u038E\u038F\xB1\u2265\u2264\u03AA\u03AB\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm737:"cp737",csibm737:"cp737",cp775:{type:"_sbcs",chars:"\u0106\xFC\xE9\u0101\xE4\u0123\xE5\u0107\u0142\u0113\u0156\u0157\u012B\u0179\xC4\xC5\xC9\xE6\xC6\u014D\xF6\u0122\xA2\u015A\u015B\xD6\xDC\xF8\xA3\xD8\xD7\xA4\u0100\u012A\xF3\u017B\u017C\u017A\u201D\xA6\xA9\xAE\xAC\xBD\xBC\u0141\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u0104\u010C\u0118\u0116\u2563\u2551\u2557\u255D\u012E\u0160\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u0172\u016A\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u017D\u0105\u010D\u0119\u0117\u012F\u0161\u0173\u016B\u017E\u2518\u250C\u2588\u2584\u258C\u2590\u2580\xD3\xDF\u014C\u0143\xF5\xD5\xB5\u0144\u0136\u0137\u013B\u013C\u0146\u0112\u0145\u2019\xAD\xB1\u201C\xBE\xB6\xA7\xF7\u201E\xB0\u2219\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm775:"cp775",csibm775:"cp775",cp850:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\xD7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\xAE\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\xC1\xC2\xC0\xA9\u2563\u2551\u2557\u255D\xA2\xA5\u2510\u2514\u2534\u252C\u251C\u2500\u253C\xE3\xC3\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\xF0\xD0\xCA\xCB\xC8\u0131\xCD\xCE\xCF\u2518\u250C\u2588\u2584\xA6\xCC\u2580\xD3\xDF\xD4\xD2\xF5\xD5\xB5\xFE\xDE\xDA\xDB\xD9\xFD\xDD\xAF\xB4\xAD\xB1\u2017\xBE\xB6\xA7\xF7\xB8\xB0\xA8\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm850:"cp850",csibm850:"cp850",cp852:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\u016F\u0107\xE7\u0142\xEB\u0150\u0151\xEE\u0179\xC4\u0106\xC9\u0139\u013A\xF4\xF6\u013D\u013E\u015A\u015B\xD6\xDC\u0164\u0165\u0141\xD7\u010D\xE1\xED\xF3\xFA\u0104\u0105\u017D\u017E\u0118\u0119\xAC\u017A\u010C\u015F\xAB\xBB\u2591\u2592\u2593\u2502\u2524\xC1\xC2\u011A\u015E\u2563\u2551\u2557\u255D\u017B\u017C\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u0102\u0103\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\u0111\u0110\u010E\xCB\u010F\u0147\xCD\xCE\u011B\u2518\u250C\u2588\u2584\u0162\u016E\u2580\xD3\xDF\xD4\u0143\u0144\u0148\u0160\u0161\u0154\xDA\u0155\u0170\xFD\xDD\u0163\xB4\xAD\u02DD\u02DB\u02C7\u02D8\xA7\xF7\xB8\xB0\xA8\u02D9\u0171\u0158\u0159\u25A0\xA0"},ibm852:"cp852",csibm852:"cp852",cp855:{type:"_sbcs",chars:"\u0452\u0402\u0453\u0403\u0451\u0401\u0454\u0404\u0455\u0405\u0456\u0406\u0457\u0407\u0458\u0408\u0459\u0409\u045A\u040A\u045B\u040B\u045C\u040C\u045E\u040E\u045F\u040F\u044E\u042E\u044A\u042A\u0430\u0410\u0431\u0411\u0446\u0426\u0434\u0414\u0435\u0415\u0444\u0424\u0433\u0413\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u0445\u0425\u0438\u0418\u2563\u2551\u2557\u255D\u0439\u0419\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u043A\u041A\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\u043B\u041B\u043C\u041C\u043D\u041D\u043E\u041E\u043F\u2518\u250C\u2588\u2584\u041F\u044F\u2580\u042F\u0440\u0420\u0441\u0421\u0442\u0422\u0443\u0423\u0436\u0416\u0432\u0412\u044C\u042C\u2116\xAD\u044B\u042B\u0437\u0417\u0448\u0428\u044D\u042D\u0449\u0429\u0447\u0427\xA7\u25A0\xA0"},ibm855:"cp855",csibm855:"cp855",cp856:{type:"_sbcs",chars:"\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA\uFFFD\xA3\uFFFD\xD7\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xAE\xAC\xBD\xBC\uFFFD\xAB\xBB\u2591\u2592\u2593\u2502\u2524\uFFFD\uFFFD\uFFFD\xA9\u2563\u2551\u2557\u255D\xA2\xA5\u2510\u2514\u2534\u252C\u251C\u2500\u253C\uFFFD\uFFFD\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2518\u250C\u2588\u2584\xA6\uFFFD\u2580\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xB5\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xAF\xB4\xAD\xB1\u2017\xBE\xB6\xA7\xF7\xB8\xB0\xA8\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm856:"cp856",csibm856:"cp856",cp857:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\u0131\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\u0130\xD6\xDC\xF8\xA3\xD8\u015E\u015F\xE1\xED\xF3\xFA\xF1\xD1\u011E\u011F\xBF\xAE\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\xC1\xC2\xC0\xA9\u2563\u2551\u2557\u255D\xA2\xA5\u2510\u2514\u2534\u252C\u251C\u2500\u253C\xE3\xC3\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\xBA\xAA\xCA\xCB\xC8\uFFFD\xCD\xCE\xCF\u2518\u250C\u2588\u2584\xA6\xCC\u2580\xD3\xDF\xD4\xD2\xF5\xD5\xB5\uFFFD\xD7\xDA\xDB\xD9\xEC\xFF\xAF\xB4\xAD\xB1\uFFFD\xBE\xB6\xA7\xF7\xB8\xB0\xA8\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm857:"cp857",csibm857:"cp857",cp858:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\xD7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\xAE\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\xC1\xC2\xC0\xA9\u2563\u2551\u2557\u255D\xA2\xA5\u2510\u2514\u2534\u252C\u251C\u2500\u253C\xE3\xC3\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\xF0\xD0\xCA\xCB\xC8\u20AC\xCD\xCE\xCF\u2518\u250C\u2588\u2584\xA6\xCC\u2580\xD3\xDF\xD4\xD2\xF5\xD5\xB5\xFE\xDE\xDA\xDB\xD9\xFD\xDD\xAF\xB4\xAD\xB1\u2017\xBE\xB6\xA7\xF7\xB8\xB0\xA8\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm858:"cp858",csibm858:"cp858",cp860:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE3\xE0\xC1\xE7\xEA\xCA\xE8\xCD\xD4\xEC\xC3\xC2\xC9\xC0\xC8\xF4\xF5\xF2\xDA\xF9\xCC\xD5\xDC\xA2\xA3\xD9\u20A7\xD3\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\xD2\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm860:"cp860",csibm860:"cp860",cp861:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xD0\xF0\xDE\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xFE\xFB\xDD\xFD\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xC1\xCD\xD3\xDA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm861:"cp861",csibm861:"cp861",cp862:{type:"_sbcs",chars:"\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm862:"cp862",csibm862:"cp862",cp863:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xC2\xE0\xB6\xE7\xEA\xEB\xE8\xEF\xEE\u2017\xC0\xA7\xC9\xC8\xCA\xF4\xCB\xCF\xFB\xF9\xA4\xD4\xDC\xA2\xA3\xD9\xDB\u0192\xA6\xB4\xF3\xFA\xA8\xB8\xB3\xAF\xCE\u2310\xAC\xBD\xBC\xBE\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm863:"cp863",csibm863:"cp863",cp864:{type:"_sbcs",chars:`\0\x07\b
49
+ `:""}Pf.dump=ZT;function aQ(e,t){return ZT(e,Dc.extend({schema:AJ},t))}Pf.safeDump=aQ});var t2=x(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});function cQ(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw'Invalid boolean "'+e+'"'}Pi.parseYamlBoolean=cQ;function lQ(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function uQ(e){var t=lQ(e);if(isNaN(t))throw'Invalid integer "'+e+'"';return t}Pi.parseYamlInteger=uQ;function pQ(e){if([".nan",".NaN",".NAN"].lastIndexOf(e)>=0)return NaN;var t=/^([-+])?(?:\.inf|\.Inf|\.INF)$/,r=t.exec(e);if(r)return r[1]==="-"?-1/0:1/0;var n=parseFloat(e);if(!isNaN(n))return n;throw'Invalid float "'+e+'"'}Pi.parseYamlFloat=pQ;var qn;(function(e){e[e.null=0]="null",e[e.bool=1]="bool",e[e.int=2]="int",e[e.float=3]="float",e[e.string=4]="string"})(qn=Pi.ScalarType||(Pi.ScalarType={}));function fQ(e){if(e===void 0)return qn.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return qn.string;var t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return qn.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return qn.bool;var r=/^[-+]?[0-9]+$/,n=/^0o[0-7]+$/,i=/^0x[0-9a-fA-F]+$/;if(r.test(t)||n.test(t)||i.test(t))return qn.int;var o=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,s=/^[-+]?(\.inf|\.Inf|\.INF)$/;return o.test(t)||s.test(t)||[".nan",".NaN",".NAN"].indexOf(t)>=0?qn.float:qn.string}Pi.determineScalarType=fQ});var i2=x(Kr=>{"use strict";function r2(e){for(var t in e)Kr.hasOwnProperty(t)||(Kr[t]=e[t])}Object.defineProperty(Kr,"__esModule",{value:!0});var Ef=GT();Kr.load=Ef.load;Kr.loadAll=Ef.loadAll;Kr.safeLoad=Ef.safeLoad;Kr.safeLoadAll=Ef.safeLoadAll;var n2=e2();Kr.dump=n2.dump;Kr.safeDump=n2.safeDump;Kr.YAMLException=Fs();r2(jc());r2(t2())});var l2=x((Jbe,c2)=>{"use strict";function gQ(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:function(t){setTimeout(t,0)}}c2.exports=gQ()});var f2=x((Qbe,p2)=>{"use strict";var u2=l2();p2.exports=function(t,r){if(t){r.then(function(n){u2(function(){t(null,n)})},function(n){u2(function(){t(n)})});return}else return r}});var Wb=x((Zbe,m2)=>{var Yb=class{constructor(t,r){this.cb=t,this.delay=r,this.timers={},this.pausers={}}setDelay(t){t>=0&&(this.delay=t)}pause(t){this.pausers[t]=this.pausers[t]||0,this.pausers[t]++}unpause(t){var r=this.pausers[t]||0;r>0&&r--,this.pausers[t]=r}unpauseAndTime(t){this.unpause(t),this.time(t)}time(t){var r=this,n=this.timers,i=this.timers[t];this.pausers[t]>0||(i&&clearTimeout(i),n[t]=setTimeout(function(){r.cb(t),delete n[t]},r.delay))}},Af=class extends TypeError{constructor(t,r,n){let i=t.includes(".")?"property":"argument",o=`The "${t}" ${i} ${determiner} ${r}`}};function d2(e,t,r="Object"){if(e!==void 0&&(e===null||typeof e!="object"||Array.isArray(e))){let n=new Af(t,r,e);throw Error.captureStackTrace(n,d2),n}}m2.exports={ERR_INVALID_ARG_TYPE:Af,assertIsObject:d2,DebounceTimers:Yb}});var g2=x((eve,y2)=>{var{assertIsObject:h2}=Wb();function bQ(e){return h2(e,"options"),e=Object.assign({},e),e.allowHalfOpen=!0,e.rejectUnauthorized=!1,h2(e.settings,"options.settings"),e.settings=Object.assign({},e.settings),e.Http1IncomingMessage=e.Http1IncomingMessage||this.http.IncomingMessage,e.Http1ServerResponse=e.Http1ServerResponse||this.http.ServerResponse,e.Http2ServerRequest=e.Http2ServerRequest||(this.http2||{}).Http2ServerRequest,e.Http2ServerResponse=e.Http2ServerResponse||(this.http2||{}).Http2ServerResponse,e}function vQ(e,t){e=bQ.call(this,e);var r=e.ALPNProtocols=[];return this.http2Support&&r.push("h2"),(e.allowHTTP1==!0||!this.http2Support)&&r.push("http/1.1"),t!==void 0&&e.servername===void 0&&(e.servername=t),e}y2.exports={initializeTLSOptions:vQ}});var Nf=x((rve,w2)=>{var{URL:Cf}=require("url"),{EventEmitter:v2}=require("events"),Rf=require("util")._extend,{DebounceTimers:xQ,assertIsObject:b2,ERR_INVALID_ARG_TYPE:tve}=Wb(),{initializeTLSOptions:wQ}=g2(),Fc=require("http"),Xb=require("https"),{Stream:SQ}=require("stream");function Tf(e,t){let r=t.prototype;Object.keys(r).forEach(n=>{e.indexOf(n)==-1&&n.indexOf("_")!=0&&typeof r[n]=="function"&&e.push(n)})}var jn=[];Tf(jn,Fc.ClientRequest);Tf(jn,Fc.OutgoingMessage);Tf(jn,v2);Tf(jn,SQ);var _Q=["httpVersionMajor","httpVersionMinor","httpVersion"],OQ=["host","connection"],Ei=Symbol("stubs");function Bc(){this.http2Mimic=!0,this[Ei]=[];for(var e=0;e<jn.length;e++){let l=jn[e];Bc.prototype[l]||(this[l]=function(){return this.genericStubber(l,arguments)}.bind(this))}var t,r,n,i;let o=arguments[0]instanceof Uc;var s,a;if(o){let l=arguments[0];l.method&&(s=l.method),l.protocol&&(a=l.protocol)}if(o?i=arguments[0].args:i=arguments,i[2]!=null?(n=i[0],t=i[1],r=i[2]):i[1]==null?t=i[0]:(t=i[0],r=i[1]),r=r||function(){},typeof t=="string"){if(t=Jb(new Cf(t)),!t.hostname)throw new Error("Unable to determine the domain name")}else n?t=Rf(Jb(new Cf(n)),t):t=Rf({},t);a!=a&&(t.protocol=a),t.protocol=="https:"&&!t.port&&t.port!=0&&(t.port=443),!t.port&&t.port!=0&&(t.port=80),s?t.method=s:t.method||(t.method="GET"),t.method=t.method.toUpperCase(),(t.requestManager||this.getGlobalManager(t)).handleClientRequest(this,t,r)}Bc.prototype={getGlobalManager(e){return e.agent?e.agent.protocol=="https:"?Ci.globalManager:Ri.globalManager:Ai.globalManager},genericStubber(e,t){return this[Ei]?(this[Ei].push([e,t]),!0):this[e](...arguments)},on(e,t){e=="response"&&(t.http2Safe||(e="http1.response",arguments[0]=e)),this._on?this._on(...arguments):this.genericStubber("on",arguments)},once(e,t){e=="response"&&(t.http2Safe||(e="http1.response")),this._once?this._once(...arguments):this.genericStubber("once",arguments)},emitError(e){if(this[Ei])this[Ei].forEach(([t,r])=>{(t==="on"||t==="once")&&r[0]==="error"&&r[1](e)});else return this.emit("error",e)},take(e){for(var t=0;t<jn.length;t++){let n=jn[t];e[n]&&(this[n]=e[n].bind(e))}this._on=e.on.bind(e),this._once=e.once.bind(e),this.proxyProps(e);for(let n=0;n<this[Ei].length;n++){var r=this[Ei][n];e[r[0]](...r[1])}this[Ei]=null},proxyProps(e){function t(){return e[this]}function r(c){e[this]=c}let n=["on","_on","_once","once","http2Mimic"].concat(jn),i=Object.keys(this),o=[].concat(_Q);i.forEach(function(l){n.indexOf(l)==-1&&o.indexOf(l)==-1&&o.push(l)});let s=Object.getOwnPropertyDescriptors(e);for(var a=0;a<o.length;a++){let c=o[a],l=s[c],u;l||(u=!0),l&&(l.writable||l)&&(u=!0),u&&(e[c]=this[c]),Object.defineProperty(this,c,{get:t.bind(c),set:r.bind(c)})}}};var Ai=class e extends v2{constructor(t){super(),this.httpsAgent=Xb.globalAgent,this.httpAgent=Fc.globalAgent,this.init(t)}log(){}init(t){t=t||{},this.http2Clients={},this.cachedHTTP1Result={},this.setModules(),this.http2Debouncer=new xQ(function(n){this.log("stopping ",n);var i=this.http2Clients[n];i&&this.removeHttp2Client(n,i)}.bind(this),1e3),this.keepH1IdentificationCacheFor=t.keepH1IdentificationCacheFor||3e4,this.http2Debouncer.setDelay(t.keepH2ConnectionFor),t.useHttp?this.enforceProtocol="http:":t.useHttps&&(this.enforceProtocol="https:")}setModules(){this.http=require("http"),this.https=require("https"),this.tls=require("tls"),this.net=require("net"),this.http2Support=!1;try{this.http2=require("http2"),this.http2Support=!0}catch{}}handleClientRequest(t,r,n){let i=this,o=i.getClientKey(r);if(i.hasCachedConnection(o)){let s=i.getHttp2Client(o),a={createConnection(){return s}};process.nextTick(function(){i.makeRequest(t,o,r,n,a)}.bind(i))}else i.holdConnectionToIdentification(o,r,function(a,c){if(a){t.emitError(a);return}i.makeRequest(t,o,r,n,c)}.bind(i))}getClientKey(t){return`${t.protocol||this.enforceProtocol}${t.servername||t.host||t.hostname}:${t.port}`}getHttp2Client(t){return this.http2Clients[t]}setHttp2Client(t,r){let n=this,i=n.http2Clients[t];i&&n.removeHttp2Client(t,i),n.http2Clients[t]=r;function o(){n.removeHttp2Client(t,r)}r.on("close",o),r.on("goaway",o),r.on("error",o),r.on("frameError",o),r.on("timeout",o)}removeHttp2Client(t,r){try{delete this.http2Clients[t],r.closed||r.close()}catch{}r.removeAllListeners("close"),r.removeAllListeners("error"),r.removeAllListeners("frameError"),r.removeAllListeners("timeout")}request(t,r,n){var i=new Uc(arguments);return this.enforceProtocol&&(i.protocol=this.enforceProtocol),new Bc(i)}get(){var t=new Uc(arguments);t.method="GET";var r=this.request(t);return r.end(),r}hasCachedConnection(t){return this.getHttp2Client(t)?!0:this.cachedHTTP1Result[t]+this.keepH1IdentificationCacheFor<Date.now()}makeRequest(t,r,n,i,o){let s=this.getHttp2Client(r);return s?this.makeHttp2Request(r,t,s,Object.assign(o||{},n),i):(n.agent||(n.protocol=="https:"?n.agent=this.httpsAgent:n.agent=this.httpAgent),this.makeHttpRequest(r,t,n,i,o))}holdConnectionToIdentification(t,r,n){let i=`identify-${t}`;if(this._events[i])this.once(i,n);else{this.once(i,function(){});let o=this.identifyConnection(r,function(a,c){if(a)return n(a);var l={createConnection(){return o}};if(c=="h2"&&this.http2Support){var u=this.http2.connect(r,l);this.setHttp2Client(t,u)}else this.cachedHTTP1Result[t]=Date.now();n(null,l),this.emit(i,l)}.bind(this))}}makeHttpRequest(t,r,n,i,o){n instanceof Cf&&(n=Jb(n));let s=Rf({},n);o&&(s.createConnection=o.createConnection);let c=(s.protocol=="https:"?this.https:this.http).request(s,i);r.take(c),r._on("response",function(u){this.emit("http1.response",u)})}makeHttp2Request(t,r,n,i,o){var s=this.http2Debouncer;s.pause(t);var a=Rf({},i.headers||{});i.method&&(a[":method"]=i.method),i.path&&(a[":path"]=i.path),Object.keys(a).forEach(m=>{OQ.indexOf((m+"").toLowerCase())!=-1&&delete a[m]}),i.headers=a;var c=n.request(a);r.emit("socket",i.createConnection());let l,u=0;c.on("data",function(d){u+=d.length,u>=l&&s.unpauseAndTime(t)}),r.take(c);function p(m){l=parseInt(m["content-length"]),l<0&&this.http2Debouncer.unpauseAndTime(t),e.httpCompatibleResponse(c,i,m),r.emit("http1.response",c),o&&o(c)}p.http2Safe=!0,c.once("response",p.bind(this))}static httpCompatibleResponse(t,r,n){t.httpVersion="2.0",t.rawHeaders=n,t.headers=n,t.statusCode=n[":status"],delete n[":status"]}identifyConnection(t,r){var n=this.connect(t,{allowHTTP1:!0},function(){n.removeListener("error",r),n.alpnProtocol=="h2"?r(null,"h2"):(n.end(),r(null,"h1"))});return n.on("error",r),n}connect(t,r,n){typeof r=="function"&&(n=r,r=void 0),b2(r,"options"),r=Object.assign({},r),typeof t=="string"&&(t=new Cf(t)),b2(t,"authority",["string","Object","URL"]);var i=t.protocol||r.protocol||(this.enforceProtocol!="detect"?this.enforceProtocol:null)||"http:",o=""+(t.port!==""?t.port:t.protocol==="http:"?80:443),s=t.hostname||t.host||"localhost",a;if(typeof r.createConnection=="function")a=r.createConnection(t,r);else switch(i){case"http:":a=this.net.connect(o,s,n);break;case"https:":a=this.tls.connect(o,s,wQ.call(this,r,s),n);break;default:throw new Error("Not supprted"+i)}return a}};function Jb(e){var t={protocol:e.protocol,hostname:e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:`${e.pathname}${e.search}`,href:e.href};return e.port!==""&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=`${e.username}:${e.password}`),t}var Uc=class e{constructor(t){if(t[0]instanceof e)return t[0];this.args=t,this.method=null,this.protocol=null}},Ci=class extends Ai{constructor(){super(...arguments),this.Agent=Xb.Agent,this.globalAgent=Xb.globalAgent,this.enforceProtocol="https:"}},$Q=new Ci;Ci.globalManager=$Q;Ci.Manager=Ci;var Ri=class extends Ai{constructor(){super(...arguments),this.Agent=Fc.Agent,this.globalAgent=Fc.globalAgent,this.enforceProtocol="http:"}},PQ=new Ri;Ri.globalManager=PQ;Ri.Manager=Ri;var x2=new Ai;x2.enforceProtocol="detect";Ai.globalManager=x2;w2.exports={HttpRequest:Ri,HttpsRequest:Ci,HTTP2OutgoingMessage:Bc,ClientRequest:Bc,HttpRequestManager:Ai}});var _2=x((nve,S2)=>{var{HttpRequest:EQ,ClientRequest:AQ}=Nf(),Vc=EQ.globalManager,CQ=Vc.request.bind(Vc),RQ=Vc.get.bind(Vc),TQ=Object.assign({},require("http"));S2.exports=Object.assign(TQ,{ClientRequest:AQ,globalManager:Vc,request:CQ,get:RQ})});var $2=x((ive,O2)=>{var{HttpsRequest:NQ,ClientRequest:IQ}=Nf(),zc=NQ.globalManager,kQ=zc.request.bind(zc),qQ=zc.get.bind(zc),jQ=Object.assign({},require("https"));O2.exports=Object.assign(jQ,{ClientRequest:IQ,globalManager:zc,request:kQ,get:qQ})});var E2=x((ove,P2)=>{var{HttpRequestManager:Qb,HTTP2OutgoingMessage:MQ,ClientRequest:LQ}=Nf(),DQ=_2(),FQ=$2(),Hc=new Qb;Qb.globalManager=Hc;var BQ=Hc.request.bind(Hc),UQ=Hc.get.bind(Hc);P2.exports={HTTP2OutgoingMessage:MQ,ClientRequest:LQ,globalManager:Qb.globalManager,request:BQ,get:UQ,http:DQ,https:FQ}});var Mn=x((sve,A2)=>{"use strict";var If=require("buffer"),Ks=If.Buffer,Cr={},Rr;for(Rr in If)If.hasOwnProperty(Rr)&&(Rr==="SlowBuffer"||Rr==="Buffer"||(Cr[Rr]=If[Rr]));var Gs=Cr.Buffer={};for(Rr in Ks)Ks.hasOwnProperty(Rr)&&(Rr==="allocUnsafe"||Rr==="allocUnsafeSlow"||(Gs[Rr]=Ks[Rr]));Cr.Buffer.prototype=Ks.prototype;(!Gs.from||Gs.from===Uint8Array.from)&&(Gs.from=function(e,t,r){if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&typeof e.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return Ks(e,t,r)});Gs.alloc||(Gs.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=Ks(e);return!t||t.length===0?n.fill(0):typeof r=="string"?n.fill(t,r):n.fill(t),n});if(!Cr.kStringMaxLength)try{Cr.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}Cr.constants||(Cr.constants={MAX_LENGTH:Cr.kMaxLength},Cr.kStringMaxLength&&(Cr.constants.MAX_STRING_LENGTH=Cr.kStringMaxLength));A2.exports=Cr});var R2=x(tv=>{"use strict";var C2="\uFEFF";tv.PrependBOM=Zb;function Zb(e,t){this.encoder=e,this.addBOM=!0}Zb.prototype.write=function(e){return this.addBOM&&(e=C2+e,this.addBOM=!1),this.encoder.write(e)};Zb.prototype.end=function(){return this.encoder.end()};tv.StripBOM=ev;function ev(e,t){this.decoder=e,this.pass=!1,this.options=t||{}}ev.prototype.write=function(e){var t=this.decoder.write(e);return this.pass||!t||(t[0]===C2&&(t=t.slice(1),typeof this.options.stripBOM=="function"&&this.options.stripBOM()),this.pass=!0),t};ev.prototype.end=function(){return this.decoder.end()}});var N2=x((cve,T2)=>{"use strict";var xo=Mn().Buffer;T2.exports={utf8:{type:"_internal",bomAware:!0},cesu8:{type:"_internal",bomAware:!0},unicode11utf8:"utf8",ucs2:{type:"_internal",bomAware:!0},utf16le:"ucs2",binary:{type:"_internal"},base64:{type:"_internal"},hex:{type:"_internal"},_internal:nv};function nv(e,t){this.enc=e.encodingName,this.bomAware=e.bomAware,this.enc==="base64"?this.encoder=sv:this.enc==="cesu8"&&(this.enc="utf8",this.encoder=av,xo.from("eda0bdedb2a9","hex").toString()!=="\u{1F4A9}"&&(this.decoder=cv,this.defaultCharUnicode=t.defaultCharUnicode))}nv.prototype.encoder=ov;nv.prototype.decoder=iv;var rv=require("string_decoder").StringDecoder;rv.prototype.end||(rv.prototype.end=function(){});function iv(e,t){this.decoder=new rv(t.enc)}iv.prototype.write=function(e){return xo.isBuffer(e)||(e=xo.from(e)),this.decoder.write(e)};iv.prototype.end=function(){return this.decoder.end()};function ov(e,t){this.enc=t.enc}ov.prototype.write=function(e){return xo.from(e,this.enc)};ov.prototype.end=function(){};function sv(e,t){this.prevStr=""}sv.prototype.write=function(e){e=this.prevStr+e;var t=e.length-e.length%4;return this.prevStr=e.slice(t),e=e.slice(0,t),xo.from(e,"base64")};sv.prototype.end=function(){return xo.from(this.prevStr,"base64")};function av(e,t){}av.prototype.write=function(e){for(var t=xo.alloc(e.length*3),r=0,n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t[r++]=i:i<2048?(t[r++]=192+(i>>>6),t[r++]=128+(i&63)):(t[r++]=224+(i>>>12),t[r++]=128+(i>>>6&63),t[r++]=128+(i&63))}return t.slice(0,r)};av.prototype.end=function(){};function cv(e,t){this.acc=0,this.contBytes=0,this.accBytes=0,this.defaultCharUnicode=t.defaultCharUnicode}cv.prototype.write=function(e){for(var t=this.acc,r=this.contBytes,n=this.accBytes,i="",o=0;o<e.length;o++){var s=e[o];(s&192)!==128?(r>0&&(i+=this.defaultCharUnicode,r=0),s<128?i+=String.fromCharCode(s):s<224?(t=s&31,r=1,n=1):s<240?(t=s&15,r=2,n=1):i+=this.defaultCharUnicode):r>0?(t=t<<6|s&63,r--,n++,r===0&&(n===2&&t<128&&t>0?i+=this.defaultCharUnicode:n===3&&t<2048?i+=this.defaultCharUnicode:i+=String.fromCharCode(t))):i+=this.defaultCharUnicode}return this.acc=t,this.contBytes=r,this.accBytes=n,i};cv.prototype.end=function(){var e=0;return this.contBytes>0&&(e+=this.defaultCharUnicode),e}});var q2=x(Ti=>{"use strict";var kf=Mn().Buffer;Ti._utf32=lv;function lv(e,t){this.iconv=t,this.bomAware=!0,this.isLE=e.isLE}Ti.utf32le={type:"_utf32",isLE:!0};Ti.utf32be={type:"_utf32",isLE:!1};Ti.ucs4le="utf32le";Ti.ucs4be="utf32be";lv.prototype.encoder=uv;lv.prototype.decoder=pv;function uv(e,t){this.isLE=t.isLE,this.highSurrogate=0}uv.prototype.write=function(e){for(var t=kf.from(e,"ucs2"),r=kf.alloc(t.length*2),n=this.isLE?r.writeUInt32LE:r.writeUInt32BE,i=0,o=0;o<t.length;o+=2){var s=t.readUInt16LE(o),a=55296<=s&&s<56320,c=56320<=s&&s<57344;if(this.highSurrogate)if(a||!c)n.call(r,this.highSurrogate,i),i+=4;else{var l=(this.highSurrogate-55296<<10|s-56320)+65536;n.call(r,l,i),i+=4,this.highSurrogate=0;continue}a?this.highSurrogate=s:(n.call(r,s,i),i+=4,this.highSurrogate=0)}return i<r.length&&(r=r.slice(0,i)),r};uv.prototype.end=function(){if(this.highSurrogate){var e=kf.alloc(4);return this.isLE?e.writeUInt32LE(this.highSurrogate,0):e.writeUInt32BE(this.highSurrogate,0),this.highSurrogate=0,e}};function pv(e,t){this.isLE=t.isLE,this.badChar=t.iconv.defaultCharUnicode.charCodeAt(0),this.overflow=[]}pv.prototype.write=function(e){if(e.length===0)return"";var t=0,r=0,n=kf.alloc(e.length+4),i=0,o=this.isLE,s=this.overflow,a=this.badChar;if(s.length>0){for(;t<e.length&&s.length<4;t++)s.push(e[t]);s.length===4&&(o?r=s[t]|s[t+1]<<8|s[t+2]<<16|s[t+3]<<24:r=s[t+3]|s[t+2]<<8|s[t+1]<<16|s[t]<<24,s.length=0,i=I2(n,i,r,a))}for(;t<e.length-3;t+=4)o?r=e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24:r=e[t+3]|e[t+2]<<8|e[t+1]<<16|e[t]<<24,i=I2(n,i,r,a);for(;t<e.length;t++)s.push(e[t]);return n.slice(0,i).toString("ucs2")};function I2(e,t,r,n){if((r<0||r>1114111)&&(r=n),r>=65536){r-=65536;var i=55296|r>>10;e[t++]=i&255,e[t++]=i>>8;var r=56320|r&1023}return e[t++]=r&255,e[t++]=r>>8,t}pv.prototype.end=function(){this.overflow.length=0};Ti.utf32=fv;Ti.ucs4="utf32";function fv(e,t){this.iconv=t}fv.prototype.encoder=dv;fv.prototype.decoder=mv;function dv(e,t){e=e||{},e.addBOM===void 0&&(e.addBOM=!0),this.encoder=t.iconv.getEncoder(e.defaultEncoding||"utf-32le",e)}dv.prototype.write=function(e){return this.encoder.write(e)};dv.prototype.end=function(){return this.encoder.end()};function mv(e,t){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=e||{},this.iconv=t.iconv}mv.prototype.write=function(e){if(!this.decoder){if(this.initialBufs.push(e),this.initialBufsLen+=e.length,this.initialBufsLen<32)return"";var t=k2(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(t,this.options);for(var r="",n=0;n<this.initialBufs.length;n++)r+=this.decoder.write(this.initialBufs[n]);return this.initialBufs.length=this.initialBufsLen=0,r}return this.decoder.write(e)};mv.prototype.end=function(){if(!this.decoder){var e=k2(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(e,this.options);for(var t="",r=0;r<this.initialBufs.length;r++)t+=this.decoder.write(this.initialBufs[r]);var n=this.decoder.end();return n&&(t+=n),this.initialBufs.length=this.initialBufsLen=0,t}return this.decoder.end()};function k2(e,t){var r=[],n=0,i=0,o=0,s=0,a=0;e:for(var c=0;c<e.length;c++)for(var l=e[c],u=0;u<l.length;u++)if(r.push(l[u]),r.length===4){if(n===0){if(r[0]===255&&r[1]===254&&r[2]===0&&r[3]===0)return"utf-32le";if(r[0]===0&&r[1]===0&&r[2]===254&&r[3]===255)return"utf-32be"}if((r[0]!==0||r[1]>16)&&o++,(r[3]!==0||r[2]>16)&&i++,r[0]===0&&r[1]===0&&(r[2]!==0||r[3]!==0)&&a++,(r[0]!==0||r[1]!==0)&&r[2]===0&&r[3]===0&&s++,r.length=0,n++,n>=100)break e}return a-o>s-i?"utf-32be":a-o<s-i?"utf-32le":t||"utf-32le"}});var L2=x(xv=>{"use strict";var j2=Mn().Buffer;xv.utf16be=qf;function qf(){}qf.prototype.encoder=hv;qf.prototype.decoder=yv;qf.prototype.bomAware=!0;function hv(){}hv.prototype.write=function(e){for(var t=j2.from(e,"ucs2"),r=0;r<t.length;r+=2){var n=t[r];t[r]=t[r+1],t[r+1]=n}return t};hv.prototype.end=function(){};function yv(){this.overflowByte=-1}yv.prototype.write=function(e){if(e.length==0)return"";var t=j2.alloc(e.length+1),r=0,n=0;for(this.overflowByte!==-1&&(t[0]=e[0],t[1]=this.overflowByte,r=1,n=2);r<e.length-1;r+=2,n+=2)t[n]=e[r+1],t[n+1]=e[r];return this.overflowByte=r==e.length-1?e[e.length-1]:-1,t.slice(0,n).toString("ucs2")};yv.prototype.end=function(){this.overflowByte=-1};xv.utf16=gv;function gv(e,t){this.iconv=t}gv.prototype.encoder=bv;gv.prototype.decoder=vv;function bv(e,t){e=e||{},e.addBOM===void 0&&(e.addBOM=!0),this.encoder=t.iconv.getEncoder("utf-16le",e)}bv.prototype.write=function(e){return this.encoder.write(e)};bv.prototype.end=function(){return this.encoder.end()};function vv(e,t){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=e||{},this.iconv=t.iconv}vv.prototype.write=function(e){if(!this.decoder){if(this.initialBufs.push(e),this.initialBufsLen+=e.length,this.initialBufsLen<16)return"";var t=M2(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(t,this.options);for(var r="",n=0;n<this.initialBufs.length;n++)r+=this.decoder.write(this.initialBufs[n]);return this.initialBufs.length=this.initialBufsLen=0,r}return this.decoder.write(e)};vv.prototype.end=function(){if(!this.decoder){var e=M2(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(e,this.options);for(var t="",r=0;r<this.initialBufs.length;r++)t+=this.decoder.write(this.initialBufs[r]);var n=this.decoder.end();return n&&(t+=n),this.initialBufs.length=this.initialBufsLen=0,t}return this.decoder.end()};function M2(e,t){var r=[],n=0,i=0,o=0;e:for(var s=0;s<e.length;s++)for(var a=e[s],c=0;c<a.length;c++)if(r.push(a[c]),r.length===2){if(n===0){if(r[0]===255&&r[1]===254)return"utf-16le";if(r[0]===254&&r[1]===255)return"utf-16be"}if(r[0]===0&&r[1]!==0&&o++,r[0]!==0&&r[1]===0&&i++,r.length=0,n++,n>=100)break e}return o>i?"utf-16be":o<i?"utf-16le":t||"utf-16le"}});var F2=x(Lf=>{"use strict";var dn=Mn().Buffer;Lf.utf7=jf;Lf.unicode11utf7="utf7";function jf(e,t){this.iconv=t}jf.prototype.encoder=Sv;jf.prototype.decoder=_v;jf.prototype.bomAware=!0;var VQ=/[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;function Sv(e,t){this.iconv=t.iconv}Sv.prototype.write=function(e){return dn.from(e.replace(VQ,function(t){return"+"+(t==="+"?"":this.iconv.encode(t,"utf16-be").toString("base64").replace(/=+$/,""))+"-"}.bind(this)))};Sv.prototype.end=function(){};function _v(e,t){this.iconv=t.iconv,this.inBase64=!1,this.base64Accum=""}var zQ=/[A-Za-z0-9\/+]/,Ov=[];for(Kc=0;Kc<256;Kc++)Ov[Kc]=zQ.test(String.fromCharCode(Kc));var Kc,HQ=43,wo=45,wv=38;_v.prototype.write=function(e){for(var t="",r=0,n=this.inBase64,i=this.base64Accum,o=0;o<e.length;o++)if(!n)e[o]==HQ&&(t+=this.iconv.decode(e.slice(r,o),"ascii"),r=o+1,n=!0);else if(!Ov[e[o]]){if(o==r&&e[o]==wo)t+="+";else{var s=i+this.iconv.decode(e.slice(r,o),"ascii");t+=this.iconv.decode(dn.from(s,"base64"),"utf16-be")}e[o]!=wo&&o--,r=o+1,n=!1,i=""}if(!n)t+=this.iconv.decode(e.slice(r),"ascii");else{var s=i+this.iconv.decode(e.slice(r),"ascii"),a=s.length-s.length%8;i=s.slice(a),s=s.slice(0,a),t+=this.iconv.decode(dn.from(s,"base64"),"utf16-be")}return this.inBase64=n,this.base64Accum=i,t};_v.prototype.end=function(){var e="";return this.inBase64&&this.base64Accum.length>0&&(e=this.iconv.decode(dn.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",e};Lf.utf7imap=Mf;function Mf(e,t){this.iconv=t}Mf.prototype.encoder=$v;Mf.prototype.decoder=Pv;Mf.prototype.bomAware=!0;function $v(e,t){this.iconv=t.iconv,this.inBase64=!1,this.base64Accum=dn.alloc(6),this.base64AccumIdx=0}$v.prototype.write=function(e){for(var t=this.inBase64,r=this.base64Accum,n=this.base64AccumIdx,i=dn.alloc(e.length*5+10),o=0,s=0;s<e.length;s++){var a=e.charCodeAt(s);32<=a&&a<=126?(t&&(n>0&&(o+=i.write(r.slice(0,n).toString("base64").replace(/\//g,",").replace(/=+$/,""),o),n=0),i[o++]=wo,t=!1),t||(i[o++]=a,a===wv&&(i[o++]=wo))):(t||(i[o++]=wv,t=!0),t&&(r[n++]=a>>8,r[n++]=a&255,n==r.length&&(o+=i.write(r.toString("base64").replace(/\//g,","),o),n=0)))}return this.inBase64=t,this.base64AccumIdx=n,i.slice(0,o)};$v.prototype.end=function(){var e=dn.alloc(10),t=0;return this.inBase64&&(this.base64AccumIdx>0&&(t+=e.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),t),this.base64AccumIdx=0),e[t++]=wo,this.inBase64=!1),e.slice(0,t)};function Pv(e,t){this.iconv=t.iconv,this.inBase64=!1,this.base64Accum=""}var D2=Ov.slice();D2[44]=!0;Pv.prototype.write=function(e){for(var t="",r=0,n=this.inBase64,i=this.base64Accum,o=0;o<e.length;o++)if(!n)e[o]==wv&&(t+=this.iconv.decode(e.slice(r,o),"ascii"),r=o+1,n=!0);else if(!D2[e[o]]){if(o==r&&e[o]==wo)t+="&";else{var s=i+this.iconv.decode(e.slice(r,o),"ascii").replace(/,/g,"/");t+=this.iconv.decode(dn.from(s,"base64"),"utf16-be")}e[o]!=wo&&o--,r=o+1,n=!1,i=""}if(!n)t+=this.iconv.decode(e.slice(r),"ascii");else{var s=i+this.iconv.decode(e.slice(r),"ascii").replace(/,/g,"/"),a=s.length-s.length%8;i=s.slice(a),s=s.slice(0,a),t+=this.iconv.decode(dn.from(s,"base64"),"utf16-be")}return this.inBase64=n,this.base64Accum=i,t};Pv.prototype.end=function(){var e="";return this.inBase64&&this.base64Accum.length>0&&(e=this.iconv.decode(dn.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",e}});var U2=x(B2=>{"use strict";var Df=Mn().Buffer;B2._sbcs=Ev;function Ev(e,t){if(!e)throw new Error("SBCS codec is called without the data.");if(!e.chars||e.chars.length!==128&&e.chars.length!==256)throw new Error("Encoding '"+e.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(e.chars.length===128){for(var r="",n=0;n<128;n++)r+=String.fromCharCode(n);e.chars=r+e.chars}this.decodeBuf=Df.from(e.chars,"ucs2");for(var i=Df.alloc(65536,t.defaultCharSingleByte.charCodeAt(0)),n=0;n<e.chars.length;n++)i[e.chars.charCodeAt(n)]=n;this.encodeBuf=i}Ev.prototype.encoder=Av;Ev.prototype.decoder=Cv;function Av(e,t){this.encodeBuf=t.encodeBuf}Av.prototype.write=function(e){for(var t=Df.alloc(e.length),r=0;r<e.length;r++)t[r]=this.encodeBuf[e.charCodeAt(r)];return t};Av.prototype.end=function(){};function Cv(e,t){this.decodeBuf=t.decodeBuf}Cv.prototype.write=function(e){for(var t=this.decodeBuf,r=Df.alloc(e.length*2),n=0,i=0,o=0;o<e.length;o++)n=e[o]*2,i=o*2,r[i]=t[n],r[i+1]=t[n+1];return r.toString("ucs2")};Cv.prototype.end=function(){}});var z2=x((dve,V2)=>{"use strict";V2.exports={10029:"maccenteuro",maccenteuro:{type:"_sbcs",chars:"\xC4\u0100\u0101\xC9\u0104\xD6\xDC\xE1\u0105\u010C\xE4\u010D\u0106\u0107\xE9\u0179\u017A\u010E\xED\u010F\u0112\u0113\u0116\xF3\u0117\xF4\xF6\xF5\xFA\u011A\u011B\xFC\u2020\xB0\u0118\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\u0119\xA8\u2260\u0123\u012E\u012F\u012A\u2264\u2265\u012B\u0136\u2202\u2211\u0142\u013B\u013C\u013D\u013E\u0139\u013A\u0145\u0146\u0143\xAC\u221A\u0144\u0147\u2206\xAB\xBB\u2026\xA0\u0148\u0150\xD5\u0151\u014C\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\u014D\u0154\u0155\u0158\u2039\u203A\u0159\u0156\u0157\u0160\u201A\u201E\u0161\u015A\u015B\xC1\u0164\u0165\xCD\u017D\u017E\u016A\xD3\xD4\u016B\u016E\xDA\u016F\u0170\u0171\u0172\u0173\xDD\xFD\u0137\u017B\u0141\u017C\u0122\u02C7"},808:"cp808",ibm808:"cp808",cp808:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\u20AC\u25A0\xA0"},mik:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2514\u2534\u252C\u251C\u2500\u253C\u2563\u2551\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2510\u2591\u2592\u2593\u2502\u2524\u2116\xA7\u2557\u255D\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},cp720:{type:"_sbcs",chars:"\x80\x81\xE9\xE2\x84\xE0\x86\xE7\xEA\xEB\xE8\xEF\xEE\x8D\x8E\x8F\x90\u0651\u0652\xF4\xA4\u0640\xFB\xF9\u0621\u0622\u0623\u0624\xA3\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0636\u0637\u0638\u0639\u063A\u0641\xB5\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u2261\u064B\u064C\u064D\u064E\u064F\u0650\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ascii8bit:"ascii",usascii:"ascii",ansix34:"ascii",ansix341968:"ascii",ansix341986:"ascii",csascii:"ascii",cp367:"ascii",ibm367:"ascii",isoir6:"ascii",iso646us:"ascii",iso646irv:"ascii",us:"ascii",latin1:"iso88591",latin2:"iso88592",latin3:"iso88593",latin4:"iso88594",latin5:"iso88599",latin6:"iso885910",latin7:"iso885913",latin8:"iso885914",latin9:"iso885915",latin10:"iso885916",csisolatin1:"iso88591",csisolatin2:"iso88592",csisolatin3:"iso88593",csisolatin4:"iso88594",csisolatincyrillic:"iso88595",csisolatinarabic:"iso88596",csisolatingreek:"iso88597",csisolatinhebrew:"iso88598",csisolatin5:"iso88599",csisolatin6:"iso885910",l1:"iso88591",l2:"iso88592",l3:"iso88593",l4:"iso88594",l5:"iso88599",l6:"iso885910",l7:"iso885913",l8:"iso885914",l9:"iso885915",l10:"iso885916",isoir14:"iso646jp",isoir57:"iso646cn",isoir100:"iso88591",isoir101:"iso88592",isoir109:"iso88593",isoir110:"iso88594",isoir144:"iso88595",isoir127:"iso88596",isoir126:"iso88597",isoir138:"iso88598",isoir148:"iso88599",isoir157:"iso885910",isoir166:"tis620",isoir179:"iso885913",isoir199:"iso885914",isoir203:"iso885915",isoir226:"iso885916",cp819:"iso88591",ibm819:"iso88591",cyrillic:"iso88595",arabic:"iso88596",arabic8:"iso88596",ecma114:"iso88596",asmo708:"iso88596",greek:"iso88597",greek8:"iso88597",ecma118:"iso88597",elot928:"iso88597",hebrew:"iso88598",hebrew8:"iso88598",turkish:"iso88599",turkish8:"iso88599",thai:"iso885911",thai8:"iso885911",celtic:"iso885914",celtic8:"iso885914",isoceltic:"iso885914",tis6200:"tis620",tis62025291:"tis620",tis62025330:"tis620",1e4:"macroman",10006:"macgreek",10007:"maccyrillic",10079:"maciceland",10081:"macturkish",cspc8codepage437:"cp437",cspc775baltic:"cp775",cspc850multilingual:"cp850",cspcp852:"cp852",cspc862latinhebrew:"cp862",cpgr:"cp869",msee:"cp1250",mscyrl:"cp1251",msansi:"cp1252",msgreek:"cp1253",msturk:"cp1254",mshebr:"cp1255",msarab:"cp1256",winbaltrim:"cp1257",cp20866:"koi8r",20866:"koi8r",ibm878:"koi8r",cskoi8r:"koi8r",cp21866:"koi8u",21866:"koi8u",ibm1168:"koi8u",strk10482002:"rk1048",tcvn5712:"tcvn",tcvn57121:"tcvn",gb198880:"iso646cn",cn:"iso646cn",csiso14jisc6220ro:"iso646jp",jisc62201969ro:"iso646jp",jp:"iso646jp",cshproman8:"hproman8",r8:"hproman8",roman8:"hproman8",xroman8:"hproman8",ibm1051:"hproman8",mac:"macintosh",csmacintosh:"macintosh"}});var K2=x((mve,H2)=>{"use strict";H2.exports={437:"cp437",737:"cp737",775:"cp775",850:"cp850",852:"cp852",855:"cp855",856:"cp856",857:"cp857",858:"cp858",860:"cp860",861:"cp861",862:"cp862",863:"cp863",864:"cp864",865:"cp865",866:"cp866",869:"cp869",874:"windows874",922:"cp922",1046:"cp1046",1124:"cp1124",1125:"cp1125",1129:"cp1129",1133:"cp1133",1161:"cp1161",1162:"cp1162",1163:"cp1163",1250:"windows1250",1251:"windows1251",1252:"windows1252",1253:"windows1253",1254:"windows1254",1255:"windows1255",1256:"windows1256",1257:"windows1257",1258:"windows1258",28591:"iso88591",28592:"iso88592",28593:"iso88593",28594:"iso88594",28595:"iso88595",28596:"iso88596",28597:"iso88597",28598:"iso88598",28599:"iso88599",28600:"iso885910",28601:"iso885911",28603:"iso885913",28604:"iso885914",28605:"iso885915",28606:"iso885916",windows874:{type:"_sbcs",chars:"\u20AC\uFFFD\uFFFD\uFFFD\uFFFD\u2026\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xA0\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"},win874:"windows874",cp874:"windows874",windows1250:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\uFFFD\u201E\u2026\u2020\u2021\uFFFD\u2030\u0160\u2039\u015A\u0164\u017D\u0179\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\u0161\u203A\u015B\u0165\u017E\u017A\xA0\u02C7\u02D8\u0141\xA4\u0104\xA6\xA7\xA8\xA9\u015E\xAB\xAC\xAD\xAE\u017B\xB0\xB1\u02DB\u0142\xB4\xB5\xB6\xB7\xB8\u0105\u015F\xBB\u013D\u02DD\u013E\u017C\u0154\xC1\xC2\u0102\xC4\u0139\u0106\xC7\u010C\xC9\u0118\xCB\u011A\xCD\xCE\u010E\u0110\u0143\u0147\xD3\xD4\u0150\xD6\xD7\u0158\u016E\xDA\u0170\xDC\xDD\u0162\xDF\u0155\xE1\xE2\u0103\xE4\u013A\u0107\xE7\u010D\xE9\u0119\xEB\u011B\xED\xEE\u010F\u0111\u0144\u0148\xF3\xF4\u0151\xF6\xF7\u0159\u016F\xFA\u0171\xFC\xFD\u0163\u02D9"},win1250:"windows1250",cp1250:"windows1250",windows1251:{type:"_sbcs",chars:"\u0402\u0403\u201A\u0453\u201E\u2026\u2020\u2021\u20AC\u2030\u0409\u2039\u040A\u040C\u040B\u040F\u0452\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\u0459\u203A\u045A\u045C\u045B\u045F\xA0\u040E\u045E\u0408\xA4\u0490\xA6\xA7\u0401\xA9\u0404\xAB\xAC\xAD\xAE\u0407\xB0\xB1\u0406\u0456\u0491\xB5\xB6\xB7\u0451\u2116\u0454\xBB\u0458\u0405\u0455\u0457\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},win1251:"windows1251",cp1251:"windows1251",windows1252:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\uFFFD\u017D\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\uFFFD\u017E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},win1252:"windows1252",cp1252:"windows1252",windows1253:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\uFFFD\u2030\uFFFD\u2039\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\uFFFD\u203A\uFFFD\uFFFD\uFFFD\uFFFD\xA0\u0385\u0386\xA3\xA4\xA5\xA6\xA7\xA8\xA9\uFFFD\xAB\xAC\xAD\xAE\u2015\xB0\xB1\xB2\xB3\u0384\xB5\xB6\xB7\u0388\u0389\u038A\xBB\u038C\xBD\u038E\u038F\u0390\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039A\u039B\u039C\u039D\u039E\u039F\u03A0\u03A1\uFFFD\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03AA\u03AB\u03AC\u03AD\u03AE\u03AF\u03B0\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C2\u03C3\u03C4\u03C5\u03C6\u03C7\u03C8\u03C9\u03CA\u03CB\u03CC\u03CD\u03CE\uFFFD"},win1253:"windows1253",cp1253:"windows1253",windows1254:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\uFFFD\uFFFD\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u011E\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u0130\u015E\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u011F\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u0131\u015F\xFF"},win1254:"windows1254",cp1254:"windows1254",windows1255:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\uFFFD\u2039\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\uFFFD\u203A\uFFFD\uFFFD\uFFFD\uFFFD\xA0\xA1\xA2\xA3\u20AA\xA5\xA6\xA7\xA8\xA9\xD7\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xF7\xBB\xBC\xBD\xBE\xBF\u05B0\u05B1\u05B2\u05B3\u05B4\u05B5\u05B6\u05B7\u05B8\u05B9\u05BA\u05BB\u05BC\u05BD\u05BE\u05BF\u05C0\u05C1\u05C2\u05C3\u05F0\u05F1\u05F2\u05F3\u05F4\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA\uFFFD\uFFFD\u200E\u200F\uFFFD"},win1255:"windows1255",cp1255:"windows1255",windows1256:{type:"_sbcs",chars:"\u20AC\u067E\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0679\u2039\u0152\u0686\u0698\u0688\u06AF\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u06A9\u2122\u0691\u203A\u0153\u200C\u200D\u06BA\xA0\u060C\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\u06BE\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\u061B\xBB\xBC\xBD\xBE\u061F\u06C1\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\xD7\u0637\u0638\u0639\u063A\u0640\u0641\u0642\u0643\xE0\u0644\xE2\u0645\u0646\u0647\u0648\xE7\xE8\xE9\xEA\xEB\u0649\u064A\xEE\xEF\u064B\u064C\u064D\u064E\xF4\u064F\u0650\xF7\u0651\xF9\u0652\xFB\xFC\u200E\u200F\u06D2"},win1256:"windows1256",cp1256:"windows1256",windows1257:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\uFFFD\u201E\u2026\u2020\u2021\uFFFD\u2030\uFFFD\u2039\uFFFD\xA8\u02C7\xB8\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\uFFFD\u203A\uFFFD\xAF\u02DB\uFFFD\xA0\uFFFD\xA2\xA3\xA4\uFFFD\xA6\xA7\xD8\xA9\u0156\xAB\xAC\xAD\xAE\xC6\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xF8\xB9\u0157\xBB\xBC\xBD\xBE\xE6\u0104\u012E\u0100\u0106\xC4\xC5\u0118\u0112\u010C\xC9\u0179\u0116\u0122\u0136\u012A\u013B\u0160\u0143\u0145\xD3\u014C\xD5\xD6\xD7\u0172\u0141\u015A\u016A\xDC\u017B\u017D\xDF\u0105\u012F\u0101\u0107\xE4\xE5\u0119\u0113\u010D\xE9\u017A\u0117\u0123\u0137\u012B\u013C\u0161\u0144\u0146\xF3\u014D\xF5\xF6\xF7\u0173\u0142\u015B\u016B\xFC\u017C\u017E\u02D9"},win1257:"windows1257",cp1257:"windows1257",windows1258:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\uFFFD\u2039\u0152\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\uFFFD\u203A\u0153\uFFFD\uFFFD\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\u0102\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\u0300\xCD\xCE\xCF\u0110\xD1\u0309\xD3\xD4\u01A0\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u01AF\u0303\xDF\xE0\xE1\xE2\u0103\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\u0301\xED\xEE\xEF\u0111\xF1\u0323\xF3\xF4\u01A1\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u01B0\u20AB\xFF"},win1258:"windows1258",cp1258:"windows1258",iso88591:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},cp28591:"iso88591",iso88592:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0104\u02D8\u0141\xA4\u013D\u015A\xA7\xA8\u0160\u015E\u0164\u0179\xAD\u017D\u017B\xB0\u0105\u02DB\u0142\xB4\u013E\u015B\u02C7\xB8\u0161\u015F\u0165\u017A\u02DD\u017E\u017C\u0154\xC1\xC2\u0102\xC4\u0139\u0106\xC7\u010C\xC9\u0118\xCB\u011A\xCD\xCE\u010E\u0110\u0143\u0147\xD3\xD4\u0150\xD6\xD7\u0158\u016E\xDA\u0170\xDC\xDD\u0162\xDF\u0155\xE1\xE2\u0103\xE4\u013A\u0107\xE7\u010D\xE9\u0119\xEB\u011B\xED\xEE\u010F\u0111\u0144\u0148\xF3\xF4\u0151\xF6\xF7\u0159\u016F\xFA\u0171\xFC\xFD\u0163\u02D9"},cp28592:"iso88592",iso88593:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0126\u02D8\xA3\xA4\uFFFD\u0124\xA7\xA8\u0130\u015E\u011E\u0134\xAD\uFFFD\u017B\xB0\u0127\xB2\xB3\xB4\xB5\u0125\xB7\xB8\u0131\u015F\u011F\u0135\xBD\uFFFD\u017C\xC0\xC1\xC2\uFFFD\xC4\u010A\u0108\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\uFFFD\xD1\xD2\xD3\xD4\u0120\xD6\xD7\u011C\xD9\xDA\xDB\xDC\u016C\u015C\xDF\xE0\xE1\xE2\uFFFD\xE4\u010B\u0109\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\uFFFD\xF1\xF2\xF3\xF4\u0121\xF6\xF7\u011D\xF9\xFA\xFB\xFC\u016D\u015D\u02D9"},cp28593:"iso88593",iso88594:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0104\u0138\u0156\xA4\u0128\u013B\xA7\xA8\u0160\u0112\u0122\u0166\xAD\u017D\xAF\xB0\u0105\u02DB\u0157\xB4\u0129\u013C\u02C7\xB8\u0161\u0113\u0123\u0167\u014A\u017E\u014B\u0100\xC1\xC2\xC3\xC4\xC5\xC6\u012E\u010C\xC9\u0118\xCB\u0116\xCD\xCE\u012A\u0110\u0145\u014C\u0136\xD4\xD5\xD6\xD7\xD8\u0172\xDA\xDB\xDC\u0168\u016A\xDF\u0101\xE1\xE2\xE3\xE4\xE5\xE6\u012F\u010D\xE9\u0119\xEB\u0117\xED\xEE\u012B\u0111\u0146\u014D\u0137\xF4\xF5\xF6\xF7\xF8\u0173\xFA\xFB\xFC\u0169\u016B\u02D9"},cp28594:"iso88594",iso88595:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0403\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2116\u0451\u0452\u0453\u0454\u0455\u0456\u0457\u0458\u0459\u045A\u045B\u045C\xA7\u045E\u045F"},cp28595:"iso88595",iso88596:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\uFFFD\uFFFD\uFFFD\xA4\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u060C\xAD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u061B\uFFFD\uFFFD\uFFFD\u061F\uFFFD\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063A\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},cp28596:"iso88596",iso88597:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u2018\u2019\xA3\u20AC\u20AF\xA6\xA7\xA8\xA9\u037A\xAB\xAC\xAD\uFFFD\u2015\xB0\xB1\xB2\xB3\u0384\u0385\u0386\xB7\u0388\u0389\u038A\xBB\u038C\xBD\u038E\u038F\u0390\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039A\u039B\u039C\u039D\u039E\u039F\u03A0\u03A1\uFFFD\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03AA\u03AB\u03AC\u03AD\u03AE\u03AF\u03B0\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C2\u03C3\u03C4\u03C5\u03C6\u03C7\u03C8\u03C9\u03CA\u03CB\u03CC\u03CD\u03CE\uFFFD"},cp28597:"iso88597",iso88598:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\uFFFD\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xD7\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xF7\xBB\xBC\xBD\xBE\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2017\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA\uFFFD\uFFFD\u200E\u200F\uFFFD"},cp28598:"iso88598",iso88599:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u011E\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u0130\u015E\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u011F\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u0131\u015F\xFF"},cp28599:"iso88599",iso885910:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0104\u0112\u0122\u012A\u0128\u0136\xA7\u013B\u0110\u0160\u0166\u017D\xAD\u016A\u014A\xB0\u0105\u0113\u0123\u012B\u0129\u0137\xB7\u013C\u0111\u0161\u0167\u017E\u2015\u016B\u014B\u0100\xC1\xC2\xC3\xC4\xC5\xC6\u012E\u010C\xC9\u0118\xCB\u0116\xCD\xCE\xCF\xD0\u0145\u014C\xD3\xD4\xD5\xD6\u0168\xD8\u0172\xDA\xDB\xDC\xDD\xDE\xDF\u0101\xE1\xE2\xE3\xE4\xE5\xE6\u012F\u010D\xE9\u0119\xEB\u0117\xED\xEE\xEF\xF0\u0146\u014D\xF3\xF4\xF5\xF6\u0169\xF8\u0173\xFA\xFB\xFC\xFD\xFE\u0138"},cp28600:"iso885910",iso885911:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"},cp28601:"iso885911",iso885913:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u201D\xA2\xA3\xA4\u201E\xA6\xA7\xD8\xA9\u0156\xAB\xAC\xAD\xAE\xC6\xB0\xB1\xB2\xB3\u201C\xB5\xB6\xB7\xF8\xB9\u0157\xBB\xBC\xBD\xBE\xE6\u0104\u012E\u0100\u0106\xC4\xC5\u0118\u0112\u010C\xC9\u0179\u0116\u0122\u0136\u012A\u013B\u0160\u0143\u0145\xD3\u014C\xD5\xD6\xD7\u0172\u0141\u015A\u016A\xDC\u017B\u017D\xDF\u0105\u012F\u0101\u0107\xE4\xE5\u0119\u0113\u010D\xE9\u017A\u0117\u0123\u0137\u012B\u013C\u0161\u0144\u0146\xF3\u014D\xF5\xF6\xF7\u0173\u0142\u015B\u016B\xFC\u017C\u017E\u2019"},cp28603:"iso885913",iso885914:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u1E02\u1E03\xA3\u010A\u010B\u1E0A\xA7\u1E80\xA9\u1E82\u1E0B\u1EF2\xAD\xAE\u0178\u1E1E\u1E1F\u0120\u0121\u1E40\u1E41\xB6\u1E56\u1E81\u1E57\u1E83\u1E60\u1EF3\u1E84\u1E85\u1E61\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0174\xD1\xD2\xD3\xD4\xD5\xD6\u1E6A\xD8\xD9\xDA\xDB\xDC\xDD\u0176\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0175\xF1\xF2\xF3\xF4\xF5\xF6\u1E6B\xF8\xF9\xFA\xFB\xFC\xFD\u0177\xFF"},cp28604:"iso885914",iso885915:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\u20AC\xA5\u0160\xA7\u0161\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\u017D\xB5\xB6\xB7\u017E\xB9\xBA\xBB\u0152\u0153\u0178\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},cp28605:"iso885915",iso885916:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0104\u0105\u0141\u20AC\u201E\u0160\xA7\u0161\xA9\u0218\xAB\u0179\xAD\u017A\u017B\xB0\xB1\u010C\u0142\u017D\u201D\xB6\xB7\u017E\u010D\u0219\xBB\u0152\u0153\u0178\u017C\xC0\xC1\xC2\u0102\xC4\u0106\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0110\u0143\xD2\xD3\xD4\u0150\xD6\u015A\u0170\xD9\xDA\xDB\xDC\u0118\u021A\xDF\xE0\xE1\xE2\u0103\xE4\u0107\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0111\u0144\xF2\xF3\xF4\u0151\xF6\u015B\u0171\xF9\xFA\xFB\xFC\u0119\u021B\xFF"},cp28606:"iso885916",cp437:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm437:"cp437",csibm437:"cp437",cp737:{type:"_sbcs",chars:"\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039A\u039B\u039C\u039D\u039E\u039F\u03A0\u03A1\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u03C5\u03C6\u03C7\u03C8\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03C9\u03AC\u03AD\u03AE\u03CA\u03AF\u03CC\u03CD\u03CB\u03CE\u0386\u0388\u0389\u038A\u038C\u038E\u038F\xB1\u2265\u2264\u03AA\u03AB\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm737:"cp737",csibm737:"cp737",cp775:{type:"_sbcs",chars:"\u0106\xFC\xE9\u0101\xE4\u0123\xE5\u0107\u0142\u0113\u0156\u0157\u012B\u0179\xC4\xC5\xC9\xE6\xC6\u014D\xF6\u0122\xA2\u015A\u015B\xD6\xDC\xF8\xA3\xD8\xD7\xA4\u0100\u012A\xF3\u017B\u017C\u017A\u201D\xA6\xA9\xAE\xAC\xBD\xBC\u0141\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u0104\u010C\u0118\u0116\u2563\u2551\u2557\u255D\u012E\u0160\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u0172\u016A\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u017D\u0105\u010D\u0119\u0117\u012F\u0161\u0173\u016B\u017E\u2518\u250C\u2588\u2584\u258C\u2590\u2580\xD3\xDF\u014C\u0143\xF5\xD5\xB5\u0144\u0136\u0137\u013B\u013C\u0146\u0112\u0145\u2019\xAD\xB1\u201C\xBE\xB6\xA7\xF7\u201E\xB0\u2219\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm775:"cp775",csibm775:"cp775",cp850:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\xD7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\xAE\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\xC1\xC2\xC0\xA9\u2563\u2551\u2557\u255D\xA2\xA5\u2510\u2514\u2534\u252C\u251C\u2500\u253C\xE3\xC3\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\xF0\xD0\xCA\xCB\xC8\u0131\xCD\xCE\xCF\u2518\u250C\u2588\u2584\xA6\xCC\u2580\xD3\xDF\xD4\xD2\xF5\xD5\xB5\xFE\xDE\xDA\xDB\xD9\xFD\xDD\xAF\xB4\xAD\xB1\u2017\xBE\xB6\xA7\xF7\xB8\xB0\xA8\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm850:"cp850",csibm850:"cp850",cp852:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\u016F\u0107\xE7\u0142\xEB\u0150\u0151\xEE\u0179\xC4\u0106\xC9\u0139\u013A\xF4\xF6\u013D\u013E\u015A\u015B\xD6\xDC\u0164\u0165\u0141\xD7\u010D\xE1\xED\xF3\xFA\u0104\u0105\u017D\u017E\u0118\u0119\xAC\u017A\u010C\u015F\xAB\xBB\u2591\u2592\u2593\u2502\u2524\xC1\xC2\u011A\u015E\u2563\u2551\u2557\u255D\u017B\u017C\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u0102\u0103\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\u0111\u0110\u010E\xCB\u010F\u0147\xCD\xCE\u011B\u2518\u250C\u2588\u2584\u0162\u016E\u2580\xD3\xDF\xD4\u0143\u0144\u0148\u0160\u0161\u0154\xDA\u0155\u0170\xFD\xDD\u0163\xB4\xAD\u02DD\u02DB\u02C7\u02D8\xA7\xF7\xB8\xB0\xA8\u02D9\u0171\u0158\u0159\u25A0\xA0"},ibm852:"cp852",csibm852:"cp852",cp855:{type:"_sbcs",chars:"\u0452\u0402\u0453\u0403\u0451\u0401\u0454\u0404\u0455\u0405\u0456\u0406\u0457\u0407\u0458\u0408\u0459\u0409\u045A\u040A\u045B\u040B\u045C\u040C\u045E\u040E\u045F\u040F\u044E\u042E\u044A\u042A\u0430\u0410\u0431\u0411\u0446\u0426\u0434\u0414\u0435\u0415\u0444\u0424\u0433\u0413\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u0445\u0425\u0438\u0418\u2563\u2551\u2557\u255D\u0439\u0419\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u043A\u041A\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\u043B\u041B\u043C\u041C\u043D\u041D\u043E\u041E\u043F\u2518\u250C\u2588\u2584\u041F\u044F\u2580\u042F\u0440\u0420\u0441\u0421\u0442\u0422\u0443\u0423\u0436\u0416\u0432\u0412\u044C\u042C\u2116\xAD\u044B\u042B\u0437\u0417\u0448\u0428\u044D\u042D\u0449\u0429\u0447\u0427\xA7\u25A0\xA0"},ibm855:"cp855",csibm855:"cp855",cp856:{type:"_sbcs",chars:"\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA\uFFFD\xA3\uFFFD\xD7\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xAE\xAC\xBD\xBC\uFFFD\xAB\xBB\u2591\u2592\u2593\u2502\u2524\uFFFD\uFFFD\uFFFD\xA9\u2563\u2551\u2557\u255D\xA2\xA5\u2510\u2514\u2534\u252C\u251C\u2500\u253C\uFFFD\uFFFD\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2518\u250C\u2588\u2584\xA6\uFFFD\u2580\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xB5\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xAF\xB4\xAD\xB1\u2017\xBE\xB6\xA7\xF7\xB8\xB0\xA8\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm856:"cp856",csibm856:"cp856",cp857:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\u0131\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\u0130\xD6\xDC\xF8\xA3\xD8\u015E\u015F\xE1\xED\xF3\xFA\xF1\xD1\u011E\u011F\xBF\xAE\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\xC1\xC2\xC0\xA9\u2563\u2551\u2557\u255D\xA2\xA5\u2510\u2514\u2534\u252C\u251C\u2500\u253C\xE3\xC3\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\xBA\xAA\xCA\xCB\xC8\uFFFD\xCD\xCE\xCF\u2518\u250C\u2588\u2584\xA6\xCC\u2580\xD3\xDF\xD4\xD2\xF5\xD5\xB5\uFFFD\xD7\xDA\xDB\xD9\xEC\xFF\xAF\xB4\xAD\xB1\uFFFD\xBE\xB6\xA7\xF7\xB8\xB0\xA8\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm857:"cp857",csibm857:"cp857",cp858:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\xD7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\xAE\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\xC1\xC2\xC0\xA9\u2563\u2551\u2557\u255D\xA2\xA5\u2510\u2514\u2534\u252C\u251C\u2500\u253C\xE3\xC3\u255A\u2554\u2569\u2566\u2560\u2550\u256C\xA4\xF0\xD0\xCA\xCB\xC8\u20AC\xCD\xCE\xCF\u2518\u250C\u2588\u2584\xA6\xCC\u2580\xD3\xDF\xD4\xD2\xF5\xD5\xB5\xFE\xDE\xDA\xDB\xD9\xFD\xDD\xAF\xB4\xAD\xB1\u2017\xBE\xB6\xA7\xF7\xB8\xB0\xA8\xB7\xB9\xB3\xB2\u25A0\xA0"},ibm858:"cp858",csibm858:"cp858",cp860:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE3\xE0\xC1\xE7\xEA\xCA\xE8\xCD\xD4\xEC\xC3\xC2\xC9\xC0\xC8\xF4\xF5\xF2\xDA\xF9\xCC\xD5\xDC\xA2\xA3\xD9\u20A7\xD3\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\xD2\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm860:"cp860",csibm860:"cp860",cp861:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xD0\xF0\xDE\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xFE\xFB\xDD\xFD\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xC1\xCD\xD3\xDA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm861:"cp861",csibm861:"cp861",cp862:{type:"_sbcs",chars:"\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm862:"cp862",csibm862:"cp862",cp863:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xC2\xE0\xB6\xE7\xEA\xEB\xE8\xEF\xEE\u2017\xC0\xA7\xC9\xC8\xCA\xF4\xCB\xCF\xFB\xF9\xA4\xD4\xDC\xA2\xA3\xD9\xDB\u0192\xA6\xB4\xF3\xFA\xA8\xB8\xB3\xAF\xCE\u2310\xAC\xBD\xBC\xBE\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm863:"cp863",csibm863:"cp863",cp864:{type:"_sbcs",chars:`\0\x07\b
50
50
  \v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2116\u0451\u0452\u0491\u0454\u0455\u0456\u0457\u0458\u0459\u045A\u045B\u045C\xA7\u045E\u045F"},ibm1124:"cp1124",csibm1124:"cp1124",cp1125:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0490\u0491\u0404\u0454\u0406\u0456\u0407\u0457\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm1125:"cp1125",csibm1125:"cp1125",cp1129:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\u0153\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\u0178\xB5\xB6\xB7\u0152\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\u0102\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\u0300\xCD\xCE\xCF\u0110\xD1\u0309\xD3\xD4\u01A0\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u01AF\u0303\xDF\xE0\xE1\xE2\u0103\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\u0301\xED\xEE\xEF\u0111\xF1\u0323\xF3\xF4\u01A1\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u01B0\u20AB\xFF"},ibm1129:"cp1129",csibm1129:"cp1129",cp1133:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0E81\u0E82\u0E84\u0E87\u0E88\u0EAA\u0E8A\u0E8D\u0E94\u0E95\u0E96\u0E97\u0E99\u0E9A\u0E9B\u0E9C\u0E9D\u0E9E\u0E9F\u0EA1\u0EA2\u0EA3\u0EA5\u0EA7\u0EAB\u0EAD\u0EAE\uFFFD\uFFFD\uFFFD\u0EAF\u0EB0\u0EB2\u0EB3\u0EB4\u0EB5\u0EB6\u0EB7\u0EB8\u0EB9\u0EBC\u0EB1\u0EBB\u0EBD\uFFFD\uFFFD\uFFFD\u0EC0\u0EC1\u0EC2\u0EC3\u0EC4\u0EC8\u0EC9\u0ECA\u0ECB\u0ECC\u0ECD\u0EC6\uFFFD\u0EDC\u0EDD\u20AD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0ED0\u0ED1\u0ED2\u0ED3\u0ED4\u0ED5\u0ED6\u0ED7\u0ED8\u0ED9\uFFFD\uFFFD\xA2\xAC\xA6\uFFFD"},ibm1133:"cp1133",csibm1133:"cp1133",cp1161:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E48\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\u0E49\u0E4A\u0E4B\u20AC\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\xA2\xAC\xA6\xA0"},ibm1161:"cp1161",csibm1161:"cp1161",cp1162:{type:"_sbcs",chars:"\u20AC\x81\x82\x83\x84\u2026\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"},ibm1162:"cp1162",csibm1162:"cp1162",cp1163:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\u20AC\xA5\xA6\xA7\u0153\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\u0178\xB5\xB6\xB7\u0152\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\u0102\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\u0300\xCD\xCE\xCF\u0110\xD1\u0309\xD3\xD4\u01A0\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u01AF\u0303\xDF\xE0\xE1\xE2\u0103\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\u0301\xED\xEE\xEF\u0111\xF1\u0323\xF3\xF4\u01A1\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u01B0\u20AB\xFF"},ibm1163:"cp1163",csibm1163:"cp1163",maccroatian:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\u0160\u2122\xB4\xA8\u2260\u017D\xD8\u221E\xB1\u2264\u2265\u2206\xB5\u2202\u2211\u220F\u0161\u222B\xAA\xBA\u2126\u017E\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u0106\xAB\u010C\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u0110\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\uFFFD\xA9\u2044\xA4\u2039\u203A\xC6\xBB\u2013\xB7\u201A\u201E\u2030\xC2\u0107\xC1\u010D\xC8\xCD\xCE\xCF\xCC\xD3\xD4\u0111\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u03C0\xCB\u02DA\xB8\xCA\xE6\u02C7"},maccyrillic:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u2020\xB0\xA2\xA3\xA7\u2022\xB6\u0406\xAE\xA9\u2122\u0402\u0452\u2260\u0403\u0453\u221E\xB1\u2264\u2265\u0456\xB5\u2202\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040A\u045A\u0458\u0405\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\u040B\u045B\u040C\u045C\u0455\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u201E\u040E\u045E\u040F\u045F\u2116\u0401\u0451\u044F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\xA4"},macgreek:{type:"_sbcs",chars:"\xC4\xB9\xB2\xC9\xB3\xD6\xDC\u0385\xE0\xE2\xE4\u0384\xA8\xE7\xE9\xE8\xEA\xEB\xA3\u2122\xEE\xEF\u2022\xBD\u2030\xF4\xF6\xA6\xAD\xF9\xFB\xFC\u2020\u0393\u0394\u0398\u039B\u039E\u03A0\xDF\xAE\xA9\u03A3\u03AA\xA7\u2260\xB0\u0387\u0391\xB1\u2264\u2265\xA5\u0392\u0395\u0396\u0397\u0399\u039A\u039C\u03A6\u03AB\u03A8\u03A9\u03AC\u039D\xAC\u039F\u03A1\u2248\u03A4\xAB\xBB\u2026\xA0\u03A5\u03A7\u0386\u0388\u0153\u2013\u2015\u201C\u201D\u2018\u2019\xF7\u0389\u038A\u038C\u038E\u03AD\u03AE\u03AF\u03CC\u038F\u03CD\u03B1\u03B2\u03C8\u03B4\u03B5\u03C6\u03B3\u03B7\u03B9\u03BE\u03BA\u03BB\u03BC\u03BD\u03BF\u03C0\u03CE\u03C1\u03C3\u03C4\u03B8\u03C9\u03C2\u03C7\u03C5\u03B6\u03CA\u03CB\u0390\u03B0\uFFFD"},maciceland:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\xDD\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\xD0\xF0\xDE\xFE\xFD\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},macroman:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},macromania:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\u0102\u015E\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\u0103\u015F\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\u0162\u0163\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},macthai:{type:"_sbcs",chars:"\xAB\xBB\u2026\uF88C\uF88F\uF892\uF895\uF898\uF88B\uF88E\uF891\uF894\uF897\u201C\u201D\uF899\uFFFD\u2022\uF884\uF889\uF885\uF886\uF887\uF888\uF88A\uF88D\uF890\uF893\uF896\u2018\u2019\uFFFD\xA0\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFEFF\u200B\u2013\u2014\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u2122\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\xAE\xA9\uFFFD\uFFFD\uFFFD\uFFFD"},macturkish:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u011E\u011F\u0130\u0131\u015E\u015F\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\uFFFD\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},macukraine:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u2020\xB0\u0490\xA3\xA7\u2022\xB6\u0406\xAE\xA9\u2122\u0402\u0452\u2260\u0403\u0453\u221E\xB1\u2264\u2265\u0456\xB5\u0491\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040A\u045A\u0458\u0405\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\u040B\u045B\u040C\u045C\u0455\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u201E\u040E\u045E\u040F\u045F\u2116\u0401\u0451\u044F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\xA4"},koi8r:{type:"_sbcs",chars:"\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2580\u2584\u2588\u258C\u2590\u2591\u2592\u2593\u2320\u25A0\u2219\u221A\u2248\u2264\u2265\xA0\u2321\xB0\xB2\xB7\xF7\u2550\u2551\u2552\u0451\u2553\u2554\u2555\u2556\u2557\u2558\u2559\u255A\u255B\u255C\u255D\u255E\u255F\u2560\u2561\u0401\u2562\u2563\u2564\u2565\u2566\u2567\u2568\u2569\u256A\u256B\u256C\xA9\u044E\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u044F\u0440\u0441\u0442\u0443\u0436\u0432\u044C\u044B\u0437\u0448\u044D\u0449\u0447\u044A\u042E\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u042F\u0420\u0421\u0422\u0423\u0416\u0412\u042C\u042B\u0417\u0428\u042D\u0429\u0427\u042A"},koi8u:{type:"_sbcs",chars:"\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2580\u2584\u2588\u258C\u2590\u2591\u2592\u2593\u2320\u25A0\u2219\u221A\u2248\u2264\u2265\xA0\u2321\xB0\xB2\xB7\xF7\u2550\u2551\u2552\u0451\u0454\u2554\u0456\u0457\u2557\u2558\u2559\u255A\u255B\u0491\u255D\u255E\u255F\u2560\u2561\u0401\u0404\u2563\u0406\u0407\u2566\u2567\u2568\u2569\u256A\u0490\u256C\xA9\u044E\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u044F\u0440\u0441\u0442\u0443\u0436\u0432\u044C\u044B\u0437\u0448\u044D\u0449\u0447\u044A\u042E\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u042F\u0420\u0421\u0422\u0423\u0416\u0412\u042C\u042B\u0417\u0428\u042D\u0429\u0427\u042A"},koi8ru:{type:"_sbcs",chars:"\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2580\u2584\u2588\u258C\u2590\u2591\u2592\u2593\u2320\u25A0\u2219\u221A\u2248\u2264\u2265\xA0\u2321\xB0\xB2\xB7\xF7\u2550\u2551\u2552\u0451\u0454\u2554\u0456\u0457\u2557\u2558\u2559\u255A\u255B\u0491\u045E\u255E\u255F\u2560\u2561\u0401\u0404\u2563\u0406\u0407\u2566\u2567\u2568\u2569\u256A\u0490\u040E\xA9\u044E\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u044F\u0440\u0441\u0442\u0443\u0436\u0432\u044C\u044B\u0437\u0448\u044D\u0449\u0447\u044A\u042E\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u042F\u0420\u0421\u0422\u0423\u0416\u0412\u042C\u042B\u0417\u0428\u042D\u0429\u0427\u042A"},koi8t:{type:"_sbcs",chars:"\u049B\u0493\u201A\u0492\u201E\u2026\u2020\u2021\uFFFD\u2030\u04B3\u2039\u04B2\u04B7\u04B6\uFFFD\u049A\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\uFFFD\u203A\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u04EF\u04EE\u0451\xA4\u04E3\xA6\xA7\uFFFD\uFFFD\uFFFD\xAB\xAC\xAD\xAE\uFFFD\xB0\xB1\xB2\u0401\uFFFD\u04E2\xB6\xB7\uFFFD\u2116\uFFFD\xBB\uFFFD\uFFFD\uFFFD\xA9\u044E\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u044F\u0440\u0441\u0442\u0443\u0436\u0432\u044C\u044B\u0437\u0448\u044D\u0449\u0447\u044A\u042E\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u042F\u0420\u0421\u0422\u0423\u0416\u0412\u042C\u042B\u0417\u0428\u042D\u0429\u0427\u042A"},armscii8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\uFFFD\u0587\u0589)(\xBB\xAB\u2014.\u055D,-\u058A\u2026\u055C\u055B\u055E\u0531\u0561\u0532\u0562\u0533\u0563\u0534\u0564\u0535\u0565\u0536\u0566\u0537\u0567\u0538\u0568\u0539\u0569\u053A\u056A\u053B\u056B\u053C\u056C\u053D\u056D\u053E\u056E\u053F\u056F\u0540\u0570\u0541\u0571\u0542\u0572\u0543\u0573\u0544\u0574\u0545\u0575\u0546\u0576\u0547\u0577\u0548\u0578\u0549\u0579\u054A\u057A\u054B\u057B\u054C\u057C\u054D\u057D\u054E\u057E\u054F\u057F\u0550\u0580\u0551\u0581\u0552\u0582\u0553\u0583\u0554\u0584\u0555\u0585\u0556\u0586\u055A\uFFFD"},rk1048:{type:"_sbcs",chars:"\u0402\u0403\u201A\u0453\u201E\u2026\u2020\u2021\u20AC\u2030\u0409\u2039\u040A\u049A\u04BA\u040F\u0452\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\u0459\u203A\u045A\u049B\u04BB\u045F\xA0\u04B0\u04B1\u04D8\xA4\u04E8\xA6\xA7\u0401\xA9\u0492\xAB\xAC\xAD\xAE\u04AE\xB0\xB1\u0406\u0456\u04E9\xB5\xB6\xB7\u0451\u2116\u0493\xBB\u04D9\u04A2\u04A3\u04AF\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},tcvn:{type:"_sbcs",chars:`\0\xDA\u1EE4\u1EEA\u1EEC\u1EEE\x07\b
51
51
  \v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
52
52
  \v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
@@ -185,10 +185,10 @@ ${s}`:s);let a=r.after.join(`
185
185
  `);a&&(o.comment=o.comment?`${o.comment}
186
186
  ${a}`:a)}return t.resolved=o}function LZ(e,t){if(t.type!==j.Type.MAP&&t.type!==j.Type.FLOW_MAP){let s=`A ${t.type} node cannot be resolved as a mapping`;return e.errors.push(new j.YAMLSyntaxError(t,s)),null}let{comments:r,items:n}=t.type===j.Type.FLOW_MAP?UZ(e,t):BZ(e,t),i=new rl;i.items=n,DN(i,r);let o=!1;for(let s=0;s<n.length;++s){let{key:a}=n[s];if(a instanceof hr&&(o=!0),e.schema.merge&&a&&a.value===IN){n[s]=new Zf(n[s]);let c=n[s].value.items,l=null;c.some(u=>{if(u instanceof Ro){let{type:p}=u.source;return p===j.Type.MAP||p===j.Type.FLOW_MAP?!1:l="Merge nodes aliases can only point to maps"}return l="Merge nodes can only have Alias nodes as values"}),l&&e.errors.push(new j.YAMLSemanticError(t,l))}else for(let c=s+1;c<n.length;++c){let{key:l}=n[c];if(a===l||a&&l&&Object.prototype.hasOwnProperty.call(a,"value")&&a.value===l.value){let u=`Map keys must be unique; "${a}" is repeated`;e.errors.push(new j.YAMLSemanticError(t,u));break}}}if(o&&!e.options.mapAsMap){let s="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new j.YAMLWarning(t,s))}return t.resolved=i,i}var DZ=({context:{lineStart:e,node:t,src:r},props:n})=>{if(n.length===0)return!1;let{start:i}=n[0];if(t&&i>t.valueRange.start||r[i]!==j.Char.COMMENT)return!1;for(let o=e;o<i;++o)if(r[o]===`
187
187
  `)return!1;return!0};function FZ(e,t){if(!DZ(e))return;let r=e.getPropValue(0,j.Char.COMMENT,!0),n=!1,i=t.value.commentBefore;if(i&&i.startsWith(r))t.value.commentBefore=i.substr(r.length+1),n=!0;else{let o=t.value.comment;!e.node&&o&&o.startsWith(r)&&(t.value.comment=o.substr(r.length+1),n=!0)}n&&(t.comment=r)}function BZ(e,t){let r=[],n=[],i,o=null;for(let s=0;s<t.items.length;++s){let a=t.items[s];switch(a.type){case j.Type.BLANK_LINE:r.push({afterKey:!!i,before:n.length});break;case j.Type.COMMENT:r.push({afterKey:!!i,before:n.length,comment:a.comment});break;case j.Type.MAP_KEY:i!==void 0&&n.push(new Me(i)),a.error&&e.errors.push(a.error),i=Mi(e,a.node),o=null;break;case j.Type.MAP_VALUE:{if(i===void 0&&(i=null),a.error&&e.errors.push(a.error),!a.context.atLineStart&&a.node&&a.node.type===j.Type.MAP&&!a.node.context.atLineStart){let u="Nested mappings are not allowed in compact mappings";e.errors.push(new j.YAMLSemanticError(a.node,u))}let c=a.node;if(!c&&a.props.length>0){c=new j.PlainValue(j.Type.PLAIN,[]),c.context={parent:a,src:a.context.src};let u=a.range.start+1;if(c.range={start:u,end:u},c.valueRange={start:u,end:u},typeof a.range.origStart=="number"){let p=a.range.origStart+1;c.range.origStart=c.range.origEnd=p,c.valueRange.origStart=c.valueRange.origEnd=p}}let l=new Me(i,Mi(e,c));FZ(a,l),n.push(l),i&&typeof o=="number"&&a.range.start>o+1024&&e.errors.push(LN(t,i)),i=void 0,o=null}break;default:i!==void 0&&n.push(new Me(i)),i=Mi(e,a),o=a.range.start,a.error&&e.errors.push(a.error);e:for(let c=s+1;;++c){let l=t.items[c];switch(l&&l.type){case j.Type.BLANK_LINE:case j.Type.COMMENT:continue e;case j.Type.MAP_VALUE:break e;default:{let u="Implicit map keys need to be followed by map values";e.errors.push(new j.YAMLSemanticError(a,u));break e}}}if(a.valueRangeContainsNewline){let c="Implicit map keys need to be on a single line";e.errors.push(new j.YAMLSemanticError(a,c))}}}return i!==void 0&&n.push(new Me(i)),{comments:r,items:n}}function UZ(e,t){let r=[],n=[],i,o=!1,s="{";for(let a=0;a<t.items.length;++a){let c=t.items[a];if(typeof c.char=="string"){let{char:l,offset:u}=c;if(l==="?"&&i===void 0&&!o){o=!0,s=":";continue}if(l===":"){if(i===void 0&&(i=null),s===":"){s=",";continue}}else if(o&&(i===void 0&&l!==","&&(i=null),o=!1),i!==void 0&&(n.push(new Me(i)),i=void 0,l===",")){s=":";continue}if(l==="}"){if(a===t.items.length-1)continue}else if(l===s){s=":";continue}let p=`Flow map contains an unexpected ${l}`,m=new j.YAMLSyntaxError(t,p);m.offset=u,e.errors.push(m)}else c.type===j.Type.BLANK_LINE?r.push({afterKey:!!i,before:n.length}):c.type===j.Type.COMMENT?(MN(e.errors,c),r.push({afterKey:!!i,before:n.length,comment:c.comment})):i===void 0?(s===","&&e.errors.push(new j.YAMLSemanticError(c,"Separator , missing in flow map")),i=Mi(e,c)):(s!==","&&e.errors.push(new j.YAMLSemanticError(c,"Indicator : missing in flow map entry")),n.push(new Me(i,Mi(e,c))),i=void 0,o=!1)}return jN(e.errors,t),i!==void 0&&n.push(new Me(i)),{comments:r,items:n}}function VZ(e,t){if(t.type!==j.Type.SEQ&&t.type!==j.Type.FLOW_SEQ){let o=`A ${t.type} node cannot be resolved as a sequence`;return e.errors.push(new j.YAMLSyntaxError(t,o)),null}let{comments:r,items:n}=t.type===j.Type.FLOW_SEQ?HZ(e,t):zZ(e,t),i=new ji;if(i.items=n,DN(i,r),!e.options.mapAsMap&&n.some(o=>o instanceof Me&&o.key instanceof hr)){let o="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new j.YAMLWarning(t,o))}return t.resolved=i,i}function zZ(e,t){let r=[],n=[];for(let i=0;i<t.items.length;++i){let o=t.items[i];switch(o.type){case j.Type.BLANK_LINE:r.push({before:n.length});break;case j.Type.COMMENT:r.push({comment:o.comment,before:n.length});break;case j.Type.SEQ_ITEM:if(o.error&&e.errors.push(o.error),n.push(Mi(e,o.node)),o.hasProps){let s="Sequence items cannot have tags or anchors before the - indicator";e.errors.push(new j.YAMLSemanticError(o,s))}break;default:o.error&&e.errors.push(o.error),e.errors.push(new j.YAMLSyntaxError(o,`Unexpected ${o.type} node in sequence`))}}return{comments:r,items:n}}function HZ(e,t){let r=[],n=[],i=!1,o,s=null,a="[",c=null;for(let l=0;l<t.items.length;++l){let u=t.items[l];if(typeof u.char=="string"){let{char:p,offset:m}=u;if(p!==":"&&(i||o!==void 0)&&(i&&o===void 0&&(o=a?n.pop():null),n.push(new Me(o)),i=!1,o=void 0,s=null),p===a)a=null;else if(!a&&p==="?")i=!0;else if(a!=="["&&p===":"&&o===void 0){if(a===","){if(o=n.pop(),o instanceof Me){let d="Chaining flow sequence pairs is invalid",f=new j.YAMLSemanticError(t,d);f.offset=m,e.errors.push(f)}if(!i&&typeof s=="number"){let d=u.range?u.range.start:u.offset;d>s+1024&&e.errors.push(LN(t,o));let{src:f}=c.context;for(let h=s;h<d;++h)if(f[h]===`
188
- `){let y="Implicit keys of flow sequence pairs need to be on a single line";e.errors.push(new j.YAMLSemanticError(c,y));break}}}else o=null;s=null,i=!1,a=null}else if(a==="["||p!=="]"||l<t.items.length-1){let d=`Flow sequence contains an unexpected ${p}`,f=new j.YAMLSyntaxError(t,d);f.offset=m,e.errors.push(f)}}else if(u.type===j.Type.BLANK_LINE)r.push({before:n.length});else if(u.type===j.Type.COMMENT)MN(e.errors,u),r.push({comment:u.comment,before:n.length});else{if(a){let m=`Expected a ${a} in flow sequence`;e.errors.push(new j.YAMLSemanticError(u,m))}let p=Mi(e,u);o===void 0?(n.push(p),c=u):(n.push(new Me(o,p)),o=void 0),s=u.range.start,a=","}}return jN(e.errors,t),o!==void 0&&n.push(new Me(o)),{comments:r,items:n}}Ke.Alias=Ro;Ke.Collection=hr;Ke.Merge=Zf;Ke.Node=mr;Ke.Pair=Me;Ke.Scalar=qt;Ke.YAMLMap=rl;Ke.YAMLSeq=ji;Ke.addComment=Zs;Ke.binaryOptions=_Z;Ke.boolOptions=OZ;Ke.findPair=tl;Ke.intOptions=$Z;Ke.isEmptyPath=NN;Ke.nullOptions=PZ;Ke.resolveMap=LZ;Ke.resolveNode=Mi;Ke.resolveSeq=VZ;Ke.resolveString=c1;Ke.strOptions=To;Ke.stringifyNumber=RZ;Ke.stringifyString=CZ;Ke.toJSON=qi});var f1=x(Kr=>{"use strict";var yr=Po(),_e=nl(),KZ={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{let r=_e.resolveString(e,t);if(typeof Buffer=="function")return Buffer.from(r,"base64");if(typeof atob=="function"){let n=atob(r.replace(/[\n\r]/g,"")),i=new Uint8Array(n.length);for(let o=0;o<n.length;++o)i[o]=n.charCodeAt(o);return i}else{let n="This environment does not support reading binary tags; either Buffer or atob is required";return e.errors.push(new yr.YAMLReferenceError(t,n)),null}},options:_e.binaryOptions,stringify:({comment:e,type:t,value:r},n,i,o)=>{let s;if(typeof Buffer=="function")s=r instanceof Buffer?r.toString("base64"):Buffer.from(r.buffer).toString("base64");else if(typeof btoa=="function"){let a="";for(let c=0;c<r.length;++c)a+=String.fromCharCode(r[c]);s=btoa(a)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=_e.binaryOptions.defaultType),t===yr.Type.QUOTE_DOUBLE)r=s;else{let{lineWidth:a}=_e.binaryOptions,c=Math.ceil(s.length/a),l=new Array(c);for(let u=0,p=0;u<c;++u,p+=a)l[u]=s.substr(p,a);r=l.join(t===yr.Type.BLOCK_LITERAL?`
189
- `:" ")}return _e.stringifyString({comment:e,type:t,value:r},n,i,o)}};function BN(e,t){let r=_e.resolveSeq(e,t);for(let n=0;n<r.items.length;++n){let i=r.items[n];if(!(i instanceof _e.Pair)){if(i instanceof _e.YAMLMap){if(i.items.length>1){let s="Each pair must have its own sequence indicator";throw new yr.YAMLSemanticError(t,s)}let o=i.items[0]||new _e.Pair;i.commentBefore&&(o.commentBefore=o.commentBefore?`${i.commentBefore}
188
+ `){let y="Implicit keys of flow sequence pairs need to be on a single line";e.errors.push(new j.YAMLSemanticError(c,y));break}}}else o=null;s=null,i=!1,a=null}else if(a==="["||p!=="]"||l<t.items.length-1){let d=`Flow sequence contains an unexpected ${p}`,f=new j.YAMLSyntaxError(t,d);f.offset=m,e.errors.push(f)}}else if(u.type===j.Type.BLANK_LINE)r.push({before:n.length});else if(u.type===j.Type.COMMENT)MN(e.errors,u),r.push({comment:u.comment,before:n.length});else{if(a){let m=`Expected a ${a} in flow sequence`;e.errors.push(new j.YAMLSemanticError(u,m))}let p=Mi(e,u);o===void 0?(n.push(p),c=u):(n.push(new Me(o,p)),o=void 0),s=u.range.start,a=","}}return jN(e.errors,t),o!==void 0&&n.push(new Me(o)),{comments:r,items:n}}Ke.Alias=Ro;Ke.Collection=hr;Ke.Merge=Zf;Ke.Node=mr;Ke.Pair=Me;Ke.Scalar=qt;Ke.YAMLMap=rl;Ke.YAMLSeq=ji;Ke.addComment=Zs;Ke.binaryOptions=_Z;Ke.boolOptions=OZ;Ke.findPair=tl;Ke.intOptions=$Z;Ke.isEmptyPath=NN;Ke.nullOptions=PZ;Ke.resolveMap=LZ;Ke.resolveNode=Mi;Ke.resolveSeq=VZ;Ke.resolveString=c1;Ke.strOptions=To;Ke.stringifyNumber=RZ;Ke.stringifyString=CZ;Ke.toJSON=qi});var f1=x(Gr=>{"use strict";var yr=Po(),Oe=nl(),KZ={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{let r=Oe.resolveString(e,t);if(typeof Buffer=="function")return Buffer.from(r,"base64");if(typeof atob=="function"){let n=atob(r.replace(/[\n\r]/g,"")),i=new Uint8Array(n.length);for(let o=0;o<n.length;++o)i[o]=n.charCodeAt(o);return i}else{let n="This environment does not support reading binary tags; either Buffer or atob is required";return e.errors.push(new yr.YAMLReferenceError(t,n)),null}},options:Oe.binaryOptions,stringify:({comment:e,type:t,value:r},n,i,o)=>{let s;if(typeof Buffer=="function")s=r instanceof Buffer?r.toString("base64"):Buffer.from(r.buffer).toString("base64");else if(typeof btoa=="function"){let a="";for(let c=0;c<r.length;++c)a+=String.fromCharCode(r[c]);s=btoa(a)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=Oe.binaryOptions.defaultType),t===yr.Type.QUOTE_DOUBLE)r=s;else{let{lineWidth:a}=Oe.binaryOptions,c=Math.ceil(s.length/a),l=new Array(c);for(let u=0,p=0;u<c;++u,p+=a)l[u]=s.substr(p,a);r=l.join(t===yr.Type.BLOCK_LITERAL?`
189
+ `:" ")}return Oe.stringifyString({comment:e,type:t,value:r},n,i,o)}};function BN(e,t){let r=Oe.resolveSeq(e,t);for(let n=0;n<r.items.length;++n){let i=r.items[n];if(!(i instanceof Oe.Pair)){if(i instanceof Oe.YAMLMap){if(i.items.length>1){let s="Each pair must have its own sequence indicator";throw new yr.YAMLSemanticError(t,s)}let o=i.items[0]||new Oe.Pair;i.commentBefore&&(o.commentBefore=o.commentBefore?`${i.commentBefore}
190
190
  ${o.commentBefore}`:i.commentBefore),i.comment&&(o.comment=o.comment?`${i.comment}
191
- ${o.comment}`:i.comment),i=o}r.items[n]=i instanceof _e.Pair?i:new _e.Pair(i)}}return r}function UN(e,t,r){let n=new _e.YAMLSeq(e);n.tag="tag:yaml.org,2002:pairs";for(let i of t){let o,s;if(Array.isArray(i))if(i.length===2)o=i[0],s=i[1];else throw new TypeError(`Expected [key, value] tuple: ${i}`);else if(i&&i instanceof Object){let c=Object.keys(i);if(c.length===1)o=c[0],s=i[o];else throw new TypeError(`Expected { key: value } tuple: ${i}`)}else o=i;let a=e.createPair(o,s,r);n.items.push(a)}return n}var GZ={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:BN,createNode:UN},ea=class e extends _e.YAMLSeq{constructor(){super(),yr._defineProperty(this,"add",_e.YAMLMap.prototype.add.bind(this)),yr._defineProperty(this,"delete",_e.YAMLMap.prototype.delete.bind(this)),yr._defineProperty(this,"get",_e.YAMLMap.prototype.get.bind(this)),yr._defineProperty(this,"has",_e.YAMLMap.prototype.has.bind(this)),yr._defineProperty(this,"set",_e.YAMLMap.prototype.set.bind(this)),this.tag=e.tag}toJSON(t,r){let n=new Map;r&&r.onCreate&&r.onCreate(n);for(let i of this.items){let o,s;if(i instanceof _e.Pair?(o=_e.toJSON(i.key,"",r),s=_e.toJSON(i.value,o,r)):o=_e.toJSON(i,"",r),n.has(o))throw new Error("Ordered maps must not include duplicate keys");n.set(o,s)}return n}};yr._defineProperty(ea,"tag","tag:yaml.org,2002:omap");function YZ(e,t){let r=BN(e,t),n=[];for(let{key:i}of r.items)if(i instanceof _e.Scalar)if(n.includes(i.value)){let o="Ordered maps must not include duplicate keys";throw new yr.YAMLSemanticError(t,o)}else n.push(i.value);return Object.assign(new ea,r)}function WZ(e,t,r){let n=UN(e,t,r),i=new ea;return i.items=n.items,i}var XZ={identify:e=>e instanceof Map,nodeClass:ea,default:!1,tag:"tag:yaml.org,2002:omap",resolve:YZ,createNode:WZ},ta=class e extends _e.YAMLMap{constructor(){super(),this.tag=e.tag}add(t){let r=t instanceof _e.Pair?t:new _e.Pair(t);_e.findPair(this.items,r.key)||this.items.push(r)}get(t,r){let n=_e.findPair(this.items,t);return!r&&n instanceof _e.Pair?n.key instanceof _e.Scalar?n.key.value:n.key:n}set(t,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);let n=_e.findPair(this.items,t);n&&!r?this.items.splice(this.items.indexOf(n),1):!n&&r&&this.items.push(new _e.Pair(t))}toJSON(t,r){return super.toJSON(t,r,Set)}toString(t,r,n){if(!t)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(t,r,n);throw new Error("Set items must all have null values")}};yr._defineProperty(ta,"tag","tag:yaml.org,2002:set");function JZ(e,t){let r=_e.resolveMap(e,t);if(!r.hasAllNullValues())throw new yr.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new ta,r)}function QZ(e,t,r){let n=new ta;for(let i of t)n.items.push(e.createPair(i,null,r));return n}var ZZ={identify:e=>e instanceof Set,nodeClass:ta,default:!1,tag:"tag:yaml.org,2002:set",resolve:JZ,createNode:QZ},l1=(e,t)=>{let r=t.split(":").reduce((n,i)=>n*60+Number(i),0);return e==="-"?-r:r},VN=({value:e})=>{if(isNaN(e)||!isFinite(e))return _e.stringifyNumber(e);let t="";e<0&&(t="-",e=Math.abs(e));let r=[e%60];return e<60?r.unshift(0):(e=Math.round((e-r[0])/60),r.unshift(e%60),e>=60&&(e=Math.round((e-r[0])/60),r.unshift(e))),t+r.map(n=>n<10?"0"+String(n):String(n)).join(":").replace(/000000\d*$/,"")},eee={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,r)=>l1(t,r.replace(/_/g,"")),stringify:VN},tee={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,r)=>l1(t,r.replace(/_/g,"")),stringify:VN},ree={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(e,t,r,n,i,o,s,a,c)=>{a&&(a=(a+"00").substr(1,3));let l=Date.UTC(t,r-1,n,i||0,o||0,s||0,a||0);if(c&&c!=="Z"){let u=l1(c[0],c.slice(1));Math.abs(u)<30&&(u*=60),l-=6e4*u}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function u1(e){let t=typeof process<"u"&&process.env||{};return e?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function p1(e,t){if(u1(!1)){let r=typeof process<"u"&&process.emitWarning;r?r(e,t):console.warn(t?`${t}: ${e}`:e)}}function nee(e){if(u1(!0)){let t=e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");p1(`The endpoint 'yaml/${t}' will be removed in a future release.`,"DeprecationWarning")}}var FN={};function iee(e,t){if(!FN[e]&&u1(!0)){FN[e]=!0;let r=`The option '${e}' will be removed in a future release`;r+=t?`, use '${t}' instead.`:".",p1(r,"DeprecationWarning")}}Kr.binary=KZ;Kr.floatTime=tee;Kr.intTime=eee;Kr.omap=XZ;Kr.pairs=GZ;Kr.set=ZZ;Kr.timestamp=ree;Kr.warn=p1;Kr.warnFileDeprecation=nee;Kr.warnOptionDeprecation=iee});var y1=x(rI=>{"use strict";var id=Po(),re=nl(),Kt=f1();function oee(e,t,r){let n=new re.YAMLMap(e);if(t instanceof Map)for(let[i,o]of t)n.items.push(e.createPair(i,o,r));else if(t&&typeof t=="object")for(let i of Object.keys(t))n.items.push(e.createPair(i,t[i],r));return typeof e.sortMapEntries=="function"&&n.items.sort(e.sortMapEntries),n}var ol={createNode:oee,default:!0,nodeClass:re.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:re.resolveMap};function see(e,t,r){let n=new re.YAMLSeq(e);if(t&&t[Symbol.iterator])for(let i of t){let o=e.createNode(i,r.wrapScalars,null,r);n.items.push(o)}return n}var od={createNode:see,default:!0,nodeClass:re.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:re.resolveSeq},aee={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:re.resolveString,stringify(e,t,r,n){return t=Object.assign({actualString:!0},t),re.stringifyString(e,t,r,n)},options:re.strOptions},m1=[ol,od,aee],sd=e=>typeof e=="bigint"||Number.isInteger(e),h1=(e,t,r)=>re.intOptions.asBigInt?BigInt(e):parseInt(t,r);function KN(e,t,r){let{value:n}=e;return sd(n)&&n>=0?r+n.toString(t):re.stringifyNumber(e)}var GN={identify:e=>e==null,createNode:(e,t,r)=>r.wrapScalars?new re.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:re.nullOptions,stringify:()=>re.nullOptions.nullStr},YN={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>e[0]==="t"||e[0]==="T",options:re.boolOptions,stringify:({value:e})=>e?re.boolOptions.trueStr:re.boolOptions.falseStr},WN={identify:e=>sd(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>h1(e,t,8),options:re.intOptions,stringify:e=>KN(e,8,"0o")},XN={identify:sd,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>h1(e,e,10),options:re.intOptions,stringify:re.stringifyNumber},JN={identify:e=>sd(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>h1(e,t,16),options:re.intOptions,stringify:e=>KN(e,16,"0x")},QN={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:re.stringifyNumber},ZN={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()},eI={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,t,r){let n=t||r,i=new re.Scalar(parseFloat(e));return n&&n[n.length-1]==="0"&&(i.minFractionDigits=n.length),i},stringify:re.stringifyNumber},cee=m1.concat([GN,YN,WN,XN,JN,QN,ZN,eI]),zN=e=>typeof e=="bigint"||Number.isInteger(e),rd=({value:e})=>JSON.stringify(e),tI=[ol,od,{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:re.resolveString,stringify:rd},{identify:e=>e==null,createNode:(e,t,r)=>r.wrapScalars?new re.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:rd},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:rd},{identify:zN,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>re.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:({value:e})=>zN(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:rd}];tI.scalarFallback=e=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)};var HN=({value:e})=>e?re.boolOptions.trueStr:re.boolOptions.falseStr,il=e=>typeof e=="bigint"||Number.isInteger(e);function nd(e,t,r){let n=t.replace(/_/g,"");if(re.intOptions.asBigInt){switch(r){case 2:n=`0b${n}`;break;case 8:n=`0o${n}`;break;case 16:n=`0x${n}`;break}let o=BigInt(n);return e==="-"?BigInt(-1)*o:o}let i=parseInt(n,r);return e==="-"?-1*i:i}function d1(e,t,r){let{value:n}=e;if(il(n)){let i=n.toString(t);return n<0?"-"+r+i.substr(1):r+i}return re.stringifyNumber(e)}var lee=m1.concat([{identify:e=>e==null,createNode:(e,t,r)=>r.wrapScalars?new re.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:re.nullOptions,stringify:()=>re.nullOptions.nullStr},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:re.boolOptions,stringify:HN},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:re.boolOptions,stringify:HN},{identify:il,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,r)=>nd(t,r,2),stringify:e=>d1(e,2,"0b")},{identify:il,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,r)=>nd(t,r,8),stringify:e=>d1(e,8,"0")},{identify:il,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,r)=>nd(t,r,10),stringify:re.stringifyNumber},{identify:il,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,r)=>nd(t,r,16),stringify:e=>d1(e,16,"0x")},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:re.stringifyNumber},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){let r=new re.Scalar(parseFloat(e.replace(/_/g,"")));if(t){let n=t.replace(/_/g,"");n[n.length-1]==="0"&&(r.minFractionDigits=n.length)}return r},stringify:re.stringifyNumber}],Kt.binary,Kt.omap,Kt.pairs,Kt.set,Kt.intTime,Kt.floatTime,Kt.timestamp),uee={core:cee,failsafe:m1,json:tI,yaml11:lee},pee={binary:Kt.binary,bool:YN,float:eI,floatExp:ZN,floatNaN:QN,floatTime:Kt.floatTime,int:XN,intHex:JN,intOct:WN,intTime:Kt.intTime,map:ol,null:GN,omap:Kt.omap,pairs:Kt.pairs,seq:od,set:Kt.set,timestamp:Kt.timestamp};function fee(e,t,r){if(t){let n=r.filter(o=>o.tag===t),i=n.find(o=>!o.format)||n[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return r.find(n=>(n.identify&&n.identify(e)||n.class&&e instanceof n.class)&&!n.format)}function dee(e,t,r){if(e instanceof re.Node)return e;let{defaultPrefix:n,onTagObj:i,prevObjects:o,schema:s,wrapScalars:a}=r;t&&t.startsWith("!!")&&(t=n+t.slice(2));let c=fee(e,t,s.tags);if(!c){if(typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object")return a?new re.Scalar(e):e;c=e instanceof Map?ol:e[Symbol.iterator]?od:ol}i&&(i(c),delete r.onTagObj);let l={value:void 0,node:void 0};if(e&&typeof e=="object"&&o){let u=o.get(e);if(u){let p=new re.Alias(u);return r.aliasNodes.push(p),p}l.value=e,o.set(e,l)}return l.node=c.createNode?c.createNode(r.schema,e,r):a?new re.Scalar(e):e,t&&l.node instanceof re.Node&&(l.node.tag=t),l.node}function mee(e,t,r,n){let i=e[n.replace(/\W/g,"")];if(!i){let o=Object.keys(e).map(s=>JSON.stringify(s)).join(", ");throw new Error(`Unknown schema "${n}"; use one of ${o}`)}if(Array.isArray(r))for(let o of r)i=i.concat(o);else typeof r=="function"&&(i=r(i.slice()));for(let o=0;o<i.length;++o){let s=i[o];if(typeof s=="string"){let a=t[s];if(!a){let c=Object.keys(t).map(l=>JSON.stringify(l)).join(", ");throw new Error(`Unknown custom tag "${s}"; use one of ${c}`)}i[o]=a}}return i}var hee=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0,sl=class e{constructor({customTags:t,merge:r,schema:n,sortMapEntries:i,tags:o}){this.merge=!!r,this.name=n,this.sortMapEntries=i===!0?hee:i||null,!t&&o&&Kt.warnOptionDeprecation("tags","customTags"),this.tags=mee(uee,pee,t||o,n)}createNode(t,r,n,i){let o={defaultPrefix:e.defaultPrefix,schema:this,wrapScalars:r},s=i?Object.assign(i,o):o;return dee(t,n,s)}createPair(t,r,n){n||(n={wrapScalars:!0});let i=this.createNode(t,n.wrapScalars,null,n),o=this.createNode(r,n.wrapScalars,null,n);return new re.Pair(i,o)}};id._defineProperty(sl,"defaultPrefix",id.defaultTagPrefix);id._defineProperty(sl,"defaultTags",id.defaultTags);rI.Schema=sl});var sI=x(ud=>{"use strict";var Gt=Po(),ie=nl(),nI=y1(),yee={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},gee={get binary(){return ie.binaryOptions},set binary(e){Object.assign(ie.binaryOptions,e)},get bool(){return ie.boolOptions},set bool(e){Object.assign(ie.boolOptions,e)},get int(){return ie.intOptions},set int(e){Object.assign(ie.intOptions,e)},get null(){return ie.nullOptions},set null(e){Object.assign(ie.nullOptions,e)},get str(){return ie.strOptions},set str(e){Object.assign(ie.strOptions,e)}},oI={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:Gt.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Gt.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Gt.defaultTagPrefix}]}};function iI(e,t){if((e.version||e.options.version)==="1.0"){let i=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(i)return"!"+i[1];let o=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return o?`!${o[1]}/${o[2]}`:`!${t.replace(/^tag:/,"")}`}let r=e.tagPrefixes.find(i=>t.indexOf(i.prefix)===0);if(!r){let i=e.getDefaults().tagPrefixes;r=i&&i.find(o=>t.indexOf(o.prefix)===0)}if(!r)return t[0]==="!"?t:`!<${t}>`;let n=t.substr(r.prefix.length).replace(/[!,[\]{}]/g,i=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[i]);return r.handle+n}function bee(e,t){if(t instanceof ie.Alias)return ie.Alias;if(t.tag){let i=e.filter(o=>o.tag===t.tag);if(i.length>0)return i.find(o=>o.format===t.format)||i[0]}let r,n;if(t instanceof ie.Scalar){n=t.value;let i=e.filter(o=>o.identify&&o.identify(n)||o.class&&n instanceof o.class);r=i.find(o=>o.format===t.format)||i.find(o=>!o.format)}else n=t,r=e.find(i=>i.nodeClass&&n instanceof i.nodeClass);if(!r){let i=n&&n.constructor?n.constructor.name:typeof n;throw new Error(`Tag not resolved for ${i} value`)}return r}function vee(e,t,{anchors:r,doc:n}){let i=[],o=n.anchors.getName(e);return o&&(r[o]=e,i.push(`&${o}`)),e.tag?i.push(iI(n,e.tag)):t.default||i.push(iI(n,t.tag)),i.join(" ")}function ad(e,t,r,n){let{anchors:i,schema:o}=t.doc,s;if(!(e instanceof ie.Node)){let l={aliasNodes:[],onTagObj:u=>s=u,prevObjects:new Map};e=o.createNode(e,!0,null,l);for(let u of l.aliasNodes){u.source=u.source.node;let p=i.getName(u.source);p||(p=i.newName(),i.map[p]=u.source)}}if(e instanceof ie.Pair)return e.toString(t,r,n);s||(s=bee(o.tags,e));let a=vee(e,s,t);a.length>0&&(t.indentAtStart=(t.indentAtStart||0)+a.length+1);let c=typeof s.stringify=="function"?s.stringify(e,t,r,n):e instanceof ie.Scalar?ie.stringifyString(e,t,r,n):e.toString(t,r,n);return a?e instanceof ie.Scalar||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a}
191
+ ${o.comment}`:i.comment),i=o}r.items[n]=i instanceof Oe.Pair?i:new Oe.Pair(i)}}return r}function UN(e,t,r){let n=new Oe.YAMLSeq(e);n.tag="tag:yaml.org,2002:pairs";for(let i of t){let o,s;if(Array.isArray(i))if(i.length===2)o=i[0],s=i[1];else throw new TypeError(`Expected [key, value] tuple: ${i}`);else if(i&&i instanceof Object){let c=Object.keys(i);if(c.length===1)o=c[0],s=i[o];else throw new TypeError(`Expected { key: value } tuple: ${i}`)}else o=i;let a=e.createPair(o,s,r);n.items.push(a)}return n}var GZ={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:BN,createNode:UN},ea=class e extends Oe.YAMLSeq{constructor(){super(),yr._defineProperty(this,"add",Oe.YAMLMap.prototype.add.bind(this)),yr._defineProperty(this,"delete",Oe.YAMLMap.prototype.delete.bind(this)),yr._defineProperty(this,"get",Oe.YAMLMap.prototype.get.bind(this)),yr._defineProperty(this,"has",Oe.YAMLMap.prototype.has.bind(this)),yr._defineProperty(this,"set",Oe.YAMLMap.prototype.set.bind(this)),this.tag=e.tag}toJSON(t,r){let n=new Map;r&&r.onCreate&&r.onCreate(n);for(let i of this.items){let o,s;if(i instanceof Oe.Pair?(o=Oe.toJSON(i.key,"",r),s=Oe.toJSON(i.value,o,r)):o=Oe.toJSON(i,"",r),n.has(o))throw new Error("Ordered maps must not include duplicate keys");n.set(o,s)}return n}};yr._defineProperty(ea,"tag","tag:yaml.org,2002:omap");function YZ(e,t){let r=BN(e,t),n=[];for(let{key:i}of r.items)if(i instanceof Oe.Scalar)if(n.includes(i.value)){let o="Ordered maps must not include duplicate keys";throw new yr.YAMLSemanticError(t,o)}else n.push(i.value);return Object.assign(new ea,r)}function WZ(e,t,r){let n=UN(e,t,r),i=new ea;return i.items=n.items,i}var XZ={identify:e=>e instanceof Map,nodeClass:ea,default:!1,tag:"tag:yaml.org,2002:omap",resolve:YZ,createNode:WZ},ta=class e extends Oe.YAMLMap{constructor(){super(),this.tag=e.tag}add(t){let r=t instanceof Oe.Pair?t:new Oe.Pair(t);Oe.findPair(this.items,r.key)||this.items.push(r)}get(t,r){let n=Oe.findPair(this.items,t);return!r&&n instanceof Oe.Pair?n.key instanceof Oe.Scalar?n.key.value:n.key:n}set(t,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);let n=Oe.findPair(this.items,t);n&&!r?this.items.splice(this.items.indexOf(n),1):!n&&r&&this.items.push(new Oe.Pair(t))}toJSON(t,r){return super.toJSON(t,r,Set)}toString(t,r,n){if(!t)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(t,r,n);throw new Error("Set items must all have null values")}};yr._defineProperty(ta,"tag","tag:yaml.org,2002:set");function JZ(e,t){let r=Oe.resolveMap(e,t);if(!r.hasAllNullValues())throw new yr.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new ta,r)}function QZ(e,t,r){let n=new ta;for(let i of t)n.items.push(e.createPair(i,null,r));return n}var ZZ={identify:e=>e instanceof Set,nodeClass:ta,default:!1,tag:"tag:yaml.org,2002:set",resolve:JZ,createNode:QZ},l1=(e,t)=>{let r=t.split(":").reduce((n,i)=>n*60+Number(i),0);return e==="-"?-r:r},VN=({value:e})=>{if(isNaN(e)||!isFinite(e))return Oe.stringifyNumber(e);let t="";e<0&&(t="-",e=Math.abs(e));let r=[e%60];return e<60?r.unshift(0):(e=Math.round((e-r[0])/60),r.unshift(e%60),e>=60&&(e=Math.round((e-r[0])/60),r.unshift(e))),t+r.map(n=>n<10?"0"+String(n):String(n)).join(":").replace(/000000\d*$/,"")},eee={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,r)=>l1(t,r.replace(/_/g,"")),stringify:VN},tee={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,r)=>l1(t,r.replace(/_/g,"")),stringify:VN},ree={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(e,t,r,n,i,o,s,a,c)=>{a&&(a=(a+"00").substr(1,3));let l=Date.UTC(t,r-1,n,i||0,o||0,s||0,a||0);if(c&&c!=="Z"){let u=l1(c[0],c.slice(1));Math.abs(u)<30&&(u*=60),l-=6e4*u}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function u1(e){let t=typeof process<"u"&&process.env||{};return e?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function p1(e,t){if(u1(!1)){let r=typeof process<"u"&&process.emitWarning;r?r(e,t):console.warn(t?`${t}: ${e}`:e)}}function nee(e){if(u1(!0)){let t=e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");p1(`The endpoint 'yaml/${t}' will be removed in a future release.`,"DeprecationWarning")}}var FN={};function iee(e,t){if(!FN[e]&&u1(!0)){FN[e]=!0;let r=`The option '${e}' will be removed in a future release`;r+=t?`, use '${t}' instead.`:".",p1(r,"DeprecationWarning")}}Gr.binary=KZ;Gr.floatTime=tee;Gr.intTime=eee;Gr.omap=XZ;Gr.pairs=GZ;Gr.set=ZZ;Gr.timestamp=ree;Gr.warn=p1;Gr.warnFileDeprecation=nee;Gr.warnOptionDeprecation=iee});var y1=x(rI=>{"use strict";var id=Po(),re=nl(),Kt=f1();function oee(e,t,r){let n=new re.YAMLMap(e);if(t instanceof Map)for(let[i,o]of t)n.items.push(e.createPair(i,o,r));else if(t&&typeof t=="object")for(let i of Object.keys(t))n.items.push(e.createPair(i,t[i],r));return typeof e.sortMapEntries=="function"&&n.items.sort(e.sortMapEntries),n}var ol={createNode:oee,default:!0,nodeClass:re.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:re.resolveMap};function see(e,t,r){let n=new re.YAMLSeq(e);if(t&&t[Symbol.iterator])for(let i of t){let o=e.createNode(i,r.wrapScalars,null,r);n.items.push(o)}return n}var od={createNode:see,default:!0,nodeClass:re.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:re.resolveSeq},aee={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:re.resolveString,stringify(e,t,r,n){return t=Object.assign({actualString:!0},t),re.stringifyString(e,t,r,n)},options:re.strOptions},m1=[ol,od,aee],sd=e=>typeof e=="bigint"||Number.isInteger(e),h1=(e,t,r)=>re.intOptions.asBigInt?BigInt(e):parseInt(t,r);function KN(e,t,r){let{value:n}=e;return sd(n)&&n>=0?r+n.toString(t):re.stringifyNumber(e)}var GN={identify:e=>e==null,createNode:(e,t,r)=>r.wrapScalars?new re.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:re.nullOptions,stringify:()=>re.nullOptions.nullStr},YN={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>e[0]==="t"||e[0]==="T",options:re.boolOptions,stringify:({value:e})=>e?re.boolOptions.trueStr:re.boolOptions.falseStr},WN={identify:e=>sd(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>h1(e,t,8),options:re.intOptions,stringify:e=>KN(e,8,"0o")},XN={identify:sd,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>h1(e,e,10),options:re.intOptions,stringify:re.stringifyNumber},JN={identify:e=>sd(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>h1(e,t,16),options:re.intOptions,stringify:e=>KN(e,16,"0x")},QN={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:re.stringifyNumber},ZN={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()},eI={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,t,r){let n=t||r,i=new re.Scalar(parseFloat(e));return n&&n[n.length-1]==="0"&&(i.minFractionDigits=n.length),i},stringify:re.stringifyNumber},cee=m1.concat([GN,YN,WN,XN,JN,QN,ZN,eI]),zN=e=>typeof e=="bigint"||Number.isInteger(e),rd=({value:e})=>JSON.stringify(e),tI=[ol,od,{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:re.resolveString,stringify:rd},{identify:e=>e==null,createNode:(e,t,r)=>r.wrapScalars?new re.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:rd},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:rd},{identify:zN,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>re.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:({value:e})=>zN(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:rd}];tI.scalarFallback=e=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)};var HN=({value:e})=>e?re.boolOptions.trueStr:re.boolOptions.falseStr,il=e=>typeof e=="bigint"||Number.isInteger(e);function nd(e,t,r){let n=t.replace(/_/g,"");if(re.intOptions.asBigInt){switch(r){case 2:n=`0b${n}`;break;case 8:n=`0o${n}`;break;case 16:n=`0x${n}`;break}let o=BigInt(n);return e==="-"?BigInt(-1)*o:o}let i=parseInt(n,r);return e==="-"?-1*i:i}function d1(e,t,r){let{value:n}=e;if(il(n)){let i=n.toString(t);return n<0?"-"+r+i.substr(1):r+i}return re.stringifyNumber(e)}var lee=m1.concat([{identify:e=>e==null,createNode:(e,t,r)=>r.wrapScalars?new re.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:re.nullOptions,stringify:()=>re.nullOptions.nullStr},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:re.boolOptions,stringify:HN},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:re.boolOptions,stringify:HN},{identify:il,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,r)=>nd(t,r,2),stringify:e=>d1(e,2,"0b")},{identify:il,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,r)=>nd(t,r,8),stringify:e=>d1(e,8,"0")},{identify:il,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,r)=>nd(t,r,10),stringify:re.stringifyNumber},{identify:il,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,r)=>nd(t,r,16),stringify:e=>d1(e,16,"0x")},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:re.stringifyNumber},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){let r=new re.Scalar(parseFloat(e.replace(/_/g,"")));if(t){let n=t.replace(/_/g,"");n[n.length-1]==="0"&&(r.minFractionDigits=n.length)}return r},stringify:re.stringifyNumber}],Kt.binary,Kt.omap,Kt.pairs,Kt.set,Kt.intTime,Kt.floatTime,Kt.timestamp),uee={core:cee,failsafe:m1,json:tI,yaml11:lee},pee={binary:Kt.binary,bool:YN,float:eI,floatExp:ZN,floatNaN:QN,floatTime:Kt.floatTime,int:XN,intHex:JN,intOct:WN,intTime:Kt.intTime,map:ol,null:GN,omap:Kt.omap,pairs:Kt.pairs,seq:od,set:Kt.set,timestamp:Kt.timestamp};function fee(e,t,r){if(t){let n=r.filter(o=>o.tag===t),i=n.find(o=>!o.format)||n[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return r.find(n=>(n.identify&&n.identify(e)||n.class&&e instanceof n.class)&&!n.format)}function dee(e,t,r){if(e instanceof re.Node)return e;let{defaultPrefix:n,onTagObj:i,prevObjects:o,schema:s,wrapScalars:a}=r;t&&t.startsWith("!!")&&(t=n+t.slice(2));let c=fee(e,t,s.tags);if(!c){if(typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object")return a?new re.Scalar(e):e;c=e instanceof Map?ol:e[Symbol.iterator]?od:ol}i&&(i(c),delete r.onTagObj);let l={value:void 0,node:void 0};if(e&&typeof e=="object"&&o){let u=o.get(e);if(u){let p=new re.Alias(u);return r.aliasNodes.push(p),p}l.value=e,o.set(e,l)}return l.node=c.createNode?c.createNode(r.schema,e,r):a?new re.Scalar(e):e,t&&l.node instanceof re.Node&&(l.node.tag=t),l.node}function mee(e,t,r,n){let i=e[n.replace(/\W/g,"")];if(!i){let o=Object.keys(e).map(s=>JSON.stringify(s)).join(", ");throw new Error(`Unknown schema "${n}"; use one of ${o}`)}if(Array.isArray(r))for(let o of r)i=i.concat(o);else typeof r=="function"&&(i=r(i.slice()));for(let o=0;o<i.length;++o){let s=i[o];if(typeof s=="string"){let a=t[s];if(!a){let c=Object.keys(t).map(l=>JSON.stringify(l)).join(", ");throw new Error(`Unknown custom tag "${s}"; use one of ${c}`)}i[o]=a}}return i}var hee=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0,sl=class e{constructor({customTags:t,merge:r,schema:n,sortMapEntries:i,tags:o}){this.merge=!!r,this.name=n,this.sortMapEntries=i===!0?hee:i||null,!t&&o&&Kt.warnOptionDeprecation("tags","customTags"),this.tags=mee(uee,pee,t||o,n)}createNode(t,r,n,i){let o={defaultPrefix:e.defaultPrefix,schema:this,wrapScalars:r},s=i?Object.assign(i,o):o;return dee(t,n,s)}createPair(t,r,n){n||(n={wrapScalars:!0});let i=this.createNode(t,n.wrapScalars,null,n),o=this.createNode(r,n.wrapScalars,null,n);return new re.Pair(i,o)}};id._defineProperty(sl,"defaultPrefix",id.defaultTagPrefix);id._defineProperty(sl,"defaultTags",id.defaultTags);rI.Schema=sl});var sI=x(ud=>{"use strict";var Gt=Po(),ie=nl(),nI=y1(),yee={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},gee={get binary(){return ie.binaryOptions},set binary(e){Object.assign(ie.binaryOptions,e)},get bool(){return ie.boolOptions},set bool(e){Object.assign(ie.boolOptions,e)},get int(){return ie.intOptions},set int(e){Object.assign(ie.intOptions,e)},get null(){return ie.nullOptions},set null(e){Object.assign(ie.nullOptions,e)},get str(){return ie.strOptions},set str(e){Object.assign(ie.strOptions,e)}},oI={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:Gt.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Gt.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Gt.defaultTagPrefix}]}};function iI(e,t){if((e.version||e.options.version)==="1.0"){let i=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(i)return"!"+i[1];let o=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return o?`!${o[1]}/${o[2]}`:`!${t.replace(/^tag:/,"")}`}let r=e.tagPrefixes.find(i=>t.indexOf(i.prefix)===0);if(!r){let i=e.getDefaults().tagPrefixes;r=i&&i.find(o=>t.indexOf(o.prefix)===0)}if(!r)return t[0]==="!"?t:`!<${t}>`;let n=t.substr(r.prefix.length).replace(/[!,[\]{}]/g,i=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[i]);return r.handle+n}function bee(e,t){if(t instanceof ie.Alias)return ie.Alias;if(t.tag){let i=e.filter(o=>o.tag===t.tag);if(i.length>0)return i.find(o=>o.format===t.format)||i[0]}let r,n;if(t instanceof ie.Scalar){n=t.value;let i=e.filter(o=>o.identify&&o.identify(n)||o.class&&n instanceof o.class);r=i.find(o=>o.format===t.format)||i.find(o=>!o.format)}else n=t,r=e.find(i=>i.nodeClass&&n instanceof i.nodeClass);if(!r){let i=n&&n.constructor?n.constructor.name:typeof n;throw new Error(`Tag not resolved for ${i} value`)}return r}function vee(e,t,{anchors:r,doc:n}){let i=[],o=n.anchors.getName(e);return o&&(r[o]=e,i.push(`&${o}`)),e.tag?i.push(iI(n,e.tag)):t.default||i.push(iI(n,t.tag)),i.join(" ")}function ad(e,t,r,n){let{anchors:i,schema:o}=t.doc,s;if(!(e instanceof ie.Node)){let l={aliasNodes:[],onTagObj:u=>s=u,prevObjects:new Map};e=o.createNode(e,!0,null,l);for(let u of l.aliasNodes){u.source=u.source.node;let p=i.getName(u.source);p||(p=i.newName(),i.map[p]=u.source)}}if(e instanceof ie.Pair)return e.toString(t,r,n);s||(s=bee(o.tags,e));let a=vee(e,s,t);a.length>0&&(t.indentAtStart=(t.indentAtStart||0)+a.length+1);let c=typeof s.stringify=="function"?s.stringify(e,t,r,n):e instanceof ie.Scalar?ie.stringifyString(e,t,r,n):e.toString(t,r,n);return a?e instanceof ie.Scalar||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a}
192
192
  ${t.indent}${c}`:c}var g1=class e{static validAnchorNode(t){return t instanceof ie.Scalar||t instanceof ie.YAMLSeq||t instanceof ie.YAMLMap}constructor(t){Gt._defineProperty(this,"map",Object.create(null)),this.prefix=t}createAlias(t,r){return this.setAnchor(t,r),new ie.Alias(t)}createMergePair(...t){let r=new ie.Merge;return r.value.items=t.map(n=>{if(n instanceof ie.Alias){if(n.source instanceof ie.YAMLMap)return n}else if(n instanceof ie.YAMLMap)return this.createAlias(n);throw new Error("Merge sources must be Map nodes or their Aliases")}),r}getName(t){let{map:r}=this;return Object.keys(r).find(n=>r[n]===t)}getNames(){return Object.keys(this.map)}getNode(t){return this.map[t]}newName(t){t||(t=this.prefix);let r=Object.keys(this.map);for(let n=1;;++n){let i=`${t}${n}`;if(!r.includes(i))return i}}resolveNodes(){let{map:t,_cstAliases:r}=this;Object.keys(t).forEach(n=>{t[n]=t[n].resolved}),r.forEach(n=>{n.source=n.source.resolved}),delete this._cstAliases}setAnchor(t,r){if(t!=null&&!e.validAnchorNode(t))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(r&&/[\x00-\x19\s,[\]{}]/.test(r))throw new Error("Anchor names must not contain whitespace or control characters");let{map:n}=this,i=t&&Object.keys(n).find(o=>n[o]===t);if(i)if(r)i!==r&&(delete n[i],n[r]=t);else return i;else{if(!r){if(!t)return null;r=this.newName()}n[r]=t}return r}},cd=(e,t)=>{if(e&&typeof e=="object"){let{tag:r}=e;e instanceof ie.Collection?(r&&(t[r]=!0),e.items.forEach(n=>cd(n,t))):e instanceof ie.Pair?(cd(e.key,t),cd(e.value,t)):e instanceof ie.Scalar&&r&&(t[r]=!0)}return t},xee=e=>Object.keys(cd(e,{}));function wee(e,t){let r={before:[],after:[]},n,i=!1;for(let o of t)if(o.valueRange){if(n!==void 0){let a="Document contains trailing content not separated by a ... or --- line";e.errors.push(new Gt.YAMLSyntaxError(o,a));break}let s=ie.resolveNode(e,o);i&&(s.spaceBefore=!0,i=!1),n=s}else o.comment!==null?(n===void 0?r.before:r.after).push(o.comment):o.type===Gt.Type.BLANK_LINE&&(i=!0,n===void 0&&r.before.length>0&&!e.commentBefore&&(e.commentBefore=r.before.join(`
193
193
  `),r.before=[]));if(e.contents=n||null,!n)e.comment=r.before.concat(r.after).join(`
194
194
  `)||null;else{let o=r.before.join(`
@@ -203,22 +203,22 @@ ${s.commentBefore}`:o}e.comment=r.after.join(`
203
203
  `,this.newLine=`
204
204
  `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}l.prototype.build=function(f){return this.options.preserveOrder?s(f,this.options):(Array.isArray(f)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(f={[this.options.arrayNodeName]:f}),this.j2x(f,0,[]).val)},l.prototype.j2x=function(f,h,y){let b="",g="",v=y.join(".");for(let _ in f)if(Object.prototype.hasOwnProperty.call(f,_))if(typeof f[_]>"u")this.isAttribute(_)&&(g+="");else if(f[_]===null)this.isAttribute(_)?g+="":_[0]==="?"?g+=this.indentate(h)+"<"+_+"?"+this.tagEndChar:g+=this.indentate(h)+"<"+_+"/"+this.tagEndChar;else if(f[_]instanceof Date)g+=this.buildTextValNode(f[_],_,"",h);else if(typeof f[_]!="object"){let w=this.isAttribute(_);if(w&&!this.ignoreAttributesFn(w,v))b+=this.buildAttrPairStr(w,""+f[_]);else if(!w)if(_===this.options.textNodeName){let N=this.options.tagValueProcessor(_,""+f[_]);g+=this.replaceEntitiesValue(N)}else g+=this.buildTextValNode(f[_],_,"",h)}else if(Array.isArray(f[_])){let w=f[_].length,N="",S="";for(let O=0;O<w;O++){let P=f[_][O];if(!(typeof P>"u"))if(P===null)_[0]==="?"?g+=this.indentate(h)+"<"+_+"?"+this.tagEndChar:g+=this.indentate(h)+"<"+_+"/"+this.tagEndChar;else if(typeof P=="object")if(this.options.oneListGroup){let E=this.j2x(P,h+1,y.concat(_));N+=E.val,this.options.attributesGroupName&&P.hasOwnProperty(this.options.attributesGroupName)&&(S+=E.attrStr)}else N+=this.processTextOrObjNode(P,_,h,y);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(_,P);E=this.replaceEntitiesValue(E),N+=E}else N+=this.buildTextValNode(P,_,"",h)}this.options.oneListGroup&&(N=this.buildObjectNode(N,_,S,h)),g+=N}else if(this.options.attributesGroupName&&_===this.options.attributesGroupName){let w=Object.keys(f[_]),N=w.length;for(let S=0;S<N;S++)b+=this.buildAttrPairStr(w[S],""+f[_][w[S]])}else g+=this.processTextOrObjNode(f[_],_,h,y);return{attrStr:b,val:g}},l.prototype.buildAttrPairStr=function(f,h){return h=this.options.attributeValueProcessor(f,""+h),h=this.replaceEntitiesValue(h),this.options.suppressBooleanAttributes&&h==="true"?" "+f:" "+f+'="'+h+'"'};function u(f,h,y,b){let g=this.j2x(f,y+1,b.concat(h));return f[this.options.textNodeName]!==void 0&&Object.keys(f).length===1?this.buildTextValNode(f[this.options.textNodeName],h,g.attrStr,y):this.buildObjectNode(g.val,h,g.attrStr,y)}l.prototype.buildObjectNode=function(f,h,y,b){if(f==="")return h[0]==="?"?this.indentate(b)+"<"+h+y+"?"+this.tagEndChar:this.indentate(b)+"<"+h+y+this.closeTag(h)+this.tagEndChar;{let g="</"+h+this.tagEndChar,v="";return h[0]==="?"&&(v="?",g=""),(y||y==="")&&f.indexOf("<")===-1?this.indentate(b)+"<"+h+y+v+">"+f+g:this.options.commentPropName!==!1&&h===this.options.commentPropName&&v.length===0?this.indentate(b)+`<!--${f}-->`+this.newLine:this.indentate(b)+"<"+h+y+v+this.tagEndChar+f+this.indentate(b)+g}},l.prototype.closeTag=function(f){let h="";return this.options.unpairedTags.indexOf(f)!==-1?this.options.suppressUnpairedNode||(h="/"):this.options.suppressEmptyNode?h="/":h=`></${f}`,h};function p(f,h,y,b){return f!==""?this.buildObjectNode(f,h,y,b):h[0]==="?"?this.indentate(b)+"<"+h+y+"?"+this.tagEndChar:this.indentate(b)+"<"+h+y+"/"+this.tagEndChar}l.prototype.buildTextValNode=function(f,h,y,b){if(this.options.cdataPropName!==!1&&h===this.options.cdataPropName)return this.indentate(b)+`<![CDATA[${f}]]>`+this.newLine;if(this.options.commentPropName!==!1&&h===this.options.commentPropName)return this.indentate(b)+`<!--${f}-->`+this.newLine;if(h[0]==="?")return this.indentate(b)+"<"+h+y+"?"+this.tagEndChar;{let g=this.options.tagValueProcessor(h,f);return g=this.replaceEntitiesValue(g),g===""?this.indentate(b)+"<"+h+y+this.closeTag(h)+this.tagEndChar:this.indentate(b)+"<"+h+y+">"+g+"</"+h+this.tagEndChar}},l.prototype.replaceEntitiesValue=function(f){if(f&&f.length>0&&this.options.processEntities)for(let h=0;h<this.options.entities.length;h++){let y=this.options.entities[h];f=f.replace(y.regex,y.val)}return f};function m(f){return this.options.indentBy.repeat(f)}function d(f){return f.startsWith(this.options.attributeNamePrefix)&&f!==this.options.textNodeName?f.substr(this.attrPrefixLen):!1}i.exports=l},{"../ignoreAttributes":2,"./orderedJs2Xml":6}],6:[function(n,i,o){function a(d,f){let h="";return f.format&&f.indentBy.length>0&&(h=`
205
205
  `),c(d,f,"",h)}function c(d,f,h,y){let b="",g=!1;for(let v=0;v<d.length;v++){let _=d[v],w=l(_);if(w===void 0)continue;let N="";if(h.length===0?N=w:N=`${h}.${w}`,w===f.textNodeName){let R=_[w];p(N,f)||(R=f.tagValueProcessor(w,R),R=m(R,f)),g&&(b+=y),b+=R,g=!1;continue}else if(w===f.cdataPropName){g&&(b+=y),b+=`<![CDATA[${_[w][0][f.textNodeName]}]]>`,g=!1;continue}else if(w===f.commentPropName){b+=y+`<!--${_[w][0][f.textNodeName]}-->`,g=!0;continue}else if(w[0]==="?"){let R=u(_[":@"],f),A=w==="?xml"?"":y,I=_[w][0][f.textNodeName];I=I.length!==0?" "+I:"",b+=A+`<${w}${I}${R}?>`,g=!0;continue}let S=y;S!==""&&(S+=f.indentBy);let O=u(_[":@"],f),P=y+`<${w}${O}`,E=c(_[w],f,N,S);f.unpairedTags.indexOf(w)!==-1?f.suppressUnpairedNode?b+=P+">":b+=P+"/>":(!E||E.length===0)&&f.suppressEmptyNode?b+=P+"/>":E&&E.endsWith(">")?b+=P+`>${E}${y}</${w}>`:(b+=P+">",E&&y!==""&&(E.includes("/>")||E.includes("</"))?b+=y+f.indentBy+E+y:b+=E,b+=`</${w}>`),g=!0}return b}function l(d){let f=Object.keys(d);for(let h=0;h<f.length;h++){let y=f[h];if(d.hasOwnProperty(y)&&y!==":@")return y}}function u(d,f){let h="";if(d&&!f.ignoreAttributes)for(let y in d){if(!d.hasOwnProperty(y))continue;let b=f.attributeValueProcessor(y,d[y]);b=m(b,f),b===!0&&f.suppressBooleanAttributes?h+=` ${y.substr(f.attributeNamePrefix.length)}`:h+=` ${y.substr(f.attributeNamePrefix.length)}="${b}"`}return h}function p(d,f){d=d.substr(0,d.length-f.textNodeName.length-1);let h=d.substr(d.lastIndexOf(".")+1);for(let y in f.stopNodes)if(f.stopNodes[y]===d||f.stopNodes[y]==="*."+h)return!0;return!1}function m(d,f){if(d&&d.length>0&&f.processEntities)for(let h=0;h<f.entities.length;h++){let y=f.entities[h];d=d.replace(y.regex,y.val)}return d}i.exports=a},{}],7:[function(n,i,o){let s=n("../util");function a(h,y){let b={};if(h[y+3]==="O"&&h[y+4]==="C"&&h[y+5]==="T"&&h[y+6]==="Y"&&h[y+7]==="P"&&h[y+8]==="E"){y=y+9;let g=1,v=!1,_=!1,w="";for(;y<h.length;y++)if(h[y]==="<"&&!_){if(v&&u(h,y))y+=7,[entityName,val,y]=c(h,y+1),val.indexOf("&")===-1&&(b[f(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(v&&p(h,y))y+=8;else if(v&&m(h,y))y+=8;else if(v&&d(h,y))y+=9;else if(l)_=!0;else throw new Error("Invalid DOCTYPE");g++,w=""}else if(h[y]===">"){if(_?h[y-1]==="-"&&h[y-2]==="-"&&(_=!1,g--):g--,g===0)break}else h[y]==="["?v=!0:w+=h[y];if(g!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:b,i:y}}function c(h,y){let b="";for(;y<h.length&&h[y]!=="'"&&h[y]!=='"';y++)b+=h[y];if(b=b.trim(),b.indexOf(" ")!==-1)throw new Error("External entites are not supported");let g=h[y++],v="";for(;y<h.length&&h[y]!==g;y++)v+=h[y];return[b,v,y]}function l(h,y){return h[y+1]==="!"&&h[y+2]==="-"&&h[y+3]==="-"}function u(h,y){return h[y+1]==="!"&&h[y+2]==="E"&&h[y+3]==="N"&&h[y+4]==="T"&&h[y+5]==="I"&&h[y+6]==="T"&&h[y+7]==="Y"}function p(h,y){return h[y+1]==="!"&&h[y+2]==="E"&&h[y+3]==="L"&&h[y+4]==="E"&&h[y+5]==="M"&&h[y+6]==="E"&&h[y+7]==="N"&&h[y+8]==="T"}function m(h,y){return h[y+1]==="!"&&h[y+2]==="A"&&h[y+3]==="T"&&h[y+4]==="T"&&h[y+5]==="L"&&h[y+6]==="I"&&h[y+7]==="S"&&h[y+8]==="T"}function d(h,y){return h[y+1]==="!"&&h[y+2]==="N"&&h[y+3]==="O"&&h[y+4]==="T"&&h[y+5]==="A"&&h[y+6]==="T"&&h[y+7]==="I"&&h[y+8]==="O"&&h[y+9]==="N"}function f(h){if(s.isName(h))return h;throw new Error(`Invalid entity name ${h}`)}i.exports=a},{"../util":3}],8:[function(n,i,o){let s={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(c,l){return l},attributeValueProcessor:function(c,l){return l},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(c,l,u){return c}},a=function(c){return Object.assign({},s,c)};o.buildOptions=a,o.defaultOptions=s},{}],9:[function(n,i,o){"use strict";let s=n("../util"),a=n("./xmlNode"),c=n("./DocTypeReader"),l=n("strnum"),u=n("../ignoreAttributes");class p{constructor(A){this.options=A,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(I,C)=>String.fromCharCode(Number.parseInt(C,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(I,C)=>String.fromCharCode(Number.parseInt(C,16))}},this.addExternalEntities=m,this.parseXml=b,this.parseTextData=d,this.resolveNameSpace=f,this.buildAttributesMap=y,this.isItStopNode=w,this.replaceEntitiesValue=v,this.readStopNodeData=P,this.saveTextToParentTag=_,this.addChild=g,this.ignoreAttributesFn=u(this.options.ignoreAttributes)}}function m(R){let A=Object.keys(R);for(let I=0;I<A.length;I++){let C=A[I];this.lastEntities[C]={regex:new RegExp("&"+C+";","g"),val:R[C]}}}function d(R,A,I,C,$,L,D){if(R!==void 0&&(this.options.trimValues&&!C&&(R=R.trim()),R.length>0)){D||(R=this.replaceEntitiesValue(R));let k=this.options.tagValueProcessor(A,R,I,$,L);return k==null?R:typeof k!=typeof R||k!==R?k:this.options.trimValues?E(R,this.options.parseTagValue,this.options.numberParseOptions):R.trim()===R?E(R,this.options.parseTagValue,this.options.numberParseOptions):R}}function f(R){if(this.options.removeNSPrefix){let A=R.split(":"),I=R.charAt(0)==="/"?"/":"";if(A[0]==="xmlns")return"";A.length===2&&(R=I+A[1])}return R}let h=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function y(R,A,I){if(this.options.ignoreAttributes!==!0&&typeof R=="string"){let C=s.getAllMatches(R,h),$=C.length,L={};for(let D=0;D<$;D++){let k=this.resolveNameSpace(C[D][1]);if(this.ignoreAttributesFn(k,A))continue;let q=C[D][4],V=this.options.attributeNamePrefix+k;if(k.length)if(this.options.transformAttributeName&&(V=this.options.transformAttributeName(V)),V==="__proto__"&&(V="#__proto__"),q!==void 0){this.options.trimValues&&(q=q.trim()),q=this.replaceEntitiesValue(q);let z=this.options.attributeValueProcessor(k,q,A);z==null?L[V]=q:typeof z!=typeof q||z!==q?L[V]=z:L[V]=E(q,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(L[V]=!0)}if(!Object.keys(L).length)return;if(this.options.attributesGroupName){let D={};return D[this.options.attributesGroupName]=L,D}return L}}let b=function(R){R=R.replace(/\r\n?/g,`
206
- `);let A=new a("!xml"),I=A,C="",$="";for(let L=0;L<R.length;L++)if(R[L]==="<")if(R[L+1]==="/"){let k=S(R,">",L,"Closing Tag is not closed."),q=R.substring(L+2,k).trim();if(this.options.removeNSPrefix){let ne=q.indexOf(":");ne!==-1&&(q=q.substr(ne+1))}this.options.transformTagName&&(q=this.options.transformTagName(q)),I&&(C=this.saveTextToParentTag(C,I,$));let V=$.substring($.lastIndexOf(".")+1);if(q&&this.options.unpairedTags.indexOf(q)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${q}>`);let z=0;V&&this.options.unpairedTags.indexOf(V)!==-1?(z=$.lastIndexOf(".",$.lastIndexOf(".")-1),this.tagsNodeStack.pop()):z=$.lastIndexOf("."),$=$.substring(0,z),I=this.tagsNodeStack.pop(),C="",L=k}else if(R[L+1]==="?"){let k=O(R,L,!1,"?>");if(!k)throw new Error("Pi Tag is not closed.");if(C=this.saveTextToParentTag(C,I,$),!(this.options.ignoreDeclaration&&k.tagName==="?xml"||this.options.ignorePiTags)){let q=new a(k.tagName);q.add(this.options.textNodeName,""),k.tagName!==k.tagExp&&k.attrExpPresent&&(q[":@"]=this.buildAttributesMap(k.tagExp,$,k.tagName)),this.addChild(I,q,$)}L=k.closeIndex+1}else if(R.substr(L+1,3)==="!--"){let k=S(R,"-->",L+4,"Comment is not closed.");if(this.options.commentPropName){let q=R.substring(L+4,k-2);C=this.saveTextToParentTag(C,I,$),I.add(this.options.commentPropName,[{[this.options.textNodeName]:q}])}L=k}else if(R.substr(L+1,2)==="!D"){let k=c(R,L);this.docTypeEntities=k.entities,L=k.i}else if(R.substr(L+1,2)==="!["){let k=S(R,"]]>",L,"CDATA is not closed.")-2,q=R.substring(L+9,k);C=this.saveTextToParentTag(C,I,$);let V=this.parseTextData(q,I.tagname,$,!0,!1,!0,!0);V==null&&(V=""),this.options.cdataPropName?I.add(this.options.cdataPropName,[{[this.options.textNodeName]:q}]):I.add(this.options.textNodeName,V),L=k+2}else{let k=O(R,L,this.options.removeNSPrefix),q=k.tagName,V=k.rawTagName,z=k.tagExp,ne=k.attrExpPresent,pe=k.closeIndex;this.options.transformTagName&&(q=this.options.transformTagName(q)),I&&C&&I.tagname!=="!xml"&&(C=this.saveTextToParentTag(C,I,$,!1));let Ae=I;if(Ae&&this.options.unpairedTags.indexOf(Ae.tagname)!==-1&&(I=this.tagsNodeStack.pop(),$=$.substring(0,$.lastIndexOf("."))),q!==A.tagname&&($+=$?"."+q:q),this.isItStopNode(this.options.stopNodes,$,q)){let H="";if(z.length>0&&z.lastIndexOf("/")===z.length-1)q[q.length-1]==="/"?(q=q.substr(0,q.length-1),$=$.substr(0,$.length-1),z=q):z=z.substr(0,z.length-1),L=k.closeIndex;else if(this.options.unpairedTags.indexOf(q)!==-1)L=k.closeIndex;else{let ge=this.readStopNodeData(R,V,pe+1);if(!ge)throw new Error(`Unexpected end of ${V}`);L=ge.i,H=ge.tagContent}let Y=new a(q);q!==z&&ne&&(Y[":@"]=this.buildAttributesMap(z,$,q)),H&&(H=this.parseTextData(H,q,$,!0,ne,!0,!0)),$=$.substr(0,$.lastIndexOf(".")),Y.add(this.options.textNodeName,H),this.addChild(I,Y,$)}else{if(z.length>0&&z.lastIndexOf("/")===z.length-1){q[q.length-1]==="/"?(q=q.substr(0,q.length-1),$=$.substr(0,$.length-1),z=q):z=z.substr(0,z.length-1),this.options.transformTagName&&(q=this.options.transformTagName(q));let H=new a(q);q!==z&&ne&&(H[":@"]=this.buildAttributesMap(z,$,q)),this.addChild(I,H,$),$=$.substr(0,$.lastIndexOf("."))}else{let H=new a(q);this.tagsNodeStack.push(I),q!==z&&ne&&(H[":@"]=this.buildAttributesMap(z,$,q)),this.addChild(I,H,$),I=H}C="",L=pe}}else C+=R[L];return A.child};function g(R,A,I){let C=this.options.updateTag(A.tagname,I,A[":@"]);C===!1||(typeof C=="string"&&(A.tagname=C),R.addChild(A))}let v=function(R){if(this.options.processEntities){for(let A in this.docTypeEntities){let I=this.docTypeEntities[A];R=R.replace(I.regx,I.val)}for(let A in this.lastEntities){let I=this.lastEntities[A];R=R.replace(I.regex,I.val)}if(this.options.htmlEntities)for(let A in this.htmlEntities){let I=this.htmlEntities[A];R=R.replace(I.regex,I.val)}R=R.replace(this.ampEntity.regex,this.ampEntity.val)}return R};function _(R,A,I,C){return R&&(C===void 0&&(C=Object.keys(A.child).length===0),R=this.parseTextData(R,A.tagname,I,!1,A[":@"]?Object.keys(A[":@"]).length!==0:!1,C),R!==void 0&&R!==""&&A.add(this.options.textNodeName,R),R=""),R}function w(R,A,I){let C="*."+I;for(let $ in R){let L=R[$];if(C===L||A===L)return!0}return!1}function N(R,A,I=">"){let C,$="";for(let L=A;L<R.length;L++){let D=R[L];if(C)D===C&&(C="");else if(D==='"'||D==="'")C=D;else if(D===I[0])if(I[1]){if(R[L+1]===I[1])return{data:$,index:L}}else return{data:$,index:L};else D===" "&&(D=" ");$+=D}}function S(R,A,I,C){let $=R.indexOf(A,I);if($===-1)throw new Error(C);return $+A.length-1}function O(R,A,I,C=">"){let $=N(R,A+1,C);if(!$)return;let L=$.data,D=$.index,k=L.search(/\s/),q=L,V=!0;k!==-1&&(q=L.substring(0,k),L=L.substring(k+1).trimStart());let z=q;if(I){let ne=q.indexOf(":");ne!==-1&&(q=q.substr(ne+1),V=q!==$.data.substr(ne+1))}return{tagName:q,tagExp:L,closeIndex:D,attrExpPresent:V,rawTagName:z}}function P(R,A,I){let C=I,$=1;for(;I<R.length;I++)if(R[I]==="<")if(R[I+1]==="/"){let L=S(R,">",I,`${A} is not closed`);if(R.substring(I+2,L).trim()===A&&($--,$===0))return{tagContent:R.substring(C,I),i:L};I=L}else if(R[I+1]==="?")I=S(R,"?>",I+1,"StopNode is not closed.");else if(R.substr(I+1,3)==="!--")I=S(R,"-->",I+3,"StopNode is not closed.");else if(R.substr(I+1,2)==="![")I=S(R,"]]>",I,"StopNode is not closed.")-2;else{let L=O(R,I,">");L&&((L&&L.tagName)===A&&L.tagExp[L.tagExp.length-1]!=="/"&&$++,I=L.closeIndex)}}function E(R,A,I){if(A&&typeof R=="string"){let C=R.trim();return C==="true"?!0:C==="false"?!1:l(R,I)}else return s.isExist(R)?R:""}i.exports=p},{"../ignoreAttributes":2,"../util":3,"./DocTypeReader":7,"./xmlNode":12,strnum:15}],10:[function(n,i,o){let{buildOptions:s}=n("./OptionsBuilder"),a=n("./OrderedObjParser"),{prettify:c}=n("./node2json"),l=n("../validator");class u{constructor(m){this.externalEntities={},this.options=s(m)}parse(m,d){if(typeof m!="string")if(m.toString)m=m.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(d){d===!0&&(d={});let y=l.validate(m,d);if(y!==!0)throw Error(`${y.err.msg}:${y.err.line}:${y.err.col}`)}let f=new a(this.options);f.addExternalEntities(this.externalEntities);let h=f.parseXml(m);return this.options.preserveOrder||h===void 0?h:c(h,this.options)}addEntity(m,d){if(d.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(m.indexOf("&")!==-1||m.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(d==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[m]=d}}i.exports=u},{"../validator":4,"./OptionsBuilder":8,"./OrderedObjParser":9,"./node2json":11}],11:[function(n,i,o){"use strict";function s(p,m){return a(p,m)}function a(p,m,d){let f,h={};for(let y=0;y<p.length;y++){let b=p[y],g=c(b),v="";if(d===void 0?v=g:v=d+"."+g,g===m.textNodeName)f===void 0?f=b[g]:f+=""+b[g];else{if(g===void 0)continue;if(b[g]){let _=a(b[g],m,v),w=u(_,m);b[":@"]?l(_,b[":@"],v,m):Object.keys(_).length===1&&_[m.textNodeName]!==void 0&&!m.alwaysCreateTextNode?_=_[m.textNodeName]:Object.keys(_).length===0&&(m.alwaysCreateTextNode?_[m.textNodeName]="":_=""),h[g]!==void 0&&h.hasOwnProperty(g)?(Array.isArray(h[g])||(h[g]=[h[g]]),h[g].push(_)):m.isArray(g,v,w)?h[g]=[_]:h[g]=_}}}return typeof f=="string"?f.length>0&&(h[m.textNodeName]=f):f!==void 0&&(h[m.textNodeName]=f),h}function c(p){let m=Object.keys(p);for(let d=0;d<m.length;d++){let f=m[d];if(f!==":@")return f}}function l(p,m,d,f){if(m){let h=Object.keys(m),y=h.length;for(let b=0;b<y;b++){let g=h[b];f.isArray(g,d+"."+g,!0,!0)?p[g]=[m[g]]:p[g]=m[g]}}}function u(p,m){let{textNodeName:d}=m,f=Object.keys(p).length;return!!(f===0||f===1&&(p[d]||typeof p[d]=="boolean"||p[d]===0))}o.prettify=s},{}],12:[function(n,i,o){"use strict";class s{constructor(c){this.tagname=c,this.child=[],this[":@"]={}}add(c,l){c==="__proto__"&&(c="#__proto__"),this.child.push({[c]:l})}addChild(c){c.tagname==="__proto__"&&(c.tagname="#__proto__"),c[":@"]&&Object.keys(c[":@"]).length>0?this.child.push({[c.tagname]:c.child,":@":c[":@"]}):this.child.push({[c.tagname]:c.child})}}i.exports=s},{}],13:[function(n,i,o){var s=Object.prototype.hasOwnProperty,a=Object.prototype.toString;i.exports=function(l,u,p){if(a.call(u)!=="[object Function]")throw new TypeError("iterator must be a function");var m=l.length;if(m===+m)for(var d=0;d<m;d++)u.call(p,l[d],d,l);else for(var f in l)s.call(l,f)&&u.call(p,l[f],f,l)}},{}],14:[function(n,i,o){"use strict";var s=n("foreach");i.exports=a;function a(c,l,u){if(arguments.length===3)return a.set(c,l,u);if(arguments.length===2)return a.get(c,l);var p=a.bind(a,c);for(var m in a)a.hasOwnProperty(m)&&(p[m]=a[m].bind(p,c));return p}a.get=function(l,u){for(var p=Array.isArray(u)?u:a.parse(u),m=0;m<p.length;++m){var d=p[m];if(!(typeof l=="object"&&d in l))throw new Error("Invalid reference token: "+d);l=l[d]}return l},a.set=function(l,u,p){var m=Array.isArray(u)?u:a.parse(u),d=m[0];if(m.length===0)throw Error("Can not set the root object");for(var f=0;f<m.length-1;++f){var h=m[f];typeof h!="string"&&typeof h!="number"&&(h=String(h)),!(h==="__proto__"||h==="constructor"||h==="prototype")&&(h==="-"&&Array.isArray(l)&&(h=l.length),d=m[f+1],h in l||(d.match(/^(\d+|-)$/)?l[h]=[]:l[h]={}),l=l[h])}return d==="-"&&Array.isArray(l)&&(d=l.length),l[d]=p,this},a.remove=function(c,l){var u=Array.isArray(l)?l:a.parse(l),p=u[u.length-1];if(p===void 0)throw new Error('Invalid JSON pointer for remove: "'+l+'"');var m=a.get(c,u.slice(0,-1));if(Array.isArray(m)){var d=+p;if(p===""&&isNaN(d))throw new Error('Invalid array index: "'+p+'"');Array.prototype.splice.call(m,d,1)}else delete m[p]},a.dict=function(l,u){var p={};return a.walk(l,function(m,d){p[d]=m},u),p},a.walk=function(l,u,p){var m=[];p=p||function(d){var f=Object.prototype.toString.call(d);return f==="[object Object]"||f==="[object Array]"},(function d(f){s(f,function(h,y){m.push(String(y)),p(h)?d(h):u(h,a.compile(m)),m.pop()})})(l)},a.has=function(l,u){try{a.get(l,u)}catch{return!1}return!0},a.escape=function(l){return l.toString().replace(/~/g,"~0").replace(/\//g,"~1")},a.unescape=function(l){return l.replace(/~1/g,"/").replace(/~0/g,"~")},a.parse=function(l){if(l==="")return[];if(l.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+l);return l.substring(1).split(/\//).map(a.unescape)},a.compile=function(l){return l.length===0?"":"/"+l.map(a.escape).join("/")}},{foreach:13}],15:[function(n,i,o){let s=/^[-+]?0x[a-fA-F0-9]+$/,a=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);let c={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function l(p,m={}){if(m=Object.assign({},c,m),!p||typeof p!="string")return p;let d=p.trim();if(m.skipLike!==void 0&&m.skipLike.test(d))return p;if(m.hex&&s.test(d))return Number.parseInt(d,16);{let f=a.exec(d);if(f){let h=f[1],y=f[2],b=u(f[3]),g=f[4]||f[6];if(!m.leadingZeros&&y.length>0&&h&&d[2]!==".")return p;if(!m.leadingZeros&&y.length>0&&!h&&d[1]!==".")return p;{let v=Number(d),_=""+v;return _.search(/[eE]/)!==-1||g?m.eNotation?v:p:d.indexOf(".")!==-1?_==="0"&&b===""||_===b||h&&_==="-"+b?v:p:y?b===_||h+b===_?v:p:d===_||d===h+_?v:p}}else return p}}function u(p){return p&&p.indexOf(".")!==-1&&(p=p.replace(/0+$/,""),p==="."?p="0":p[0]==="."?p="0"+p:p[p.length-1]==="."&&(p=p.substr(0,p.length-1))),p}i.exports=l},{}],16:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.allOfSample=c;var s=n("./traverse"),a=n("./utils");function c(l,u,p,m,d){let f=(0,s.traverse)(l,p,m),h=[];for(let y of u){let{type:b,readOnly:g,writeOnly:v,value:_}=(0,s.traverse)({type:f.type,...y},p,m,{...d,isAllOfChild:!0});f.type&&b&&b!==f.type&&(console.warn("allOf: schemas with different types can't be merged"),f.type=b),f.type=f.type||b,f.readOnly=f.readOnly||g,f.writeOnly=f.writeOnly||v,_!=null&&h.push(_)}if(f.type==="object"){f.value=(0,a.mergeDeep)(f.value||{},...h.filter(y=>typeof y=="object"));for(let y in f.value)f.value[y]===a.SKIP_SYMBOL&&delete f.value[y];return f}else{f.type==="array"&&(p.quiet||console.warn('OpenAPI Sampler: found allOf with "array" type. Result may be incorrect'));let y=h[h.length-1];return f.value=y!=null?y:f.value,f}}},{"./traverse":26,"./utils":27}],17:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.inferType=a;let s={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object",patternProperties:"object",dependencies:"object"};function a(c){if(c.type!==void 0)return Array.isArray(c.type)?c.type.length===0?null:c.type[0]:c.type;let l=Object.keys(s);for(var u=0;u<l.length;u++){let p=l[u],m=s[p];if(c[p]!==void 0)return m}return null}},{}],18:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o._registerSampler=f,o._samplers=void 0,Object.defineProperty(o,"inferType",{enumerable:!0,get:function(){return l.inferType}}),o.sample=d;var s=n("./traverse"),a=n("./samplers/index"),c=n("fast-xml-parser"),l=n("./infer"),u=o._samplers={};let p={skipReadOnly:!1,maxSampleDepth:15};function m(h,y){var g;if(!h)throw new Error("Unknown format output for building XML.");return(Array.isArray(h)||Object.keys(h).length>1)&&(h={[((g=y==null?void 0:y.xml)==null?void 0:g.name)||"root"]:h}),new c.XMLBuilder({ignoreAttributes:!1,format:!0,attributeNamePrefix:"$",textNodeName:"#text"}).build(h)}function d(h,y,b){let g=Object.assign({},p,y);(0,s.clearCache)();let v=(0,s.traverse)(h,g,b).value;return(g==null?void 0:g.format)==="xml"?m(v,h):v}function f(h,y){u[h]=y}f("array",a.sampleArray),f("boolean",a.sampleBoolean),f("integer",a.sampleNumber),f("number",a.sampleNumber),f("object",a.sampleObject),f("string",a.sampleString)},{"./infer":17,"./samplers/index":21,"./traverse":26,"fast-xml-parser":1}],19:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sampleArray=c;var s=n("../traverse"),a=n("../utils");function c(l){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=arguments.length>2?arguments[2]:void 0,m=arguments.length>3?arguments[3]:void 0,d=m&&m.depth||1,f=Math.min(l.maxItems!=null?l.maxItems:1/0,l.minItems||1),h=l.prefixItems||l.items||l.contains;Array.isArray(h)&&(f=Math.max(f,h.length));let y=g=>Array.isArray(h)?h[g]||{}:h||{},b=[];if(!h)return b;for(let g=0;g<f;g++){let v=y(g),{value:_}=(0,s.traverse)(v,u,p,{depth:d+1});if((u==null?void 0:u.format)==="xml"){let{value:w,propertyName:N}=(0,a.applyXMLAttributes)({value:_},v,m);N?(b!=null&&b[N]||(b={...b,[N]:[]}),b[N].push(w)):b={...b,...w}}else b.push(_)}if((u==null?void 0:u.format)==="xml"&&d===1){let{value:g,propertyName:v}=(0,a.applyXMLAttributes)({value:null},l,m);v&&(g?b=Array.isArray(b)?{[v]:{...g,...b.map(_=>({"#text":{..._}}))}}:{[v]:{...b,...g}}:b={[v]:b})}return b}},{"../traverse":26,"../utils":27}],20:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sampleBoolean=s;function s(a){return!0}},{}],21:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"sampleArray",{enumerable:!0,get:function(){return s.sampleArray}}),Object.defineProperty(o,"sampleBoolean",{enumerable:!0,get:function(){return a.sampleBoolean}}),Object.defineProperty(o,"sampleNumber",{enumerable:!0,get:function(){return c.sampleNumber}}),Object.defineProperty(o,"sampleObject",{enumerable:!0,get:function(){return l.sampleObject}}),Object.defineProperty(o,"sampleString",{enumerable:!0,get:function(){return u.sampleString}});var s=n("./array"),a=n("./boolean"),c=n("./number"),l=n("./object"),u=n("./string")},{"./array":19,"./boolean":20,"./number":22,"./object":23,"./string":25}],22:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sampleNumber=s;function s(a){let c=0;if(a.type==="number"&&(a.format==="float"||a.format==="double")&&(c=.1),typeof a.exclusiveMinimum=="boolean"||typeof a.exclusiveMaximum=="boolean"){if(a.maximum&&a.minimum)return c=a.exclusiveMinimum?Math.floor(a.minimum)+1:a.minimum,(a.exclusiveMaximum&&c>=a.maximum||!a.exclusiveMaximum&&c>a.maximum)&&(c=(a.maximum+a.minimum)/2),c;if(a.minimum)return a.exclusiveMinimum?Math.floor(a.minimum)+1:a.minimum;if(a.maximum)return a.exclusiveMaximum?a.maximum>0?0:Math.floor(a.maximum)-1:a.maximum>0?0:a.maximum}else{if(a.minimum)return a.minimum;a.exclusiveMinimum?(c=Math.floor(a.exclusiveMinimum)+1,c===a.exclusiveMaximum&&(c=(c+Math.floor(a.exclusiveMaximum)-1)/2)):a.exclusiveMaximum?c=Math.floor(a.exclusiveMaximum)-1:a.maximum&&(c=a.maximum)}return c}},{}],23:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sampleObject=c;var s=n("../traverse"),a=n("../utils");function c(l){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=arguments.length>2?arguments[2]:void 0,m=arguments.length>3?arguments[3]:void 0,d={},f=m&&m.depth||1;if(l&&typeof l.properties=="object"){let h=Array.isArray(l.required)?l.required:[],y={};for(let b of h)y[b]=!0;Object.keys(l.properties).forEach(b=>{if(u.skipNonRequired&&!y.hasOwnProperty(b))return;let g=(0,s.traverse)(l.properties[b],u,p,{propertyName:b,depth:f+1});if(u.skipReadOnly&&g.readOnly){m!=null&&m.isAllOfChild&&(d[b]=a.SKIP_SYMBOL);return}if(u.skipWriteOnly&&g.writeOnly){m!=null&&m.isAllOfChild&&(d[b]=a.SKIP_SYMBOL);return}if((u==null?void 0:u.format)==="xml"){let{propertyName:v,value:_}=(0,a.applyXMLAttributes)(g,l.properties[b],{propertyName:b});v?d[v]=_:d={...d,..._}}else d[b]=g.value})}if(l&&typeof l.additionalProperties=="object"){let h=l.additionalProperties["x-additionalPropertiesName"]||"property";d[`${String(h)}1`]=(0,s.traverse)(l.additionalProperties,u,p,{depth:f+1}).value,d[`${String(h)}2`]=(0,s.traverse)(l.additionalProperties,u,p,{depth:f+1}).value}if(l&&typeof l.properties=="object"&&l.maxProperties!==void 0&&Object.keys(d).length>l.maxProperties){let h={},y=0;(Array.isArray(l.required)?l.required:[]).forEach(g=>{d[g]!==void 0&&(h[g]=d[g],y++)}),Object.keys(d).forEach(g=>{y<l.maxProperties&&!h.hasOwnProperty(g)&&(h[g]=d[g],y++)}),d=h}return d}},{"../traverse":26,"../utils":27}],24:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.regexSample=l;function s(){return!0}function a(u,p){return u}function c(u,p,m){let d=1;if(u)switch(u){case"?":{d=s()?0:1;break}case"*":{d=a(0,8);break}case"+":{d=a(1,8);break}default:throw new Error("Unknown quantifier symbol provided.")}else p!=null&&m!=null?d=a(parseInt(p),parseInt(m)):p!=null&&m==null&&(d=parseInt(p));return d}function l(u){var w,N;let p=!1;u instanceof RegExp&&(p=u.flags.includes("i"),u=u.toString(),u=(N=(w=u.match(/\/(.+?)\//))==null?void 0:w[1])!=null?N:""),u=u.replace(/^(\^)?(.*?)(\$)?$/,"$2");let m,d,f,h=/([.A-Za-z0-9])(?:\{(\d+)(?:\,(\d+)|)\}|(\?|\*|\+))(?![^[]*]|[^{]*})/,y=u.match(h);for(;y!=null;){let S=y[2],O=y[3],P=y[4];f=c(P,S,O),u=u.slice(0,y.index)+y[1].repeat(f)+u.slice(y.index+y[0].length),y=u.match(h)}let b=/(\d-\d|\w-\w|\d|\w|[-!@#$&()`.+,/"])/,g=/\[(\^|)(-|)(.+?)\](?:\{(\d+)(?:\,(\d+)|)\}|(\?|\*|\+)|)/;for(y=u.match(g);y!=null;){let S=y[1]==="^",O=y[2]==="-",P=y[4],E=y[5],R=y[6],A=[],I=y[3],C=I.match(b);for(O&&A.push(45);C!=null;){if(C[0].indexOf("-")===-1)p&&isNaN(Number(C[0]))?(A.push(C[0].toUpperCase().charCodeAt(0)),A.push(C[0].toLowerCase().charCodeAt(0))):A.push(C[0].charCodeAt(0));else{let L=C[0].split("-").map(D=>D.charCodeAt(0));if(m=L[0],d=L[1],m>d)throw new Error("Character range provided is out of order.");for(let D=m;D<=d;D++)if(p&&isNaN(Number(String.fromCharCode(D)))){let k=String.fromCharCode(D);A.push(k.toUpperCase().charCodeAt(0)),A.push(k.toLowerCase().charCodeAt(0))}else A.push(D)}I=I.substring(C[0].length),C=I.match(b)}if(f=c(R,P,E),S){let L=-1;for(let D=48;D<=57;D++){if(L=A.indexOf(D),L>-1){A.splice(L,1);continue}A.push(D)}for(let D=65;D<=90;D++){if(L=A.indexOf(D),L>-1){A.splice(L,1);continue}A.push(D)}for(let D=97;D<=122;D++){if(L=A.indexOf(D),L>-1){A.splice(L,1);continue}A.push(D)}}let $=Array.from({length:f},()=>String.fromCharCode(A[a(0,A.length-1)])).join("");u=u.slice(0,y.index)+$+u.slice(y.index+y[0].length),y=u.match(g)}let v=/(.)\{(\d+)\,(\d+)\}/;for(y=u.match(v);y!=null;){if(m=parseInt(y[2]),d=parseInt(y[3]),m>d)throw new Error("Numbers out of order in {} quantifier.");f=a(m,d),u=u.slice(0,y.index)+y[1].repeat(f)+u.slice(y.index+y[0].length),y=u.match(v)}let _=/(.)\{(\d+)\}/;for(y=u.match(_);y!=null;)f=parseInt(y[2]),u=u.slice(0,y.index)+y[1].repeat(f)+u.slice(y.index+y[0].length),y=u.match(_);return u}},{}],25:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sampleString=D;var s=n("../utils"),a=l(n("./string-regex"));function c(k){if(typeof WeakMap!="function")return null;var q=new WeakMap,V=new WeakMap;return(c=function(z){return z?V:q})(k)}function l(k,q){if(!q&&k&&k.__esModule)return k;if(k===null||typeof k!="object"&&typeof k!="function")return{default:k};var V=c(q);if(V&&V.has(k))return V.get(k);var z={__proto__:null},ne=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var pe in k)if(pe!=="default"&&{}.hasOwnProperty.call(k,pe)){var Ae=ne?Object.getOwnPropertyDescriptor(k,pe):null;Ae&&(Ae.get||Ae.set)?Object.defineProperty(z,pe,Ae):z[pe]=k[pe]}return z.default=k,V&&V.set(k,z),z}let u="qwerty!@#$%^123456";function p(){return"user@example.com"}function m(){return"\u043F\u043E\u0448\u0442\u0430@\u0443\u043A\u0440.\u043D\u0435\u0442"}function d(k,q){let V="pa$$word";return k>V.length&&(V+="_",V+=(0,s.ensureMinLength)(u,k-V.length).substring(0,k-V.length)),V}function f(k){let{min:q,max:V,omitTime:z,omitDate:ne}=k,pe=(0,s.toRFCDateTime)(new Date("2019-08-24T14:15:22.123Z"),z,ne,!1);return pe.length<q&&console.warn(`Using minLength = ${q} is incorrect with format "date-time"`),V&&pe.length>V&&console.warn(`Using maxLength = ${V} is incorrect with format "date-time"`),pe}function h(k,q){return f({min:k,max:q,omitTime:!1,omitDate:!1})}function y(k,q){return f({min:k,max:q,omitTime:!0,omitDate:!1})}function b(k,q){return f({min:k,max:q,omitTime:!1,omitDate:!0}).slice(1)}function g(k,q,V,z){let ne=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(z&&ne)return a.regexSample(z);let pe=(0,s.ensureMinLength)("string",k);return q&&pe.length>q&&(pe=pe.substring(0,q)),pe}function v(){return"192.168.0.1"}function _(){return"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}function w(){return"example.com"}function N(){return"\u043F\u0440\u0438\u043A\u043B\u0430\u0434.\u0443\u043A\u0440"}function S(){return"http://example.com"}function O(){return"../dictionary"}function P(){return"http://example.com/{endpoint}"}function E(){return"http://example.com/entity/1"}function R(){return"/entity/1"}function A(k,q,V){return(0,s.uuid)(V||"id")}function I(){return"/json/pointer"}function C(){return"1/relative/json/pointer"}function $(){return"/regex/"}let L={email:p,"idn-email":m,password:d,"date-time":h,date:y,time:b,ipv4:v,ipv6:_,hostname:w,"idn-hostname":N,iri:E,"iri-reference":R,uri:S,"uri-reference":O,"uri-template":P,uuid:A,default:g,"json-pointer":I,"relative-json-pointer":C,regex:$};function D(k,q,V,z){let ne=k.format||"default",pe=L[ne]||g,Ae=z&&z.propertyName;return pe(k.minLength||0,k.maxLength,Ae,k.pattern,q==null?void 0:q.enablePatterns)}},{"../utils":27,"./string-regex":24}],26:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.clearCache=f,o.traverse=b;var s=n("./openapi-sampler"),a=n("./allOf"),c=n("./infer"),l=n("./utils"),u=p(n("json-pointer"));function p(g){return g&&g.__esModule?g:{default:g}}let m={},d=[];function f(){m={},d=[]}function h(g){let v;return g.const!==void 0?v=g.const:g.examples!==void 0&&g.examples.length?v=g.examples[0]:g.enum!==void 0&&g.enum.length?v=g.enum[0]:g.default!==void 0&&(v=g.default),v}function y(g){let v=h(g);if(v!==void 0)return{value:v,readOnly:g.readOnly,writeOnly:g.writeOnly,type:null}}function b(g,v,_,w){if(w){if(d.includes(g))return(0,l.getResultForCircular)((0,c.inferType)(g));d.push(g)}if(w&&w.depth>v.maxSampleDepth)return(0,l.popSchemaStack)(d,w),(0,l.getResultForCircular)((0,c.inferType)(g));if(g.$ref){if(!_)throw new Error("Your schema contains $ref. You must provide full specification in the third parameter.");let P=decodeURIComponent(g.$ref);P.startsWith("#")&&(P=P.substring(1));let E=u.default.get(_,P),R;if(m[P]!==!0){m[P]=!0;let A=b(E,v,_,w);if(v.format==="xml"){let{propertyName:I,value:C}=(0,l.applyXMLAttributes)(A,E,w);R={...A,value:{[I||"root"]:C}}}else R=A;m[P]=!1}else{let A=(0,c.inferType)(E);R=(0,l.getResultForCircular)(A)}return(0,l.popSchemaStack)(d,w),R}if(g.example!==void 0)return(0,l.popSchemaStack)(d,w),{value:g.example,readOnly:g.readOnly,writeOnly:g.writeOnly,type:g.type};if(g.allOf!==void 0)return(0,l.popSchemaStack)(d,w),y(g)||(0,a.allOfSample)({...g,allOf:void 0},g.allOf,v,_,w);if(g.oneOf&&g.oneOf.length){g.anyOf&&(v.quiet||console.warn("oneOf and anyOf are not supported on the same level. Skipping anyOf")),(0,l.popSchemaStack)(d,w);let P=Object.assign({readOnly:g.readOnly,writeOnly:g.writeOnly},g.oneOf[0]);return O(g,P)}if(g.anyOf&&g.anyOf.length){(0,l.popSchemaStack)(d,w);let P=Object.assign({readOnly:g.readOnly,writeOnly:g.writeOnly},g.anyOf[0]);return O(g,P)}if(g.if&&g.then){(0,l.popSchemaStack)(d,w);let{if:P,then:E,...R}=g;return b((0,l.mergeDeep)(R,P,E),v,_,w)}let N=h(g),S=null;if(N===void 0){N=null,S=g.type,Array.isArray(S)&&g.type.length>0&&(S=g.type[0]),S||(S=(0,c.inferType)(g));let P=s._samplers[S];P&&(N=P(g,v,_,w))}return(0,l.popSchemaStack)(d,w),{value:N,readOnly:g.readOnly,writeOnly:g.writeOnly,type:S};function O(P,E){let R=y(P);if(R!==void 0)return R;let A=b({...P,oneOf:void 0,anyOf:void 0},v,_,w),I=b(E,v,_,w);if(typeof A.value=="object"&&typeof I.value=="object"){let C=(0,l.mergeDeep)(A.value,I.value);return{...I,value:C}}return I}}},{"./allOf":16,"./infer":17,"./openapi-sampler":18,"./utils":27,"json-pointer":14}],27:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.SKIP_SYMBOL=void 0,o.applyXMLAttributes=h,o.ensureMinLength=l,o.getResultForCircular=m,o.getXMLAttributes=f,o.mergeDeep=u,o.popSchemaStack=d,o.toRFCDateTime=c,o.uuid=p;let s=o.SKIP_SYMBOL=Symbol("skip");function a(g){return g<10?"0"+g:g}function c(g,v,_,w){var N=_?"":g.getUTCFullYear()+"-"+a(g.getUTCMonth()+1)+"-"+a(g.getUTCDate());return v||(N+="T"+a(g.getUTCHours())+":"+a(g.getUTCMinutes())+":"+a(g.getUTCSeconds())+(w?"."+(g.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5):"")+"Z"),N}function l(g,v){return v>g.length?g.repeat(Math.trunc(v/g.length)+1).substring(0,v):g}function u(){let g=N=>N&&typeof N=="object";for(var v=arguments.length,_=new Array(v),w=0;w<v;w++)_[w]=arguments[w];return _.reduce((N,S)=>(Object.keys(S||{}).forEach(O=>{let P=N[O],E=S[O];g(P)&&g(E)?N[O]=u(P,E):N[O]=E}),N),Array.isArray(_[_.length-1])?[]:{})}function p(g){var v=y(g),_=b(v,v,v,v),w="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,N=>{var S=_()*16%16|0;return(N=="x"?S:S&3|8).toString(16)});return w}function m(g){return{value:g==="object"?{}:g==="array"?[]:void 0}}function d(g,v){v&&g.pop()}function f(g){var v,_,w,N,S,O,P;return{name:((v=g==null?void 0:g.xml)==null?void 0:v.name)||"",prefix:((_=g==null?void 0:g.xml)==null?void 0:_.prefix)||"",namespace:((w=g==null?void 0:g.xml)==null?void 0:w.namespace)||null,attribute:(S=(N=g==null?void 0:g.xml)==null?void 0:N.attribute)!=null?S:!1,wrapped:(P=(O=g==null?void 0:g.xml)==null?void 0:O.wrapped)!=null?P:!1}}function h(g){var C,$;let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{value:w}=g,{propertyName:N}=_,{name:S,prefix:O,namespace:P,attribute:E,wrapped:R}=f(v),A=S||N?`${O?O+":":""}${S||N}`:null,I=typeof w=="object"?Array.isArray(w)?[...w]:{...w}:w;return E&&A&&(A=`$${A}`),P&&(typeof I=="object"?I[`$xmlns${O?":"+O:""}`]=P:I={[`$xmlns${O?":"+O:""}`]:P,"#text":I}),v.type==="array"&&(R&&Array.isArray(I)&&(I={[A]:[...I]}),R||(A=null),v.example!==void 0&&!R&&(A=(($=(C=v.items)==null?void 0:C.xml)==null?void 0:$.name)||A)),(v.oneOf||v.anyOf||v.allOf||v.$ref)&&(A=null),{propertyName:A,value:I}}function y(g){var v=0;if(g.length==0)return v;for(var _=0;_<g.length;_++){var w=g.charCodeAt(_);v=(v<<5)-v+w,v=v&v}return v}function b(g,v,_,w){return function(){g|=0,v|=0,_|=0,w|=0;var N=g-(v<<27|v>>>5)|0;return g=v^(_<<17|_>>>15),v=_+w|0,_=w+N|0,w=g+N|0,(w>>>0)/4294967296}}},{}]},{},[18])(18)})});var lq=x(j1=>{"use strict";Object.defineProperty(j1,"__esModule",{value:!0});var _re=kh(),Ore=Xh(),$re=gy(),Pre=jy(),cq=My(),Ere=[_re.default,Ore.default,(0,$re.default)(),Pre.default,cq.metadataVocabulary,cq.contentVocabulary];j1.default=Ere});var uq=x((CSe,Are)=>{Are.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/schema",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/core":!0,"https://json-schema.org/draft/2019-09/vocab/applicator":!0,"https://json-schema.org/draft/2019-09/vocab/validation":!0,"https://json-schema.org/draft/2019-09/vocab/meta-data":!0,"https://json-schema.org/draft/2019-09/vocab/format":!1,"https://json-schema.org/draft/2019-09/vocab/content":!0},$recursiveAnchor:!0,title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format"},{$ref:"meta/content"}],type:["object","boolean"],properties:{definitions:{$comment:"While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",type:"object",additionalProperties:{$recursiveRef:"#"},default:{}},dependencies:{$comment:'"dependencies" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to "dependentSchemas" and "dependentRequired"',type:"object",additionalProperties:{anyOf:[{$recursiveRef:"#"},{$ref:"meta/validation#/$defs/stringArray"}]}}}}});var pq=x((RSe,Cre)=>{Cre.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/applicator":!0},$recursiveAnchor:!0,title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{additionalItems:{$recursiveRef:"#"},unevaluatedItems:{$recursiveRef:"#"},items:{anyOf:[{$recursiveRef:"#"},{$ref:"#/$defs/schemaArray"}]},contains:{$recursiveRef:"#"},additionalProperties:{$recursiveRef:"#"},unevaluatedProperties:{$recursiveRef:"#"},properties:{type:"object",additionalProperties:{$recursiveRef:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$recursiveRef:"#"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$recursiveRef:"#"}},propertyNames:{$recursiveRef:"#"},if:{$recursiveRef:"#"},then:{$recursiveRef:"#"},else:{$recursiveRef:"#"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$recursiveRef:"#"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$recursiveRef:"#"}}}}});var fq=x((TSe,Rre)=>{Rre.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/content",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/content":!0},$recursiveAnchor:!0,title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentMediaType:{type:"string"},contentEncoding:{type:"string"},contentSchema:{$recursiveRef:"#"}}}});var dq=x((NSe,Tre)=>{Tre.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/core",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/core":!0},$recursiveAnchor:!0,title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{type:"string",format:"uri"},$anchor:{type:"string",pattern:"^[A-Za-z][-A-Za-z0-9.:_]*$"},$ref:{type:"string",format:"uri-reference"},$recursiveRef:{type:"string",format:"uri-reference"},$recursiveAnchor:{type:"boolean",default:!1},$vocabulary:{type:"object",propertyNames:{type:"string",format:"uri"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$recursiveRef:"#"},default:{}}}}});var mq=x((ISe,Nre)=>{Nre.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/format",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/format":!0},$recursiveAnchor:!0,title:"Format vocabulary meta-schema",type:["object","boolean"],properties:{format:{type:"string"}}}});var hq=x((kSe,Ire)=>{Ire.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/meta-data":!0},$recursiveAnchor:!0,title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var yq=x((qSe,kre)=>{kre.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/validation",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/validation":!0},$recursiveAnchor:!0,title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}},const:!0,enum:{type:"array",items:!0},type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var gq=x(M1=>{"use strict";Object.defineProperty(M1,"__esModule",{value:!0});M1.default=Vre;var qre=uq(),jre=pq(),Mre=fq(),Lre=dq(),Dre=mq(),Fre=hq(),Bre=yq(),Ure=["/properties"];function Vre(e){return[qre,jre,Mre,Lre,t(this,Dre),Fre,t(this,Bre)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,Ure):n}}});var vq=x((dt,bq)=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.CodeGen=dt.Name=dt.nil=dt.stringify=dt.str=dt._=dt.KeywordCxt=void 0;var zre=Th(),Hre=lq(),Kre=Oy(),Gre=Cy(),Yre=Iy(),Wre=By(),Xre=gq(),L1="https://json-schema.org/draft/2019-09/schema",Id=class extends zre.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),this.addVocabulary(Kre.default),Hre.default.forEach(t=>this.addVocabulary(t)),this.addVocabulary(Gre.default),this.addVocabulary(Yre.default),this.opts.discriminator&&this.addKeyword(Wre.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(Xre.default.call(this,t),this.refs["http://json-schema.org/schema"]=L1)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(L1)?L1:void 0)}};bq.exports=dt=Id;Object.defineProperty(dt,"__esModule",{value:!0});dt.default=Id;var Jre=Xo();Object.defineProperty(dt,"KeywordCxt",{enumerable:!0,get:function(){return Jre.KeywordCxt}});var pa=oe();Object.defineProperty(dt,"_",{enumerable:!0,get:function(){return pa._}});Object.defineProperty(dt,"str",{enumerable:!0,get:function(){return pa.str}});Object.defineProperty(dt,"stringify",{enumerable:!0,get:function(){return pa.stringify}});Object.defineProperty(dt,"nil",{enumerable:!0,get:function(){return pa.nil}});Object.defineProperty(dt,"Name",{enumerable:!0,get:function(){return pa.Name}});Object.defineProperty(dt,"CodeGen",{enumerable:!0,get:function(){return pa.CodeGen}})});var hne={};jd(hne,{createMockServer:()=>Dq});module.exports=Hq(hne);var Md=Ee(require("path"),1),fa=Ee(require("fs"),1);function xl(e){var t;return(Md.extname(e)===".yaml"||Md.extname(e)===".yml")&&!!((t=fa==null?void 0:fa.existsSync)!=null&&t.call(fa,e))}function da(e,t){let r,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&da(e[n],t[n]););return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&++n&&!Object.prototype.hasOwnProperty.call(t,r)||!(r in t)||!da(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function W(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Ir(e){return W(e)&&Object.keys(e).length===0}function at(e){return typeof e=="string"}function ct(e){return!!e}function Ld(e){return e?Object.keys(e):[]}var z1=Ee(Bd(),1);function Ud(e,t,r){return e.split(" ").map(n=>(0,z1.default)(n,t,r)).join(" ")}var mx=Ee(dx(),1);var bt=typeof window<"u"||typeof process>"u"||(process==null?void 0:process.platform)==="browser",Qd=bt?{}:process.env||{};async function Zd(e,t){let r={};for(let i of t.headers)wj(e,i.matches)&&(r[i.name]=i.envVariable!==void 0?Qd[i.envVariable]||"":i.value);let n=await(t.customFetch||fetch)(e,{headers:r});if(!n.ok)throw new Error(`Failed to load ${e}: ${n.status} ${n.statusText}`);return{body:await n.text(),mimeType:n.headers.get("content-type")}}function wj(e,t){return t.match(/^https?:\/\//)||(e=e.replace(/^https?:\/\//,"")),mx.isMatch(e,t)}function em(e){return/^\\\\\?\\/.test(e)?e:e.replace(/\\/g,"/")}function X(e){return{name:`${e}List`,properties:{},items:e}}function K(e){return{name:`${e}Map`,properties:{},additionalProperties:()=>e}}var kr={name:"SpecExtension",properties:{},additionalProperties:{resolvable:!0}};function Lo(e,t={}){let r={};for(let o of Object.keys(e))r[o]={...e[o],name:o};for(let o of Object.values(r))n(o);return r.SpecExtension=kr,r;function n(o){if(o.additionalProperties&&(o.additionalProperties=i(o.additionalProperties)),o.items&&(o.items=i(o.items)),o.properties){let s={};for(let[a,c]of Object.entries(o.properties))s[a]=i(c),t.doNotResolveExamples&&c&&c.isExample&&(s[a]={...c,resolvable:!1});o.properties=s}}function i(o){if(typeof o=="string"){if(!r[o])throw new Error(`Unknown type name found: ${o}`);return r[o]}else return typeof o=="function"?(s,a)=>i(o(s,a)):o&&o.name?(o={...o},n(o),o):o&&o.directResolveAs?{...o,directResolveAs:i(o.directResolveAs)}:o}}function Yr(e){return typeof(e==null?void 0:e.name)=="string"}var Sj=/^[0-9][0-9Xx]{2}$/,_j={properties:{swagger:{type:"string"},info:"Info",host:{type:"string"},basePath:{type:"string"},schemes:{type:"array",items:{type:"string"}},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},paths:"Paths",definitions:"NamedSchemas",parameters:"NamedParameters",responses:"NamedResponses",securityDefinitions:"NamedSecuritySchemes",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs","x-servers":"XServerList","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["swagger","paths","info"],extensionsPrefix:"x-"},Oj={properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",version:{type:"string"},"x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},$j={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}},extensionsPrefix:"x-"},Pj={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},Ej={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},Aj={properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},Cj={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},Rj={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},parameters:"ParameterList",responses:"Responses",schemes:{type:"array",items:{type:"string"}},deprecated:{type:"boolean"},security:"SecurityRequirementList","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-"},Tj={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},Nj={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},Ij={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},kj={properties:{name:{type:"string"},in:{type:"string",enum:["query","header","path","formData","body"]},description:{type:"string"},required:{type:"boolean"},schema:"Schema",type:{type:"string",enum:["string","number","integer","boolean","array","file"]},format:{type:"string"},allowEmptyValue:{type:"boolean"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"},"x-example":{},"x-examples":"ExamplesMap"},required(e){return!e||!e.in?["name","in"]:e.in==="body"?["name","in","schema"]:e.type==="array"?["name","in","type","items"]:["name","in","type"]},extensionsPrefix:"x-"},qj={properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(e){return e&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},jj={properties:{default:"Response"},additionalProperties:(e,t)=>Sj.test(t)?"Response":void 0},Mj={properties:{description:{type:"string"},schema:"Schema",headers:K("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},Lj={properties:{},additionalProperties:{isExample:!0}},Dj={properties:{description:{type:"string"},type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(e){return e&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},Fj={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},Bj={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},Uj={properties:{format:{type:"string"},title:{type:"string"},description:{type:"string"},default:null,multipleOf:{type:"number"},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"number"},minLength:{type:"number"},pattern:{type:"string"},maxItems:{type:"number"},minItems:{type:"number"},uniqueItems:{type:"boolean"},maxProperties:{type:"number"},minProperties:{type:"number"},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{type:"string",enum:["object","array","string","number","integer","boolean","null"]},items:e=>Array.isArray(e)?X("Schema"):"Schema",allOf:X("Schema"),properties:"SchemaProperties",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",discriminator:{type:"string"},readOnly:{type:"boolean"},xml:"Xml",externalDocs:"ExternalDocs",example:{isExample:!0},"x-tags":{type:"array",items:{type:"string"}},"x-nullable":{type:"boolean"},"x-extendedDiscriminator":{type:"string"},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"},"x-enumDescriptions":"EnumDescriptions"},extensionsPrefix:"x-"},Vj={properties:{},additionalProperties:{type:"string"}},zj={properties:{},additionalProperties:"Schema"},Hj={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},Kj={properties:{type:{enum:["basic","apiKey","oauth2"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header"]},flow:{enum:["implicit","password","application","accessCode"]},authorizationUrl:{type:"string"},tokenUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},"x-defaultClientId":{type:"string"}},required(e){switch(e==null?void 0:e.type){case"apiKey":return["type","name","in"];case"oauth2":switch(e==null?void 0:e.flow){case"implicit":return["type","flow","authorizationUrl","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","scopes"];case"application":case"password":return["type","flow","tokenUrl","scopes"];default:return["type","flow","scopes"]}default:return["type"]}},allowed(e){switch(e==null?void 0:e.type){case"basic":return["type","description"];case"apiKey":return["type","name","in","description"];case"oauth2":switch(e==null?void 0:e.flow){case"implicit":return["type","flow","authorizationUrl","description","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","description","scopes"];case"application":case"password":return["type","flow","tokenUrl","description","scopes"];default:return["type","flow","tokenUrl","authorizationUrl","description","scopes"]}default:return["type","description"]}},extensionsPrefix:"x-"},Gj={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Yj={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},tm={Root:_j,Tag:Fj,TagList:X("Tag"),TagGroups:X("TagGroup"),TagGroup:Bj,ExternalDocs:Ij,Example:Yj,ExamplesMap:K("Example"),EnumDescriptions:Vj,SecurityRequirement:Gj,SecurityRequirementList:X("SecurityRequirement"),Info:Oj,Contact:Pj,License:Ej,Logo:$j,Paths:Aj,PathItem:Cj,Parameter:kj,ParameterItems:qj,ParameterList:X("Parameter"),Operation:Rj,Examples:Lj,Header:Dj,Responses:jj,Response:Mj,Schema:Uj,Xml:Hj,SchemaProperties:zj,NamedSchemas:K("Schema"),NamedResponses:K("Response"),NamedParameters:K("Parameter"),NamedSecuritySchemes:K("SecurityScheme"),SecurityScheme:Kj,XCodeSample:Tj,XCodeSampleList:X("XCodeSample"),XServerList:X("XServer"),XServer:Nj};function Bi(e,t){return e===""&&(e="#/"),e[e.length-1]==="/"?e+t:e+"/"+t}function Oe(e){return W(e)&&typeof e.$ref=="string"}function _l(e){return W(e)&&typeof e.externalValue=="string"}var zn=class e{constructor(t,r){this.source=t,this.pointer=r}child(t){return new e(this.source,Bi(this.pointer,(Array.isArray(t)?t:[t]).map(Hn).join("/")))}key(){return{...this,reportOnKey:!0}}get absolutePointer(){return this.source.absoluteRef+(this.pointer==="#/"?"":this.pointer)}};function rm(e){return decodeURIComponent(e.replace(/~1/g,"/").replace(/~0/g,"~"))}function Hn(e){return typeof e=="number"?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function hx(e){let[t,r=""]=e.split("#/");return{uri:(t.endsWith("#")?t.slice(0,-1):t)||null,pointer:Wj(r)}}function Wj(e){return e.split("/").map(rm).filter(ct)}function yx(e){let t=e.split(/[\/\\]/);return t[t.length-1].replace(/\.[^.]+$/,"")}function Je(e){return e.startsWith("http://")||e.startsWith("https://")}function Ol(e){return e.startsWith("#")||e.startsWith("https://")||e.startsWith("http://")||e.startsWith("./")||e.startsWith("../")||e.indexOf("/")>-1}function gx(e){return/^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(e)}function ga(e,t,r){if(!W(t.node))r.parent[r.key]=t.node;else{delete e.$ref;let n=Object.assign({},t.node,e);Object.assign(e,n)}}var Xj=/^[0-9][0-9Xx]{2}$/,Jj={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",components:"Components","x-webhooks":"WebhooksMap","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["openapi","paths","info"],extensionsPrefix:"x-"},Qj={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},Zj={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}},extensionsPrefix:"x-"},eM={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},tM={properties:{url:{type:"string"},description:{type:"string"},variables:"ServerVariablesMap"},required:["url"],extensionsPrefix:"x-"},rM={properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"}},required:["default"],extensionsPrefix:"x-"},nM={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},iM={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License","x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},oM={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}}},sM={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},aM={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},cM={properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},lM={properties:{},additionalProperties:()=>"PathItem"},uM={properties:{$ref:{type:"string"},servers:"ServerList",parameters:"ParameterList",summary:{type:"string"},description:{type:"string"},get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation",trace:"Operation"},extensionsPrefix:"x-"},pM={properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{type:"boolean"},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean"},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",content:"MediaTypesMap"},required:["name","in"],requiredOneOf:["schema","content"],extensionsPrefix:"x-"},fM={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-"},dM={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},mM={properties:{description:{type:"string"},required:{type:"boolean"},content:"MediaTypesMap"},required:["content"],extensionsPrefix:"x-"},hM={properties:{},additionalProperties:"MediaType"},yM={properties:{schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",encoding:"EncodingMap"},extensionsPrefix:"x-"},gM={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},bM={properties:{contentType:{type:"string"},headers:"HeadersMap",style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"}},extensionsPrefix:"x-"},vM={properties:{},additionalProperties:{type:"string"}},xM={properties:{description:{type:"string"},required:{type:"boolean"},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean"},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",content:"MediaTypesMap"},requiredOneOf:["schema","content"],extensionsPrefix:"x-"},wM={properties:{default:"Response"},additionalProperties:(e,t)=>Xj.test(t)?"Response":void 0},SM={properties:{description:{type:"string"},headers:"HeadersMap",content:"MediaTypesMap",links:"LinksMap","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},_M={properties:{operationRef:{type:"string"},operationId:{type:"string"},parameters:null,requestBody:null,description:{type:"string"},server:"Server"},extensionsPrefix:"x-"},OM={properties:{externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{enum:["object","array","string","number","integer","boolean"]},allOf:X("Schema"),anyOf:X("Schema"),oneOf:X("Schema"),not:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?X("Schema"):"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},default:null,nullable:{type:"boolean"},readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",example:{isExample:!0},deprecated:{type:"boolean"},"x-tags":{type:"array",items:{type:"string"}},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"}},extensionsPrefix:"x-"},$M={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},PM={properties:{},additionalProperties:"Schema"},EM={properties:{},additionalProperties:e=>Ol(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},AM={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"],extensionsPrefix:"x-"},CM={properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks"},extensionsPrefix:"x-"},RM={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],extensionsPrefix:"x-"},TM={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-"},NM={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-"},IM={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"},"x-usePkce":e=>typeof e=="boolean"?{type:"boolean"}:"XUsePkce"},required:["authorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-"},kM={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-"},qM={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"OAuth2Flows",openIdConnectUrl:{type:"string"},"x-defaultClientId":{type:"string"}},required(e){switch(e==null?void 0:e.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e==null?void 0:e.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-"},jM={properties:{disableManualConfiguration:{type:"boolean"},hideClientSecretInput:{type:"boolean"}}},Kn={Root:Jj,Tag:Qj,TagList:X("Tag"),TagGroups:X("TagGroup"),TagGroup:Zj,ExternalDocs:eM,Server:tM,ServerList:X("Server"),ServerVariable:rM,ServerVariablesMap:K("ServerVariable"),SecurityRequirement:nM,SecurityRequirementList:X("SecurityRequirement"),Info:iM,Contact:sM,License:aM,Paths:cM,PathItem:uM,Parameter:pM,ParameterList:X("Parameter"),Operation:fM,Callback:K("PathItem"),CallbacksMap:K("Callback"),RequestBody:mM,MediaTypesMap:hM,MediaType:yM,Example:gM,ExamplesMap:K("Example"),Encoding:bM,EncodingMap:K("Encoding"),EnumDescriptions:vM,Header:xM,HeadersMap:K("Header"),Responses:wM,Response:SM,Link:_M,Logo:oM,Schema:OM,Xml:$M,SchemaProperties:PM,DiscriminatorMapping:EM,Discriminator:AM,Components:CM,LinksMap:K("Link"),NamedSchemas:K("Schema"),NamedResponses:K("Response"),NamedParameters:K("Parameter"),NamedExamples:K("Example"),NamedRequestBodies:K("RequestBody"),NamedHeaders:K("Header"),NamedSecuritySchemes:K("SecurityScheme"),NamedLinks:K("Link"),NamedCallbacks:K("Callback"),ImplicitFlow:RM,PasswordFlow:TM,ClientCredentials:NM,AuthorizationCode:IM,OAuth2Flows:kM,SecurityScheme:qM,XCodeSample:dM,XCodeSampleList:X("XCodeSample"),XUsePkce:jM,WebhooksMap:lM};var MM={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",webhooks:"WebhooksMap",components:"Components",jsonSchemaDialect:{type:"string"}},required:["openapi","info"],requiredOneOf:["paths","components","webhooks"],extensionsPrefix:"x-"},LM={properties:{name:{type:"string"},url:{type:"string"},identifier:{type:"string"}},required:["name"],extensionsPrefix:"x-"},DM={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},summary:{type:"string"},contact:"Contact",license:"License","x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},FM={properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks",pathItems:"NamedPathItems"},extensionsPrefix:"x-"},BM={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},extensionsPrefix:"x-"},UM={properties:{$id:{type:"string"},$anchor:{type:"string"},id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",$defs:"NamedSchemas",$vocabulary:{type:"string"},externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:e=>Array.isArray(e)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:X("Schema"),anyOf:X("Schema"),oneOf:X("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:K("Schema"),dependentRequired:"DependentRequired",prefixItems:X("Schema"),contains:"Schema",minContains:{type:"integer",minimum:0},maxContains:{type:"integer",minimum:0},patternProperties:"PatternProperties",propertyNames:"Schema",unevaluatedItems:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",unevaluatedProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",summary:{type:"string"},properties:"SchemaProperties",items:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:"Schema",default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},"x-tags":{type:"array",items:{type:"string"}},$dynamicAnchor:{type:"string"},$dynamicRef:{type:"string"}},extensionsPrefix:"x-"},bx={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},VM={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect","mutualTLS"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"OAuth2Flows",openIdConnectUrl:{type:"string"}},required(e){switch(e==null?void 0:e.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e==null?void 0:e.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":switch(e==null?void 0:e.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes"];case"authorizationCode":return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"]}case"openIdConnect":return["type","openIdConnectUrl","description"];case"mutualTLS":return["type","description"];default:return["type","description"]}},extensionsPrefix:"x-"},zM={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Le={...Kn,Info:DM,Root:MM,Schema:UM,SchemaProperties:bx,PatternProperties:bx,License:LM,Components:FM,NamedPathItems:K("PathItem"),SecurityScheme:VM,Operation:BM,DependentRequired:zM};var HM={...Le.Root,properties:{...Le.Root.properties,$self:{type:"string"}}},KM={...Le.Tag,properties:{...Le.Tag.properties,kind:{type:"string"},parent:{type:"string"},summary:{type:"string"}}},GM={...Le.Server,properties:{...Le.Server.properties,name:{type:"string"}}},YM={...Le.SecurityScheme,properties:{...Le.SecurityScheme.properties,deprecated:{type:"boolean"},oauth2MetadataUrl:{type:"string"}},allowed(e){switch(e==null?void 0:e.type){case"apiKey":return["type","name","in","description","deprecated"];case"http":return["type","scheme","bearerFormat","description","deprecated"];case"oauth2":switch(e==null?void 0:e.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"authorizationCode":return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"deviceAuthorization":return["type","flows","deviceAuthorizationUrl","tokenUrl"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes","oauth2MetadataUrl","deprecated"]}case"openIdConnect":return["type","openIdConnectUrl","description","deprecated"];case"mutualTLS":return["type","description","deprecated"];default:return["type","description","deprecated"]}}},WM={...Le.OAuth2Flows,properties:{...Le.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},XM={properties:{deviceAuthorizationUrl:{type:"string"},tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:K("string")},required:["deviceAuthorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-"},JM={...Kn.PathItem,properties:{...Kn.PathItem.properties,query:"Operation",additionalOperations:K("Operation")}},QM={...Le.Parameter,properties:{...Le.Parameter.properties,in:{enum:["query","header","path","cookie","querystring"]}}},ZM={...Le.Response,properties:{...Le.Response.properties,summary:{type:"string"}}},e8={...Le.MediaType,properties:{...Le.MediaType.properties,itemSchema:"Schema",prefixEncoding:X("Encoding"),itemEncoding:"Encoding"}},t8={...Le.Discriminator,properties:{...Le.Discriminator.properties,defaultMapping:{type:"string"}}},r8={...Le.Example,properties:{...Le.Example.properties,dataValue:{isExample:!0},serializedValue:{type:"string"}}},lt={...Le,Root:HM,Tag:KM,Server:GM,SecurityScheme:YM,OAuth2Flows:WM,DeviceAuthorization:XM,PathItem:JM,Parameter:QM,Response:ZM,MediaType:e8,Discriminator:t8,Example:r8};var n8={properties:{asyncapi:null,info:"Info",id:{type:"string"},servers:"ServerMap",channels:"ChannelMap",components:"Components",tags:"TagList",externalDocs:"ExternalDocs",defaultContentType:{type:"string"}},required:["asyncapi","channels","info"]},i8={properties:{description:{type:"string"},subscribe:"Operation",publish:"Operation",parameters:"ParametersMap",bindings:"ChannelBindings",servers:{type:"array",items:{type:"string"}}}},o8={properties:{},additionalProperties:"Channel"},Lt={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},nm={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs"},required:["name"]},im={properties:{description:{type:"string"},url:{type:"string"}},required:["url"]},s8={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Dt={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},a8={properties:{url:{type:"string"},protocol:{type:"string"},protocolVersion:{type:"string"},description:{type:"string"},variables:"ServerVariablesMap",security:"SecurityRequirementList",bindings:"ServerBindings",tags:"TagList"},required:["url","protocol"]},om={properties:{},additionalProperties:(e,t)=>t.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},sm={properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"},examples:{type:"array",items:{type:"string"}}},required:[]},c8={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License"},required:["title","version"]},am={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}}},cm={properties:{name:{type:"string"},url:{type:"string"}},required:["name"]},l8={properties:{description:{type:"string"},schema:"Schema",location:{type:"string"}}},lm={properties:{description:{type:"string"},location:{type:"string"}},required:["location"]},u8={properties:{messageId:{type:"string"},headers:"Schema",payload:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string"},contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{}},Et={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},At={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},p8={properties:{tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecurityRequirementList",bindings:"OperationBindings"},required:[]},f8={properties:{messageId:{type:"string"},headers:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string"},contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{}},d8={properties:{tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecurityRequirementList",bindings:"OperationBindings",traits:"OperationTraitList",message:"Message"},required:[]},um={properties:{payload:{isExample:!0},summary:{type:"string"},name:{type:"string"},headers:{type:"object"}}},pm={properties:{$id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",externalDocs:"ExternalDocs",discriminator:"Discriminator",myArbitraryKeyword:{type:"boolean"},title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:e=>Array.isArray(e)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:X("Schema"),anyOf:X("Schema"),oneOf:X("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?X("Schema"):"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},additionalItems:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",dependencies:"Dependencies"}},fm={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},dm={properties:{},additionalProperties:e=>Ol(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},mm={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]},m8={properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"ChannelMap",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"}},h8={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"]},y8={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"]},g8={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"]},b8={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","scopes"]},hm={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},v8={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie","user","password"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string"}},required(e){switch(e==null?void 0:e.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e==null?void 0:e.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-"},ym={properties:{},additionalProperties:e=>Array.isArray(e)?{type:"array",items:{type:"string"}}:"Schema"},vx={properties:{}};Lt.properties.http=vx;var xx={properties:{}};Dt.properties.http=xx;var wx={properties:{headers:"Schema",bindingVersion:{type:"string"}}};Et.properties.http=wx;var Sx={properties:{type:{type:"string"},method:{type:"string",enum:["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","CONNECT","TRACE"]},headers:"Schema",bindingVersion:{type:"string"}}};At.properties.http=Sx;var _x={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}}};Lt.properties.ws=_x;var Ox={properties:{}};Dt.properties.ws=Ox;var $x={properties:{}};Et.properties.ws=$x;var Px={properties:{}};At.properties.ws=Px;var x8={properties:{"cleanup.policy":{type:"array",items:{enum:["delete","compact"]}},"retention.ms":{type:"integer"},"retention.bytes":{type:"integer"},"delete.retention.ms":{type:"integer"},"max.message.bytes":{type:"integer"}}},Ex={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}}};Lt.properties.kafka=Ex;var Ax={properties:{}};Dt.properties.kafka=Ax;var Cx={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}}};Et.properties.kafka=Cx;var Rx={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}}};At.properties.kafka=Rx;var Tx={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}}};Lt.properties.anypointmq=Tx;var Nx={properties:{}};Dt.properties.anypointmq=Nx;var Ix={properties:{headers:"Schema",bindingVersion:{type:"string"}}};Et.properties.anypointmq=Ix;var kx={properties:{}};At.properties.anypointmq=kx;var qx={properties:{}};Lt.properties.amqp=qx;var jx={properties:{}};Dt.properties.amqp=jx;var Mx={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}}};Et.properties.amqp=Mx;var Lx={properties:{expiration:{type:"integer"},userId:{type:"string"},cc:{type:"array",items:{type:"string"}},priority:{type:"integer"},deliveryMode:{type:"integer"},mandatory:{type:"boolean"},bcc:{type:"array",items:{type:"string"}},replyTo:{type:"string"},timestamp:{type:"boolean"},ack:{type:"boolean"},bindingVersion:{type:"string"}}};At.properties.amqp=Lx;var Dx={properties:{}};Lt.properties.amqp1=Dx;var Fx={properties:{}};Dt.properties.amqp1=Fx;var Bx={properties:{}};Et.properties.amqp1=Bx;var Ux={properties:{}};At.properties.amqp1=Ux;var Vx={properties:{qos:{type:"integer"},retain:{type:"boolean"},bindingVersion:{type:"string"}}};Lt.properties.mqtt=Vx;var w8={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},zx={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},bindingVersion:{type:"string"}}};Dt.properties.mqtt=zx;var Hx={properties:{bindingVersion:{type:"string"}}};Et.properties.mqtt=Hx;var Kx={properties:{qos:{type:"integer"},retain:{type:"boolean"},bindingVersion:{type:"string"}}};At.properties.mqtt=Kx;var Gx={properties:{}};Lt.properties.mqtt5=Gx;var Yx={properties:{}};Dt.properties.mqtt5=Yx;var Wx={properties:{}};Et.properties.mqtt5=Wx;var Xx={properties:{}};At.properties.mqtt5=Xx;var Jx={properties:{}};Lt.properties.nats=Jx;var Qx={properties:{}};Dt.properties.nats=Qx;var Zx={properties:{}};Et.properties.nats=Zx;var ew={properties:{queue:{type:"string"},bindingVersion:{type:"string"}}};At.properties.nats=ew;var tw={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}}};Lt.properties.jms=tw;var rw={properties:{}};Dt.properties.jms=rw;var nw={properties:{headers:"Schema",bindingVersion:{type:"string"}}};Et.properties.jms=nw;var iw={properties:{headers:"Schema",bindingVersion:{type:"string"}}};At.properties.jms=iw;var ow={properties:{}};Lt.properties.solace=ow;var sw={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"}}};Dt.properties.solace=sw;var aw={properties:{}};Et.properties.solace=aw;var S8={properties:{destinationType:{type:"string",enum:["queue","topic"]},deliveryMode:{type:"string",enum:["direct","persistent"]},"queue.name":{type:"string"},"queue.topicSubscriptions":{type:"array",items:{type:"string"}},"queue.accessType":{type:"string",enum:["exclusive","nonexclusive"]},"queue.maxMsgSpoolSize":{type:"string"},"queue.maxTtl":{type:"string"},"topic.topicSubscriptions":{type:"array",items:{type:"string"}}}},cw={properties:{bindingVersion:{type:"string"},destinations:X("SolaceDestination")}};At.properties.solace=cw;var lw={properties:{}};Lt.properties.stomp=lw;var uw={properties:{}};Dt.properties.stomp=uw;var pw={properties:{}};Et.properties.stomp=pw;var fw={properties:{}};At.properties.stomp=fw;var dw={properties:{}};Lt.properties.redis=dw;var mw={properties:{}};Dt.properties.redis=mw;var hw={properties:{}};Et.properties.redis=hw;var yw={properties:{}};At.properties.redis=yw;var gw={properties:{}};Lt.properties.mercure=gw;var bw={properties:{}};Dt.properties.mercure=bw;var vw={properties:{}};Et.properties.mercure=vw;var xw={properties:{}};At.properties.mercure=xw;var gm={HttpServerBinding:xx,HttpChannelBinding:vx,HttpMessageBinding:wx,HttpOperationBinding:Sx,WsServerBinding:Ox,WsChannelBinding:_x,WsMessageBinding:$x,WsOperationBinding:Px,KafkaServerBinding:Ax,KafkaTopicConfiguration:x8,KafkaChannelBinding:Ex,KafkaMessageBinding:Cx,KafkaOperationBinding:Rx,AnypointmqServerBinding:Nx,AnypointmqChannelBinding:Tx,AnypointmqMessageBinding:Ix,AnypointmqOperationBinding:kx,AmqpServerBinding:jx,AmqpChannelBinding:qx,AmqpMessageBinding:Mx,AmqpOperationBinding:Lx,Amqp1ServerBinding:Fx,Amqp1ChannelBinding:Dx,Amqp1MessageBinding:Bx,Amqp1OperationBinding:Ux,MqttServerBindingLastWill:w8,MqttServerBinding:zx,MqttChannelBinding:Vx,MqttMessageBinding:Hx,MqttOperationBinding:Kx,Mqtt5ServerBinding:Yx,Mqtt5ChannelBinding:Gx,Mqtt5MessageBinding:Wx,Mqtt5OperationBinding:Xx,NatsServerBinding:Qx,NatsChannelBinding:Jx,NatsMessageBinding:Zx,NatsOperationBinding:ew,JmsServerBinding:rw,JmsChannelBinding:tw,JmsMessageBinding:nw,JmsOperationBinding:iw,SolaceServerBinding:sw,SolaceChannelBinding:ow,SolaceMessageBinding:aw,SolaceDestination:S8,SolaceOperationBinding:cw,StompServerBinding:uw,StompChannelBinding:lw,StompMessageBinding:pw,StompOperationBinding:fw,RedisServerBinding:mw,RedisChannelBinding:dw,RedisMessageBinding:hw,RedisOperationBinding:yw,MercureServerBinding:bw,MercureChannelBinding:gw,MercureMessageBinding:vw,MercureOperationBinding:xw,ServerBindings:Dt,ChannelBindings:Lt,MessageBindings:Et,OperationBindings:At},bm={...gm,Root:n8,Tag:nm,TagList:X("Tag"),ServerMap:om,ExternalDocs:im,Server:a8,ServerVariable:sm,ServerVariablesMap:K("ServerVariable"),SecurityRequirement:s8,SecurityRequirementList:X("SecurityRequirement"),Info:c8,Contact:am,License:cm,ChannelMap:o8,Channel:i8,Parameter:l8,ParametersMap:K("Parameter"),Operation:d8,Schema:pm,MessageExample:um,SchemaProperties:fm,DiscriminatorMapping:dm,Discriminator:mm,Components:m8,NamedSchemas:K("Schema"),NamedMessages:K("Message"),NamedMessageTraits:K("MessageTrait"),NamedOperationTraits:K("OperationTrait"),NamedParameters:K("Parameter"),NamedSecuritySchemes:K("SecurityScheme"),NamedCorrelationIds:K("CorrelationId"),ImplicitFlow:h8,PasswordFlow:y8,ClientCredentials:g8,AuthorizationCode:b8,SecuritySchemeFlows:hm,SecurityScheme:v8,Message:u8,MessageBindings:Et,OperationBindings:At,OperationTrait:p8,OperationTraitList:X("OperationTrait"),MessageTrait:f8,MessageTraitList:X("MessageTrait"),MessageExampleList:X("MessageExample"),CorrelationId:lm,Dependencies:ym};var _8={properties:{asyncapi:{type:"string",enum:["3.0.0"]},info:"Info",id:{type:"string"},servers:"ServerMap",channels:"NamedChannels",components:"Components",operations:"NamedOperations",defaultContentType:{type:"string"}},required:["asyncapi","info"]},O8={properties:{address:{type:"string"},messages:"NamedMessages",title:{type:"string"},summary:{type:"string"},description:{type:"string"},servers:"ServerList",parameters:"ParametersMap",bindings:"ChannelBindings",tags:"TagList",externalDocs:"ExternalDocs"}},$8={properties:{host:{type:"string"},pathname:{type:"string"},protocol:{type:"string"},protocolVersion:{type:"string"},description:{type:"string"},variables:"ServerVariablesMap",security:"SecuritySchemeList",bindings:"ServerBindings",externalDocs:"ExternalDocs",tags:"TagList"},required:["host","protocol"]},P8={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",tags:"TagList",externalDocs:"ExternalDocs"},required:["title","version"]},E8={properties:{description:{type:"string"},enum:{type:"array",items:{type:"string"}},default:{type:"string"},examples:{type:"array",items:{type:"string"}},location:{type:"string"}}},A8={properties:{headers:"Schema",payload:e=>e&&(e!=null&&e.schemaFormat)?{properties:{schema:"Schema",schemaFormat:{type:"string"}},required:["schema","schemaFormat"]}:"Schema",correlationId:"CorrelationId",contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{}},C8={properties:{tags:"TagList",title:{type:"string"},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",security:"SecuritySchemeList",bindings:"OperationBindings"},required:[]},R8={properties:{headers:e=>typeof e=="function"||typeof e=="object"&&e?{properties:{schema:"Schema",schemaFormat:{type:"string"}}}:"Schema",correlationId:"CorrelationId",contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{}},T8={properties:{action:{type:"string",enum:["send","receive"]},channel:"Channel",title:{type:"string"},tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecuritySchemeList",bindings:"OperationBindings",traits:"OperationTraitList",messages:"MessageList",reply:"OperationReply"},required:["action","channel"]},N8={properties:{channel:"Channel",messages:"MessageList",address:"OperationReplyAddress"}},I8={properties:{location:{type:"string"},description:{type:"string"}},required:["location"]},k8={properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",replies:"NamedOperationReplies",replyAddresses:"NamedOperationRelyAddresses",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",tags:"NamedTags",externalDocs:"NamedExternalDocs",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"NamedChannels",operations:"NamedOperations",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"}},q8={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","availableScopes"]},j8={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"]},M8={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"]},L8={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","availableScopes"]},D8={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie","user","password"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string"},scopes:{type:"array",items:{type:"string"}}},required(e){switch(e==null?void 0:e.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e==null?void 0:e.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description","scopes"];case"openIdConnect":return["type","openIdConnectUrl","description","scopes"];default:return["type","description"]}},extensionsPrefix:"x-"},vm={...gm,CorrelationId:lm,SecuritySchemeFlows:hm,ServerVariable:sm,Contact:am,License:cm,MessageExample:um,Tag:nm,Dependencies:ym,Schema:pm,Discriminator:mm,DiscriminatorMapping:dm,SchemaProperties:fm,ServerMap:om,ExternalDocs:im,Root:_8,Channel:O8,Parameter:E8,Info:P8,Server:$8,MessageTrait:R8,Operation:T8,OperationReply:N8,OperationReplyAddress:I8,Components:k8,ImplicitFlow:q8,PasswordFlow:j8,ClientCredentials:M8,AuthorizationCode:L8,SecurityScheme:D8,Message:A8,OperationTrait:C8,ServerVariablesMap:K("ServerVariable"),NamedTags:K("Tag"),NamedExternalDocs:K("ExternalDocs"),NamedChannels:K("Channel"),ParametersMap:K("Parameter"),NamedOperations:K("Operation"),NamedOperationReplies:K("OperationReply"),NamedOperationRelyAddresses:K("OperationReplyAddress"),NamedSchemas:K("Schema"),NamedMessages:K("Message"),NamedMessageTraits:K("MessageTrait"),NamedOperationTraits:K("OperationTrait"),NamedParameters:K("Parameter"),NamedSecuritySchemes:K("SecurityScheme"),NamedCorrelationIds:K("CorrelationId"),ServerList:X("Server"),SecuritySchemeList:X("SecurityScheme"),MessageList:X("Message"),OperationTraitList:X("OperationTrait"),MessageTraitList:X("MessageTrait"),MessageExampleList:X("MessageExample"),TagList:X("Tag")};var F8={properties:{arazzo:{type:"string"},info:"Info",sourceDescriptions:"SourceDescriptions",workflows:"Workflows",components:"Components"},required:["arazzo","info","sourceDescriptions","workflows"],extensionsPrefix:"x-"},B8={properties:{},additionalProperties:"Parameter"},U8={properties:{},additionalProperties:"SuccessActionObject"},V8={properties:{},additionalProperties:"FailureActionObject"},z8={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},H8=K("Schema"),K8={properties:{title:{type:"string"},description:{type:"string"},summary:{type:"string"},version:{type:"string"}},required:["title","version"],extensionsPrefix:"x-"},G8={properties:{},items:e=>(e==null?void 0:e.type)==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},Y8={properties:{name:{type:"string"},type:{type:"string",enum:["openapi"]},url:{type:"string"},"x-serverUrl":{type:"string"}},required:["name","type","url"],extensionsPrefix:"x-"},W8={properties:{name:{type:"string"},type:{type:"string",enum:["arazzo"]},url:{type:"string"}},required:["name","type","url"],extensionsPrefix:"x-"},X8={properties:{reference:{type:"string"},value:{}},required:["reference"],extensionsPrefix:"x-"},J8={properties:{in:{type:"string",enum:["header","query","path","cookie"]},name:{type:"string"},value:{}},required:["name","value"],extensionsPrefix:"x-"},Q8={properties:{},items:e=>e!=null&&e.reference?"ReusableObject":"Parameter"},Z8={properties:{workflowId:{type:"string"},summary:{type:"string"},description:{type:"string"},parameters:"Parameters",dependsOn:{type:"array",items:{type:"string"}},inputs:"Schema",outputs:"Outputs",steps:"Steps",successActions:"OnSuccessActionList",failureActions:"OnFailureActionList","x-security":"ExtendedSecurityList"},required:["workflowId","steps"],extensionsPrefix:"x-"},e4=X("Workflow"),t4=X("Step"),r4={properties:{stepId:{type:"string"},description:{type:"string"},operationId:{type:"string"},operationPath:{type:"string"},workflowId:{type:"string"},parameters:"Parameters",successCriteria:X("CriterionObject"),onSuccess:"OnSuccessActionList",onFailure:"OnFailureActionList",outputs:"Outputs","x-operation":"ExtendedOperation","x-security":"ExtendedSecurityList",requestBody:"RequestBody"},required:["stepId"],requiredOneOf:["x-operation","operationId","operationPath","workflowId"],extensionsPrefix:"x-"},n4={properties:{},additionalProperties:{type:"string"}},i4={properties:{contentType:{type:"string"},payload:{},replacements:X("Replacement")},required:["payload"],extensionsPrefix:"x-"},o4={properties:{target:{type:"string"},value:{}},required:["target","value"],extensionsPrefix:"x-"},s4={properties:{schemeName:{type:"string"},values:{},scheme:"SecurityScheme"},required:["values"],requiredOneOf:["schemeName","scheme"]},a4={properties:{url:{type:"string"},method:{enum:["get","post","put","delete","patch","head","options","trace","connect","query","GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","QUERY"]}},required:["url","method"]},c4={properties:{condition:{type:"string"},context:{type:"string"},type:e=>{if(e)return typeof e=="string"?{enum:["regex","jsonpath","simple","xpath"]}:(e==null?void 0:e.type)==="jsonpath"?"JSONPathCriterion":"XPathCriterion"}},required:["condition"]},l4={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},u4={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},p4={properties:{name:{type:"string"},type:{type:"string",enum:["goto","end"]},stepId:{type:"string"},workflowId:{type:"string"},criteria:X("CriterionObject")},required:["type","name"]},f4={properties:{},items:e=>e!=null&&e.type&&(e!=null&&e.name)?"SuccessActionObject":"ReusableObject"},d4={properties:{name:{type:"string"},type:{type:"string",enum:["goto","retry","end"]},workflowId:{type:"string"},stepId:{type:"string"},retryAfter:{type:"number",minimum:0},retryLimit:{type:"number",minimum:0},criteria:X("CriterionObject")},required:["type","name"]},m4={properties:{},items:e=>e!=null&&e.type&&(e!=null&&e.name)?"FailureActionObject":"ReusableObject"},xm={Root:F8,Info:K8,SourceDescriptions:G8,OpenAPISourceDescription:Y8,ArazzoSourceDescription:W8,Parameters:Q8,Parameter:J8,ReusableObject:X8,Workflows:e4,Workflow:Z8,Steps:t4,Step:r4,RequestBody:i4,Replacement:o4,ExtendedOperation:a4,ExtendedSecurityList:X("ExtendedSecurity"),ExtendedSecurity:s4,Outputs:n4,CriterionObject:c4,XPathCriterion:u4,JSONPathCriterion:l4,SuccessActionObject:p4,OnSuccessActionList:f4,FailureActionObject:d4,OnFailureActionList:m4,Schema:lt.Schema,NamedSchemas:K("Schema"),ExternalDocs:lt.ExternalDocs,DiscriminatorMapping:lt.DiscriminatorMapping,Discriminator:lt.Discriminator,DependentRequired:lt.DependentRequired,SchemaProperties:lt.SchemaProperties,PatternProperties:lt.SchemaProperties,Components:z8,NamedInputs:H8,NamedParameters:B8,NamedSuccessActions:U8,NamedFailureActions:V8,Xml:lt.Xml,SecurityScheme:lt.SecurityScheme,OAuth2Flows:lt.OAuth2Flows,ImplicitFlow:lt.ImplicitFlow,PasswordFlow:lt.PasswordFlow,ClientCredentials:lt.ClientCredentials,AuthorizationCode:lt.AuthorizationCode,DeviceAuthorization:lt.DeviceAuthorization};var h4={properties:{overlay:{type:"string"},info:"Info",extends:{type:"string"},actions:"Actions"},required:["overlay","info","actions"],extensionsPrefix:"x-"},y4={properties:{title:{type:"string"},version:{type:"string"}},required:["title","version"],extensionsPrefix:"x-"},g4=X("Action"),b4={properties:{target:{type:"string"},description:{type:"string"},update:{},remove:{type:"boolean"}},required:["target"],extensionsPrefix:"x-"},wm={Root:h4,Info:y4,Actions:g4,Action:b4};var qO=Ee(require("path"),1),Hy=Ee(Im(),1);var Xw=["oas2","oas3_0","oas3_1","oas3_2","async2","async3","arazzo1","overlay1"],LL={oas2:tm,oas3_0:Kn,oas3_1:Le,oas3_2:lt,async2:bm,async3:vm,arazzo1:xm,overlay1:wm};function Hi(e){return LL[e]}function Jw(e){return e.includes("/")}function Qw(e,t){let r={...e};return t.forEach(n=>{delete r[n]}),r}var IO=Ee(zy(),1);var jF=new IO.default({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0});function NO(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(i=>jF.validate(i,r));return n===-1&&(n=0),t[n]}}function os(e,t,r){var n;if(!t||typeof t=="boolean")throw new Error(`Unexpected schema in ${e}.`);if(t instanceof Array)throw new Error(`Unexpected array schema in ${e}. Try using oneOf instead.`);if(t.type==="null")throw new Error(`Unexpected null schema type in ${e} schema.`);if(t.type instanceof Array)throw new Error(`Unexpected array schema type in ${e} schema. Try using oneOf instead.`);if(t.type==="string"||t.type==="number"||t.type==="integer"||t.type==="boolean"){let{default:i,format:o,...s}=t;return s}if(t.type==="object"&&!t.properties&&!t.oneOf){if(t.additionalProperties===void 0||t.additionalProperties===!0)return{type:"object"};if(t.additionalProperties===!1)return{type:"object",properties:{}}}if(t.allOf)throw new Error(`Unexpected allOf in ${e}.`);if(t.anyOf)throw new Error(`Unexpected anyOf in ${e}.`);if(W(t.properties)||W(t.additionalProperties)||W(t.items)&&(W(t.items.properties)||W(t.items.additionalProperties)||t.items.oneOf))return MF(e,t,r);if(t.oneOf)if(t.discriminator){let i=(n=t.discriminator)==null?void 0:n.propertyName;if(!i)throw new Error(`Unexpected discriminator without a propertyName in ${e}.`);let o=t.oneOf.map((s,a)=>{var u;if(typeof s=="boolean")throw new Error(`Unexpected boolean schema in ${e} at position ${a} in oneOf.`);let c=(u=s==null?void 0:s.properties)==null?void 0:u[i];if(!c||typeof c=="boolean")throw new Error(`Unexpected property '${c}' schema in ${e} at position ${a} in oneOf.`);let l=c.const;return os(l,s,r)});return(s,a)=>{if(W(s)){let c=s[i];if(typeof c=="string"&&r[c])return c}return NO(t.oneOf,o)(s,a)}}else{let i=t.oneOf.map((o,s)=>os(e+"_"+s,o,r));return NO(t.oneOf,i)}return t}function MF(e,t,r){if(!t||typeof t=="boolean")throw new Error(`Unexpected schema in ${e}.`);if(t instanceof Array)throw new Error(`Unexpected array schema in ${e}. Try using oneOf instead.`);if(t.type==="null")throw new Error(`Unexpected null schema type in ${e} schema.`);if(t.type instanceof Array)throw new Error(`Unexpected array schema type in ${e} schema. Try using oneOf instead.`);let n={};for(let[a,c]of Object.entries(t.properties||{}))n[a]=os(e+"."+a,c,r);let i;W(t.additionalProperties)&&(i=os(e+"_additionalProperties",t.additionalProperties,r)),t.additionalProperties===!0&&(i={});let o;W(t.items)&&(W(t.items.properties)||W(t.items.additionalProperties)||t.items.oneOf)&&(o=os(e+"_items",t.items,r));let s=t.required;return t.oneOf&&t.oneOf.every(a=>!!a.required)&&(s=a=>{let c=t.oneOf.map(u=>[...t.required||[],...u.required]),l=c.findIndex(u=>u.every(p=>a[p]!==void 0));return l===-1&&(l=0),c[l]}),r[e]={properties:n,additionalProperties:i,items:o,required:s},e}function kO(e,t){let r={};return os(e,t,r),r}var LF=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-enum-type-mismatch","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","spec-strict-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","request-mime-type","response-contains-property","response-mime-type","no-duplicated-tag-names"],DF=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-enum-type-mismatch","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","spec-strict-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","component-name-unique","no-empty-servers","no-example-value-and-externalValue","no-invalid-media-type-examples","no-server-example.com","no-server-trailing-slash","no-server-variables-empty-enum","no-undefined-server-variable","no-unused-components","operation-4xx-problem-details-rfc7807","request-mime-type","response-contains-property","response-mime-type","spec-components-invalid-map-name","array-parameter-serialization","no-duplicated-tag-names","nullable-type-sibling","spec-no-invalid-tag-parents","spec-no-invalid-encoding-combinations","spec-discriminator-defaultMapping","spec-example-values"],FF=["info-contact","info-license-strict","operation-operationId","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-enum-type-mismatch","no-schema-type-mismatch"],BF=["info-contact","info-license-strict","operation-operationId","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-enum-type-mismatch","no-schema-type-mismatch"],UF=["sourceDescription-type","workflowId-unique","stepId-unique","sourceDescription-name-unique","sourceDescriptions-not-empty","workflow-dependsOn","parameters-unique","step-onSuccess-unique","step-onFailure-unique","respect-supported-versions","requestBody-replacements-unique","no-criteria-xpath","criteria-unique","no-x-security-scheme-name-without-openapi","x-security-scheme-required-values","no-x-security-scheme-name-in-workflow","no-required-schema-properties-undefined","no-enum-type-mismatch","no-schema-type-mismatch"],VF=["info-contact"],zF=["struct","no-unresolved-refs"],HF=[...LF,...DF,...FF,...BF,...UF,...VF,...zF],jO={extends:{name:"ConfigGovernanceList",properties:{},items:e=>typeof e=="string"&&!Je(e)&&!qO.default.extname(e)?{type:"string"}:{...Ya,directResolveAs:{name:"ConfigGovernance",...Ya}}},plugins:{type:"array",items:{type:"string"}},rules:"Rules",oas2Rules:"Rules",oas3_0Rules:"Rules",oas3_1Rules:"Rules",oas3_2Rules:"Rules",async2Rules:"Rules",async3Rules:"Rules",arazzo1Rules:"Rules",overlay1Rules:"Rules",preprocessors:{type:"object"},oas2Preprocessors:{type:"object"},oas3_0Preprocessors:{type:"object"},oas3_1Preprocessors:{type:"object"},oas3_2Preprocessors:{type:"object"},async2Preprocessors:{type:"object"},async3Preprocessors:{type:"object"},arazzo1Preprocessors:{type:"object"},overlay1Preprocessors:{type:"object"},decorators:{type:"object"},oas2Decorators:{type:"object"},oas3_0Decorators:{type:"object"},oas3_1Decorators:{type:"object"},oas3_2Decorators:{type:"object"},async2Decorators:{type:"object"},async3Decorators:{type:"object"},arazzo1Decorators:{type:"object"},overlay1Decorators:{type:"object"}},Ya={properties:jO},KF=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...Ya.properties,apis:"ConfigApis",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),GF={properties:{},additionalProperties:"ConfigApisProperties"},YF=e=>{var t;return{...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...(t=e["rootRedoclyConfigSchema.apis_additionalProperties"])==null?void 0:t.properties,...Qw(Ya.properties,["plugins"])}}},WF={properties:{headers:{type:"array",items:{type:"string"}}}},XF={properties:{},additionalProperties:(e,t)=>{if(t.startsWith("rule/"))return typeof e=="string"?{enum:["error","warn","off"]}:"Assert";if(HF.includes(t)||Jw(t))return typeof e=="string"?{enum:["error","warn","off"]}:"ObjectRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},JF={properties:{severity:{enum:["error","warn","off"]}},additionalProperties:{},required:["severity"]},QF={properties:{properties:K("Schema")},additionalProperties:{}};function ZF(e){return{properties:{type:{enum:[...new Set(["any",...e,"SpecExtension"])]},property:t=>Array.isArray(t)?{type:"array",items:{type:"string"}}:t===null?null:{type:"string"},filterInParentKeys:{type:"array",items:{type:"string"}},filterOutParentKeys:{type:"array",items:{type:"string"}},matchParentKeys:{type:"string"}},required:["type"]}}function eB(e){var t;return{...e["rootRedoclyConfigSchema.scorecard.levels_items"],properties:{...(t=e["rootRedoclyConfigSchema.scorecard.levels_items"])==null?void 0:t.properties,...jO}}}var tB={properties:{enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},notPattern:{type:"string"},casing:{enum:["camelCase","kebab-case","snake_case","PascalCase","MACRO_CASE","COBOL-CASE","flatcase"]},mutuallyExclusive:{type:"array",items:{type:"string"}},mutuallyRequired:{type:"array",items:{type:"string"}},required:{type:"array",items:{type:"string"}},requireAny:{type:"array",items:{type:"string"}},disallowed:{type:"array",items:{type:"string"}},defined:{type:"boolean"},nonEmpty:{type:"boolean"},minLength:{type:"integer"},maxLength:{type:"integer"},ref:e=>typeof e=="string"?{type:"string"}:{type:"boolean"},const:e=>{if(typeof e=="string")return{type:"string"};if(typeof e=="number")return{type:"number"};if(typeof e=="boolean")return{type:"boolean"}}},additionalProperties:(e,t)=>{if(/^\w+\/\w+$/.test(t))return{}}},rB={properties:{subject:"AssertionDefinitionSubject",assertions:"AssertionDefinitionAssertions"},required:["subject","assertions"]},nB={properties:{subject:"AssertionDefinitionSubject",assertions:"AssertionDefinitionAssertions",where:X("AssertDefinition"),message:{type:"string"},suggest:{type:"array",items:{type:"string"}},severity:{enum:["error","warn","off"]}},required:["subject","assertions"]};function Ky(e,t){let r=Xw.flatMap(i=>{let o=t?t.extendTypes(Hi(i),i):Hi(i);return Object.keys(o)}),n=kO("rootRedoclyConfigSchema",e);return{...iB,ConfigRoot:KF(n),ConfigApisProperties:YF(n),AssertionDefinitionSubject:ZF(r),...n,"rootRedoclyConfigSchema.scorecard.levels_items":eB(n)}}var iB={Assert:nB,ConfigApis:GF,ConfigGovernance:Ya,ConfigHTTP:WF,AssertDefinition:rB,ObjectRule:JF,Schema:QF,Rules:XF,AssertionDefinitionAssertions:tB};delete Hy.rootRedoclyConfigSchema.properties.theme;var MO=Ky(Hy.rootRedoclyConfigSchema),ei=Lo(MO);var Fu=Ee(require("fs"),1),lr=Ee(require("path"),1);function ZO(e){return typeof e>"u"||e===null}function oB(e){return typeof e=="object"&&e!==null}function sB(e){return Array.isArray(e)?e:ZO(e)?[]:[e]}function aB(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=t[i];return e}function cB(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function lB(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var uB=ZO,pB=oB,fB=sB,dB=cB,mB=lB,hB=aB,pt={isNothing:uB,isObject:pB,toArray:fB,repeat:dB,isNegativeZero:mB,extend:hB};function e$(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
206
+ `);let A=new a("!xml"),I=A,C="",$="";for(let L=0;L<R.length;L++)if(R[L]==="<")if(R[L+1]==="/"){let k=S(R,">",L,"Closing Tag is not closed."),q=R.substring(L+2,k).trim();if(this.options.removeNSPrefix){let ne=q.indexOf(":");ne!==-1&&(q=q.substr(ne+1))}this.options.transformTagName&&(q=this.options.transformTagName(q)),I&&(C=this.saveTextToParentTag(C,I,$));let V=$.substring($.lastIndexOf(".")+1);if(q&&this.options.unpairedTags.indexOf(q)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${q}>`);let z=0;V&&this.options.unpairedTags.indexOf(V)!==-1?(z=$.lastIndexOf(".",$.lastIndexOf(".")-1),this.tagsNodeStack.pop()):z=$.lastIndexOf("."),$=$.substring(0,z),I=this.tagsNodeStack.pop(),C="",L=k}else if(R[L+1]==="?"){let k=O(R,L,!1,"?>");if(!k)throw new Error("Pi Tag is not closed.");if(C=this.saveTextToParentTag(C,I,$),!(this.options.ignoreDeclaration&&k.tagName==="?xml"||this.options.ignorePiTags)){let q=new a(k.tagName);q.add(this.options.textNodeName,""),k.tagName!==k.tagExp&&k.attrExpPresent&&(q[":@"]=this.buildAttributesMap(k.tagExp,$,k.tagName)),this.addChild(I,q,$)}L=k.closeIndex+1}else if(R.substr(L+1,3)==="!--"){let k=S(R,"-->",L+4,"Comment is not closed.");if(this.options.commentPropName){let q=R.substring(L+4,k-2);C=this.saveTextToParentTag(C,I,$),I.add(this.options.commentPropName,[{[this.options.textNodeName]:q}])}L=k}else if(R.substr(L+1,2)==="!D"){let k=c(R,L);this.docTypeEntities=k.entities,L=k.i}else if(R.substr(L+1,2)==="!["){let k=S(R,"]]>",L,"CDATA is not closed.")-2,q=R.substring(L+9,k);C=this.saveTextToParentTag(C,I,$);let V=this.parseTextData(q,I.tagname,$,!0,!1,!0,!0);V==null&&(V=""),this.options.cdataPropName?I.add(this.options.cdataPropName,[{[this.options.textNodeName]:q}]):I.add(this.options.textNodeName,V),L=k+2}else{let k=O(R,L,this.options.removeNSPrefix),q=k.tagName,V=k.rawTagName,z=k.tagExp,ne=k.attrExpPresent,fe=k.closeIndex;this.options.transformTagName&&(q=this.options.transformTagName(q)),I&&C&&I.tagname!=="!xml"&&(C=this.saveTextToParentTag(C,I,$,!1));let Ae=I;if(Ae&&this.options.unpairedTags.indexOf(Ae.tagname)!==-1&&(I=this.tagsNodeStack.pop(),$=$.substring(0,$.lastIndexOf("."))),q!==A.tagname&&($+=$?"."+q:q),this.isItStopNode(this.options.stopNodes,$,q)){let H="";if(z.length>0&&z.lastIndexOf("/")===z.length-1)q[q.length-1]==="/"?(q=q.substr(0,q.length-1),$=$.substr(0,$.length-1),z=q):z=z.substr(0,z.length-1),L=k.closeIndex;else if(this.options.unpairedTags.indexOf(q)!==-1)L=k.closeIndex;else{let le=this.readStopNodeData(R,V,fe+1);if(!le)throw new Error(`Unexpected end of ${V}`);L=le.i,H=le.tagContent}let Y=new a(q);q!==z&&ne&&(Y[":@"]=this.buildAttributesMap(z,$,q)),H&&(H=this.parseTextData(H,q,$,!0,ne,!0,!0)),$=$.substr(0,$.lastIndexOf(".")),Y.add(this.options.textNodeName,H),this.addChild(I,Y,$)}else{if(z.length>0&&z.lastIndexOf("/")===z.length-1){q[q.length-1]==="/"?(q=q.substr(0,q.length-1),$=$.substr(0,$.length-1),z=q):z=z.substr(0,z.length-1),this.options.transformTagName&&(q=this.options.transformTagName(q));let H=new a(q);q!==z&&ne&&(H[":@"]=this.buildAttributesMap(z,$,q)),this.addChild(I,H,$),$=$.substr(0,$.lastIndexOf("."))}else{let H=new a(q);this.tagsNodeStack.push(I),q!==z&&ne&&(H[":@"]=this.buildAttributesMap(z,$,q)),this.addChild(I,H,$),I=H}C="",L=fe}}else C+=R[L];return A.child};function g(R,A,I){let C=this.options.updateTag(A.tagname,I,A[":@"]);C===!1||(typeof C=="string"&&(A.tagname=C),R.addChild(A))}let v=function(R){if(this.options.processEntities){for(let A in this.docTypeEntities){let I=this.docTypeEntities[A];R=R.replace(I.regx,I.val)}for(let A in this.lastEntities){let I=this.lastEntities[A];R=R.replace(I.regex,I.val)}if(this.options.htmlEntities)for(let A in this.htmlEntities){let I=this.htmlEntities[A];R=R.replace(I.regex,I.val)}R=R.replace(this.ampEntity.regex,this.ampEntity.val)}return R};function _(R,A,I,C){return R&&(C===void 0&&(C=Object.keys(A.child).length===0),R=this.parseTextData(R,A.tagname,I,!1,A[":@"]?Object.keys(A[":@"]).length!==0:!1,C),R!==void 0&&R!==""&&A.add(this.options.textNodeName,R),R=""),R}function w(R,A,I){let C="*."+I;for(let $ in R){let L=R[$];if(C===L||A===L)return!0}return!1}function N(R,A,I=">"){let C,$="";for(let L=A;L<R.length;L++){let D=R[L];if(C)D===C&&(C="");else if(D==='"'||D==="'")C=D;else if(D===I[0])if(I[1]){if(R[L+1]===I[1])return{data:$,index:L}}else return{data:$,index:L};else D===" "&&(D=" ");$+=D}}function S(R,A,I,C){let $=R.indexOf(A,I);if($===-1)throw new Error(C);return $+A.length-1}function O(R,A,I,C=">"){let $=N(R,A+1,C);if(!$)return;let L=$.data,D=$.index,k=L.search(/\s/),q=L,V=!0;k!==-1&&(q=L.substring(0,k),L=L.substring(k+1).trimStart());let z=q;if(I){let ne=q.indexOf(":");ne!==-1&&(q=q.substr(ne+1),V=q!==$.data.substr(ne+1))}return{tagName:q,tagExp:L,closeIndex:D,attrExpPresent:V,rawTagName:z}}function P(R,A,I){let C=I,$=1;for(;I<R.length;I++)if(R[I]==="<")if(R[I+1]==="/"){let L=S(R,">",I,`${A} is not closed`);if(R.substring(I+2,L).trim()===A&&($--,$===0))return{tagContent:R.substring(C,I),i:L};I=L}else if(R[I+1]==="?")I=S(R,"?>",I+1,"StopNode is not closed.");else if(R.substr(I+1,3)==="!--")I=S(R,"-->",I+3,"StopNode is not closed.");else if(R.substr(I+1,2)==="![")I=S(R,"]]>",I,"StopNode is not closed.")-2;else{let L=O(R,I,">");L&&((L&&L.tagName)===A&&L.tagExp[L.tagExp.length-1]!=="/"&&$++,I=L.closeIndex)}}function E(R,A,I){if(A&&typeof R=="string"){let C=R.trim();return C==="true"?!0:C==="false"?!1:l(R,I)}else return s.isExist(R)?R:""}i.exports=p},{"../ignoreAttributes":2,"../util":3,"./DocTypeReader":7,"./xmlNode":12,strnum:15}],10:[function(n,i,o){let{buildOptions:s}=n("./OptionsBuilder"),a=n("./OrderedObjParser"),{prettify:c}=n("./node2json"),l=n("../validator");class u{constructor(m){this.externalEntities={},this.options=s(m)}parse(m,d){if(typeof m!="string")if(m.toString)m=m.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(d){d===!0&&(d={});let y=l.validate(m,d);if(y!==!0)throw Error(`${y.err.msg}:${y.err.line}:${y.err.col}`)}let f=new a(this.options);f.addExternalEntities(this.externalEntities);let h=f.parseXml(m);return this.options.preserveOrder||h===void 0?h:c(h,this.options)}addEntity(m,d){if(d.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(m.indexOf("&")!==-1||m.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(d==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[m]=d}}i.exports=u},{"../validator":4,"./OptionsBuilder":8,"./OrderedObjParser":9,"./node2json":11}],11:[function(n,i,o){"use strict";function s(p,m){return a(p,m)}function a(p,m,d){let f,h={};for(let y=0;y<p.length;y++){let b=p[y],g=c(b),v="";if(d===void 0?v=g:v=d+"."+g,g===m.textNodeName)f===void 0?f=b[g]:f+=""+b[g];else{if(g===void 0)continue;if(b[g]){let _=a(b[g],m,v),w=u(_,m);b[":@"]?l(_,b[":@"],v,m):Object.keys(_).length===1&&_[m.textNodeName]!==void 0&&!m.alwaysCreateTextNode?_=_[m.textNodeName]:Object.keys(_).length===0&&(m.alwaysCreateTextNode?_[m.textNodeName]="":_=""),h[g]!==void 0&&h.hasOwnProperty(g)?(Array.isArray(h[g])||(h[g]=[h[g]]),h[g].push(_)):m.isArray(g,v,w)?h[g]=[_]:h[g]=_}}}return typeof f=="string"?f.length>0&&(h[m.textNodeName]=f):f!==void 0&&(h[m.textNodeName]=f),h}function c(p){let m=Object.keys(p);for(let d=0;d<m.length;d++){let f=m[d];if(f!==":@")return f}}function l(p,m,d,f){if(m){let h=Object.keys(m),y=h.length;for(let b=0;b<y;b++){let g=h[b];f.isArray(g,d+"."+g,!0,!0)?p[g]=[m[g]]:p[g]=m[g]}}}function u(p,m){let{textNodeName:d}=m,f=Object.keys(p).length;return!!(f===0||f===1&&(p[d]||typeof p[d]=="boolean"||p[d]===0))}o.prettify=s},{}],12:[function(n,i,o){"use strict";class s{constructor(c){this.tagname=c,this.child=[],this[":@"]={}}add(c,l){c==="__proto__"&&(c="#__proto__"),this.child.push({[c]:l})}addChild(c){c.tagname==="__proto__"&&(c.tagname="#__proto__"),c[":@"]&&Object.keys(c[":@"]).length>0?this.child.push({[c.tagname]:c.child,":@":c[":@"]}):this.child.push({[c.tagname]:c.child})}}i.exports=s},{}],13:[function(n,i,o){var s=Object.prototype.hasOwnProperty,a=Object.prototype.toString;i.exports=function(l,u,p){if(a.call(u)!=="[object Function]")throw new TypeError("iterator must be a function");var m=l.length;if(m===+m)for(var d=0;d<m;d++)u.call(p,l[d],d,l);else for(var f in l)s.call(l,f)&&u.call(p,l[f],f,l)}},{}],14:[function(n,i,o){"use strict";var s=n("foreach");i.exports=a;function a(c,l,u){if(arguments.length===3)return a.set(c,l,u);if(arguments.length===2)return a.get(c,l);var p=a.bind(a,c);for(var m in a)a.hasOwnProperty(m)&&(p[m]=a[m].bind(p,c));return p}a.get=function(l,u){for(var p=Array.isArray(u)?u:a.parse(u),m=0;m<p.length;++m){var d=p[m];if(!(typeof l=="object"&&d in l))throw new Error("Invalid reference token: "+d);l=l[d]}return l},a.set=function(l,u,p){var m=Array.isArray(u)?u:a.parse(u),d=m[0];if(m.length===0)throw Error("Can not set the root object");for(var f=0;f<m.length-1;++f){var h=m[f];typeof h!="string"&&typeof h!="number"&&(h=String(h)),!(h==="__proto__"||h==="constructor"||h==="prototype")&&(h==="-"&&Array.isArray(l)&&(h=l.length),d=m[f+1],h in l||(d.match(/^(\d+|-)$/)?l[h]=[]:l[h]={}),l=l[h])}return d==="-"&&Array.isArray(l)&&(d=l.length),l[d]=p,this},a.remove=function(c,l){var u=Array.isArray(l)?l:a.parse(l),p=u[u.length-1];if(p===void 0)throw new Error('Invalid JSON pointer for remove: "'+l+'"');var m=a.get(c,u.slice(0,-1));if(Array.isArray(m)){var d=+p;if(p===""&&isNaN(d))throw new Error('Invalid array index: "'+p+'"');Array.prototype.splice.call(m,d,1)}else delete m[p]},a.dict=function(l,u){var p={};return a.walk(l,function(m,d){p[d]=m},u),p},a.walk=function(l,u,p){var m=[];p=p||function(d){var f=Object.prototype.toString.call(d);return f==="[object Object]"||f==="[object Array]"},(function d(f){s(f,function(h,y){m.push(String(y)),p(h)?d(h):u(h,a.compile(m)),m.pop()})})(l)},a.has=function(l,u){try{a.get(l,u)}catch{return!1}return!0},a.escape=function(l){return l.toString().replace(/~/g,"~0").replace(/\//g,"~1")},a.unescape=function(l){return l.replace(/~1/g,"/").replace(/~0/g,"~")},a.parse=function(l){if(l==="")return[];if(l.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+l);return l.substring(1).split(/\//).map(a.unescape)},a.compile=function(l){return l.length===0?"":"/"+l.map(a.escape).join("/")}},{foreach:13}],15:[function(n,i,o){let s=/^[-+]?0x[a-fA-F0-9]+$/,a=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);let c={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function l(p,m={}){if(m=Object.assign({},c,m),!p||typeof p!="string")return p;let d=p.trim();if(m.skipLike!==void 0&&m.skipLike.test(d))return p;if(m.hex&&s.test(d))return Number.parseInt(d,16);{let f=a.exec(d);if(f){let h=f[1],y=f[2],b=u(f[3]),g=f[4]||f[6];if(!m.leadingZeros&&y.length>0&&h&&d[2]!==".")return p;if(!m.leadingZeros&&y.length>0&&!h&&d[1]!==".")return p;{let v=Number(d),_=""+v;return _.search(/[eE]/)!==-1||g?m.eNotation?v:p:d.indexOf(".")!==-1?_==="0"&&b===""||_===b||h&&_==="-"+b?v:p:y?b===_||h+b===_?v:p:d===_||d===h+_?v:p}}else return p}}function u(p){return p&&p.indexOf(".")!==-1&&(p=p.replace(/0+$/,""),p==="."?p="0":p[0]==="."?p="0"+p:p[p.length-1]==="."&&(p=p.substr(0,p.length-1))),p}i.exports=l},{}],16:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.allOfSample=c;var s=n("./traverse"),a=n("./utils");function c(l,u,p,m,d){let f=(0,s.traverse)(l,p,m),h=[];for(let y of u){let{type:b,readOnly:g,writeOnly:v,value:_}=(0,s.traverse)({type:f.type,...y},p,m,{...d,isAllOfChild:!0});f.type&&b&&b!==f.type&&(console.warn("allOf: schemas with different types can't be merged"),f.type=b),f.type=f.type||b,f.readOnly=f.readOnly||g,f.writeOnly=f.writeOnly||v,_!=null&&h.push(_)}if(f.type==="object"){f.value=(0,a.mergeDeep)(f.value||{},...h.filter(y=>typeof y=="object"));for(let y in f.value)f.value[y]===a.SKIP_SYMBOL&&delete f.value[y];return f}else{f.type==="array"&&(p.quiet||console.warn('OpenAPI Sampler: found allOf with "array" type. Result may be incorrect'));let y=h[h.length-1];return f.value=y!=null?y:f.value,f}}},{"./traverse":26,"./utils":27}],17:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.inferType=a;let s={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object",patternProperties:"object",dependencies:"object"};function a(c){if(c.type!==void 0)return Array.isArray(c.type)?c.type.length===0?null:c.type[0]:c.type;let l=Object.keys(s);for(var u=0;u<l.length;u++){let p=l[u],m=s[p];if(c[p]!==void 0)return m}return null}},{}],18:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o._registerSampler=f,o._samplers=void 0,Object.defineProperty(o,"inferType",{enumerable:!0,get:function(){return l.inferType}}),o.sample=d;var s=n("./traverse"),a=n("./samplers/index"),c=n("fast-xml-parser"),l=n("./infer"),u=o._samplers={};let p={skipReadOnly:!1,maxSampleDepth:15};function m(h,y){var g;if(!h)throw new Error("Unknown format output for building XML.");return(Array.isArray(h)||Object.keys(h).length>1)&&(h={[((g=y==null?void 0:y.xml)==null?void 0:g.name)||"root"]:h}),new c.XMLBuilder({ignoreAttributes:!1,format:!0,attributeNamePrefix:"$",textNodeName:"#text"}).build(h)}function d(h,y,b){let g=Object.assign({},p,y);(0,s.clearCache)();let v=(0,s.traverse)(h,g,b).value;return(g==null?void 0:g.format)==="xml"?m(v,h):v}function f(h,y){u[h]=y}f("array",a.sampleArray),f("boolean",a.sampleBoolean),f("integer",a.sampleNumber),f("number",a.sampleNumber),f("object",a.sampleObject),f("string",a.sampleString)},{"./infer":17,"./samplers/index":21,"./traverse":26,"fast-xml-parser":1}],19:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sampleArray=c;var s=n("../traverse"),a=n("../utils");function c(l){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=arguments.length>2?arguments[2]:void 0,m=arguments.length>3?arguments[3]:void 0,d=m&&m.depth||1,f=Math.min(l.maxItems!=null?l.maxItems:1/0,l.minItems||1),h=l.prefixItems||l.items||l.contains;Array.isArray(h)&&(f=Math.max(f,h.length));let y=g=>Array.isArray(h)?h[g]||{}:h||{},b=[];if(!h)return b;for(let g=0;g<f;g++){let v=y(g),{value:_}=(0,s.traverse)(v,u,p,{depth:d+1});if((u==null?void 0:u.format)==="xml"){let{value:w,propertyName:N}=(0,a.applyXMLAttributes)({value:_},v,m);N?(b!=null&&b[N]||(b={...b,[N]:[]}),b[N].push(w)):b={...b,...w}}else b.push(_)}if((u==null?void 0:u.format)==="xml"&&d===1){let{value:g,propertyName:v}=(0,a.applyXMLAttributes)({value:null},l,m);v&&(g?b=Array.isArray(b)?{[v]:{...g,...b.map(_=>({"#text":{..._}}))}}:{[v]:{...b,...g}}:b={[v]:b})}return b}},{"../traverse":26,"../utils":27}],20:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sampleBoolean=s;function s(a){return!0}},{}],21:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"sampleArray",{enumerable:!0,get:function(){return s.sampleArray}}),Object.defineProperty(o,"sampleBoolean",{enumerable:!0,get:function(){return a.sampleBoolean}}),Object.defineProperty(o,"sampleNumber",{enumerable:!0,get:function(){return c.sampleNumber}}),Object.defineProperty(o,"sampleObject",{enumerable:!0,get:function(){return l.sampleObject}}),Object.defineProperty(o,"sampleString",{enumerable:!0,get:function(){return u.sampleString}});var s=n("./array"),a=n("./boolean"),c=n("./number"),l=n("./object"),u=n("./string")},{"./array":19,"./boolean":20,"./number":22,"./object":23,"./string":25}],22:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sampleNumber=s;function s(a){let c=0;if(a.type==="number"&&(a.format==="float"||a.format==="double")&&(c=.1),typeof a.exclusiveMinimum=="boolean"||typeof a.exclusiveMaximum=="boolean"){if(a.maximum&&a.minimum)return c=a.exclusiveMinimum?Math.floor(a.minimum)+1:a.minimum,(a.exclusiveMaximum&&c>=a.maximum||!a.exclusiveMaximum&&c>a.maximum)&&(c=(a.maximum+a.minimum)/2),c;if(a.minimum)return a.exclusiveMinimum?Math.floor(a.minimum)+1:a.minimum;if(a.maximum)return a.exclusiveMaximum?a.maximum>0?0:Math.floor(a.maximum)-1:a.maximum>0?0:a.maximum}else{if(a.minimum)return a.minimum;a.exclusiveMinimum?(c=Math.floor(a.exclusiveMinimum)+1,c===a.exclusiveMaximum&&(c=(c+Math.floor(a.exclusiveMaximum)-1)/2)):a.exclusiveMaximum?c=Math.floor(a.exclusiveMaximum)-1:a.maximum&&(c=a.maximum)}return c}},{}],23:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sampleObject=c;var s=n("../traverse"),a=n("../utils");function c(l){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=arguments.length>2?arguments[2]:void 0,m=arguments.length>3?arguments[3]:void 0,d={},f=m&&m.depth||1;if(l&&typeof l.properties=="object"){let h=Array.isArray(l.required)?l.required:[],y={};for(let b of h)y[b]=!0;Object.keys(l.properties).forEach(b=>{if(u.skipNonRequired&&!y.hasOwnProperty(b))return;let g=(0,s.traverse)(l.properties[b],u,p,{propertyName:b,depth:f+1});if(u.skipReadOnly&&g.readOnly){m!=null&&m.isAllOfChild&&(d[b]=a.SKIP_SYMBOL);return}if(u.skipWriteOnly&&g.writeOnly){m!=null&&m.isAllOfChild&&(d[b]=a.SKIP_SYMBOL);return}if((u==null?void 0:u.format)==="xml"){let{propertyName:v,value:_}=(0,a.applyXMLAttributes)(g,l.properties[b],{propertyName:b});v?d[v]=_:d={...d,..._}}else d[b]=g.value})}if(l&&typeof l.additionalProperties=="object"){let h=l.additionalProperties["x-additionalPropertiesName"]||"property";d[`${String(h)}1`]=(0,s.traverse)(l.additionalProperties,u,p,{depth:f+1}).value,d[`${String(h)}2`]=(0,s.traverse)(l.additionalProperties,u,p,{depth:f+1}).value}if(l&&typeof l.properties=="object"&&l.maxProperties!==void 0&&Object.keys(d).length>l.maxProperties){let h={},y=0;(Array.isArray(l.required)?l.required:[]).forEach(g=>{d[g]!==void 0&&(h[g]=d[g],y++)}),Object.keys(d).forEach(g=>{y<l.maxProperties&&!h.hasOwnProperty(g)&&(h[g]=d[g],y++)}),d=h}return d}},{"../traverse":26,"../utils":27}],24:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.regexSample=l;function s(){return!0}function a(u,p){return u}function c(u,p,m){let d=1;if(u)switch(u){case"?":{d=s()?0:1;break}case"*":{d=a(0,8);break}case"+":{d=a(1,8);break}default:throw new Error("Unknown quantifier symbol provided.")}else p!=null&&m!=null?d=a(parseInt(p),parseInt(m)):p!=null&&m==null&&(d=parseInt(p));return d}function l(u){var w,N;let p=!1;u instanceof RegExp&&(p=u.flags.includes("i"),u=u.toString(),u=(N=(w=u.match(/\/(.+?)\//))==null?void 0:w[1])!=null?N:""),u=u.replace(/^(\^)?(.*?)(\$)?$/,"$2");let m,d,f,h=/([.A-Za-z0-9])(?:\{(\d+)(?:\,(\d+)|)\}|(\?|\*|\+))(?![^[]*]|[^{]*})/,y=u.match(h);for(;y!=null;){let S=y[2],O=y[3],P=y[4];f=c(P,S,O),u=u.slice(0,y.index)+y[1].repeat(f)+u.slice(y.index+y[0].length),y=u.match(h)}let b=/(\d-\d|\w-\w|\d|\w|[-!@#$&()`.+,/"])/,g=/\[(\^|)(-|)(.+?)\](?:\{(\d+)(?:\,(\d+)|)\}|(\?|\*|\+)|)/;for(y=u.match(g);y!=null;){let S=y[1]==="^",O=y[2]==="-",P=y[4],E=y[5],R=y[6],A=[],I=y[3],C=I.match(b);for(O&&A.push(45);C!=null;){if(C[0].indexOf("-")===-1)p&&isNaN(Number(C[0]))?(A.push(C[0].toUpperCase().charCodeAt(0)),A.push(C[0].toLowerCase().charCodeAt(0))):A.push(C[0].charCodeAt(0));else{let L=C[0].split("-").map(D=>D.charCodeAt(0));if(m=L[0],d=L[1],m>d)throw new Error("Character range provided is out of order.");for(let D=m;D<=d;D++)if(p&&isNaN(Number(String.fromCharCode(D)))){let k=String.fromCharCode(D);A.push(k.toUpperCase().charCodeAt(0)),A.push(k.toLowerCase().charCodeAt(0))}else A.push(D)}I=I.substring(C[0].length),C=I.match(b)}if(f=c(R,P,E),S){let L=-1;for(let D=48;D<=57;D++){if(L=A.indexOf(D),L>-1){A.splice(L,1);continue}A.push(D)}for(let D=65;D<=90;D++){if(L=A.indexOf(D),L>-1){A.splice(L,1);continue}A.push(D)}for(let D=97;D<=122;D++){if(L=A.indexOf(D),L>-1){A.splice(L,1);continue}A.push(D)}}let $=Array.from({length:f},()=>String.fromCharCode(A[a(0,A.length-1)])).join("");u=u.slice(0,y.index)+$+u.slice(y.index+y[0].length),y=u.match(g)}let v=/(.)\{(\d+)\,(\d+)\}/;for(y=u.match(v);y!=null;){if(m=parseInt(y[2]),d=parseInt(y[3]),m>d)throw new Error("Numbers out of order in {} quantifier.");f=a(m,d),u=u.slice(0,y.index)+y[1].repeat(f)+u.slice(y.index+y[0].length),y=u.match(v)}let _=/(.)\{(\d+)\}/;for(y=u.match(_);y!=null;)f=parseInt(y[2]),u=u.slice(0,y.index)+y[1].repeat(f)+u.slice(y.index+y[0].length),y=u.match(_);return u}},{}],25:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sampleString=D;var s=n("../utils"),a=l(n("./string-regex"));function c(k){if(typeof WeakMap!="function")return null;var q=new WeakMap,V=new WeakMap;return(c=function(z){return z?V:q})(k)}function l(k,q){if(!q&&k&&k.__esModule)return k;if(k===null||typeof k!="object"&&typeof k!="function")return{default:k};var V=c(q);if(V&&V.has(k))return V.get(k);var z={__proto__:null},ne=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var fe in k)if(fe!=="default"&&{}.hasOwnProperty.call(k,fe)){var Ae=ne?Object.getOwnPropertyDescriptor(k,fe):null;Ae&&(Ae.get||Ae.set)?Object.defineProperty(z,fe,Ae):z[fe]=k[fe]}return z.default=k,V&&V.set(k,z),z}let u="qwerty!@#$%^123456";function p(){return"user@example.com"}function m(){return"\u043F\u043E\u0448\u0442\u0430@\u0443\u043A\u0440.\u043D\u0435\u0442"}function d(k,q){let V="pa$$word";return k>V.length&&(V+="_",V+=(0,s.ensureMinLength)(u,k-V.length).substring(0,k-V.length)),V}function f(k){let{min:q,max:V,omitTime:z,omitDate:ne}=k,fe=(0,s.toRFCDateTime)(new Date("2019-08-24T14:15:22.123Z"),z,ne,!1);return fe.length<q&&console.warn(`Using minLength = ${q} is incorrect with format "date-time"`),V&&fe.length>V&&console.warn(`Using maxLength = ${V} is incorrect with format "date-time"`),fe}function h(k,q){return f({min:k,max:q,omitTime:!1,omitDate:!1})}function y(k,q){return f({min:k,max:q,omitTime:!0,omitDate:!1})}function b(k,q){return f({min:k,max:q,omitTime:!1,omitDate:!0}).slice(1)}function g(k,q,V,z){let ne=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(z&&ne)return a.regexSample(z);let fe=(0,s.ensureMinLength)("string",k);return q&&fe.length>q&&(fe=fe.substring(0,q)),fe}function v(){return"192.168.0.1"}function _(){return"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}function w(){return"example.com"}function N(){return"\u043F\u0440\u0438\u043A\u043B\u0430\u0434.\u0443\u043A\u0440"}function S(){return"http://example.com"}function O(){return"../dictionary"}function P(){return"http://example.com/{endpoint}"}function E(){return"http://example.com/entity/1"}function R(){return"/entity/1"}function A(k,q,V){return(0,s.uuid)(V||"id")}function I(){return"/json/pointer"}function C(){return"1/relative/json/pointer"}function $(){return"/regex/"}let L={email:p,"idn-email":m,password:d,"date-time":h,date:y,time:b,ipv4:v,ipv6:_,hostname:w,"idn-hostname":N,iri:E,"iri-reference":R,uri:S,"uri-reference":O,"uri-template":P,uuid:A,default:g,"json-pointer":I,"relative-json-pointer":C,regex:$};function D(k,q,V,z){let ne=k.format||"default",fe=L[ne]||g,Ae=z&&z.propertyName;return fe(k.minLength||0,k.maxLength,Ae,k.pattern,q==null?void 0:q.enablePatterns)}},{"../utils":27,"./string-regex":24}],26:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.clearCache=f,o.traverse=b;var s=n("./openapi-sampler"),a=n("./allOf"),c=n("./infer"),l=n("./utils"),u=p(n("json-pointer"));function p(g){return g&&g.__esModule?g:{default:g}}let m={},d=[];function f(){m={},d=[]}function h(g){let v;return g.const!==void 0?v=g.const:g.examples!==void 0&&g.examples.length?v=g.examples[0]:g.enum!==void 0&&g.enum.length?v=g.enum[0]:g.default!==void 0&&(v=g.default),v}function y(g){let v=h(g);if(v!==void 0)return{value:v,readOnly:g.readOnly,writeOnly:g.writeOnly,type:null}}function b(g,v,_,w){if(w){if(d.includes(g))return(0,l.getResultForCircular)((0,c.inferType)(g));d.push(g)}if(w&&w.depth>v.maxSampleDepth)return(0,l.popSchemaStack)(d,w),(0,l.getResultForCircular)((0,c.inferType)(g));if(g.$ref){if(!_)throw new Error("Your schema contains $ref. You must provide full specification in the third parameter.");let P=decodeURIComponent(g.$ref);P.startsWith("#")&&(P=P.substring(1));let E=u.default.get(_,P),R;if(m[P]!==!0){m[P]=!0;let A=b(E,v,_,w);if(v.format==="xml"){let{propertyName:I,value:C}=(0,l.applyXMLAttributes)(A,E,w);R={...A,value:{[I||"root"]:C}}}else R=A;m[P]=!1}else{let A=(0,c.inferType)(E);R=(0,l.getResultForCircular)(A)}return(0,l.popSchemaStack)(d,w),R}if(g.example!==void 0)return(0,l.popSchemaStack)(d,w),{value:g.example,readOnly:g.readOnly,writeOnly:g.writeOnly,type:g.type};if(g.allOf!==void 0)return(0,l.popSchemaStack)(d,w),y(g)||(0,a.allOfSample)({...g,allOf:void 0},g.allOf,v,_,w);if(g.oneOf&&g.oneOf.length){g.anyOf&&(v.quiet||console.warn("oneOf and anyOf are not supported on the same level. Skipping anyOf")),(0,l.popSchemaStack)(d,w);let P=Object.assign({readOnly:g.readOnly,writeOnly:g.writeOnly},g.oneOf[0]);return O(g,P)}if(g.anyOf&&g.anyOf.length){(0,l.popSchemaStack)(d,w);let P=Object.assign({readOnly:g.readOnly,writeOnly:g.writeOnly},g.anyOf[0]);return O(g,P)}if(g.if&&g.then){(0,l.popSchemaStack)(d,w);let{if:P,then:E,...R}=g;return b((0,l.mergeDeep)(R,P,E),v,_,w)}let N=h(g),S=null;if(N===void 0){N=null,S=g.type,Array.isArray(S)&&g.type.length>0&&(S=g.type[0]),S||(S=(0,c.inferType)(g));let P=s._samplers[S];P&&(N=P(g,v,_,w))}return(0,l.popSchemaStack)(d,w),{value:N,readOnly:g.readOnly,writeOnly:g.writeOnly,type:S};function O(P,E){let R=y(P);if(R!==void 0)return R;let A=b({...P,oneOf:void 0,anyOf:void 0},v,_,w),I=b(E,v,_,w);if(typeof A.value=="object"&&typeof I.value=="object"){let C=(0,l.mergeDeep)(A.value,I.value);return{...I,value:C}}return I}}},{"./allOf":16,"./infer":17,"./openapi-sampler":18,"./utils":27,"json-pointer":14}],27:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.SKIP_SYMBOL=void 0,o.applyXMLAttributes=h,o.ensureMinLength=l,o.getResultForCircular=m,o.getXMLAttributes=f,o.mergeDeep=u,o.popSchemaStack=d,o.toRFCDateTime=c,o.uuid=p;let s=o.SKIP_SYMBOL=Symbol("skip");function a(g){return g<10?"0"+g:g}function c(g,v,_,w){var N=_?"":g.getUTCFullYear()+"-"+a(g.getUTCMonth()+1)+"-"+a(g.getUTCDate());return v||(N+="T"+a(g.getUTCHours())+":"+a(g.getUTCMinutes())+":"+a(g.getUTCSeconds())+(w?"."+(g.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5):"")+"Z"),N}function l(g,v){return v>g.length?g.repeat(Math.trunc(v/g.length)+1).substring(0,v):g}function u(){let g=N=>N&&typeof N=="object";for(var v=arguments.length,_=new Array(v),w=0;w<v;w++)_[w]=arguments[w];return _.reduce((N,S)=>(Object.keys(S||{}).forEach(O=>{let P=N[O],E=S[O];g(P)&&g(E)?N[O]=u(P,E):N[O]=E}),N),Array.isArray(_[_.length-1])?[]:{})}function p(g){var v=y(g),_=b(v,v,v,v),w="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,N=>{var S=_()*16%16|0;return(N=="x"?S:S&3|8).toString(16)});return w}function m(g){return{value:g==="object"?{}:g==="array"?[]:void 0}}function d(g,v){v&&g.pop()}function f(g){var v,_,w,N,S,O,P;return{name:((v=g==null?void 0:g.xml)==null?void 0:v.name)||"",prefix:((_=g==null?void 0:g.xml)==null?void 0:_.prefix)||"",namespace:((w=g==null?void 0:g.xml)==null?void 0:w.namespace)||null,attribute:(S=(N=g==null?void 0:g.xml)==null?void 0:N.attribute)!=null?S:!1,wrapped:(P=(O=g==null?void 0:g.xml)==null?void 0:O.wrapped)!=null?P:!1}}function h(g){var C,$;let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{value:w}=g,{propertyName:N}=_,{name:S,prefix:O,namespace:P,attribute:E,wrapped:R}=f(v),A=S||N?`${O?O+":":""}${S||N}`:null,I=typeof w=="object"?Array.isArray(w)?[...w]:{...w}:w;return E&&A&&(A=`$${A}`),P&&(typeof I=="object"?I[`$xmlns${O?":"+O:""}`]=P:I={[`$xmlns${O?":"+O:""}`]:P,"#text":I}),v.type==="array"&&(R&&Array.isArray(I)&&(I={[A]:[...I]}),R||(A=null),v.example!==void 0&&!R&&(A=(($=(C=v.items)==null?void 0:C.xml)==null?void 0:$.name)||A)),(v.oneOf||v.anyOf||v.allOf||v.$ref)&&(A=null),{propertyName:A,value:I}}function y(g){var v=0;if(g.length==0)return v;for(var _=0;_<g.length;_++){var w=g.charCodeAt(_);v=(v<<5)-v+w,v=v&v}return v}function b(g,v,_,w){return function(){g|=0,v|=0,_|=0,w|=0;var N=g-(v<<27|v>>>5)|0;return g=v^(_<<17|_>>>15),v=_+w|0,_=w+N|0,w=g+N|0,(w>>>0)/4294967296}}},{}]},{},[18])(18)})});var lq=x(j1=>{"use strict";Object.defineProperty(j1,"__esModule",{value:!0});var _re=kh(),Ore=Xh(),$re=gy(),Pre=jy(),cq=My(),Ere=[_re.default,Ore.default,(0,$re.default)(),Pre.default,cq.metadataVocabulary,cq.contentVocabulary];j1.default=Ere});var uq=x((CSe,Are)=>{Are.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/schema",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/core":!0,"https://json-schema.org/draft/2019-09/vocab/applicator":!0,"https://json-schema.org/draft/2019-09/vocab/validation":!0,"https://json-schema.org/draft/2019-09/vocab/meta-data":!0,"https://json-schema.org/draft/2019-09/vocab/format":!1,"https://json-schema.org/draft/2019-09/vocab/content":!0},$recursiveAnchor:!0,title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format"},{$ref:"meta/content"}],type:["object","boolean"],properties:{definitions:{$comment:"While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",type:"object",additionalProperties:{$recursiveRef:"#"},default:{}},dependencies:{$comment:'"dependencies" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to "dependentSchemas" and "dependentRequired"',type:"object",additionalProperties:{anyOf:[{$recursiveRef:"#"},{$ref:"meta/validation#/$defs/stringArray"}]}}}}});var pq=x((RSe,Cre)=>{Cre.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/applicator":!0},$recursiveAnchor:!0,title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{additionalItems:{$recursiveRef:"#"},unevaluatedItems:{$recursiveRef:"#"},items:{anyOf:[{$recursiveRef:"#"},{$ref:"#/$defs/schemaArray"}]},contains:{$recursiveRef:"#"},additionalProperties:{$recursiveRef:"#"},unevaluatedProperties:{$recursiveRef:"#"},properties:{type:"object",additionalProperties:{$recursiveRef:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$recursiveRef:"#"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$recursiveRef:"#"}},propertyNames:{$recursiveRef:"#"},if:{$recursiveRef:"#"},then:{$recursiveRef:"#"},else:{$recursiveRef:"#"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$recursiveRef:"#"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$recursiveRef:"#"}}}}});var fq=x((TSe,Rre)=>{Rre.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/content",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/content":!0},$recursiveAnchor:!0,title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentMediaType:{type:"string"},contentEncoding:{type:"string"},contentSchema:{$recursiveRef:"#"}}}});var dq=x((NSe,Tre)=>{Tre.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/core",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/core":!0},$recursiveAnchor:!0,title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{type:"string",format:"uri"},$anchor:{type:"string",pattern:"^[A-Za-z][-A-Za-z0-9.:_]*$"},$ref:{type:"string",format:"uri-reference"},$recursiveRef:{type:"string",format:"uri-reference"},$recursiveAnchor:{type:"boolean",default:!1},$vocabulary:{type:"object",propertyNames:{type:"string",format:"uri"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$recursiveRef:"#"},default:{}}}}});var mq=x((ISe,Nre)=>{Nre.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/format",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/format":!0},$recursiveAnchor:!0,title:"Format vocabulary meta-schema",type:["object","boolean"],properties:{format:{type:"string"}}}});var hq=x((kSe,Ire)=>{Ire.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/meta-data":!0},$recursiveAnchor:!0,title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var yq=x((qSe,kre)=>{kre.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/validation",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/validation":!0},$recursiveAnchor:!0,title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}},const:!0,enum:{type:"array",items:!0},type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var gq=x(M1=>{"use strict";Object.defineProperty(M1,"__esModule",{value:!0});M1.default=Vre;var qre=uq(),jre=pq(),Mre=fq(),Lre=dq(),Dre=mq(),Fre=hq(),Bre=yq(),Ure=["/properties"];function Vre(e){return[qre,jre,Mre,Lre,t(this,Dre),Fre,t(this,Bre)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,Ure):n}}});var vq=x((dt,bq)=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.CodeGen=dt.Name=dt.nil=dt.stringify=dt.str=dt._=dt.KeywordCxt=void 0;var zre=Th(),Hre=lq(),Kre=Oy(),Gre=Cy(),Yre=Iy(),Wre=By(),Xre=gq(),L1="https://json-schema.org/draft/2019-09/schema",Id=class extends zre.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),this.addVocabulary(Kre.default),Hre.default.forEach(t=>this.addVocabulary(t)),this.addVocabulary(Gre.default),this.addVocabulary(Yre.default),this.opts.discriminator&&this.addKeyword(Wre.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(Xre.default.call(this,t),this.refs["http://json-schema.org/schema"]=L1)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(L1)?L1:void 0)}};bq.exports=dt=Id;Object.defineProperty(dt,"__esModule",{value:!0});dt.default=Id;var Jre=Xo();Object.defineProperty(dt,"KeywordCxt",{enumerable:!0,get:function(){return Jre.KeywordCxt}});var pa=oe();Object.defineProperty(dt,"_",{enumerable:!0,get:function(){return pa._}});Object.defineProperty(dt,"str",{enumerable:!0,get:function(){return pa.str}});Object.defineProperty(dt,"stringify",{enumerable:!0,get:function(){return pa.stringify}});Object.defineProperty(dt,"nil",{enumerable:!0,get:function(){return pa.nil}});Object.defineProperty(dt,"Name",{enumerable:!0,get:function(){return pa.Name}});Object.defineProperty(dt,"CodeGen",{enumerable:!0,get:function(){return pa.CodeGen}})});var hne={};jd(hne,{createMockServer:()=>Dq});module.exports=Hq(hne);var Md=Ee(require("path"),1),fa=Ee(require("fs"),1);function xl(e){var t;return(Md.extname(e)===".yaml"||Md.extname(e)===".yml")&&!!((t=fa==null?void 0:fa.existsSync)!=null&&t.call(fa,e))}function da(e,t){let r,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&da(e[n],t[n]););return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&++n&&!Object.prototype.hasOwnProperty.call(t,r)||!(r in t)||!da(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function W(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Ir(e){return W(e)&&Object.keys(e).length===0}function at(e){return typeof e=="string"}function ct(e){return!!e}function Ld(e){return e?Object.keys(e):[]}var z1=Ee(Bd(),1);function Ud(e,t,r){return e.split(" ").map(n=>(0,z1.default)(n,t,r)).join(" ")}var mx=Ee(dx(),1);var bt=typeof window<"u"||typeof process>"u"||(process==null?void 0:process.platform)==="browser",Qd=bt?{}:process.env||{};async function Zd(e,t){let r={};for(let i of t.headers)wj(e,i.matches)&&(r[i.name]=i.envVariable!==void 0?Qd[i.envVariable]||"":i.value);let n=await(t.customFetch||fetch)(e,{headers:r});if(!n.ok)throw new Error(`Failed to load ${e}: ${n.status} ${n.statusText}`);return{body:await n.text(),mimeType:n.headers.get("content-type")}}function wj(e,t){return t.match(/^https?:\/\//)||(e=e.replace(/^https?:\/\//,"")),mx.isMatch(e,t)}function em(e){return/^\\\\\?\\/.test(e)?e:e.replace(/\\/g,"/")}function X(e){return{name:`${e}List`,properties:{},items:e}}function K(e){return{name:`${e}Map`,properties:{},additionalProperties:()=>e}}var kr={name:"SpecExtension",properties:{},additionalProperties:{resolvable:!0}};function Lo(e,t={}){let r={};for(let o of Object.keys(e))r[o]={...e[o],name:o};for(let o of Object.values(r))n(o);return r.SpecExtension=kr,r;function n(o){if(o.additionalProperties&&(o.additionalProperties=i(o.additionalProperties)),o.items&&(o.items=i(o.items)),o.properties){let s={};for(let[a,c]of Object.entries(o.properties))s[a]=i(c),t.doNotResolveExamples&&c&&c.isExample&&(s[a]={...c,resolvable:!1});o.properties=s}}function i(o){if(typeof o=="string"){if(!r[o])throw new Error(`Unknown type name found: ${o}`);return r[o]}else return typeof o=="function"?(s,a)=>i(o(s,a)):o&&o.name?(o={...o},n(o),o):o&&o.directResolveAs?{...o,directResolveAs:i(o.directResolveAs)}:o}}function Wr(e){return typeof(e==null?void 0:e.name)=="string"}var Sj=/^[0-9][0-9Xx]{2}$/,_j={properties:{swagger:{type:"string"},info:"Info",host:{type:"string"},basePath:{type:"string"},schemes:{type:"array",items:{type:"string"}},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},paths:"Paths",definitions:"NamedSchemas",parameters:"NamedParameters",responses:"NamedResponses",securityDefinitions:"NamedSecuritySchemes",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs","x-servers":"XServerList","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["swagger","paths","info"],extensionsPrefix:"x-"},Oj={properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",version:{type:"string"},"x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},$j={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}},extensionsPrefix:"x-"},Pj={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},Ej={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},Aj={properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},Cj={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},Rj={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},parameters:"ParameterList",responses:"Responses",schemes:{type:"array",items:{type:"string"}},deprecated:{type:"boolean"},security:"SecurityRequirementList","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-"},Tj={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},Nj={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},Ij={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},kj={properties:{name:{type:"string"},in:{type:"string",enum:["query","header","path","formData","body"]},description:{type:"string"},required:{type:"boolean"},schema:"Schema",type:{type:"string",enum:["string","number","integer","boolean","array","file"]},format:{type:"string"},allowEmptyValue:{type:"boolean"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"},"x-example":{},"x-examples":"ExamplesMap"},required(e){return!e||!e.in?["name","in"]:e.in==="body"?["name","in","schema"]:e.type==="array"?["name","in","type","items"]:["name","in","type"]},extensionsPrefix:"x-"},qj={properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(e){return e&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},jj={properties:{default:"Response"},additionalProperties:(e,t)=>Sj.test(t)?"Response":void 0},Mj={properties:{description:{type:"string"},schema:"Schema",headers:K("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},Lj={properties:{},additionalProperties:{isExample:!0}},Dj={properties:{description:{type:"string"},type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(e){return e&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},Fj={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},Bj={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},Uj={properties:{format:{type:"string"},title:{type:"string"},description:{type:"string"},default:null,multipleOf:{type:"number"},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"number"},minLength:{type:"number"},pattern:{type:"string"},maxItems:{type:"number"},minItems:{type:"number"},uniqueItems:{type:"boolean"},maxProperties:{type:"number"},minProperties:{type:"number"},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{type:"string",enum:["object","array","string","number","integer","boolean","null"]},items:e=>Array.isArray(e)?X("Schema"):"Schema",allOf:X("Schema"),properties:"SchemaProperties",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",discriminator:{type:"string"},readOnly:{type:"boolean"},xml:"Xml",externalDocs:"ExternalDocs",example:{isExample:!0},"x-tags":{type:"array",items:{type:"string"}},"x-nullable":{type:"boolean"},"x-extendedDiscriminator":{type:"string"},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"},"x-enumDescriptions":"EnumDescriptions"},extensionsPrefix:"x-"},Vj={properties:{},additionalProperties:{type:"string"}},zj={properties:{},additionalProperties:"Schema"},Hj={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},Kj={properties:{type:{enum:["basic","apiKey","oauth2"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header"]},flow:{enum:["implicit","password","application","accessCode"]},authorizationUrl:{type:"string"},tokenUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},"x-defaultClientId":{type:"string"}},required(e){switch(e==null?void 0:e.type){case"apiKey":return["type","name","in"];case"oauth2":switch(e==null?void 0:e.flow){case"implicit":return["type","flow","authorizationUrl","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","scopes"];case"application":case"password":return["type","flow","tokenUrl","scopes"];default:return["type","flow","scopes"]}default:return["type"]}},allowed(e){switch(e==null?void 0:e.type){case"basic":return["type","description"];case"apiKey":return["type","name","in","description"];case"oauth2":switch(e==null?void 0:e.flow){case"implicit":return["type","flow","authorizationUrl","description","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","description","scopes"];case"application":case"password":return["type","flow","tokenUrl","description","scopes"];default:return["type","flow","tokenUrl","authorizationUrl","description","scopes"]}default:return["type","description"]}},extensionsPrefix:"x-"},Gj={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Yj={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},tm={Root:_j,Tag:Fj,TagList:X("Tag"),TagGroups:X("TagGroup"),TagGroup:Bj,ExternalDocs:Ij,Example:Yj,ExamplesMap:K("Example"),EnumDescriptions:Vj,SecurityRequirement:Gj,SecurityRequirementList:X("SecurityRequirement"),Info:Oj,Contact:Pj,License:Ej,Logo:$j,Paths:Aj,PathItem:Cj,Parameter:kj,ParameterItems:qj,ParameterList:X("Parameter"),Operation:Rj,Examples:Lj,Header:Dj,Responses:jj,Response:Mj,Schema:Uj,Xml:Hj,SchemaProperties:zj,NamedSchemas:K("Schema"),NamedResponses:K("Response"),NamedParameters:K("Parameter"),NamedSecuritySchemes:K("SecurityScheme"),SecurityScheme:Kj,XCodeSample:Tj,XCodeSampleList:X("XCodeSample"),XServerList:X("XServer"),XServer:Nj};function Bi(e,t){return e===""&&(e="#/"),e[e.length-1]==="/"?e+t:e+"/"+t}function we(e){return W(e)&&typeof e.$ref=="string"}function _l(e){return W(e)&&typeof e.externalValue=="string"}var zn=class e{constructor(t,r){this.source=t,this.pointer=r}child(t){return new e(this.source,Bi(this.pointer,(Array.isArray(t)?t:[t]).map(Hn).join("/")))}key(){return{...this,reportOnKey:!0}}get absolutePointer(){return this.source.absoluteRef+(this.pointer==="#/"?"":this.pointer)}};function rm(e){return decodeURIComponent(e.replace(/~1/g,"/").replace(/~0/g,"~"))}function Hn(e){return typeof e=="number"?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function hx(e){let[t,r=""]=e.split("#/");return{uri:(t.endsWith("#")?t.slice(0,-1):t)||null,pointer:Wj(r)}}function Wj(e){return e.split("/").map(rm).filter(ct)}function yx(e){let t=e.split(/[\/\\]/);return t[t.length-1].replace(/\.[^.]+$/,"")}function Je(e){return e.startsWith("http://")||e.startsWith("https://")}function Ol(e){return e.startsWith("#")||e.startsWith("https://")||e.startsWith("http://")||e.startsWith("./")||e.startsWith("../")||e.indexOf("/")>-1}function gx(e){return/^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(e)}function ga(e,t,r){if(!W(t.node))r.parent[r.key]=t.node;else{delete e.$ref;let n=Object.assign({},t.node,e);Object.assign(e,n)}}var Xj=/^[0-9][0-9Xx]{2}$/,Jj={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",components:"Components","x-webhooks":"WebhooksMap","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["openapi","paths","info"],extensionsPrefix:"x-"},Qj={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},Zj={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}},extensionsPrefix:"x-"},eM={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},tM={properties:{url:{type:"string"},description:{type:"string"},variables:"ServerVariablesMap"},required:["url"],extensionsPrefix:"x-"},rM={properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"}},required:["default"],extensionsPrefix:"x-"},nM={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},iM={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License","x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},oM={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}}},sM={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},aM={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},cM={properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},lM={properties:{},additionalProperties:()=>"PathItem"},uM={properties:{$ref:{type:"string"},servers:"ServerList",parameters:"ParameterList",summary:{type:"string"},description:{type:"string"},get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation",trace:"Operation"},extensionsPrefix:"x-"},pM={properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{type:"boolean"},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean"},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",content:"MediaTypesMap"},required:["name","in"],requiredOneOf:["schema","content"],extensionsPrefix:"x-"},fM={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-"},dM={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},mM={properties:{description:{type:"string"},required:{type:"boolean"},content:"MediaTypesMap"},required:["content"],extensionsPrefix:"x-"},hM={properties:{},additionalProperties:"MediaType"},yM={properties:{schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",encoding:"EncodingMap"},extensionsPrefix:"x-"},gM={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},bM={properties:{contentType:{type:"string"},headers:"HeadersMap",style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"}},extensionsPrefix:"x-"},vM={properties:{},additionalProperties:{type:"string"}},xM={properties:{description:{type:"string"},required:{type:"boolean"},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean"},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",content:"MediaTypesMap"},requiredOneOf:["schema","content"],extensionsPrefix:"x-"},wM={properties:{default:"Response"},additionalProperties:(e,t)=>Xj.test(t)?"Response":void 0},SM={properties:{description:{type:"string"},headers:"HeadersMap",content:"MediaTypesMap",links:"LinksMap","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},_M={properties:{operationRef:{type:"string"},operationId:{type:"string"},parameters:null,requestBody:null,description:{type:"string"},server:"Server"},extensionsPrefix:"x-"},OM={properties:{externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{enum:["object","array","string","number","integer","boolean"]},allOf:X("Schema"),anyOf:X("Schema"),oneOf:X("Schema"),not:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?X("Schema"):"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},default:null,nullable:{type:"boolean"},readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",example:{isExample:!0},deprecated:{type:"boolean"},"x-tags":{type:"array",items:{type:"string"}},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"}},extensionsPrefix:"x-"},$M={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},PM={properties:{},additionalProperties:"Schema"},EM={properties:{},additionalProperties:e=>Ol(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},AM={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"],extensionsPrefix:"x-"},CM={properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks"},extensionsPrefix:"x-"},RM={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],extensionsPrefix:"x-"},TM={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-"},NM={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-"},IM={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"},"x-usePkce":e=>typeof e=="boolean"?{type:"boolean"}:"XUsePkce"},required:["authorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-"},kM={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-"},qM={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"OAuth2Flows",openIdConnectUrl:{type:"string"},"x-defaultClientId":{type:"string"}},required(e){switch(e==null?void 0:e.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e==null?void 0:e.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-"},jM={properties:{disableManualConfiguration:{type:"boolean"},hideClientSecretInput:{type:"boolean"}}},Kn={Root:Jj,Tag:Qj,TagList:X("Tag"),TagGroups:X("TagGroup"),TagGroup:Zj,ExternalDocs:eM,Server:tM,ServerList:X("Server"),ServerVariable:rM,ServerVariablesMap:K("ServerVariable"),SecurityRequirement:nM,SecurityRequirementList:X("SecurityRequirement"),Info:iM,Contact:sM,License:aM,Paths:cM,PathItem:uM,Parameter:pM,ParameterList:X("Parameter"),Operation:fM,Callback:K("PathItem"),CallbacksMap:K("Callback"),RequestBody:mM,MediaTypesMap:hM,MediaType:yM,Example:gM,ExamplesMap:K("Example"),Encoding:bM,EncodingMap:K("Encoding"),EnumDescriptions:vM,Header:xM,HeadersMap:K("Header"),Responses:wM,Response:SM,Link:_M,Logo:oM,Schema:OM,Xml:$M,SchemaProperties:PM,DiscriminatorMapping:EM,Discriminator:AM,Components:CM,LinksMap:K("Link"),NamedSchemas:K("Schema"),NamedResponses:K("Response"),NamedParameters:K("Parameter"),NamedExamples:K("Example"),NamedRequestBodies:K("RequestBody"),NamedHeaders:K("Header"),NamedSecuritySchemes:K("SecurityScheme"),NamedLinks:K("Link"),NamedCallbacks:K("Callback"),ImplicitFlow:RM,PasswordFlow:TM,ClientCredentials:NM,AuthorizationCode:IM,OAuth2Flows:kM,SecurityScheme:qM,XCodeSample:dM,XCodeSampleList:X("XCodeSample"),XUsePkce:jM,WebhooksMap:lM};var MM={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",webhooks:"WebhooksMap",components:"Components",jsonSchemaDialect:{type:"string"}},required:["openapi","info"],requiredOneOf:["paths","components","webhooks"],extensionsPrefix:"x-"},LM={properties:{name:{type:"string"},url:{type:"string"},identifier:{type:"string"}},required:["name"],extensionsPrefix:"x-"},DM={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},summary:{type:"string"},contact:"Contact",license:"License","x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},FM={properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks",pathItems:"NamedPathItems"},extensionsPrefix:"x-"},BM={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},extensionsPrefix:"x-"},UM={properties:{$id:{type:"string"},$anchor:{type:"string"},id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",$defs:"NamedSchemas",$vocabulary:{type:"string"},externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:e=>Array.isArray(e)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:X("Schema"),anyOf:X("Schema"),oneOf:X("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:K("Schema"),dependentRequired:"DependentRequired",prefixItems:X("Schema"),contains:"Schema",minContains:{type:"integer",minimum:0},maxContains:{type:"integer",minimum:0},patternProperties:"PatternProperties",propertyNames:"Schema",unevaluatedItems:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",unevaluatedProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",summary:{type:"string"},properties:"SchemaProperties",items:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:"Schema",default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},"x-tags":{type:"array",items:{type:"string"}},$dynamicAnchor:{type:"string"},$dynamicRef:{type:"string"}},extensionsPrefix:"x-"},bx={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},VM={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect","mutualTLS"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"OAuth2Flows",openIdConnectUrl:{type:"string"}},required(e){switch(e==null?void 0:e.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e==null?void 0:e.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":switch(e==null?void 0:e.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes"];case"authorizationCode":return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"]}case"openIdConnect":return["type","openIdConnectUrl","description"];case"mutualTLS":return["type","description"];default:return["type","description"]}},extensionsPrefix:"x-"},zM={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Le={...Kn,Info:DM,Root:MM,Schema:UM,SchemaProperties:bx,PatternProperties:bx,License:LM,Components:FM,NamedPathItems:K("PathItem"),SecurityScheme:VM,Operation:BM,DependentRequired:zM};var HM={...Le.Root,properties:{...Le.Root.properties,$self:{type:"string"}}},KM={...Le.Tag,properties:{...Le.Tag.properties,kind:{type:"string"},parent:{type:"string"},summary:{type:"string"}}},GM={...Le.Server,properties:{...Le.Server.properties,name:{type:"string"}}},YM={...Le.SecurityScheme,properties:{...Le.SecurityScheme.properties,deprecated:{type:"boolean"},oauth2MetadataUrl:{type:"string"}},allowed(e){switch(e==null?void 0:e.type){case"apiKey":return["type","name","in","description","deprecated"];case"http":return["type","scheme","bearerFormat","description","deprecated"];case"oauth2":switch(e==null?void 0:e.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"authorizationCode":return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"deviceAuthorization":return["type","flows","deviceAuthorizationUrl","tokenUrl"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes","oauth2MetadataUrl","deprecated"]}case"openIdConnect":return["type","openIdConnectUrl","description","deprecated"];case"mutualTLS":return["type","description","deprecated"];default:return["type","description","deprecated"]}}},WM={...Le.OAuth2Flows,properties:{...Le.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},XM={properties:{deviceAuthorizationUrl:{type:"string"},tokenUrl:{type:"string"},refreshUrl:{type:"string"},scopes:K("string")},required:["deviceAuthorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-"},JM={...Kn.PathItem,properties:{...Kn.PathItem.properties,query:"Operation",additionalOperations:K("Operation")}},QM={...Le.Parameter,properties:{...Le.Parameter.properties,in:{enum:["query","header","path","cookie","querystring"]}}},ZM={...Le.Response,properties:{...Le.Response.properties,summary:{type:"string"}}},e8={...Le.MediaType,properties:{...Le.MediaType.properties,itemSchema:"Schema",prefixEncoding:X("Encoding"),itemEncoding:"Encoding"}},t8={...Le.Discriminator,properties:{...Le.Discriminator.properties,defaultMapping:{type:"string"}}},r8={...Le.Example,properties:{...Le.Example.properties,dataValue:{isExample:!0},serializedValue:{type:"string"}}},lt={...Le,Root:HM,Tag:KM,Server:GM,SecurityScheme:YM,OAuth2Flows:WM,DeviceAuthorization:XM,PathItem:JM,Parameter:QM,Response:ZM,MediaType:e8,Discriminator:t8,Example:r8};var n8={properties:{asyncapi:null,info:"Info",id:{type:"string"},servers:"ServerMap",channels:"ChannelMap",components:"Components",tags:"TagList",externalDocs:"ExternalDocs",defaultContentType:{type:"string"}},required:["asyncapi","channels","info"]},i8={properties:{description:{type:"string"},subscribe:"Operation",publish:"Operation",parameters:"ParametersMap",bindings:"ChannelBindings",servers:{type:"array",items:{type:"string"}}}},o8={properties:{},additionalProperties:"Channel"},Lt={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},nm={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs"},required:["name"]},im={properties:{description:{type:"string"},url:{type:"string"}},required:["url"]},s8={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Dt={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},a8={properties:{url:{type:"string"},protocol:{type:"string"},protocolVersion:{type:"string"},description:{type:"string"},variables:"ServerVariablesMap",security:"SecurityRequirementList",bindings:"ServerBindings",tags:"TagList"},required:["url","protocol"]},om={properties:{},additionalProperties:(e,t)=>t.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},sm={properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"},examples:{type:"array",items:{type:"string"}}},required:[]},c8={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License"},required:["title","version"]},am={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}}},cm={properties:{name:{type:"string"},url:{type:"string"}},required:["name"]},l8={properties:{description:{type:"string"},schema:"Schema",location:{type:"string"}}},lm={properties:{description:{type:"string"},location:{type:"string"}},required:["location"]},u8={properties:{messageId:{type:"string"},headers:"Schema",payload:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string"},contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{}},Et={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},At={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},p8={properties:{tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecurityRequirementList",bindings:"OperationBindings"},required:[]},f8={properties:{messageId:{type:"string"},headers:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string"},contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{}},d8={properties:{tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecurityRequirementList",bindings:"OperationBindings",traits:"OperationTraitList",message:"Message"},required:[]},um={properties:{payload:{isExample:!0},summary:{type:"string"},name:{type:"string"},headers:{type:"object"}}},pm={properties:{$id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",externalDocs:"ExternalDocs",discriminator:"Discriminator",myArbitraryKeyword:{type:"boolean"},title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:e=>Array.isArray(e)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:X("Schema"),anyOf:X("Schema"),oneOf:X("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?X("Schema"):"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},additionalItems:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",dependencies:"Dependencies"}},fm={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},dm={properties:{},additionalProperties:e=>Ol(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},mm={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]},m8={properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"ChannelMap",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"}},h8={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"]},y8={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"]},g8={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"]},b8={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","scopes"]},hm={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},v8={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie","user","password"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string"}},required(e){switch(e==null?void 0:e.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e==null?void 0:e.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-"},ym={properties:{},additionalProperties:e=>Array.isArray(e)?{type:"array",items:{type:"string"}}:"Schema"},vx={properties:{}};Lt.properties.http=vx;var xx={properties:{}};Dt.properties.http=xx;var wx={properties:{headers:"Schema",bindingVersion:{type:"string"}}};Et.properties.http=wx;var Sx={properties:{type:{type:"string"},method:{type:"string",enum:["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","CONNECT","TRACE"]},headers:"Schema",bindingVersion:{type:"string"}}};At.properties.http=Sx;var _x={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}}};Lt.properties.ws=_x;var Ox={properties:{}};Dt.properties.ws=Ox;var $x={properties:{}};Et.properties.ws=$x;var Px={properties:{}};At.properties.ws=Px;var x8={properties:{"cleanup.policy":{type:"array",items:{enum:["delete","compact"]}},"retention.ms":{type:"integer"},"retention.bytes":{type:"integer"},"delete.retention.ms":{type:"integer"},"max.message.bytes":{type:"integer"}}},Ex={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}}};Lt.properties.kafka=Ex;var Ax={properties:{}};Dt.properties.kafka=Ax;var Cx={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}}};Et.properties.kafka=Cx;var Rx={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}}};At.properties.kafka=Rx;var Tx={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}}};Lt.properties.anypointmq=Tx;var Nx={properties:{}};Dt.properties.anypointmq=Nx;var Ix={properties:{headers:"Schema",bindingVersion:{type:"string"}}};Et.properties.anypointmq=Ix;var kx={properties:{}};At.properties.anypointmq=kx;var qx={properties:{}};Lt.properties.amqp=qx;var jx={properties:{}};Dt.properties.amqp=jx;var Mx={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}}};Et.properties.amqp=Mx;var Lx={properties:{expiration:{type:"integer"},userId:{type:"string"},cc:{type:"array",items:{type:"string"}},priority:{type:"integer"},deliveryMode:{type:"integer"},mandatory:{type:"boolean"},bcc:{type:"array",items:{type:"string"}},replyTo:{type:"string"},timestamp:{type:"boolean"},ack:{type:"boolean"},bindingVersion:{type:"string"}}};At.properties.amqp=Lx;var Dx={properties:{}};Lt.properties.amqp1=Dx;var Fx={properties:{}};Dt.properties.amqp1=Fx;var Bx={properties:{}};Et.properties.amqp1=Bx;var Ux={properties:{}};At.properties.amqp1=Ux;var Vx={properties:{qos:{type:"integer"},retain:{type:"boolean"},bindingVersion:{type:"string"}}};Lt.properties.mqtt=Vx;var w8={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},zx={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},bindingVersion:{type:"string"}}};Dt.properties.mqtt=zx;var Hx={properties:{bindingVersion:{type:"string"}}};Et.properties.mqtt=Hx;var Kx={properties:{qos:{type:"integer"},retain:{type:"boolean"},bindingVersion:{type:"string"}}};At.properties.mqtt=Kx;var Gx={properties:{}};Lt.properties.mqtt5=Gx;var Yx={properties:{}};Dt.properties.mqtt5=Yx;var Wx={properties:{}};Et.properties.mqtt5=Wx;var Xx={properties:{}};At.properties.mqtt5=Xx;var Jx={properties:{}};Lt.properties.nats=Jx;var Qx={properties:{}};Dt.properties.nats=Qx;var Zx={properties:{}};Et.properties.nats=Zx;var ew={properties:{queue:{type:"string"},bindingVersion:{type:"string"}}};At.properties.nats=ew;var tw={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}}};Lt.properties.jms=tw;var rw={properties:{}};Dt.properties.jms=rw;var nw={properties:{headers:"Schema",bindingVersion:{type:"string"}}};Et.properties.jms=nw;var iw={properties:{headers:"Schema",bindingVersion:{type:"string"}}};At.properties.jms=iw;var ow={properties:{}};Lt.properties.solace=ow;var sw={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"}}};Dt.properties.solace=sw;var aw={properties:{}};Et.properties.solace=aw;var S8={properties:{destinationType:{type:"string",enum:["queue","topic"]},deliveryMode:{type:"string",enum:["direct","persistent"]},"queue.name":{type:"string"},"queue.topicSubscriptions":{type:"array",items:{type:"string"}},"queue.accessType":{type:"string",enum:["exclusive","nonexclusive"]},"queue.maxMsgSpoolSize":{type:"string"},"queue.maxTtl":{type:"string"},"topic.topicSubscriptions":{type:"array",items:{type:"string"}}}},cw={properties:{bindingVersion:{type:"string"},destinations:X("SolaceDestination")}};At.properties.solace=cw;var lw={properties:{}};Lt.properties.stomp=lw;var uw={properties:{}};Dt.properties.stomp=uw;var pw={properties:{}};Et.properties.stomp=pw;var fw={properties:{}};At.properties.stomp=fw;var dw={properties:{}};Lt.properties.redis=dw;var mw={properties:{}};Dt.properties.redis=mw;var hw={properties:{}};Et.properties.redis=hw;var yw={properties:{}};At.properties.redis=yw;var gw={properties:{}};Lt.properties.mercure=gw;var bw={properties:{}};Dt.properties.mercure=bw;var vw={properties:{}};Et.properties.mercure=vw;var xw={properties:{}};At.properties.mercure=xw;var gm={HttpServerBinding:xx,HttpChannelBinding:vx,HttpMessageBinding:wx,HttpOperationBinding:Sx,WsServerBinding:Ox,WsChannelBinding:_x,WsMessageBinding:$x,WsOperationBinding:Px,KafkaServerBinding:Ax,KafkaTopicConfiguration:x8,KafkaChannelBinding:Ex,KafkaMessageBinding:Cx,KafkaOperationBinding:Rx,AnypointmqServerBinding:Nx,AnypointmqChannelBinding:Tx,AnypointmqMessageBinding:Ix,AnypointmqOperationBinding:kx,AmqpServerBinding:jx,AmqpChannelBinding:qx,AmqpMessageBinding:Mx,AmqpOperationBinding:Lx,Amqp1ServerBinding:Fx,Amqp1ChannelBinding:Dx,Amqp1MessageBinding:Bx,Amqp1OperationBinding:Ux,MqttServerBindingLastWill:w8,MqttServerBinding:zx,MqttChannelBinding:Vx,MqttMessageBinding:Hx,MqttOperationBinding:Kx,Mqtt5ServerBinding:Yx,Mqtt5ChannelBinding:Gx,Mqtt5MessageBinding:Wx,Mqtt5OperationBinding:Xx,NatsServerBinding:Qx,NatsChannelBinding:Jx,NatsMessageBinding:Zx,NatsOperationBinding:ew,JmsServerBinding:rw,JmsChannelBinding:tw,JmsMessageBinding:nw,JmsOperationBinding:iw,SolaceServerBinding:sw,SolaceChannelBinding:ow,SolaceMessageBinding:aw,SolaceDestination:S8,SolaceOperationBinding:cw,StompServerBinding:uw,StompChannelBinding:lw,StompMessageBinding:pw,StompOperationBinding:fw,RedisServerBinding:mw,RedisChannelBinding:dw,RedisMessageBinding:hw,RedisOperationBinding:yw,MercureServerBinding:bw,MercureChannelBinding:gw,MercureMessageBinding:vw,MercureOperationBinding:xw,ServerBindings:Dt,ChannelBindings:Lt,MessageBindings:Et,OperationBindings:At},bm={...gm,Root:n8,Tag:nm,TagList:X("Tag"),ServerMap:om,ExternalDocs:im,Server:a8,ServerVariable:sm,ServerVariablesMap:K("ServerVariable"),SecurityRequirement:s8,SecurityRequirementList:X("SecurityRequirement"),Info:c8,Contact:am,License:cm,ChannelMap:o8,Channel:i8,Parameter:l8,ParametersMap:K("Parameter"),Operation:d8,Schema:pm,MessageExample:um,SchemaProperties:fm,DiscriminatorMapping:dm,Discriminator:mm,Components:m8,NamedSchemas:K("Schema"),NamedMessages:K("Message"),NamedMessageTraits:K("MessageTrait"),NamedOperationTraits:K("OperationTrait"),NamedParameters:K("Parameter"),NamedSecuritySchemes:K("SecurityScheme"),NamedCorrelationIds:K("CorrelationId"),ImplicitFlow:h8,PasswordFlow:y8,ClientCredentials:g8,AuthorizationCode:b8,SecuritySchemeFlows:hm,SecurityScheme:v8,Message:u8,MessageBindings:Et,OperationBindings:At,OperationTrait:p8,OperationTraitList:X("OperationTrait"),MessageTrait:f8,MessageTraitList:X("MessageTrait"),MessageExampleList:X("MessageExample"),CorrelationId:lm,Dependencies:ym};var _8={properties:{asyncapi:{type:"string",enum:["3.0.0"]},info:"Info",id:{type:"string"},servers:"ServerMap",channels:"NamedChannels",components:"Components",operations:"NamedOperations",defaultContentType:{type:"string"}},required:["asyncapi","info"]},O8={properties:{address:{type:"string"},messages:"NamedMessages",title:{type:"string"},summary:{type:"string"},description:{type:"string"},servers:"ServerList",parameters:"ParametersMap",bindings:"ChannelBindings",tags:"TagList",externalDocs:"ExternalDocs"}},$8={properties:{host:{type:"string"},pathname:{type:"string"},protocol:{type:"string"},protocolVersion:{type:"string"},description:{type:"string"},variables:"ServerVariablesMap",security:"SecuritySchemeList",bindings:"ServerBindings",externalDocs:"ExternalDocs",tags:"TagList"},required:["host","protocol"]},P8={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",tags:"TagList",externalDocs:"ExternalDocs"},required:["title","version"]},E8={properties:{description:{type:"string"},enum:{type:"array",items:{type:"string"}},default:{type:"string"},examples:{type:"array",items:{type:"string"}},location:{type:"string"}}},A8={properties:{headers:"Schema",payload:e=>e&&(e!=null&&e.schemaFormat)?{properties:{schema:"Schema",schemaFormat:{type:"string"}},required:["schema","schemaFormat"]}:"Schema",correlationId:"CorrelationId",contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{}},C8={properties:{tags:"TagList",title:{type:"string"},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",security:"SecuritySchemeList",bindings:"OperationBindings"},required:[]},R8={properties:{headers:e=>typeof e=="function"||typeof e=="object"&&e?{properties:{schema:"Schema",schemaFormat:{type:"string"}}}:"Schema",correlationId:"CorrelationId",contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{}},T8={properties:{action:{type:"string",enum:["send","receive"]},channel:"Channel",title:{type:"string"},tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecuritySchemeList",bindings:"OperationBindings",traits:"OperationTraitList",messages:"MessageList",reply:"OperationReply"},required:["action","channel"]},N8={properties:{channel:"Channel",messages:"MessageList",address:"OperationReplyAddress"}},I8={properties:{location:{type:"string"},description:{type:"string"}},required:["location"]},k8={properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",replies:"NamedOperationReplies",replyAddresses:"NamedOperationRelyAddresses",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",tags:"NamedTags",externalDocs:"NamedExternalDocs",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"NamedChannels",operations:"NamedOperations",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"}},q8={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","availableScopes"]},j8={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"]},M8={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"]},L8={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","availableScopes"]},D8={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie","user","password"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string"},scopes:{type:"array",items:{type:"string"}}},required(e){switch(e==null?void 0:e.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e==null?void 0:e.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description","scopes"];case"openIdConnect":return["type","openIdConnectUrl","description","scopes"];default:return["type","description"]}},extensionsPrefix:"x-"},vm={...gm,CorrelationId:lm,SecuritySchemeFlows:hm,ServerVariable:sm,Contact:am,License:cm,MessageExample:um,Tag:nm,Dependencies:ym,Schema:pm,Discriminator:mm,DiscriminatorMapping:dm,SchemaProperties:fm,ServerMap:om,ExternalDocs:im,Root:_8,Channel:O8,Parameter:E8,Info:P8,Server:$8,MessageTrait:R8,Operation:T8,OperationReply:N8,OperationReplyAddress:I8,Components:k8,ImplicitFlow:q8,PasswordFlow:j8,ClientCredentials:M8,AuthorizationCode:L8,SecurityScheme:D8,Message:A8,OperationTrait:C8,ServerVariablesMap:K("ServerVariable"),NamedTags:K("Tag"),NamedExternalDocs:K("ExternalDocs"),NamedChannels:K("Channel"),ParametersMap:K("Parameter"),NamedOperations:K("Operation"),NamedOperationReplies:K("OperationReply"),NamedOperationRelyAddresses:K("OperationReplyAddress"),NamedSchemas:K("Schema"),NamedMessages:K("Message"),NamedMessageTraits:K("MessageTrait"),NamedOperationTraits:K("OperationTrait"),NamedParameters:K("Parameter"),NamedSecuritySchemes:K("SecurityScheme"),NamedCorrelationIds:K("CorrelationId"),ServerList:X("Server"),SecuritySchemeList:X("SecurityScheme"),MessageList:X("Message"),OperationTraitList:X("OperationTrait"),MessageTraitList:X("MessageTrait"),MessageExampleList:X("MessageExample"),TagList:X("Tag")};var F8={properties:{arazzo:{type:"string"},info:"Info",sourceDescriptions:"SourceDescriptions",workflows:"Workflows",components:"Components"},required:["arazzo","info","sourceDescriptions","workflows"],extensionsPrefix:"x-"},B8={properties:{},additionalProperties:"Parameter"},U8={properties:{},additionalProperties:"SuccessActionObject"},V8={properties:{},additionalProperties:"FailureActionObject"},z8={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},H8=K("Schema"),K8={properties:{title:{type:"string"},description:{type:"string"},summary:{type:"string"},version:{type:"string"}},required:["title","version"],extensionsPrefix:"x-"},G8={properties:{},items:e=>(e==null?void 0:e.type)==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},Y8={properties:{name:{type:"string"},type:{type:"string",enum:["openapi"]},url:{type:"string"},"x-serverUrl":{type:"string"}},required:["name","type","url"],extensionsPrefix:"x-"},W8={properties:{name:{type:"string"},type:{type:"string",enum:["arazzo"]},url:{type:"string"}},required:["name","type","url"],extensionsPrefix:"x-"},X8={properties:{reference:{type:"string"},value:{}},required:["reference"],extensionsPrefix:"x-"},J8={properties:{in:{type:"string",enum:["header","query","path","cookie"]},name:{type:"string"},value:{}},required:["name","value"],extensionsPrefix:"x-"},Q8={properties:{},items:e=>e!=null&&e.reference?"ReusableObject":"Parameter"},Z8={properties:{workflowId:{type:"string"},summary:{type:"string"},description:{type:"string"},parameters:"Parameters",dependsOn:{type:"array",items:{type:"string"}},inputs:"Schema",outputs:"Outputs",steps:"Steps",successActions:"OnSuccessActionList",failureActions:"OnFailureActionList","x-security":"ExtendedSecurityList"},required:["workflowId","steps"],extensionsPrefix:"x-"},e4=X("Workflow"),t4=X("Step"),r4={properties:{stepId:{type:"string"},description:{type:"string"},operationId:{type:"string"},operationPath:{type:"string"},workflowId:{type:"string"},parameters:"Parameters",successCriteria:X("CriterionObject"),onSuccess:"OnSuccessActionList",onFailure:"OnFailureActionList",outputs:"Outputs","x-operation":"ExtendedOperation","x-security":"ExtendedSecurityList",requestBody:"RequestBody"},required:["stepId"],requiredOneOf:["x-operation","operationId","operationPath","workflowId"],extensionsPrefix:"x-"},n4={properties:{},additionalProperties:{type:"string"}},i4={properties:{contentType:{type:"string"},payload:{},replacements:X("Replacement")},required:["payload"],extensionsPrefix:"x-"},o4={properties:{target:{type:"string"},value:{}},required:["target","value"],extensionsPrefix:"x-"},s4={properties:{schemeName:{type:"string"},values:{},scheme:"SecurityScheme"},required:["values"],requiredOneOf:["schemeName","scheme"]},a4={properties:{url:{type:"string"},method:{enum:["get","post","put","delete","patch","head","options","trace","connect","query","GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","QUERY"]}},required:["url","method"]},c4={properties:{condition:{type:"string"},context:{type:"string"},type:e=>{if(e)return typeof e=="string"?{enum:["regex","jsonpath","simple","xpath"]}:(e==null?void 0:e.type)==="jsonpath"?"JSONPathCriterion":"XPathCriterion"}},required:["condition"]},l4={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},u4={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},p4={properties:{name:{type:"string"},type:{type:"string",enum:["goto","end"]},stepId:{type:"string"},workflowId:{type:"string"},criteria:X("CriterionObject")},required:["type","name"]},f4={properties:{},items:e=>e!=null&&e.type&&(e!=null&&e.name)?"SuccessActionObject":"ReusableObject"},d4={properties:{name:{type:"string"},type:{type:"string",enum:["goto","retry","end"]},workflowId:{type:"string"},stepId:{type:"string"},retryAfter:{type:"number",minimum:0},retryLimit:{type:"number",minimum:0},criteria:X("CriterionObject")},required:["type","name"]},m4={properties:{},items:e=>e!=null&&e.type&&(e!=null&&e.name)?"FailureActionObject":"ReusableObject"},xm={Root:F8,Info:K8,SourceDescriptions:G8,OpenAPISourceDescription:Y8,ArazzoSourceDescription:W8,Parameters:Q8,Parameter:J8,ReusableObject:X8,Workflows:e4,Workflow:Z8,Steps:t4,Step:r4,RequestBody:i4,Replacement:o4,ExtendedOperation:a4,ExtendedSecurityList:X("ExtendedSecurity"),ExtendedSecurity:s4,Outputs:n4,CriterionObject:c4,XPathCriterion:u4,JSONPathCriterion:l4,SuccessActionObject:p4,OnSuccessActionList:f4,FailureActionObject:d4,OnFailureActionList:m4,Schema:lt.Schema,NamedSchemas:K("Schema"),ExternalDocs:lt.ExternalDocs,DiscriminatorMapping:lt.DiscriminatorMapping,Discriminator:lt.Discriminator,DependentRequired:lt.DependentRequired,SchemaProperties:lt.SchemaProperties,PatternProperties:lt.SchemaProperties,Components:z8,NamedInputs:H8,NamedParameters:B8,NamedSuccessActions:U8,NamedFailureActions:V8,Xml:lt.Xml,SecurityScheme:lt.SecurityScheme,OAuth2Flows:lt.OAuth2Flows,ImplicitFlow:lt.ImplicitFlow,PasswordFlow:lt.PasswordFlow,ClientCredentials:lt.ClientCredentials,AuthorizationCode:lt.AuthorizationCode,DeviceAuthorization:lt.DeviceAuthorization};var h4={properties:{overlay:{type:"string"},info:"Info",extends:{type:"string"},actions:"Actions"},required:["overlay","info","actions"],extensionsPrefix:"x-"},y4={properties:{title:{type:"string"},version:{type:"string"}},required:["title","version"],extensionsPrefix:"x-"},g4=X("Action"),b4={properties:{target:{type:"string"},description:{type:"string"},update:{},remove:{type:"boolean"}},required:["target"],extensionsPrefix:"x-"},wm={Root:h4,Info:y4,Actions:g4,Action:b4};var qO=Ee(require("path"),1),Hy=Ee(Im(),1);var Xw=["oas2","oas3_0","oas3_1","oas3_2","async2","async3","arazzo1","overlay1"],LL={oas2:tm,oas3_0:Kn,oas3_1:Le,oas3_2:lt,async2:bm,async3:vm,arazzo1:xm,overlay1:wm};function Hi(e){return LL[e]}function Jw(e){return e.includes("/")}function Qw(e,t){let r={...e};return t.forEach(n=>{delete r[n]}),r}var IO=Ee(zy(),1);var jF=new IO.default({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0});function NO(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(i=>jF.validate(i,r));return n===-1&&(n=0),t[n]}}function os(e,t,r){var n;if(!t||typeof t=="boolean")throw new Error(`Unexpected schema in ${e}.`);if(t instanceof Array)throw new Error(`Unexpected array schema in ${e}. Try using oneOf instead.`);if(t.type==="null")throw new Error(`Unexpected null schema type in ${e} schema.`);if(t.type instanceof Array)throw new Error(`Unexpected array schema type in ${e} schema. Try using oneOf instead.`);if(t.type==="string"||t.type==="number"||t.type==="integer"||t.type==="boolean"){let{default:i,format:o,...s}=t;return s}if(t.type==="object"&&!t.properties&&!t.oneOf){if(t.additionalProperties===void 0||t.additionalProperties===!0)return{type:"object"};if(t.additionalProperties===!1)return{type:"object",properties:{}}}if(t.allOf)throw new Error(`Unexpected allOf in ${e}.`);if(t.anyOf)throw new Error(`Unexpected anyOf in ${e}.`);if(W(t.properties)||W(t.additionalProperties)||W(t.items)&&(W(t.items.properties)||W(t.items.additionalProperties)||t.items.oneOf))return MF(e,t,r);if(t.oneOf)if(t.discriminator){let i=(n=t.discriminator)==null?void 0:n.propertyName;if(!i)throw new Error(`Unexpected discriminator without a propertyName in ${e}.`);let o=t.oneOf.map((s,a)=>{var u;if(typeof s=="boolean")throw new Error(`Unexpected boolean schema in ${e} at position ${a} in oneOf.`);let c=(u=s==null?void 0:s.properties)==null?void 0:u[i];if(!c||typeof c=="boolean")throw new Error(`Unexpected property '${c}' schema in ${e} at position ${a} in oneOf.`);let l=c.const;return os(l,s,r)});return(s,a)=>{if(W(s)){let c=s[i];if(typeof c=="string"&&r[c])return c}return NO(t.oneOf,o)(s,a)}}else{let i=t.oneOf.map((o,s)=>os(e+"_"+s,o,r));return NO(t.oneOf,i)}return t}function MF(e,t,r){if(!t||typeof t=="boolean")throw new Error(`Unexpected schema in ${e}.`);if(t instanceof Array)throw new Error(`Unexpected array schema in ${e}. Try using oneOf instead.`);if(t.type==="null")throw new Error(`Unexpected null schema type in ${e} schema.`);if(t.type instanceof Array)throw new Error(`Unexpected array schema type in ${e} schema. Try using oneOf instead.`);let n={};for(let[a,c]of Object.entries(t.properties||{}))n[a]=os(e+"."+a,c,r);let i;W(t.additionalProperties)&&(i=os(e+"_additionalProperties",t.additionalProperties,r)),t.additionalProperties===!0&&(i={});let o;W(t.items)&&(W(t.items.properties)||W(t.items.additionalProperties)||t.items.oneOf)&&(o=os(e+"_items",t.items,r));let s=t.required;return t.oneOf&&t.oneOf.every(a=>!!a.required)&&(s=a=>{let c=t.oneOf.map(u=>[...t.required||[],...u.required]),l=c.findIndex(u=>u.every(p=>a[p]!==void 0));return l===-1&&(l=0),c[l]}),r[e]={properties:n,additionalProperties:i,items:o,required:s},e}function kO(e,t){let r={};return os(e,t,r),r}var LF=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-enum-type-mismatch","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","spec-strict-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","request-mime-type","response-contains-property","response-mime-type","no-duplicated-tag-names"],DF=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-enum-type-mismatch","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","spec-strict-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","component-name-unique","no-empty-servers","no-example-value-and-externalValue","no-invalid-media-type-examples","no-server-example.com","no-server-trailing-slash","no-server-variables-empty-enum","no-undefined-server-variable","no-unused-components","operation-4xx-problem-details-rfc7807","request-mime-type","response-contains-property","response-mime-type","spec-components-invalid-map-name","array-parameter-serialization","no-duplicated-tag-names","nullable-type-sibling","spec-no-invalid-tag-parents","spec-no-invalid-encoding-combinations","spec-discriminator-defaultMapping","spec-example-values"],FF=["info-contact","info-license-strict","operation-operationId","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-enum-type-mismatch","no-schema-type-mismatch"],BF=["info-contact","info-license-strict","operation-operationId","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-enum-type-mismatch","no-schema-type-mismatch"],UF=["sourceDescription-type","workflowId-unique","stepId-unique","sourceDescription-name-unique","sourceDescriptions-not-empty","workflow-dependsOn","parameters-unique","step-onSuccess-unique","step-onFailure-unique","respect-supported-versions","requestBody-replacements-unique","no-criteria-xpath","criteria-unique","no-x-security-scheme-name-without-openapi","x-security-scheme-required-values","no-x-security-scheme-name-in-workflow","no-required-schema-properties-undefined","no-enum-type-mismatch","no-schema-type-mismatch"],VF=["info-contact"],zF=["struct","no-unresolved-refs"],HF=[...LF,...DF,...FF,...BF,...UF,...VF,...zF],jO={extends:{name:"ConfigGovernanceList",properties:{},items:e=>typeof e=="string"&&!Je(e)&&!qO.default.extname(e)?{type:"string"}:{...Ya,directResolveAs:{name:"ConfigGovernance",...Ya}}},plugins:{type:"array",items:{type:"string"}},rules:"Rules",oas2Rules:"Rules",oas3_0Rules:"Rules",oas3_1Rules:"Rules",oas3_2Rules:"Rules",async2Rules:"Rules",async3Rules:"Rules",arazzo1Rules:"Rules",overlay1Rules:"Rules",preprocessors:{type:"object"},oas2Preprocessors:{type:"object"},oas3_0Preprocessors:{type:"object"},oas3_1Preprocessors:{type:"object"},oas3_2Preprocessors:{type:"object"},async2Preprocessors:{type:"object"},async3Preprocessors:{type:"object"},arazzo1Preprocessors:{type:"object"},overlay1Preprocessors:{type:"object"},decorators:{type:"object"},oas2Decorators:{type:"object"},oas3_0Decorators:{type:"object"},oas3_1Decorators:{type:"object"},oas3_2Decorators:{type:"object"},async2Decorators:{type:"object"},async3Decorators:{type:"object"},arazzo1Decorators:{type:"object"},overlay1Decorators:{type:"object"}},Ya={properties:jO},KF=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...Ya.properties,apis:"ConfigApis",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),GF={properties:{},additionalProperties:"ConfigApisProperties"},YF=e=>{var t;return{...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...(t=e["rootRedoclyConfigSchema.apis_additionalProperties"])==null?void 0:t.properties,...Qw(Ya.properties,["plugins"])}}},WF={properties:{headers:{type:"array",items:{type:"string"}}}},XF={properties:{},additionalProperties:(e,t)=>{if(t.startsWith("rule/"))return typeof e=="string"?{enum:["error","warn","off"]}:"Assert";if(HF.includes(t)||Jw(t))return typeof e=="string"?{enum:["error","warn","off"]}:"ObjectRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},JF={properties:{severity:{enum:["error","warn","off"]}},additionalProperties:{},required:["severity"]},QF={properties:{properties:K("Schema")},additionalProperties:{}};function ZF(e){return{properties:{type:{enum:[...new Set(["any",...e,"SpecExtension"])]},property:t=>Array.isArray(t)?{type:"array",items:{type:"string"}}:t===null?null:{type:"string"},filterInParentKeys:{type:"array",items:{type:"string"}},filterOutParentKeys:{type:"array",items:{type:"string"}},matchParentKeys:{type:"string"}},required:["type"]}}function eB(e){var t;return{...e["rootRedoclyConfigSchema.scorecard.levels_items"],properties:{...(t=e["rootRedoclyConfigSchema.scorecard.levels_items"])==null?void 0:t.properties,...jO}}}var tB={properties:{enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},notPattern:{type:"string"},casing:{enum:["camelCase","kebab-case","snake_case","PascalCase","MACRO_CASE","COBOL-CASE","flatcase"]},mutuallyExclusive:{type:"array",items:{type:"string"}},mutuallyRequired:{type:"array",items:{type:"string"}},required:{type:"array",items:{type:"string"}},requireAny:{type:"array",items:{type:"string"}},disallowed:{type:"array",items:{type:"string"}},defined:{type:"boolean"},nonEmpty:{type:"boolean"},minLength:{type:"integer"},maxLength:{type:"integer"},ref:e=>typeof e=="string"?{type:"string"}:{type:"boolean"},const:e=>{if(typeof e=="string")return{type:"string"};if(typeof e=="number")return{type:"number"};if(typeof e=="boolean")return{type:"boolean"}}},additionalProperties:(e,t)=>{if(/^\w+\/\w+$/.test(t))return{}}},rB={properties:{subject:"AssertionDefinitionSubject",assertions:"AssertionDefinitionAssertions"},required:["subject","assertions"]},nB={properties:{subject:"AssertionDefinitionSubject",assertions:"AssertionDefinitionAssertions",where:X("AssertDefinition"),message:{type:"string"},suggest:{type:"array",items:{type:"string"}},severity:{enum:["error","warn","off"]}},required:["subject","assertions"]};function Ky(e,t){let r=Xw.flatMap(i=>{let o=t?t.extendTypes(Hi(i),i):Hi(i);return Object.keys(o)}),n=kO("rootRedoclyConfigSchema",e);return{...iB,ConfigRoot:KF(n),ConfigApisProperties:YF(n),AssertionDefinitionSubject:ZF(r),...n,"rootRedoclyConfigSchema.scorecard.levels_items":eB(n)}}var iB={Assert:nB,ConfigApis:GF,ConfigGovernance:Ya,ConfigHTTP:WF,AssertDefinition:rB,ObjectRule:JF,Schema:QF,Rules:XF,AssertionDefinitionAssertions:tB};delete Hy.rootRedoclyConfigSchema.properties.theme;var MO=Ky(Hy.rootRedoclyConfigSchema),ei=Lo(MO);var Fu=Ee(require("fs"),1),lr=Ee(require("path"),1);function ZO(e){return typeof e>"u"||e===null}function oB(e){return typeof e=="object"&&e!==null}function sB(e){return Array.isArray(e)?e:ZO(e)?[]:[e]}function aB(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=t[i];return e}function cB(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function lB(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var uB=ZO,pB=oB,fB=sB,dB=cB,mB=lB,hB=aB,pt={isNothing:uB,isObject:pB,toArray:fB,repeat:dB,isNegativeZero:mB,extend:hB};function e$(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
207
207
 
208
208
  `+e.mark.snippet),n+" "+r):n}function Xa(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=e$(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Xa.prototype=Object.create(Error.prototype);Xa.prototype.constructor=Xa;Xa.prototype.toString=function(t){return this.name+": "+e$(this,t)};var Zt=Xa;function Gy(e,t,r,n,i){var o="",s="",a=Math.floor(i/2)-1;return n-t>a&&(o=" ... ",t=n-a+o.length),r-n>a&&(s=" ...",r=n+a-s.length),{str:o+e.slice(t,r).replace(/\t/g,"\u2192")+s,pos:n-t+o.length}}function Yy(e,t){return pt.repeat(" ",t-e.length)+e}function yB(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],o,s=-1;o=r.exec(e.buffer);)i.push(o.index),n.push(o.index+o[0].length),e.position<=o.index&&s<0&&(s=n.length-2);s<0&&(s=n.length-1);var a="",c,l,u=Math.min(e.line+t.linesAfter,i.length).toString().length,p=t.maxLength-(t.indent+u+3);for(c=1;c<=t.linesBefore&&!(s-c<0);c++)l=Gy(e.buffer,n[s-c],i[s-c],e.position-(n[s]-n[s-c]),p),a=pt.repeat(" ",t.indent)+Yy((e.line-c+1).toString(),u)+" | "+l.str+`
209
209
  `+a;for(l=Gy(e.buffer,n[s],i[s],e.position,p),a+=pt.repeat(" ",t.indent)+Yy((e.line+1).toString(),u)+" | "+l.str+`
210
210
  `,a+=pt.repeat("-",t.indent+u+3+l.pos)+`^
211
211
  `,c=1;c<=t.linesAfter&&!(s+c>=i.length);c++)l=Gy(e.buffer,n[s+c],i[s+c],e.position-(n[s]-n[s+c]),p),a+=pt.repeat(" ",t.indent)+Yy((e.line+c+1).toString(),u)+" | "+l.str+`
212
212
  `;return a.replace(/\n$/,"")}var gB=yB,bB=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],vB=["scalar","sequence","mapping"];function xB(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function wB(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(bB.indexOf(r)===-1)throw new Zt('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=xB(t.styleAliases||null),vB.indexOf(this.kind)===-1)throw new Zt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Ct=wB;function LO(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(o,s){o.tag===n.tag&&o.kind===n.kind&&o.multi===n.multi&&(i=s)}),r[i]=n}),r}function SB(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function Xy(e){return this.extend(e)}Xy.prototype.extend=function(t){var r=[],n=[];if(t instanceof Ct)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new Zt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(o){if(!(o instanceof Ct))throw new Zt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Zt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new Zt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(o){if(!(o instanceof Ct))throw new Zt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Xy.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=LO(i,"implicit"),i.compiledExplicit=LO(i,"explicit"),i.compiledTypeMap=SB(i.compiledImplicit,i.compiledExplicit),i};var _B=Xy,t$=new Ct("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),r$=new Ct("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),n$=new Ct("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),OB=new _B({explicit:[t$,r$,n$]});function $B(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function PB(){return null}function EB(e){return e===null}var i$=new Ct("tag:yaml.org,2002:null",{kind:"scalar",resolve:$B,construct:PB,predicate:EB,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function AB(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function CB(e){return e==="true"||e==="True"||e==="TRUE"}function RB(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var o$=new Ct("tag:yaml.org,2002:bool",{kind:"scalar",resolve:AB,construct:CB,predicate:RB,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function TB(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function NB(e){return 48<=e&&e<=55}function IB(e){return 48<=e&&e<=57}function kB(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!TB(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!NB(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!IB(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function qB(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function jB(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!pt.isNegativeZero(e)}var s$=new Ct("tag:yaml.org,2002:int",{kind:"scalar",resolve:kB,construct:qB,predicate:jB,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),MB=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function LB(e){return!(e===null||!MB.test(e)||e[e.length-1]==="_")}function DB(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var FB=/^[-+]?[0-9]+e/;function BB(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(pt.isNegativeZero(e))return"-0.0";return r=e.toString(10),FB.test(r)?r.replace("e",".e"):r}function UB(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||pt.isNegativeZero(e))}var a$=new Ct("tag:yaml.org,2002:float",{kind:"scalar",resolve:LB,construct:DB,predicate:UB,represent:BB,defaultStyle:"lowercase"}),c$=OB.extend({implicit:[i$,o$,s$,a$]}),VB=c$,l$=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),u$=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function zB(e){return e===null?!1:l$.exec(e)!==null||u$.exec(e)!==null}function HB(e){var t,r,n,i,o,s,a,c=0,l=null,u,p,m;if(t=l$.exec(e),t===null&&(t=u$.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(o=+t[4],s=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(u=+t[10],p=+(t[11]||0),l=(u*60+p)*6e4,t[9]==="-"&&(l=-l)),m=new Date(Date.UTC(r,n,i,o,s,a,c)),l&&m.setTime(m.getTime()-l),m}function KB(e){return e.toISOString()}var p$=new Ct("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:zB,construct:HB,instanceOf:Date,represent:KB});function GB(e){return e==="<<"||e===null}var f$=new Ct("tag:yaml.org,2002:merge",{kind:"scalar",resolve:GB}),tg=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
213
- \r`;function YB(e){if(e===null)return!1;var t,r,n=0,i=e.length,o=tg;for(r=0;r<i;r++)if(t=o.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function WB(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=tg,s=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):r===18?(a.push(s>>10&255),a.push(s>>2&255)):r===12&&a.push(s>>4&255),new Uint8Array(a)}function XB(e){var t="",r=0,n,i,o=e.length,s=tg;for(n=0;n<o;n++)n%3===0&&n&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[n];return i=o%3,i===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):i===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):i===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function JB(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var d$=new Ct("tag:yaml.org,2002:binary",{kind:"scalar",resolve:YB,construct:WB,predicate:JB,represent:XB}),QB=Object.prototype.hasOwnProperty,ZB=Object.prototype.toString;function eU(e){if(e===null)return!0;var t=[],r,n,i,o,s,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],s=!1,ZB.call(i)!=="[object Object]")return!1;for(o in i)if(QB.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function tU(e){return e!==null?e:[]}var m$=new Ct("tag:yaml.org,2002:omap",{kind:"sequence",resolve:eU,construct:tU}),rU=Object.prototype.toString;function nU(e){if(e===null)return!0;var t,r,n,i,o,s=e;for(o=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(n=s[t],rU.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[t]=[i[0],n[i[0]]]}return!0}function iU(e){if(e===null)return[];var t,r,n,i,o,s=e;for(o=new Array(s.length),t=0,r=s.length;t<r;t+=1)n=s[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}var h$=new Ct("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:nU,construct:iU}),oU=Object.prototype.hasOwnProperty;function sU(e){if(e===null)return!0;var t,r=e;for(t in r)if(oU.call(r,t)&&r[t]!==null)return!1;return!0}function aU(e){return e!==null?e:{}}var y$=new Ct("tag:yaml.org,2002:set",{kind:"mapping",resolve:sU,construct:aU}),g$=VB.extend({implicit:[p$,f$],explicit:[d$,m$,h$,y$]}),ri=Object.prototype.hasOwnProperty,Eu=1,b$=2,v$=3,Au=4,Wy=1,cU=2,DO=3,lU=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,uU=/[\x85\u2028\u2029]/,pU=/[,\[\]\{\}]/,x$=/^(?:!|!!|![a-z\-]+!)$/i,w$=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function FO(e){return Object.prototype.toString.call(e)}function Zr(e){return e===10||e===13}function no(e){return e===9||e===32}function er(e){return e===9||e===32||e===10||e===13}function as(e){return e===44||e===91||e===93||e===123||e===125}function fU(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function dU(e){return e===120?2:e===117?4:e===85?8:0}function mU(e){return 48<=e&&e<=57?e-48:-1}function BO(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
214
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function hU(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var S$=new Array(256),_$=new Array(256);for(ro=0;ro<256;ro++)S$[ro]=BO(ro)?1:0,_$[ro]=BO(ro);var ro;function yU(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||g$,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function O$(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=gB(r),new Zt(t,r)}function Q(e,t){throw O$(e,t)}function Cu(e,t){e.onWarning&&e.onWarning.call(null,O$(e,t))}var UO={YAML:function(t,r,n){var i,o,s;t.version!==null&&Q(t,"duplication of %YAML directive"),n.length!==1&&Q(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&Q(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&Q(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&Cu(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,o;n.length!==2&&Q(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],x$.test(i)||Q(t,"ill-formed tag handle (first argument) of the TAG directive"),ri.call(t.tagMap,i)&&Q(t,'there is a previously declared suffix for "'+i+'" tag handle'),w$.test(o)||Q(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{Q(t,"tag prefix is malformed: "+o)}t.tagMap[i]=o}};function ti(e,t,r,n){var i,o,s,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,o=a.length;i<o;i+=1)s=a.charCodeAt(i),s===9||32<=s&&s<=1114111||Q(e,"expected valid JSON character");else lU.test(a)&&Q(e,"the stream contains non-printable characters");e.result+=a}}function VO(e,t,r,n){var i,o,s,a;for(pt.isObject(r)||Q(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),s=0,a=i.length;s<a;s+=1)o=i[s],ri.call(t,o)||(t[o]=r[o],n[o]=!0)}function cs(e,t,r,n,i,o,s,a,c){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&Q(e,"nested arrays are not supported inside keys"),typeof i=="object"&&FO(i[l])==="[object Object]"&&(i[l]="[object Object]");if(typeof i=="object"&&FO(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(l=0,u=o.length;l<u;l+=1)VO(e,t,o[l],r);else VO(e,t,o,r);else!e.json&&!ri.call(r,i)&&ri.call(t,i)&&(e.line=s||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,Q(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:o}):t[i]=o,delete r[i];return t}function rg(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Q(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function nt(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;no(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Zr(i))for(rg(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&Cu(e,"deficient indentation"),n}function Nu(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||er(r)))}function ng(e,t){t===1?e.result+=" ":t>1&&(e.result+=pt.repeat(`
215
- `,t-1))}function gU(e,t,r){var n,i,o,s,a,c,l,u,p=e.kind,m=e.result,d;if(d=e.input.charCodeAt(e.position),er(d)||as(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),er(i)||r&&as(i)))return!1;for(e.kind="scalar",e.result="",o=s=e.position,a=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),er(i)||r&&as(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),er(n))break}else{if(e.position===e.lineStart&&Nu(e)||r&&as(d))break;if(Zr(d))if(c=e.line,l=e.lineStart,u=e.lineIndent,nt(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=c,e.lineStart=l,e.lineIndent=u;break}}a&&(ti(e,o,s,!1),ng(e,e.line-c),o=s=e.position,a=!1),no(d)||(s=e.position+1),d=e.input.charCodeAt(++e.position)}return ti(e,o,s,!1),e.result?!0:(e.kind=p,e.result=m,!1)}function bU(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(ti(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else Zr(r)?(ti(e,n,i,!0),ng(e,nt(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Nu(e)?Q(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Q(e,"unexpected end of the stream within a single quoted scalar")}function vU(e,t){var r,n,i,o,s,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return ti(e,r,e.position,!0),e.position++,!0;if(a===92){if(ti(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),Zr(a))nt(e,!1,t);else if(a<256&&S$[a])e.result+=_$[a],e.position++;else if((s=dU(a))>0){for(i=s,o=0;i>0;i--)a=e.input.charCodeAt(++e.position),(s=fU(a))>=0?o=(o<<4)+s:Q(e,"expected hexadecimal character");e.result+=hU(o),e.position++}else Q(e,"unknown escape sequence");r=n=e.position}else Zr(a)?(ti(e,r,n,!0),ng(e,nt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Nu(e)?Q(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Q(e,"unexpected end of the stream within a double quoted scalar")}function xU(e,t){var r=!0,n,i,o,s=e.tag,a,c=e.anchor,l,u,p,m,d,f=Object.create(null),h,y,b,g;if(g=e.input.charCodeAt(e.position),g===91)u=93,d=!1,a=[];else if(g===123)u=125,d=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),g=e.input.charCodeAt(++e.position);g!==0;){if(nt(e,!0,t),g=e.input.charCodeAt(e.position),g===u)return e.position++,e.tag=s,e.anchor=c,e.kind=d?"mapping":"sequence",e.result=a,!0;r?g===44&&Q(e,"expected the node content, but found ','"):Q(e,"missed comma between flow collection entries"),y=h=b=null,p=m=!1,g===63&&(l=e.input.charCodeAt(e.position+1),er(l)&&(p=m=!0,e.position++,nt(e,!0,t))),n=e.line,i=e.lineStart,o=e.position,ls(e,t,Eu,!1,!0),y=e.tag,h=e.result,nt(e,!0,t),g=e.input.charCodeAt(e.position),(m||e.line===n)&&g===58&&(p=!0,g=e.input.charCodeAt(++e.position),nt(e,!0,t),ls(e,t,Eu,!1,!0),b=e.result),d?cs(e,a,f,y,h,b,n,i,o):p?a.push(cs(e,null,f,y,h,b,n,i,o)):a.push(h),nt(e,!0,t),g=e.input.charCodeAt(e.position),g===44?(r=!0,g=e.input.charCodeAt(++e.position)):r=!1}Q(e,"unexpected end of the stream within a flow collection")}function wU(e,t){var r,n,i=Wy,o=!1,s=!1,a=t,c=0,l=!1,u,p;if(p=e.input.charCodeAt(e.position),p===124)n=!1;else if(p===62)n=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)Wy===i?i=p===43?DO:cU:Q(e,"repeat of a chomping mode identifier");else if((u=mU(p))>=0)u===0?Q(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?Q(e,"repeat of an indentation width identifier"):(a=t+u-1,s=!0);else break;if(no(p)){do p=e.input.charCodeAt(++e.position);while(no(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!Zr(p)&&p!==0)}for(;p!==0;){for(rg(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!s||e.lineIndent<a)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>a&&(a=e.lineIndent),Zr(p)){c++;continue}if(e.lineIndent<a){i===DO?e.result+=pt.repeat(`
213
+ \r`;function YB(e){if(e===null)return!1;var t,r,n=0,i=e.length,o=tg;for(r=0;r<i;r++)if(t=o.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function WB(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=tg,s=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):r===18?(a.push(s>>10&255),a.push(s>>2&255)):r===12&&a.push(s>>4&255),new Uint8Array(a)}function XB(e){var t="",r=0,n,i,o=e.length,s=tg;for(n=0;n<o;n++)n%3===0&&n&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[n];return i=o%3,i===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):i===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):i===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function JB(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var d$=new Ct("tag:yaml.org,2002:binary",{kind:"scalar",resolve:YB,construct:WB,predicate:JB,represent:XB}),QB=Object.prototype.hasOwnProperty,ZB=Object.prototype.toString;function eU(e){if(e===null)return!0;var t=[],r,n,i,o,s,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],s=!1,ZB.call(i)!=="[object Object]")return!1;for(o in i)if(QB.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function tU(e){return e!==null?e:[]}var m$=new Ct("tag:yaml.org,2002:omap",{kind:"sequence",resolve:eU,construct:tU}),rU=Object.prototype.toString;function nU(e){if(e===null)return!0;var t,r,n,i,o,s=e;for(o=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(n=s[t],rU.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[t]=[i[0],n[i[0]]]}return!0}function iU(e){if(e===null)return[];var t,r,n,i,o,s=e;for(o=new Array(s.length),t=0,r=s.length;t<r;t+=1)n=s[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}var h$=new Ct("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:nU,construct:iU}),oU=Object.prototype.hasOwnProperty;function sU(e){if(e===null)return!0;var t,r=e;for(t in r)if(oU.call(r,t)&&r[t]!==null)return!1;return!0}function aU(e){return e!==null?e:{}}var y$=new Ct("tag:yaml.org,2002:set",{kind:"mapping",resolve:sU,construct:aU}),g$=VB.extend({implicit:[p$,f$],explicit:[d$,m$,h$,y$]}),ri=Object.prototype.hasOwnProperty,Eu=1,b$=2,v$=3,Au=4,Wy=1,cU=2,DO=3,lU=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,uU=/[\x85\u2028\u2029]/,pU=/[,\[\]\{\}]/,x$=/^(?:!|!!|![a-z\-]+!)$/i,w$=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function FO(e){return Object.prototype.toString.call(e)}function en(e){return e===10||e===13}function no(e){return e===9||e===32}function er(e){return e===9||e===32||e===10||e===13}function as(e){return e===44||e===91||e===93||e===123||e===125}function fU(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function dU(e){return e===120?2:e===117?4:e===85?8:0}function mU(e){return 48<=e&&e<=57?e-48:-1}function BO(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
214
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function hU(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var S$=new Array(256),_$=new Array(256);for(ro=0;ro<256;ro++)S$[ro]=BO(ro)?1:0,_$[ro]=BO(ro);var ro;function yU(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||g$,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function O$(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=gB(r),new Zt(t,r)}function Q(e,t){throw O$(e,t)}function Cu(e,t){e.onWarning&&e.onWarning.call(null,O$(e,t))}var UO={YAML:function(t,r,n){var i,o,s;t.version!==null&&Q(t,"duplication of %YAML directive"),n.length!==1&&Q(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&Q(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&Q(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&Cu(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,o;n.length!==2&&Q(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],x$.test(i)||Q(t,"ill-formed tag handle (first argument) of the TAG directive"),ri.call(t.tagMap,i)&&Q(t,'there is a previously declared suffix for "'+i+'" tag handle'),w$.test(o)||Q(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{Q(t,"tag prefix is malformed: "+o)}t.tagMap[i]=o}};function ti(e,t,r,n){var i,o,s,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,o=a.length;i<o;i+=1)s=a.charCodeAt(i),s===9||32<=s&&s<=1114111||Q(e,"expected valid JSON character");else lU.test(a)&&Q(e,"the stream contains non-printable characters");e.result+=a}}function VO(e,t,r,n){var i,o,s,a;for(pt.isObject(r)||Q(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),s=0,a=i.length;s<a;s+=1)o=i[s],ri.call(t,o)||(t[o]=r[o],n[o]=!0)}function cs(e,t,r,n,i,o,s,a,c){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&Q(e,"nested arrays are not supported inside keys"),typeof i=="object"&&FO(i[l])==="[object Object]"&&(i[l]="[object Object]");if(typeof i=="object"&&FO(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(l=0,u=o.length;l<u;l+=1)VO(e,t,o[l],r);else VO(e,t,o,r);else!e.json&&!ri.call(r,i)&&ri.call(t,i)&&(e.line=s||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,Q(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:o}):t[i]=o,delete r[i];return t}function rg(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Q(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function nt(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;no(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(en(i))for(rg(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&Cu(e,"deficient indentation"),n}function Nu(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||er(r)))}function ng(e,t){t===1?e.result+=" ":t>1&&(e.result+=pt.repeat(`
215
+ `,t-1))}function gU(e,t,r){var n,i,o,s,a,c,l,u,p=e.kind,m=e.result,d;if(d=e.input.charCodeAt(e.position),er(d)||as(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),er(i)||r&&as(i)))return!1;for(e.kind="scalar",e.result="",o=s=e.position,a=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),er(i)||r&&as(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),er(n))break}else{if(e.position===e.lineStart&&Nu(e)||r&&as(d))break;if(en(d))if(c=e.line,l=e.lineStart,u=e.lineIndent,nt(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=c,e.lineStart=l,e.lineIndent=u;break}}a&&(ti(e,o,s,!1),ng(e,e.line-c),o=s=e.position,a=!1),no(d)||(s=e.position+1),d=e.input.charCodeAt(++e.position)}return ti(e,o,s,!1),e.result?!0:(e.kind=p,e.result=m,!1)}function bU(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(ti(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else en(r)?(ti(e,n,i,!0),ng(e,nt(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Nu(e)?Q(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Q(e,"unexpected end of the stream within a single quoted scalar")}function vU(e,t){var r,n,i,o,s,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return ti(e,r,e.position,!0),e.position++,!0;if(a===92){if(ti(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),en(a))nt(e,!1,t);else if(a<256&&S$[a])e.result+=_$[a],e.position++;else if((s=dU(a))>0){for(i=s,o=0;i>0;i--)a=e.input.charCodeAt(++e.position),(s=fU(a))>=0?o=(o<<4)+s:Q(e,"expected hexadecimal character");e.result+=hU(o),e.position++}else Q(e,"unknown escape sequence");r=n=e.position}else en(a)?(ti(e,r,n,!0),ng(e,nt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Nu(e)?Q(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Q(e,"unexpected end of the stream within a double quoted scalar")}function xU(e,t){var r=!0,n,i,o,s=e.tag,a,c=e.anchor,l,u,p,m,d,f=Object.create(null),h,y,b,g;if(g=e.input.charCodeAt(e.position),g===91)u=93,d=!1,a=[];else if(g===123)u=125,d=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),g=e.input.charCodeAt(++e.position);g!==0;){if(nt(e,!0,t),g=e.input.charCodeAt(e.position),g===u)return e.position++,e.tag=s,e.anchor=c,e.kind=d?"mapping":"sequence",e.result=a,!0;r?g===44&&Q(e,"expected the node content, but found ','"):Q(e,"missed comma between flow collection entries"),y=h=b=null,p=m=!1,g===63&&(l=e.input.charCodeAt(e.position+1),er(l)&&(p=m=!0,e.position++,nt(e,!0,t))),n=e.line,i=e.lineStart,o=e.position,ls(e,t,Eu,!1,!0),y=e.tag,h=e.result,nt(e,!0,t),g=e.input.charCodeAt(e.position),(m||e.line===n)&&g===58&&(p=!0,g=e.input.charCodeAt(++e.position),nt(e,!0,t),ls(e,t,Eu,!1,!0),b=e.result),d?cs(e,a,f,y,h,b,n,i,o):p?a.push(cs(e,null,f,y,h,b,n,i,o)):a.push(h),nt(e,!0,t),g=e.input.charCodeAt(e.position),g===44?(r=!0,g=e.input.charCodeAt(++e.position)):r=!1}Q(e,"unexpected end of the stream within a flow collection")}function wU(e,t){var r,n,i=Wy,o=!1,s=!1,a=t,c=0,l=!1,u,p;if(p=e.input.charCodeAt(e.position),p===124)n=!1;else if(p===62)n=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)Wy===i?i=p===43?DO:cU:Q(e,"repeat of a chomping mode identifier");else if((u=mU(p))>=0)u===0?Q(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?Q(e,"repeat of an indentation width identifier"):(a=t+u-1,s=!0);else break;if(no(p)){do p=e.input.charCodeAt(++e.position);while(no(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!en(p)&&p!==0)}for(;p!==0;){for(rg(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!s||e.lineIndent<a)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>a&&(a=e.lineIndent),en(p)){c++;continue}if(e.lineIndent<a){i===DO?e.result+=pt.repeat(`
216
216
  `,o?1+c:c):i===Wy&&o&&(e.result+=`
217
217
  `);break}for(n?no(p)?(l=!0,e.result+=pt.repeat(`
218
218
  `,o?1+c:c)):l?(l=!1,e.result+=pt.repeat(`
219
219
  `,c+1)):c===0?o&&(e.result+=" "):e.result+=pt.repeat(`
220
220
  `,c):e.result+=pt.repeat(`
221
- `,o?1+c:c),o=!0,s=!0,c=0,r=e.position;!Zr(p)&&p!==0;)p=e.input.charCodeAt(++e.position);ti(e,r,e.position,!1)}return!0}function zO(e,t){var r,n=e.tag,i=e.anchor,o=[],s,a=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Q(e,"tab characters must not be used in indentation")),!(c!==45||(s=e.input.charCodeAt(e.position+1),!er(s))));){if(a=!0,e.position++,nt(e,!0,-1)&&e.lineIndent<=t){o.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,ls(e,t,v$,!1,!0),o.push(e.result),nt(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)Q(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}function SU(e,t,r){var n,i,o,s,a,c,l=e.tag,u=e.anchor,p={},m=Object.create(null),d=null,f=null,h=null,y=!1,b=!1,g;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=p),g=e.input.charCodeAt(e.position);g!==0;){if(!y&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Q(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),o=e.line,(g===63||g===58)&&er(n))g===63?(y&&(cs(e,p,m,d,f,null,s,a,c),d=f=h=null),b=!0,y=!0,i=!0):y?(y=!1,i=!0):Q(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=n;else{if(s=e.line,a=e.lineStart,c=e.position,!ls(e,r,b$,!1,!0))break;if(e.line===o){for(g=e.input.charCodeAt(e.position);no(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),er(g)||Q(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(cs(e,p,m,d,f,null,s,a,c),d=f=h=null),b=!0,y=!1,i=!1,d=e.tag,f=e.result;else if(b)Q(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=l,e.anchor=u,!0}else if(b)Q(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=l,e.anchor=u,!0}if((e.line===o||e.lineIndent>t)&&(y&&(s=e.line,a=e.lineStart,c=e.position),ls(e,t,Au,!0,i)&&(y?f=e.result:h=e.result),y||(cs(e,p,m,d,f,h,s,a,c),d=f=h=null),nt(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&g!==0)Q(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&cs(e,p,m,d,f,null,s,a,c),b&&(e.tag=l,e.anchor=u,e.kind="mapping",e.result=p),b}function _U(e){var t,r=!1,n=!1,i,o,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&Q(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(n=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(o=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):Q(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!er(s);)s===33&&(n?Q(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),x$.test(i)||Q(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),pU.test(o)&&Q(e,"tag suffix cannot contain flow indicator characters")}o&&!w$.test(o)&&Q(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{Q(e,"tag name is malformed: "+o)}return r?e.tag=o:ri.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:Q(e,'undeclared tag handle "'+i+'"'),!0}function OU(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Q(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!er(r)&&!as(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Q(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function $U(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!er(n)&&!as(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Q(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),ri.call(e.anchorMap,r)||Q(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],nt(e,!0,-1),!0}function ls(e,t,r,n,i){var o,s,a,c=1,l=!1,u=!1,p,m,d,f,h,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=Au===r||v$===r,n&&nt(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;_U(e)||OU(e);)nt(e,!0,-1)?(l=!0,a=o,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):a=!1;if(a&&(a=l||i),(c===1||Au===r)&&(Eu===r||b$===r?h=t:h=t+1,y=e.position-e.lineStart,c===1?a&&(zO(e,y)||SU(e,y,h))||xU(e,h)?u=!0:(s&&wU(e,h)||bU(e,h)||vU(e,h)?u=!0:$U(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&Q(e,"alias node should not have any properties")):gU(e,h,Eu===r)&&(u=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(u=a&&zO(e,y))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Q(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,m=e.implicitTypes.length;p<m;p+=1)if(f=e.implicitTypes[p],f.resolve(e.result)){e.result=f.construct(e.result),e.tag=f.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(ri.call(e.typeMap[e.kind||"fallback"],e.tag))f=e.typeMap[e.kind||"fallback"][e.tag];else for(f=null,d=e.typeMap.multi[e.kind||"fallback"],p=0,m=d.length;p<m;p+=1)if(e.tag.slice(0,d[p].tag.length)===d[p].tag){f=d[p];break}f||Q(e,"unknown tag !<"+e.tag+">"),e.result!==null&&f.kind!==e.kind&&Q(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Q(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||u}function PU(e){var t=e.position,r,n,i,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(nt(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!er(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&Q(e,"directive name must not be less than one character in length");s!==0;){for(;no(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!Zr(s));break}if(Zr(s))break;for(r=e.position;s!==0&&!er(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}s!==0&&rg(e),ri.call(UO,n)?UO[n](e,n,i):Cu(e,'unknown document directive "'+n+'"')}if(nt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,nt(e,!0,-1)):o&&Q(e,"directives end mark is expected"),ls(e,e.lineIndent-1,Au,!1,!0),nt(e,!0,-1),e.checkLineBreaks&&uU.test(e.input.slice(t,e.position))&&Cu(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Nu(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,nt(e,!0,-1));return}if(e.position<e.length-1)Q(e,"end of the stream or a document separator is expected");else return}function $$(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
221
+ `,o?1+c:c),o=!0,s=!0,c=0,r=e.position;!en(p)&&p!==0;)p=e.input.charCodeAt(++e.position);ti(e,r,e.position,!1)}return!0}function zO(e,t){var r,n=e.tag,i=e.anchor,o=[],s,a=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Q(e,"tab characters must not be used in indentation")),!(c!==45||(s=e.input.charCodeAt(e.position+1),!er(s))));){if(a=!0,e.position++,nt(e,!0,-1)&&e.lineIndent<=t){o.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,ls(e,t,v$,!1,!0),o.push(e.result),nt(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)Q(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}function SU(e,t,r){var n,i,o,s,a,c,l=e.tag,u=e.anchor,p={},m=Object.create(null),d=null,f=null,h=null,y=!1,b=!1,g;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=p),g=e.input.charCodeAt(e.position);g!==0;){if(!y&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Q(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),o=e.line,(g===63||g===58)&&er(n))g===63?(y&&(cs(e,p,m,d,f,null,s,a,c),d=f=h=null),b=!0,y=!0,i=!0):y?(y=!1,i=!0):Q(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=n;else{if(s=e.line,a=e.lineStart,c=e.position,!ls(e,r,b$,!1,!0))break;if(e.line===o){for(g=e.input.charCodeAt(e.position);no(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),er(g)||Q(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(cs(e,p,m,d,f,null,s,a,c),d=f=h=null),b=!0,y=!1,i=!1,d=e.tag,f=e.result;else if(b)Q(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=l,e.anchor=u,!0}else if(b)Q(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=l,e.anchor=u,!0}if((e.line===o||e.lineIndent>t)&&(y&&(s=e.line,a=e.lineStart,c=e.position),ls(e,t,Au,!0,i)&&(y?f=e.result:h=e.result),y||(cs(e,p,m,d,f,h,s,a,c),d=f=h=null),nt(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&g!==0)Q(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&cs(e,p,m,d,f,null,s,a,c),b&&(e.tag=l,e.anchor=u,e.kind="mapping",e.result=p),b}function _U(e){var t,r=!1,n=!1,i,o,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&Q(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(n=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(o=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):Q(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!er(s);)s===33&&(n?Q(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),x$.test(i)||Q(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),pU.test(o)&&Q(e,"tag suffix cannot contain flow indicator characters")}o&&!w$.test(o)&&Q(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{Q(e,"tag name is malformed: "+o)}return r?e.tag=o:ri.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:Q(e,'undeclared tag handle "'+i+'"'),!0}function OU(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Q(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!er(r)&&!as(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Q(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function $U(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!er(n)&&!as(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Q(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),ri.call(e.anchorMap,r)||Q(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],nt(e,!0,-1),!0}function ls(e,t,r,n,i){var o,s,a,c=1,l=!1,u=!1,p,m,d,f,h,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=Au===r||v$===r,n&&nt(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;_U(e)||OU(e);)nt(e,!0,-1)?(l=!0,a=o,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):a=!1;if(a&&(a=l||i),(c===1||Au===r)&&(Eu===r||b$===r?h=t:h=t+1,y=e.position-e.lineStart,c===1?a&&(zO(e,y)||SU(e,y,h))||xU(e,h)?u=!0:(s&&wU(e,h)||bU(e,h)||vU(e,h)?u=!0:$U(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&Q(e,"alias node should not have any properties")):gU(e,h,Eu===r)&&(u=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(u=a&&zO(e,y))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Q(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,m=e.implicitTypes.length;p<m;p+=1)if(f=e.implicitTypes[p],f.resolve(e.result)){e.result=f.construct(e.result),e.tag=f.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(ri.call(e.typeMap[e.kind||"fallback"],e.tag))f=e.typeMap[e.kind||"fallback"][e.tag];else for(f=null,d=e.typeMap.multi[e.kind||"fallback"],p=0,m=d.length;p<m;p+=1)if(e.tag.slice(0,d[p].tag.length)===d[p].tag){f=d[p];break}f||Q(e,"unknown tag !<"+e.tag+">"),e.result!==null&&f.kind!==e.kind&&Q(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Q(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||u}function PU(e){var t=e.position,r,n,i,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(nt(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!er(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&Q(e,"directive name must not be less than one character in length");s!==0;){for(;no(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!en(s));break}if(en(s))break;for(r=e.position;s!==0&&!er(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}s!==0&&rg(e),ri.call(UO,n)?UO[n](e,n,i):Cu(e,'unknown document directive "'+n+'"')}if(nt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,nt(e,!0,-1)):o&&Q(e,"directives end mark is expected"),ls(e,e.lineIndent-1,Au,!1,!0),nt(e,!0,-1),e.checkLineBreaks&&uU.test(e.input.slice(t,e.position))&&Cu(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Nu(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,nt(e,!0,-1));return}if(e.position<e.length-1)Q(e,"end of the stream or a document separator is expected");else return}function $$(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
222
222
  `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new yU(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,Q(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)PU(r);return r.documents}function EU(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=$$(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}function AU(e,t){var r=$$(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Zt("expected a single document in the stream, but found more")}}var CU=EU,RU=AU,P$={loadAll:CU,load:RU},E$=Object.prototype.toString,A$=Object.prototype.hasOwnProperty,ig=65279,TU=9,Ja=10,NU=13,IU=32,kU=33,qU=34,Jy=35,jU=37,MU=38,LU=39,DU=42,C$=44,FU=45,Ru=58,BU=61,UU=62,VU=63,zU=64,R$=91,T$=93,HU=96,N$=123,KU=124,I$=125,Rt={};Rt[0]="\\0";Rt[7]="\\a";Rt[8]="\\b";Rt[9]="\\t";Rt[10]="\\n";Rt[11]="\\v";Rt[12]="\\f";Rt[13]="\\r";Rt[27]="\\e";Rt[34]='\\"';Rt[92]="\\\\";Rt[133]="\\N";Rt[160]="\\_";Rt[8232]="\\L";Rt[8233]="\\P";var GU=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],YU=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function WU(e,t){var r,n,i,o,s,a,c;if(t===null)return{};for(r={},n=Object.keys(t),i=0,o=n.length;i<o;i+=1)s=n[i],a=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),c=e.compiledTypeMap.fallback[s],c&&A$.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[s]=a;return r}function XU(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Zt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+pt.repeat("0",n-t.length)+t}var JU=1,Qa=2;function QU(e){this.schema=e.schema||g$,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=pt.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=WU(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Qa:JU,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function HO(e,t){for(var r=pt.repeat(" ",t),n=0,i=-1,o="",s,a=e.length;n<a;)i=e.indexOf(`
223
223
  `,n),i===-1?(s=e.slice(n),n=a):(s=e.slice(n,i+1),n=i+1),s.length&&s!==`
224
224
  `&&(o+=r),o+=s;return o}function Qy(e,t){return`
@@ -236,21 +236,21 @@ ${s.commentBefore}`:o}e.comment=r.after.join(`
236
236
  `+e.slice(s+1):c+=e.slice(i),c.slice(1)}function oV(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=Wa(e,i),n=Rt[r],!n&&Za(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||XU(r);return t}function sV(e,t,r){var n="",i=e.tag,o,s,a;for(o=0,s=r.length;o<s;o+=1)a=r[o],e.replacer&&(a=e.replacer.call(r,String(o),a)),($n(e,t,a,!1,!1)||typeof a>"u"&&$n(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function JO(e,t,r,n){var i="",o=e.tag,s,a,c;for(s=0,a=r.length;s<a;s+=1)c=r[s],e.replacer&&(c=e.replacer.call(r,String(s),c)),($n(e,t+1,c,!0,!0,!1,!0)||typeof c>"u"&&$n(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Qy(e,t)),e.dump&&Ja===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}function aV(e,t,r){var n="",i=e.tag,o=Object.keys(r),s,a,c,l,u;for(s=0,a=o.length;s<a;s+=1)u="",n!==""&&(u+=", "),e.condenseFlow&&(u+='"'),c=o[s],l=r[c],e.replacer&&(l=e.replacer.call(r,c,l)),$n(e,t,c,!1,!1)&&(e.dump.length>1024&&(u+="? "),u+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),$n(e,t,l,!1,!1)&&(u+=e.dump,n+=u));e.tag=i,e.dump="{"+n+"}"}function cV(e,t,r,n){var i="",o=e.tag,s=Object.keys(r),a,c,l,u,p,m;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Zt("sortKeys must be a boolean or a function");for(a=0,c=s.length;a<c;a+=1)m="",(!n||i!=="")&&(m+=Qy(e,t)),l=s[a],u=r[l],e.replacer&&(u=e.replacer.call(r,l,u)),$n(e,t+1,l,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&Ja===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,p&&(m+=Qy(e,t)),$n(e,t+1,u,!0,p)&&(e.dump&&Ja===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,i+=m));e.tag=o,e.dump=i||"{}"}function QO(e,t,r){var n,i,o,s,a,c;for(i=r?e.explicitTypes:e.implicitTypes,o=0,s=i.length;o<s;o+=1)if(a=i[o],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,E$.call(a.represent)==="[object Function]")n=a.represent(t,c);else if(A$.call(a.represent,c))n=a.represent[c](t,c);else throw new Zt("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}function $n(e,t,r,n,i,o,s){e.tag=null,e.dump=r,QO(e,r,!1)||QO(e,r,!0);var a=E$.call(e.dump),c=n,l;n&&(n=e.flowLevel<0||e.flowLevel>t);var u=a==="[object Object]"||a==="[object Array]",p,m;if(u&&(p=e.duplicates.indexOf(r),m=p!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(i=!1),m&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(u&&m&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(cV(e,t,e.dump,i),m&&(e.dump="&ref_"+p+e.dump)):(aV(e,t,e.dump),m&&(e.dump="&ref_"+p+" "+e.dump));else if(a==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?JO(e,t-1,e.dump,i):JO(e,t,e.dump,i),m&&(e.dump="&ref_"+p+e.dump)):(sV(e,t,e.dump),m&&(e.dump="&ref_"+p+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&nV(e,e.dump,t,o,c);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Zt("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function lV(e,t){var r=[],n=[],i,o;for(eg(e,r,n),i=0,o=n.length;i<o;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(o)}function eg(e,t,r){var n,i,o;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)eg(e[i],t,r);else for(n=Object.keys(e),i=0,o=n.length;i<o;i+=1)eg(e[n[i]],t,r)}function uV(e,t){t=t||{};var r=new QU(t);r.noRefs||lV(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),$n(r,0,n,!0,!0)?r.dump+`
237
237
  `:""}var pV=uV,fV={dump:pV};function og(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var L$=c$;var D$=P$.load,jse=P$.loadAll,F$=fV.dump;var us={binary:d$,float:a$,map:n$,null:i$,pairs:h$,set:y$,timestamp:p$,bool:o$,int:s$,merge:f$,omap:m$,seq:r$,str:t$},Mse=og("safeLoad","load"),Lse=og("safeLoadAll","loadAll"),Dse=og("safeDump","dump");var dV=L$.extend({implicit:[us.merge],explicit:[us.binary,us.omap,us.pairs,us.set]}),Pn=(e,t)=>D$(e,{schema:dV,...t}),Iu=(e,t)=>F$(e,t);var sg=/^1\.0\.\d+(-.+)?$/,ku=["1.0.1"];var qu=["oas2","oas3_0","oas3_1","oas3_2","async2","async3","arazzo1","overlay1"];function ju(e){return e==="oas2"?"oas2":e==="async2"?"async2":e==="async3"?"async3":e==="arazzo1"?"arazzo1":e==="overlay1"?"overlay1":"oas3"}function ni(e){if(!W(e))throw new Error(`Document must be JSON object, got ${typeof e}`);if(e.openapi&&typeof e.openapi!="string")throw new Error(`Invalid OpenAPI version: should be a string but got "${typeof e.openapi}"`);if(typeof e.openapi=="string"&&e.openapi.startsWith("3.0."))return"oas3_0";if(typeof e.openapi=="string"&&e.openapi.startsWith("3.1."))return"oas3_1";if(typeof e.openapi=="string"&&e.openapi.startsWith("3.2."))return"oas3_2";if(e.swagger&&e.swagger==="2.0")return"oas2";if(e.openapi||e.swagger)throw new Error(`Unsupported OpenAPI version: ${e.openapi||e.swagger}`);if(typeof e.asyncapi=="string"&&e.asyncapi.startsWith("2."))return"async2";if(typeof e.asyncapi=="string"&&e.asyncapi.startsWith("3."))return"async3";if(e.asyncapi)throw new Error(`Unsupported AsyncAPI version: ${e.asyncapi}`);if(typeof e.arazzo=="string"&&sg.test(e.arazzo))return"arazzo1";if(typeof e.overlay=="string"&&sg.test(e.overlay))return"overlay1";throw new Error("Unsupported specification")}function Mu(e){var t,r;return{http:{headers:(r=(t=e==null?void 0:e.http)==null?void 0:t.headers)!=null?r:[],customFetch:void 0}}}function ec(e,t){let r=new Set(t),n=0;for(let i of e)r.has(i)&&n++;return n}function B$(e,t){let r=t.direction||t,n=t.property;for(let i=1;i<e.length;i++){let o=e[i],s=e[i-1];if(n){let c=e[i][n],l=e[i-1][n];if(!c||!l)return!1;o=c,s=l}if(typeof o=="string"&&typeof s=="string"&&(o=o.toLowerCase(),s=s.toLowerCase()),!(r==="asc"?o>=s:o<=s))return!1}return!0}function ps(e){let t=e.match(/^\/(.*)\/(.*)|(.*)/);return t&&new RegExp(t[1]||t[3],t[2])}var U$=new Set(["mutuallyExclusive","mutuallyRequired","enum","pattern","notPattern","minLength","maxLength","casing","sortOrder","disallowed","required","requireAny","ref","const","defined"]),V$=new Set(["pattern","notPattern","enum","defined","nonEmpty","minLength","maxLength","casing","sortOrder","ref","const"]),fs={pattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||W(e))return[];let i=Array.isArray(e)?e:[e],o=ps(t);return i.map(s=>!(o!=null&&o.test(s))&&{message:`"${s}" should match a regex ${t}`,location:at(e)?r:W(n)?r.child(s).key():r.key()}).filter(ct)},notPattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||W(e))return[];let i=Array.isArray(e)?e:[e],o=ps(t);return i.map(s=>(o==null?void 0:o.test(s))&&{message:`"${s}" should not match a regex ${t}`,location:at(e)?r:W(n)?r.child(s).key():r.key()}).filter(ct)},enum:(e,t,{baseLocation:r})=>typeof e>"u"||W(e)?[]:(Array.isArray(e)?e:[e]).map(i=>!t.includes(i)&&{message:`"${i}" should be one of the predefined values`,location:at(e)?r:r.child(i).key()}).filter(ct),defined:(e,t=!0,{baseLocation:r})=>{let n=typeof e<"u";return(t?n:!n)?[]:[{message:t?"Should be defined":"Should be not defined",location:r}]},required:(e,t,{baseLocation:r})=>t.map(n=>!e.includes(n)&&{message:`${n} is required`,location:r.key()}).filter(ct),disallowed:(e,t,{baseLocation:r})=>typeof e>"u"||W(e)?[]:(Array.isArray(e)?e:[e]).map(i=>t.includes(i)&&{message:`"${i}" is disallowed`,location:at(e)?r:r.child(i).key()}).filter(ct),const:(e,t,{baseLocation:r})=>typeof e>"u"?[]:Array.isArray(e)?e.map(n=>t!==n&&{message:`"${n}" should be equal ${t} `,location:at(e)?r:r.child(n).key()}).filter(ct):e!==t?[{message:`${e} should be equal ${t}`,location:r}]:[],nonEmpty:(e,t=!0,{baseLocation:r})=>{let n=typeof e>"u"||e===null||e==="";return(t?!n:n)?[]:[{message:t?"Should not be empty":"Should be empty",location:r}]},minLength:(e,t,{baseLocation:r})=>typeof e>"u"||e.length>=t?[]:[{message:`Should have at least ${t} characters`,location:r}],maxLength:(e,t,{baseLocation:r})=>typeof e>"u"||e.length<=t?[]:[{message:`Should have at most ${t} characters`,location:r}],casing:(e,t,{baseLocation:r})=>{if(typeof e>"u"||W(e))return[];let n=Array.isArray(e)?e:[e],i={camelCase:/^[a-z][a-zA-Z0-9]*$/g,"kebab-case":/^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/g,snake_case:/^([a-z][a-z0-9]*)(_[a-z0-9]+)*$/g,PascalCase:/^[A-Z][a-zA-Z0-9]+$/g,MACRO_CASE:/^([A-Z][A-Z0-9]*)(_[A-Z0-9]+)*$/g,"COBOL-CASE":/^([A-Z][A-Z0-9]*)(-[A-Z0-9]+)*$/g,flatcase:/^[a-z][a-z0-9]+$/g};return n.map(o=>!o.match(i[t])&&{message:`"${o}" should use ${t}`,location:at(e)?r:r.child(o).key()}).filter(ct)},sortOrder:(e,t,{baseLocation:r})=>{let n=t.direction||t,i=t.property;return Array.isArray(e)&&e.length>0&&typeof e[0]=="object"&&!i?[{message:"Please define a property to sort objects by",location:r}]:typeof e>"u"||B$(e,t)?[]:[{message:`Should be sorted in ${n==="asc"?"an ascending":"a descending"} order${i?` by property ${i}`:""}`,location:r}]},mutuallyExclusive:(e,t,{baseLocation:r})=>ec(e,t)<2?[]:[{message:`${t.join(", ")} keys should be mutually exclusive`,location:r.key()}],mutuallyRequired:(e,t,{baseLocation:r})=>(ec(e,t)>0?ec(e,t)===t.length:!0)?[]:[{message:`Properties ${t.join(", ")} are mutually required`,location:r.key()}],requireAny:(e,t,{baseLocation:r})=>ec(e,t)>=1?[]:[{message:`Should have any of ${t.join(", ")}`,location:r.key()}],ref:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof n>"u")return[];let i=n.hasOwnProperty("$ref");if(typeof t=="boolean")return(t?i:!i)?[]:[{message:t?"should use $ref":"should not use $ref",location:i?r:r.key()}];let o=ps(t);return i&&(o==null?void 0:o.test(n.$ref))?[]:[{message:`$ref value should match ${t}`,location:i?r:r.key()}]}};function z$(e){return(t,r,n)=>e.call(null,t,r,n)}function K$(e,t){if(!e.rules)return{};let r={},n=[];for(let[i,o]of Object.entries(e.rules))if(i.startsWith("rule/")&&typeof o=="object"&&o!==null){let s=o;if(t){H$(t,s);for(let a of s.where||[])H$(t,a)}n.push({...s,assertionId:i})}else r[i]=o;return n.length>0&&(r.assertions=n),r}function H$(e,t){for(let r of Object.keys(t.assertions||{})){let[n,i]=r.split("/");if(!n||!i)continue;let o=e.find(s=>s.id===n);if(!o)throw Error(`Plugin ${n} isn't found.`);if(!o.assertions||!o.assertions[i])throw Error(`Plugin ${n} doesn't export assertions function with name ${i}.`);fs[r]=z$(o.assertions[i])}}var ag="redocly.yaml",G$={extends:["recommended"]},tc=".redocly.lint-ignore.yaml",Y$=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
238
238
  # See https://redocly.com/docs/cli/ for more information.
239
- `,Lu="configBundler",Du="pluginsCollector",W$=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];function mV(e){return e?xl(e)?lr.join(lr.dirname(e),tc):lr.join(e,tc):bt?void 0:lr.join(process.cwd(),tc)}var rc=class e{constructor(t,r={}){var i;this.ignore={},this._usedRules=new Set,this._usedVersions=new Set,this.resolvedConfig=t,this.configPath=r.configPath,this.document=r.document,this.resolvedRefMap=r.resolvedRefMap,this.resolve=Mu(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!((i=t.resolve)!=null&&i.doNotResolveExamples);let n=o=>K$({rules:o},this.plugins);this.rules={oas2:n({...t.rules,...t.oas2Rules}),oas3_0:n({...t.rules,...t.oas3_0Rules}),oas3_1:n({...t.rules,...t.oas3_1Rules}),oas3_2:n({...t.rules,...t.oas3_2Rules}),async2:n({...t.rules,...t.async2Rules}),async3:n({...t.rules,...t.async3Rules}),arazzo1:n({...t.rules,...t.arazzo1Rules}),overlay1:n({...t.rules,...t.overlay1Rules})},this.preprocessors={oas2:{...t.preprocessors,...t.oas2Preprocessors},oas3_0:{...t.preprocessors,...t.oas3_0Preprocessors},oas3_1:{...t.preprocessors,...t.oas3_1Preprocessors},oas3_2:{...t.preprocessors,...t.oas3_2Preprocessors},async2:{...t.preprocessors,...t.async2Preprocessors},async3:{...t.preprocessors,...t.async3Preprocessors},arazzo1:{...t.preprocessors,...t.arazzo1Preprocessors},overlay1:{...t.preprocessors,...t.overlay1Preprocessors}},this.decorators={oas2:{...t.decorators,...t.oas2Decorators},oas3_0:{...t.decorators,...t.oas3_0Decorators},oas3_1:{...t.decorators,...t.oas3_1Decorators},oas3_2:{...t.decorators,...t.oas3_2Decorators},async2:{...t.decorators,...t.async2Decorators},async3:{...t.decorators,...t.async3Decorators},arazzo1:{...t.decorators,...t.arazzo1Decorators},overlay1:{...t.decorators,...t.overlay1Decorators}},this.resolveIgnore(mV(r.configPath))}forAlias(t){var a,c;if(t===void 0||!W((c=(a=this.resolvedConfig)==null?void 0:a.apis)==null?void 0:c[t]))return this;let{apis:r,...n}=this.resolvedConfig,{root:i,output:o,...s}=r[t];return new e({...n,...s},{configPath:this.configPath,document:this.document,resolvedRefMap:this.resolvedRefMap,alias:t,plugins:this.plugins})}resolveIgnore(t){if(!(!t||!xl(t))){this.ignore=Pn(Fu.readFileSync(t,"utf-8"))||{};for(let r of Object.keys(this.ignore)){this.ignore[Je(r)?r:lr.resolve(lr.dirname(t),r)]=this.ignore[r];for(let n of Object.keys(this.ignore[r]))this.ignore[r][n]=new Set(this.ignore[r][n]);Je(r)||delete this.ignore[r]}}}saveIgnore(){let t=this.configPath?lr.dirname(this.configPath):process.cwd(),r=lr.join(t,tc),n={};for(let i of Object.keys(this.ignore)){let o=Je(i)?i:em(lr.relative(t,i)),s=n[o]=this.ignore[i];for(let a of Object.keys(s))s[a]=Array.from(s[a])}Fu.writeFileSync(r,Y$+Iu(n))}addIgnore(t){let r=this.ignore,n=t.location[0];if(n.pointer===void 0)return;let i=r[n.source.absoluteRef]=r[n.source.absoluteRef]||{};(i[t.ruleId]=i[t.ruleId]||new Set).add(n.pointer)}addProblemToIgnore(t){let r=t.location[0];if(r.pointer===void 0)return t;let i=(this.ignore[r.source.absoluteRef]||{})[t.ruleId],o=i&&i.has(r.pointer);return o?{...t,ignored:o}:t}extendTypes(t,r){let n=t;for(let i of this.plugins)if(i.typeExtension!==void 0)switch(r){case"oas3_0":case"oas3_1":case"oas3_2":if(!i.typeExtension.oas3)continue;n=i.typeExtension.oas3(n,r);break;case"oas2":if(!i.typeExtension.oas2)continue;n=i.typeExtension.oas2(n,r);break;case"async2":if(!i.typeExtension.async2)continue;n=i.typeExtension.async2(n,r);break;case"async3":if(!i.typeExtension.async3)continue;n=i.typeExtension.async3(n,r);break;case"arazzo1":if(!i.typeExtension.arazzo1)continue;n=i.typeExtension.arazzo1(n,r);break;case"overlay1":if(!i.typeExtension.overlay1)continue;n=i.typeExtension.overlay1(n,r);break;default:throw new Error("Not implemented")}return n}getRuleSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);let n=this.rules[r][t]||"off";return typeof n=="string"?{severity:n}:{severity:"error",...n}}getPreprocessorSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);let n=this.preprocessors[r][t]||"off";return typeof n=="string"?{severity:n==="on"?"error":n}:{severity:"error",...n}}getDecoratorSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);let n=this.decorators[r][t]||"off";return typeof n=="string"?{severity:n==="on"?"error":n}:{severity:"error",...n}}getUnusedRules(){let t=[],r=[],n=[];for(let i of Array.from(this._usedVersions))t.push(...Object.keys(this.rules[i]).filter(o=>!this._usedRules.has(o))),r.push(...Object.keys(this.decorators[i]).filter(o=>!this._usedRules.has(o))),n.push(...Object.keys(this.preprocessors[i]).filter(o=>!this._usedRules.has(o)));return{rules:t,preprocessors:n,decorators:r}}getRulesForSpecVersion(t){switch(t){case"oas3":let r=[];return this.plugins.forEach(c=>{var l;return((l=c.preprocessors)==null?void 0:l.oas3)&&r.push(c.preprocessors.oas3)}),this.plugins.forEach(c=>{var l;return((l=c.rules)==null?void 0:l.oas3)&&r.push(c.rules.oas3)}),this.plugins.forEach(c=>{var l;return((l=c.decorators)==null?void 0:l.oas3)&&r.push(c.decorators.oas3)}),r;case"oas2":let n=[];return this.plugins.forEach(c=>{var l;return((l=c.preprocessors)==null?void 0:l.oas2)&&n.push(c.preprocessors.oas2)}),this.plugins.forEach(c=>{var l;return((l=c.rules)==null?void 0:l.oas2)&&n.push(c.rules.oas2)}),this.plugins.forEach(c=>{var l;return((l=c.decorators)==null?void 0:l.oas2)&&n.push(c.decorators.oas2)}),n;case"async2":let i=[];return this.plugins.forEach(c=>{var l;return((l=c.preprocessors)==null?void 0:l.async2)&&i.push(c.preprocessors.async2)}),this.plugins.forEach(c=>{var l;return((l=c.rules)==null?void 0:l.async2)&&i.push(c.rules.async2)}),this.plugins.forEach(c=>{var l;return((l=c.decorators)==null?void 0:l.async2)&&i.push(c.decorators.async2)}),i;case"async3":let o=[];return this.plugins.forEach(c=>{var l;return((l=c.preprocessors)==null?void 0:l.async3)&&o.push(c.preprocessors.async3)}),this.plugins.forEach(c=>{var l;return((l=c.rules)==null?void 0:l.async3)&&o.push(c.rules.async3)}),this.plugins.forEach(c=>{var l;return((l=c.decorators)==null?void 0:l.async3)&&o.push(c.decorators.async3)}),o;case"arazzo1":let s=[];return this.plugins.forEach(c=>{var l;return((l=c.preprocessors)==null?void 0:l.arazzo1)&&s.push(c.preprocessors.arazzo1)}),this.plugins.forEach(c=>{var l;return((l=c.rules)==null?void 0:l.arazzo1)&&s.push(c.rules.arazzo1)}),this.plugins.forEach(c=>{var l;return((l=c.decorators)==null?void 0:l.arazzo1)&&s.push(c.decorators.arazzo1)}),s;case"overlay1":let a=[];return this.plugins.forEach(c=>{var l;return((l=c.preprocessors)==null?void 0:l.overlay1)&&a.push(c.preprocessors.overlay1)}),this.plugins.forEach(c=>{var l;return((l=c.rules)==null?void 0:l.overlay1)&&a.push(c.rules.overlay1)}),this.plugins.forEach(c=>{var l;return((l=c.decorators)==null?void 0:l.overlay1)&&a.push(c.decorators.overlay1)}),a}}skipRules(t){for(let r of t||[])for(let n of qu)if(this.rules[n][r])this.rules[n][r]="off";else if(Array.isArray(this.rules[n].assertions))for(let i of this.rules[n].assertions)i.assertionId===r&&(i.severity="off")}skipPreprocessors(t){for(let r of t||[])for(let n of qu)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(t){for(let r of t||[])for(let n of qu)this.decorators[n][r]&&(this.decorators[n][r]="off")}};function ds(e){return e!==void 0}function Bu(e,t,r,n){return e.flatMap(i=>Object.keys(i).map(o=>{let s=i[o],a=r==="rules"?t.getRuleSettings(o,n):r==="preprocessors"?t.getPreprocessorSettings(o,n):t.getDecoratorSettings(o,n);if(a.severity==="off")return;let c=a.severity,l=a.message,u=s(a);return Array.isArray(u)?u.map(p=>({severity:c,ruleId:o,message:l,visitor:p})):{severity:c,message:l,ruleId:o,visitor:u}})).flatMap(i=>i).filter(ds)}var hV={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"warn","no-invalid-schema-examples":"off","no-invalid-parameter-examples":"off","no-http-verbs-in-paths":"off","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","operation-summary":"error","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-2xx-response":"warn","operation-4xx-response":"warn","operation-parameters-unique":"error","operation-tag-defined":"off","operation-singular-tag":"off","parameter-description":"off","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"off","path-http-verbs-order":"off","path-params-defined":"off","path-segment-plural":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","request-mime-type":"off","response-contains-property":"off","response-mime-type":"off","security-defined":"error","spec-strict-refs":"off","scalar-property-missing-example":"off","tag-description":"warn","tags-alphabetical":"off","no-duplicated-tag-names":"warn"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"warn","no-invalid-schema-examples":"off","no-invalid-parameter-examples":"off","no-http-verbs-in-paths":"off","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-invalid-media-type-examples":{severity:"warn",allowAdditionalProperties:!1},"no-server-example.com":"warn","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unused-components":"warn","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","operation-summary":"error","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"off","operation-2xx-response":"warn","operation-4xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-parameters-unique":"error","operation-tag-defined":"off","operation-singular-tag":"off","nullable-type-sibling":"error","parameter-description":"off","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"off","path-http-verbs-order":"off","path-params-defined":"off","path-segment-plural":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","request-mime-type":"off","response-contains-property":"off","response-mime-type":"off","security-defined":"error","spec-strict-refs":"off","scalar-property-missing-example":"off","spec-components-invalid-map-name":"error","tag-description":"warn","tags-alphabetical":"off","no-duplicated-tag-names":"warn","spec-example-values":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"warn","no-invalid-schema-examples":"off","no-invalid-parameter-examples":"off","no-http-verbs-in-paths":"off","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-invalid-media-type-examples":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unused-components":"warn","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","operation-summary":"error","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"off","operation-2xx-response":"warn","operation-4xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-parameters-unique":"error","operation-tag-defined":"off","operation-singular-tag":"off","parameter-description":"off","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"off","path-http-verbs-order":"off","path-params-defined":"off","path-segment-plural":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","request-mime-type":"off","response-contains-property":"off","response-mime-type":"off","security-defined":"error","spec-strict-refs":"off","scalar-property-missing-example":"off","spec-components-invalid-map-name":"error","tag-description":"warn","tags-alphabetical":"off","no-duplicated-tag-names":"warn","spec-example-values":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"warn","no-invalid-schema-examples":"off","no-invalid-parameter-examples":"off","no-http-verbs-in-paths":"off","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-invalid-media-type-examples":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-empty-servers":"error","no-unused-components":"warn","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","operation-summary":"error","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"off","operation-2xx-response":"warn","operation-4xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-parameters-unique":"error","operation-tag-defined":"off","operation-singular-tag":"off","parameter-description":"off","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"off","path-http-verbs-order":"off","path-params-defined":"off","path-segment-plural":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","request-mime-type":"off","response-contains-property":"off","response-mime-type":"off","security-defined":"error","spec-strict-refs":"off","scalar-property-missing-example":"off","spec-components-invalid-map-name":"error","tag-description":"warn","tags-alphabetical":"off","no-duplicated-tag-names":"warn","spec-no-invalid-tag-parents":"error","spec-no-invalid-encoding-combinations":"error","spec-discriminator-defaultMapping":"warn","spec-example-values":"error"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"warn","no-channel-trailing-slash":"off","operation-operationId":"warn","tag-description":"warn","tags-alphabetical":"off","no-duplicated-tag-names":"warn","no-required-schema-properties-undefined":"warn","no-enum-type-mismatch":"error","no-schema-type-mismatch":"error"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"warn","no-channel-trailing-slash":"off","operation-operationId":"warn","tag-description":"warn","tags-alphabetical":"off","no-duplicated-tag-names":"warn","no-required-schema-properties-undefined":"warn","no-enum-type-mismatch":"error","no-schema-type-mismatch":"error"},arazzo1Rules:{"criteria-unique":"warn","no-criteria-xpath":"off","parameters-unique":"error","requestBody-replacements-unique":"warn","sourceDescription-type":"error","step-onSuccess-unique":"warn","step-onFailure-unique":"warn","stepId-unique":"error","sourceDescription-name-unique":"error","sourceDescriptions-not-empty":"error","respect-supported-versions":"off","workflowId-unique":"error","workflow-dependsOn":"error","no-x-security-scheme-name-without-openapi":"off","x-security-scheme-required-values":"off","no-x-security-scheme-name-in-workflow":"off","no-required-schema-properties-undefined":"warn","no-enum-type-mismatch":"error","no-schema-type-mismatch":"error"},overlay1Rules:{"info-contact":"off"}},X$=hV;var yV={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"off","no-invalid-parameter-examples":"off","no-http-verbs-in-paths":"off","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"off","operation-2xx-response":"error","operation-4xx-response":"error","operation-parameters-unique":"error","operation-tag-defined":"off","operation-singular-tag":"off","parameter-description":"off","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"off","path-http-verbs-order":"off","path-params-defined":"off","path-segment-plural":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","request-mime-type":"off","response-contains-property":"off","response-mime-type":"off","security-defined":"error","spec-strict-refs":"off","scalar-property-missing-example":"off","tag-description":"error","tags-alphabetical":"off","no-duplicated-tag-names":"error"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"off","no-invalid-parameter-examples":"off","no-http-verbs-in-paths":"off","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-invalid-media-type-examples":{severity:"error",allowAdditionalProperties:!1},"no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","nullable-type-sibling":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"off","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-parameters-unique":"error","operation-tag-defined":"off","operation-singular-tag":"off","parameter-description":"off","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"off","path-http-verbs-order":"off","path-params-defined":"off","path-segment-plural":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","request-mime-type":"off","response-contains-property":"off","response-mime-type":"off","security-defined":"error","spec-strict-refs":"off","scalar-property-missing-example":"off","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"off","no-duplicated-tag-names":"error","spec-example-values":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"off","no-invalid-parameter-examples":"off","no-http-verbs-in-paths":"off","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-invalid-media-type-examples":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"off","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-parameters-unique":"error","operation-tag-defined":"off","operation-singular-tag":"off","parameter-description":"off","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"off","path-http-verbs-order":"off","path-params-defined":"off","path-segment-plural":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","request-mime-type":"off","response-contains-property":"off","response-mime-type":"off","security-defined":"error","spec-strict-refs":"off","scalar-property-missing-example":"off","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"off","no-duplicated-tag-names":"error","spec-example-values":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"off","no-invalid-parameter-examples":"off","no-http-verbs-in-paths":"off","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-invalid-media-type-examples":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"off","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-parameters-unique":"error","operation-tag-defined":"off","operation-singular-tag":"off","parameter-description":"off","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"off","path-http-verbs-order":"off","path-params-defined":"off","path-segment-plural":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","request-mime-type":"off","response-contains-property":"off","response-mime-type":"off","security-defined":"error","spec-strict-refs":"off","scalar-property-missing-example":"off","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"off","no-duplicated-tag-names":"error","spec-no-invalid-tag-parents":"error","spec-no-invalid-encoding-combinations":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"error","no-channel-trailing-slash":"off","operation-operationId":"error","tag-description":"error","tags-alphabetical":"off","no-duplicated-tag-names":"error","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-schema-type-mismatch":"error"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"error","no-channel-trailing-slash":"off","operation-operationId":"error","tag-description":"error","tags-alphabetical":"off","no-duplicated-tag-names":"error","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-schema-type-mismatch":"error"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-type":"error","step-onSuccess-unique":"error","step-onFailure-unique":"error","stepId-unique":"error","sourceDescription-name-unique":"error","sourceDescriptions-not-empty":"error","respect-supported-versions":"off","workflowId-unique":"error","workflow-dependsOn":"error","no-x-security-scheme-name-without-openapi":"off","x-security-scheme-required-values":"off","no-x-security-scheme-name-in-workflow":"off","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-schema-type-mismatch":"error"},overlay1Rules:{"info-contact":"off"}},J$=yV;var gV={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error"},oas3_0Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-invalid-media-type-examples":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","nullable-type-sibling":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-example-values":"error"},oas3_1Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-invalid-media-type-examples":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-example-values":"error"},oas3_2Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-invalid-media-type-examples":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-no-invalid-tag-parents":"error","spec-no-invalid-encoding-combinations":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error"},async2Rules:{"channels-kebab-case":"error","info-contact":"error","info-license-strict":"error","no-channel-trailing-slash":"error","operation-operationId":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-schema-type-mismatch":"error"},async3Rules:{"channels-kebab-case":"error","info-contact":"error","info-license-strict":"error","no-channel-trailing-slash":"error","operation-operationId":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-schema-type-mismatch":"error"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-type":"error","step-onSuccess-unique":"error","step-onFailure-unique":"error","stepId-unique":"error","sourceDescription-name-unique":"error","sourceDescriptions-not-empty":"error","respect-supported-versions":"off","workflowId-unique":"error","workflow-dependsOn":"error","no-x-security-scheme-name-without-openapi":"off","x-security-scheme-required-values":"off","no-x-security-scheme-name-in-workflow":"off","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-schema-type-mismatch":"error"},overlay1Rules:{"info-contact":"error"}},Q$=gV;var bV={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-path-trailing-slash":"warn","no-identical-paths":"warn","no-ambiguous-paths":"warn","no-invalid-schema-examples":"off","no-invalid-parameter-examples":"off","no-http-verbs-in-paths":"off","no-enum-type-mismatch":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","operation-summary":"warn","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-description":"off","operation-2xx-response":"warn","operation-4xx-response":"off","operation-parameters-unique":"warn","operation-tag-defined":"off","operation-singular-tag":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-not-include-query":"warn","path-parameters-defined":"warn","paths-kebab-case":"off","path-http-verbs-order":"off","path-params-defined":"off","path-segment-plural":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","request-mime-type":"off","response-contains-property":"off","response-mime-type":"off","security-defined":"warn","spec-strict-refs":"off","scalar-property-missing-example":"off","tag-description":"warn","tags-alphabetical":"off","no-duplicated-tag-names":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-path-trailing-slash":"warn","no-identical-paths":"warn","no-invalid-schema-examples":"off","no-invalid-parameter-examples":"off","no-http-verbs-in-paths":"off","no-enum-type-mismatch":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-invalid-media-type-examples":{severity:"warn",allowAdditionalProperties:!1},"no-server-example.com":"warn","no-server-trailing-slash":"error","no-empty-servers":"warn","no-example-value-and-externalValue":"warn","no-unused-components":"warn","no-undefined-server-variable":"warn","no-server-variables-empty-enum":"error","nullable-type-sibling":"warn","operation-summary":"warn","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-description":"off","operation-2xx-response":"warn","operation-4xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-parameters-unique":"warn","operation-tag-defined":"off","operation-singular-tag":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-not-include-query":"warn","path-parameters-defined":"warn","paths-kebab-case":"off","path-http-verbs-order":"off","path-params-defined":"off","path-segment-plural":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","request-mime-type":"off","response-contains-property":"off","response-mime-type":"off","security-defined":"warn","spec-strict-refs":"off","scalar-property-missing-example":"off","spec-components-invalid-map-name":"warn","tag-description":"warn","tags-alphabetical":"off","no-duplicated-tag-names":"off","spec-example-values":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-path-trailing-slash":"warn","no-identical-paths":"warn","no-ambiguous-paths":"warn","no-invalid-schema-examples":"off","no-invalid-parameter-examples":"off","no-http-verbs-in-paths":"off","no-enum-type-mismatch":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-invalid-media-type-examples":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-empty-servers":"warn","no-example-value-and-externalValue":"warn","no-unused-components":"warn","no-undefined-server-variable":"warn","no-server-variables-empty-enum":"error","operation-summary":"warn","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-description":"off","operation-2xx-response":"warn","operation-4xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-parameters-unique":"warn","operation-tag-defined":"off","operation-singular-tag":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-not-include-query":"warn","path-parameters-defined":"warn","paths-kebab-case":"off","path-http-verbs-order":"off","path-params-defined":"off","path-segment-plural":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","request-mime-type":"off","response-contains-property":"off","response-mime-type":"off","security-defined":"warn","spec-strict-refs":"off","scalar-property-missing-example":"off","spec-components-invalid-map-name":"warn","tag-description":"warn","tags-alphabetical":"off","no-duplicated-tag-names":"off","spec-example-values":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-path-trailing-slash":"warn","no-identical-paths":"warn","no-ambiguous-paths":"warn","no-invalid-schema-examples":"off","no-invalid-parameter-examples":"off","no-http-verbs-in-paths":"off","no-enum-type-mismatch":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-invalid-media-type-examples":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-empty-servers":"warn","no-unused-components":"warn","no-undefined-server-variable":"warn","no-server-variables-empty-enum":"error","operation-summary":"warn","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-description":"off","operation-2xx-response":"warn","operation-4xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-parameters-unique":"warn","operation-tag-defined":"off","operation-singular-tag":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-not-include-query":"warn","path-parameters-defined":"warn","paths-kebab-case":"off","path-http-verbs-order":"off","path-params-defined":"off","path-segment-plural":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","request-mime-type":"off","response-contains-property":"off","response-mime-type":"off","security-defined":"warn","spec-strict-refs":"off","scalar-property-missing-example":"off","spec-components-invalid-map-name":"warn","tag-description":"warn","tags-alphabetical":"off","no-duplicated-tag-names":"off","spec-no-invalid-tag-parents":"warn","spec-no-invalid-encoding-combinations":"warn","spec-discriminator-defaultMapping":"off","spec-example-values":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","operation-operationId":"warn","tag-description":"warn","tags-alphabetical":"off","no-duplicated-tag-names":"off","no-required-schema-properties-undefined":"warn","no-enum-type-mismatch":"warn","no-schema-type-mismatch":"warn"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","operation-operationId":"warn","tag-description":"warn","tags-alphabetical":"off","no-duplicated-tag-names":"off","no-required-schema-properties-undefined":"warn","no-enum-type-mismatch":"warn","no-schema-type-mismatch":"warn"},arazzo1Rules:{"criteria-unique":"off","no-criteria-xpath":"off","parameters-unique":"off","requestBody-replacements-unique":"off","sourceDescription-type":"off","sourceDescriptions-not-empty":"off","step-onSuccess-unique":"off","step-onFailure-unique":"off","stepId-unique":"error","sourceDescription-name-unique":"off","respect-supported-versions":"off","workflowId-unique":"error","workflow-dependsOn":"off","no-x-security-scheme-name-without-openapi":"off","x-security-scheme-required-values":"off","no-x-security-scheme-name-in-workflow":"off","no-required-schema-properties-undefined":"warn","no-enum-type-mismatch":"warn","no-schema-type-mismatch":"warn"},overlay1Rules:{"info-contact":"off"}},Z$=bV;var vV={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-path-trailing-slash":"off","no-identical-paths":"error","no-ambiguous-paths":"off","no-duplicated-tag-names":"off","no-invalid-schema-examples":"off","no-invalid-parameter-examples":"off","no-http-verbs-in-paths":"off","no-enum-type-mismatch":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","operation-summary":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-description":"off","operation-2xx-response":"off","operation-4xx-response":"off","operation-parameters-unique":"error","operation-tag-defined":"off","operation-singular-tag":"off","parameter-description":"off","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"off","path-http-verbs-order":"off","path-params-defined":"off","path-segment-plural":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","request-mime-type":"off","response-contains-property":"off","response-mime-type":"off","security-defined":"off","spec-strict-refs":"error","scalar-property-missing-example":"off","tag-description":"off","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-path-trailing-slash":"off","no-identical-paths":"error","no-ambiguous-paths":"off","no-duplicated-tag-names":"off","no-invalid-schema-examples":"off","no-invalid-parameter-examples":"off","no-http-verbs-in-paths":"off","no-enum-type-mismatch":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-invalid-media-type-examples":{severity:"off",allowAdditionalProperties:!1},"no-server-example.com":"off","no-server-trailing-slash":"off","no-empty-servers":"off","no-example-value-and-externalValue":"error","no-unused-components":"off","no-undefined-server-variable":"error","no-server-variables-empty-enum":"off","operation-summary":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-description":"off","operation-2xx-response":"off","operation-4xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-parameters-unique":"error","operation-tag-defined":"off","operation-singular-tag":"off","parameter-description":"off","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"off","path-http-verbs-order":"off","path-params-defined":"off","path-segment-plural":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","request-mime-type":"off","response-contains-property":"off","response-mime-type":"off","security-defined":"off","spec-strict-refs":"error","scalar-property-missing-example":"off","spec-components-invalid-map-name":"error","tag-description":"off","tags-alphabetical":"off","nullable-type-sibling":"error","spec-example-values":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-path-trailing-slash":"off","no-identical-paths":"error","no-ambiguous-paths":"off","no-duplicated-tag-names":"off","no-invalid-schema-examples":"off","no-invalid-parameter-examples":"off","no-http-verbs-in-paths":"off","no-enum-type-mismatch":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-invalid-media-type-examples":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-empty-servers":"off","no-example-value-and-externalValue":"error","no-unused-components":"off","no-undefined-server-variable":"error","no-server-variables-empty-enum":"off","operation-summary":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-description":"off","operation-2xx-response":"off","operation-4xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-parameters-unique":"error","operation-tag-defined":"off","operation-singular-tag":"off","parameter-description":"off","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"off","path-http-verbs-order":"off","path-params-defined":"off","path-segment-plural":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","request-mime-type":"off","response-contains-property":"off","response-mime-type":"off","security-defined":"off","spec-strict-refs":"error","scalar-property-missing-example":"off","spec-components-invalid-map-name":"error","tag-description":"off","tags-alphabetical":"off","spec-example-values":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-path-trailing-slash":"off","no-identical-paths":"error","no-ambiguous-paths":"off","no-duplicated-tag-names":"off","no-invalid-schema-examples":"off","no-invalid-parameter-examples":"off","no-http-verbs-in-paths":"off","no-enum-type-mismatch":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-invalid-media-type-examples":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-empty-servers":"off","no-unused-components":"off","no-undefined-server-variable":"error","no-server-variables-empty-enum":"off","operation-summary":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-description":"off","operation-2xx-response":"off","operation-4xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-parameters-unique":"error","operation-tag-defined":"off","operation-singular-tag":"off","parameter-description":"off","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"off","path-http-verbs-order":"off","path-params-defined":"off","path-segment-plural":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","request-mime-type":"off","response-contains-property":"off","response-mime-type":"off","security-defined":"off","spec-strict-refs":"error","scalar-property-missing-example":"off","spec-components-invalid-map-name":"error","tag-description":"off","tags-alphabetical":"off","spec-no-invalid-tag-parents":"error","spec-no-invalid-encoding-combinations":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-tag-names":"off","no-required-schema-properties-undefined":"off","no-enum-type-mismatch":"off","no-schema-type-mismatch":"off","operation-operationId":"off","tag-description":"off","tags-alphabetical":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-tag-names":"off","no-required-schema-properties-undefined":"off","no-enum-type-mismatch":"off","no-schema-type-mismatch":"off","operation-operationId":"off","tag-description":"off","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-type":"error","step-onSuccess-unique":"error","step-onFailure-unique":"error","stepId-unique":"error","sourceDescription-name-unique":"error","sourceDescriptions-not-empty":"error","respect-supported-versions":"off","workflowId-unique":"error","workflow-dependsOn":"error","no-x-security-scheme-name-without-openapi":"off","x-security-scheme-required-values":"off","no-x-security-scheme-name-in-workflow":"off","no-required-schema-properties-undefined":"off","no-enum-type-mismatch":"off","no-schema-type-mismatch":"off"},overlay1Rules:{"info-contact":"off"}},eP=vV;var KA=Ee(rP(),1);var VA=Ee(X0(),1),zA=Ee(zy(),1);var Sp=null;function cY(e,t){return Sp||(Sp=new zA.default({schemaId:"$id",meta:!0,allErrors:!0,strictSchema:!1,inlineRefs:!1,validateSchema:!1,discriminator:!0,allowUnionTypes:!0,validateFormats:!0,defaultUnevaluatedProperties:t,loadSchemaSync(r,n,i){let o=e({$ref:n},r.split("#")[0]);return!o||!o.location?!1:{$id:o.location.source.absoluteRef+"#"+i,...o.node}},logger:!1}),(0,VA.default)(Sp)),Sp}function lY(e,t,r,n){let i=cY(r,n);return i.getSchema(t.absolutePointer)||i.addSchema({$id:t.absolutePointer,...e},t.absolutePointer),i.getSchema(t.absolutePointer)}function HA(e,t,r,n,i,o){let s=lY(t,r,i,o);if(!s)return{valid:!0,errors:[]};return{valid:!!s(e,{instancePath:n,parentData:{fake:{}},parentDataProperty:"fake",rootData:{},dynamicAnchors:{}}),errors:(s.errors||[]).map(c)};function c(l){let u=l.message,p=l.keyword==="enum"?l.params.allowedValues:void 0;p&&(u+=` ${p.map(f=>`"${f}"`).join(", ")}`),l.keyword==="type"&&(u=`type ${u}`);let m=l.instancePath.substring(n.length+1),d=m.substring(m.lastIndexOf("/")+1);if(d&&(u=`\`${d}\` property ${u}`),l.keyword==="additionalProperties"||l.keyword==="unevaluatedProperties"){let f=l.params.additionalProperty||l.params.unevaluatedProperty;u=`${u} \`${f}\``,l.instancePath+="/"+Hn(f)}return{...l,message:u,suggest:p}}}function Ts(e){return Array.isArray(e)?"array":e===null?"null":Number.isInteger(e)?"integer":typeof e}function Ns(e,t,r){if(r&&e===null)return!0;switch(t){case"array":return Array.isArray(e);case"object":return typeof e=="object"&&e!==null&&!Array.isArray(e);case"null":return e===null;case"integer":return Number.isInteger(e);default:return typeof e===t}}function Nc(e,t){return`${e} object should contain \`${t}\` field.`}function uY(e,t){return`${e} object should contain one of the fields: ${t.map(r=>`\`${r}\``).join(", ")}.`}function GA(e,t){return`${e} object \`${t}\` must be non-empty string.`}function or(e,t,r){W(t)&&(t[e]===void 0?r.report({message:Nc(r.type.name,e),location:r.location.child([e]).key()}):t[e]||r.report({message:GA(r.type.name,e),location:r.location.child([e]).key()}))}function YA(e,t,r){if(W(t)){e.some(n=>t.hasOwnProperty(n))||r.report({message:uY(r.type.name,e),location:r.location.key()});for(let n of e)t.hasOwnProperty(n)&&!t[n]&&r.report({message:GA(r.type.name,n),location:r.location.child([n]).key()})}}function J0(e,t){if(e===null)return t;if(typeof e!="string"||!t.length)return[];let r=[];for(let n=0;n<t.length;n++){let i=(0,KA.default)(e,t[n]);i<4&&r.push({distance:i,variant:t[n]})}return r.sort((n,i)=>n.distance-i.distance),r.map(n=>n.variant)}function pi(e,t,r,{resolve:n,location:i,report:o},s){try{let{valid:a,errors:c}=HA(e,t,i.child("schema"),r.pointer,n,s);if(!a)for(let l of c)o({message:`Example value must conform to the schema: ${l.message}.`,location:{...new zn(r.source,l.instancePath),reportOnKey:l.keyword==="unevaluatedProperties"||l.keyword==="additionalProperties"},from:i,suggest:l.suggest})}catch(a){if(a.message==="discriminator: requires oneOf or anyOf composite keyword")return;o({message:`Example validation errored: ${a.message}.`,location:i.child("schema"),from:i})}}function Q0(e,t,r,n,{report:i,location:o}){e&&(e.includes(t)||i({location:o,message:`\`${r}\` can be one of the following only: ${e.map(s=>`"${s}"`).join(", ")}.`,from:n,suggest:J0(t,e)}))}function Is(e,t,{report:r}){let n=new RegExp(`^${t[0]}[0-9Xx]{2}$`);e.some(o=>t==="2XX"&&o==="default"||n.test(o))||r({message:`Operation must have at least one \`${t}\` response.`,location:{reportOnKey:!0}})}function Ic(e,t){return t?e.name.toLowerCase():e.name}function sn(e,t){return e.hasOwnProperty(t)?e[t]:void 0}var ur=()=>({any(e,{report:t,type:r,location:n,rawLocation:i,key:o,resolve:s,ignoreNextVisitorsOnNode:a}){var d,f,h,y,b,g;let c=Ts(e),l=i!==n?i:void 0;if(r.items){c!=="array"&&(t({message:`Expected type \`${r.name}\` (array) but got \`${c}\``,from:l}),a());return}else if(c!=="object"){r!==kr&&t({message:`Expected type \`${r.name}\` (object) but got \`${c}\``,from:l}),a();return}let u=typeof r.required=="function"?r.required(e,o):r.required;for(let v of u||[])e.hasOwnProperty(v)||t({message:`The field \`${v}\` must be present on this level.`,from:l,location:[{reportOnKey:!0}]});let p=(d=r.allowed)==null?void 0:d.call(r,e);if(p&&W(e))for(let v in e)p.includes(v)||r.extensionsPrefix&&v.startsWith(r.extensionsPrefix)||!Object.keys(r.properties).includes(v)||t({message:`The field \`${v}\` is not allowed here.`,from:l,location:n.child([v]).key()});let m=r.requiredOneOf||null;if(m){let v=!1;for(let _ of m||[])e.hasOwnProperty(_)&&(v=!0);v||t({message:`Must contain at least one of the following fields: ${(f=r.requiredOneOf)==null?void 0:f.join(", ")}.`,from:l,location:[{reportOnKey:!0}]})}for(let v of Object.keys(e)){let _=n.child([v]),w=e[v],N=sn(r.properties,v);if(N===void 0&&(N=r.additionalProperties),typeof N=="function"&&(N=N(w,v)),Yr(N))continue;let S=N,O=Ts(w);if(S===void 0){if(v.startsWith("x-"))continue;t({message:`Property \`${v}\` is not expected here.`,suggest:J0(v,Object.keys(r.properties)),from:l,location:_.key()});continue}if(S!==null){if(S.resolvable!==!1&&Oe(w)&&(w=s(w).node),S.items&&((h=S.items)!=null&&h.enum)&&Array.isArray(w))for(let P=0;P<w.length;P++)Q0((y=S.items)==null?void 0:y.enum,w[P],v,l,{report:t,location:n.child([v,P])});if(S.enum)Q0(S.enum,w,v,l,{report:t,location:n.child([v])});else if(S.type&&!Ns(w,S.type,!1))t({message:`Expected type \`${S.type}\` but got \`${O}\`.`,from:l,location:_}),a();else if(O==="array"&&((b=S.items)!=null&&b.type)){let P=(g=S.items)==null?void 0:g.type;for(let E=0;E<w.length;E++){let R=w[E];Ns(R,P,!1)||t({message:`Expected type \`${P}\` but got \`${Ts(R)}\`.`,from:l,location:_.child([E])})}}typeof S.minimum=="number"&&S.minimum>e[v]&&t({message:`The value of the ${v} field must be greater than or equal to ${S.minimum}`,from:l,location:n.child([v])})}}}});var _p=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){let n=Object.keys(t||{});Is(n,"2XX",{report:r})}},WebhooksMap:{Responses(t,{report:r}){if(!e)return;let n=Object.keys(t||{});Is(n,"2XX",{report:r})}}});var Op=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){let n=Object.keys(t||{});Is(n,"4XX",{report:r})}},WebhooksMap:{Responses(t,{report:r}){if(!e)return;let n=Object.keys(t||{});Is(n,"4XX",{report:r})}}});var rb={};jd(rb,{bgBlack:()=>IY,bgBlackBright:()=>WY,bgBlue:()=>MY,bgBlueBright:()=>ZY,bgCyan:()=>DY,bgCyanBright:()=>tW,bgGreen:()=>qY,bgGreenBright:()=>JY,bgMagenta:()=>LY,bgMagentaBright:()=>eW,bgRed:()=>kY,bgRedBright:()=>XY,bgWhite:()=>FY,bgWhiteBright:()=>rW,bgYellow:()=>jY,bgYellowBright:()=>QY,black:()=>OY,blackBright:()=>BY,blue:()=>AY,blueBright:()=>HY,bold:()=>gY,cyan:()=>RY,cyanBright:()=>GY,dim:()=>bY,gray:()=>NY,green:()=>PY,greenBright:()=>VY,hidden:()=>SY,inverse:()=>wY,italic:()=>vY,magenta:()=>CY,magentaBright:()=>KY,options:()=>WA,red:()=>$Y,redBright:()=>UY,reset:()=>yY,strikethrough:()=>_Y,underline:()=>xY,white:()=>TY,whiteBright:()=>YY,yellow:()=>EY,yellowBright:()=>zY});var eb=Ee(require("tty"),1),fi=process.env,pY="NO_COLOR"in fi,fY="FORCE_COLOR"in fi,dY=process.platform==="win32",mY=eb&&eb.isatty(1)&&fi.TERM&&fi.TERM!=="dumb",hY="CI"in fi&&("GITHUB_ACTIONS"in fi||"GITLAB_CI"in fi||"CIRCLECI"in fi),Z0=!pY&&(fY||dY||mY||hY),tb=(e,t,r,n)=>i=>Z0?e+(~(i+="").indexOf(t,4)?i.replace(r,n):i)+t:i,me=(e,t)=>tb(`\x1B[${e}m`,`\x1B[${t}m`,new RegExp(`\\x1b\\[${t}m`,"g"),`\x1B[${e}m`),WA=Object.defineProperty({},"enabled",{get:()=>Z0,set:e=>Z0=e}),yY=me(0,0),gY=tb("\x1B[1m","\x1B[22m",/\x1b\[22m/g,"\x1B[22m\x1B[1m"),bY=tb("\x1B[2m","\x1B[22m",/\x1b\[22m/g,"\x1B[22m\x1B[2m"),vY=me(3,23),xY=me(4,24),wY=me(7,27),SY=me(8,28),_Y=me(9,29),OY=me(30,39),$Y=me(31,39),PY=me(32,39),EY=me(33,39),AY=me(34,39),CY=me(35,39),RY=me(36,39),TY=me(37,39),NY=me(90,39),IY=me(40,49),kY=me(41,49),qY=me(42,49),jY=me(43,49),MY=me(44,49),LY=me(45,49),DY=me(46,49),FY=me(47,49),BY=me(90,39),UY=me(91,39),VY=me(92,39),zY=me(93,39),HY=me(94,39),KY=me(95,39),GY=me(96,39),YY=me(97,39),WY=me(100,49),XY=me(101,49),JY=me(102,49),QY=me(103,49),ZY=me(104,49),eW=me(105,49),tW=me(106,49),rW=me(107,49);function XA(e){return e}var Ue=new Proxy(rb,{get(e,t){return bt?XA:e[t]}}),nb=class{info(t){return bt?console.info(t):process.stderr.write(t)}warn(t){return bt?console.warn(t):process.stderr.write(Ue.yellow(t))}error(t){return bt?console.error(t):process.stderr.write(Ue.red(t))}output(t){return bt?console.log(t):process.stdout.write(t)}printNewLine(){bt?console.log(`
239
+ `,Lu="configBundler",Du="pluginsCollector",W$=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];function mV(e){return e?xl(e)?lr.join(lr.dirname(e),tc):lr.join(e,tc):bt?void 0:lr.join(process.cwd(),tc)}var rc=class e{constructor(t,r={}){var i;this.ignore={},this._usedRules=new Set,this._usedVersions=new Set,this.resolvedConfig=t,this.configPath=r.configPath,this.document=r.document,this.resolvedRefMap=r.resolvedRefMap,this.resolve=Mu(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!((i=t.resolve)!=null&&i.doNotResolveExamples);let n=o=>K$({rules:o},this.plugins);this.rules={oas2:n({...t.rules,...t.oas2Rules}),oas3_0:n({...t.rules,...t.oas3_0Rules}),oas3_1:n({...t.rules,...t.oas3_1Rules}),oas3_2:n({...t.rules,...t.oas3_2Rules}),async2:n({...t.rules,...t.async2Rules}),async3:n({...t.rules,...t.async3Rules}),arazzo1:n({...t.rules,...t.arazzo1Rules}),overlay1:n({...t.rules,...t.overlay1Rules})},this.preprocessors={oas2:{...t.preprocessors,...t.oas2Preprocessors},oas3_0:{...t.preprocessors,...t.oas3_0Preprocessors},oas3_1:{...t.preprocessors,...t.oas3_1Preprocessors},oas3_2:{...t.preprocessors,...t.oas3_2Preprocessors},async2:{...t.preprocessors,...t.async2Preprocessors},async3:{...t.preprocessors,...t.async3Preprocessors},arazzo1:{...t.preprocessors,...t.arazzo1Preprocessors},overlay1:{...t.preprocessors,...t.overlay1Preprocessors}},this.decorators={oas2:{...t.decorators,...t.oas2Decorators},oas3_0:{...t.decorators,...t.oas3_0Decorators},oas3_1:{...t.decorators,...t.oas3_1Decorators},oas3_2:{...t.decorators,...t.oas3_2Decorators},async2:{...t.decorators,...t.async2Decorators},async3:{...t.decorators,...t.async3Decorators},arazzo1:{...t.decorators,...t.arazzo1Decorators},overlay1:{...t.decorators,...t.overlay1Decorators}},this.resolveIgnore(mV(r.configPath))}forAlias(t){var a,c;if(t===void 0||!W((c=(a=this.resolvedConfig)==null?void 0:a.apis)==null?void 0:c[t]))return this;let{apis:r,...n}=this.resolvedConfig,{root:i,output:o,...s}=r[t];return new e({...n,...s},{configPath:this.configPath,document:this.document,resolvedRefMap:this.resolvedRefMap,alias:t,plugins:this.plugins})}resolveIgnore(t){if(!(!t||!xl(t))){this.ignore=Pn(Fu.readFileSync(t,"utf-8"))||{};for(let r of Object.keys(this.ignore)){this.ignore[Je(r)?r:lr.resolve(lr.dirname(t),r)]=this.ignore[r];for(let n of Object.keys(this.ignore[r]))this.ignore[r][n]=new Set(this.ignore[r][n]);Je(r)||delete this.ignore[r]}}}saveIgnore(){let t=this.configPath?lr.dirname(this.configPath):process.cwd(),r=lr.join(t,tc),n={};for(let i of Object.keys(this.ignore)){let o=Je(i)?i:em(lr.relative(t,i)),s=n[o]=this.ignore[i];for(let a of Object.keys(s))s[a]=Array.from(s[a])}Fu.writeFileSync(r,Y$+Iu(n))}addIgnore(t){let r=this.ignore,n=t.location[0];if(n.pointer===void 0)return;let i=r[n.source.absoluteRef]=r[n.source.absoluteRef]||{};(i[t.ruleId]=i[t.ruleId]||new Set).add(n.pointer)}addProblemToIgnore(t){let r=t.location[0];if(r.pointer===void 0)return t;let i=(this.ignore[r.source.absoluteRef]||{})[t.ruleId],o=i&&i.has(r.pointer);return o?{...t,ignored:o}:t}extendTypes(t,r){let n=t;for(let i of this.plugins)if(i.typeExtension!==void 0)switch(r){case"oas3_0":case"oas3_1":case"oas3_2":if(!i.typeExtension.oas3)continue;n=i.typeExtension.oas3(n,r);break;case"oas2":if(!i.typeExtension.oas2)continue;n=i.typeExtension.oas2(n,r);break;case"async2":if(!i.typeExtension.async2)continue;n=i.typeExtension.async2(n,r);break;case"async3":if(!i.typeExtension.async3)continue;n=i.typeExtension.async3(n,r);break;case"arazzo1":if(!i.typeExtension.arazzo1)continue;n=i.typeExtension.arazzo1(n,r);break;case"overlay1":if(!i.typeExtension.overlay1)continue;n=i.typeExtension.overlay1(n,r);break;default:throw new Error("Not implemented")}return n}getRuleSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);let n=this.rules[r][t]||"off";return typeof n=="string"?{severity:n}:{severity:"error",...n}}getPreprocessorSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);let n=this.preprocessors[r][t]||"off";return typeof n=="string"?{severity:n==="on"?"error":n}:{severity:"error",...n}}getDecoratorSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);let n=this.decorators[r][t]||"off";return typeof n=="string"?{severity:n==="on"?"error":n}:{severity:"error",...n}}getUnusedRules(){let t=[],r=[],n=[];for(let i of Array.from(this._usedVersions))t.push(...Object.keys(this.rules[i]).filter(o=>!this._usedRules.has(o))),r.push(...Object.keys(this.decorators[i]).filter(o=>!this._usedRules.has(o))),n.push(...Object.keys(this.preprocessors[i]).filter(o=>!this._usedRules.has(o)));return{rules:t,preprocessors:n,decorators:r}}getRulesForSpecVersion(t){switch(t){case"oas3":let r=[];return this.plugins.forEach(c=>{var l;return((l=c.preprocessors)==null?void 0:l.oas3)&&r.push(c.preprocessors.oas3)}),this.plugins.forEach(c=>{var l;return((l=c.rules)==null?void 0:l.oas3)&&r.push(c.rules.oas3)}),this.plugins.forEach(c=>{var l;return((l=c.decorators)==null?void 0:l.oas3)&&r.push(c.decorators.oas3)}),r;case"oas2":let n=[];return this.plugins.forEach(c=>{var l;return((l=c.preprocessors)==null?void 0:l.oas2)&&n.push(c.preprocessors.oas2)}),this.plugins.forEach(c=>{var l;return((l=c.rules)==null?void 0:l.oas2)&&n.push(c.rules.oas2)}),this.plugins.forEach(c=>{var l;return((l=c.decorators)==null?void 0:l.oas2)&&n.push(c.decorators.oas2)}),n;case"async2":let i=[];return this.plugins.forEach(c=>{var l;return((l=c.preprocessors)==null?void 0:l.async2)&&i.push(c.preprocessors.async2)}),this.plugins.forEach(c=>{var l;return((l=c.rules)==null?void 0:l.async2)&&i.push(c.rules.async2)}),this.plugins.forEach(c=>{var l;return((l=c.decorators)==null?void 0:l.async2)&&i.push(c.decorators.async2)}),i;case"async3":let o=[];return this.plugins.forEach(c=>{var l;return((l=c.preprocessors)==null?void 0:l.async3)&&o.push(c.preprocessors.async3)}),this.plugins.forEach(c=>{var l;return((l=c.rules)==null?void 0:l.async3)&&o.push(c.rules.async3)}),this.plugins.forEach(c=>{var l;return((l=c.decorators)==null?void 0:l.async3)&&o.push(c.decorators.async3)}),o;case"arazzo1":let s=[];return this.plugins.forEach(c=>{var l;return((l=c.preprocessors)==null?void 0:l.arazzo1)&&s.push(c.preprocessors.arazzo1)}),this.plugins.forEach(c=>{var l;return((l=c.rules)==null?void 0:l.arazzo1)&&s.push(c.rules.arazzo1)}),this.plugins.forEach(c=>{var l;return((l=c.decorators)==null?void 0:l.arazzo1)&&s.push(c.decorators.arazzo1)}),s;case"overlay1":let a=[];return this.plugins.forEach(c=>{var l;return((l=c.preprocessors)==null?void 0:l.overlay1)&&a.push(c.preprocessors.overlay1)}),this.plugins.forEach(c=>{var l;return((l=c.rules)==null?void 0:l.overlay1)&&a.push(c.rules.overlay1)}),this.plugins.forEach(c=>{var l;return((l=c.decorators)==null?void 0:l.overlay1)&&a.push(c.decorators.overlay1)}),a}}skipRules(t){for(let r of t||[])for(let n of qu)if(this.rules[n][r])this.rules[n][r]="off";else if(Array.isArray(this.rules[n].assertions))for(let i of this.rules[n].assertions)i.assertionId===r&&(i.severity="off")}skipPreprocessors(t){for(let r of t||[])for(let n of qu)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(t){for(let r of t||[])for(let n of qu)this.decorators[n][r]&&(this.decorators[n][r]="off")}};function ds(e){return e!==void 0}function Bu(e,t,r,n){return e.flatMap(i=>Object.keys(i).map(o=>{let s=i[o],a=r==="rules"?t.getRuleSettings(o,n):r==="preprocessors"?t.getPreprocessorSettings(o,n):t.getDecoratorSettings(o,n);if(a.severity==="off")return;let c=a.severity,l=a.message,u=s(a);return Array.isArray(u)?u.map(p=>({severity:c,ruleId:o,message:l,visitor:p})):{severity:c,message:l,ruleId:o,visitor:u}})).flatMap(i=>i).filter(ds)}var hV={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","operation-2xx-response":"warn","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":{severity:"warn",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unused-components":"warn","nullable-type-sibling":"error","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","spec-components-invalid-map-name":"error","spec-discriminator-defaultMapping":"warn","spec-example-values":"error","spec-no-invalid-encoding-combinations":"error","spec-no-invalid-tag-parents":"error","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"warn","no-channel-trailing-slash":"off","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","operation-operationId":"warn","tag-description":"warn","tags-alphabetical":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"warn","no-channel-trailing-slash":"off","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","operation-operationId":"warn","tag-description":"warn","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"warn","no-criteria-xpath":"off","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-x-security-scheme-name-in-workflow":"off","no-x-security-scheme-name-without-openapi":"off","parameters-unique":"error","requestBody-replacements-unique":"warn","respect-supported-versions":"off","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","step-onFailure-unique":"warn","step-onSuccess-unique":"warn","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"}},X$=hV;var yV={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":{severity:"error",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unused-components":"error","nullable-type-sibling":"error","operation-2xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"error","no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unused-components":"error","operation-2xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"error","no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unused-components":"error","operation-2xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","spec-components-invalid-map-name":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error","spec-no-invalid-encoding-combinations":"error","spec-no-invalid-tag-parents":"error","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"error","no-channel-trailing-slash":"off","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","operation-operationId":"error","tag-description":"error","tags-alphabetical":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"error","no-channel-trailing-slash":"off","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","operation-operationId":"error","tag-description":"error","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-x-security-scheme-name-in-workflow":"off","no-x-security-scheme-name-without-openapi":"off","parameters-unique":"error","requestBody-replacements-unique":"error","respect-supported-versions":"off","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"}},J$=yV;var gV={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error"},oas3_0Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-invalid-media-type-examples":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","nullable-type-sibling":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-example-values":"error"},oas3_1Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-invalid-media-type-examples":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-example-values":"error"},oas3_2Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-invalid-media-type-examples":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-no-invalid-tag-parents":"error","spec-no-invalid-encoding-combinations":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error"},async2Rules:{"channels-kebab-case":"error","info-contact":"error","info-license-strict":"error","no-channel-trailing-slash":"error","operation-operationId":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-schema-type-mismatch":"error"},async3Rules:{"channels-kebab-case":"error","info-contact":"error","info-license-strict":"error","no-channel-trailing-slash":"error","operation-operationId":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-schema-type-mismatch":"error"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-type":"error","step-onSuccess-unique":"error","step-onFailure-unique":"error","stepId-unique":"error","sourceDescription-name-unique":"error","sourceDescriptions-not-empty":"error","respect-supported-versions":"off","workflowId-unique":"error","workflow-dependsOn":"error","no-x-security-scheme-name-without-openapi":"off","x-security-scheme-required-values":"off","no-x-security-scheme-name-in-workflow":"off","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-schema-type-mismatch":"error"},overlay1Rules:{"info-contact":"error"}},Q$=gV;var bV={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","operation-2xx-response":"warn","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-example-value-and-externalValue":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-invalid-media-type-examples":{severity:"warn",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"warn","no-unused-components":"warn","nullable-type-sibling":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","spec-components-invalid-map-name":"warn","spec-example-values":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-example-value-and-externalValue":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"warn","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","spec-components-invalid-map-name":"warn","spec-example-values":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"warn","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","spec-components-invalid-map-name":"warn","spec-discriminator-defaultMapping":"off","spec-example-values":"off","spec-no-invalid-encoding-combinations":"warn","spec-no-invalid-tag-parents":"warn","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","operation-operationId":"warn","tag-description":"warn","tags-alphabetical":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","operation-operationId":"warn","tag-description":"warn","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"off","no-criteria-xpath":"off","no-enum-type-mismatch":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-x-security-scheme-name-in-workflow":"off","no-x-security-scheme-name-without-openapi":"off","parameters-unique":"off","requestBody-replacements-unique":"off","respect-supported-versions":"off","sourceDescription-name-unique":"off","sourceDescription-type":"off","sourceDescriptions-not-empty":"off","step-onFailure-unique":"off","step-onSuccess-unique":"off","stepId-unique":"error","workflow-dependsOn":"off","workflowId-unique":"error","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"}},Z$=bV;var vV={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-tag-names":"error","no-enum-type-mismatch":"off","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","operation-2xx-response":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":{severity:"off",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-server-variables-empty-enum":"off","no-undefined-server-variable":"error","no-unused-components":"off","nullable-type-sibling":"error","operation-2xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"off","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-server-variables-empty-enum":"off","no-undefined-server-variable":"error","no-unused-components":"off","operation-2xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"off","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-server-variables-empty-enum":"off","no-undefined-server-variable":"error","no-unused-components":"off","operation-2xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","spec-components-invalid-map-name":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error","spec-no-invalid-encoding-combinations":"error","spec-no-invalid-tag-parents":"error","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","operation-operationId":"off","tag-description":"off","tags-alphabetical":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","operation-operationId":"off","tag-description":"off","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-enum-type-mismatch":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-x-security-scheme-name-in-workflow":"off","no-x-security-scheme-name-without-openapi":"off","parameters-unique":"error","requestBody-replacements-unique":"error","respect-supported-versions":"off","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"}},eP=vV;var KA=Ee(rP(),1);var VA=Ee(X0(),1),zA=Ee(zy(),1);var Sp=null;function cY(e,t){return Sp||(Sp=new zA.default({schemaId:"$id",meta:!0,allErrors:!0,strictSchema:!1,inlineRefs:!1,validateSchema:!1,discriminator:!0,allowUnionTypes:!0,validateFormats:!0,defaultUnevaluatedProperties:t,loadSchemaSync(r,n,i){let o=e({$ref:n},r.split("#")[0]);return!o||!o.location?!1:{$id:o.location.source.absoluteRef+"#"+i,...o.node}},logger:!1}),(0,VA.default)(Sp)),Sp}function lY(e,t,r,n){let i=cY(r,n);return i.getSchema(t.absolutePointer)||i.addSchema({$id:t.absolutePointer,...e},t.absolutePointer),i.getSchema(t.absolutePointer)}function HA(e,t,r,n,i,o){let s=lY(t,r,i,o);if(!s)return{valid:!0,errors:[]};return{valid:!!s(e,{instancePath:n,parentData:{fake:{}},parentDataProperty:"fake",rootData:{},dynamicAnchors:{}}),errors:(s.errors||[]).map(c)};function c(l){let u=l.message,p=l.keyword==="enum"?l.params.allowedValues:void 0;p&&(u+=` ${p.map(f=>`"${f}"`).join(", ")}`),l.keyword==="type"&&(u=`type ${u}`);let m=l.instancePath.substring(n.length+1),d=m.substring(m.lastIndexOf("/")+1);if(d&&(u=`\`${d}\` property ${u}`),l.keyword==="additionalProperties"||l.keyword==="unevaluatedProperties"){let f=l.params.additionalProperty||l.params.unevaluatedProperty;u=`${u} \`${f}\``,l.instancePath+="/"+Hn(f)}return{...l,message:u,suggest:p}}}function Ts(e){return Array.isArray(e)?"array":e===null?"null":Number.isInteger(e)?"integer":typeof e}function Ns(e,t,r){if(r&&e===null)return!0;switch(t){case"array":return Array.isArray(e);case"object":return typeof e=="object"&&e!==null&&!Array.isArray(e);case"null":return e===null;case"integer":return Number.isInteger(e);default:return typeof e===t}}function Nc(e,t){return`${e} object should contain \`${t}\` field.`}function uY(e,t){return`${e} object should contain one of the fields: ${t.map(r=>`\`${r}\``).join(", ")}.`}function GA(e,t){return`${e} object \`${t}\` must be non-empty string.`}function or(e,t,r){W(t)&&(t[e]===void 0?r.report({message:Nc(r.type.name,e),location:r.location.child([e]).key()}):t[e]||r.report({message:GA(r.type.name,e),location:r.location.child([e]).key()}))}function YA(e,t,r){if(W(t)){e.some(n=>t.hasOwnProperty(n))||r.report({message:uY(r.type.name,e),location:r.location.key()});for(let n of e)t.hasOwnProperty(n)&&!t[n]&&r.report({message:GA(r.type.name,n),location:r.location.child([n]).key()})}}function J0(e,t){if(e===null)return t;if(typeof e!="string"||!t.length)return[];let r=[];for(let n=0;n<t.length;n++){let i=(0,KA.default)(e,t[n]);i<4&&r.push({distance:i,variant:t[n]})}return r.sort((n,i)=>n.distance-i.distance),r.map(n=>n.variant)}function pi(e,t,r,{resolve:n,location:i,report:o},s){try{let{valid:a,errors:c}=HA(e,t,i.child("schema"),r.pointer,n,s);if(!a)for(let l of c)o({message:`Example value must conform to the schema: ${l.message}.`,location:{...new zn(r.source,l.instancePath),reportOnKey:l.keyword==="unevaluatedProperties"||l.keyword==="additionalProperties"},from:i,suggest:l.suggest})}catch(a){if(a.message==="discriminator: requires oneOf or anyOf composite keyword")return;o({message:`Example validation errored: ${a.message}.`,location:i.child("schema"),from:i})}}function Q0(e,t,r,n,{report:i,location:o}){e&&(e.includes(t)||i({location:o,message:`\`${r}\` can be one of the following only: ${e.map(s=>`"${s}"`).join(", ")}.`,from:n,suggest:J0(t,e)}))}function Is(e,t,{report:r}){let n=new RegExp(`^${t[0]}[0-9Xx]{2}$`);e.some(o=>t==="2XX"&&o==="default"||n.test(o))||r({message:`Operation must have at least one \`${t}\` response.`,location:{reportOnKey:!0}})}function Ic(e,t){return t?e.name.toLowerCase():e.name}function zr(e,t){return e.hasOwnProperty(t)?e[t]:void 0}var ur=()=>({any(e,{report:t,type:r,location:n,rawLocation:i,key:o,resolve:s,ignoreNextVisitorsOnNode:a}){var d,f,h,y,b,g;let c=Ts(e),l=i!==n?i:void 0;if(r.items){c!=="array"&&(t({message:`Expected type \`${r.name}\` (array) but got \`${c}\``,from:l}),a());return}else if(c!=="object"){r!==kr&&t({message:`Expected type \`${r.name}\` (object) but got \`${c}\``,from:l}),a();return}let u=typeof r.required=="function"?r.required(e,o):r.required;for(let v of u||[])e.hasOwnProperty(v)||t({message:`The field \`${v}\` must be present on this level.`,from:l,location:[{reportOnKey:!0}]});let p=(d=r.allowed)==null?void 0:d.call(r,e);if(p&&W(e))for(let v in e)p.includes(v)||r.extensionsPrefix&&v.startsWith(r.extensionsPrefix)||!Object.keys(r.properties).includes(v)||t({message:`The field \`${v}\` is not allowed here.`,from:l,location:n.child([v]).key()});let m=r.requiredOneOf||null;if(m){let v=!1;for(let _ of m||[])e.hasOwnProperty(_)&&(v=!0);v||t({message:`Must contain at least one of the following fields: ${(f=r.requiredOneOf)==null?void 0:f.join(", ")}.`,from:l,location:[{reportOnKey:!0}]})}for(let v of Object.keys(e)){let _=n.child([v]),w=e[v],N=zr(r.properties,v);if(N===void 0&&(N=r.additionalProperties),typeof N=="function"&&(N=N(w,v)),Wr(N))continue;let S=N,O=Ts(w);if(S===void 0){if(v.startsWith("x-"))continue;t({message:`Property \`${v}\` is not expected here.`,suggest:J0(v,Object.keys(r.properties)),from:l,location:_.key()});continue}if(S!==null){if(S.resolvable!==!1&&we(w)&&(w=s(w).node),S.items&&((h=S.items)!=null&&h.enum)&&Array.isArray(w))for(let P=0;P<w.length;P++)Q0((y=S.items)==null?void 0:y.enum,w[P],v,l,{report:t,location:n.child([v,P])});if(S.enum)Q0(S.enum,w,v,l,{report:t,location:n.child([v])});else if(S.type&&!Ns(w,S.type,!1))t({message:`Expected type \`${S.type}\` but got \`${O}\`.`,from:l,location:_}),a();else if(O==="array"&&((b=S.items)!=null&&b.type)){let P=(g=S.items)==null?void 0:g.type;for(let E=0;E<w.length;E++){let R=w[E];Ns(R,P,!1)||t({message:`Expected type \`${P}\` but got \`${Ts(R)}\`.`,from:l,location:_.child([E])})}}typeof S.minimum=="number"&&S.minimum>e[v]&&t({message:`The value of the ${v} field must be greater than or equal to ${S.minimum}`,from:l,location:n.child([v])})}}}});var _p=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){let n=Object.keys(t||{});Is(n,"2XX",{report:r})}},WebhooksMap:{Responses(t,{report:r}){if(!e)return;let n=Object.keys(t||{});Is(n,"2XX",{report:r})}}});var Op=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){let n=Object.keys(t||{});Is(n,"4XX",{report:r})}},WebhooksMap:{Responses(t,{report:r}){if(!e)return;let n=Object.keys(t||{});Is(n,"4XX",{report:r})}}});var rb={};jd(rb,{bgBlack:()=>IY,bgBlackBright:()=>WY,bgBlue:()=>MY,bgBlueBright:()=>ZY,bgCyan:()=>DY,bgCyanBright:()=>tW,bgGreen:()=>qY,bgGreenBright:()=>JY,bgMagenta:()=>LY,bgMagentaBright:()=>eW,bgRed:()=>kY,bgRedBright:()=>XY,bgWhite:()=>FY,bgWhiteBright:()=>rW,bgYellow:()=>jY,bgYellowBright:()=>QY,black:()=>OY,blackBright:()=>BY,blue:()=>AY,blueBright:()=>HY,bold:()=>gY,cyan:()=>RY,cyanBright:()=>GY,dim:()=>bY,gray:()=>NY,green:()=>PY,greenBright:()=>VY,hidden:()=>SY,inverse:()=>wY,italic:()=>vY,magenta:()=>CY,magentaBright:()=>KY,options:()=>WA,red:()=>$Y,redBright:()=>UY,reset:()=>yY,strikethrough:()=>_Y,underline:()=>xY,white:()=>TY,whiteBright:()=>YY,yellow:()=>EY,yellowBright:()=>zY});var eb=Ee(require("tty"),1),fi=process.env,pY="NO_COLOR"in fi,fY="FORCE_COLOR"in fi,dY=process.platform==="win32",mY=eb&&eb.isatty(1)&&fi.TERM&&fi.TERM!=="dumb",hY="CI"in fi&&("GITHUB_ACTIONS"in fi||"GITLAB_CI"in fi||"CIRCLECI"in fi),Z0=!pY&&(fY||dY||mY||hY),tb=(e,t,r,n)=>i=>Z0?e+(~(i+="").indexOf(t,4)?i.replace(r,n):i)+t:i,he=(e,t)=>tb(`\x1B[${e}m`,`\x1B[${t}m`,new RegExp(`\\x1b\\[${t}m`,"g"),`\x1B[${e}m`),WA=Object.defineProperty({},"enabled",{get:()=>Z0,set:e=>Z0=e}),yY=he(0,0),gY=tb("\x1B[1m","\x1B[22m",/\x1b\[22m/g,"\x1B[22m\x1B[1m"),bY=tb("\x1B[2m","\x1B[22m",/\x1b\[22m/g,"\x1B[22m\x1B[2m"),vY=he(3,23),xY=he(4,24),wY=he(7,27),SY=he(8,28),_Y=he(9,29),OY=he(30,39),$Y=he(31,39),PY=he(32,39),EY=he(33,39),AY=he(34,39),CY=he(35,39),RY=he(36,39),TY=he(37,39),NY=he(90,39),IY=he(40,49),kY=he(41,49),qY=he(42,49),jY=he(43,49),MY=he(44,49),LY=he(45,49),DY=he(46,49),FY=he(47,49),BY=he(90,39),UY=he(91,39),VY=he(92,39),zY=he(93,39),HY=he(94,39),KY=he(95,39),GY=he(96,39),YY=he(97,39),WY=he(100,49),XY=he(101,49),JY=he(102,49),QY=he(103,49),ZY=he(104,49),eW=he(105,49),tW=he(106,49),rW=he(107,49);function XA(e){return e}var Ue=new Proxy(rb,{get(e,t){return bt?XA:e[t]}}),nb=class{info(t){return bt?console.info(t):process.stderr.write(t)}warn(t){return bt?console.warn(t):process.stderr.write(Ue.yellow(t))}error(t){return bt?console.error(t):process.stderr.write(Ue.red(t))}output(t){return bt?console.log(t):process.stdout.write(t)}printNewLine(){bt?console.log(`
240
240
  `):process.stdout.write(`
241
241
  `)}printSeparator(t){let r=process.stdout.columns||80,n=t.repeat(Math.ceil(r/t.length)).slice(0,r),i=bt?n:Ue.gray(n);return bt?console.log(i):process.stdout.write(i)}indent(t,r){let n=bt?" ":"\xA0";return t.split(`
242
242
  `).map(i=>n.repeat(r)+i).join(`
243
243
  `)}},ks=new nb;var JA={problems:"{{problems}}"};function QA(e){let{filterInParentKeys:t,filterOutParentKeys:r,matchParentKeys:n}=e,i=n&&ps(n),o=i&&(c=>i.test(c.toString())),s=Array.isArray(t)&&(c=>t.includes(c.toString())),a=Array.isArray(r)&&(c=>!r.includes(c.toString()));return[o,s,a].filter(ct)}function eC(e){let t=Ld(fs).filter(i=>e.assertions[i]!==void 0).map(i=>({name:i,conditions:e.assertions[i],runsOnKeys:U$.has(i),runsOnValues:V$.has(i)})),r=t.find(i=>i.runsOnKeys&&!i.runsOnValues),n=t.find(i=>i.runsOnValues&&!i.runsOnKeys);if(n&&!e.subject.property)throw new Error(`The '${n.name}' assertion can't be used on all keys. Please provide a single property.`);if(r&&e.subject.property)throw new Error(`The '${r.name}' assertion can't be used on properties. Please remove the 'property' key.`);return t}function tC({subject:e}){return(Array.isArray(e.property)?e.property:[e==null?void 0:e.property]).filter(Boolean)}function rC(e,t,r){let n=tC(e),i=[];for(let o of t)if(n.length)for(let s of n)i.push(ZA({assert:o,ctx:r,assertionProperty:s}));else i.push(ZA({assert:o,ctx:r}));return i.flat()}function nC(e,t){var c,l;let r=QA(e.subject),n=r.length?(u,p)=>!r.every(m=>m(p)):void 0,i={[e.subject.type]:{enter:t,...n&&{skip:n}}};if(!Array.isArray(e.where))return i;let o={},s=o,a=e.where;for(let u=0;u<a.length;u++){let p=a[u];if(!at((c=p.subject)==null?void 0:c.type))throw new Error(`${e.assertionId} -> where -> [${u}]: 'type' (String) is required`);let m=QA(p.subject),d=eC(p),f=(y,b,g)=>!m.every(v=>v(b))||!!rC(p,d,{...g,node:y}).length,h={...(m.length||d.length)&&{skip:f}};p.subject.type===e.subject.type&&u===a.length-1?i[e.subject.type]={enter:t,...h.skip&&{skip:h.skip}||n&&{skip:(y,b,g)=>{var v;return!!((v=h.skip)!=null&&v.call(h,y,b,g)||n!=null&&n(y,b))}}}:o=o[(l=p.subject)==null?void 0:l.type]=h}return o[e.subject.type]=i[e.subject.type],s}function iC(e,t){return(r,n)=>{let i=tC(t),o=`${Ue.blue(e)} failed because the ${Ue.blue(t.subject.type)} ${Ue.blue(i.join(", "))} didn't meet the assertions: ${JA.problems}`.replace(/ +/g," "),s=rC(t,eC(t),{...n,node:r});if(s.length)for(let a of nW(s)){let c=t.message||o,l=oW(a);n.report({message:c.replace(JA.problems,l),location:iW(a)||n.location,forceSeverity:t.severity||"error",suggest:t.suggest||[],ruleId:e})}}}function nW(e){let t={};for(let r of e){if(!r.location)continue;let n=r.location.pointer;t[n]=t[n]||[],t[n].push(r)}return Object.values(t)}function iW(e){return e.length?e[0].location:void 0}function oW(e){var t;return e.length===1?(t=e[0].message)!=null?t:"":e.map(r=>{var n;return`
244
- - ${(n=r.message)!=null?n:""}`}).join("")}function ZA({assert:e,ctx:t,assertionProperty:r}){var i;let n=e.name==="ref"?t.rawLocation:t.location;if(r){let o=Oe(t.node[r])?(i=t.resolve(t.node[r]))==null?void 0:i.node:t.node[r],s=t.rawNode[r],a=n.child(r);return fs[e.name](o,e.conditions,{...t,baseLocation:a,rawValue:s})}else{let o=Array.isArray(t.node)?t.node:Object.keys(t.node);return fs[e.name](o,e.conditions,{...t,rawValue:t.rawNode,baseLocation:n})}}var Er=e=>{let t=[],r=Object.values(e).filter(n=>typeof n=="object"&&n!==null);for(let[n,i]of r.entries()){if(!at(i.subject.type))throw new Error(`${i.assertionId}: 'type' (String) is required`);let o=iC(i.assertionId,i),s=nC(i,o);t.push(s)}return t};var $p=()=>{let e=new Set;return{Operation(t,{report:r,location:n}){t.operationId&&(e.has(t.operationId)&&r({message:"Every operation must have a unique `operationId`.",location:n.child([t.operationId])}),e.add(t.operationId))}}};var Pp=()=>{let e,t;return{PathItem:{enter(){e=new Set},Parameter(r,{report:n,key:i,parentLocations:o}){let s=`${r.in}___${r.name}`;e.has(s)&&n({message:`Paths must have unique \`name\` + \`in\` parameters.
244
+ - ${(n=r.message)!=null?n:""}`}).join("")}function ZA({assert:e,ctx:t,assertionProperty:r}){var i;let n=e.name==="ref"?t.rawLocation:t.location;if(r){let o=we(t.node[r])?(i=t.resolve(t.node[r]))==null?void 0:i.node:t.node[r],s=t.rawNode[r],a=n.child(r);return fs[e.name](o,e.conditions,{...t,baseLocation:a,rawValue:s})}else{let o=Array.isArray(t.node)?t.node:Object.keys(t.node);return fs[e.name](o,e.conditions,{...t,rawValue:t.rawNode,baseLocation:n})}}var Er=e=>{let t=[],r=Object.values(e).filter(n=>typeof n=="object"&&n!==null);for(let[n,i]of r.entries()){if(!at(i.subject.type))throw new Error(`${i.assertionId}: 'type' (String) is required`);let o=iC(i.assertionId,i),s=nC(i,o);t.push(s)}return t};var $p=()=>{let e=new Set;return{Operation(t,{report:r,location:n}){t.operationId&&(e.has(t.operationId)&&r({message:"Every operation must have a unique `operationId`.",location:n.child([t.operationId])}),e.add(t.operationId))}}};var Pp=()=>{let e,t;return{PathItem:{enter(){e=new Set},Parameter(r,{report:n,key:i,parentLocations:o}){let s=`${r.in}___${r.name}`;e.has(s)&&n({message:`Paths must have unique \`name\` + \`in\` parameters.
245
245
  Repeats of \`in:${r.in}\` + \`name:${r.name}\`.`,location:o.PathItem.child(["parameters",i])}),e.add(`${r.in}___${r.name}`)},Operation:{enter(){t=new Set},Parameter(r,{report:n,key:i,parentLocations:o}){let s=`${r.in}___${r.name}`;t.has(s)&&n({message:`Operations must have unique \`name\` + \`in\` parameters. Repeats of \`in:${r.in}\` + \`name:${r.name}\`.`,location:o.Operation.child(["parameters",i])}),t.add(s)}}}}};var sW=/\{([a-zA-Z0-9_.-]+)\}+/g,qs=()=>{let e,t,r,n;return{PathItem:{enter(i,{key:o}){t=new Set,r=o,e=new Set(Array.from(o.toString().matchAll(sW)).map(s=>s[1]))},Parameter(i,{report:o,location:s}){i.in==="path"&&i.name&&(t.add(i.name),e.has(i.name)||o({message:`Path parameter \`${i.name}\` is not used in the path \`${r}\`.`,location:s.child(["name"])}))},Operation:{enter(){n=new Set},leave(i,{report:o,location:s}){for(let a of Array.from(e.keys()))!n.has(a)&&!t.has(a)&&o({message:`The operation does not define the path parameter \`{${a}}\` expected by path \`${r}\`.`,location:s.child(["parameters"]).key()})},Parameter(i,{report:o,location:s}){i.in==="path"&&i.name&&(n.add(i.name),e.has(i.name)||o({message:`Path parameter \`${i.name}\` is not used in the path \`${r}\`.`,location:s.child(["name"])}))}}}}};var Ep=()=>{let e;return{Root(t){var r;e=new Set(((r=t.tags)!=null?r:[]).map(n=>n.name))},Operation(t,{report:r,location:n}){if(t!=null&&t.tags)for(let i=0;i<t.tags.length;i++)e.has(t.tags[i])||r({message:"Operation tags should be defined in global tags.",location:n.child(["tags",i])});else r({message:"Operation tags should be defined",location:n.key()})}}};var oC=()=>({Example(e,{report:t,location:r}){e.value&&e.externalValue&&t({message:"Example object can have either `value` or `externalValue` fields.",location:r.child(["value"]).key()})}});var an=()=>({Schema(e,{report:t,location:r}){if(!(e.enum&&!Array.isArray(e.enum))){if(e.enum&&e.type&&!Array.isArray(e.type)){let n=e.enum.filter(i=>!Ns(i,e.type,e.nullable));for(let i of n)t({message:`All values of \`enum\` field must be of the same type as the \`type\` field: expected "${e.type}" but received "${Ts(i)}".`,location:r.child(["enum",e.enum.indexOf(i)])})}if(e.enum&&e.type&&Array.isArray(e.type)){let n={};for(let i of e.enum){n[i]=[];for(let o of e.type)Ns(i,o,e.nullable)||n[i].push(o);n[i].length!==e.type.length&&delete n[i]}for(let i of Object.keys(n))t({message:`Enum value \`${i}\` must be of allowed types: \`${e.type}\`.`,location:r.child(["enum",e.enum.indexOf(i)])})}}}});var Ap=()=>({PathItem(e,{report:t,key:r,rawLocation:n}){r.endsWith("/")&&r!=="/"&&t({message:`\`${r}\` should not have a trailing slash.`,location:n.key()})}});var Cp=()=>({PathItem(e,{report:t,key:r}){r.indexOf("{}")!==-1&&t({message:"Path parameter declarations must be non-empty. `{}` is invalid.",location:{reportOnKey:!0}})}});var aW=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/,Rp=()=>({Operation(e,{report:t,location:r}){e.operationId&&!aW.test(e.operationId)&&t({message:"Operation `operationId` should not have URL invalid characters.",location:r.child(["operationId"])})}});var di=({ignoreCase:e=!1})=>({Root(t,{report:r,location:n}){if(t.tags)for(let i=0;i<t.tags.length-1;i++)Ic(t.tags[i],e)>Ic(t.tags[i+1],e)&&r({message:"The `tags` array should be in alphabetical order.",location:n.child(["tags",i])})}});var sC=()=>({Server(e,{report:t,location:r}){let n=/^(.*[\/.])?(example\.com|localhost)([\/:?].*|$)/;e.url&&n.test(e.url)&&t({message:"Server `url` should not point to example.com or localhost.",location:r.child(["url"])})}});var aC=()=>({Server(e,{report:t,location:r}){e.url&&e.url.endsWith("/")&&e.url!=="/"&&t({message:"Server `url` should not have a trailing slash.",location:r.child(["url"])})}});var mi=()=>({Tag(e,t){or("description",e,t)}});var cn=()=>({Info(e,{report:t,location:r}){e.contact||t({message:Nc("Info","contact"),location:r.child("contact").key()})}});var Tp=()=>({Info(e,{report:t}){e.license||t({message:Nc("Info","license"),location:{reportOnKey:!0}})}});var hi=()=>{let e;return{Root:{enter(t){e=ni(t)},License:{leave(t,r){e==="oas3_1"||e==="oas3_2"?YA(["url","identifier"],t,r):or("url",t,r)}}}}};var Np=()=>({Operation(e,t){or("description",e,t)}});var cC=()=>{let e=new Map;function t(r,n){var i;e.set(r.absolutePointer,{used:((i=e.get(r.absolutePointer))==null?void 0:i.used)||!1,location:r,name:n})}return{ref(r,{type:n,resolve:i,key:o,location:s}){if(["Schema","Header","Parameter","Response","Example","RequestBody"].includes(n.name)){let a=i(r);if(!a.location)return;e.set(a.location.absolutePointer,{used:!0,name:o.toString(),location:s})}},Root:{leave(r,{report:n}){e.forEach(i=>{i.used||n({message:`Component: "${i.name}" is never used.`,location:i.location.key()})})}},NamedSchemas:{Schema(r,{location:n,key:i}){r.allOf||t(n,i.toString())}},NamedParameters:{Parameter(r,{location:n,key:i}){t(n,i.toString())}},NamedResponses:{Response(r,{location:n,key:i}){t(n,i.toString())}},NamedExamples:{Example(r,{location:n,key:i}){t(n,i.toString())}},NamedRequestBodies:{RequestBody(r,{location:n,key:i}){t(n,i.toString())}},NamedHeaders:{Header(r,{location:n,key:i}){t(n,i.toString())}}}};var Ip=()=>({Paths:{PathItem(e,{report:t,key:r}){r.toString().includes("?")&&t({message:"Don't put query string items in the path, they belong in parameters with `in: query`.",location:{reportOnKey:!0}})}}});var kp=()=>({Parameter(e,{report:t,location:r}){e.description===void 0?t({message:"Parameter object description must be present.",location:{reportOnKey:!0}}):e.description||t({message:"Parameter object description must be non-empty string.",location:r.child(["description"])})}});var qp=()=>({Operation(e,{report:t,location:r}){e.tags&&e.tags.length>1&&t({message:"Operation `tags` object should have only one tag.",location:r.child(["tags"]).key()})}});var jp=e=>{let t=new Map,r=[],n=!0,i;return{Root:{leave(o,{report:s}){for(let[a,c]of t.entries())if(!c.defined)for(let l of c.from)s({message:`There is no \`${a}\` security scheme defined.`,location:l.key()});if(!(o.security||n))for(let a of r)s({message:"Every operation should have security defined on it or on the root level.",location:a.key()})}},SecurityScheme(o,{key:s}){t.set(s.toString(),{defined:!0,from:[]})},SecurityRequirement(o,{location:s}){for(let a of Object.keys(o)){let c=t.get(a),l=s.child([a]);c?c.from.push(l):t.set(a,{from:[l]})}},PathItem:{enter(o,{key:s}){i=s},Operation(o,{location:s,key:a}){var l;let c=(l=e.exceptions)==null?void 0:l.some(u=>{var p;return u.path===i&&(!u.methods||((p=u.methods)==null?void 0:p.some(m=>m.toLowerCase()===a)))});!(o!=null&&o.security)&&!c&&(n=!1,r.push(s))}}}};var cW=/\((\d+):(\d+)\)$/,ln=class e extends Error{constructor(t,r){super(t.message.split(`
246
- `)[0]),this.originalError=t,this.source=r,Object.setPrototypeOf(this,e.prototype);let[,n,i]=this.message.match(cW)||[];this.line=parseInt(n,10),this.col=parseInt(i,10)}};var pr=()=>({ref:{leave(e,{report:t,location:r},n){n.node===void 0&&js(n,t,r)}},DiscriminatorMapping(e,{report:t,resolve:r,location:n}){for(let i of Object.keys(e)){let o=r({$ref:e[i]});if(o.node!==void 0)return;js(o,t,n.child(i))}}});function js(e,t,r){var o;let n=e.error;n instanceof ln&&t({message:"Failed to parse: "+n.message,location:{source:n.source,pointer:void 0,start:{col:n.col,line:n.line}}});let i=(o=e.error)==null?void 0:o.message;t({location:r,message:`Can't resolve $ref${i?": "+i:""}`})}var lC=e=>{let t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(o=>`\`${o}\``),i=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter:{Schema(o,{report:s,parentLocations:a},c){o.type==="boolean"&&!r.test(c.Parameter.name)&&s({message:`Boolean parameter \`${c.Parameter.name}\` should have ${i} prefix.`,location:a.Parameter.child(["name"])})}}}};var Mp=()=>({PathItem(e,{report:t,key:r}){r.substr(1).split("/").filter(i=>i!=="").every(i=>/^{.+}$/.test(i)||/^[a-z0-9-.]+$/.test(i))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0}})}});var lW=["get","head","post","put","patch","delete","options","query","trace"],Lp=e=>{let t=e&&e.order||lW;if(!Array.isArray(t))throw new Error("path-http-verbs-order `order` option must be an array");return{PathItem(r,{report:n,location:i}){let o=Object.keys(r).filter(s=>t.includes(s));for(let s=0;s<o.length-1;s++){let a=t.indexOf(o[s]);t.indexOf(o[s+1])<a&&n({message:"Operation http verbs must be ordered.",location:{reportOnKey:!0,...i.child(o[s+1])}})}}}};var uC=()=>({Root(e,{report:t,location:r}){if(!e.hasOwnProperty("servers")){t({message:"Servers must be present.",location:r.child(["openapi"]).key()});return}(!Array.isArray(e.servers)||e.servers.length===0)&&t({message:"Servers must be a non-empty array.",location:r.child(["servers"]).key()})}});var pC=e=>({MediaType:{leave(t,r){let{location:n,resolve:i}=r;if(!t.schema)return;if(t.example!==void 0)o(t.example,n.child("example"));else if(t.examples)for(let s of Object.keys(t.examples))o(t.examples[s],n.child(["examples",s,"value"]),!0);function o(s,a,c){if(Oe(s)){let l=i(s);if(!l.location)return;a=c?l.location.child("value"):l.location,s=l.node}c&&typeof(s==null?void 0:s.value)>"u"||pi(c?s.value:s,t.schema,a,r,!!e.allowAdditionalProperties)}}}});var Dp=()=>({Paths(e,{report:t,location:r}){let n=new Map;for(let i of Object.keys(e)){let o=i.replace(/{.+?}/g,"{VARIABLE}"),s=n.get(o);s?t({message:`The path already exists which differs only by path parameter name(s): \`${s}\` and \`${i}\`.`,location:r.child([i]).key()}):n.set(o,i)}}});var fC=()=>({Server(e,{report:t,location:r}){var o;if(!(e!=null&&e.url))return;let n=((o=e.url.match(/{[^}]+}/g))==null?void 0:o.map(s=>s.slice(1,s.length-1)))||[],i=(e==null?void 0:e.variables)&&Object.keys(e.variables)||[];for(let s of n)i.includes(s)||t({message:`The \`${s}\` variable is not defined in the \`variables\` objects.`,location:r.child(["url"])});for(let s of i)n.includes(s)||t({message:`The \`${s}\` variable is not used in the server's \`url\` field.`,location:r.child(["variables",s]).key(),from:r.child("url")})}});var yi=()=>({Root:{PathItem:{Operation(e,t){or("operationId",e,t)}}}});var Fp=()=>({Operation(e,t){or("summary",e,t)}});var Bp=()=>({Paths(e,{report:t,location:r}){let n=[];for(let i of Object.keys(e)){let o=n.find(s=>uW(s,i));o&&t({message:`Paths should resolve unambiguously. Found two ambiguous paths: \`${o}\` and \`${i}\`.`,location:r.child([i]).key()}),n.push(i)}}});function uW(e,t){let r=e.split("/"),n=t.split("/");if(r.length!==n.length)return!1;let i=0,o=0,s=!0;for(let a=0;a<r.length;a++){let c=r[a].match(/^{.+?}$/),l=n[a].match(/^{.+?}$/);if(c||l){c&&i++,l&&o++;continue}else r[a]!==n[a]&&(s=!1)}return s&&i===o}var mC=()=>({Root(e,{report:t,location:r}){if(!e.servers||e.servers.length===0)return;let n=[];if(Array.isArray(e.servers))for(let i of e.servers){let o=dC(i);o&&n.push(...o)}else{let i=dC(e.servers);if(!i)return;n.push(...i)}for(let i of n)i==="empty"&&t({message:"Server variable with `enum` must be a non-empty array.",location:r.child(["servers"]).key()}),i==="invalidDefaultValue"&&t({message:"Server variable define `enum` and `default`. `enum` must include default value",location:r.child(["servers"]).key()})}});function dC(e){var r;if(e.variables&&Object.keys(e.variables).length===0)return;let t=[];for(let n in e.variables){let i=e.variables[n];if(!i.enum||(Array.isArray(i.enum)&&((r=i.enum)==null?void 0:r.length)===0&&t.push("empty"),!i.default))continue;let o=e.variables[n].default;i.enum&&!i.enum.includes(o)&&t.push("invalidDefaultValue")}if(t.length)return t}function Up(e){return e.startsWith("{")&&e.endsWith("}")}function hC(e){let t=e.split(/(?:[-._])|([A-Z][a-z]+)/).filter(ct).map(n=>n.toLocaleLowerCase()),r=e.split(/([A-Z]{2,})/).filter(n=>n&&n===n.toUpperCase()).map(n=>n.toLocaleLowerCase());return new Set([...t,...r])}var pW=["get","head","post","put","patch","delete","options","trace"],Vp=({splitIntoWords:e})=>({PathItem(t,{key:r,report:n,location:i}){let o=r.toString();if(!o.startsWith("/"))return;let s=o.split("/");for(let a of s){if(!a||Up(a))continue;let c=l=>e?hC(a).has(l):a.toLocaleLowerCase().includes(l);for(let l of pW)c(l)&&n({message:`path \`${o}\` should not contain http verb ${l}`,location:i.key()})}}});function Ms({type:e,value:t},{report:r,location:n},i){let o=e==="consumes"?"request":"response";if(!i)throw new Error(`Parameter "allowedValues" is not provided for "${o}-mime-type" rule`);if(t[e])for(let s of t[e])i.includes(s)||r({message:`Mime type "${s}" is not allowed`,location:n.child(t[e].indexOf(s)).key()})}function gi({type:e,value:t},{report:r,location:n},i){let o=e==="consumes"?"request":"response";if(!i)throw new Error(`Parameter "allowedValues" is not provided for "${o}-mime-type" rule`);if(t.content)for(let s of Object.keys(t.content))i.includes(s)||r({message:`Mime type "${s}" is not allowed`,location:n.child("content").child(s).key()})}var yC=({allowedValues:e})=>({Paths:{RequestBody:{leave(t,r){gi({type:"consumes",value:t},r,e)}},Callback:{RequestBody(){},Response:{leave(t,r){gi({type:"consumes",value:t},r,e)}}}},WebhooksMap:{Response:{leave(t,r){gi({type:"consumes",value:t},r,e)}}}});var gC=({allowedValues:e})=>({Paths:{Response:{leave(t,r){gi({type:"produces",value:t},r,e)}},Callback:{Response(){},RequestBody:{leave(t,r){gi({type:"produces",value:t},r,e)}}}},WebhooksMap:{RequestBody:{leave(t,r){gi({type:"produces",value:t},r,e)}}}});var bC=Ee(Bd(),1);var zp=e=>{let{ignoreLastPathSegment:t,exceptions:r}=e;return{PathItem:{leave(n,{report:i,key:o,location:s}){let a=o.toString();if(a.startsWith("/")){let c=a.split("/");c.shift(),t&&c.length>0&&c.pop();for(let l of c)r&&r.includes(l)||!Up(l)&&bC.default.isSingular(l)&&i({message:`path segment \`${l}\` should be plural.`,location:s.key()})}}}}};var Hp=e=>({Schema:{leave(t,r){let n=t.examples;if(n)for(let i of n)pi(i,t,r.location.child(["examples",n.indexOf(i)]),r,!!e.allowAdditionalProperties);if(t.example!==void 0){if(t.nullable===!0&&t.example===null&&t.type!==void 0)return;pi(t.example,t,r.location.child("example"),r,!0)}}}});var Kp=e=>({Parameter:{leave(t,r){if(t.example!==void 0&&pi(t.example,t.schema,r.location.child("example"),r,!!e.allowAdditionalProperties),t.examples)for(let[n,i]of Object.entries(t.examples))"value"in i&&pi(i.value,t.schema,r.location.child(["examples",n]),r,!0)}}});function Nn(e){return`${e}`.replace(/^(\d)\d\d$/,(t,r)=>`${r}XX`)}var Gp=e=>{let t=e.names||{};return{Operation:{Response:{enter:(r,{report:n,location:i,key:o})=>{let s=t[o]||t[Nn(o)]||t[Nn(o).toLowerCase()]||[];for(let a of s)(!(r!=null&&r.headers)||!Object.keys(r==null?void 0:r.headers).some(c=>c.toLowerCase()===a.toLowerCase()))&&n({message:`Response object must contain a "${a}" header.`,location:i.child("headers").key()})}}}}};var vC=e=>{let t=e.names||{},r;return{Operation:{Response:{skip:(n,i)=>`${i}`=="204",enter:(n,i)=>{r=i.key},MediaType:{Schema(n,{report:i,location:o}){var a;if(n.type!=="object")return;let s=t[r]||t[Nn(r)]||t[Nn(r).toLowerCase()]||[];for(let c of s)(a=n.properties)!=null&&a[c]||i({message:`Response object must contain a top-level "${c}" property.`,location:o.child("properties").key()})}}}}}};var xC=["string","integer","number","boolean","null"],Yp=()=>({SchemaProperties(e,{report:t,location:r,specVersion:n,resolve:i}){for(let o of Object.keys(e)){let s=i(sn(e,o)).node;!s||!fW(s)||s.example===void 0&&s.examples===void 0&&t({message:`Scalar property should have "example"${n==="oas3_1"||n==="oas3_2"?' or "examples"':""} defined.`,location:r.child(o).key()})}}});function fW(e){return!e.type||e.allOf||e.anyOf||e.oneOf||e.format==="binary"?!1:Array.isArray(e.type)?e.type.every(t=>xC.includes(t)):xC.includes(e.type)}var wC=()=>{let e="^[a-zA-Z0-9\\.\\-_]+$";function t(r,n,i,o){new RegExp(e).test(r)||n({message:`The map key in ${o} "${r}" does not match the regular expression "${e}"`,location:i.key()})}return{NamedSchemas:{Schema(r,{key:n,report:i,location:o}){t(n,i,o,"schemas")}},NamedParameters:{Parameter(r,{key:n,report:i,location:o}){t(n,i,o,"parameters")}},NamedResponses:{Response(r,{key:n,report:i,location:o}){t(n,i,o,"responses")}},NamedExamples:{Example(r,{key:n,report:i,location:o}){t(n,i,o,"examples")}},NamedRequestBodies:{RequestBody(r,{key:n,report:i,location:o}){t(n,i,o,"requestBodies")}},NamedHeaders:{Header(r,{key:n,report:i,location:o}){t(n,i,o,"headers")}},NamedSecuritySchemes:{SecurityScheme(r,{key:n,report:i,location:o}){t(n,i,o,"securitySchemes")}},NamedLinks:{Link(r,{key:n,report:i,location:o}){t(n,i,o,"links")}},NamedCallbacks:{Callback(r,{key:n,report:i,location:o}){t(n,i,o,"callbacks")}}}};var SC=()=>({Response:{skip(e,t){return!/4[Xx0-9]{2}/.test(`${t}`)},enter(e,{report:t,location:r}){(!e.content||!e.content["application/problem+json"])&&t({message:"Response `4xx` must have content-type `application/problem+json`.",location:r.key()})},MediaType:{skip(e,t){return t!=="application/problem+json"},enter(e,t){or("schema",e,t)},SchemaProperties(e,t){or("type",e,t),or("title",e,t)}}}});var Wp=()=>{let e,t;return{Schema:{enter(r){if(!(r!=null&&r.required)){e=!0;return}t=new Set(r.required),e=!1},SchemaProperties:{skip(){return e},Schema:{enter(r,{key:n,location:i,report:o}){t.has(n)&&r.type==="string"&&(r!=null&&r.minLength||o({message:"Property minLength is required.",location:i.key()}))}}}}}};var Xp=()=>{let e=["Schema","Response","Parameter","RequestBody","Example","Header","SecurityScheme","Link","Callback","PathItem"];return{any(t,{report:r,rawNode:n,rawLocation:i,type:o}){!e.includes(o.name)&&Oe(n)&&r({message:"Field $ref is not expected here.",location:i.child("$ref").key()})}}};var ib="Schema",ob="Parameter",sb="Response",ab="RequestBody",dW={[ib]:"schemas",[ob]:"parameters",[sb]:"responses",[ab]:"requestBodies"},_C=e=>{let t=new Map,r=[];e.schemas!=="off"&&r.push(ib),e.parameters!=="off"&&r.push(ob),e.responses!=="off"&&r.push(sb),e.requestBodies!=="off"&&r.push(ab);let n={ref:{leave(a,{type:c,resolve:l}){let u=c.name;if(r.includes(u)){let p=l(a);if(!p.location)return;s(u,p.location)}}},Root:{leave(a,c){t.forEach((l,u,p)=>{if(l.absolutePointers.size>1){let m=yW(u),d=mW(m.typeName),f=d?e[d]:null;for(let h of l.locations){let y=Array.from(l.absolutePointers).filter(g=>g!==h.absolutePointer.toString()).map(g=>`- ${g}`).join(`
246
+ `)[0]),this.originalError=t,this.source=r,Object.setPrototypeOf(this,e.prototype);let[,n,i]=this.message.match(cW)||[];this.line=parseInt(n,10),this.col=parseInt(i,10)}};var pr=()=>({ref:{leave(e,{report:t,location:r},n){n.node===void 0&&js(n,t,r)}},DiscriminatorMapping(e,{report:t,resolve:r,location:n}){for(let i of Object.keys(e)){let o=r({$ref:e[i]});if(o.node!==void 0)return;js(o,t,n.child(i))}}});function js(e,t,r){var o;let n=e.error;n instanceof ln&&t({message:"Failed to parse: "+n.message,location:{source:n.source,pointer:void 0,start:{col:n.col,line:n.line}}});let i=(o=e.error)==null?void 0:o.message;t({location:r,message:`Can't resolve $ref${i?": "+i:""}`})}var lC=e=>{let t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(o=>`\`${o}\``),i=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter:{Schema(o,{report:s,parentLocations:a},c){o.type==="boolean"&&!r.test(c.Parameter.name)&&s({message:`Boolean parameter \`${c.Parameter.name}\` should have ${i} prefix.`,location:a.Parameter.child(["name"])})}}}};var Mp=()=>({PathItem(e,{report:t,key:r}){r.substr(1).split("/").filter(i=>i!=="").every(i=>/^{.+}$/.test(i)||/^[a-z0-9-.]+$/.test(i))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0}})}});var lW=["get","head","post","put","patch","delete","options","query","trace"],Lp=e=>{let t=e&&e.order||lW;if(!Array.isArray(t))throw new Error("path-http-verbs-order `order` option must be an array");return{PathItem(r,{report:n,location:i}){let o=Object.keys(r).filter(s=>t.includes(s));for(let s=0;s<o.length-1;s++){let a=t.indexOf(o[s]);t.indexOf(o[s+1])<a&&n({message:"Operation http verbs must be ordered.",location:{reportOnKey:!0,...i.child(o[s+1])}})}}}};var uC=()=>({Root(e,{report:t,location:r}){if(!e.hasOwnProperty("servers")){t({message:"Servers must be present.",location:r.child(["openapi"]).key()});return}(!Array.isArray(e.servers)||e.servers.length===0)&&t({message:"Servers must be a non-empty array.",location:r.child(["servers"]).key()})}});var pC=e=>({MediaType:{leave(t,r){let{location:n,resolve:i}=r;if(!t.schema)return;if(t.example!==void 0)o(t.example,n.child("example"));else if(t.examples)for(let s of Object.keys(t.examples))o(t.examples[s],n.child(["examples",s,"value"]),!0);function o(s,a,c){if(we(s)){let l=i(s);if(!l.location)return;a=c?l.location.child("value"):l.location,s=l.node}c&&typeof(s==null?void 0:s.value)>"u"||pi(c?s.value:s,t.schema,a,r,!!e.allowAdditionalProperties)}}}});var Dp=()=>({Paths(e,{report:t,location:r}){let n=new Map;for(let i of Object.keys(e)){let o=i.replace(/{.+?}/g,"{VARIABLE}"),s=n.get(o);s?t({message:`The path already exists which differs only by path parameter name(s): \`${s}\` and \`${i}\`.`,location:r.child([i]).key()}):n.set(o,i)}}});var fC=()=>({Server(e,{report:t,location:r}){var o;if(!(e!=null&&e.url))return;let n=((o=e.url.match(/{[^}]+}/g))==null?void 0:o.map(s=>s.slice(1,s.length-1)))||[],i=(e==null?void 0:e.variables)&&Object.keys(e.variables)||[];for(let s of n)i.includes(s)||t({message:`The \`${s}\` variable is not defined in the \`variables\` objects.`,location:r.child(["url"])});for(let s of i)n.includes(s)||t({message:`The \`${s}\` variable is not used in the server's \`url\` field.`,location:r.child(["variables",s]).key(),from:r.child("url")})}});var yi=()=>({Root:{PathItem:{Operation(e,t){or("operationId",e,t)}}}});var Fp=()=>({Operation(e,t){or("summary",e,t)}});var Bp=()=>({Paths(e,{report:t,location:r}){let n=[];for(let i of Object.keys(e)){let o=n.find(s=>uW(s,i));o&&t({message:`Paths should resolve unambiguously. Found two ambiguous paths: \`${o}\` and \`${i}\`.`,location:r.child([i]).key()}),n.push(i)}}});function uW(e,t){let r=e.split("/"),n=t.split("/");if(r.length!==n.length)return!1;let i=0,o=0,s=!0;for(let a=0;a<r.length;a++){let c=r[a].match(/^{.+?}$/),l=n[a].match(/^{.+?}$/);if(c||l){c&&i++,l&&o++;continue}else r[a]!==n[a]&&(s=!1)}return s&&i===o}var mC=()=>({Root(e,{report:t,location:r}){if(!e.servers||e.servers.length===0)return;let n=[];if(Array.isArray(e.servers))for(let i of e.servers){let o=dC(i);o&&n.push(...o)}else{let i=dC(e.servers);if(!i)return;n.push(...i)}for(let i of n)i==="empty"&&t({message:"Server variable with `enum` must be a non-empty array.",location:r.child(["servers"]).key()}),i==="invalidDefaultValue"&&t({message:"Server variable define `enum` and `default`. `enum` must include default value",location:r.child(["servers"]).key()})}});function dC(e){var r;if(e.variables&&Object.keys(e.variables).length===0)return;let t=[];for(let n in e.variables){let i=e.variables[n];if(!i.enum||(Array.isArray(i.enum)&&((r=i.enum)==null?void 0:r.length)===0&&t.push("empty"),!i.default))continue;let o=e.variables[n].default;i.enum&&!i.enum.includes(o)&&t.push("invalidDefaultValue")}if(t.length)return t}function Up(e){return e.startsWith("{")&&e.endsWith("}")}function hC(e){let t=e.split(/(?:[-._])|([A-Z][a-z]+)/).filter(ct).map(n=>n.toLocaleLowerCase()),r=e.split(/([A-Z]{2,})/).filter(n=>n&&n===n.toUpperCase()).map(n=>n.toLocaleLowerCase());return new Set([...t,...r])}var pW=["get","head","post","put","patch","delete","options","trace"],Vp=({splitIntoWords:e})=>({PathItem(t,{key:r,report:n,location:i}){let o=r.toString();if(!o.startsWith("/"))return;let s=o.split("/");for(let a of s){if(!a||Up(a))continue;let c=l=>e?hC(a).has(l):a.toLocaleLowerCase().includes(l);for(let l of pW)c(l)&&n({message:`path \`${o}\` should not contain http verb ${l}`,location:i.key()})}}});function Ms({type:e,value:t},{report:r,location:n},i){let o=e==="consumes"?"request":"response";if(!i)throw new Error(`Parameter "allowedValues" is not provided for "${o}-mime-type" rule`);if(t[e])for(let s of t[e])i.includes(s)||r({message:`Mime type "${s}" is not allowed`,location:n.child(t[e].indexOf(s)).key()})}function gi({type:e,value:t},{report:r,location:n},i){let o=e==="consumes"?"request":"response";if(!i)throw new Error(`Parameter "allowedValues" is not provided for "${o}-mime-type" rule`);if(t.content)for(let s of Object.keys(t.content))i.includes(s)||r({message:`Mime type "${s}" is not allowed`,location:n.child("content").child(s).key()})}var yC=({allowedValues:e})=>({Paths:{RequestBody:{leave(t,r){gi({type:"consumes",value:t},r,e)}},Callback:{RequestBody(){},Response:{leave(t,r){gi({type:"consumes",value:t},r,e)}}}},WebhooksMap:{Response:{leave(t,r){gi({type:"consumes",value:t},r,e)}}}});var gC=({allowedValues:e})=>({Paths:{Response:{leave(t,r){gi({type:"produces",value:t},r,e)}},Callback:{Response(){},RequestBody:{leave(t,r){gi({type:"produces",value:t},r,e)}}}},WebhooksMap:{RequestBody:{leave(t,r){gi({type:"produces",value:t},r,e)}}}});var bC=Ee(Bd(),1);var zp=e=>{let{ignoreLastPathSegment:t,exceptions:r}=e;return{PathItem:{leave(n,{report:i,key:o,location:s}){let a=o.toString();if(a.startsWith("/")){let c=a.split("/");c.shift(),t&&c.length>0&&c.pop();for(let l of c)r&&r.includes(l)||!Up(l)&&bC.default.isSingular(l)&&i({message:`path segment \`${l}\` should be plural.`,location:s.key()})}}}}};var Hp=e=>({Schema:{leave(t,r){let n=t.examples;if(n)for(let i of n)pi(i,t,r.location.child(["examples",n.indexOf(i)]),r,!!e.allowAdditionalProperties);if(t.example!==void 0){if(t.nullable===!0&&t.example===null&&t.type!==void 0)return;pi(t.example,t,r.location.child("example"),r,!0)}}}});var Kp=e=>({Parameter:{leave(t,r){if(t.example!==void 0&&pi(t.example,t.schema,r.location.child("example"),r,!!e.allowAdditionalProperties),t.examples)for(let[n,i]of Object.entries(t.examples))"value"in i&&pi(i.value,t.schema,r.location.child(["examples",n]),r,!0)}}});function Nn(e){return`${e}`.replace(/^(\d)\d\d$/,(t,r)=>`${r}XX`)}var Gp=e=>{let t=e.names||{};return{Operation:{Response:{enter:(r,{report:n,location:i,key:o})=>{let s=t[o]||t[Nn(o)]||t[Nn(o).toLowerCase()]||[];for(let a of s)(!(r!=null&&r.headers)||!Object.keys(r==null?void 0:r.headers).some(c=>c.toLowerCase()===a.toLowerCase()))&&n({message:`Response object must contain a "${a}" header.`,location:i.child("headers").key()})}}}}};var vC=e=>{let t=e.names||{},r;return{Operation:{Response:{skip:(n,i)=>`${i}`=="204",enter:(n,i)=>{r=i.key},MediaType:{Schema(n,{report:i,location:o}){var a;if(n.type!=="object")return;let s=t[r]||t[Nn(r)]||t[Nn(r).toLowerCase()]||[];for(let c of s)(a=n.properties)!=null&&a[c]||i({message:`Response object must contain a top-level "${c}" property.`,location:o.child("properties").key()})}}}}}};var xC=["string","integer","number","boolean","null"],Yp=()=>({SchemaProperties(e,{report:t,location:r,specVersion:n,resolve:i}){for(let o of Object.keys(e)){let s=i(zr(e,o)).node;!s||!fW(s)||s.example===void 0&&s.examples===void 0&&t({message:`Scalar property should have "example"${n==="oas3_1"||n==="oas3_2"?' or "examples"':""} defined.`,location:r.child(o).key()})}}});function fW(e){return!e.type||e.allOf||e.anyOf||e.oneOf||e.format==="binary"?!1:Array.isArray(e.type)?e.type.every(t=>xC.includes(t)):xC.includes(e.type)}var wC=()=>{let e="^[a-zA-Z0-9\\.\\-_]+$";function t(r,n,i,o){new RegExp(e).test(r)||n({message:`The map key in ${o} "${r}" does not match the regular expression "${e}"`,location:i.key()})}return{NamedSchemas:{Schema(r,{key:n,report:i,location:o}){t(n,i,o,"schemas")}},NamedParameters:{Parameter(r,{key:n,report:i,location:o}){t(n,i,o,"parameters")}},NamedResponses:{Response(r,{key:n,report:i,location:o}){t(n,i,o,"responses")}},NamedExamples:{Example(r,{key:n,report:i,location:o}){t(n,i,o,"examples")}},NamedRequestBodies:{RequestBody(r,{key:n,report:i,location:o}){t(n,i,o,"requestBodies")}},NamedHeaders:{Header(r,{key:n,report:i,location:o}){t(n,i,o,"headers")}},NamedSecuritySchemes:{SecurityScheme(r,{key:n,report:i,location:o}){t(n,i,o,"securitySchemes")}},NamedLinks:{Link(r,{key:n,report:i,location:o}){t(n,i,o,"links")}},NamedCallbacks:{Callback(r,{key:n,report:i,location:o}){t(n,i,o,"callbacks")}}}};var SC=()=>({Response:{skip(e,t){return!/4[Xx0-9]{2}/.test(`${t}`)},enter(e,{report:t,location:r}){(!e.content||!e.content["application/problem+json"])&&t({message:"Response `4xx` must have content-type `application/problem+json`.",location:r.key()})},MediaType:{skip(e,t){return t!=="application/problem+json"},enter(e,t){or("schema",e,t)},SchemaProperties(e,t){or("type",e,t),or("title",e,t)}}}});var Wp=()=>{let e,t;return{Schema:{enter(r){if(!(r!=null&&r.required)){e=!0;return}t=new Set(r.required),e=!1},SchemaProperties:{skip(){return e},Schema:{enter(r,{key:n,location:i,report:o}){t.has(n)&&r.type==="string"&&(r!=null&&r.minLength||o({message:"Property minLength is required.",location:i.key()}))}}}}}};var Xp=()=>{let e=["Schema","Response","Parameter","RequestBody","Example","Header","SecurityScheme","Link","Callback","PathItem"];return{any(t,{report:r,rawNode:n,rawLocation:i,type:o}){!e.includes(o.name)&&we(n)&&r({message:"Field $ref is not expected here.",location:i.child("$ref").key()})}}};var ib="Schema",ob="Parameter",sb="Response",ab="RequestBody",dW={[ib]:"schemas",[ob]:"parameters",[sb]:"responses",[ab]:"requestBodies"},_C=e=>{let t=new Map,r=[];e.schemas!=="off"&&r.push(ib),e.parameters!=="off"&&r.push(ob),e.responses!=="off"&&r.push(sb),e.requestBodies!=="off"&&r.push(ab);let n={ref:{leave(a,{type:c,resolve:l}){let u=c.name;if(r.includes(u)){let p=l(a);if(!p.location)return;s(u,p.location)}}},Root:{leave(a,c){t.forEach((l,u,p)=>{if(l.absolutePointers.size>1){let m=yW(u),d=mW(m.typeName),f=d?e[d]:null;for(let h of l.locations){let y=Array.from(l.absolutePointers).filter(g=>g!==h.absolutePointer.toString()).map(g=>`- ${g}`).join(`
247
247
  `),b={message:`Component '${d}/${m.componentName}' is not unique. It is also defined at:
248
- ${y}`,location:h};f&&(b.forceSeverity=f),c.report(b)}}})}}};return e.schemas!="off"&&(n.NamedSchemas={Schema(a,{location:c}){s(ib,c)}}),e.responses!="off"&&(n.NamedResponses={Response(a,{location:c}){s(sb,c)}}),e.parameters!="off"&&(n.NamedParameters={Parameter(a,{location:c}){s(ob,c)}}),e.requestBodies!="off"&&(n.NamedRequestBodies={RequestBody(a,{location:c}){s(ab,c)}}),n;function i(a){let c=a.split("/").slice(-1)[0];return c.endsWith(".yml")||c.endsWith(".yaml")||c.endsWith(".json")?c.slice(0,c.lastIndexOf(".")):c}function o(a,c,l){var d;let u=hW(a,c),p=(d=t.get(u))!=null?d:{absolutePointers:new Set,locations:[]},m=l.absolutePointer.toString();p.absolutePointers.has(m)||(p.absolutePointers.add(m),p.locations.push(l)),t.set(u,p)}function s(a,c){let l=i(c.absolutePointer.toString());o(a,l,c)}};function mW(e){var t;return(t=dW[e])!=null?t:null}function hW(e,t){return`${e}/${t}`}function yW(e){let[t,r]=e.split("/");return{typeName:t,componentName:r}}var OC=e=>({Parameter:{leave(t,r){if(!t.schema)return;let n=Oe(t.schema)?r.resolve(t.schema).node:t.schema;n&&gW(t,n,e)&&r.report({message:`Parameter \`${t.name}\` should have \`style\` and \`explode \` fields`,location:r.location})}}});function gW(e,t,r){var n;return(t.type==="array"||t.items||t.prefixItems)&&(e.style===void 0||e.explode===void 0)&&(!r.in||e.in&&((n=r.in)==null?void 0:n.includes(e.in)))}var un=()=>({Schema:{enter(e,{location:t,report:r,resolve:n}){if(!e.required)return;let i=new Set,o=(a,c)=>{var l,u,p,m,d;if(i.has(a))return{};if(i.add(a),Oe(a)){let f=n(a,c);return o(f.node,(l=f.location)==null?void 0:l.source.absoluteRef)}return Object.assign({},a.properties,...(p=(u=a.allOf)==null?void 0:u.map(f=>o(f,c)))!=null?p:[],...(d=(m=a.anyOf)==null?void 0:m.map(f=>o(f,c)))!=null?d:[])},s=o(e);for(let[a,c]of e.required.entries())(!s||sn(s,c)===void 0)&&r({message:`Required property '${c}' is undefined.`,location:t.child(["required",a])})}}});var pn=()=>({Schema(e,{report:t,location:r}){e.type==="object"&&e.items&&t({message:"Schema type mismatch: 'object' type should not contain 'items' field.",location:r.child("items")}),e.type==="array"&&e.properties&&t({message:"Schema type mismatch: 'array' type should not contain 'properties' field.",location:r.child("properties")})}});var bi=({ignoreCase:e=!1})=>{let t=new Set;return{Tag:{leave(r,n){let i=Ic(r,e);t.has(i)?n.report({message:`Duplicate tag name found: '${r.name}'.`,location:n.location}):t.add(i)}}}};var $C=()=>({Schema:{leave(e,t){"nullable"in e&&!("type"in e)&&t.report({message:"The `type` field must be defined when the `nullable` field is used.",location:t.location.child(["nullable"])})}}});var PC=()=>{let e;return{Root:{enter(t){var r;e=(r=t.tags)!=null?r:[]}},Tag:{leave(t,{report:r,location:n}){var s;if((t==null?void 0:t.parent)===void 0)return;if(!e.find(a=>a.name===t.parent)){r({message:`Tag parent '${t.parent}' is not defined in the API description.`,location:n.child("parent")});return}let i=new Set(t.name),o=t.parent;for(;o!==void 0;){if(i.has(o)){r({message:`Circular reference detected in tag parent hierarchy for tag '${t.name}'.`,location:n.child("parent")});return}i.add(o),o=(s=e.find(a=>a.name===o))==null?void 0:s.parent}}}}};var EC=()=>({MediaType:{leave(e,t){("prefixEncoding"in e&&"encoding"in e||"itemEncoding"in e&&"encoding"in e)&&t.report({message:"The 'encoding' field cannot be used together with 'prefixEncoding' or 'itemEncoding'.",location:t.location.child("encoding").key()})}}});var AC=()=>{let e;return{NamedSchemas:{enter(t){e=Object.keys(t)}},Schema:{leave(t,r){var o,s;if(!((o=t.discriminator)!=null&&o.propertyName))return;let n=t.discriminator.defaultMapping;if(!((s=t.required)!=null&&s.includes(t.discriminator.propertyName))&&n===void 0){r.report({message:`Discriminator with optional property '${t.discriminator.propertyName}' must include a defaultMapping field.`,location:r.location.child("discriminator")});return}n!==void 0&&!e.includes(n)&&r.report({message:`defaultMapping value '${n}' does not point to an existing schema component.`,location:r.location.child(["discriminator","defaultMapping"])})}}}};var CC=()=>({Example({value:e,externalValue:t,dataValue:r,serializedValue:n},{report:i,location:o}){e!==void 0&&t!==void 0&&i({message:"The 'value' and 'externalValue' fields of an example object are mutually exclusive.",location:o}),n!==void 0&&t!==void 0&&i({message:"The 'serializedValue' and 'externalValue' fields of an example object are mutually exclusive.",location:o}),e!==void 0&&r!==void 0&&i({message:"The 'value' filed must be absent if 'dataValue' is present in an example object.",location:o.child("value").key()}),e!==void 0&&n!==void 0&&i({message:"The 'value' filed must be absent if 'serializedValue' is present in an example object.",location:o.child("value").key()})}});var RC={struct:ur,"info-contact":cn,"info-license":Tp,"info-license-strict":hi,"operation-2xx-response":_p,"operation-4xx-response":Op,"operation-4xx-problem-details-rfc7807":SC,assertions:Er,"operation-operationId-unique":$p,"operation-parameters-unique":Pp,"operation-tag-defined":Ep,"no-example-value-and-externalValue":oC,"no-enum-type-mismatch":an,"no-path-trailing-slash":Ap,"no-empty-servers":uC,"path-declaration-must-exist":Cp,"operation-operationId-url-safe":Rp,"operation-operationId":yi,"operation-summary":Fp,"tags-alphabetical":di,"no-server-example.com":sC,"no-server-trailing-slash":aC,"tag-description":mi,"operation-description":Np,"no-unused-components":cC,"path-not-include-query":Ip,"path-parameters-defined":qs,"path-params-defined":qs,"parameter-description":kp,"operation-singular-tag":qp,"security-defined":jp,"no-unresolved-refs":pr,"paths-kebab-case":Mp,"boolean-parameter-prefixes":lC,"path-http-verbs-order":Lp,"no-invalid-media-type-examples":pC,"no-identical-paths":Dp,"no-ambiguous-paths":Bp,"no-undefined-server-variable":fC,"no-server-variables-empty-enum":mC,"no-http-verbs-in-paths":Vp,"request-mime-type":yC,"response-mime-type":gC,"path-segment-plural":zp,"no-invalid-schema-examples":Hp,"no-invalid-parameter-examples":Kp,"response-contains-header":Gp,"response-contains-property":vC,"scalar-property-missing-example":Yp,"spec-components-invalid-map-name":wC,"required-string-property-missing-min-length":Wp,"spec-strict-refs":Xp,"component-name-unique":_C,"array-parameter-serialization":OC,"no-required-schema-properties-undefined":un,"no-schema-type-mismatch":pn,"no-duplicated-tag-names":bi,"nullable-type-sibling":$C,"spec-no-invalid-tag-parents":PC,"spec-no-invalid-encoding-combinations":EC,"spec-discriminator-defaultMapping":AC,"spec-example-values":CC},TC={};var NC=e=>{let t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(o=>`\`${o}\``),i=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter(o,{report:s,location:a}){o.type==="boolean"&&!r.test(o.name)&&s({message:`Boolean parameter \`${o.name}\` should have ${i} prefix.`,location:a.child("name")})}}};var IC=({allowedValues:e})=>({Root(t,r){Ms({type:"consumes",value:t},r,e)},Operation:{leave(t,r){Ms({type:"consumes",value:t},r,e)}}});var kC=({allowedValues:e})=>({Root(t,r){Ms({type:"produces",value:t},r,e)},Operation:{leave(t,r){Ms({type:"produces",value:t},r,e)}}});var qC=e=>{let t=e.names||{},r;return{Operation:{Response:{skip:(n,i)=>`${i}`=="204",enter:(n,i)=>{r=i.key},Schema(n,{report:i,location:o}){var a;if(n.type!=="object")return;let s=t[r]||t[Nn(r)]||t[Nn(r).toLowerCase()]||[];for(let c of s)(a=n.properties)!=null&&a[c]||i({message:`Response object must contain a top-level "${c}" property.`,location:o.child("properties").key()})}}}}};var jC={struct:ur,"no-invalid-schema-examples":Hp,"no-invalid-parameter-examples":Kp,"info-contact":cn,"info-license":Tp,"info-license-strict":hi,"tag-description":mi,"tags-alphabetical":di,"paths-kebab-case":Mp,"no-enum-type-mismatch":an,"boolean-parameter-prefixes":NC,"no-path-trailing-slash":Ap,"operation-2xx-response":_p,"operation-4xx-response":Op,assertions:Er,"operation-operationId-unique":$p,"operation-parameters-unique":Pp,"path-parameters-defined":qs,"operation-tag-defined":Ep,"path-declaration-must-exist":Cp,"operation-operationId-url-safe":Rp,"operation-operationId":yi,"operation-summary":Fp,"operation-description":Np,"path-not-include-query":Ip,"path-params-defined":qs,"parameter-description":kp,"operation-singular-tag":qp,"security-defined":jp,"no-unresolved-refs":pr,"no-identical-paths":Dp,"no-ambiguous-paths":Bp,"path-http-verbs-order":Lp,"no-http-verbs-in-paths":Vp,"request-mime-type":IC,"response-mime-type":kC,"path-segment-plural":zp,"response-contains-header":Gp,"response-contains-property":qC,"scalar-property-missing-example":Yp,"required-string-property-missing-min-length":Wp,"spec-strict-refs":Xp,"no-required-schema-properties-undefined":un,"no-schema-type-mismatch":pn,"no-duplicated-tag-names":bi},MC={};var LC=()=>({Channel(e,{report:t,key:r}){r.split(/[/.:]/).filter(i=>i!=="").every(i=>/^{.+}$/.test(i)||/^[a-z0-9-.]+$/.test(i))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0}})}});var DC=()=>({Channel(e,{report:t,key:r,location:n}){r.endsWith("/")&&r!=="/"&&t({message:`\`${r}\` should not have a trailing slash.`,location:n.key()})}});var FC={struct:ur,"no-unresolved-refs":pr,assertions:Er,"info-contact":cn,"info-license-strict":hi,"operation-operationId":yi,"channels-kebab-case":LC,"no-channel-trailing-slash":DC,"tag-description":mi,"tags-alphabetical":di,"no-duplicated-tag-names":bi,"no-required-schema-properties-undefined":un,"no-enum-type-mismatch":an,"no-schema-type-mismatch":pn},BC={};var UC=()=>({Channel(e,{report:t}){(e.address||"").split(/[/.:]/).filter(n=>n!=="").every(n=>/^{.+}$/.test(n)||/^[a-z0-9-.]+$/.test(n))||t({message:`\`${e.address}\` does not use kebab-case.`,location:{reportOnKey:!0}})}});var VC=()=>({Channel(e,{report:t,location:r}){var n;(n=e==null?void 0:e.address)!=null&&n.endsWith("/")&&(e==null?void 0:e.address)!=="/"&&t({message:`\`${e.address}\` should not have a trailing slash.`,location:r.key()})}});var zC={struct:ur,"no-unresolved-refs":pr,assertions:Er,"info-contact":cn,"info-license-strict":hi,"operation-operationId":yi,"channels-kebab-case":UC,"no-channel-trailing-slash":VC,"tag-description":mi,"tags-alphabetical":di,"no-duplicated-tag-names":bi,"no-required-schema-properties-undefined":un,"no-enum-type-mismatch":an,"no-schema-type-mismatch":pn},HC={};var KC=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){if(e.length)for(let n of e)["openapi","arazzo"].includes(n==null?void 0:n.type)||t({message:"The `type` property of the `sourceDescription` object must be either `openapi` or `arazzo`.",location:r.child([e.indexOf(n)])})}}});var GC=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){e!=null&&e.length||t({message:"The `sourceDescriptions` list must have at least one entry.",location:r})}}});var YC=()=>{let e=ku.join(", ");return{Root:{enter(t,{report:r,location:n}){ku.includes(t.arazzo)||r({message:`Only ${e} Arazzo ${Ud("version is",ku.length)} fully supported by Respect.`,location:n.child("arazzo")})}}}};var WC=()=>{let e=new Set;return{Workflow:{enter(t,{report:r,location:n}){t.workflowId&&(e.has(t.workflowId)&&r({message:"Every workflow must have a unique `workflowId`.",location:n.child([t.workflowId])}),e.add(t.workflowId))}}}};var XC=()=>({Workflow:{enter(e,{report:t,location:r}){if(!e.steps)return;let n=new Set;for(let i of e.steps){if(!i.stepId)return;n.has(i.stepId)&&t({message:"The `stepId` must be unique amongst all steps described in the workflow.",location:r.child(["steps",e.steps.indexOf(i)])}),n.add(i.stepId)}}}});var JC=()=>{let e=new Set;return{SourceDescriptions:{enter(t,{report:r,location:n}){if(t.length)for(let i of t)e.has(i.name)&&r({message:"The `name` must be unique amongst all SourceDescriptions.",location:n.child([t.indexOf(i)])}),e.add(i.name)}}}};var QC=()=>{let e=new Set,t=new Set,r=new Set;return{SourceDescriptions:{enter(n){for(let i of n)t.add(i.name)}},Workflows:{enter(n){for(let i of n)r.add(i.workflowId)}},Workflow:{leave(n,{report:i,location:o}){if(n.dependsOn)for(let s of n.dependsOn){if(s.startsWith("$sourceDescriptions.")){let a=s.split(".")[1];t.has(a)||i({message:`SourceDescription ${a} must be defined in sourceDescriptions.`,location:o.child(["dependsOn",n.dependsOn.indexOf(s)])})}!s.startsWith("$sourceDescriptions")&&!r.has(s)&&i({message:`Workflow ${s} must be defined in workflows.`,location:o.child(["dependsOn",n.dependsOn.indexOf(s)])}),e.has(s)&&i({message:"Every workflow in dependsOn must be unique.",location:o.child(["dependsOn"])}),e.add(s)}}}}};var ZC=()=>({Parameters:{enter(e,{report:t,location:r}){if(!e)return;let n=new Set;for(let i of e)n.has(i==null?void 0:i.name)&&t({message:"The parameter `name` must be unique amongst listed parameters.",location:r.child([e.indexOf(i)])}),n.has(i==null?void 0:i.reference)&&t({message:"The parameter `reference` must be unique amongst listed parameters.",location:r.child([e.indexOf(i)])}),i!=null&&i.name?n.add(i.name):n.add(i.reference)}}});var eR=()=>({OnSuccessActionList:{enter(e,{report:t,location:r}){if(!e)return;let n=new Set;for(let i of e)n.has(i==null?void 0:i.name)&&t({message:"The action `name` must be unique amongst listed `onSuccess` actions.",location:r.child([e.indexOf(i)])}),n.has(i==null?void 0:i.reference)&&t({message:"The action `reference` must be unique amongst listed `onSuccess` actions.",location:r.child([e.indexOf(i)])}),i!=null&&i.name?n.add(i.name):n.add(i.reference)}}});var tR=()=>({OnFailureActionList:{enter(e,{report:t,location:r}){if(!e)return;let n=new Set;for(let i of e)n.has(i==null?void 0:i.name)&&t({message:"The action `name` must be unique amongst listed `onFailure` actions.",location:r.child([e.indexOf(i)])}),n.has(i==null?void 0:i.reference)&&t({message:"The action `reference` must be unique amongst listed `onFailure` actions.",location:r.child([e.indexOf(i)])}),i!=null&&i.name?n.add(i.name):n.add(i.reference)}}});var rR=()=>{let e=new Set;return{Step:{leave(){e.clear()},RequestBody:{enter(t,{report:r,location:n}){if(t.replacements)for(let i of t.replacements)e.has(i.target)&&r({message:"Every `replacement` in `requestBody` must be unique.",location:n.child(["replacements",t.replacements.indexOf(i),"target"])}),e.add(i.target)}}}}};var nR=()=>({CriterionObject:{enter(e,{report:t,location:r}){var n;e.type&&(((n=e==null?void 0:e.type)==null?void 0:n.type)==="xpath"||(e==null?void 0:e.type)==="xpath")&&t({message:"The `xpath` type criteria is not supported by Respect.",location:r.child(["type"])})}}});var iR=()=>({FailureActionObject:{enter(e,{report:t,location:r}){let n=e==null?void 0:e.criteria;if(!Array.isArray(n))return;let i=new Set;for(let o of n){let s=JSON.stringify(o);i.has(s)?t({message:"The FailureAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(o)])}):i.add(s)}}},SuccessActionObject:{enter(e,{report:t,location:r}){let n=e==null?void 0:e.criteria;if(!Array.isArray(n))return;let i=new Set;for(let o of n){let s=JSON.stringify(o);i.has(s)?t({message:"The SuccessAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(o)])}):i.add(s)}}},Step:{enter(e,{report:t,location:r}){let n=e==null?void 0:e.successCriteria;if(!Array.isArray(n))return;let i=new Set;for(let o of n){let s=JSON.stringify(o);i.has(s)?t({message:"The Step SuccessCriteria items must be unique.",location:r.child(["successCriteria",n.indexOf(o)])}):i.add(s)}}}});var oR=()=>({Step:{enter(e,{report:t,location:r}){if(!(e==null?void 0:e["x-operation"]))return;let i=e==null?void 0:e["x-security"];if(i)for(let o of i)"schemeName"in o&&t({message:"The `schemeName` can be only used in Step with OpenAPI operation, please use `scheme` instead.",location:r.child(["x-security",i.indexOf(o)])})}}});var bW={apiKey:["apiKey"],basic:["username","password"],digest:["username","password"],bearer:["token"],oauth2:["accessToken"],openIdConnect:["accessToken"],mutualTLS:[]};function sR(e,{report:t,location:r}){if(e)for(let n of e){if("schemeName"in n)continue;let{scheme:i,values:o}=n,s=(i==null?void 0:i.type)==="http"?i.scheme:i==null?void 0:i.type;if(s==="mutualTLS"){ks.warn("Please use CLI option to provide mutualTLS certificates for mutualTls authentication security schema.");continue}let a=bW[s];if(a)for(let c of a)(!o||!(c in o))&&t({message:`The \`${c}\` is required when using the ${s} authentication security schema.`,location:r.child(["x-security",e.indexOf(n)])});else t({message:`The \`${s}\` authentication security schema is not supported.`,location:r.child(["x-security",e.indexOf(n)])})}}var aR=()=>({Step:{enter(e,t){sR(e==null?void 0:e["x-security"],t)}},Workflow:{enter(e,t){sR(e==null?void 0:e["x-security"],t)}}});var cR=()=>({Workflow:{enter(e,{report:t,location:r}){let n=e==null?void 0:e["x-security"];if(n)for(let i of n)"schemeName"in i&&t({message:"The `schemeName` can't be used in Workflow, please use `scheme` instead.",location:r.child(["x-security",n.indexOf(i)])})}}});var lR={struct:ur,"no-unresolved-refs":pr,assertions:Er,"sourceDescription-type":KC,"respect-supported-versions":YC,"workflowId-unique":WC,"stepId-unique":XC,"sourceDescription-name-unique":JC,"sourceDescriptions-not-empty":GC,"workflow-dependsOn":QC,"parameters-unique":ZC,"step-onSuccess-unique":eR,"step-onFailure-unique":tR,"requestBody-replacements-unique":rR,"no-criteria-xpath":nR,"criteria-unique":iR,"no-x-security-scheme-name-without-openapi":oR,"x-security-scheme-required-values":aR,"no-x-security-scheme-name-in-workflow":cR,"no-required-schema-properties-undefined":un,"no-enum-type-mismatch":an,"no-schema-type-mismatch":pn},uR={};var pR={"info-contact":cn,struct:ur,"no-unresolved-refs":pr,assertions:Er},fR={};var Jp=Ee(require("fs"),1),Qp=Ee(require("path"),1);function cb(e){let t=Jp.readFileSync(e,"utf-8");return Pn(t)}function In(e,t){return Je(e)||t===void 0?e:Qp.resolve(Qp.dirname(t),e)}function Ls(e){return Jp.readFileSync(e,"utf-8")}var Zp=({operationIds:e})=>({Operation:{leave(t,{report:r,location:n,config:i}){if(!t.operationId)return;if(!e)throw new Error('Parameter "operationIds" is not provided for "operation-description-override" rule');let o=t.operationId;if(e[o])try{let s=e[o];t.description=Ls(In(s,i==null?void 0:i.configPath))}catch(s){r({message:`Failed to read markdown override file for operation "${o}".
248
+ ${y}`,location:h};f&&(b.forceSeverity=f),c.report(b)}}})}}};return e.schemas!="off"&&(n.NamedSchemas={Schema(a,{location:c}){s(ib,c)}}),e.responses!="off"&&(n.NamedResponses={Response(a,{location:c}){s(sb,c)}}),e.parameters!="off"&&(n.NamedParameters={Parameter(a,{location:c}){s(ob,c)}}),e.requestBodies!="off"&&(n.NamedRequestBodies={RequestBody(a,{location:c}){s(ab,c)}}),n;function i(a){let c=a.split("/").slice(-1)[0];return c.endsWith(".yml")||c.endsWith(".yaml")||c.endsWith(".json")?c.slice(0,c.lastIndexOf(".")):c}function o(a,c,l){var d;let u=hW(a,c),p=(d=t.get(u))!=null?d:{absolutePointers:new Set,locations:[]},m=l.absolutePointer.toString();p.absolutePointers.has(m)||(p.absolutePointers.add(m),p.locations.push(l)),t.set(u,p)}function s(a,c){let l=i(c.absolutePointer.toString());o(a,l,c)}};function mW(e){var t;return(t=dW[e])!=null?t:null}function hW(e,t){return`${e}/${t}`}function yW(e){let[t,r]=e.split("/");return{typeName:t,componentName:r}}var OC=e=>({Parameter:{leave(t,r){if(!t.schema)return;let n=we(t.schema)?r.resolve(t.schema).node:t.schema;n&&gW(t,n,e)&&r.report({message:`Parameter \`${t.name}\` should have \`style\` and \`explode \` fields`,location:r.location})}}});function gW(e,t,r){var n;return(t.type==="array"||t.items||t.prefixItems)&&(e.style===void 0||e.explode===void 0)&&(!r.in||e.in&&((n=r.in)==null?void 0:n.includes(e.in)))}var un=()=>{let e=[];return{Schema:{leave(t){e.pop()},enter(t,{location:r,report:n,resolve:i}){if(e.push(t),!t.required)return;let o=new Set,s=(m,d,f=!0)=>{var h,y,b,g,v,_,w;if(o.has(m))return{};if(o.add(m),we(m)){let N=i(m,d);return s(N.node,(h=N.location)==null?void 0:h.source.absoluteRef)}return Object.assign({},m.properties,...(b=(y=m.allOf)==null?void 0:y.map(N=>s(N,d)))!=null?b:[],...(v="anyOf"in m&&f?(g=m.anyOf)==null?void 0:g.map(N=>s(N,d)):void 0)!=null?v:[],...(w="oneOf"in m&&f?(_=m.oneOf)==null?void 0:_.map(N=>s(N,d)):void 0)!=null?w:[])},a=2,c=m=>(m++,!e||e.length<m?void 0:e[e.length-m]),l=(m,d=0)=>{let h=m.length>a&&!isNaN(parseInt(m[m.length-1]))&&!!/(allOf|oneOf|anyOf)/.exec(m[m.length-a])?c(++d):void 0,y=m.length>=a+a?l(m.slice(0,-a),d):{};return h?{...s(h,void 0,!1),...y}:void 0},u=s(t),p=l(r.pointer.split("/"));for(let[m,d]of t.required.entries())(!u||zr(u,d)===void 0)&&(!p||zr(p,d)===void 0)&&n({message:`Required property '${d}' is undefined.`,location:r.child(["required",m])})}}}};var pn=()=>({Schema(e,{report:t,location:r}){e.type==="object"&&e.items&&t({message:"Schema type mismatch: 'object' type should not contain 'items' field.",location:r.child("items")}),e.type==="array"&&e.properties&&t({message:"Schema type mismatch: 'array' type should not contain 'properties' field.",location:r.child("properties")})}});var bi=({ignoreCase:e=!1})=>{let t=new Set;return{Tag:{leave(r,n){let i=Ic(r,e);t.has(i)?n.report({message:`Duplicate tag name found: '${r.name}'.`,location:n.location}):t.add(i)}}}};var $C=()=>({Schema:{leave(e,t){"nullable"in e&&!("type"in e)&&t.report({message:"The `type` field must be defined when the `nullable` field is used.",location:t.location.child(["nullable"])})}}});var PC=()=>{let e;return{Root:{enter(t){var r;e=(r=t.tags)!=null?r:[]}},Tag:{leave(t,{report:r,location:n}){var s;if((t==null?void 0:t.parent)===void 0)return;if(!e.find(a=>a.name===t.parent)){r({message:`Tag parent '${t.parent}' is not defined in the API description.`,location:n.child("parent")});return}let i=new Set(t.name),o=t.parent;for(;o!==void 0;){if(i.has(o)){r({message:`Circular reference detected in tag parent hierarchy for tag '${t.name}'.`,location:n.child("parent")});return}i.add(o),o=(s=e.find(a=>a.name===o))==null?void 0:s.parent}}}}};var EC=()=>({MediaType:{leave(e,t){("prefixEncoding"in e&&"encoding"in e||"itemEncoding"in e&&"encoding"in e)&&t.report({message:"The 'encoding' field cannot be used together with 'prefixEncoding' or 'itemEncoding'.",location:t.location.child("encoding").key()})}}});var AC=()=>{let e;return{NamedSchemas:{enter(t){e=Object.keys(t)}},Schema:{leave(t,r){var o,s;if(!((o=t.discriminator)!=null&&o.propertyName))return;let n=t.discriminator.defaultMapping;if(!((s=t.required)!=null&&s.includes(t.discriminator.propertyName))&&n===void 0){r.report({message:`Discriminator with optional property '${t.discriminator.propertyName}' must include a defaultMapping field.`,location:r.location.child("discriminator")});return}n!==void 0&&!e.includes(n)&&r.report({message:`defaultMapping value '${n}' does not point to an existing schema component.`,location:r.location.child(["discriminator","defaultMapping"])})}}}};var CC=()=>({Example({value:e,externalValue:t,dataValue:r,serializedValue:n},{report:i,location:o}){e!==void 0&&t!==void 0&&i({message:"The 'value' and 'externalValue' fields of an example object are mutually exclusive.",location:o}),n!==void 0&&t!==void 0&&i({message:"The 'serializedValue' and 'externalValue' fields of an example object are mutually exclusive.",location:o}),e!==void 0&&r!==void 0&&i({message:"The 'value' filed must be absent if 'dataValue' is present in an example object.",location:o.child("value").key()}),e!==void 0&&n!==void 0&&i({message:"The 'value' filed must be absent if 'serializedValue' is present in an example object.",location:o.child("value").key()})}});var RC={struct:ur,"info-contact":cn,"info-license":Tp,"info-license-strict":hi,"operation-2xx-response":_p,"operation-4xx-response":Op,"operation-4xx-problem-details-rfc7807":SC,assertions:Er,"operation-operationId-unique":$p,"operation-parameters-unique":Pp,"operation-tag-defined":Ep,"no-example-value-and-externalValue":oC,"no-enum-type-mismatch":an,"no-path-trailing-slash":Ap,"no-empty-servers":uC,"path-declaration-must-exist":Cp,"operation-operationId-url-safe":Rp,"operation-operationId":yi,"operation-summary":Fp,"tags-alphabetical":di,"no-server-example.com":sC,"no-server-trailing-slash":aC,"tag-description":mi,"operation-description":Np,"no-unused-components":cC,"path-not-include-query":Ip,"path-parameters-defined":qs,"path-params-defined":qs,"parameter-description":kp,"operation-singular-tag":qp,"security-defined":jp,"no-unresolved-refs":pr,"paths-kebab-case":Mp,"boolean-parameter-prefixes":lC,"path-http-verbs-order":Lp,"no-invalid-media-type-examples":pC,"no-identical-paths":Dp,"no-ambiguous-paths":Bp,"no-undefined-server-variable":fC,"no-server-variables-empty-enum":mC,"no-http-verbs-in-paths":Vp,"request-mime-type":yC,"response-mime-type":gC,"path-segment-plural":zp,"no-invalid-schema-examples":Hp,"no-invalid-parameter-examples":Kp,"response-contains-header":Gp,"response-contains-property":vC,"scalar-property-missing-example":Yp,"spec-components-invalid-map-name":wC,"required-string-property-missing-min-length":Wp,"spec-strict-refs":Xp,"component-name-unique":_C,"array-parameter-serialization":OC,"no-required-schema-properties-undefined":un,"no-schema-type-mismatch":pn,"no-duplicated-tag-names":bi,"nullable-type-sibling":$C,"spec-no-invalid-tag-parents":PC,"spec-no-invalid-encoding-combinations":EC,"spec-discriminator-defaultMapping":AC,"spec-example-values":CC},TC={};var NC=e=>{let t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(o=>`\`${o}\``),i=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter(o,{report:s,location:a}){o.type==="boolean"&&!r.test(o.name)&&s({message:`Boolean parameter \`${o.name}\` should have ${i} prefix.`,location:a.child("name")})}}};var IC=({allowedValues:e})=>({Root(t,r){Ms({type:"consumes",value:t},r,e)},Operation:{leave(t,r){Ms({type:"consumes",value:t},r,e)}}});var kC=({allowedValues:e})=>({Root(t,r){Ms({type:"produces",value:t},r,e)},Operation:{leave(t,r){Ms({type:"produces",value:t},r,e)}}});var qC=e=>{let t=e.names||{},r;return{Operation:{Response:{skip:(n,i)=>`${i}`=="204",enter:(n,i)=>{r=i.key},Schema(n,{report:i,location:o}){var a;if(n.type!=="object")return;let s=t[r]||t[Nn(r)]||t[Nn(r).toLowerCase()]||[];for(let c of s)(a=n.properties)!=null&&a[c]||i({message:`Response object must contain a top-level "${c}" property.`,location:o.child("properties").key()})}}}}};var jC={struct:ur,"no-invalid-schema-examples":Hp,"no-invalid-parameter-examples":Kp,"info-contact":cn,"info-license":Tp,"info-license-strict":hi,"tag-description":mi,"tags-alphabetical":di,"paths-kebab-case":Mp,"no-enum-type-mismatch":an,"boolean-parameter-prefixes":NC,"no-path-trailing-slash":Ap,"operation-2xx-response":_p,"operation-4xx-response":Op,assertions:Er,"operation-operationId-unique":$p,"operation-parameters-unique":Pp,"path-parameters-defined":qs,"operation-tag-defined":Ep,"path-declaration-must-exist":Cp,"operation-operationId-url-safe":Rp,"operation-operationId":yi,"operation-summary":Fp,"operation-description":Np,"path-not-include-query":Ip,"path-params-defined":qs,"parameter-description":kp,"operation-singular-tag":qp,"security-defined":jp,"no-unresolved-refs":pr,"no-identical-paths":Dp,"no-ambiguous-paths":Bp,"path-http-verbs-order":Lp,"no-http-verbs-in-paths":Vp,"request-mime-type":IC,"response-mime-type":kC,"path-segment-plural":zp,"response-contains-header":Gp,"response-contains-property":qC,"scalar-property-missing-example":Yp,"required-string-property-missing-min-length":Wp,"spec-strict-refs":Xp,"no-required-schema-properties-undefined":un,"no-schema-type-mismatch":pn,"no-duplicated-tag-names":bi},MC={};var LC=()=>({Channel(e,{report:t,key:r}){r.split(/[/.:]/).filter(i=>i!=="").every(i=>/^{.+}$/.test(i)||/^[a-z0-9-.]+$/.test(i))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0}})}});var DC=()=>({Channel(e,{report:t,key:r,location:n}){r.endsWith("/")&&r!=="/"&&t({message:`\`${r}\` should not have a trailing slash.`,location:n.key()})}});var FC={struct:ur,"no-unresolved-refs":pr,assertions:Er,"info-contact":cn,"info-license-strict":hi,"operation-operationId":yi,"channels-kebab-case":LC,"no-channel-trailing-slash":DC,"tag-description":mi,"tags-alphabetical":di,"no-duplicated-tag-names":bi,"no-required-schema-properties-undefined":un,"no-enum-type-mismatch":an,"no-schema-type-mismatch":pn},BC={};var UC=()=>({Channel(e,{report:t}){(e.address||"").split(/[/.:]/).filter(n=>n!=="").every(n=>/^{.+}$/.test(n)||/^[a-z0-9-.]+$/.test(n))||t({message:`\`${e.address}\` does not use kebab-case.`,location:{reportOnKey:!0}})}});var VC=()=>({Channel(e,{report:t,location:r}){var n;(n=e==null?void 0:e.address)!=null&&n.endsWith("/")&&(e==null?void 0:e.address)!=="/"&&t({message:`\`${e.address}\` should not have a trailing slash.`,location:r.key()})}});var zC={struct:ur,"no-unresolved-refs":pr,assertions:Er,"info-contact":cn,"info-license-strict":hi,"operation-operationId":yi,"channels-kebab-case":UC,"no-channel-trailing-slash":VC,"tag-description":mi,"tags-alphabetical":di,"no-duplicated-tag-names":bi,"no-required-schema-properties-undefined":un,"no-enum-type-mismatch":an,"no-schema-type-mismatch":pn},HC={};var KC=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){if(e.length)for(let n of e)["openapi","arazzo"].includes(n==null?void 0:n.type)||t({message:"The `type` property of the `sourceDescription` object must be either `openapi` or `arazzo`.",location:r.child([e.indexOf(n)])})}}});var GC=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){e!=null&&e.length||t({message:"The `sourceDescriptions` list must have at least one entry.",location:r})}}});var YC=()=>{let e=ku.join(", ");return{Root:{enter(t,{report:r,location:n}){ku.includes(t.arazzo)||r({message:`Only ${e} Arazzo ${Ud("version is",ku.length)} fully supported by Respect.`,location:n.child("arazzo")})}}}};var WC=()=>{let e=new Set;return{Workflow:{enter(t,{report:r,location:n}){t.workflowId&&(e.has(t.workflowId)&&r({message:"Every workflow must have a unique `workflowId`.",location:n.child([t.workflowId])}),e.add(t.workflowId))}}}};var XC=()=>({Workflow:{enter(e,{report:t,location:r}){if(!e.steps)return;let n=new Set;for(let i of e.steps){if(!i.stepId)return;n.has(i.stepId)&&t({message:"The `stepId` must be unique amongst all steps described in the workflow.",location:r.child(["steps",e.steps.indexOf(i)])}),n.add(i.stepId)}}}});var JC=()=>{let e=new Set;return{SourceDescriptions:{enter(t,{report:r,location:n}){if(t.length)for(let i of t)e.has(i.name)&&r({message:"The `name` must be unique amongst all SourceDescriptions.",location:n.child([t.indexOf(i)])}),e.add(i.name)}}}};var QC=()=>{let e=new Set,t=new Set,r=new Set;return{SourceDescriptions:{enter(n){for(let i of n)t.add(i.name)}},Workflows:{enter(n){for(let i of n)r.add(i.workflowId)}},Workflow:{leave(n,{report:i,location:o}){if(n.dependsOn)for(let s of n.dependsOn){if(s.startsWith("$sourceDescriptions.")){let a=s.split(".")[1];t.has(a)||i({message:`SourceDescription ${a} must be defined in sourceDescriptions.`,location:o.child(["dependsOn",n.dependsOn.indexOf(s)])})}!s.startsWith("$sourceDescriptions")&&!r.has(s)&&i({message:`Workflow ${s} must be defined in workflows.`,location:o.child(["dependsOn",n.dependsOn.indexOf(s)])}),e.has(s)&&i({message:"Every workflow in dependsOn must be unique.",location:o.child(["dependsOn"])}),e.add(s)}}}}};var ZC=()=>({Parameters:{enter(e,{report:t,location:r}){if(!e)return;let n=new Set;for(let i of e)n.has(i==null?void 0:i.name)&&t({message:"The parameter `name` must be unique amongst listed parameters.",location:r.child([e.indexOf(i)])}),n.has(i==null?void 0:i.reference)&&t({message:"The parameter `reference` must be unique amongst listed parameters.",location:r.child([e.indexOf(i)])}),i!=null&&i.name?n.add(i.name):n.add(i.reference)}}});var eR=()=>({OnSuccessActionList:{enter(e,{report:t,location:r}){if(!e)return;let n=new Set;for(let i of e)n.has(i==null?void 0:i.name)&&t({message:"The action `name` must be unique amongst listed `onSuccess` actions.",location:r.child([e.indexOf(i)])}),n.has(i==null?void 0:i.reference)&&t({message:"The action `reference` must be unique amongst listed `onSuccess` actions.",location:r.child([e.indexOf(i)])}),i!=null&&i.name?n.add(i.name):n.add(i.reference)}}});var tR=()=>({OnFailureActionList:{enter(e,{report:t,location:r}){if(!e)return;let n=new Set;for(let i of e)n.has(i==null?void 0:i.name)&&t({message:"The action `name` must be unique amongst listed `onFailure` actions.",location:r.child([e.indexOf(i)])}),n.has(i==null?void 0:i.reference)&&t({message:"The action `reference` must be unique amongst listed `onFailure` actions.",location:r.child([e.indexOf(i)])}),i!=null&&i.name?n.add(i.name):n.add(i.reference)}}});var rR=()=>{let e=new Set;return{Step:{leave(){e.clear()},RequestBody:{enter(t,{report:r,location:n}){if(t.replacements)for(let i of t.replacements)e.has(i.target)&&r({message:"Every `replacement` in `requestBody` must be unique.",location:n.child(["replacements",t.replacements.indexOf(i),"target"])}),e.add(i.target)}}}}};var nR=()=>({CriterionObject:{enter(e,{report:t,location:r}){var n;e.type&&(((n=e==null?void 0:e.type)==null?void 0:n.type)==="xpath"||(e==null?void 0:e.type)==="xpath")&&t({message:"The `xpath` type criteria is not supported by Respect.",location:r.child(["type"])})}}});var iR=()=>({FailureActionObject:{enter(e,{report:t,location:r}){let n=e==null?void 0:e.criteria;if(!Array.isArray(n))return;let i=new Set;for(let o of n){let s=JSON.stringify(o);i.has(s)?t({message:"The FailureAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(o)])}):i.add(s)}}},SuccessActionObject:{enter(e,{report:t,location:r}){let n=e==null?void 0:e.criteria;if(!Array.isArray(n))return;let i=new Set;for(let o of n){let s=JSON.stringify(o);i.has(s)?t({message:"The SuccessAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(o)])}):i.add(s)}}},Step:{enter(e,{report:t,location:r}){let n=e==null?void 0:e.successCriteria;if(!Array.isArray(n))return;let i=new Set;for(let o of n){let s=JSON.stringify(o);i.has(s)?t({message:"The Step SuccessCriteria items must be unique.",location:r.child(["successCriteria",n.indexOf(o)])}):i.add(s)}}}});var oR=()=>({Step:{enter(e,{report:t,location:r}){if(!(e==null?void 0:e["x-operation"]))return;let i=e==null?void 0:e["x-security"];if(i)for(let o of i)"schemeName"in o&&t({message:"The `schemeName` can be only used in Step with OpenAPI operation, please use `scheme` instead.",location:r.child(["x-security",i.indexOf(o)])})}}});var bW={apiKey:["apiKey"],basic:["username","password"],digest:["username","password"],bearer:["token"],oauth2:["accessToken"],openIdConnect:["accessToken"],mutualTLS:[]};function sR(e,{report:t,location:r}){if(e)for(let n of e){if("schemeName"in n)continue;let{scheme:i,values:o}=n,s=(i==null?void 0:i.type)==="http"?i.scheme:i==null?void 0:i.type;if(s==="mutualTLS"){ks.warn("Please use CLI option to provide mutualTLS certificates for mutualTls authentication security schema.");continue}let a=bW[s];if(a)for(let c of a)(!o||!(c in o))&&t({message:`The \`${c}\` is required when using the ${s} authentication security schema.`,location:r.child(["x-security",e.indexOf(n)])});else t({message:`The \`${s}\` authentication security schema is not supported.`,location:r.child(["x-security",e.indexOf(n)])})}}var aR=()=>({Step:{enter(e,t){sR(e==null?void 0:e["x-security"],t)}},Workflow:{enter(e,t){sR(e==null?void 0:e["x-security"],t)}}});var cR=()=>({Workflow:{enter(e,{report:t,location:r}){let n=e==null?void 0:e["x-security"];if(n)for(let i of n)"schemeName"in i&&t({message:"The `schemeName` can't be used in Workflow, please use `scheme` instead.",location:r.child(["x-security",n.indexOf(i)])})}}});var lR={struct:ur,"no-unresolved-refs":pr,assertions:Er,"sourceDescription-type":KC,"respect-supported-versions":YC,"workflowId-unique":WC,"stepId-unique":XC,"sourceDescription-name-unique":JC,"sourceDescriptions-not-empty":GC,"workflow-dependsOn":QC,"parameters-unique":ZC,"step-onSuccess-unique":eR,"step-onFailure-unique":tR,"requestBody-replacements-unique":rR,"no-criteria-xpath":nR,"criteria-unique":iR,"no-x-security-scheme-name-without-openapi":oR,"x-security-scheme-required-values":aR,"no-x-security-scheme-name-in-workflow":cR,"no-required-schema-properties-undefined":un,"no-enum-type-mismatch":an,"no-schema-type-mismatch":pn},uR={};var pR={"info-contact":cn,struct:ur,"no-unresolved-refs":pr,assertions:Er},fR={};var Jp=Ee(require("fs"),1),Qp=Ee(require("path"),1);function cb(e){let t=Jp.readFileSync(e,"utf-8");return Pn(t)}function In(e,t){return Je(e)||t===void 0?e:Qp.resolve(Qp.dirname(t),e)}function Ls(e){return Jp.readFileSync(e,"utf-8")}var Zp=({operationIds:e})=>({Operation:{leave(t,{report:r,location:n,config:i}){if(!t.operationId)return;if(!e)throw new Error('Parameter "operationIds" is not provided for "operation-description-override" rule');let o=t.operationId;if(e[o])try{let s=e[o];t.description=Ls(In(s,i==null?void 0:i.configPath))}catch(s){r({message:`Failed to read markdown override file for operation "${o}".
249
249
  ${s.message}`,location:n.child("operationId").key()})}}}});var ef=({tagNames:e})=>({Tag:{leave(t,{report:r,config:n}){if(!e)throw new Error('Parameter "tagNames" is not provided for "tag-description-override" rule');let i=e[t.name];if(i)try{t.description=Ls(In(i,n==null?void 0:n.configPath))}catch(o){r({message:`Failed to read markdown override file for tag "${t.name}".
250
250
  ${o.message}`})}}}});var tf=({filePath:e})=>({Info:{leave(t,{report:r,location:n,config:i}){if(!e)throw new Error('Parameter "filePath" is not provided for "info-description-override" rule');try{t.description=Ls(In(e,i==null?void 0:i.configPath))}catch(o){r({message:`Failed to read markdown override file for "info.description".
251
- ${o.message}`,location:n.child("description")})}}}});var rf=e=>({Info:{leave(t){if(typeof e!="object"||Array.isArray(e)||e===null)throw new Error('"info-override" decorator should be called with an object');let{severity:r,...n}=e;Object.assign(t,n)}}});function nf(e){return Array.isArray(e)&&e.length===0}var vW="x-internal",of=({internalFlagProperty:e=vW})=>{function t(n,i,o){var l,u,p,m,d;let{parent:s,key:a}=i,c=!1;if(Array.isArray(n))for(let f=0;f<n.length;f++){if(Oe(n[f])&&(l=i.resolve(n[f]).node)!=null&&l[e]){if(W((u=s.discriminator)==null?void 0:u.mapping))for(let y in s.discriminator.mapping)(o==null?void 0:o[y])===n[f].$ref&&delete s.discriminator.mapping[y];n.splice(f,1),c=!0,f--}(p=n[f])!=null&&p[e]&&(n.splice(f,1),c=!0,f--)}else if(W(n))for(let f of Object.keys(n)){if(Oe(n[f])){let h=i.resolve(n[f]);W(h.node)&&((m=h.node)!=null&&m[e])&&(delete n[f],c=!0)}W(n[f])&&((d=n[f])!=null&&d[e])&&(delete n[f],c=!0)}c&&(Ir(n)||nf(n))&&delete s[a]}let r={};return{DiscriminatorMapping:{enter:n=>{r=JSON.parse(JSON.stringify(n))}},any:{enter:(n,i)=>{t(n,i,r)}}}};function sf(e,t,r){let{parent:n,key:i}=t,o=!1;if(Array.isArray(e))for(let s=0;s<e.length;s++){if(Oe(e[s])){let a=t.resolve(e[s]);r(a.node)&&(e.splice(s,1),o=!0,s--)}r(e[s])&&(e.splice(s,1),o=!0,s--)}else if(W(e))for(let s of Object.keys(e)){if(e=e,Oe(e[s])){let a=t.resolve(e[s]);r(a.node)&&(delete e[s],o=!0)}r(e[s])&&(delete e[s],o=!0)}o&&(Ir(e)||nf(e))&&delete n[i]}function af(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=dR(t),e=dR(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function dR(e){return Array.isArray(e)?e:[e]}var xW="any",cf=({property:e,value:t,matchStrategy:r})=>{let n=r||xW,i=o=>(o==null?void 0:o[e])&&!af(o==null?void 0:o[e],t,n);return{any:{enter:(o,s)=>{sf(o,s,i)}}}};var wW="any",lf=({property:e,value:t,matchStrategy:r})=>{let n=r||wW,i=o=>af(o==null?void 0:o[e],t,n);return{any:{enter:(o,s)=>{sf(o,s,i)}}}};var hR=({operationIds:e})=>({Operation:{enter(t,r){let n=t.operationId;if(!n)return;let i=e[n];if(i){if(i.responses&&t.responses)for(let o of Object.keys(i.responses)){let s=mR(t.responses[o],r.resolve);s&&(s.content=s.content?s.content:{},Object.keys(i.responses[o]).forEach(a=>{var l;let c=i.responses[o][a];s.content[a]={...s.content[a],examples:cb(In(c,(l=r.config)==null?void 0:l.configPath))}}),t.responses[o]=s)}if(i.request&&t.requestBody){let o=mR(t.requestBody,r.resolve);if(!o)return;o.content=o.content?o.content:{},Object.keys(i.request).forEach(s=>{var c;let a=i.request[s];o.content[s]={...o.content[s],examples:cb(In(a,(c=r.config)==null?void 0:c.configPath))}}),t.requestBody=o}}}}});function mR(e,t){if(!Oe(e))return e;let r=t(e);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}var uf=()=>{let e=new Map;function t(n,i,o){var s,a;e.set(n.absolutePointer,{usedIn:(a=(s=e.get(n.absolutePointer))==null?void 0:s.usedIn)!=null?a:[],componentType:i,name:o})}function r(n,i){let o=i.length;for(let[s,{usedIn:a,name:c,componentType:l}]of e)if(!a.some(p=>!i.some(m=>p.absolutePointer.startsWith(m)&&(p.absolutePointer.length===m.length||p.absolutePointer[m.length]==="/")))&&l&&n.components){i.push(s);let p=n.components[l];delete p[c],e.delete(s),Ir(p)&&delete n.components[l]}return i.length>o?r(n,i):i.length}return{ref:{leave(n,{location:i,type:o,resolve:s,key:a}){if(["Schema","Header","Parameter","Response","Example","RequestBody"].includes(o.name)){let c=s(n);if(!c.location)return;let[l,u]=c.location.absolutePointer.split("#",2);if(!u)return;let p=u.split("/").slice(0,4).join("/"),m=`${l}#${p}`,d=e.get(m);d?d.usedIn.push(i):e.set(m,{usedIn:[i],name:a.toString()})}}},Root:{leave(n,i){let o=i.getVisitorData();o.removedCount=r(n,[]),Ir(n.components)&&delete n.components}},NamedSchemas:{Schema(n,{location:i,key:o}){n.allOf||t(i,"schemas",o.toString())}},NamedParameters:{Parameter(n,{location:i,key:o}){t(i,"parameters",o.toString())}},NamedResponses:{Response(n,{location:i,key:o}){t(i,"responses",o.toString())}},NamedExamples:{Example(n,{location:i,key:o}){t(i,"examples",o.toString())}},NamedRequestBodies:{RequestBody(n,{location:i,key:o}){t(i,"requestBodies",o.toString())}},NamedHeaders:{Header(n,{location:i,key:o}){t(i,"headers",o.toString())}}}};var yR={"operation-description-override":Zp,"tag-description-override":ef,"info-description-override":tf,"info-override":rf,"remove-x-internal":of,"remove-unused-components":uf,"filter-in":cf,"filter-out":lf,"media-type-examples-override":hR};var pf=()=>{let e=new Map;function t(n,i,o){var s,a;e.set(n.absolutePointer,{usedIn:(a=(s=e.get(n.absolutePointer))==null?void 0:s.usedIn)!=null?a:[],componentType:i,name:o})}function r(n,i){let o=i.length;for(let[s,{usedIn:a,name:c,componentType:l}]of e)!a.some(p=>!i.some(m=>p.absolutePointer.startsWith(m)&&(p.absolutePointer.length===m.length||p.absolutePointer[m.length]==="/")))&&l&&(i.push(s),delete n[l][c],e.delete(s),Ir(n[l])&&delete n[l]);return i.length>o?r(n,i):i.length}return{ref:{leave(n,{location:i,type:o,resolve:s,key:a}){if(["Schema","Parameter","Response","SecurityScheme"].includes(o.name)){let c=s(n);if(!c.location)return;let[l,u]=c.location.absolutePointer.split("#",2);if(!u)return;let p=u.split("/").slice(0,3).join("/"),m=`${l}#${p}`,d=e.get(m);d?d.usedIn.push(i):e.set(m,{usedIn:[i],name:a.toString()})}}},Root:{leave(n,i){let o=i.getVisitorData();o.removedCount=r(n,[])}},NamedSchemas:{Schema(n,{location:i,key:o}){n.allOf||t(i,"definitions",o.toString())}},NamedParameters:{Parameter(n,{location:i,key:o}){t(i,"parameters",o.toString())}},NamedResponses:{Response(n,{location:i,key:o}){t(i,"responses",o.toString())}},NamedSecuritySchemes:{SecurityScheme(n,{location:i,key:o}){t(i,"securityDefinitions",o.toString())}}}};var gR={"operation-description-override":Zp,"tag-description-override":ef,"info-description-override":tf,"info-override":rf,"remove-x-internal":of,"remove-unused-components":pf,"filter-in":cf,"filter-out":lf};var bR={};var vR={};var xR={};var wR={};var SW={recommended:X$,"recommended-strict":J$,minimal:Z$,all:Q$,spec:eP},lb={id:"",rules:{oas3:RC,oas2:jC,async2:FC,async3:zC,arazzo1:lR,overlay1:pR},preprocessors:{oas3:TC,oas2:MC,async2:BC,async3:HC,arazzo1:uR,overlay1:fR},decorators:{oas3:yR,oas2:gR,async2:bR,async3:vR,arazzo1:xR,overlay1:wR},configs:SW};var fr=Ee(require("path"),1),bf=Ee(require("url"),1),xb=Ee(require("fs"),1),jR=Ee(require("module"),1);function SR(e){return!at(e)}var df=Ee(require("fs"),1),mf=Ee(require("path"),1);function _R(){return new Promise(e=>{setTimeout(e)})}function vi(e,t){return e+"::"+t}var xi=class{constructor(t,r,n){this.absoluteRef=t,this.body=r,this.mimeType=n}getAst(t){var r;return this._ast===void 0&&(this._ast=(r=t(this.body,{filename:this.absoluteRef}))!=null?r:void 0,this._ast&&this._ast.kind===0&&this._ast.value===""&&this._ast.startPosition!==1&&(this._ast.startPosition=1,this._ast.endPosition=1)),this._ast}getLines(){return this._lines===void 0&&(this._lines=this.body.split(/\r\n|[\n\r]/g)),this._lines}},ff=class e extends Error{constructor(t){super(t.message),this.originalError=t,Object.setPrototypeOf(this,e.prototype)}};function qc(e,t){let r=new xi(t,e);try{return{source:r,parsed:Pn(e,{filename:t})}}catch(n){throw new ln(n,r)}}var kn=class{constructor(t={http:{headers:[]}}){this.config=t,this.cache=new Map}getFiles(){return new Set(Array.from(this.cache.keys()))}resolveExternalRef(t,r){return Je(r)?r:t&&Je(t)?new URL(r,t).href:mf.resolve(t?mf.dirname(t):process.cwd(),r)}async loadExternalRef(t){try{if(Je(t)){let{body:r,mimeType:n}=await Zd(t,this.config.http);return new xi(t,r,n)}else{if(df.lstatSync(t).isDirectory())throw new Error(`Expected a file but received a folder at ${t}.`);let r=await df.promises.readFile(t,"utf-8");return new xi(t,r.replace(/\r\n/g,`
252
- `))}}catch(r){throw r.message=r.message.replace(", lstat",""),new ff(r)}}parseDocument(t,r=!1){var i;let n=t.absoluteRef.substr(t.absoluteRef.lastIndexOf("."));if(![".json",".json",".yml",".yaml"].includes(n)&&!((i=t.mimeType)!=null&&i.match(/(json|yaml|openapi)/))&&!r)return{source:t,parsed:t.body};try{return{source:t,parsed:Pn(t.body,{filename:t.absoluteRef})}}catch(o){throw new ln(o,t)}}async resolveDocument(t,r,n=!1){let i=this.resolveExternalRef(t,r),o=this.cache.get(i);if(o)return o;let s=this.loadExternalRef(i).then(a=>this.parseDocument(a,n));return this.cache.set(i,s),s}};function OR(e,t){return{prev:e,node:t}}function _W(e,t){for(;e;){if(e.node===t)return!0;e=e.prev}return!1}var kc={name:"unknown",properties:{}},OW={name:"scalar",properties:{}};async function ho(e){let{rootDocument:t,externalRefResolver:r,rootType:n}=e,i=new Map,o=new Set,s=[];c(t.parsed,t,"#/",n);let a;do a=await Promise.all(s);while(s.length!==a.length);return i;function c(l,u,p,m){let d=u.source.absoluteRef,f=new Map;h(l,m,d+p);function h(b,g,v){if(typeof b!="object"||b===null)return;let _=`${g.name}::${v}`;if(o.has(_))return;o.add(_);let[w,N]=Object.entries(b).find(([S])=>S==="$anchor")||[];if(N&&f.set(`#${N}`,b),Array.isArray(b)){let S=g.items;if(S===void 0&&g!==kc&&g!==kr)return;let O=typeof S=="function";for(let P=0;P<b.length;P++){let E=O?S(b[P],Bi(v,P)):S;if(E===void 0&&g!==kc&&g!==kr)continue;let R=E!=null&&E.directResolveAs?{$ref:b[P]}:b[P];E=(E==null?void 0:E.directResolveAs)||E,h(R,Yr(E)?E:kc,Bi(v,P))}return}for(let S of Object.keys(b)){let O=b[S],P=sn(g.properties,S);P===void 0&&(P=g.additionalProperties),typeof P=="function"&&(P=P(O,S)),P===void 0&&(P=kc),g.extensionsPrefix&&S.startsWith(g.extensionsPrefix)&&P===kc&&(P=kr),!Yr(P)&&(P!=null&&P.directResolveAs)&&(P=P.directResolveAs,O={$ref:O}),P&&P.name===void 0&&P.resolvable!==!1&&(P=OW),!(!Yr(P)||typeof O!="object")&&h(O,P,Bi(v,Hn(S)))}if(Oe(b)){let S=y(u,b,{prev:null,node:b}).then(O=>{O.resolved&&c(O.node,O.document,O.nodePointer,g)});s.push(S)}if(_l(b)){let S=y(u,{$ref:b.externalValue},{prev:null,node:b}).then(O=>{O.resolved&&c(O.node,O.document,O.nodePointer,g)});s.push(S)}}async function y(b,g,v){if(_W(v.prev,g))throw new Error("Self-referencing circular pointer");if(gx(g.$ref)){await _R();let A={resolved:!0,isRemote:!1,node:f.get(g.$ref),document:b,nodePointer:g.$ref},I=vi(b.source.absoluteRef,g.$ref);return i.set(I,A),A}let{uri:_,pointer:w}=hx(g.$ref),N=_!==null&&r.resolveExternalRef(b.source.absoluteRef,_)!==b.source.absoluteRef,S;try{S=N?await r.resolveDocument(b.source.absoluteRef,_):b}catch(A){let I={resolved:!1,isRemote:N,document:void 0,error:A},C=vi(b.source.absoluteRef,g.$ref);return i.set(C,I),I}let O={resolved:!0,document:S,isRemote:N,node:b.parsed,nodePointer:"#/"},P=S.parsed,E=w;for(let A of E)if(typeof P!="object"){P=void 0;break}else if(P[A]!==void 0)P=P[A],O.nodePointer=Bi(O.nodePointer,Hn(A));else if(Oe(P)){if(O=await y(S,P,OR(v,P)),S=O.document||S,typeof O.node!="object"){P=void 0;break}P=O.node[A],O.nodePointer=Bi(O.nodePointer,Hn(A))}else{P=void 0;break}O.node=P,O.document=S;let R=vi(b.source.absoluteRef,g.$ref);return O.document&&Oe(P)&&(O=await y(O.document,P,OR(v,P))),i.set(R,O),{...O}}}}var Ne=(e,t)=>{if(t)for(let r of Object.keys(t))W(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r]};function Ve(e,t){if(t)for(let r of Object.keys(t))e.hasOwnProperty(r)&&(W(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r])}function $R(e){if(e.indexOf("/")>-1){let[t,r]=e.split("/");return{pluginId:t,configName:r}}else return{pluginId:"",configName:e}}function ft(e,t){if(!t)return e;let r={};for(let n of Object.keys(e))r[`${t}/${n}`]=e[n];return r}function hf(e){let t={rules:{},oas2Rules:{},oas3_0Rules:{},oas3_1Rules:{},oas3_2Rules:{},async2Rules:{},async3Rules:{},arazzo1Rules:{},overlay1Rules:{},preprocessors:{},oas2Preprocessors:{},oas3_0Preprocessors:{},oas3_1Preprocessors:{},oas3_2Preprocessors:{},async2Preprocessors:{},async3Preprocessors:{},arazzo1Preprocessors:{},overlay1Preprocessors:{},decorators:{},oas2Decorators:{},oas3_0Decorators:{},oas3_1Decorators:{},oas3_2Decorators:{},async2Decorators:{},async3Decorators:{},arazzo1Decorators:{},overlay1Decorators:{}};for(let r of e){if(W(r)&&"extends"in r&&r.extends!==void 0)throw new Error(`'extends' is not supported in shared configs yet:
253
- ${JSON.stringify(r,null,2)}`);Ne(t.rules,r.rules),Ne(t.oas2Rules,r.oas2Rules),Ve(t.oas2Rules,r.rules),Ne(t.oas3_0Rules,r.oas3_0Rules),Ve(t.oas3_0Rules,r.rules),Ne(t.oas3_1Rules,r.oas3_1Rules),Ve(t.oas3_1Rules,r.rules),Ne(t.oas3_2Rules,r.oas3_2Rules),Ve(t.oas3_2Rules,r.rules),Ne(t.async2Rules,r.async2Rules),Ve(t.async2Rules,r.rules),Ne(t.async3Rules,r.async3Rules),Ve(t.async3Rules,r.rules),Ne(t.arazzo1Rules,r.arazzo1Rules),Ve(t.arazzo1Rules,r.rules),Ne(t.overlay1Rules,r.overlay1Rules),Ve(t.overlay1Rules,r.rules),Ne(t.preprocessors,r.preprocessors),Ne(t.oas2Preprocessors,r.oas2Preprocessors),Ve(t.oas2Preprocessors,r.preprocessors),Ne(t.oas3_0Preprocessors,r.oas3_0Preprocessors),Ve(t.oas3_0Preprocessors,r.preprocessors),Ne(t.oas3_1Preprocessors,r.oas3_1Preprocessors),Ve(t.oas3_1Preprocessors,r.preprocessors),Ne(t.oas3_2Preprocessors,r.oas3_2Preprocessors),Ve(t.oas3_2Preprocessors,r.preprocessors),Ne(t.async2Preprocessors,r.async2Preprocessors),Ve(t.async2Preprocessors,r.preprocessors),Ne(t.async3Preprocessors,r.async3Preprocessors),Ve(t.async3Preprocessors,r.preprocessors),Ne(t.arazzo1Preprocessors,r.arazzo1Preprocessors),Ve(t.arazzo1Preprocessors,r.preprocessors),Ne(t.overlay1Preprocessors,r.overlay1Preprocessors),Ve(t.overlay1Preprocessors,r.preprocessors),Ne(t.decorators,r.decorators),Ne(t.oas2Decorators,r.oas2Decorators),Ve(t.oas2Decorators,r.decorators),Ne(t.oas3_0Decorators,r.oas3_0Decorators),Ve(t.oas3_0Decorators,r.decorators),Ne(t.oas3_1Decorators,r.oas3_1Decorators),Ve(t.oas3_1Decorators,r.decorators),Ne(t.oas3_2Decorators,r.oas3_2Decorators),Ve(t.oas3_2Decorators,r.decorators),Ne(t.async2Decorators,r.async2Decorators),Ve(t.async2Decorators,r.decorators),Ne(t.async3Decorators,r.async3Decorators),Ve(t.async3Decorators,r.decorators),Ne(t.arazzo1Decorators,r.arazzo1Decorators),Ve(t.arazzo1Decorators,r.decorators),Ne(t.overlay1Decorators,r.overlay1Decorators),Ve(t.overlay1Decorators,r.decorators)}return t}function PR(e){return new Map(JSON.parse(JSON.stringify([...e])))}function ub(e){return e!==void 0&&typeof e=="object"&&"id"in e}function ER(e){return typeof e=="function"}function pb(e,t){return{prev:e,value:t}}function fb(e){var t;return(t=e==null?void 0:e.prev)!=null?t:null}function $W(e){var r;let t={};for(;e.parent;)t[e.parent.type.name]=(r=e.parent.activatedOn)==null?void 0:r.value.node,e=e.parent;return t}function PW(e){var r,n;let t={};for(;e.parent;)(r=e.parent.activatedOn)!=null&&r.value.location&&(t[e.parent.type.name]=(n=e.parent.activatedOn)==null?void 0:n.value.location),e=e.parent;return t}function wi(e){let{document:t,rootType:r,normalizedVisitors:n,resolvedRefMap:i,ctx:o}=e,s={},a=new Set;c(t.parsed,r,new zn(t.source,"#/"),void 0,"");function c(l,u,p,m,d){var O,P,E,R,A,I,C,$,L,D,k;let f=(q,V=y.source.absoluteRef)=>{if(!Oe(q))return{location:p,node:q};let z=vi(V,q.$ref),ne=i.get(z);if(!ne)return{location:void 0,node:void 0};let{resolved:pe,node:Ae,document:H,nodePointer:Y,error:ge}=ne;return{location:pe?new zn(H.source,Y):ge instanceof ln?new zn(ge.source,""):void 0,node:Ae,error:ge}},h=p,y=p,{node:b,location:g,error:v}=f(l),_=new Set;if(Oe(l)){let q=n.ref.enter;for(let{visit:V,ruleId:z,severity:ne,message:pe,context:Ae}of q){_.add(Ae);let H=N.bind(void 0,z,ne,pe);V(l,{report:H,resolve:f,rawNode:l,rawLocation:h,location:p,type:u,parent:m,key:d,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:S.bind(void 0,z)},{node:b,location:g,error:v}),g!=null&&g.source.absoluteRef&&o.refTypes&&o.refTypes.set(g==null?void 0:g.source.absoluteRef,u)}}if(b!==void 0&&g&&u.name!=="scalar"){y=g;let q=(P=(O=s[u.name])==null?void 0:O.has)==null?void 0:P.call(O,b),V=!1,ne=n.any.enter.concat(((E=n[u.name])==null?void 0:E.enter)||[]),pe=[];for(let{context:Y,visit:ge,skip:F,ruleId:le,severity:M,message:fe}of ne){if(a.has(`${y.absolutePointer}${y.pointer}`))break;if(Y.isSkippedLevel)Y.parent.activatedOn&&!Y.parent.activatedOn.value.nextLevelTypeActivated&&!Y.seen.has(l)&&(Y.seen.add(l),V=!0,pe.push(Y));else if(Y.parent&&Y.parent.activatedOn&&((R=Y.activatedOn)==null?void 0:R.value.withParentNode)!==Y.parent.activatedOn.value.node&&((A=Y.parent.activatedOn.value.nextLevelTypeActivated)==null?void 0:A.value)!==u||!Y.parent&&!q){pe.push(Y);let je={node:b,location:g,nextLevelTypeActivated:null,withParentNode:(C=(I=Y.parent)==null?void 0:I.activatedOn)==null?void 0:C.value.node,skipped:(D=((L=($=Y.parent)==null?void 0:$.activatedOn)==null?void 0:L.value.skipped)||(F==null?void 0:F(b,d,{location:p,rawLocation:h,resolve:f,rawNode:l})))!=null?D:!1};Y.activatedOn=pb(Y.activatedOn,je);let We=Y.parent;for(;We;)We.activatedOn.value.nextLevelTypeActivated=pb(We.activatedOn.value.nextLevelTypeActivated,u),We=We.parent;je.skipped||(V=!0,_.add(Y),w(ge,b,l,Y,le,M,fe))}}if(V||!q){if(s[u.name]=s[u.name]||new Set,s[u.name].add(b),Array.isArray(b)){let Y=u.items;if(Y!==void 0){let ge=typeof Y=="function";for(let F=0;F<b.length;F++){let le=ge?Y(b[F],g.child([F]).absolutePointer):Y,M=b[F];le!=null&&le.directResolveAs&&(le=le.directResolveAs,M={$ref:M}),Yr(le)&&c(M,le,g.child([F]),b,F)}}}else if(typeof b=="object"&&b!==null){let Y=Object.keys(u.properties);u.additionalProperties?Y.push(...Object.keys(b).filter(ge=>!Y.includes(ge))):u.extensionsPrefix&&Y.push(...Object.keys(b).filter(ge=>ge.startsWith(u.extensionsPrefix))),Oe(l)&&Y.push(...Object.keys(l).filter(ge=>ge!=="$ref"&&!Y.includes(ge)));for(let ge of Y){let F=b[ge],le=g;F===void 0&&(F=l[ge],le=p);let M=sn(u.properties,ge);M===void 0&&(M=u.additionalProperties),typeof M=="function"&&(M=M(F,ge)),M===void 0&&u.extensionsPrefix&&ge.startsWith(u.extensionsPrefix)&&(M=kr),!Yr(M)&&(M!=null&&M.directResolveAs)&&(M=M.directResolveAs,F={$ref:F}),M&&M.name===void 0&&M.resolvable!==!1&&(M={name:"scalar",properties:{}}),!(!Yr(M)||M.name==="scalar"&&!Oe(F))&&c(F,M,le.child([ge]),b,ge)}}}let Ae=n.any.leave,H=(((k=n[u.name])==null?void 0:k.leave)||[]).concat(Ae);for(let Y of pe.reverse())if(Y.isSkippedLevel)Y.seen.delete(b);else if(Y.activatedOn=fb(Y.activatedOn),Y.parent){let ge=Y.parent;for(;ge;)ge.activatedOn.value.nextLevelTypeActivated=fb(ge.activatedOn.value.nextLevelTypeActivated),ge=ge.parent}for(let{context:Y,visit:ge,ruleId:F,severity:le,message:M}of H)!Y.isSkippedLevel&&_.has(Y)&&w(ge,b,l,Y,F,le,M)}if(y=p,Oe(l)){let q=n.ref.leave;for(let{visit:V,ruleId:z,severity:ne,context:pe,message:Ae}of q)if(_.has(pe)){let H=N.bind(void 0,z,ne,Ae);V(l,{report:H,resolve:f,rawNode:l,rawLocation:h,location:p,type:u,parent:m,key:d,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:S.bind(void 0,z)},{node:b,location:g,error:v})}}function w(q,V,z,ne,pe,Ae,H){let Y=N.bind(void 0,pe,Ae,H);q(V,{report:Y,resolve:f,rawNode:z,location:y,rawLocation:h,type:u,parent:m,key:d,parentLocations:PW(ne),specVersion:o.specVersion,config:o.config,ignoreNextVisitorsOnNode:()=>{a.add(`${y.absolutePointer}${y.pointer}`)},getVisitorData:S.bind(void 0,pe)},$W(ne),ne)}function N(q,V,z,ne){let Ae=(ne.location?Array.isArray(ne.location)?ne.location:[ne.location]:[{...y,reportOnKey:!1}]).map(Y=>({...y,reportOnKey:!1,...Y})),H=ne.forceSeverity||V;H!=="off"&&o.problems.push({ruleId:ne.ruleId||q,severity:H,...ne,message:z?z.replace("{{message}}",ne.message):ne.message,suggest:ne.suggest||[],location:Ae})}function S(q){return o.visitorsData[q]=o.visitorsData[q]||{},o.visitorsData[q]}}}var EW={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function Si(e,t){let r={};r.any={enter:[],leave:[]};for(let s of Object.keys(t))r[s]={enter:[],leave:[]};r.ref={enter:[],leave:[]};for(let{ruleId:s,severity:a,message:c,visitor:l}of e)o({ruleId:s,severity:a,message:c},l,null);for(let s of Object.keys(r))r[s].enter.sort((a,c)=>c.depth-a.depth),r[s].leave.sort((a,c)=>a.depth-c.depth);return r;function n(s,a,c,l,u=[]){if(u.includes(a))return;u=[...u,a];let p=new Set;for(let d of Object.values(a.properties)){if(d===c){m(s,u);continue}typeof d=="object"&&d!==null&&d.name&&p.add(d)}a.additionalProperties&&typeof a.additionalProperties!="function"&&(a.additionalProperties===c?m(s,u):a.additionalProperties.name!==void 0&&p.add(a.additionalProperties)),a.items&&typeof a.items!="function"&&(a.items===c?m(s,u):a.items.name!==void 0&&p.add(a.items)),a.extensionsPrefix&&p.add(kr);for(let d of Array.from(p.values()))n(s,d,c,l,u);function m(d,f){for(let h of f.slice(1))r[h.name]=r[h.name]||{enter:[],leave:[]},r[h.name].enter.push({...d,visit:()=>{},depth:0,context:{isSkippedLevel:!0,seen:new Set,parent:l}})}}function i(s,a){if(Array.isArray(a)){let c=a.find(l=>s[l])||void 0;return c&&s[c]}return s[a]}function o(s,a,c,l=0){let u=Object.keys(t);if(l===0)u.push("any"),u.push("ref");else{if(a.any)throw new Error("any() is allowed only on top level");if(a.ref)throw new Error("ref() is allowed only on top level")}for(let p of u){let m=a[p]||i(a,EW[p]),d=r[p];if(!m)continue;let f,h,y,b=W(m);if(p==="ref"&&b&&m.skip)throw new Error("ref() visitor does not support skip");typeof m=="function"?f=m:b&&(f=m.enter,h=m.leave,y=m.skip);let g=(f?1:0)+(h?1:0)+(y?1:0),v=b&&Object.keys(m).length>g,_={activatedOn:null,type:t[p],parent:c,isSkippedLevel:!1};if(v&&o(s,m,_,l+1),c&&n(s,c.type,t[p],c),f||b){if(f&&typeof f!="function")throw new Error("DEV: should be function");d.enter.push({...s,visit:f||(()=>{}),skip:y,depth:l,context:_})}if(h){if(typeof h!="function")throw new Error("DEV: should be function");d.leave.push({...s,visit:h,depth:l,context:_})}}}}var AR=Ee(require("path"),1);function db({node:e,ctx:t,plugins:r}){if(!e.extends)return e;let n=(e.extends||[]).map(i=>{if(!Je(i)&&!AR.default.extname(i))return CR(i,r);let o=t.resolve({$ref:i});return o.location&&o.node!==void 0?o.node:null}).filter(ct);return hf([...n.map(i=>db({node:i,ctx:t,plugins:r})),{...e,extends:void 0}])}function yf(e,t){if(W(e)&&Array.isArray(e.plugins)){let{plugins:r,rootConfigDir:n}=t.getVisitorData();r.push(...e.plugins.map(i=>mb(i,t.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}var RR=Si([{severity:"error",ruleId:Du,visitor:{ref:{},ConfigGovernance:{leave(e,t){yf(e,t)}},ConfigApisProperties:{leave(e,t){yf(e,t)}},"rootRedoclyConfigSchema.scorecard.levels_items":{leave(e,t){yf(e,t)}},ConfigRoot:{leave(e,t){yf(e,t)}}}}],ei);function gf(e,t){if(W(e)&&e.extends){let{plugins:r}=t.getVisitorData(),n=db({node:e,ctx:t,plugins:r});Object.assign(e,n),delete e.extends}}var TR=Si([{severity:"error",ruleId:Lu,visitor:{ref:{leave(e,t,r){ga(e,r,t)}},ConfigGovernance:{leave(e,t){gf(e,t)}},ConfigApisProperties:{leave(e,t){gf(e,t)}},"rootRedoclyConfigSchema.scorecard.levels_items":{leave(e,t){gf(e,t)}},ConfigRoot:{leave(e,t){gf(e,t)}}}}],ei);function hb(e,t){switch(t){case"oas3":switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";case"Response":return"responses";case"Example":return"examples";case"RequestBody":return"requestBodies";case"Header":return"headers";case"SecuritySchema":return"securitySchemes";case"Link":return"links";case"Callback":return"callbacks";default:return null}case"oas2":switch(e){case"Schema":return"definitions";case"Parameter":return"parameters";case"Response":return"responses";default:return null}case"async2":switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"async3":switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"arazzo1":switch(e){case"Root.workflows_items.parameters_items":case"Root.workflows_items.steps_items.parameters_items":return"parameters";default:return null}case"overlay1":return null}}function NR(e,t,r,n,i){let o,s,a={ref:{leave(m,d,f){if(!f.location||f.node===void 0){js(f,d.report,d.location);return}if(f.location.source===r.source&&f.location.source===d.location.source&&d.type.name!=="scalar"&&!t){m.$ref!==f.location.pointer&&(m.$ref=f.location.pointer);return}if(i&&Je(m.$ref))return;let h=hb(d.type.name,e);h?t?(l(h,f,d),ga(m,f,d)):(m.$ref=l(h,f,d),c(m,f,d)):ga(m,f,d)}},Example:{leave(m,d){if(_l(m)&&m.value===void 0){let f=d.resolve({$ref:m.externalValue});if(!f.location||f.node===void 0){js(f,d.report,d.location);return}if(i&&Je(m.externalValue))return;m.value=d.resolve({$ref:m.externalValue}).node,delete m.externalValue}}},Root:{enter(m,d){s=d.location,e==="oas3"?o=m.components=m.components||{}:e==="oas2"?o=m:e==="async2"?o=m.components=m.components||{}:e==="async3"?o=m.components=m.components||{}:e==="arazzo1"&&(o=m.components=m.components||{})}}};e==="oas3"&&(a.DiscriminatorMapping={leave(m,d){for(let f of Object.keys(m)){let h=m[f],y=d.resolve({$ref:h});if(!y.location||y.node===void 0){js(y,d.report,d.location.child(f));return}let b=hb("Schema",e);m[f]=l(b,y,d)}}});function c(m,d,f){let h=vi(f.location.source.absoluteRef,m.$ref);n.set(h,{document:r,isRemote:!1,node:d.node,nodePointer:m.$ref,resolved:!0})}function l(m,d,f){o[m]=o[m]||{};let h=p(d,m,f);return o[m][h]=d.node,e==="oas3"||e==="async2"||e==="async3"?`#/components/${m}/${h}`:`#/${m}/${h}`}function u(m,d,f){var h;return Oe(m)&&((h=f.resolve(m,s.absolutePointer).location)==null?void 0:h.absolutePointer)===d.location.absolutePointer?!0:da(m,d.node)}function p(m,d,f){let[h,y]=[m.location.source.absoluteRef,m.location.pointer],b=o[d],g="",v=y.slice(2).split("/").filter(ct);for(;v.length>0;)if(g=v.pop()+(g?`-${g}`:""),!b||!b[g]||u(b[g],m,f))return g;if(g=yx(h)+(g?`_${g}`:""),!b[g]||u(b[g],m,f))return g;let _=g,w=2;for(;b[g]&&!u(b[g],m,f);)g=`${_}-${w}`,w++;return b[g]||f.report({message:`Two schemas are referenced with the same name but different content. Renamed ${_} to ${g}.`,location:f.location,forceSeverity:"warn"}),g}return a}async function yb(e){let{document:t,config:r,types:n,externalRefResolver:i,dereference:o=!1,removeUnusedComponents:s=!1,keepUrlRefs:a=!1}=e,c=ni(t.parsed),l=ju(c),u=r.getRulesForSpecVersion(l),p=Lo(r.extendTypes(n,c),r),m=Bu(u,r,"preprocessors",c),d=Bu(u,r,"decorators",c),f={problems:[],specVersion:c,config:r,refTypes:new Map,visitorsData:{}};s&&!d.some(b=>b.ruleId==="remove-unused-components")&&d.push({severity:"error",ruleId:"remove-unused-components",visitor:l==="oas2"?pf({}):uf({})});let h=await ho({rootDocument:t,rootType:p.Root,externalRefResolver:i});m.length>0&&(wi({document:t,rootType:p.Root,normalizedVisitors:Si(m,p),resolvedRefMap:h,ctx:f}),h=await ho({rootDocument:t,rootType:p.Root,externalRefResolver:i}));let y=Si([{severity:"error",ruleId:"bundler",visitor:NR(l,o,t,h,a)},...d],p);return wi({document:t,rootType:p.Root,normalizedVisitors:y,resolvedRefMap:h,ctx:f}),{bundle:t,problems:f.problems.map(b=>r.addProblemToIgnore(b)),fileDependencies:i.getFiles(),rootType:p.Root,refTypes:f.refTypes,visitorsData:f.visitorsData}}function IR(e,t,r){let n={plugins:[],rootConfigDir:r},i={problems:[],specVersion:"oas3_0",refTypes:new Map,visitorsData:{[Du]:n}};return wi({document:e,rootType:ei.ConfigRoot,normalizedVisitors:RR,resolvedRefMap:t,ctx:i}),n.plugins}function kR(e,t,r){var o;let n={plugins:r},i={problems:[],specVersion:"oas3_0",refTypes:new Map,visitorsData:{[Lu]:n}};return wi({document:e,rootType:ei.ConfigRoot,normalizedVisitors:TR,resolvedRefMap:t,ctx:i}),(o=e.parsed)!=null?o:{}}async function gb(e){var s;let{ref:t,doc:r,externalRefResolver:n=new kn(e.config.resolve),base:i=null}=e;if(!(t||r))throw new Error(`Document or reference is required.
251
+ ${o.message}`,location:n.child("description")})}}}});var rf=e=>({Info:{leave(t){if(typeof e!="object"||Array.isArray(e)||e===null)throw new Error('"info-override" decorator should be called with an object');let{severity:r,...n}=e;Object.assign(t,n)}}});function nf(e){return Array.isArray(e)&&e.length===0}var vW="x-internal",of=({internalFlagProperty:e=vW})=>{function t(n,i,o){var l,u,p,m,d;let{parent:s,key:a}=i,c=!1;if(Array.isArray(n))for(let f=0;f<n.length;f++){if(we(n[f])&&(l=i.resolve(n[f]).node)!=null&&l[e]){if(W((u=s.discriminator)==null?void 0:u.mapping))for(let y in s.discriminator.mapping)(o==null?void 0:o[y])===n[f].$ref&&delete s.discriminator.mapping[y];n.splice(f,1),c=!0,f--}(p=n[f])!=null&&p[e]&&(n.splice(f,1),c=!0,f--)}else if(W(n))for(let f of Object.keys(n)){if(we(n[f])){let h=i.resolve(n[f]);W(h.node)&&((m=h.node)!=null&&m[e])&&(delete n[f],c=!0)}W(n[f])&&((d=n[f])!=null&&d[e])&&(delete n[f],c=!0)}c&&(Ir(n)||nf(n))&&delete s[a]}let r={};return{DiscriminatorMapping:{enter:n=>{r=JSON.parse(JSON.stringify(n))}},any:{enter:(n,i)=>{t(n,i,r)}}}};function sf(e,t,r){let{parent:n,key:i}=t,o=!1;if(Array.isArray(e))for(let s=0;s<e.length;s++){if(we(e[s])){let a=t.resolve(e[s]);r(a.node)&&(e.splice(s,1),o=!0,s--)}r(e[s])&&(e.splice(s,1),o=!0,s--)}else if(W(e))for(let s of Object.keys(e)){if(e=e,we(e[s])){let a=t.resolve(e[s]);r(a.node)&&(delete e[s],o=!0)}r(e[s])&&(delete e[s],o=!0)}o&&(Ir(e)||nf(e))&&delete n[i]}function af(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=dR(t),e=dR(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function dR(e){return Array.isArray(e)?e:[e]}var xW="any",cf=({property:e,value:t,matchStrategy:r})=>{let n=r||xW,i=o=>(o==null?void 0:o[e])&&!af(o==null?void 0:o[e],t,n);return{any:{enter:(o,s)=>{sf(o,s,i)}}}};var wW="any",lf=({property:e,value:t,matchStrategy:r})=>{let n=r||wW,i=o=>af(o==null?void 0:o[e],t,n);return{any:{enter:(o,s)=>{sf(o,s,i)}}}};var hR=({operationIds:e})=>({Operation:{enter(t,r){let n=t.operationId;if(!n)return;let i=e[n];if(i){if(i.responses&&t.responses)for(let o of Object.keys(i.responses)){let s=mR(t.responses[o],r.resolve);s&&(s.content=s.content?s.content:{},Object.keys(i.responses[o]).forEach(a=>{var l;let c=i.responses[o][a];s.content[a]={...s.content[a],examples:cb(In(c,(l=r.config)==null?void 0:l.configPath))}}),t.responses[o]=s)}if(i.request&&t.requestBody){let o=mR(t.requestBody,r.resolve);if(!o)return;o.content=o.content?o.content:{},Object.keys(i.request).forEach(s=>{var c;let a=i.request[s];o.content[s]={...o.content[s],examples:cb(In(a,(c=r.config)==null?void 0:c.configPath))}}),t.requestBody=o}}}}});function mR(e,t){if(!we(e))return e;let r=t(e);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}var uf=()=>{let e=new Map;function t(n,i,o){var s,a;e.set(n.absolutePointer,{usedIn:(a=(s=e.get(n.absolutePointer))==null?void 0:s.usedIn)!=null?a:[],componentType:i,name:o})}function r(n,i){let o=i.length;for(let[s,{usedIn:a,name:c,componentType:l}]of e)if(!a.some(p=>!i.some(m=>p.absolutePointer.startsWith(m)&&(p.absolutePointer.length===m.length||p.absolutePointer[m.length]==="/")))&&l&&n.components){i.push(s);let p=n.components[l];delete p[c],e.delete(s),Ir(p)&&delete n.components[l]}return i.length>o?r(n,i):i.length}return{ref:{leave(n,{location:i,type:o,resolve:s,key:a}){if(["Schema","Header","Parameter","Response","Example","RequestBody"].includes(o.name)){let c=s(n);if(!c.location)return;let[l,u]=c.location.absolutePointer.split("#",2);if(!u)return;let p=u.split("/").slice(0,4).join("/"),m=`${l}#${p}`,d=e.get(m);d?d.usedIn.push(i):e.set(m,{usedIn:[i],name:a.toString()})}}},Root:{leave(n,i){let o=i.getVisitorData();o.removedCount=r(n,[]),Ir(n.components)&&delete n.components}},NamedSchemas:{Schema(n,{location:i,key:o}){n.allOf||t(i,"schemas",o.toString())}},NamedParameters:{Parameter(n,{location:i,key:o}){t(i,"parameters",o.toString())}},NamedResponses:{Response(n,{location:i,key:o}){t(i,"responses",o.toString())}},NamedExamples:{Example(n,{location:i,key:o}){t(i,"examples",o.toString())}},NamedRequestBodies:{RequestBody(n,{location:i,key:o}){t(i,"requestBodies",o.toString())}},NamedHeaders:{Header(n,{location:i,key:o}){t(i,"headers",o.toString())}}}};var yR={"operation-description-override":Zp,"tag-description-override":ef,"info-description-override":tf,"info-override":rf,"remove-x-internal":of,"remove-unused-components":uf,"filter-in":cf,"filter-out":lf,"media-type-examples-override":hR};var pf=()=>{let e=new Map;function t(n,i,o){var s,a;e.set(n.absolutePointer,{usedIn:(a=(s=e.get(n.absolutePointer))==null?void 0:s.usedIn)!=null?a:[],componentType:i,name:o})}function r(n,i){let o=i.length;for(let[s,{usedIn:a,name:c,componentType:l}]of e)!a.some(p=>!i.some(m=>p.absolutePointer.startsWith(m)&&(p.absolutePointer.length===m.length||p.absolutePointer[m.length]==="/")))&&l&&(i.push(s),delete n[l][c],e.delete(s),Ir(n[l])&&delete n[l]);return i.length>o?r(n,i):i.length}return{ref:{leave(n,{location:i,type:o,resolve:s,key:a}){if(["Schema","Parameter","Response","SecurityScheme"].includes(o.name)){let c=s(n);if(!c.location)return;let[l,u]=c.location.absolutePointer.split("#",2);if(!u)return;let p=u.split("/").slice(0,3).join("/"),m=`${l}#${p}`,d=e.get(m);d?d.usedIn.push(i):e.set(m,{usedIn:[i],name:a.toString()})}}},Root:{leave(n,i){let o=i.getVisitorData();o.removedCount=r(n,[])}},NamedSchemas:{Schema(n,{location:i,key:o}){n.allOf||t(i,"definitions",o.toString())}},NamedParameters:{Parameter(n,{location:i,key:o}){t(i,"parameters",o.toString())}},NamedResponses:{Response(n,{location:i,key:o}){t(i,"responses",o.toString())}},NamedSecuritySchemes:{SecurityScheme(n,{location:i,key:o}){t(i,"securityDefinitions",o.toString())}}}};var gR={"operation-description-override":Zp,"tag-description-override":ef,"info-description-override":tf,"info-override":rf,"remove-x-internal":of,"remove-unused-components":pf,"filter-in":cf,"filter-out":lf};var bR={};var vR={};var xR={};var wR={};var SW={recommended:X$,"recommended-strict":J$,minimal:Z$,all:Q$,spec:eP},lb={id:"",rules:{oas3:RC,oas2:jC,async2:FC,async3:zC,arazzo1:lR,overlay1:pR},preprocessors:{oas3:TC,oas2:MC,async2:BC,async3:HC,arazzo1:uR,overlay1:fR},decorators:{oas3:yR,oas2:gR,async2:bR,async3:vR,arazzo1:xR,overlay1:wR},configs:SW};var fr=Ee(require("path"),1),bf=Ee(require("url"),1),xb=Ee(require("fs"),1),jR=Ee(require("module"),1);function SR(e){return!at(e)}var df=Ee(require("fs"),1),mf=Ee(require("path"),1);function _R(){return new Promise(e=>{setTimeout(e)})}function vi(e,t){return e+"::"+t}var xi=class{constructor(t,r,n){this.absoluteRef=t,this.body=r,this.mimeType=n}getAst(t){var r;return this._ast===void 0&&(this._ast=(r=t(this.body,{filename:this.absoluteRef}))!=null?r:void 0,this._ast&&this._ast.kind===0&&this._ast.value===""&&this._ast.startPosition!==1&&(this._ast.startPosition=1,this._ast.endPosition=1)),this._ast}getLines(){return this._lines===void 0&&(this._lines=this.body.split(/\r\n|[\n\r]/g)),this._lines}},ff=class e extends Error{constructor(t){super(t.message),this.originalError=t,Object.setPrototypeOf(this,e.prototype)}};function qc(e,t){let r=new xi(t,e);try{return{source:r,parsed:Pn(e,{filename:t})}}catch(n){throw new ln(n,r)}}var kn=class{constructor(t={http:{headers:[]}}){this.config=t,this.cache=new Map}getFiles(){return new Set(Array.from(this.cache.keys()))}resolveExternalRef(t,r){return Je(r)?r:t&&Je(t)?new URL(r,t).href:mf.resolve(t?mf.dirname(t):process.cwd(),r)}async loadExternalRef(t){try{if(Je(t)){let{body:r,mimeType:n}=await Zd(t,this.config.http);return new xi(t,r,n)}else{if(df.lstatSync(t).isDirectory())throw new Error(`Expected a file but received a folder at ${t}.`);let r=await df.promises.readFile(t,"utf-8");return new xi(t,r.replace(/\r\n/g,`
252
+ `))}}catch(r){throw r.message=r.message.replace(", lstat",""),new ff(r)}}parseDocument(t,r=!1){var i;let n=t.absoluteRef.substr(t.absoluteRef.lastIndexOf("."));if(![".json",".json",".yml",".yaml"].includes(n)&&!((i=t.mimeType)!=null&&i.match(/(json|yaml|openapi)/))&&!r)return{source:t,parsed:t.body};try{return{source:t,parsed:Pn(t.body,{filename:t.absoluteRef})}}catch(o){throw new ln(o,t)}}async resolveDocument(t,r,n=!1){let i=this.resolveExternalRef(t,r),o=this.cache.get(i);if(o)return o;let s=this.loadExternalRef(i).then(a=>this.parseDocument(a,n));return this.cache.set(i,s),s}};function OR(e,t){return{prev:e,node:t}}function _W(e,t){for(;e;){if(e.node===t)return!0;e=e.prev}return!1}var kc={name:"unknown",properties:{}},OW={name:"scalar",properties:{}};async function ho(e){let{rootDocument:t,externalRefResolver:r,rootType:n}=e,i=new Map,o=new Set,s=[];c(t.parsed,t,"#/",n);let a;do a=await Promise.all(s);while(s.length!==a.length);return i;function c(l,u,p,m){let d=u.source.absoluteRef,f=new Map;h(l,m,d+p);function h(b,g,v){if(typeof b!="object"||b===null)return;let _=`${g.name}::${v}`;if(o.has(_))return;o.add(_);let[w,N]=Object.entries(b).find(([S])=>S==="$anchor")||[];if(N&&f.set(`#${N}`,b),Array.isArray(b)){let S=g.items;if(S===void 0&&g!==kc&&g!==kr)return;let O=typeof S=="function";for(let P=0;P<b.length;P++){let E=O?S(b[P],Bi(v,P)):S;if(E===void 0&&g!==kc&&g!==kr)continue;let R=E!=null&&E.directResolveAs?{$ref:b[P]}:b[P];E=(E==null?void 0:E.directResolveAs)||E,h(R,Wr(E)?E:kc,Bi(v,P))}return}for(let S of Object.keys(b)){let O=b[S],P=zr(g.properties,S);P===void 0&&(P=g.additionalProperties),typeof P=="function"&&(P=P(O,S)),P===void 0&&(P=kc),g.extensionsPrefix&&S.startsWith(g.extensionsPrefix)&&P===kc&&(P=kr),!Wr(P)&&(P!=null&&P.directResolveAs)&&(P=P.directResolveAs,O={$ref:O}),P&&P.name===void 0&&P.resolvable!==!1&&(P=OW),!(!Wr(P)||typeof O!="object")&&h(O,P,Bi(v,Hn(S)))}if(we(b)){let S=y(u,b,{prev:null,node:b}).then(O=>{O.resolved&&c(O.node,O.document,O.nodePointer,g)});s.push(S)}if(_l(b)){let S=y(u,{$ref:b.externalValue},{prev:null,node:b}).then(O=>{O.resolved&&c(O.node,O.document,O.nodePointer,g)});s.push(S)}}async function y(b,g,v){if(_W(v.prev,g))throw new Error("Self-referencing circular pointer");if(gx(g.$ref)){await _R();let A={resolved:!0,isRemote:!1,node:f.get(g.$ref),document:b,nodePointer:g.$ref},I=vi(b.source.absoluteRef,g.$ref);return i.set(I,A),A}let{uri:_,pointer:w}=hx(g.$ref),N=_!==null&&r.resolveExternalRef(b.source.absoluteRef,_)!==b.source.absoluteRef,S;try{S=N?await r.resolveDocument(b.source.absoluteRef,_):b}catch(A){let I={resolved:!1,isRemote:N,document:void 0,error:A},C=vi(b.source.absoluteRef,g.$ref);return i.set(C,I),I}let O={resolved:!0,document:S,isRemote:N,node:b.parsed,nodePointer:"#/"},P=S.parsed,E=w;for(let A of E)if(typeof P!="object"){P=void 0;break}else if(P[A]!==void 0)P=P[A],O.nodePointer=Bi(O.nodePointer,Hn(A));else if(we(P)){if(O=await y(S,P,OR(v,P)),S=O.document||S,typeof O.node!="object"){P=void 0;break}P=O.node[A],O.nodePointer=Bi(O.nodePointer,Hn(A))}else{P=void 0;break}O.node=P,O.document=S;let R=vi(b.source.absoluteRef,g.$ref);return O.document&&we(P)&&(O=await y(O.document,P,OR(v,P))),i.set(R,O),{...O}}}}var Ne=(e,t)=>{if(t)for(let r of Object.keys(t))W(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r]};function Ve(e,t){if(t)for(let r of Object.keys(t))e.hasOwnProperty(r)&&(W(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r])}function $R(e){if(e.indexOf("/")>-1){let[t,r]=e.split("/");return{pluginId:t,configName:r}}else return{pluginId:"",configName:e}}function ft(e,t){if(!t)return e;let r={};for(let n of Object.keys(e))r[`${t}/${n}`]=e[n];return r}function hf(e){let t={rules:{},oas2Rules:{},oas3_0Rules:{},oas3_1Rules:{},oas3_2Rules:{},async2Rules:{},async3Rules:{},arazzo1Rules:{},overlay1Rules:{},preprocessors:{},oas2Preprocessors:{},oas3_0Preprocessors:{},oas3_1Preprocessors:{},oas3_2Preprocessors:{},async2Preprocessors:{},async3Preprocessors:{},arazzo1Preprocessors:{},overlay1Preprocessors:{},decorators:{},oas2Decorators:{},oas3_0Decorators:{},oas3_1Decorators:{},oas3_2Decorators:{},async2Decorators:{},async3Decorators:{},arazzo1Decorators:{},overlay1Decorators:{}};for(let r of e){if(W(r)&&"extends"in r&&r.extends!==void 0)throw new Error(`'extends' is not supported in shared configs yet:
253
+ ${JSON.stringify(r,null,2)}`);Ne(t.rules,r.rules),Ne(t.oas2Rules,r.oas2Rules),Ve(t.oas2Rules,r.rules),Ne(t.oas3_0Rules,r.oas3_0Rules),Ve(t.oas3_0Rules,r.rules),Ne(t.oas3_1Rules,r.oas3_1Rules),Ve(t.oas3_1Rules,r.rules),Ne(t.oas3_2Rules,r.oas3_2Rules),Ve(t.oas3_2Rules,r.rules),Ne(t.async2Rules,r.async2Rules),Ve(t.async2Rules,r.rules),Ne(t.async3Rules,r.async3Rules),Ve(t.async3Rules,r.rules),Ne(t.arazzo1Rules,r.arazzo1Rules),Ve(t.arazzo1Rules,r.rules),Ne(t.overlay1Rules,r.overlay1Rules),Ve(t.overlay1Rules,r.rules),Ne(t.preprocessors,r.preprocessors),Ne(t.oas2Preprocessors,r.oas2Preprocessors),Ve(t.oas2Preprocessors,r.preprocessors),Ne(t.oas3_0Preprocessors,r.oas3_0Preprocessors),Ve(t.oas3_0Preprocessors,r.preprocessors),Ne(t.oas3_1Preprocessors,r.oas3_1Preprocessors),Ve(t.oas3_1Preprocessors,r.preprocessors),Ne(t.oas3_2Preprocessors,r.oas3_2Preprocessors),Ve(t.oas3_2Preprocessors,r.preprocessors),Ne(t.async2Preprocessors,r.async2Preprocessors),Ve(t.async2Preprocessors,r.preprocessors),Ne(t.async3Preprocessors,r.async3Preprocessors),Ve(t.async3Preprocessors,r.preprocessors),Ne(t.arazzo1Preprocessors,r.arazzo1Preprocessors),Ve(t.arazzo1Preprocessors,r.preprocessors),Ne(t.overlay1Preprocessors,r.overlay1Preprocessors),Ve(t.overlay1Preprocessors,r.preprocessors),Ne(t.decorators,r.decorators),Ne(t.oas2Decorators,r.oas2Decorators),Ve(t.oas2Decorators,r.decorators),Ne(t.oas3_0Decorators,r.oas3_0Decorators),Ve(t.oas3_0Decorators,r.decorators),Ne(t.oas3_1Decorators,r.oas3_1Decorators),Ve(t.oas3_1Decorators,r.decorators),Ne(t.oas3_2Decorators,r.oas3_2Decorators),Ve(t.oas3_2Decorators,r.decorators),Ne(t.async2Decorators,r.async2Decorators),Ve(t.async2Decorators,r.decorators),Ne(t.async3Decorators,r.async3Decorators),Ve(t.async3Decorators,r.decorators),Ne(t.arazzo1Decorators,r.arazzo1Decorators),Ve(t.arazzo1Decorators,r.decorators),Ne(t.overlay1Decorators,r.overlay1Decorators),Ve(t.overlay1Decorators,r.decorators)}return t}function PR(e){return new Map(JSON.parse(JSON.stringify([...e])))}function ub(e){return e!==void 0&&typeof e=="object"&&"id"in e}function ER(e){return typeof e=="function"}function pb(e,t){return{prev:e,value:t}}function fb(e){var t;return(t=e==null?void 0:e.prev)!=null?t:null}function $W(e){var r;let t={};for(;e.parent;)t[e.parent.type.name]=(r=e.parent.activatedOn)==null?void 0:r.value.node,e=e.parent;return t}function PW(e){var r,n;let t={};for(;e.parent;)(r=e.parent.activatedOn)!=null&&r.value.location&&(t[e.parent.type.name]=(n=e.parent.activatedOn)==null?void 0:n.value.location),e=e.parent;return t}function wi(e){let{document:t,rootType:r,normalizedVisitors:n,resolvedRefMap:i,ctx:o}=e,s={},a=new Set;c(t.parsed,r,new zn(t.source,"#/"),void 0,"");function c(l,u,p,m,d){var O,P,E,R,A,I,C,$,L,D,k;let f=(q,V=y.source.absoluteRef)=>{if(!we(q))return{location:p,node:q};let z=vi(V,q.$ref),ne=i.get(z);if(!ne)return{location:void 0,node:void 0};let{resolved:fe,node:Ae,document:H,nodePointer:Y,error:le}=ne;return{location:fe?new zn(H.source,Y):le instanceof ln?new zn(le.source,""):void 0,node:Ae,error:le}},h=p,y=p,{node:b,location:g,error:v}=f(l),_=new Set;if(we(l)){let q=n.ref.enter;for(let{visit:V,ruleId:z,severity:ne,message:fe,context:Ae}of q){_.add(Ae);let H=N.bind(void 0,z,ne,fe);V(l,{report:H,resolve:f,rawNode:l,rawLocation:h,location:p,type:u,parent:m,key:d,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:S.bind(void 0,z)},{node:b,location:g,error:v}),g!=null&&g.source.absoluteRef&&o.refTypes&&o.refTypes.set(g==null?void 0:g.source.absoluteRef,u)}}if(b!==void 0&&g&&u.name!=="scalar"){y=g;let q=(P=(O=s[u.name])==null?void 0:O.has)==null?void 0:P.call(O,b),V=!1,ne=n.any.enter.concat(((E=n[u.name])==null?void 0:E.enter)||[]),fe=[];for(let{context:Y,visit:le,skip:F,ruleId:ue,severity:M,message:de}of ne){if(a.has(`${y.absolutePointer}${y.pointer}`))break;if(Y.isSkippedLevel)Y.parent.activatedOn&&!Y.parent.activatedOn.value.nextLevelTypeActivated&&!Y.seen.has(l)&&(Y.seen.add(l),V=!0,fe.push(Y));else if(Y.parent&&Y.parent.activatedOn&&((R=Y.activatedOn)==null?void 0:R.value.withParentNode)!==Y.parent.activatedOn.value.node&&((A=Y.parent.activatedOn.value.nextLevelTypeActivated)==null?void 0:A.value)!==u||!Y.parent&&!q){fe.push(Y);let je={node:b,location:g,nextLevelTypeActivated:null,withParentNode:(C=(I=Y.parent)==null?void 0:I.activatedOn)==null?void 0:C.value.node,skipped:(D=((L=($=Y.parent)==null?void 0:$.activatedOn)==null?void 0:L.value.skipped)||(F==null?void 0:F(b,d,{location:p,rawLocation:h,resolve:f,rawNode:l})))!=null?D:!1};Y.activatedOn=pb(Y.activatedOn,je);let We=Y.parent;for(;We;)We.activatedOn.value.nextLevelTypeActivated=pb(We.activatedOn.value.nextLevelTypeActivated,u),We=We.parent;je.skipped||(V=!0,_.add(Y),w(le,b,l,Y,ue,M,de))}}if(V||!q){if(s[u.name]=s[u.name]||new Set,s[u.name].add(b),Array.isArray(b)){let Y=u.items;if(Y!==void 0){let le=typeof Y=="function";for(let F=0;F<b.length;F++){let ue=le?Y(b[F],g.child([F]).absolutePointer):Y,M=b[F];ue!=null&&ue.directResolveAs&&(ue=ue.directResolveAs,M={$ref:M}),Wr(ue)&&c(M,ue,g.child([F]),b,F)}}}else if(typeof b=="object"&&b!==null){let Y=Object.keys(u.properties);u.additionalProperties?Y.push(...Object.keys(b).filter(le=>!Y.includes(le))):u.extensionsPrefix&&Y.push(...Object.keys(b).filter(le=>le.startsWith(u.extensionsPrefix))),we(l)&&Y.push(...Object.keys(l).filter(le=>le!=="$ref"&&!Y.includes(le)));for(let le of Y){let F=b[le],ue=g;F===void 0&&(F=l[le],ue=p);let M=zr(u.properties,le);if(M===void 0&&(M=u.additionalProperties),typeof M=="function"&&(M=M(F,le)),M===void 0&&u.extensionsPrefix&&le.startsWith(u.extensionsPrefix)&&(M=kr),!Wr(M)&&(M!=null&&M.directResolveAs)&&(M=M.directResolveAs,F={$ref:F}),M&&M.name===void 0&&M.resolvable!==!1&&(M={name:"scalar",properties:{}}),we(l[le])&&(M==null?void 0:M.name)==="scalar"){c(l[le],M,p.child([le]),l,le);continue}!Wr(M)||M.name==="scalar"&&!we(F)||c(F,M,ue.child([le]),b,le)}}}let Ae=n.any.leave,H=(((k=n[u.name])==null?void 0:k.leave)||[]).concat(Ae);for(let Y of fe.reverse())if(Y.isSkippedLevel)Y.seen.delete(b);else if(Y.activatedOn=fb(Y.activatedOn),Y.parent){let le=Y.parent;for(;le;)le.activatedOn.value.nextLevelTypeActivated=fb(le.activatedOn.value.nextLevelTypeActivated),le=le.parent}for(let{context:Y,visit:le,ruleId:F,severity:ue,message:M}of H)!Y.isSkippedLevel&&_.has(Y)&&w(le,b,l,Y,F,ue,M)}if(y=p,we(l)){let q=n.ref.leave;for(let{visit:V,ruleId:z,severity:ne,context:fe,message:Ae}of q)if(_.has(fe)){let H=N.bind(void 0,z,ne,Ae);V(l,{report:H,resolve:f,rawNode:l,rawLocation:h,location:p,type:u,parent:m,key:d,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:S.bind(void 0,z)},{node:b,location:g,error:v})}}function w(q,V,z,ne,fe,Ae,H){let Y=N.bind(void 0,fe,Ae,H);q(V,{report:Y,resolve:f,rawNode:z,location:y,rawLocation:h,type:u,parent:m,key:d,parentLocations:PW(ne),specVersion:o.specVersion,config:o.config,ignoreNextVisitorsOnNode:()=>{a.add(`${y.absolutePointer}${y.pointer}`)},getVisitorData:S.bind(void 0,fe)},$W(ne),ne)}function N(q,V,z,ne){let Ae=(ne.location?Array.isArray(ne.location)?ne.location:[ne.location]:[{...y,reportOnKey:!1}]).map(Y=>({...y,reportOnKey:!1,...Y})),H=ne.forceSeverity||V;H!=="off"&&o.problems.push({ruleId:ne.ruleId||q,severity:H,...ne,message:z?z.replace("{{message}}",ne.message):ne.message,suggest:ne.suggest||[],location:Ae})}function S(q){return o.visitorsData[q]=o.visitorsData[q]||{},o.visitorsData[q]}}}var EW={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function Si(e,t){let r={};r.any={enter:[],leave:[]};for(let s of Object.keys(t))r[s]={enter:[],leave:[]};r.ref={enter:[],leave:[]};for(let{ruleId:s,severity:a,message:c,visitor:l}of e)o({ruleId:s,severity:a,message:c},l,null);for(let s of Object.keys(r))r[s].enter.sort((a,c)=>c.depth-a.depth),r[s].leave.sort((a,c)=>a.depth-c.depth);return r;function n(s,a,c,l,u=[]){if(u.includes(a))return;u=[...u,a];let p=new Set;for(let d of Object.values(a.properties)){if(d===c){m(s,u);continue}typeof d=="object"&&d!==null&&d.name&&p.add(d)}a.additionalProperties&&typeof a.additionalProperties!="function"&&(a.additionalProperties===c?m(s,u):a.additionalProperties.name!==void 0&&p.add(a.additionalProperties)),a.items&&typeof a.items!="function"&&(a.items===c?m(s,u):a.items.name!==void 0&&p.add(a.items)),a.extensionsPrefix&&p.add(kr);for(let d of Array.from(p.values()))n(s,d,c,l,u);function m(d,f){for(let h of f.slice(1))r[h.name]=r[h.name]||{enter:[],leave:[]},r[h.name].enter.push({...d,visit:()=>{},depth:0,context:{isSkippedLevel:!0,seen:new Set,parent:l}})}}function i(s,a){if(Array.isArray(a)){let c=a.find(l=>s[l])||void 0;return c&&s[c]}return s[a]}function o(s,a,c,l=0){let u=Object.keys(t);if(l===0)u.push("any"),u.push("ref");else{if(a.any)throw new Error("any() is allowed only on top level");if(a.ref)throw new Error("ref() is allowed only on top level")}for(let p of u){let m=a[p]||i(a,EW[p]),d=r[p];if(!m)continue;let f,h,y,b=W(m);if(p==="ref"&&b&&m.skip)throw new Error("ref() visitor does not support skip");typeof m=="function"?f=m:b&&(f=m.enter,h=m.leave,y=m.skip);let g=(f?1:0)+(h?1:0)+(y?1:0),v=b&&Object.keys(m).length>g,_={activatedOn:null,type:t[p],parent:c,isSkippedLevel:!1};if(v&&o(s,m,_,l+1),c&&n(s,c.type,t[p],c),f||b){if(f&&typeof f!="function")throw new Error("DEV: should be function");d.enter.push({...s,visit:f||(()=>{}),skip:y,depth:l,context:_})}if(h){if(typeof h!="function")throw new Error("DEV: should be function");d.leave.push({...s,visit:h,depth:l,context:_})}}}}var AR=Ee(require("path"),1);function db({node:e,ctx:t,plugins:r}){if(!e.extends)return e;let n=(e.extends||[]).map(i=>{if(!Je(i)&&!AR.default.extname(i))return CR(i,r);let o=t.resolve({$ref:i});return o.location&&o.node!==void 0?o.node:null}).filter(ct);return hf([...n.map(i=>db({node:i,ctx:t,plugins:r})),{...e,extends:void 0}])}function yf(e,t){if(W(e)&&Array.isArray(e.plugins)){let{plugins:r,rootConfigDir:n}=t.getVisitorData();r.push(...e.plugins.map(i=>mb(i,t.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}var RR=Si([{severity:"error",ruleId:Du,visitor:{ref:{},ConfigGovernance:{leave(e,t){yf(e,t)}},ConfigApisProperties:{leave(e,t){yf(e,t)}},"rootRedoclyConfigSchema.scorecard.levels_items":{leave(e,t){yf(e,t)}},ConfigRoot:{leave(e,t){yf(e,t)}}}}],ei);function gf(e,t){if(W(e)&&e.extends){let{plugins:r}=t.getVisitorData(),n=db({node:e,ctx:t,plugins:r});Object.assign(e,n),delete e.extends}}var TR=Si([{severity:"error",ruleId:Lu,visitor:{ref:{leave(e,t,r){ga(e,r,t)}},ConfigGovernance:{leave(e,t){gf(e,t)}},ConfigApisProperties:{leave(e,t){gf(e,t)}},"rootRedoclyConfigSchema.scorecard.levels_items":{leave(e,t){gf(e,t)}},ConfigRoot:{leave(e,t){gf(e,t)}}}}],ei);function hb(e,t){switch(t){case"oas3":switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";case"Response":return"responses";case"Example":return"examples";case"RequestBody":return"requestBodies";case"Header":return"headers";case"SecuritySchema":return"securitySchemes";case"Link":return"links";case"Callback":return"callbacks";default:return null}case"oas2":switch(e){case"Schema":return"definitions";case"Parameter":return"parameters";case"Response":return"responses";default:return null}case"async2":switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"async3":switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"arazzo1":switch(e){case"Root.workflows_items.parameters_items":case"Root.workflows_items.steps_items.parameters_items":return"parameters";default:return null}case"overlay1":return null}}function NR(e,t,r,n,i){let o,s,a={ref:{leave(m,d,f){if(!f.location||f.node===void 0){js(f,d.report,d.location);return}if(f.location.source===r.source&&f.location.source===d.location.source&&d.type.name!=="scalar"&&!t){m.$ref!==f.location.pointer&&(m.$ref=f.location.pointer);return}if(i&&Je(m.$ref))return;let h=hb(d.type.name,e);h?t?(l(h,f,d),ga(m,f,d)):(m.$ref=l(h,f,d),c(m,f,d)):ga(m,f,d)}},Example:{leave(m,d){if(_l(m)&&m.value===void 0){let f=d.resolve({$ref:m.externalValue});if(!f.location||f.node===void 0){js(f,d.report,d.location);return}if(i&&Je(m.externalValue))return;m.value=d.resolve({$ref:m.externalValue}).node,delete m.externalValue}}},Root:{enter(m,d){s=d.location,e==="oas3"?o=m.components=m.components||{}:e==="oas2"?o=m:e==="async2"?o=m.components=m.components||{}:e==="async3"?o=m.components=m.components||{}:e==="arazzo1"&&(o=m.components=m.components||{})}}};e==="oas3"&&(a.DiscriminatorMapping={leave(m,d){for(let f of Object.keys(m)){let h=m[f],y=d.resolve({$ref:h});if(!y.location||y.node===void 0){js(y,d.report,d.location.child(f));return}let b=hb("Schema",e);m[f]=l(b,y,d)}}});function c(m,d,f){let h=vi(f.location.source.absoluteRef,m.$ref);n.set(h,{document:r,isRemote:!1,node:d.node,nodePointer:m.$ref,resolved:!0})}function l(m,d,f){o[m]=o[m]||{};let h=p(d,m,f);return o[m][h]=d.node,e==="oas3"||e==="async2"||e==="async3"?`#/components/${m}/${h}`:`#/${m}/${h}`}function u(m,d,f){var h;return we(m)&&((h=f.resolve(m,s.absolutePointer).location)==null?void 0:h.absolutePointer)===d.location.absolutePointer?!0:da(m,d.node)}function p(m,d,f){let[h,y]=[m.location.source.absoluteRef,m.location.pointer],b=o[d],g="",v=y.slice(2).split("/").filter(ct);for(;v.length>0;)if(g=v.pop()+(g?`-${g}`:""),!b||!b[g]||u(b[g],m,f))return g;if(g=yx(h)+(g?`_${g}`:""),!b[g]||u(b[g],m,f))return g;let _=g,w=2;for(;b[g]&&!u(b[g],m,f);)g=`${_}-${w}`,w++;return b[g]||f.report({message:`Two schemas are referenced with the same name but different content. Renamed ${_} to ${g}.`,location:f.location,forceSeverity:"warn"}),g}return a}async function yb(e){let{document:t,config:r,types:n,externalRefResolver:i,dereference:o=!1,removeUnusedComponents:s=!1,keepUrlRefs:a=!1}=e,c=ni(t.parsed),l=ju(c),u=r.getRulesForSpecVersion(l),p=Lo(r.extendTypes(n,c),r),m=Bu(u,r,"preprocessors",c),d=Bu(u,r,"decorators",c),f={problems:[],specVersion:c,config:r,refTypes:new Map,visitorsData:{}};s&&!d.some(b=>b.ruleId==="remove-unused-components")&&d.push({severity:"error",ruleId:"remove-unused-components",visitor:l==="oas2"?pf({}):uf({})});let h=await ho({rootDocument:t,rootType:p.Root,externalRefResolver:i});m.length>0&&(wi({document:t,rootType:p.Root,normalizedVisitors:Si(m,p),resolvedRefMap:h,ctx:f}),h=await ho({rootDocument:t,rootType:p.Root,externalRefResolver:i}));let y=Si([{severity:"error",ruleId:"bundler",visitor:NR(l,o,t,h,a)},...d],p);return wi({document:t,rootType:p.Root,normalizedVisitors:y,resolvedRefMap:h,ctx:f}),{bundle:t,problems:f.problems.map(b=>r.addProblemToIgnore(b)),fileDependencies:i.getFiles(),rootType:p.Root,refTypes:f.refTypes,visitorsData:f.visitorsData}}function IR(e,t,r){let n={plugins:[],rootConfigDir:r},i={problems:[],specVersion:"oas3_0",refTypes:new Map,visitorsData:{[Du]:n}};return wi({document:e,rootType:ei.ConfigRoot,normalizedVisitors:RR,resolvedRefMap:t,ctx:i}),n.plugins}function kR(e,t,r){var o;let n={plugins:r},i={problems:[],specVersion:"oas3_0",refTypes:new Map,visitorsData:{[Lu]:n}};return wi({document:e,rootType:ei.ConfigRoot,normalizedVisitors:TR,resolvedRefMap:t,ctx:i}),(o=e.parsed)!=null?o:{}}async function gb(e){var s;let{ref:t,doc:r,externalRefResolver:n=new kn(e.config.resolve),base:i=null}=e;if(!(t||r))throw new Error(`Document or reference is required.
254
254
  `);let o=r===void 0?await n.resolveDocument(i,t,!0):r;if(o instanceof Error)throw o;return(s=e.collectSpecData)==null||s.call(e,o.parsed),yb({document:o,...e,externalRefResolver:n,types:Hi(ni(o.parsed))})}var vb={};var bb=new Map;async function MR({rawConfigDocument:e,configPath:t,externalRefResolver:r,customExtends:n}){var m;let i=e===void 0?G$:e.parsed;if(n!==void 0&&W(i)&&(i.extends=n),W(i)&&((m=i==null?void 0:i.extends)!=null&&m.some(SR)))throw new Error("Configuration format not detected in extends: values must be strings.");let o=e!=null?e:{source:new xi(t!=null?t:"",JSON.stringify(i)),parsed:i},s=await ho({rootDocument:o,rootType:ei.ConfigRoot,externalRefResolver:r!=null?r:new kn(Mu(i==null?void 0:i.resolve))}),a=[],c,l="";bt?c=[...((i==null?void 0:i.plugins)||[]).filter(f=>!at(f)),lb]:(l=fr.dirname(t!=null?t:""),a=IR(o,s,l),c=[...await LR(a.map(f=>qR(f)?f.absolutePath:f),l),lb]);let u=kR(o,PR(s),c);u.apis&&(u.apis=Object.fromEntries(Object.entries(u.apis).map(([d,f])=>{let h=hf([u,f]);return[d,{...f,...h}]})));let p=a.length?a.map(d=>qR(d)&&d.isModule?d.rawPath:d.absolutePath&&fr.relative(l,d.absolutePath)).filter(ds):void 0;return{resolvedConfig:{...u,plugins:p},resolvedRefMap:s,plugins:c}}function AW(e){for(let t of W$){let r=fr.resolve(e,t);if(xb.existsSync(r))return t}}function qR(e){return"isModule"in e}var mb=(e,t,r)=>{var i;if(!at(e))return e;let n=fr.resolve(fr.dirname(t),e);return xb.existsSync(n)?{absolutePath:n,rawPath:e,isModule:!1}:{absolutePath:jR.default.createRequire((i=vb.url)!=null?i:__dirname).resolve(e,{paths:[r,vb.url?fr.dirname(bf.fileURLToPath(vb.url)):__dirname]}),isModule:!0,rawPath:e}};async function LR(e,t){if(!e)return[];let r=async a=>{var c;if(!at(a))return a;try{let l=fr.isAbsolute(a)?a:mb(a,fr.join(t,ag),t).absolutePath;if(!bb.has(l)){let u;if(typeof __webpack_require__=="function")u=__non_webpack_require__(l);else{let h=await Promise.resolve().then(()=>Ee(require(bf.pathToFileURL(l).pathname)));u=h.default||h}let p={contentDir:t},m=Array.isArray(u)?u:[u];for(let h of m)h!=null&&h.id&&ub(h)&&ks.info(`Deprecated plugin format detected: ${h.id}
255
255
  `);let d=ub(u)?u:ER(u)?await u(p):await((c=u==null?void 0:u.default)==null?void 0:c.call(u,p)),f=Array.isArray(d)?d:[d];d&&bb.set(l,f.map(h=>({...h,path:a,absolutePath:l})))}return bb.get(l)}catch(l){throw new Error(`Failed to load plugin "${a}": ${l.message}
256
256