@redocly/cli 2.45.0 → 2.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +7 -1
- package/lib/chunks/{CE3X3N6H.js → 64WL7A3H.js} +1 -1
- package/lib/chunks/{LCGBAHMY.js → 6HJS3QTE.js} +1 -1
- package/lib/chunks/{VEPC4UGS.js → 7DHIX3GL.js} +1 -1
- package/lib/chunks/{IMOI6ZFO.js → 7KOLBOQ5.js} +1 -1
- package/lib/chunks/{UF5QX6NH.js → 7XBUQR4I.js} +1 -1
- package/lib/chunks/CN6PFMVJ.js +184 -0
- package/lib/chunks/{SMUTDBNU.js → DDAWWAU3.js} +1 -1
- package/lib/chunks/{Q4NHYVCT.js → ES5AJGDA.js} +1 -1
- package/lib/chunks/{NM5PRB4J.js → GCKQFE6S.js} +1 -1
- package/lib/chunks/{3OW7APQC.js → KOGLVETP.js} +1 -1
- package/lib/chunks/{FDWT2URT.js → LLREHKJO.js} +1 -1
- package/lib/chunks/{2JWKPO7P.js → LM4ILYQB.js} +1 -1
- package/lib/chunks/{PBK7R6TK.js → QGADGBO2.js} +1 -1
- package/lib/chunks/{ZXRXP4OZ.js → S4YMP7WS.js} +1 -1
- package/lib/chunks/{K4SYTLYO.js → SSAJRVQ6.js} +1 -1
- package/lib/chunks/{C2ERK3Q6.js → UJCMWVNQ.js} +1 -1
- package/lib/chunks/{I5W5NEDL.js → WWAK47VB.js} +1 -1
- package/lib/chunks/{ZN6C27UV.js → YTQSX67P.js} +1 -1
- package/lib/chunks/{NXNAT6LY.js → ZTRG5LPG.js} +1 -1
- package/lib/index.js +7 -7
- package/package.json +1 -1
- package/lib/chunks/SSUYHPMB.js +0 -184
package/lib/chunks/SSUYHPMB.js
DELETED
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __pathDirname } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
var __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = __pathDirname(__filename);
|
|
7
|
-
import{a as Ut,b as Bo,c as uR}from"./NEWT5A6S.js";import{a as tu,c as v,d as lR,e as Rr}from"./RFWIIJFG.js";var Xu=v((Qu,Ju)=>{(function(e,t){typeof tu=="function"&&typeof Qu=="object"&&typeof Ju=="object"?Ju.exports=t():typeof define=="function"&&define.amd?define(function(){return t()}):e.pluralize=t()})(Qu,function(){var e=[],t=[],r={},n={},o={};function i(f){return typeof f=="string"?new RegExp("^"+f+"$","i"):f}function s(f,m){return f===m?m:f===f.toLowerCase()?m.toLowerCase():f===f.toUpperCase()?m.toUpperCase():f[0]===f[0].toUpperCase()?m.charAt(0).toUpperCase()+m.substr(1).toLowerCase():m.toLowerCase()}function a(f,m){return f.replace(/\$(\d{1,2})/g,function(h,y){return m[y]||""})}function c(f,m){return f.replace(m[0],function(h,y){var g=a(m[1],arguments);return s(h===""?f[y-1]:h,g)})}function p(f,m,h){if(!f.length||r.hasOwnProperty(f))return m;for(var y=h.length;y--;){var g=h[y];if(g[0].test(m))return c(m,g)}return m}function l(f,m,h){return function(y){var g=y.toLowerCase();return m.hasOwnProperty(g)?s(y,g):f.hasOwnProperty(g)?s(y,f[g]):p(g,y,h)}}function u(f,m,h,y){return function(g){var P=g.toLowerCase();return m.hasOwnProperty(P)?!0:f.hasOwnProperty(P)?!1:p(P,P,h)===P}}function d(f,m,h){var y=m===1?d.singular(f):d.plural(f);return(h?m+" ":"")+y}return d.plural=l(o,n,e),d.isPlural=u(o,n,e),d.singular=l(n,o,t),d.isSingular=u(n,o,t),d.addPluralRule=function(f,m){e.push([i(f),m])},d.addSingularRule=function(f,m){t.push([i(f),m])},d.addUncountableRule=function(f){if(typeof f=="string"){r[f.toLowerCase()]=!0;return}d.addPluralRule(f,"$0"),d.addSingularRule(f,"$0")},d.addIrregularRule=function(f,m){m=m.toLowerCase(),f=f.toLowerCase(),o[f]=m,n[m]=f},[["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(f){return d.addIrregularRule(f[0],f[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(f){return d.addPluralRule(f[0],f[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(f){return d.addSingularRule(f[0],f[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(d.addUncountableRule),d})});var $s=v((u8,Db)=>{"use strict";var qb="[^\\\\/]",Nk="(?=.)",Nb="[^/]",Zu="(?:\\/|$)",Mb="(?:^|\\/)",ed=`\\.{1,2}${Zu}`,Mk="(?!\\.)",jk=`(?!${Mb}${ed})`,Dk=`(?!\\.{0,1}${Zu})`,Lk=`(?!${ed})`,Uk="[^.\\/]",zk=`${Nb}*?`,Fk="/",jb={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:Nk,QMARK:Nb,END_ANCHOR:Zu,DOTS_SLASH:ed,NO_DOT:Mk,NO_DOTS:jk,NO_DOT_SLASH:Dk,NO_DOTS_SLASH:Lk,QMARK_NO_DOT:Uk,STAR:zk,START_ANCHOR:Mb,SEP:Fk},Vk={...jb,SLASH_LITERAL:"[\\\\/]",QMARK:qb,STAR:`${qb}*?`,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:"\\"},Bk={__proto__:null,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"};Db.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Bk,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?Vk:jb}}});var As=v(Tt=>{"use strict";var{REGEX_BACKSLASH:Hk,REGEX_REMOVE_BACKSLASH:Kk,REGEX_SPECIAL_CHARS:Gk,REGEX_SPECIAL_CHARS_GLOBAL:Wk}=$s();Tt.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);Tt.hasRegexChars=e=>Gk.test(e);Tt.isRegexChar=e=>e.length===1&&Tt.hasRegexChars(e);Tt.escapeRegex=e=>e.replace(Wk,"\\$1");Tt.toPosixSlashes=e=>e.replace(Hk,"/");Tt.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};Tt.removeBackslashes=e=>e.replace(Kk,t=>t==="\\"?"":t);Tt.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?Tt.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};Tt.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};Tt.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",o=r.contains?"":"$",i=`${n}(?:${e})${o}`;return t.negated===!0&&(i=`(?:^(?!${i}).*$)`),i};Tt.basename=(e,{windows:t}={})=>{let r=e.split(t?/[\\/]/:"/"),n=r[r.length-1];return n===""?r[r.length-2]:n}});var Kb=v((f8,Hb)=>{"use strict";var Lb=As(),{CHAR_ASTERISK:td,CHAR_AT:Yk,CHAR_BACKWARD_SLASH:Ts,CHAR_COMMA:Qk,CHAR_DOT:rd,CHAR_EXCLAMATION_MARK:nd,CHAR_FORWARD_SLASH:Bb,CHAR_LEFT_CURLY_BRACE:od,CHAR_LEFT_PARENTHESES:id,CHAR_LEFT_SQUARE_BRACKET:Jk,CHAR_PLUS:Xk,CHAR_QUESTION_MARK:Ub,CHAR_RIGHT_CURLY_BRACE:Zk,CHAR_RIGHT_PARENTHESES:zb,CHAR_RIGHT_SQUARE_BRACKET:eI}=$s(),Fb=e=>e===Bb||e===Ts,Vb=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},tI=(e,t)=>{let r=t||{},n=e.length-1,o=r.parts===!0||r.scanToEnd===!0,i=[],s=[],a=[],c=e,p=-1,l=0,u=0,d=!1,f=!1,m=!1,h=!1,y=!1,g=!1,P=!1,b=!1,x=!1,S=!1,w=0,T,_,$={value:"",depth:0,isGlob:!1},E=()=>p>=n,G=()=>c.charCodeAt(p+1),F=()=>(T=_,c.charCodeAt(++p));for(;p<n;){_=F();let V;if(_===Ts){P=$.backslashes=!0,_=F(),_===od&&(g=!0);continue}if(g===!0||_===od){for(w++;E()!==!0&&(_=F());){if(_===Ts){P=$.backslashes=!0,F();continue}if(_===od){w++;continue}if(g!==!0&&_===rd&&(_=F())===rd){if(d=$.isBrace=!0,m=$.isGlob=!0,S=!0,o===!0)continue;break}if(g!==!0&&_===Qk){if(d=$.isBrace=!0,m=$.isGlob=!0,S=!0,o===!0)continue;break}if(_===Zk&&(w--,w===0)){g=!1,d=$.isBrace=!0,S=!0;break}}if(o===!0)continue;break}if(_===Bb){if(i.push(p),s.push($),$={value:"",depth:0,isGlob:!1},S===!0)continue;if(T===rd&&p===l+1){l+=2;continue}u=p+1;continue}if(r.noext!==!0&&(_===Xk||_===Yk||_===td||_===Ub||_===nd)===!0&&G()===id){if(m=$.isGlob=!0,h=$.isExtglob=!0,S=!0,_===nd&&p===l&&(x=!0),o===!0){for(;E()!==!0&&(_=F());){if(_===Ts){P=$.backslashes=!0,_=F();continue}if(_===zb){m=$.isGlob=!0,S=!0;break}}continue}break}if(_===td){if(T===td&&(y=$.isGlobstar=!0),m=$.isGlob=!0,S=!0,o===!0)continue;break}if(_===Ub){if(m=$.isGlob=!0,S=!0,o===!0)continue;break}if(_===Jk){for(;E()!==!0&&(V=F());){if(V===Ts){P=$.backslashes=!0,F();continue}if(V===eI){f=$.isBracket=!0,m=$.isGlob=!0,S=!0;break}}if(o===!0)continue;break}if(r.nonegate!==!0&&_===nd&&p===l){b=$.negated=!0,l++;continue}if(r.noparen!==!0&&_===id){if(m=$.isGlob=!0,o===!0){for(;E()!==!0&&(_=F());){if(_===id){P=$.backslashes=!0,_=F();continue}if(_===zb){S=!0;break}}continue}break}if(m===!0){if(S=!0,o===!0)continue;break}}r.noext===!0&&(h=!1,m=!1);let ae=c,A="",R="";l>0&&(A=c.slice(0,l),c=c.slice(l),u-=l),ae&&m===!0&&u>0?(ae=c.slice(0,u),R=c.slice(u)):m===!0?(ae="",R=c):ae=c,ae&&ae!==""&&ae!=="/"&&ae!==c&&Fb(ae.charCodeAt(ae.length-1))&&(ae=ae.slice(0,-1)),r.unescape===!0&&(R&&(R=Lb.removeBackslashes(R)),ae&&P===!0&&(ae=Lb.removeBackslashes(ae)));let pt={prefix:A,input:e,start:l,base:ae,glob:R,isBrace:d,isBracket:f,isGlob:m,isExtglob:h,isGlobstar:y,negated:b,negatedExtglob:x};if(r.tokens===!0&&(pt.maxDepth=0,Fb(_)||s.push($),pt.tokens=s),r.parts===!0||r.tokens===!0){let V;for(let ce=0;ce<i.length;ce++){let Re=V?V+1:l,pe=i[ce],De=e.slice(Re,pe);r.tokens&&(ce===0&&l!==0?(s[ce].isPrefix=!0,s[ce].value=A):s[ce].value=De,Vb(s[ce]),pt.maxDepth+=s[ce].depth),(ce!==0||De!=="")&&a.push(De),V=pe}if(V&&V+1<e.length){let ce=e.slice(V+1);a.push(ce),r.tokens&&(s[s.length-1].value=ce,Vb(s[s.length-1]),pt.maxDepth+=s[s.length-1].depth)}pt.slashes=i,pt.parts=a}return pt};Hb.exports=tI});var Jb=v((m8,Qb)=>{"use strict";var Rs=$s(),Vt=As(),{MAX_LENGTH:lc,POSIX_REGEX_SOURCE:rI,REGEX_NON_SPECIAL_CHARS:nI,REGEX_SPECIAL_CHARS_BACKREF:oI,REPLACEMENTS:Gb}=Rs,iI=(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(o=>Vt.escapeRegex(o)).join("..")}return r},ti=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Wb=e=>{let t=[],r=0,n=0,o=0,i="",s=!1;for(let a of e){if(s===!0){i+=a,s=!1;continue}if(a==="\\"){i+=a,s=!0;continue}if(a==='"'){o=o===1?0:1,i+=a;continue}if(o===0){if(a==="[")r++;else if(a==="]"&&r>0)r--;else if(r===0){if(a==="(")n++;else if(a===")"&&n>0)n--;else if(a==="|"&&n===0){t.push(i),i="";continue}}}i+=a}return t.push(i),t},sI=e=>{let t=!1;for(let r of e){if(t===!0){t=!1;continue}if(r==="\\"){t=!0;continue}if(/[?*+@!()[\]{}]/.test(r))return!1}return!0},Yb=e=>{let t=e.trim(),r=!0;for(;r===!0;)r=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),r=!0);if(sI(t))return t.replace(/\\(.)/g,"$1")},aI=e=>{let t=e.map(Yb).filter(Boolean);for(let r=0;r<t.length;r++)for(let n=r+1;n<t.length;n++){let o=t[r],i=t[n],s=o[0];if(!(!s||o!==s.repeat(o.length)||i!==s.repeat(i.length))&&(o===i||o.startsWith(i)||i.startsWith(o)))return!0}return!1},sd=(e,t=!0)=>{if(e[0]!=="+"&&e[0]!=="*"||e[1]!=="(")return;let r=0,n=0,o=0,i=!1;for(let s=1;s<e.length;s++){let a=e[s];if(i===!0){i=!1;continue}if(a==="\\"){i=!0;continue}if(a==='"'){o=o===1?0:1;continue}if(o!==1){if(a==="["){r++;continue}if(a==="]"&&r>0){r--;continue}if(!(r>0)){if(a==="("){n++;continue}if(a===")"&&(n--,n===0))return t===!0&&s!==e.length-1?void 0:{type:e[0],body:e.slice(2,s),end:s}}}}},cI=e=>{let t=0,r=[];for(;t<e.length;){let o=sd(e.slice(t),!1);if(!o||o.type!=="*")return;let i=Wb(o.body).map(a=>a.trim());if(i.length!==1)return;let s=Yb(i[0]);if(!s||s.length!==1)return;r.push(s),t+=o.end+1}return r.length<1?void 0:`${r.length===1?Vt.escapeRegex(r[0]):`[${r.map(o=>Vt.escapeRegex(o)).join("")}]`}*`},pI=e=>{let t=0,r=e.trim(),n=sd(r);for(;n;)t++,r=n.body.trim(),n=sd(r);return t},lI=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let r=typeof t.maxExtglobRecursion=="number"?t.maxExtglobRecursion:Rs.DEFAULT_MAX_EXTGLOB_RECURSION,n=Wb(e).map(o=>o.trim());if(n.length>1&&(n.some(o=>o==="")||n.some(o=>/^[*?]+$/.test(o))||aI(n)))return{risky:!0};for(let o of n){let i=cI(o);if(i)return{risky:!0,safeOutput:i};if(pI(o)>r)return{risky:!0}}return{risky:!1}},ad=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Gb[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(lc,r.maxLength):lc,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);let i={type:"bos",value:"",output:r.prepend||""},s=[i],a=r.capture?"":"?:",c=Rs.globChars(r.windows),p=Rs.extglobChars(c),{DOT_LITERAL:l,PLUS_LITERAL:u,SLASH_LITERAL:d,ONE_CHAR:f,DOTS_SLASH:m,NO_DOT:h,NO_DOT_SLASH:y,NO_DOTS_SLASH:g,QMARK:P,QMARK_NO_DOT:b,STAR:x,START_ANCHOR:S}=c,w=k=>`(${a}(?:(?!${S}${k.dot?m:l}).)*?)`,T=r.dot?"":h,_=r.dot?P:b,$=r.bash===!0?w(r):x;r.capture&&($=`(${$})`),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=Vt.removePrefix(e,E),o=e.length;let G=[],F=[],ae=[],A=i,R,pt=()=>E.index===o-1,V=E.peek=(k=1)=>e[E.index+k],ce=E.advance=()=>e[++E.index]||"",Re=()=>e.slice(E.index+1),pe=(k="",xe=0)=>{E.consumed+=k,E.index+=xe},De=k=>{E.output+=k.output!=null?k.output:k.value,pe(k.value)},Lt=()=>{let k=1;for(;V()==="!"&&(V(2)!=="("||V(3)==="?");)ce(),E.start++,k++;return k%2===0?!1:(E.negated=!0,E.start++,!0)},gt=k=>{E[k]++,ae.push(k)},C=k=>{E[k]--,ae.pop()},M=k=>{if(A.type==="globstar"){let xe=E.braces>0&&(k.type==="comma"||k.type==="brace"),I=k.extglob===!0||G.length&&(k.type==="pipe"||k.type==="paren");k.type!=="slash"&&k.type!=="paren"&&!xe&&!I&&(E.output=E.output.slice(0,-A.output.length),A.type="star",A.value="*",A.output=$,E.output+=A.output)}if(G.length&&k.type!=="paren"&&(G[G.length-1].inner+=k.value),(k.value||k.output)&&De(k),A&&A.type==="text"&&k.type==="text"){A.output=(A.output||A.value)+k.value,A.value+=k.value;return}k.prev=A,s.push(k),A=k},Le=(k,xe)=>{let I={...p[xe],conditions:1,inner:""};I.prev=A,I.parens=E.parens,I.output=E.output,I.startIndex=E.index,I.tokensIndex=s.length;let W=(r.capture?"(":"")+I.open;gt("parens"),M({type:k,value:xe,output:E.output?"":f}),M({type:"paren",extglob:!0,value:ce(),output:W}),G.push(I)},cr=k=>{let xe=e.slice(k.startIndex,E.index+1),I=e.slice(k.startIndex+2,E.index),W=lI(I,r);if((k.type==="plus"||k.type==="star")&&W.risky){let Oe=W.safeOutput?(k.output?"":f)+(r.capture?`(${W.safeOutput})`:W.safeOutput):void 0,Ar=s[k.tokensIndex];Ar.type="text",Ar.value=xe,Ar.output=Oe||Vt.escapeRegex(xe);for(let Tr=k.tokensIndex+1;Tr<s.length;Tr++)s[Tr].value="",s[Tr].output="",delete s[Tr].suffix;E.output=k.output+Ar.output,E.backtrack=!0,M({type:"paren",extglob:!0,value:R,output:""}),C("parens");return}let ke=k.close+(r.capture?")":""),Ke;if(k.type==="negate"){let Oe=$;if(k.inner&&k.inner.length>1&&k.inner.includes("/")&&(Oe=w(r)),(Oe!==$||pt()||/^\)+$/.test(Re()))&&(ke=k.close=`)$))${Oe}`),k.inner.includes("*")&&(Ke=Re())&&/^\.[^\\/.]+$/.test(Ke)){let Ar=ad(Ke,{...t,fastpaths:!1}).output;ke=k.close=`)${Ar})${Oe})`}k.prev.type==="bos"&&(E.negatedExtglob=!0)}M({type:"paren",extglob:!0,value:R,output:ke}),C("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let k=!1,xe=e.replace(oI,(I,W,ke,Ke,Oe,Ar)=>Ke==="\\"?(k=!0,I):Ke==="?"?W?W+Ke+(Oe?P.repeat(Oe.length):""):Ar===0?_+(Oe?P.repeat(Oe.length):""):P.repeat(ke.length):Ke==="."?l.repeat(ke.length):Ke==="*"?W?W+Ke+(Oe?$:""):$:W?I:`\\${I}`);return k===!0&&(r.unescape===!0?xe=xe.replace(/\\/g,""):xe=xe.replace(/\\+/g,I=>I.length%2===0?"\\\\":I?"\\":"")),xe===e&&r.contains===!0?(E.output=e,E):(E.output=Vt.wrapOutput(xe,E,t),E)}for(;!pt();){if(R=ce(),R==="\0")continue;if(R==="\\"){let I=V();if(I==="/"&&r.bash!==!0||I==="."||I===";")continue;if(!I){R+="\\",M({type:"text",value:R});continue}let W=/^\\+/.exec(Re()),ke=0;if(W&&W[0].length>2&&(ke=W[0].length,E.index+=ke,ke%2!==0&&(R+="\\")),r.unescape===!0?R=ce():R+=ce(),E.brackets===0){M({type:"text",value:R});continue}}if(E.brackets>0&&(R!=="]"||A.value==="["||A.value==="[^")){if(r.posix!==!1&&R===":"){let I=A.value.slice(1);if(I.includes("[")&&(A.posix=!0,I.includes(":"))){let W=A.value.lastIndexOf("["),ke=A.value.slice(0,W),Ke=A.value.slice(W+2),Oe=rI[Ke];if(Oe){A.value=ke+Oe,E.backtrack=!0,ce(),!i.output&&s.indexOf(A)===1&&(i.output=f);continue}}}(R==="["&&V()!==":"||R==="-"&&V()==="]")&&(R=`\\${R}`),R==="]"&&(A.value==="["||A.value==="[^")&&(R=`\\${R}`),r.posix===!0&&R==="!"&&A.value==="["&&(R="^"),A.value+=R,De({value:R});continue}if(E.quotes===1&&R!=='"'){R=Vt.escapeRegex(R),A.value+=R,De({value:R});continue}if(R==='"'){E.quotes=E.quotes===1?0:1,r.keepQuotes===!0&&M({type:"text",value:R});continue}if(R==="("){gt("parens"),M({type:"paren",value:R});continue}if(R===")"){if(E.parens===0&&r.strictBrackets===!0)throw new SyntaxError(ti("opening","("));let I=G[G.length-1];if(I&&E.parens===I.parens+1){cr(G.pop());continue}M({type:"paren",value:R,output:E.parens?")":"\\)"}),C("parens");continue}if(R==="["){if(r.nobracket===!0||!Re().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(ti("closing","]"));R=`\\${R}`}else gt("brackets");M({type:"bracket",value:R});continue}if(R==="]"){if(r.nobracket===!0||A&&A.type==="bracket"&&A.value.length===1){M({type:"text",value:R,output:`\\${R}`});continue}if(E.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(ti("opening","["));M({type:"text",value:R,output:`\\${R}`});continue}C("brackets");let I=A.value.slice(1);if(A.posix!==!0&&I[0]==="^"&&!I.includes("/")&&(R=`/${R}`),A.value+=R,De({value:R}),r.literalBrackets===!1||Vt.hasRegexChars(I))continue;let W=Vt.escapeRegex(A.value);if(E.output=E.output.slice(0,-A.value.length),r.literalBrackets===!0){E.output+=W,A.value=W;continue}A.value=`(${a}${W}|${A.value})`,E.output+=A.value;continue}if(R==="{"&&r.nobrace!==!0){gt("braces");let I={type:"brace",value:R,output:"(",outputIndex:E.output.length,tokensIndex:E.tokens.length};F.push(I),M(I);continue}if(R==="}"){let I=F[F.length-1];if(r.nobrace===!0||!I){M({type:"text",value:R,output:R});continue}let W=")";if(I.dots===!0){let ke=s.slice(),Ke=[];for(let Oe=ke.length-1;Oe>=0&&(s.pop(),ke[Oe].type!=="brace");Oe--)ke[Oe].type!=="dots"&&Ke.unshift(ke[Oe].value);W=iI(Ke,r),E.backtrack=!0}if(I.comma!==!0&&I.dots!==!0){let ke=E.output.slice(0,I.outputIndex),Ke=E.tokens.slice(I.tokensIndex);I.value=I.output="\\{",R=W="\\}",E.output=ke;for(let Oe of Ke)E.output+=Oe.output||Oe.value}M({type:"brace",value:R,output:W}),C("braces"),F.pop();continue}if(R==="|"){G.length>0&&G[G.length-1].conditions++,M({type:"text",value:R});continue}if(R===","){let I=R,W=F[F.length-1];W&&ae[ae.length-1]==="braces"&&(W.comma=!0,I="|"),M({type:"comma",value:R,output:I});continue}if(R==="/"){if(A.type==="dot"&&E.index===E.start+1){E.start=E.index+1,E.consumed="",E.output="",s.pop(),A=i;continue}M({type:"slash",value:R,output:d});continue}if(R==="."){if(E.braces>0&&A.type==="dot"){A.value==="."&&(A.output=l);let I=F[F.length-1];A.type="dots",A.output+=R,A.value+=R,I.dots=!0;continue}if(E.braces+E.parens===0&&A.type!=="bos"&&A.type!=="slash"){M({type:"text",value:R,output:l});continue}M({type:"dot",value:R,output:l});continue}if(R==="?"){if(!(A&&A.value==="(")&&r.noextglob!==!0&&V()==="("&&V(2)!=="?"){Le("qmark",R);continue}if(A&&A.type==="paren"){let W=V(),ke=R;(A.value==="("&&!/[!=<:]/.test(W)||W==="<"&&!/<([!=]|\w+>)/.test(Re()))&&(ke=`\\${R}`),M({type:"text",value:R,output:ke});continue}if(r.dot!==!0&&(A.type==="slash"||A.type==="bos")){M({type:"qmark",value:R,output:b});continue}M({type:"qmark",value:R,output:P});continue}if(R==="!"){if(r.noextglob!==!0&&V()==="("&&(V(2)!=="?"||!/[!=<:]/.test(V(3)))){Le("negate",R);continue}if(r.nonegate!==!0&&E.index===0){Lt();continue}}if(R==="+"){if(r.noextglob!==!0&&V()==="("&&V(2)!=="?"){Le("plus",R);continue}if(A&&A.value==="("||r.regex===!1){M({type:"plus",value:R,output:u});continue}if(A&&(A.type==="bracket"||A.type==="paren"||A.type==="brace")||E.parens>0){M({type:"plus",value:R});continue}M({type:"plus",value:u});continue}if(R==="@"){if(r.noextglob!==!0&&V()==="("&&V(2)!=="?"){M({type:"at",extglob:!0,value:R,output:""});continue}M({type:"text",value:R});continue}if(R!=="*"){(R==="$"||R==="^")&&(R=`\\${R}`);let I=nI.exec(Re());I&&(R+=I[0],E.index+=I[0].length),M({type:"text",value:R});continue}if(A&&(A.type==="globstar"||A.star===!0)){A.type="star",A.star=!0,A.value+=R,A.output=$,E.backtrack=!0,E.globstar=!0,pe(R);continue}let k=Re();if(r.noextglob!==!0&&/^\([^?]/.test(k)){Le("star",R);continue}if(A.type==="star"){if(r.noglobstar===!0){pe(R);continue}let I=A.prev,W=I.prev,ke=I.type==="slash"||I.type==="bos",Ke=W&&(W.type==="star"||W.type==="globstar");if(r.bash===!0&&(!ke||k[0]&&k[0]!=="/")){M({type:"star",value:R,output:""});continue}let Oe=E.braces>0&&(I.type==="comma"||I.type==="brace"),Ar=G.length&&(I.type==="pipe"||I.type==="paren");if(!ke&&I.type!=="paren"&&!Oe&&!Ar){M({type:"star",value:R,output:""});continue}for(;k.slice(0,3)==="/**";){let Tr=e[E.index+4];if(Tr&&Tr!=="/")break;k=k.slice(3),pe("/**",3)}if(I.type==="bos"&&pt()){A.type="globstar",A.value+=R,A.output=w(r),E.output=A.output,E.globstar=!0,pe(R);continue}if(I.type==="slash"&&I.prev.type!=="bos"&&!Ke&&pt()){E.output=E.output.slice(0,-(I.output+A.output).length),I.output=`(?:${I.output}`,A.type="globstar",A.output=w(r)+(r.strictSlashes?")":"|$)"),A.value+=R,E.globstar=!0,E.output+=I.output+A.output,pe(R);continue}if(I.type==="slash"&&I.prev.type!=="bos"&&k[0]==="/"){let Tr=k[1]!==void 0?"|$":"";E.output=E.output.slice(0,-(I.output+A.output).length),I.output=`(?:${I.output}`,A.type="globstar",A.output=`${w(r)}${d}|${d}${Tr})`,A.value+=R,E.output+=I.output+A.output,E.globstar=!0,pe(R+ce()),M({type:"slash",value:"/",output:""});continue}if(I.type==="bos"&&k[0]==="/"){A.type="globstar",A.value+=R,A.output=`(?:^|${d}|${w(r)}${d})`,E.output=A.output,E.globstar=!0,pe(R+ce()),M({type:"slash",value:"/",output:""});continue}E.output=E.output.slice(0,-A.output.length),A.type="globstar",A.output=w(r),A.value+=R,E.output+=A.output,E.globstar=!0,pe(R);continue}let xe={type:"star",value:R,output:$};if(r.bash===!0){xe.output=".*?",(A.type==="bos"||A.type==="slash")&&(xe.output=T+xe.output),M(xe);continue}if(A&&(A.type==="bracket"||A.type==="paren")&&r.regex===!0){xe.output=R,M(xe);continue}(E.index===E.start||A.type==="slash"||A.type==="dot")&&(A.type==="dot"?(E.output+=y,A.output+=y):r.dot===!0?(E.output+=g,A.output+=g):(E.output+=T,A.output+=T),V()!=="*"&&(E.output+=f,A.output+=f)),M(xe)}for(;E.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(ti("closing","]"));E.output=Vt.escapeLast(E.output,"["),C("brackets")}for(;E.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(ti("closing",")"));E.output=Vt.escapeLast(E.output,"("),C("parens")}for(;E.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(ti("closing","}"));E.output=Vt.escapeLast(E.output,"{"),C("braces")}if(r.strictSlashes!==!0&&(A.type==="star"||A.type==="bracket")&&M({type:"maybe_slash",value:"",output:`${d}?`}),E.backtrack===!0){E.output="";for(let k of E.tokens)E.output+=k.output!=null?k.output:k.value,k.suffix&&(E.output+=k.suffix)}return E};ad.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(lc,r.maxLength):lc,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);e=Gb[e]||e;let{DOT_LITERAL:i,SLASH_LITERAL:s,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:p,NO_DOTS:l,NO_DOTS_SLASH:u,STAR:d,START_ANCHOR:f}=Rs.globChars(r.windows),m=r.dot?l:p,h=r.dot?u:p,y=r.capture?"":"?:",g={negated:!1,prefix:""},P=r.bash===!0?".*?":d;r.capture&&(P=`(${P})`);let b=T=>T.noglobstar===!0?P:`(${y}(?:(?!${f}${T.dot?c:i}).)*?)`,x=T=>{switch(T){case"*":return`${m}${a}${P}`;case".*":return`${i}${a}${P}`;case"*.*":return`${m}${P}${i}${a}${P}`;case"*/*":return`${m}${P}${s}${a}${h}${P}`;case"**":return m+b(r);case"**/*":return`(?:${m}${b(r)}${s})?${h}${a}${P}`;case"**/*.*":return`(?:${m}${b(r)}${s})?${h}${P}${i}${a}${P}`;case"**/.*":return`(?:${m}${b(r)}${s})?${i}${a}${P}`;default:{let _=/^(.*?)\.(\w+)$/.exec(T);if(!_)return;let $=x(_[1]);return $?$+i+_[2]:void 0}}},S=Vt.removePrefix(e,g),w=x(S);return w&&r.strictSlashes!==!0&&(w+=`${s}?`),w};Qb.exports=ad});var ev=v((h8,Zb)=>{"use strict";var uI=Kb(),cd=Jb(),Xb=As(),dI=$s(),fI=e=>e&&typeof e=="object"&&!Array.isArray(e),Ue=(e,t,r=!1)=>{if(Array.isArray(e)){let l=e.map(d=>Ue(d,t,r));return d=>{for(let f of l){let m=f(d);if(m)return m}return!1}}let n=fI(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let o=t||{},i=o.windows,s=n?Ue.compileRe(e,t):Ue.makeRe(e,t,!1,!0),a=s.state;delete s.state;let c=()=>!1;if(o.ignore){let l={...t,ignore:null,onMatch:null,onResult:null};c=Ue(o.ignore,l,r)}let p=(l,u=!1)=>{let{isMatch:d,match:f,output:m}=Ue.test(l,s,t,{glob:e,posix:i}),h={glob:e,state:a,regex:s,posix:i,input:l,output:m,match:f,isMatch:d};return typeof o.onResult=="function"&&o.onResult(h),d===!1?(h.isMatch=!1,u?h:!1):c(l)?(typeof o.onIgnore=="function"&&o.onIgnore(h),h.isMatch=!1,u?h:!1):(typeof o.onMatch=="function"&&o.onMatch(h),u?h:!0)};return r&&(p.state=a),p};Ue.test=(e,t,r,{glob:n,posix:o}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let i=r||{},s=i.format||(o?Xb.toPosixSlashes:null),a=e===n,c=a&&s?s(e):e;return a===!1&&(c=s?s(e):e,a=c===n),(a===!1||i.capture===!0)&&(i.matchBase===!0||i.basename===!0?a=Ue.matchBase(e,t,r,o):a=t.exec(c)),{isMatch:!!a,match:a,output:c}};Ue.matchBase=(e,t,r)=>(t instanceof RegExp?t:Ue.makeRe(t,r)).test(Xb.basename(e));Ue.isMatch=(e,t,r)=>Ue(t,r)(e);Ue.parse=(e,t)=>Array.isArray(e)?e.map(r=>Ue.parse(r,t)):cd(e,{...t,fastpaths:!1});Ue.scan=(e,t)=>uI(e,t);Ue.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let o=t||{},i=o.contains?"":"^",s=o.contains?"":"$",a=`${i}(?:${e.output})${s}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let c=Ue.toRegex(a,t);return n===!0&&(c.state=e),c};Ue.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(o.output=cd.fastpaths(e,t)),o.output||(o=cd(e,t)),Ue.compileRe(o,t,r,n)};Ue.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/$^/}};Ue.constants=dI;Zb.exports=Ue});var ov=v((y8,nv)=>{"use strict";var tv=ev(),mI=As();function rv(e,t,r=!1){return t&&(t.windows===null||t.windows===void 0)&&(t={...t,windows:mI.isWindows()}),tv(e,t,r)}Object.assign(rv,tv);nv.exports=rv});var qs=v(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.regexpCode=ge.getEsmExportName=ge.getProperty=ge.safeStringify=ge.stringify=ge.strConcat=ge.addCodeArg=ge.str=ge._=ge.nil=ge._Code=ge.Name=ge.IDENTIFIER=ge._CodeOrName=void 0;var Is=class{};ge._CodeOrName=Is;ge.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var lo=class extends Is{constructor(t){if(super(),!ge.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}}};ge.Name=lo;var Qt=class extends Is{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 lo&&(r[n.str]=(r[n.str]||0)+1),r),{})}};ge._Code=Qt;ge.nil=new Qt("");function o0(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Nd(r,t[n]),r.push(e[++n]);return new Qt(r)}ge._=o0;var qd=new Qt("+");function i0(e,...t){let r=[Cs(e[0])],n=0;for(;n<t.length;)r.push(qd),Nd(r,t[n]),r.push(qd,Cs(e[++n]));return l2(r),new Qt(r)}ge.str=i0;function Nd(e,t){t instanceof Qt?e.push(...t._items):t instanceof lo?e.push(t):e.push(f2(t))}ge.addCodeArg=Nd;function l2(e){let t=1;for(;t<e.length-1;){if(e[t]===qd){let r=u2(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function u2(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof lo||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 lo))return`"${e}${t.slice(1)}`}function d2(e,t){return t.emptyStr()?e:e.emptyStr()?t:i0`${e}${t}`}ge.strConcat=d2;function f2(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Cs(Array.isArray(e)?e.join(","):e)}function m2(e){return new Qt(Cs(e))}ge.stringify=m2;function Cs(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}ge.safeStringify=Cs;function h2(e){return typeof e=="string"&&ge.IDENTIFIER.test(e)?new Qt(`.${e}`):o0`[${e}]`}ge.getProperty=h2;function y2(e){if(typeof e=="string"&&ge.IDENTIFIER.test(e))return new Qt(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}ge.getEsmExportName=y2;function g2(e){return new Qt(e.toString())}ge.regexpCode=g2});var Dd=v(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.ValueScope=kt.ValueScopeName=kt.Scope=kt.varKinds=kt.UsedValueState=void 0;var Ot=qs(),Md=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},Ac;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Ac||(kt.UsedValueState=Ac={}));kt.varKinds={const:new Ot.Name("const"),let:new Ot.Name("let"),var:new Ot.Name("var")};var Tc=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Ot.Name?t:this.name(t)}name(t){return new Ot.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}}};kt.Scope=Tc;var Rc=class extends Ot.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Ot._)`.${new Ot.Name(r)}[${n}]`}};kt.ValueScopeName=Rc;var b2=(0,Ot._)`\n`,jd=class extends Tc{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?b2:Ot.nil}}get(){return this._scope}name(t){return new Rc(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(t),{prefix:i}=o,s=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[i];if(a){let l=a.get(s);if(l)return l}else a=this._values[i]=new Map;a.set(s,o);let c=this._scope[i]||(this._scope[i]=[]),p=c.length;return c[p]=r.ref,o.setValue(r,{property:i,itemIndex:p}),o}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,Ot._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},r,n)}_reduceValues(t,r,n={},o){let i=Ot.nil;for(let s in t){let a=t[s];if(!a)continue;let c=n[s]=n[s]||new Map;a.forEach(p=>{if(c.has(p))return;c.set(p,Ac.Started);let l=r(p);if(l){let u=this.opts.es5?kt.varKinds.var:kt.varKinds.const;i=(0,Ot._)`${i}${u} ${p} = ${l};${this.opts._n}`}else if(l=o?.(p))i=(0,Ot._)`${i}${l}${this.opts._n}`;else throw new Md(p);c.set(p,Ac.Completed)})}return i}};kt.ValueScope=jd});var B=v(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.or=te.and=te.not=te.CodeGen=te.operators=te.varKinds=te.ValueScopeName=te.ValueScope=te.Scope=te.Name=te.regexpCode=te.stringify=te.getProperty=te.nil=te.strConcat=te.str=te._=void 0;var le=qs(),mr=Dd(),Pn=qs();Object.defineProperty(te,"_",{enumerable:!0,get:function(){return Pn._}});Object.defineProperty(te,"str",{enumerable:!0,get:function(){return Pn.str}});Object.defineProperty(te,"strConcat",{enumerable:!0,get:function(){return Pn.strConcat}});Object.defineProperty(te,"nil",{enumerable:!0,get:function(){return Pn.nil}});Object.defineProperty(te,"getProperty",{enumerable:!0,get:function(){return Pn.getProperty}});Object.defineProperty(te,"stringify",{enumerable:!0,get:function(){return Pn.stringify}});Object.defineProperty(te,"regexpCode",{enumerable:!0,get:function(){return Pn.regexpCode}});Object.defineProperty(te,"Name",{enumerable:!0,get:function(){return Pn.Name}});var Cc=Dd();Object.defineProperty(te,"Scope",{enumerable:!0,get:function(){return Cc.Scope}});Object.defineProperty(te,"ValueScope",{enumerable:!0,get:function(){return Cc.ValueScope}});Object.defineProperty(te,"ValueScopeName",{enumerable:!0,get:function(){return Cc.ValueScopeName}});Object.defineProperty(te,"varKinds",{enumerable:!0,get:function(){return Cc.varKinds}});te.operators={GT:new le._Code(">"),GTE:new le._Code(">="),LT:new le._Code("<"),LTE:new le._Code("<="),EQ:new le._Code("==="),NEQ:new le._Code("!=="),NOT:new le._Code("!"),OR:new le._Code("||"),AND:new le._Code("&&"),ADD:new le._Code("+")};var tn=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},Ld=class extends tn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?mr.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=di(this.rhs,t,r)),this}get names(){return this.rhs instanceof le._CodeOrName?this.rhs.names:{}}},Oc=class extends tn{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 le.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=di(this.rhs,t,r),this}get names(){let t=this.lhs instanceof le.Name?{}:{...this.lhs.names};return Ic(t,this.rhs)}},Ud=class extends Oc{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},zd=class extends tn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},Fd=class extends tn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},Vd=class extends tn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},Bd=class extends tn{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=di(this.code,t,r),this}get names(){return this.code instanceof le._CodeOrName?this.code.names:{}}},Ns=class extends tn{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,o=n.length;for(;o--;){let i=n[o];i.optimizeNames(t,r)||(v2(t,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>mo(t,r.names),{})}},rn=class extends Ns{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Hd=class extends Ns{},ui=class extends rn{};ui.kind="else";var uo=class e extends rn{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 ui(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(s0(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=di(this.condition,t,r),this}get names(){let t=super.names;return Ic(t,this.condition),this.else&&mo(t,this.else.names),t}};uo.kind="if";var fo=class extends rn{};fo.kind="for";var Kd=class extends fo{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=di(this.iteration,t,r),this}get names(){return mo(super.names,this.iteration.names)}},Gd=class extends fo{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?mr.varKinds.var:this.varKind,{name:n,from:o,to:i}=this;return`for(${r} ${n}=${o}; ${n}<${i}; ${n}++)`+super.render(t)}get names(){let t=Ic(super.names,this.from);return Ic(t,this.to)}},kc=class extends fo{constructor(t,r,n,o){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=o}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=di(this.iterable,t,r),this}get names(){return mo(super.names,this.iterable.names)}},Ms=class extends rn{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)}};Ms.kind="func";var js=class extends Ns{render(t){return"return "+super.render(t)}};js.kind="return";var Wd=class extends rn{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,o;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(o=this.finally)===null||o===void 0||o.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&mo(t,this.catch.names),this.finally&&mo(t,this.finally.names),t}},Ds=class extends rn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Ds.kind="catch";var Ls=class extends rn{render(t){return"finally"+super.render(t)}};Ls.kind="finally";var Yd=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
8
|
-
`:""},this._extScope=t,this._scope=new mr.Scope({parent:t}),this._nodes=[new Hd]}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,o){let i=this._scope.toName(r);return n!==void 0&&o&&(this._constants[i.str]=n),this._leafNode(new Ld(t,i,n)),i}const(t,r,n){return this._def(mr.varKinds.const,t,r,n)}let(t,r,n){return this._def(mr.varKinds.let,t,r,n)}var(t,r,n){return this._def(mr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Oc(t,r,n))}add(t,r){return this._leafNode(new Ud(t,te.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==le.nil&&this._leafNode(new Bd(t)),this}object(...t){let r=["{"];for(let[n,o]of t)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,le.addCodeArg)(r,o));return r.push("}"),new le._Code(r)}if(t,r,n){if(this._blockNode(new uo(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 uo(t))}else(){return this._elseNode(new ui)}endIf(){return this._endBlockNode(uo,ui)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Kd(t),r)}forRange(t,r,n,o,i=this.opts.es5?mr.varKinds.var:mr.varKinds.let){let s=this._scope.toName(t);return this._for(new Gd(i,s,r,n),()=>o(s))}forOf(t,r,n,o=mr.varKinds.const){let i=this._scope.toName(t);if(this.opts.es5){let s=r instanceof le.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,le._)`${s}.length`,a=>{this.var(i,(0,le._)`${s}[${a}]`),n(i)})}return this._for(new kc("of",o,i,r),()=>n(i))}forIn(t,r,n,o=this.opts.es5?mr.varKinds.var:mr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,le._)`Object.keys(${r})`,n);let i=this._scope.toName(t);return this._for(new kc("in",o,i,r),()=>n(i))}endFor(){return this._endBlockNode(fo)}label(t){return this._leafNode(new zd(t))}break(t){return this._leafNode(new Fd(t))}return(t){let r=new js;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(js)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new Wd;if(this._blockNode(o),this.code(t),r){let i=this.name("e");this._currNode=o.catch=new Ds(i),r(i)}return n&&(this._currNode=o.finally=new Ls,this.code(n)),this._endBlockNode(Ds,Ls)}throw(t){return this._leafNode(new Vd(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=le.nil,n,o){return this._blockNode(new Ms(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(Ms)}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 uo))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}};te.CodeGen=Yd;function mo(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function Ic(e,t){return t instanceof le._CodeOrName?mo(e,t.names):e}function di(e,t,r){if(e instanceof le.Name)return n(e);if(!o(e))return e;return new le._Code(e._items.reduce((i,s)=>(s instanceof le.Name&&(s=n(s)),s instanceof le._Code?i.push(...s._items):i.push(s),i),[]));function n(i){let s=r[i.str];return s===void 0||t[i.str]!==1?i:(delete t[i.str],s)}function o(i){return i instanceof le._Code&&i._items.some(s=>s instanceof le.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function v2(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function s0(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,le._)`!${Qd(e)}`}te.not=s0;var S2=a0(te.operators.AND);function x2(...e){return e.reduce(S2)}te.and=x2;var w2=a0(te.operators.OR);function _2(...e){return e.reduce(w2)}te.or=_2;function a0(e){return(t,r)=>t===le.nil?r:r===le.nil?t:(0,le._)`${Qd(t)} ${e} ${Qd(r)}`}function Qd(e){return e instanceof le.Name?e:(0,le._)`(${e})`}});var oe=v(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.checkStrictMode=ne.getErrorPath=ne.Type=ne.useFunc=ne.setEvaluated=ne.evaluatedPropsToName=ne.mergeEvaluated=ne.eachItem=ne.unescapeJsonPointer=ne.escapeJsonPointer=ne.escapeFragment=ne.unescapeFragment=ne.schemaRefOrVal=ne.schemaHasRulesButRef=ne.schemaHasRules=ne.checkUnknownRules=ne.alwaysValidSchema=ne.toHash=void 0;var $e=B(),P2=qs();function E2(e){let t={};for(let r of e)t[r]=!0;return t}ne.toHash=E2;function $2(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(l0(e,t),!u0(t,e.self.RULES.all))}ne.alwaysValidSchema=$2;function l0(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let o=n.RULES.keywords;for(let i in t)o[i]||m0(e,`unknown keyword: "${i}"`)}ne.checkUnknownRules=l0;function u0(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}ne.schemaHasRules=u0;function A2(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}ne.schemaHasRulesButRef=A2;function T2({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,$e._)`${r}`}return(0,$e._)`${e}${t}${(0,$e.getProperty)(n)}`}ne.schemaRefOrVal=T2;function R2(e){return d0(decodeURIComponent(e))}ne.unescapeFragment=R2;function O2(e){return encodeURIComponent(Xd(e))}ne.escapeFragment=O2;function Xd(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}ne.escapeJsonPointer=Xd;function d0(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}ne.unescapeJsonPointer=d0;function k2(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}ne.eachItem=k2;function c0({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,i,s,a)=>{let c=s===void 0?i:s instanceof $e.Name?(i instanceof $e.Name?e(o,i,s):t(o,i,s),s):i instanceof $e.Name?(t(o,s,i),i):r(i,s);return a===$e.Name&&!(c instanceof $e.Name)?n(o,c):c}}ne.mergeEvaluated={props:c0({mergeNames:(e,t,r)=>e.if((0,$e._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,$e._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,$e._)`${r} || {}`).code((0,$e._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,$e._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,$e._)`${r} || {}`),Zd(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:f0}),items:c0({mergeNames:(e,t,r)=>e.if((0,$e._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,$e._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,$e._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,$e._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function f0(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,$e._)`{}`);return t!==void 0&&Zd(e,r,t),r}ne.evaluatedPropsToName=f0;function Zd(e,t,r){Object.keys(r).forEach(n=>e.assign((0,$e._)`${t}${(0,$e.getProperty)(n)}`,!0))}ne.setEvaluated=Zd;var p0={};function I2(e,t){return e.scopeValue("func",{ref:t,code:p0[t.code]||(p0[t.code]=new P2._Code(t.code))})}ne.useFunc=I2;var Jd;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Jd||(ne.Type=Jd={}));function C2(e,t,r){if(e instanceof $e.Name){let n=t===Jd.Num;return r?n?(0,$e._)`"[" + ${e} + "]"`:(0,$e._)`"['" + ${e} + "']"`:n?(0,$e._)`"/" + ${e}`:(0,$e._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,$e.getProperty)(e).toString():"/"+Xd(e)}ne.getErrorPath=C2;function m0(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}ne.checkStrictMode=m0});var St=v(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});var tt=B(),q2={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"),isAllOfVariant:new tt.Name("isAllOfVariant"),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")};ef.default=q2});var Us=v(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.extendErrors=dt.resetErrorsCount=dt.reportExtraError=dt.reportError=dt.keyword$DataError=dt.keywordError=void 0;var me=B(),qc=oe(),xt=St();dt.keywordError={message:({keyword:e})=>(0,me.str)`must pass "${e}" keyword validation`};dt.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,me.str)`"${e}" keyword must be ${t} ($data)`:(0,me.str)`"${e}" keyword is invalid ($data)`};function N2(e,t=dt.keywordError,r,n){let{it:o}=e,{gen:i,compositeRule:s,allErrors:a}=o,c=g0(e,t,r);n??(s||a)?h0(i,c):y0(o,(0,me._)`[${c}]`)}dt.reportError=N2;function M2(e,t=dt.keywordError,r){let{it:n}=e,{gen:o,compositeRule:i,allErrors:s}=n,a=g0(e,t,r);h0(o,a),i||s||y0(n,xt.default.vErrors)}dt.reportExtraError=M2;function j2(e,t){e.assign(xt.default.errors,t),e.if((0,me._)`${xt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,me._)`${xt.default.vErrors}.length`,t),()=>e.assign(xt.default.vErrors,null)))}dt.resetErrorsCount=j2;function D2({gen:e,keyword:t,schemaValue:r,data:n,errsCount:o,it:i}){if(o===void 0)throw new Error("ajv implementation error");let s=e.name("err");e.forRange("i",o,xt.default.errors,a=>{e.const(s,(0,me._)`${xt.default.vErrors}[${a}]`),e.if((0,me._)`${s}.instancePath === undefined`,()=>e.assign((0,me._)`${s}.instancePath`,(0,me.strConcat)(xt.default.instancePath,i.errorPath))),e.assign((0,me._)`${s}.schemaPath`,(0,me.str)`${i.errSchemaPath}/${t}`),i.opts.verbose&&(e.assign((0,me._)`${s}.schema`,r),e.assign((0,me._)`${s}.data`,n))})}dt.extendErrors=D2;function h0(e,t){let r=e.const("err",t);e.if((0,me._)`${xt.default.vErrors} === null`,()=>e.assign(xt.default.vErrors,(0,me._)`[${r}]`),(0,me._)`${xt.default.vErrors}.push(${r})`),e.code((0,me._)`${xt.default.errors}++`)}function y0(e,t){let{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,me._)`new ${e.ValidationError}(${t})`):(r.assign((0,me._)`${n}.errors`,t),r.return(!1))}var ho={keyword:new me.Name("keyword"),schemaPath:new me.Name("schemaPath"),params:new me.Name("params"),propertyName:new me.Name("propertyName"),message:new me.Name("message"),schema:new me.Name("schema"),parentSchema:new me.Name("parentSchema")};function g0(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,me._)`{}`:L2(e,t,r)}function L2(e,t,r={}){let{gen:n,it:o}=e,i=[U2(o,r),z2(e,r)];return F2(e,t,i),n.object(...i)}function U2({errorPath:e},{instancePath:t}){let r=t?(0,me.str)`${e}${(0,qc.getErrorPath)(t,qc.Type.Str)}`:e;return[xt.default.instancePath,(0,me.strConcat)(xt.default.instancePath,r)]}function z2({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let o=n?t:(0,me.str)`${t}/${e}`;return r&&(o=(0,me.str)`${o}${(0,qc.getErrorPath)(r,qc.Type.Str)}`),[ho.schemaPath,o]}function F2(e,{params:t,message:r},n){let{keyword:o,data:i,schemaValue:s,it:a}=e,{opts:c,propertyName:p,topSchemaRef:l,schemaPath:u}=a;n.push([ho.keyword,o],[ho.params,typeof t=="function"?t(e):t||(0,me._)`{}`]),c.messages&&n.push([ho.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([ho.schema,s],[ho.parentSchema,(0,me._)`${l}${u}`],[xt.default.data,i]),p&&n.push([ho.propertyName,p])}});var v0=v(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.boolOrEmptySchema=fi.topBoolOrEmptySchema=void 0;var V2=Us(),B2=B(),H2=St(),K2={message:"boolean schema is false"};function G2(e){let{gen:t,schema:r,validateName:n}=e;r===!1?b0(e,!1):typeof r=="object"&&r.$async===!0?t.return(H2.default.data):(t.assign((0,B2._)`${n}.errors`,null),t.return(!0))}fi.topBoolOrEmptySchema=G2;function W2(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),b0(e)):r.var(t,!0)}fi.boolOrEmptySchema=W2;function b0(e,t){let{gen:r,data:n}=e,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,V2.reportError)(o,K2,void 0,t)}});var tf=v(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.getRules=mi.isJSONType=void 0;var Y2=["string","number","integer","boolean","null","object","array"],Q2=new Set(Y2);function J2(e){return typeof e=="string"&&Q2.has(e)}mi.isJSONType=J2;function X2(){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:{}}}mi.getRules=X2});var rf=v(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.shouldUseRule=En.shouldUseGroup=En.schemaHasRulesForType=void 0;function Z2({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&S0(e,n)}En.schemaHasRulesForType=Z2;function S0(e,t){return t.rules.some(r=>x0(e,r))}En.shouldUseGroup=S0;function x0(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))}En.shouldUseRule=x0});var zs=v(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.reportTypeError=ft.checkDataTypes=ft.checkDataType=ft.coerceAndCheckDataType=ft.getJSONTypes=ft.getSchemaTypes=ft.DataType=void 0;var eU=tf(),tU=rf(),rU=Us(),J=B(),w0=oe(),hi;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(hi||(ft.DataType=hi={}));function nU(e){let t=_0(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}ft.getSchemaTypes=nU;function _0(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(eU.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}ft.getJSONTypes=_0;function oU(e,t){let{gen:r,data:n,opts:o}=e,i=iU(t,o.coerceTypes),s=t.length>0&&!(i.length===0&&t.length===1&&(0,tU.schemaHasRulesForType)(e,t[0]));if(s){let a=of(t,n,o.strictNumbers,hi.Wrong);r.if(a,()=>{i.length?sU(e,t,i):sf(e)})}return s}ft.coerceAndCheckDataType=oU;var P0=new Set(["string","number","integer","boolean","null"]);function iU(e,t){return t?e.filter(r=>P0.has(r)||t==="array"&&r==="array"):[]}function sU(e,t,r){let{gen:n,data:o,opts:i}=e,s=n.let("dataType",(0,J._)`typeof ${o}`),a=n.let("coerced",(0,J._)`undefined`);i.coerceTypes==="array"&&n.if((0,J._)`${s} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,J._)`${o}[0]`).assign(s,(0,J._)`typeof ${o}`).if(of(t,o,i.strictNumbers),()=>n.assign(a,o))),n.if((0,J._)`${a} !== undefined`);for(let p of r)(P0.has(p)||p==="array"&&i.coerceTypes==="array")&&c(p);n.else(),sf(e),n.endIf(),n.if((0,J._)`${a} !== undefined`,()=>{n.assign(o,a),aU(e,a)});function c(p){switch(p){case"string":n.elseIf((0,J._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,J._)`"" + ${o}`).elseIf((0,J._)`${o} === null`).assign(a,(0,J._)`""`);return;case"number":n.elseIf((0,J._)`${s} == "boolean" || ${o} === null
|
|
9
|
-
|| (${s} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,J._)`+${o}`);return;case"integer":n.elseIf((0,J._)`${s} === "boolean" || ${o} === null
|
|
10
|
-
|| (${s} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,J._)`+${o}`);return;case"boolean":n.elseIf((0,J._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(a,!1).elseIf((0,J._)`${o} === "true" || ${o} === 1`).assign(a,!0);return;case"null":n.elseIf((0,J._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(a,null);return;case"array":n.elseIf((0,J._)`${s} === "string" || ${s} === "number"
|
|
11
|
-
|| ${s} === "boolean" || ${o} === null`).assign(a,(0,J._)`[${o}]`)}}}function aU({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,J._)`${t} !== undefined`,()=>e.assign((0,J._)`${t}[${r}]`,n))}function nf(e,t,r,n=hi.Correct){let o=n===hi.Correct?J.operators.EQ:J.operators.NEQ,i;switch(e){case"null":return(0,J._)`${t} ${o} null`;case"array":i=(0,J._)`Array.isArray(${t})`;break;case"object":i=(0,J._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=s((0,J._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=s();break;default:return(0,J._)`typeof ${t} ${o} ${e}`}return n===hi.Correct?i:(0,J.not)(i);function s(a=J.nil){return(0,J.and)((0,J._)`typeof ${t} == "number"`,a,r?(0,J._)`isFinite(${t})`:J.nil)}}ft.checkDataType=nf;function of(e,t,r,n){if(e.length===1)return nf(e[0],t,r,n);let o,i=(0,w0.toHash)(e);if(i.array&&i.object){let s=(0,J._)`typeof ${t} != "object"`;o=i.null?s:(0,J._)`!${t} || ${s}`,delete i.null,delete i.array,delete i.object}else o=J.nil;i.number&&delete i.integer;for(let s in i)o=(0,J.and)(o,nf(s,t,r,n));return o}ft.checkDataTypes=of;var cU={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,J._)`{type: ${e}}`:(0,J._)`{type: ${t}}`};function sf(e){let t=pU(e);(0,rU.reportError)(t,cU)}ft.reportTypeError=sf;function pU(e){let{gen:t,data:r,schema:n}=e,o=(0,w0.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var $0=v(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.assignDefaults=void 0;var yi=B(),lU=oe();function uU(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)E0(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,i)=>E0(e,i,o.default))}Nc.assignDefaults=uU;function E0(e,t,r){let{gen:n,compositeRule:o,data:i,opts:s}=e;if(r===void 0)return;let a=(0,yi._)`${i}${(0,yi.getProperty)(t)}`;if(o){(0,lU.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,yi._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,yi._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,yi._)`${a} = ${(0,yi.stringify)(r)}`)}});var cf=v(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.getSkipCondition=void 0;var Mc=B(),af=St();function dU(e,t){var r;let n=(r=e.properties)===null||r===void 0?void 0:r[t];if(!n)return;let o=n.readOnly===!0,i=n.writeOnly===!0;if(!o&&!i)return;let s=[],a=(0,Mc._)`typeof ${af.default.this} == "object" && ${af.default.this} && ${af.default.this}.apiContext`;return o&&s.push((0,Mc._)`${a} === "request"`),i&&s.push((0,Mc._)`${a} === "response"`),(0,Mc.or)(...s)}jc.getSkipCondition=dU});var Jt=v(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.validateUnion=Pe.validateArray=Pe.usePattern=Pe.callValidateCode=Pe.schemaProperties=Pe.allSchemaProperties=Pe.noPropertyInData=Pe.propertyInData=Pe.isOwnProperty=Pe.hasPropFunc=Pe.reportMissingProp=Pe.checkMissingProp=Pe.checkReportMissingProp=void 0;var Ae=B(),pf=oe(),nn=St(),fU=oe(),mU=cf();function hU(e,t){let{gen:r,data:n,it:o}=e;r.if(uf(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Ae._)`${t}`},!0),e.error()})}Pe.checkReportMissingProp=hU;function yU({gen:e,data:t,it:{opts:r},parentSchema:n},o,i){return(0,Ae.or)(...o.map(s=>{var a;return(0,Ae.and)((0,Ae.not)((a=(0,mU.getSkipCondition)(n,s))!==null&&a!==void 0?a:(0,Ae._)`false`),uf(e,t,s,r.ownProperties),(0,Ae._)`${i} = ${s}`)}))}Pe.checkMissingProp=yU;function gU(e,t){e.setParams({missingProperty:t},!0),e.error()}Pe.reportMissingProp=gU;function A0(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ae._)`Object.prototype.hasOwnProperty`})}Pe.hasPropFunc=A0;function lf(e,t,r){return(0,Ae._)`${A0(e)}.call(${t}, ${r})`}Pe.isOwnProperty=lf;function bU(e,t,r,n){let o=(0,Ae._)`${t}${(0,Ae.getProperty)(r)} !== undefined`;return n?(0,Ae._)`${o} && ${lf(e,t,r)}`:o}Pe.propertyInData=bU;function uf(e,t,r,n){let o=(0,Ae._)`${t}${(0,Ae.getProperty)(r)} === undefined`;return n?(0,Ae.or)(o,(0,Ae.not)(lf(e,t,r))):o}Pe.noPropertyInData=uf;function T0(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Pe.allSchemaProperties=T0;function vU(e,t){return T0(t).filter(r=>!(0,pf.alwaysValidSchema)(e,t[r]))}Pe.schemaProperties=vU;function SU({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:i},it:s},a,c,p){let l=p?(0,Ae._)`${e}, ${t}, ${n}${o}`:t,u=[[nn.default.instancePath,(0,Ae.strConcat)(nn.default.instancePath,i)],[nn.default.parentData,s.parentData],[nn.default.parentDataProperty,s.parentDataProperty],[nn.default.rootData,nn.default.rootData],[nn.default.isAllOfVariant,s.isAllOfVariant?1:0]];s.opts.dynamicRef&&u.push([nn.default.dynamicAnchors,nn.default.dynamicAnchors]);let d=(0,Ae._)`${l}, ${r.object(...u)}`;return c!==Ae.nil?(0,Ae._)`${a}.call(${c}, ${d})`:(0,Ae._)`${a}(${d})`}Pe.callValidateCode=SU;var xU=(0,Ae._)`new RegExp`;function wU({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:o}=t.code,i=o(r,n);return e.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,Ae._)`${o.code==="new RegExp"?xU:(0,fU.useFunc)(e,o)}(${r}, ${n})`})}Pe.usePattern=wU;function _U(e){let{gen:t,data:r,keyword:n,it:o}=e,i=t.name("valid");if(o.allErrors){let a=t.let("valid",!0);return s(()=>t.assign(a,!1)),a}return t.var(i,!0),s(()=>t.break()),i;function s(a){let c=t.const("len",(0,Ae._)`${r}.length`);t.forRange("i",0,c,p=>{e.subschema({keyword:n,dataProp:p,dataPropType:pf.Type.Num},i),t.if((0,Ae.not)(i),a)})}}Pe.validateArray=_U;function PU(e){let{gen:t,schema:r,keyword:n,parentSchema:o,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&o.discriminator||r.some(p=>(0,pf.alwaysValidSchema)(i,p))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((p,l)=>{let u=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},c);t.assign(a,(0,Ae._)`${a} || ${c}`),e.mergeValidEvaluated(u,c)||t.if((0,Ae.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}Pe.validateUnion=PU});var k0=v(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.validateKeywordUsage=qr.validSchemaType=qr.funcKeywordCode=qr.macroKeywordCode=void 0;var wt=B(),yo=St(),EU=Jt(),$U=Us();function AU(e,t){let{gen:r,keyword:n,schema:o,parentSchema:i,it:s}=e,a=t.macro.call(s.self,o,i,s),c=O0(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let p=r.name("valid");e.subschema({schema:a,schemaPath:wt.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},p),e.pass(p,()=>e.error(!0))}qr.macroKeywordCode=AU;function TU(e,t){var r;let{gen:n,keyword:o,schema:i,parentSchema:s,$data:a,it:c}=e;OU(c,t);let p=!a&&t.compile?t.compile.call(c.self,i,s,c):t.validate,l=O0(n,o,p),u=n.let("valid");e.block$data(u,d),e.ok((r=t.valid)!==null&&r!==void 0?r:u);function d(){if(t.errors===!1)h(),t.modifying&&R0(e),y(()=>e.error());else{let g=t.async?f():m();t.modifying&&R0(e),y(()=>RU(e,g))}}function f(){let g=n.let("ruleErrs",null);return n.try(()=>h((0,wt._)`await `),P=>n.assign(u,!1).if((0,wt._)`${P} instanceof ${c.ValidationError}`,()=>n.assign(g,(0,wt._)`${P}.errors`),()=>n.throw(P))),g}function m(){let g=(0,wt._)`${l}.errors`;return n.assign(g,null),h(wt.nil),g}function h(g=t.async?(0,wt._)`await `:wt.nil){let P=c.opts.passContext?yo.default.this:yo.default.self,b=!("compile"in t&&!a||t.schema===!1);n.assign(u,(0,wt._)`${g}${(0,EU.callValidateCode)(e,l,P,b)}`,t.modifying)}function y(g){var P;n.if((0,wt.not)((P=t.valid)!==null&&P!==void 0?P:u),g)}}qr.funcKeywordCode=TU;function R0(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,wt._)`${n.parentData}[${n.parentDataProperty}]`))}function RU(e,t){let{gen:r}=e;r.if((0,wt._)`Array.isArray(${t})`,()=>{r.assign(yo.default.vErrors,(0,wt._)`${yo.default.vErrors} === null ? ${t} : ${yo.default.vErrors}.concat(${t})`).assign(yo.default.errors,(0,wt._)`${yo.default.vErrors}.length`),(0,$U.extendErrors)(e)},()=>e.error())}function OU({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function O0(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,wt.stringify)(r)})}function kU(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")}qr.validSchemaType=kU;function IU({schema:e,opts:t,self:r,errSchemaPath:n},o,i){if(Array.isArray(o.keyword)?!o.keyword.includes(i):o.keyword!==i)throw new Error("ajv implementation error");let s=o.dependencies;if(s?.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${i}: ${s.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[i])){let c=`keyword "${i}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}qr.validateKeywordUsage=IU});var C0=v($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.extendSubschemaMode=$n.extendSubschemaData=$n.getSubschema=void 0;var Nr=B(),I0=oe();function CU(e,{keyword:t,schemaProp:r,schema:n,schemaPath:o,errSchemaPath:i,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,Nr._)`${e.schemaPath}${(0,Nr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,Nr._)`${e.schemaPath}${(0,Nr.getProperty)(t)}${(0,Nr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,I0.escapeFragment)(r)}`}}if(n!==void 0){if(o===void 0||i===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:s,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')}$n.getSubschema=CU;function qU(e,t,{dataProp:r,dataPropType:n,data:o,dataTypes:i,propertyName:s}){if(o!==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:p,dataPathArr:l,opts:u}=t,d=a.let("data",(0,Nr._)`${t.data}${(0,Nr.getProperty)(r)}`,!0);c(d),e.errorPath=(0,Nr.str)`${p}${(0,I0.getErrorPath)(r,n,u.jsPropertySyntax)}`,e.parentDataProperty=(0,Nr._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(o!==void 0){let p=o instanceof Nr.Name?o:a.let("data",o,!0);c(p),s!==void 0&&(e.propertyName=s)}i&&(e.dataTypes=i);function c(p){e.data=p,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,p]}}$n.extendSubschemaData=qU;function NU(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:i}){n!==void 0&&(e.compositeRule=n),o!==void 0&&(e.createErrors=o),i!==void 0&&(e.allErrors=i),e.jtdDiscriminator=t,e.jtdMetadata=r}$n.extendSubschemaMode=NU});var Fs=v((B7,q0)=>{"use strict";q0.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,o,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!e(t[o],r[o]))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(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;o--!==0;){var s=i[o];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}});var df=v((H7,N0)=>{"use strict";var An=N0.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},o=r.post||function(){};Dc(t,n,o,e,"",e)};An.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};An.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};An.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};An.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Dc(e,t,r,n,o,i,s,a,c,p){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,o,i,s,a,c,p);for(var l in n){var u=n[l];if(Array.isArray(u)){if(l in An.arrayKeywords)for(var d=0;d<u.length;d++)Dc(e,t,r,u[d],o+"/"+l+"/"+d,i,o,l,n,d)}else if(l in An.propsKeywords){if(u&&typeof u=="object")for(var f in u)Dc(e,t,r,u[f],o+"/"+l+"/"+MU(f),i,o,l,n,f)}else(l in An.keywords||e.allKeys&&!(l in An.skipKeywords))&&Dc(e,t,r,u,o+"/"+l,i,o,l,n)}r(n,o,i,s,a,c,p)}}function MU(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var Vs=v(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.getSchemaRefs=It.resolveUrl=It.normalizeId=It._getFullPath=It.getFullPath=It.inlineRef=void 0;var jU=oe(),DU=Fs(),LU=df(),UU=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function zU(e,t=!0){return typeof e=="boolean"?!0:t===!0?!ff(e):t?M0(e)<=t:!1}It.inlineRef=zU;var FU=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function ff(e){for(let t in e){if(FU.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(ff)||typeof r=="object"&&ff(r))return!0}return!1}function M0(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!UU.has(r)&&(typeof e[r]=="object"&&(0,jU.eachItem)(e[r],n=>t+=M0(n)),t===1/0))return 1/0}return t}function j0(e,t="",r){r!==!1&&(t=gi(t));let n=e.parse(t);return D0(e,n)}It.getFullPath=j0;function D0(e,t){return e.serialize(t).split("#")[0]+"#"}It._getFullPath=D0;var VU=/#\/?$/;function gi(e){return e?e.replace(VU,""):""}It.normalizeId=gi;function BU(e,t,r){return r=gi(r),e.resolve(t,r)}It.resolveUrl=BU;var HU=/^[a-z_][-a-z0-9._]*$/i;function KU(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=gi(e[r]||t),i={"":o},s=j0(n,o,!1),a={},c=new Set;return LU(e,{allKeys:!0},(u,d,f,m)=>{if(m===void 0)return;let h=s+d,y=i[m];typeof u[r]=="string"&&(y=g.call(this,u[r])),P.call(this,u.$anchor),P.call(this,u.$dynamicAnchor),i[d]=y;function g(b){let x=this.opts.uriResolver.resolve;if(b=gi(y?x(y,b):b),c.has(b))throw l(b);c.add(b);let S=this.refs[b];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?p(u,S.schema,b):b!==gi(h)&&(b[0]==="#"?(p(u,a[b],b),a[b]=u):this.refs[b]=h),b}function P(b){if(typeof b=="string"){if(!HU.test(b))throw new Error(`invalid anchor "${b}"`);g.call(this,`#${b}`)}}}),a;function p(u,d,f){if(d!==void 0&&!DU(u,d))throw l(f)}function l(u){return new Error(`reference "${u}" resolves to more than one schema`)}}It.getSchemaRefs=KU});var bi=v(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.getData=Tn.KeywordCxt=Tn.validateFunctionCode=void 0;var V0=v0(),L0=zs(),hf=rf(),Lc=zs(),GU=$0(),Hs=k0(),mf=C0(),j=B(),z=St(),WU=Vs(),on=oe(),Bs=Us();function YU(e){if(K0(e)&&(G0(e),H0(e))){XU(e);return}B0(e,()=>(0,V0.topBoolOrEmptySchema)(e))}Tn.validateFunctionCode=YU;function B0({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},i){o.code.es5?e.func(t,(0,j._)`${z.default.data}, ${z.default.valCxt}`,n.$async,()=>{e.code((0,j._)`"use strict"; ${U0(r,o)}`),JU(e,o),e.code(i)}):e.func(t,(0,j._)`${z.default.data}, ${QU(o)}`,n.$async,()=>e.code(U0(r,o)).code(i))}function QU(e){return(0,j._)`{${z.default.instancePath}="", ${z.default.parentData}, ${z.default.parentDataProperty}, ${z.default.rootData}=${z.default.data}${e.dynamicRef?(0,j._)`, ${z.default.dynamicAnchors}={}`:j.nil}, ${z.default.isAllOfVariant} = 0}={}`}function JU(e,t){e.if(z.default.valCxt,()=>{e.var(z.default.instancePath,(0,j._)`${z.default.valCxt}.${z.default.instancePath}`),e.var(z.default.parentData,(0,j._)`${z.default.valCxt}.${z.default.parentData}`),e.var(z.default.parentDataProperty,(0,j._)`${z.default.valCxt}.${z.default.parentDataProperty}`),e.var(z.default.rootData,(0,j._)`${z.default.valCxt}.${z.default.rootData}`),e.var(z.default.isAllOfVariant,(0,j._)`${z.default.valCxt}.${z.default.isAllOfVariant}`),t.dynamicRef&&e.var(z.default.dynamicAnchors,(0,j._)`${z.default.valCxt}.${z.default.dynamicAnchors}`)},()=>{e.var(z.default.instancePath,(0,j._)`""`),e.var(z.default.parentData,(0,j._)`undefined`),e.var(z.default.parentDataProperty,(0,j._)`undefined`),e.var(z.default.rootData,z.default.data),e.var(z.default.isAllOfVariant,(0,j._)`0`),t.dynamicRef&&e.var(z.default.dynamicAnchors,(0,j._)`{}`)})}function XU(e){let{schema:t,opts:r,gen:n}=e;B0(e,()=>{r.$comment&&t.$comment&&Y0(e),nz(e),n.let(z.default.vErrors,null),n.let(z.default.errors,0),r.unevaluated&&ZU(e),W0(e),sz(e)})}function ZU(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 U0(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 ez(e,t){if(K0(e)&&(G0(e),H0(e))){tz(e,t);return}(0,V0.boolOrEmptySchema)(e,t)}function H0({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 K0(e){return typeof e.schema!="boolean"}function tz(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&Y0(e),oz(e),iz(e);let i=n.const("_errs",z.default.errors);W0(e,i),n.var(t,(0,j._)`${i} === ${z.default.errors}`)}function G0(e){(0,on.checkUnknownRules)(e),rz(e)}function W0(e,t){if(e.opts.jtd)return z0(e,[],!1,t);let r=(0,L0.getSchemaTypes)(e.schema),n=(0,L0.coerceAndCheckDataType)(e,r);z0(e,r,!n,t)}function rz(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,on.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function nz(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,on.checkStrictMode)(e,"default is ignored in the schema root")}function oz(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,WU.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function iz(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function Y0({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let i=r.$comment;if(o.$comment===!0)e.code((0,j._)`${z.default.self}.logger.log(${i})`);else if(typeof o.$comment=="function"){let s=(0,j.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,j._)`${z.default.self}.opts.$comment(${i}, ${s}, ${a}.schema)`)}}function sz(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:i}=e;r.$async?t.if((0,j._)`${z.default.errors} === 0`,()=>t.return(z.default.data),()=>t.throw((0,j._)`new ${o}(${z.default.vErrors})`)):(t.assign((0,j._)`${n}.errors`,z.default.vErrors),i.unevaluated&&az(e),t.return((0,j._)`${z.default.errors} === 0`))}function az({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 z0(e,t,r,n){let{gen:o,schema:i,data:s,allErrors:a,opts:c,self:p}=e,{RULES:l}=p;if(i.$ref&&(c.ignoreKeywordsWithRef||!(0,on.schemaHasRulesButRef)(i,l))){o.block(()=>J0(e,"$ref",l.all.$ref.definition));return}c.jtd||cz(e,t),o.block(()=>{for(let d of l.rules)u(d);u(l.post)});function u(d){(0,hf.shouldUseGroup)(i,d)&&(d.type?(o.if((0,Lc.checkDataType)(d.type,s,c.strictNumbers)),F0(e,d),t.length===1&&t[0]===d.type&&r&&(o.else(),(0,Lc.reportTypeError)(e)),o.endIf()):F0(e,d),a||o.if((0,j._)`${z.default.errors} === ${n||0}`))}}function F0(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,GU.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)((0,hf.shouldUseRule)(n,s)||i(n,s))&&J0(e,s.keyword,s.definition,t.type)});function i(s,a){return!!(a.keyword==="unevaluatedProperties"&&(s.properties||s.patternProperties)&&!e.isAllOfVariant&&e.opts.defaultUnevaluatedProperties===!1)}}function cz(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(pz(e,t),e.opts.allowUnionTypes||lz(e,t),uz(e,e.dataTypes))}function pz(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Q0(e.dataTypes,r)||yf(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),fz(e,t)}}function lz(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&yf(e,"use allowUnionTypes to allow union type keyword")}function uz(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,hf.shouldUseRule)(e.schema,o)){let{type:i}=o.definition;i.length&&!i.some(s=>dz(t,s))&&yf(e,`missing type "${i.join(",")}" for keyword "${n}"`)}}}function dz(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function Q0(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function fz(e,t){let r=[];for(let n of e.dataTypes)Q0(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function yf(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,on.checkStrictMode)(e,t,e.opts.strictTypes)}var Uc=class{constructor(t,r,n){if((0,Hs.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,on.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",X0(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Hs.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,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?Bs.reportExtraError:Bs.reportError)(this,this.def.error,r)}$dataError(){(0,Bs.reportError)(this,this.def.$dataError||Bs.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Bs.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:o,schemaType:i,def:s}=this;n.if((0,j.or)((0,j._)`${o} === undefined`,r)),t!==j.nil&&n.assign(t,!0),(i.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:o,it:i}=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,Lc.checkDataTypes)(c,r,i.opts.strictNumbers,Lc.DataType.Wrong)}`}return j.nil}function a(){if(o.validateSchema){let c=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,j._)`!${c}(${r})`}return j.nil}}subschema(t,r,n){let o=(0,mf.getSubschema)(this.it,t);(0,mf.extendSubschemaData)(o,this.it,t),(0,mf.extendSubschemaMode)(o,t);let i={...this.it,...o,items:void 0,props:void 0,isAllOfVariant:n};return ez(i,r),i}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=on.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=on.mergeEvaluated.items(o,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(r,()=>this.mergeEvaluated(t,j.Name)),!0}};Tn.KeywordCxt=Uc;function J0(e,t,r,n){let o=new Uc(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,Hs.funcKeywordCode)(o,r):"macro"in r?(0,Hs.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,Hs.funcKeywordCode)(o,r)}var mz=/^\/(?:[^~]|~0|~1)*$/,hz=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function X0(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,i;if(e==="")return z.default.rootData;if(e[0]==="/"){if(!mz.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=z.default.rootData}else{let p=hz.exec(e);if(!p)throw new Error(`Invalid JSON-pointer: ${e}`);let l=+p[1];if(o=p[2],o==="#"){if(l>=t)throw new Error(c("property/index",l));return n[t-l]}if(l>t)throw new Error(c("data",l));if(i=r[t-l],!o)return i}let s=i,a=o.split("/");for(let p of a)p&&(i=(0,j._)`${i}${(0,j.getProperty)((0,on.unescapeJsonPointer)(p))}`,s=(0,j._)`${s} && ${i}`);return s;function c(p,l){return`Cannot access ${p} ${l} levels up, current level is ${t}`}}Tn.getData=X0});var Ks=v(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});var gf=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};bf.default=gf});var vi=v(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});var vf=Vs(),Sf=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,vf.resolveUrl)(t,r,n),this.missingSchema=(0,vf.normalizeId)((0,vf.getFullPath)(t,this.missingRef))}};xf.default=Sf});var Gs=v(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.resolveSchema=Xt.getCompilingSchema=Xt.resolveRef=Xt.compileSchema=Xt.SchemaEnv=void 0;var hr=B(),yz=Ks(),go=St(),yr=Vs(),Z0=oe(),gz=bi(),Si=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,yr.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};Xt.SchemaEnv=Si;function _f(e){let t=tS.call(this,e);if(t)return t;let r=(0,yr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:i}=this.opts,s=new hr.CodeGen(this.scope,{es5:n,lines:o,ownProperties:i}),a;e.$async&&(a=s.scopeValue("Error",{ref:yz.default,code:(0,hr._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let p={gen:s,allErrors:this.opts.allErrors,data:go.default.data,parentData:go.default.parentData,parentDataProperty:go.default.parentDataProperty,dataNames:[go.default.data],dataPathArr:[hr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,hr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:hr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,hr._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(e),(0,gz.validateFunctionCode)(p),s.optimize(this.opts.code.optimize);let u=s.toString();l=`const visitedNodesForRef = new WeakMap(); ${s.scopeRefs(go.default.scope)}return ${u}`,this.opts.code.process&&(l=this.opts.code.process(l,e));let f=new Function(`${go.default.self}`,`${go.default.scope}`,l)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=e.schema,f.schemaEnv=e,e.$async&&(f.$async=!0),this.opts.code.source===!0&&(f.source={validateName:c,validateCode:u,scopeValues:s._values}),this.opts.unevaluated){let{props:m,items:h}=p;f.evaluated={props:m instanceof hr.Name?void 0:m,items:h instanceof hr.Name?void 0:h,dynamicProps:m instanceof hr.Name,dynamicItems:h instanceof hr.Name},f.source&&(f.source.evaluated=(0,hr.stringify)(f.evaluated))}return e.validate=f,e}catch(u){throw delete e.validate,delete e.validateName,l&&this.logger.error("Error compiling schema, function code:",l),u}finally{this._compilations.delete(e)}}Xt.compileSchema=_f;function bz(e,t,r){var n;let o=(0,yr.resolveUrl)(this.opts.uriResolver,t,r),i=e.refs[o];if(i)return i;let s=eS.call(this,e,o);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[o],{schemaId:c}=this.opts;a&&(s=new Si({schema:a,schemaId:c,root:e,baseId:t}))}if(s===void 0&&this.opts.loadSchemaSync){let a=this.opts.loadSchemaSync(t,r,o);a&&!(this.refs[o]||this.schemas[o])&&(this.addSchema(a,o,void 0),s=eS.call(this,e,o))}if(s!==void 0)return e.refs[o]=vz.call(this,s)}Xt.resolveRef=bz;function vz(e){return(0,yr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:_f.call(this,e)}function tS(e){for(let t of this._compilations)if(Sz(t,e))return t}Xt.getCompilingSchema=tS;function Sz(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function eS(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||zc.call(this,e,t)}function zc(e,t){let r=this.opts.uriResolver.parse(t),n=(0,yr._getFullPath)(this.opts.uriResolver,r),o=(0,yr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return wf.call(this,r,e);let i=(0,yr.normalizeId)(n),s=this.refs[i]||this.schemas[i];if(typeof s=="string"){let a=zc.call(this,e,s);return typeof a?.schema!="object"?void 0:wf.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||_f.call(this,s),i===(0,yr.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,p=a[c];return p&&(o=(0,yr.resolveUrl)(this.opts.uriResolver,o,p)),new Si({schema:a,schemaId:c,root:e,baseId:o})}return wf.call(this,r,s)}}Xt.resolveSchema=zc;var xz=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function wf(e,{baseId:t,schema:r,root:n}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(let a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,Z0.unescapeFragment)(a)];if(c===void 0)return;r=c;let p=typeof r=="object"&&r[this.opts.schemaId];!xz.has(a)&&p&&(t=(0,yr.resolveUrl)(this.opts.uriResolver,t,p))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,Z0.schemaHasRulesButRef)(r,this.RULES)){let a=(0,yr.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=zc.call(this,n,a)}let{schemaId:s}=this.opts;if(i=i||new Si({schema:r,schemaId:s,root:n,baseId:t}),i.schema!==i.root.schema)return i}});var rS=v((J7,wz)=>{wz.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 $f=v((X7,cS)=>{"use strict";var _z=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),oS=RegExp.prototype.test.bind(/^(?:(?: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),Pf=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),iS=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),Pz=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function Ef(e){let t="",r=0,n=0;for(n=0;n<e.length;n++)if(r=e[n].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n];break}for(n+=1;n<e.length;n++){if(r=e[n].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n]}return t}var Ez=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function nS(e){return e.length=0,!0}function $z(e,t,r){if(e.length){let n=Ef(e);if(n!=="")t.push(n);else return r.error=!0,!1;e.length=0}return!0}function Az(e){let t=0,r={error:!1,address:"",zone:""},n=[],o=[],i=!1,s=!1,a=$z;for(let c=0;c<e.length;c++){let p=e[c];if(!(p==="["||p==="]"))if(p===":"){if(i===!0&&(s=!0),!a(o,n,r))break;if(++t>7){r.error=!0;break}c>0&&e[c-1]===":"&&(i=!0),n.push(":");continue}else if(p==="%"){if(!a(o,n,r))break;a=nS}else{o.push(p);continue}}return o.length&&(a===nS?r.zone=o.join(""):s?n.push(o.join("")):n.push(Ef(o))),r.address=n.join(""),r}function sS(e){if(Tz(e,":")<2)return{host:e,isIPV6:!1};let t=Az(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,isIPV6:!0,escapedHost:n}}}function Tz(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}function Rz(e){let t=e,r=[],n=-1,o=0;for(;o=t.length;){if(o===1){if(t===".")break;if(t==="/"){r.push("/");break}else{r.push(t);break}}else if(o===2){if(t[0]==="."){if(t[1]===".")break;if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&(t[1]==="."||t[1]==="/")){r.push("/");break}}else if(o===3&&t==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(t[0]==="."){if(t[1]==="."){if(t[2]==="/"){t=t.slice(3);continue}}else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&t[1]==="."){if(t[2]==="/"){t=t.slice(2);continue}else if(t[2]==="."&&t[3]==="/"){t=t.slice(3),r.length!==0&&r.pop();continue}}if((n=t.indexOf("/",1))===-1){r.push(t);break}else r.push(t.slice(0,n)),t=t.slice(n)}return r.join("")}var Oz={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},kz=/[@/?#:]/g,Iz=/[@/?#]/g;function aS(e,t){let r=t?Iz:kz;return r.lastIndex=0,e.replace(r,n=>Oz[n])}function Cz(e,t=!1){if(e.indexOf("%")===-1)return e;let r="";for(let n=0;n<e.length;n++){if(e[n]==="%"&&n+2<e.length){let o=e.slice(n+1,n+3);if(Pf(o)){let i=o.toUpperCase(),s=String.fromCharCode(parseInt(i,16));t&&iS(s)?r+=s:r+="%"+i,n+=2;continue}}r+=e[n]}return r}function qz(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="%"&&r+2<e.length){let n=e.slice(r+1,r+3);if(Pf(n)){let o=n.toUpperCase(),i=String.fromCharCode(parseInt(o,16));i!=="."&&iS(i)?t+=i:t+="%"+o,r+=2;continue}}Pz(e[r])?t+=e[r]:t+=escape(e[r])}return t}function Nz(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="%"&&r+2<e.length){let n=e.slice(r+1,r+3);if(Pf(n)){t+="%"+n.toUpperCase(),r+=2;continue}}t+=escape(e[r])}return t}function Mz(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host);if(!oS(r)){let n=sS(r);n.isIPV6===!0?r=`[${n.escapedHost}]`:r=aS(r,!1)}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}cS.exports={nonSimpleDomain:Ez,recomposeAuthority:Mz,reescapeHostDelimiters:aS,normalizePercentEncoding:Cz,normalizePathEncoding:qz,escapePreservingEscapes:Nz,removeDotSegments:Rz,isIPv4:oS,isUUID:_z,normalizeIPv6:sS,stringArrayToHexStripped:Ef}});var fS=v((Z7,dS)=>{"use strict";var{isUUID:jz}=$f(),Dz=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,Lz=["http","https","ws","wss","urn","urn:uuid"];function Uz(e){return Lz.indexOf(e)!==-1}function Af(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}function pS(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function lS(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 zz(e){return e.secure=Af(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function Fz(e){if((e.port===(Af(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 Vz(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(Dz);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let o=`${n}:${t.nid||e.nid}`,i=Tf(o);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function Bz(e,t){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),o=`${r}:${t.nid||n}`,i=Tf(o);i&&(e=i.serialize(e,t));let s=e,a=e.nss;return s.path=`${n||t.nid}:${a}`,t.skipEscape=!0,s}function Hz(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!jz(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function Kz(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var uS={scheme:"http",domainHost:!0,parse:pS,serialize:lS},Gz={scheme:"https",domainHost:uS.domainHost,parse:pS,serialize:lS},Fc={scheme:"ws",domainHost:!0,parse:zz,serialize:Fz},Wz={scheme:"wss",domainHost:Fc.domainHost,parse:Fc.parse,serialize:Fc.serialize},Yz={scheme:"urn",parse:Vz,serialize:Bz,skipNormalize:!0},Qz={scheme:"urn:uuid",parse:Hz,serialize:Kz,skipNormalize:!0},Vc={http:uS,https:Gz,ws:Fc,wss:Wz,urn:Yz,"urn:uuid":Qz};Object.setPrototypeOf(Vc,null);function Tf(e){return e&&(Vc[e]||Vc[e.toLowerCase()])||void 0}dS.exports={wsIsSecure:Af,SCHEMES:Vc,isValidSchemeName:Uz,getSchemeHandler:Tf}});var Of=v((eX,Kc)=>{"use strict";var{normalizeIPv6:Jz,removeDotSegments:Ws,recomposeAuthority:Xz,normalizePercentEncoding:Zz,normalizePathEncoding:eF,escapePreservingEscapes:tF,reescapeHostDelimiters:rF,isIPv4:nF,nonSimpleDomain:oF}=$f(),{SCHEMES:iF,getSchemeHandler:hS}=fS();function sF(e,t){return typeof e=="string"?e=fF(e,t):typeof e=="object"&&(e=Hc(bo(e,t),t)),e}function aF(e,t,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},{parsed:o,malformedAuthorityOrPort:i}=Bc(e,n),{parsed:s,malformedAuthorityOrPort:a}=Bc(t,n);if(i||a)throw new Error(o.error||s.error||"URI is malformed.");let c=yS(o,s,n,!0);return n.skipEscape=!0,bo(c,n)}function yS(e,t,r,n){let o={};return n||(e=Hc(bo(e,r),r),t=Hc(bo(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=Ws(t.path||""),o.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=Ws(t.path||""),o.query=t.query):(t.path?(t.path[0]==="/"?o.path=Ws(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?o.path="/"+t.path:e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path,o.path=Ws(o.path)),o.query=t.query):(o.path=e.path,t.query!==void 0?o.query=t.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function cF(e,t,r){let n=mS(e,r),o=mS(t,r);return n!==void 0&&o!==void 0&&n.toLowerCase()===o.toLowerCase()}function bo(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),o=[],i=hS(n.scheme||r.scheme);i&&i.serialize&&i.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=Zz(r.path):(r.path=tF(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&o.push(r.scheme,":");let s=Xz(r);if(s!==void 0&&(n.reference!=="suffix"&&o.push("//"),o.push(s),r.path&&r.path[0]!=="/"&&o.push("/")),r.path!==void 0){let a=r.path;!n.absolutePath&&(!i||!i.absolutePath)&&(a=Ws(a)),s===void 0&&a[0]==="/"&&a[1]==="/"&&(a="/%2F"+a.slice(2)),o.push(a)}return r.query!==void 0&&o.push("?",r.query),r.fragment!==void 0&&o.push("#",r.fragment),o.join("")}var pF=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,lF=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,uF=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function dF(e,t){if(t[2]!==void 0&&e.path&&e.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof e.port=="number"&&(e.port<0||e.port>65535))return"URI port is malformed."}function Bc(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},o=!1,i=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let s=e.match(lF);s!==null&&s[1].indexOf("\\")!==-1&&(n.error="URI authority must not contain a literal backslash.",o=!0);let a=e.match(uF);if(a!==null){let p=a[1],l=p.replace(/[\t\n\r]/g,"");l.length>=2&&(l.slice(0,2)!=="//"?(n.error=n.error||"URI authority must not contain a literal backslash.",o=!0):p.length!==l.length&&(n.error=n.error||"URI authority introducer must not contain whitespace.",o=!0))}let c=e.match(pF);if(c){n.scheme=c[1],n.userinfo=c[3],n.host=c[4],n.port=parseInt(c[5],10),n.path=c[6]||"",n.query=c[7],n.fragment=c[8],isNaN(n.port)&&(n.port=c[5]);let p=dF(n,c);if(p!==void 0&&(n.error=n.error||p,o=!0),n.host)if(nF(n.host)===!1){let d=Jz(n.host);n.host=d.host.toLowerCase(),i=d.isIPV6}else i=!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 l=hS(r.scheme||n.scheme);if(!r.unicodeSupport&&(!l||!l.unicodeSupport)&&n.host&&(r.domainHost||l&&l.domainHost)&&i===!1&&oF(n.host))try{n.host=new URL("http://"+n.host).hostname}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}if((!l||l&&!l.skipNormalize)&&(e.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=rF(unescape(n.host),i))),n.path&&(n.path=eF(n.path)),n.fragment))try{n.fragment=encodeURI(decodeURIComponent(n.fragment))}catch{n.error=n.error||"URI malformed"}l&&l.parse&&l.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:o}}function Hc(e,t){return Bc(e,t).parsed}function fF(e,t){return gS(e,t).normalized}function gS(e,t){let{parsed:r,malformedAuthorityOrPort:n}=Bc(e,t);return{normalized:n?e:bo(r,t),malformedAuthorityOrPort:n}}function mS(e,t){if(typeof e=="string"){let{normalized:r,malformedAuthorityOrPort:n}=gS(e,t);return n?void 0:r}if(typeof e=="object")return bo(e,t)}var Rf={SCHEMES:iF,normalize:sF,resolve:aF,resolveComponent:yS,equal:cF,serialize:bo,parse:Hc};Kc.exports=Rf;Kc.exports.default=Rf;Kc.exports.fastUri=Rf});var vS=v(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});var bS=Of();bS.code='require("ajv/dist/runtime/uri").default';kf.default=bS});var qf=v(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.CodeGen=rt.Name=rt.nil=rt.stringify=rt.str=rt._=rt.KeywordCxt=void 0;var mF=bi();Object.defineProperty(rt,"KeywordCxt",{enumerable:!0,get:function(){return mF.KeywordCxt}});var xi=B();Object.defineProperty(rt,"_",{enumerable:!0,get:function(){return xi._}});Object.defineProperty(rt,"str",{enumerable:!0,get:function(){return xi.str}});Object.defineProperty(rt,"stringify",{enumerable:!0,get:function(){return xi.stringify}});Object.defineProperty(rt,"nil",{enumerable:!0,get:function(){return xi.nil}});Object.defineProperty(rt,"Name",{enumerable:!0,get:function(){return xi.Name}});Object.defineProperty(rt,"CodeGen",{enumerable:!0,get:function(){return xi.CodeGen}});var hF=Ks(),PS=vi(),yF=tf(),Ys=Gs(),gF=B(),Qs=Vs(),Gc=zs(),Cf=oe(),SS=rS(),bF=vS(),ES=(e,t)=>new RegExp(e,t);ES.code="new RegExp";var vF=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],SF=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),xF={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."},wF={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},xS=200;function _F(e){var t,r,n,o,i,s,a,c,p,l,u,d,f,m,h,y,g,P,b,x,S,w,T,_,$;let E=e.strict,G=(t=e.code)===null||t===void 0?void 0:t.optimize,F=G===!0||G===void 0?1:G||0,ae=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:ES,A=(o=e.uriResolver)!==null&&o!==void 0?o:bF.default;return{strictSchema:(s=(i=e.strictSchema)!==null&&i!==void 0?i: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:(l=(p=e.strictTypes)!==null&&p!==void 0?p:E)!==null&&l!==void 0?l:"log",strictTuples:(d=(u=e.strictTuples)!==null&&u!==void 0?u:E)!==null&&d!==void 0?d:"log",strictRequired:(m=(f=e.strictRequired)!==null&&f!==void 0?f:E)!==null&&m!==void 0?m:!1,code:e.code?{...e.code,optimize:F,regExp:ae}:{optimize:F,regExp:ae},loopRequired:(h=e.loopRequired)!==null&&h!==void 0?h:xS,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:xS,meta:(g=e.meta)!==null&&g!==void 0?g:!0,messages:(P=e.messages)!==null&&P!==void 0?P:!0,inlineRefs:(b=e.inlineRefs)!==null&&b!==void 0?b:!0,schemaId:(x=e.schemaId)!==null&&x!==void 0?x:"$id",addUsedSchema:(S=e.addUsedSchema)!==null&&S!==void 0?S:!0,validateSchema:(w=e.validateSchema)!==null&&w!==void 0?w:!0,validateFormats:(T=e.validateFormats)!==null&&T!==void 0?T:!0,unicodeRegExp:(_=e.unicodeRegExp)!==null&&_!==void 0?_:!0,int32range:($=e.int32range)!==null&&$!==void 0?$:!0,uriResolver:A}}var Js=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,..._F(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new gF.ValueScope({scope:{},prefixes:SF,es5:r,lines:n}),this.logger=RF(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,yF.getRules)(),wS.call(this,xF,t,"NOT SUPPORTED"),wS.call(this,wF,t,"DEPRECATED","warn"),this._metaOpts=AF.call(this),t.formats&&EF.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&$F.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),PF.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=SS;n==="id"&&(o={...SS},o.id=o.$id,delete o.$id),r&&t&&this.addMetaSchema(o,o[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}setDefaultUnevaluatedProperties(t){this.opts.defaultUnevaluatedProperties=t}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 o=n(r);return"$async"in n||(this.errors=n.errors),o}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 o.call(this,t,r);async function o(l,u){await i.call(this,l.$schema);let d=this._addSchema(l,u);return d.validate||s.call(this,d)}async function i(l){l&&!this.getSchema(l)&&await o.call(this,{$ref:l},!0)}async function s(l){try{return this._compileSchemaEnv(l)}catch(u){if(!(u instanceof PS.default))throw u;return a.call(this,u),await c.call(this,u.missingSchema),s.call(this,l)}}function a({missingSchema:l,missingRef:u}){if(this.refs[l])throw new Error(`AnySchema ${l} is loaded but ${u} cannot be resolved`)}async function c(l){let u=await p.call(this,l);this.refs[l]||await i.call(this,u.$schema),this.refs[l]||this.addSchema(u,l,r)}async function p(l){let u=this._loading[l];if(u)return u;try{return await(this._loading[l]=n(l))}finally{delete this._loading[l]}}}addSchema(t,r,n,o=this.opts.validateSchema){if(Array.isArray(t)){for(let s of t)this.addSchema(s,void 0,n,o);return this}let i;if(typeof t=="object"){let{schemaId:s}=this.opts;if(i=t[s],i!==void 0&&typeof i!="string")throw new Error(`schema ${s} must be string`)}return r=(0,Qs.normalizeId)(r||i),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,o,!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 o=this.validate(n,t);if(!o&&r){let i="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(i);else throw new Error(i)}return o}getSchema(t){let r;for(;typeof(r=_S.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new Ys.SchemaEnv({schema:{},schemaId:n});if(r=Ys.resolveSchema.call(this,o,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=_S.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,Qs.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(kF.call(this,n,r),!r)return(0,Cf.eachItem)(n,i=>If.call(this,i)),this;CF.call(this,r);let o={...r,type:(0,Gc.getJSONTypes)(r.type),schemaType:(0,Gc.getJSONTypes)(r.schemaType)};return(0,Cf.eachItem)(n,o.type.length===0?i=>If.call(this,i,o):i=>o.type.forEach(s=>If.call(this,i,o,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 o=n.rules.findIndex(i=>i.keyword===t);o>=0&&n.rules.splice(o,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(o=>`${n}${o.instancePath} ${o.message}`).reduce((o,i)=>o+r+i)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let o of r){let i=o.split("/").slice(1),s=t;for(let a of i)s=s[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:p}=c.definition,l=s[a];p&&l&&(s[a]=$S(l))}}return t}_removeAllSchemas(t,r){for(let n in t){let o=t[n];(!r||r.test(n))&&(typeof o=="string"?delete t[n]:o&&!o.meta&&(this._cache.delete(o.schema),delete t[n]))}}_addSchema(t,r,n,o=this.opts.validateSchema,i=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,Qs.normalizeId)(s||n);let p=Qs.getSchemaRefs.call(this,t,n);return c=new Ys.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:n,localRefs:p}),this._cache.set(c.schema,c),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),o&&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):Ys.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{Ys.compileSchema.call(this,t)}finally{this.opts=r}}};Js.ValidationError=hF.default;Js.MissingRefError=PS.default;rt.default=Js;function wS(e,t,r,n="error"){for(let o in e){let i=o;i in t&&this.logger[n](`${r}: option ${o}. ${e[i]}`)}}function _S(e){return e=(0,Qs.normalizeId)(e),this.schemas[e]||this.refs[e]}function PF(){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 EF(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function $F(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 AF(){let e={...this.opts};for(let t of vF)delete e[t];return e}var TF={log(){},warn(){},error(){}};function RF(e){if(e===!1)return TF;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 OF=/^[a-z_$][a-z0-9_$:-]*$/i;function kF(e,t){let{RULES:r}=this;if((0,Cf.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!OF.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 If(e,t,r){var n;let o=t?.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:i}=this,s=o?i.post:i.rules.find(({type:c})=>c===r);if(s||(s={type:r,rules:[]},i.rules.push(s)),i.keywords[e]=!0,!t)return;let a={keyword:e,definition:{...t,type:(0,Gc.getJSONTypes)(t.type),schemaType:(0,Gc.getJSONTypes)(t.schemaType)}};t.before?IF.call(this,s,a,t.before):s.rules.push(a),i.all[e]=a,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function IF(e,t,r){let n=e.rules.findIndex(o=>o.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function CF(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=$S(t)),e.validateSchema=this.compile(t,!0))}var qF={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function $S(e){return{anyOf:[e,qF]}}});var AS=v(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});var NF={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Nf.default=NF});var Xs=v(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.callRef=vo.getValidate=void 0;var MF=vi(),TS=Jt(),Be=B(),wi=St(),RS=Gs(),Wc=oe(),jF={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:i,validateName:s,opts:a,self:c}=n,{root:p}=i;if((r==="#"||r==="#/")&&o===p.baseId)return u();let l=RS.resolveRef.call(c,p,o,r);if(l===void 0)throw new MF.default(n.opts.uriResolver,o,r);if(l instanceof RS.SchemaEnv)return d(l);return f(l);function u(){if(i===p)return Yc(e,s,i,i.$async);let m=t.scopeValue("root",{ref:p});return Yc(e,(0,Be._)`${m}.validate`,p,p.$async)}function d(m){let h=OS(e,m);Yc(e,h,m,m.$async)}function f(m){let h=t.scopeValue("schema",a.code.source===!0?{ref:m,code:(0,Be.stringify)(m)}:{ref:m}),y=t.name("valid"),g=e.subschema({schema:m,dataTypes:[],schemaPath:Be.nil,topSchemaRef:h,errSchemaPath:r},y,n.isAllOfVariant);e.mergeEvaluated(g),e.ok(y)}}};function OS(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Be._)`${r.scopeValue("wrapper",{ref:t})}.validate`}vo.getValidate=OS;function Yc(e,t,r,n){let{gen:o,it:i}=e,{allErrors:s,schemaEnv:a,opts:c}=i,p=c.passContext?wi.default.this:Be.nil;n?l():u();function l(){if(!a.$async)throw new Error("async schema referenced by sync schema");let m=o.let("valid");o.try(()=>{o.code((0,Be._)`await ${(0,TS.callValidateCode)(e,t,p)}`),f(t),s||o.assign(m,!0)},h=>{o.if((0,Be._)`!(${h} instanceof ${i.ValidationError})`,()=>o.throw(h)),d(h),s||o.assign(m,!1)}),e.ok(m)}function u(){let m=o.name("visitedNodes");o.code((0,Be._)`const ${m} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${t}) || new Set()`),o.if((0,Be._)`!${m}.has(${e.data})`,()=>{o.code((0,Be._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${t}, ${m})`),o.code((0,Be._)`const dataNode = ${e.data}`),o.code((0,Be._)`if (typeof dataNode === "object" && dataNode !== null) ${m}.add(dataNode)`);let h=e.result((0,TS.callValidateCode)(e,t,p),()=>f(t),()=>d(t));return o.code((0,Be._)`${m}.delete(dataNode)`),h})}function d(m){let h=(0,Be._)`${m}.errors`;o.assign(wi.default.vErrors,(0,Be._)`${wi.default.vErrors} === null ? ${h} : ${wi.default.vErrors}.concat(${h})`),o.assign(wi.default.errors,(0,Be._)`${wi.default.vErrors}.length`)}function f(m){var h;if(!i.opts.unevaluated)return;let y=(h=r?.validate)===null||h===void 0?void 0:h.evaluated;if(i.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(i.props=Wc.mergeEvaluated.props(o,y.props,i.props));else{let g=o.var("props",(0,Be._)`${m}.evaluated.props`);i.props=Wc.mergeEvaluated.props(o,g,i.props,Be.Name)}if(i.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(i.items=Wc.mergeEvaluated.items(o,y.items,i.items));else{let g=o.var("items",(0,Be._)`${m}.evaluated.items`);i.items=Wc.mergeEvaluated.items(o,g,i.items,Be.Name)}}}vo.callRef=Yc;vo.default=jF});var kS=v(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});var DF=AS(),LF=Xs(),UF=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",DF.default,LF.default];Mf.default=UF});var IS=v(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});var Qc=B(),Rn=Qc.operators,Jc={maximum:{okStr:"<=",ok:Rn.LTE,fail:Rn.GT},minimum:{okStr:">=",ok:Rn.GTE,fail:Rn.LT},exclusiveMaximum:{okStr:"<",ok:Rn.LT,fail:Rn.GTE},exclusiveMinimum:{okStr:">",ok:Rn.GT,fail:Rn.LTE}},zF={message:({keyword:e,schemaCode:t})=>(0,Qc.str)`must be ${Jc[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Qc._)`{comparison: ${Jc[e].okStr}, limit: ${t}}`},FF={keyword:Object.keys(Jc),type:"number",schemaType:"number",$data:!0,error:zF,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Qc._)`${r} ${Jc[t].fail} ${n} || isNaN(${r})`)}};jf.default=FF});var CS=v(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});var Zs=B(),VF={message:({schemaCode:e})=>(0,Zs.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Zs._)`{multipleOf: ${e}}`},BF={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:VF,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,i=o.opts.multipleOfPrecision,s=t.let("res"),a=i?(0,Zs._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${i}`:(0,Zs._)`${s} !== parseInt(${s})`;e.fail$data((0,Zs._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};Df.default=BF});var NS=v(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});function qS(e){let t=e.length,r=0,n=0,o;for(;n<t;)r++,o=e.charCodeAt(n++),o>=55296&&o<=56319&&n<t&&(o=e.charCodeAt(n),(o&64512)===56320&&n++);return r}Lf.default=qS;qS.code='require("ajv/dist/runtime/ucs2length").default'});var MS=v(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});var So=B(),HF=oe(),KF=NS(),GF={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,So.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,So._)`{limit: ${e}}`},WF={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:GF,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,i=t==="maxLength"?So.operators.GT:So.operators.LT,s=o.opts.unicode===!1?(0,So._)`${r}.length`:(0,So._)`${(0,HF.useFunc)(e.gen,KF.default)}(${r})`;e.fail$data((0,So._)`${s} ${i} ${n}`)}};Uf.default=WF});var jS=v(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});var YF=Jt(),QF=oe(),_i=B(),JF={message:({schemaCode:e})=>(0,_i.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,_i._)`{pattern: ${e}}`},XF={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:JF,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"";if(n){let{regExp:c}=s.opts.code,p=c.code==="new RegExp"?(0,_i._)`new RegExp`:(0,QF.useFunc)(t,c),l=t.let("valid");t.try(()=>t.assign(l,(0,_i._)`${p}(${i}, ${a}).test(${r})`),()=>t.assign(l,!1)),e.fail$data((0,_i._)`!${l}`)}else{let c=(0,YF.usePattern)(e,o);e.fail$data((0,_i._)`!${c}.test(${r})`)}}};zf.default=XF});var DS=v(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});var ea=B(),ZF={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,ea.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,ea._)`{limit: ${e}}`},eV={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:ZF,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?ea.operators.GT:ea.operators.LT;e.fail$data((0,ea._)`Object.keys(${r}).length ${o} ${n}`)}};Ff.default=eV});var LS=v(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});var ta=Jt(),tV=cf(),xo=B(),rV=oe(),nV={message:({params:{missingProperty:e}})=>(0,xo.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,xo._)`{missingProperty: ${e}}`},oV={keyword:"required",type:"object",schemaType:"array",$data:!0,error:nV,code(e){let{gen:t,schema:r,schemaCode:n,data:o,$data:i,it:s}=e,{opts:a}=s;if(!i&&r.length===0)return;let c=r.length>=a.loopRequired;if(s.allErrors?p():l(),a.strictRequired){let f=e.parentSchema.properties,{definedProperties:m}=e.it;for(let h of r)if(f?.[h]===void 0&&!m.has(h)){let y=s.schemaEnv.baseId+s.errSchemaPath,g=`required property "${h}" is not defined at "${y}" (strictRequired)`;(0,rV.checkStrictMode)(s,g,s.opts.strictRequired)}}function p(){var f;if(c||i)e.block$data(xo.nil,u);else for(let m of r){let h=(f=(0,tV.getSkipCondition)(e.parentSchema,m))!==null&&f!==void 0?f:(0,xo._)`false`;t.if((0,xo.not)(h),()=>(0,ta.checkReportMissingProp)(e,m))}}function l(){let f=t.let("missing");if(c||i){let m=t.let("valid",!0);e.block$data(m,()=>d(f,m)),e.ok(m)}else t.if((0,ta.checkMissingProp)(e,r,f)),(0,ta.reportMissingProp)(e,f),t.else()}function u(){t.forOf("prop",n,f=>{e.setParams({missingProperty:f}),t.if((0,ta.noPropertyInData)(t,o,f,a.ownProperties),()=>e.error())})}function d(f,m){e.setParams({missingProperty:f}),t.forOf(f,n,()=>{t.assign(m,(0,ta.propertyInData)(t,o,f,a.ownProperties)),t.if((0,xo.not)(m),()=>{e.error(),t.break()})},xo.nil)}}};Vf.default=oV});var zS=v(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});var Bf=B(),US=St(),iV={message:()=>(0,Bf.str)`must NOT be present in request context`},sV={keyword:"readOnly",schemaType:"boolean",error:iV,code(e){if(e.schema!==!0)return;let t=(0,Bf._)`(${US.default.this} && ${US.default.this}.apiContext)`;e.fail((0,Bf._)`${t} === "request"`)}};Hf.default=sV});var VS=v(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var Kf=B(),FS=St(),aV={message:()=>(0,Kf.str)`must NOT be present in response context`},cV={keyword:"writeOnly",schemaType:"boolean",error:aV,code(e){if(e.schema!==!0)return;let t=(0,Kf._)`(${FS.default.this} && ${FS.default.this}.apiContext)`;e.fail((0,Kf._)`${t} === "response"`)}};Gf.default=cV});var BS=v(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});var ra=B(),pV={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,ra.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,ra._)`{limit: ${e}}`},lV={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:pV,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?ra.operators.GT:ra.operators.LT;e.fail$data((0,ra._)`${r}.length ${o} ${n}`)}};Wf.default=lV});var Xc=v(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});var HS=Fs();HS.code='require("ajv/dist/runtime/equal").default';Yf.default=HS});var KS=v(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});var Qf=zs(),nt=B(),uV=oe(),dV=Xc(),fV={message:({params:{i:e,j:t}})=>(0,nt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,nt._)`{i: ${e}, j: ${t}}`},mV={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:fV,code(e){let{gen:t,data:r,$data:n,schema:o,parentSchema:i,schemaCode:s,it:a}=e;if(!n&&!o)return;let c=t.let("valid"),p=i.items?(0,Qf.getSchemaTypes)(i.items):[];e.block$data(c,l,(0,nt._)`${s} === false`),e.ok(c);function l(){let m=t.let("i",(0,nt._)`${r}.length`),h=t.let("j");e.setParams({i:m,j:h}),t.assign(c,!0),t.if((0,nt._)`${m} > 1`,()=>(u()?d:f)(m,h))}function u(){return p.length>0&&!p.some(m=>m==="object"||m==="array")}function d(m,h){let y=t.name("item"),g=(0,Qf.checkDataTypes)(p,y,a.opts.strictNumbers,Qf.DataType.Wrong),P=t.const("indices",(0,nt._)`{}`);t.for((0,nt._)`;${m}--;`,()=>{t.let(y,(0,nt._)`${r}[${m}]`),t.if(g,(0,nt._)`continue`),p.length>1&&t.if((0,nt._)`typeof ${y} == "string"`,(0,nt._)`${y} += "_"`),t.if((0,nt._)`typeof ${P}[${y}] == "number"`,()=>{t.assign(h,(0,nt._)`${P}[${y}]`),e.error(),t.assign(c,!1).break()}).code((0,nt._)`${P}[${y}] = ${m}`)})}function f(m,h){let y=(0,uV.useFunc)(t,dV.default),g=t.name("outer");t.label(g).for((0,nt._)`;${m}--;`,()=>t.for((0,nt._)`${h} = ${m}; ${h}--;`,()=>t.if((0,nt._)`${y}(${r}[${m}], ${r}[${h}])`,()=>{e.error(),t.assign(c,!1).break(g)})))}}};Jf.default=mV});var GS=v(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});var Xf=B(),hV=oe(),yV=Xc(),gV={message:"must be equal to constant",params:({schemaCode:e})=>(0,Xf._)`{allowedValue: ${e}}`},bV={keyword:"const",$data:!0,error:gV,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:i}=e;n||i&&typeof i=="object"?e.fail$data((0,Xf._)`!${(0,hV.useFunc)(t,yV.default)}(${r}, ${o})`):e.fail((0,Xf._)`${i} !== ${r}`)}};Zf.default=bV});var WS=v(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});var na=B(),vV=oe(),SV=Xc(),xV={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,na._)`{allowedValues: ${e}}`},wV={keyword:"enum",schemaType:"array",$data:!0,error:xV,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:i,it:s}=e;if(!n&&o.length===0)throw new Error("enum must have non-empty array");let a=o.length>=s.opts.loopEnum,c,p=()=>c??(c=(0,vV.useFunc)(t,SV.default)),l;if(a||n)l=t.let("valid"),e.block$data(l,u);else{if(!Array.isArray(o))throw new Error("ajv implementation error");let f=t.const("vSchema",i);l=(0,na.or)(...o.map((m,h)=>d(f,h)))}e.pass(l);function u(){t.assign(l,!1),t.forOf("v",i,f=>t.if((0,na._)`${p()}(${r}, ${f})`,()=>t.assign(l,!0).break()))}function d(f,m){let h=o[m];return typeof h=="object"&&h!==null?(0,na._)`${p()}(${r}, ${f}[${m}])`:(0,na._)`${r} === ${h}`}}};em.default=wV});var rm=v(tm=>{"use strict";Object.defineProperty(tm,"__esModule",{value:!0});var _V=IS(),PV=CS(),EV=MS(),$V=jS(),AV=DS(),TV=LS(),RV=zS(),OV=VS(),kV=BS(),IV=KS(),CV=GS(),qV=WS(),NV=[_V.default,PV.default,EV.default,$V.default,AV.default,TV.default,RV.default,OV.default,kV.default,IV.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},CV.default,qV.default];tm.default=NV});var om=v(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.validateAdditionalItems=void 0;var wo=B(),nm=oe(),MV={message:({params:{len:e}})=>(0,wo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,wo._)`{limit: ${e}}`},jV={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:MV,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,nm.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}YS(e,n)}};function YS(e,t){let{gen:r,schema:n,data:o,keyword:i,it:s}=e;s.items=!0;let a=r.const("len",(0,wo._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,wo._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,nm.alwaysValidSchema)(s,n)){let p=r.var("valid",(0,wo._)`${a} <= ${t.length}`);r.if((0,wo.not)(p),()=>c(p)),e.ok(p)}function c(p){r.forRange("i",t.length,a,l=>{e.subschema({keyword:i,dataProp:l,dataPropType:nm.Type.Num},p),s.allErrors||r.if((0,wo.not)(p),()=>r.break())})}}oa.validateAdditionalItems=YS;oa.default=jV});var im=v(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.validateTuple=void 0;var QS=B(),Zc=oe(),DV=Jt(),LV={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return JS(e,"additionalItems",t);r.items=!0,!(0,Zc.alwaysValidSchema)(r,t)&&e.ok((0,DV.validateArray)(e))}};function JS(e,t,r=e.schema){let{gen:n,parentSchema:o,data:i,keyword:s,it:a}=e;l(o),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=Zc.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),p=n.const("len",(0,QS._)`${i}.length`);r.forEach((u,d)=>{(0,Zc.alwaysValidSchema)(a,u)||(n.if((0,QS._)`${p} > ${d}`,()=>e.subschema({keyword:s,schemaProp:d,dataProp:d},c)),e.ok(c))});function l(u){let{opts:d,errSchemaPath:f}=a,m=r.length,h=m===u.minItems&&(m===u.maxItems||u[t]===!1);if(d.strictTuples&&!h){let y=`"${s}" is ${m}-tuple, but minItems or maxItems/${t} are not specified or different at path "${f}"`;(0,Zc.checkStrictMode)(a,y,d.strictTuples)}}}ia.validateTuple=JS;ia.default=LV});var XS=v(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});var UV=im(),zV={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,UV.validateTuple)(e,"items")};sm.default=zV});var ex=v(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});var ZS=B(),FV=oe(),VV=Jt(),BV=om(),HV={message:({params:{len:e}})=>(0,ZS.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,ZS._)`{limit: ${e}}`},KV={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:HV,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,FV.alwaysValidSchema)(n,t)&&(o?(0,BV.validateAdditionalItems)(e,o):e.ok((0,VV.validateArray)(e)))}};am.default=KV});var tx=v(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});var Zt=B(),ep=oe(),GV={message:({params:{min:e,max:t}})=>t===void 0?(0,Zt.str)`must contain at least ${e} valid item(s)`:(0,Zt.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Zt._)`{minContains: ${e}}`:(0,Zt._)`{minContains: ${e}, maxContains: ${t}}`},WV={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:GV,code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:i}=e,s,a,{minContains:c,maxContains:p}=n;i.opts.next?(s=c===void 0?1:c,a=p):s=1;let l=t.const("len",(0,Zt._)`${o}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,ep.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,ep.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,ep.alwaysValidSchema)(i,r)){let h=(0,Zt._)`${l} >= ${s}`;a!==void 0&&(h=(0,Zt._)`${h} && ${l} <= ${a}`),e.pass(h);return}i.items=!0;let u=t.name("valid");a===void 0&&s===1?f(u,()=>t.if(u,()=>t.break())):s===0?(t.let(u,!0),a!==void 0&&t.if((0,Zt._)`${o}.length > 0`,d)):(t.let(u,!1),d()),e.result(u,()=>e.reset());function d(){let h=t.name("_valid"),y=t.let("count",0);f(h,()=>t.if(h,()=>m(y)))}function f(h,y){t.forRange("i",0,l,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:ep.Type.Num,compositeRule:!0},h),y()})}function m(h){t.code((0,Zt._)`${h}++`),a===void 0?t.if((0,Zt._)`${h} >= ${s}`,()=>t.assign(u,!0).break()):(t.if((0,Zt._)`${h} > ${a}`,()=>t.assign(u,!1).break()),s===1?t.assign(u,!0):t.if((0,Zt._)`${h} >= ${s}`,()=>t.assign(u,!0)))}}};cm.default=WV});var tp=v(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.validateSchemaDeps=Mr.validatePropertyDeps=Mr.error=void 0;var pm=B(),YV=oe(),sa=Jt();Mr.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,pm.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,pm._)`{property: ${e},
|
|
12
|
-
missingProperty: ${n},
|
|
13
|
-
depsCount: ${t},
|
|
14
|
-
deps: ${r}}`};var QV={keyword:"dependencies",type:"object",schemaType:"object",error:Mr.error,code(e){let[t,r]=JV(e);rx(e,t),nx(e,r)}};function JV({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let o=Array.isArray(e[n])?t:r;o[n]=e[n]}return[t,r]}function rx(e,t=e.schema){let{gen:r,data:n,it:o}=e;if(Object.keys(t).length===0)return;let i=r.let("missing");for(let s in t){let a=t[s];if(a.length===0)continue;let c=(0,sa.propertyInData)(r,n,s,o.opts.ownProperties);e.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),o.allErrors?r.if(c,()=>{for(let p of a)(0,sa.checkReportMissingProp)(e,p)}):(r.if((0,pm._)`${c} && (${(0,sa.checkMissingProp)(e,a,i)})`),(0,sa.reportMissingProp)(e,i),r.else())}}Mr.validatePropertyDeps=rx;function nx(e,t=e.schema){let{gen:r,data:n,keyword:o,it:i}=e,s=r.name("valid");for(let a in t)(0,YV.alwaysValidSchema)(i,t[a])||(r.if((0,sa.propertyInData)(r,n,a,i.opts.ownProperties),()=>{let c=e.subschema({keyword:o,schemaProp:a},s);e.mergeValidEvaluated(c,s)},()=>r.var(s,!0)),e.ok(s))}Mr.validateSchemaDeps=nx;Mr.default=QV});var ix=v(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});var ox=B(),XV=oe(),ZV={message:"property name must be valid",params:({params:e})=>(0,ox._)`{propertyName: ${e.propertyName}}`},eB={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:ZV,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,XV.alwaysValidSchema)(o,r))return;let i=t.name("valid");t.forIn("key",n,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},i),t.if((0,ox.not)(i),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(i)}};lm.default=eB});var dm=v(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});var rp=Jt(),gr=B(),tB=St(),np=oe(),rB={message:"must NOT have additional properties",params:({params:e})=>(0,gr._)`{additionalProperty: ${e.additionalProperty}}`},nB={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:rB,code(e){let{gen:t,parentSchema:r,data:n,errsCount:o,it:i}=e,{schema:s=i.opts.defaultAdditionalProperties}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=i;if(i.props=!0,c.removeAdditional!=="all"&&(0,np.alwaysValidSchema)(i,s))return;let p=(0,rp.allSchemaProperties)(r.properties),l=(0,rp.allSchemaProperties)(r.patternProperties);u(),e.ok((0,gr._)`${o} === ${tB.default.errors}`);function u(){t.forIn("key",n,y=>{!p.length&&!l.length?m(y):t.if(d(y),()=>m(y))})}function d(y){let g;if(p.length>8){let P=(0,np.schemaRefOrVal)(i,r.properties,"properties");g=(0,rp.isOwnProperty)(t,P,y)}else p.length?g=(0,gr.or)(...p.map(P=>(0,gr._)`${y} === ${P}`)):g=gr.nil;return l.length&&(g=(0,gr.or)(g,...l.map(P=>(0,gr._)`${(0,rp.usePattern)(e,P)}.test(${y})`))),(0,gr.not)(g)}function f(y){t.code((0,gr._)`delete ${n}[${y}]`)}function m(y){if(c.removeAdditional==="all"||c.removeAdditional&&s===!1){f(y);return}if(s===!1){e.setParams({additionalProperty:y}),e.error(),a||t.break();return}if(typeof s=="object"&&!(0,np.alwaysValidSchema)(i,s)){let g=t.name("valid");c.removeAdditional==="failing"?(h(y,g,!1),t.if((0,gr.not)(g),()=>{e.reset(),f(y)})):(h(y,g),a||t.if((0,gr.not)(g),()=>t.break()))}}function h(y,g,P){let b={keyword:"additionalProperties",dataProp:y,dataPropType:np.Type.Str};P===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(b,g)}}};um.default=nB});var cx=v(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});var oB=bi(),sx=Jt(),fm=oe(),ax=dm(),iB={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:i}=e;(i.opts.removeAdditional==="all"&&n.additionalProperties===void 0||i.opts.defaultAdditionalProperties===!1)&&ax.default.code(new oB.KeywordCxt(i,ax.default,"additionalProperties"));let s=(0,sx.allSchemaProperties)(r);for(let u of s)i.definedProperties.add(u);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=fm.mergeEvaluated.props(t,(0,fm.toHash)(s),i.props));let a=s.filter(u=>!(0,fm.alwaysValidSchema)(i,r[u]));if(a.length===0)return;let c=t.name("valid");for(let u of a)p(u)?l(u):(t.if((0,sx.propertyInData)(t,o,u,i.opts.ownProperties)),l(u),i.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(u),e.ok(c);function p(u){return i.opts.useDefaults&&!i.compositeRule&&r[u].default!==void 0}function l(u){e.subschema({keyword:"properties",schemaProp:u,dataProp:u},c)}}};mm.default=iB});var dx=v(hm=>{"use strict";Object.defineProperty(hm,"__esModule",{value:!0});var px=Jt(),op=B(),lx=oe(),ux=oe(),sB={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:o,it:i}=e,{opts:s}=i,a=(0,px.allSchemaProperties)(r),c=a.filter(h=>(0,lx.alwaysValidSchema)(i,r[h]));if(a.length===0||c.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;let p=s.strictSchema&&!s.allowMatchingProperties&&o.properties,l=t.name("valid");i.props!==!0&&!(i.props instanceof op.Name)&&(i.props=(0,ux.evaluatedPropsToName)(t,i.props));let{props:u}=i;d();function d(){for(let h of a)p&&f(h),i.allErrors?m(h):(t.var(l,!0),m(h),t.if(l))}function f(h){for(let y in p)new RegExp(h).test(y)&&(0,lx.checkStrictMode)(i,`property ${y} matches pattern ${h} (use allowMatchingProperties)`)}function m(h){t.forIn("key",n,y=>{t.if((0,op._)`${(0,px.usePattern)(e,h)}.test(${y})`,()=>{let g=c.includes(h);g||e.subschema({keyword:"patternProperties",schemaProp:h,dataProp:y,dataPropType:ux.Type.Str},l),i.opts.unevaluated&&u!==!0?t.assign((0,op._)`${u}[${y}]`,!0):!g&&!i.allErrors&&t.if((0,op.not)(l),()=>t.break())})})}}};hm.default=sB});var fx=v(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});var aB=oe(),cB={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,aB.alwaysValidSchema)(n,r)){e.fail();return}let o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};ym.default=cB});var mx=v(gm=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0});var pB=Jt(),lB={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:pB.validateUnion,error:{message:"must match a schema in anyOf"}};gm.default=lB});var hx=v(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});var ip=B(),uB=oe(),dB={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,ip._)`{passingSchemas: ${e.passing}}`},fB={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:dB,code(e){let{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;let i=r,s=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(p),e.result(s,()=>e.reset(),()=>e.error(!0));function p(){i.forEach((l,u)=>{let d;(0,uB.alwaysValidSchema)(o,l)?t.var(c,!0):d=e.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},c),u>0&&t.if((0,ip._)`${c} && ${s}`).assign(s,!1).assign(a,(0,ip._)`[${a}, ${u}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,u),d&&e.mergeEvaluated(d,ip.Name)})})}}};bm.default=fB});var yx=v(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});var mB=oe(),hB={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 o=t.name("valid");r.forEach((i,s)=>{if((0,mB.alwaysValidSchema)(n,i))return;let a=e.subschema({keyword:"allOf",schemaProp:s},o,!0);e.ok(o),e.mergeEvaluated(a)})}};vm.default=hB});var vx=v(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});var sp=B(),bx=oe(),yB={message:({params:e})=>(0,sp.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,sp._)`{failingKeyword: ${e.ifClause}}`},gB={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:yB,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,bx.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=gx(n,"then"),i=gx(n,"else");if(!o&&!i)return;let s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),o&&i){let l=t.let("ifClause");e.setParams({ifClause:l}),t.if(a,p("then",l),p("else",l))}else o?t.if(a,p("then")):t.if((0,sp.not)(a),p("else"));e.pass(s,()=>e.error(!0));function c(){let l=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(l)}function p(l,u){return()=>{let d=e.subschema({keyword:l},a);t.assign(s,a),e.mergeValidEvaluated(d,s),u?t.assign(u,(0,sp._)`${l}`):e.setParams({ifClause:l})}}}};function gx(e,t){let r=e.schema[t];return r!==void 0&&!(0,bx.alwaysValidSchema)(e,r)}Sm.default=gB});var Sx=v(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});var bB=oe(),vB={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,bB.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};xm.default=vB});var _m=v(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});var SB=om(),xB=XS(),wB=im(),_B=ex(),PB=tx(),EB=tp(),$B=ix(),AB=dm(),TB=cx(),RB=dx(),OB=fx(),kB=mx(),IB=hx(),CB=yx(),qB=vx(),NB=Sx();function MB(e=!1){let t=[OB.default,kB.default,IB.default,CB.default,qB.default,NB.default,$B.default,AB.default,EB.default,TB.default,RB.default];return e?t.push(xB.default,_B.default):t.push(SB.default,wB.default),t.push(PB.default),t}wm.default=MB});var Em=v(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.dynamicAnchor=void 0;var Pm=B(),jB=St(),xx=Gs(),DB=Xs(),LB={keyword:"$dynamicAnchor",schemaType:"string",code:e=>wx(e,e.schema)};function wx(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let o=(0,Pm._)`${jB.default.dynamicAnchors}${(0,Pm.getProperty)(t)}`,i=n.errSchemaPath==="#"?n.validateName:UB(e);r.if((0,Pm._)`!${o}`,()=>r.assign(o,i))}aa.dynamicAnchor=wx;function UB(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:o,baseId:i,localRefs:s,meta:a}=t.root,{schemaId:c}=n.opts,p=new xx.SchemaEnv({schema:r,schemaId:c,root:o,baseId:i,localRefs:s,meta:a});return xx.compileSchema.call(n,p),(0,DB.getValidate)(e,p)}aa.default=LB});var $m=v(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.dynamicRef=void 0;var _x=B(),zB=St(),Px=Xs(),FB={keyword:"$dynamicRef",schemaType:"string",code:e=>Ex(e,e.schema)};function Ex(e,t){let{gen:r,keyword:n,it:o}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let i=t.slice(1);if(o.allErrors)s();else{let c=r.let("valid",!1);s(c),e.ok(c)}function s(c){if(o.schemaEnv.root.dynamicAnchors[i]){let p=r.let("_v",(0,_x._)`${zB.default.dynamicAnchors}${(0,_x.getProperty)(i)}`);r.if(p,a(p,c),a(o.validateName,c))}else a(o.validateName,c)()}function a(c,p){return p?()=>r.block(()=>{(0,Px.callRef)(e,c),r.let(p,!0)}):()=>(0,Px.callRef)(e,c)}}ca.dynamicRef=Ex;ca.default=FB});var $x=v(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});var VB=Em(),BB=oe(),HB={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,VB.dynamicAnchor)(e,""):(0,BB.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Am.default=HB});var Ax=v(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});var KB=$m(),GB={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,KB.dynamicRef)(e,e.schema)};Tm.default=GB});var Tx=v(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});var WB=Em(),YB=$m(),QB=$x(),JB=Ax(),XB=[WB.default,YB.default,QB.default,JB.default];Rm.default=XB});var Ox=v(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});var Rx=tp(),ZB={keyword:"dependentRequired",type:"object",schemaType:"object",error:Rx.error,code:e=>(0,Rx.validatePropertyDeps)(e)};Om.default=ZB});var kx=v(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});var e3=tp(),t3={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,e3.validateSchemaDeps)(e)};km.default=t3});var Ix=v(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});var r3=oe(),n3={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,r3.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};Im.default=n3});var Cx=v(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});var o3=Ox(),i3=kx(),s3=Ix(),a3=[o3.default,i3.default,s3.default];Cm.default=a3});var Mx=v(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});var sn=B(),qx=oe(),Nx=St(),c3={message:"must NOT have unevaluated properties",params:({params:e})=>(0,sn._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},p3={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:c3,code(e){let{gen:t,schema:r=e.it.opts.defaultUnevaluatedProperties,data:n,errsCount:o,it:i}=e,s=e.schema===void 0&&e.it.opts.defaultUnevaluatedProperties===!1;if(!o)throw new Error("ajv implementation error");let{allErrors:a,props:c}=i;if(c instanceof sn.Name)t.if((0,sn._)`${c} !== true`,()=>t.forIn("key",n,d=>t.if(l(c,d),()=>p(d))));else if(c!==!0){let d=()=>t.forIn("key",n,f=>c===void 0?p(f):t.if(u(c,f),()=>p(f)));s&&i.errorPath.emptyStr()&&!i.compositeRule?t.if((0,sn._)`${Nx.default.isAllOfVariant} === 0`,d):(!i.compositeRule||e.schema!==void 0)&&d()}s||(i.props=!0),e.ok((0,sn._)`${o} === ${Nx.default.errors}`);function p(d){if(r===!1){e.setParams({unevaluatedProperty:d}),e.error(),a||t.break();return}if(!(0,qx.alwaysValidSchema)(i,r)){let f=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:d,dataPropType:qx.Type.Str},f),a||t.if((0,sn.not)(f),()=>t.break())}}function l(d,f){return(0,sn._)`!${d} || !${d}[${f}]`}function u(d,f){let m=[];for(let h in d)d[h]===!0&&m.push((0,sn._)`${f} !== ${h}`);return(0,sn.and)(...m)}}};qm.default=p3});var Dx=v(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});var _o=B(),jx=oe(),l3={message:({params:{len:e}})=>(0,_o.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,_o._)`{limit: ${e}}`},u3={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:l3,code(e){let{gen:t,schema:r,data:n,it:o}=e,i=o.items||0;if(i===!0)return;let s=t.const("len",(0,_o._)`${n}.length`);if(r===!1)e.setParams({len:i}),e.fail((0,_o._)`${s} > ${i}`);else if(typeof r=="object"&&!(0,jx.alwaysValidSchema)(o,r)){let c=t.var("valid",(0,_o._)`${s} <= ${i}`);t.if((0,_o.not)(c),()=>a(c,i)),e.ok(c)}o.items=!0;function a(c,p){t.forRange("i",p,s,l=>{e.subschema({keyword:"unevaluatedItems",dataProp:l,dataPropType:jx.Type.Num},c),o.allErrors||t.if((0,_o.not)(c),()=>t.break())})}}};Nm.default=u3});var jm=v(Mm=>{"use strict";Object.defineProperty(Mm,"__esModule",{value:!0});var d3=Mx(),f3=Dx(),m3=[d3.default,f3.default];Mm.default=m3});var Lx=v(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});var Fe=B(),h3={message:({schemaCode:e})=>(0,Fe.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Fe._)`{format: ${e}}`},y3={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:h3,code(e,t){let{gen:r,data:n,$data:o,schema:i,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:p,schemaEnv:l,self:u}=a;if(!c.validateFormats)return;o?d():f();function d(){let m=r.scopeValue("formats",{ref:u.formats,code:c.code.formats}),h=r.const("fDef",(0,Fe._)`${m}[${s}]`),y=r.let("fType"),g=r.let("format");r.if((0,Fe._)`typeof ${h} == "object" && !(${h} instanceof RegExp)`,()=>r.assign(y,(0,Fe._)`${h}.type || "string"`).assign(g,(0,Fe._)`${h}.validate`),()=>r.assign(y,(0,Fe._)`"string"`).assign(g,h)),e.fail$data((0,Fe.or)(P(),b()));function P(){return c.strictSchema===!1?Fe.nil:(0,Fe._)`${s} && !${g}`}function b(){let x=l.$async?(0,Fe._)`(${h}.async ? await ${g}(${n}) : ${g}(${n}))`:(0,Fe._)`${g}(${n})`,S=(0,Fe._)`(typeof ${g} == "function" ? ${x} : ${g}.test(${n}))`;return(0,Fe._)`${g} && ${g} !== true && ${y} === ${t} && !${S}`}}function f(){let m=u.formats[i];if(!m){P();return}if(m===!0)return;let[h,y,g]=b(m);h===t&&e.pass(x());function P(){if(c.strictSchema===!1){u.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${i}" ignored in schema at path "${p}"`}}function b(S){let w=S instanceof RegExp?(0,Fe.regexpCode)(S):c.code.formats?(0,Fe._)`${c.code.formats}${(0,Fe.getProperty)(i)}`:void 0,T=r.scopeValue("formats",{key:i,ref:S,code:w});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,Fe._)`${T}.validate`]:["string",S,T]}function x(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!l.$async)throw new Error("async format in sync schema");return(0,Fe._)`await ${g}(${n})`}return typeof y=="function"?(0,Fe._)`${g}(${n})`:(0,Fe._)`${g}.test(${n})`}}}};Dm.default=y3});var Um=v(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0});var g3=Lx(),b3=[g3.default];Lm.default=b3});var Ux=v(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.contentVocabulary=Pi.metadataVocabulary=void 0;Pi.metadataVocabulary=["title","description","default","deprecated","examples"];Pi.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Fx=v(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});var v3=kS(),S3=rm(),x3=_m(),w3=Tx(),_3=Cx(),P3=jm(),E3=Um(),zx=Ux(),$3=[w3.default,v3.default,S3.default,(0,x3.default)(!0),E3.default,zx.metadataVocabulary,zx.contentVocabulary,_3.default,P3.default];zm.default=$3});var Bx=v(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.DiscrError=void 0;var Vx;(function(e){e.Tag="tag",e.Mapping="mapping"})(Vx||(ap.DiscrError=Vx={}))});var Bm=v(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0});var Ei=B(),Fm=Bx(),Hx=Gs(),A3=vi(),T3=oe(),R3={message:({params:{discrError:e,tagName:t}})=>e===Fm.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,Ei._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`};function O3(e,t){var r;if(!(!e.allOf||!Array.isArray(e.allOf))){for(let n of e.allOf)if(!((r=n?.properties)===null||r===void 0)&&r[t])return n.properties[t]}}var k3={keyword:"discriminator",type:"object",schemaType:"object",error:R3,code(e){let{gen:t,data:r,schema:n,parentSchema:o,it:i}=e,s=o.oneOf?"oneOf":o.anyOf?"anyOf":void 0;if(!i.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=o[s],p=t.let("valid",!1),l=t.const("tag",(0,Ei._)`${r}${(0,Ei.getProperty)(a)}`);t.if((0,Ei._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:Fm.DiscrError.Tag,tag:l,tagName:a})),e.ok(p);function u(){let m=f();t.if(!1);for(let h in m)t.elseIf((0,Ei._)`${l} === ${h}`),t.assign(p,d(m[h]));t.else(),e.error(!1,{discrError:Fm.DiscrError.Mapping,tag:l,tagName:a}),t.endIf()}function d(m){let h=t.name("valid"),y=e.subschema({keyword:s,schemaProp:m},h);return e.mergeEvaluated(y,Ei.Name),h}function f(){var m;let h={},y=P(o),g=!0;for(let S=0;S<c.length;S++){let w=c[S],T=w?.$ref;if(T&&n.mapping){let{mapping:$}=n,E=Object.keys($).filter(G=>$[G]===w.$ref);if(E.length){for(let G of E)x(G,S);continue}}if(T&&!(0,T3.schemaHasRulesButRef)(w,i.self.RULES)&&(w=Hx.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,T),w instanceof Hx.SchemaEnv&&(w=w.schema),w===void 0))throw new A3.default(i.opts.uriResolver,i.baseId,T);let _=(m=w?.properties)===null||m===void 0?void 0:m[a];if(!_&&w?.allOf&&(_=O3(w,a)),typeof _!="object")throw new Error(`discriminator: ${s} subschemas (or referenced schemas) must have "properties/${a}" or match mapping`);g=g&&(y||P(w)),b(_,S)}if(!g)throw new Error(`discriminator: "${a}" must be required`);return h;function P(S){if(Array.isArray(S.required)&&S.required.includes(a))return!0;if(S.allOf&&Array.isArray(S.allOf))for(let w of S.allOf){let T=w;if(Array.isArray(T.required)&&T.required.includes(a))return!0}return!1}function b(S,w){if(S.const)x(S.const,w);else if(S.enum)for(let T of S.enum)x(T,w);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function x(S,w){if(typeof S!="string"||S in h)throw new Error(`discriminator: "${a}" values must be unique strings`);h[S]=w}}}};Vm.default=k3});var Kx=v((rZ,I3)=>{I3.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 Gx=v((nZ,C3)=>{C3.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 Wx=v((oZ,q3)=>{q3.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 Yx=v((iZ,N3)=>{N3.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 Qx=v((sZ,M3)=>{M3.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 Jx=v((aZ,j3)=>{j3.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 Xx=v((cZ,D3)=>{D3.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 Zx=v((pZ,L3)=>{L3.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 ew=v(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});var U3=Kx(),z3=Gx(),F3=Wx(),V3=Yx(),B3=Qx(),H3=Jx(),K3=Xx(),G3=Zx(),W3=["/properties"];function Y3(e){return[U3,z3,F3,V3,B3,t(this,H3),K3,t(this,G3)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,W3):n}}Hm.default=Y3});var Wm=v((Ie,Gm)=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.MissingRefError=Ie.ValidationError=Ie.CodeGen=Ie.Name=Ie.nil=Ie.stringify=Ie.str=Ie._=Ie.KeywordCxt=Ie.Ajv2020=void 0;var Q3=qf(),J3=Fx(),X3=Bm(),Z3=ew(),Km="https://json-schema.org/draft/2020-12/schema",$i=class extends Q3.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),J3.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(X3.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(Z3.default.call(this,t),this.refs["http://json-schema.org/schema"]=Km)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Km)?Km:void 0)}};Ie.Ajv2020=$i;Gm.exports=Ie=$i;Gm.exports.Ajv2020=$i;Object.defineProperty(Ie,"__esModule",{value:!0});Ie.default=$i;var eH=bi();Object.defineProperty(Ie,"KeywordCxt",{enumerable:!0,get:function(){return eH.KeywordCxt}});var Ai=B();Object.defineProperty(Ie,"_",{enumerable:!0,get:function(){return Ai._}});Object.defineProperty(Ie,"str",{enumerable:!0,get:function(){return Ai.str}});Object.defineProperty(Ie,"stringify",{enumerable:!0,get:function(){return Ai.stringify}});Object.defineProperty(Ie,"nil",{enumerable:!0,get:function(){return Ai.nil}});Object.defineProperty(Ie,"Name",{enumerable:!0,get:function(){return Ai.Name}});Object.defineProperty(Ie,"CodeGen",{enumerable:!0,get:function(){return Ai.CodeGen}});var tH=Ks();Object.defineProperty(Ie,"ValidationError",{enumerable:!0,get:function(){return tH.default}});var rH=vi();Object.defineProperty(Ie,"MissingRefError",{enumerable:!0,get:function(){return rH.default}})});var Mw=v((Ete,Nw)=>{"use strict";Nw.exports=(function(){function e(t,r,n,o,i){return t<r||n<r?t>n?n+1:t+1:o===i?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 o=t.length,i=r.length;o>0&&t.charCodeAt(o-1)===r.charCodeAt(i-1);)o--,i--;for(var s=0;s<o&&t.charCodeAt(s)===r.charCodeAt(s);)s++;if(o-=s,i-=s,o===0||i<3)return i;var a=0,c,p,l,u,d,f,m,h,y,g,P,b,x=[];for(c=0;c<o;c++)x.push(c+1),x.push(t.charCodeAt(s+c));for(var S=x.length-1;a<i-3;)for(y=r.charCodeAt(s+(p=a)),g=r.charCodeAt(s+(l=a+1)),P=r.charCodeAt(s+(u=a+2)),b=r.charCodeAt(s+(d=a+3)),f=a+=4,c=0;c<S;c+=2)m=x[c],h=x[c+1],p=e(m,p,l,y,h),l=e(p,l,u,g,h),u=e(l,u,d,P,h),f=e(u,d,f,b,h),x[c]=f,d=u,u=l,l=p,p=m;for(;a<i;)for(y=r.charCodeAt(s+(p=a)),f=++a,c=0;c<S;c+=2)m=x[c],x[c]=f=e(m,p,f,y,x[c+1]),p=m;return f}})()});var k_=v(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});var Cp=B(),Ln=Cp.operators,ih={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:Ln.LTE,fail:Ln.GT},{okStr:"<",ok:Ln.LT,fail:Ln.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:Ln.GTE,fail:Ln.LT},{okStr:">",ok:Ln.GT,fail:Ln.LTE}]}},y9={message:e=>(0,Cp.str)`must be ${sh(e).okStr} ${e.schemaCode}`,params:e=>(0,Cp._)`{comparison: ${sh(e).okStr}, limit: ${e.schemaCode}}`},g9={keyword:Object.keys(ih),type:"number",schemaType:"number",$data:!0,error:y9,code(e){let{data:t,schemaCode:r}=e;e.fail$data((0,Cp._)`${t} ${sh(e).fail} ${r} || isNaN(${t})`)}};function sh(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[ih[r].exclusive]?1:0;return ih[r].ops[n]}ah.default=g9});var C_=v(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});var I_={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},b9={keyword:Object.keys(I_),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=I_[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};ch.default=b9});var q_=v(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});var v9=Xs(),S9=_m(),x9=jm(),w9=Um(),_9=rm(),P9=k_(),E9=C_(),$9=["title","description","default"],A9=["$schema","id","$defs",{keyword:"$comment"},"definitions",v9.default],T9=[..._9.default.slice(1),P9.default,E9.default],R9=[A9,T9,(0,S9.default)(),w9.default,$9,x9.default];ph.default=R9});var N_=v((Loe,O9)=>{O9.exports={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}}});var D_=v((Ce,j_)=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.MissingRefError=Ce.ValidationError=Ce.CodeGen=Ce.Name=Ce.nil=Ce.stringify=Ce.str=Ce._=Ce.KeywordCxt=Ce.Ajv=void 0;var k9=qf(),I9=q_(),C9=Bm(),M_=N_(),q9=["/properties"],qp="http://json-schema.org/draft-04/schema",ma=class extends k9.default{constructor(t={}){super({...t,schemaId:"id",dynamicRef:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),I9.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(C9.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(M_,q9):M_;this.addMetaSchema(t,qp,!1),this.refs["http://json-schema.org/schema"]=qp}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(qp)?qp:void 0)}};Ce.Ajv=ma;j_.exports=Ce=ma;Object.defineProperty(Ce,"__esModule",{value:!0});Ce.default=ma;var N9=bi();Object.defineProperty(Ce,"KeywordCxt",{enumerable:!0,get:function(){return N9.KeywordCxt}});var Li=B();Object.defineProperty(Ce,"_",{enumerable:!0,get:function(){return Li._}});Object.defineProperty(Ce,"str",{enumerable:!0,get:function(){return Li.str}});Object.defineProperty(Ce,"stringify",{enumerable:!0,get:function(){return Li.stringify}});Object.defineProperty(Ce,"nil",{enumerable:!0,get:function(){return Li.nil}});Object.defineProperty(Ce,"Name",{enumerable:!0,get:function(){return Li.Name}});Object.defineProperty(Ce,"CodeGen",{enumerable:!0,get:function(){return Li.CodeGen}});var M9=Ks();Object.defineProperty(Ce,"ValidationError",{enumerable:!0,get:function(){return M9.default}});var j9=vi();Object.defineProperty(Ce,"MissingRefError",{enumerable:!0,get:function(){return j9.default}})});var K_=v(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.formatNames=Hr.fastFormats=Hr.fullFormats=void 0;function Br(e,t){return{validate:e,compare:t}}Hr.fullFormats={date:Br(F_,fh),time:Br(uh(!0),mh),"date-time":Br(L_(!0),B_),"iso-time":Br(uh(),V_),"iso-date-time":Br(L_(),H_),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:V9,"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|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\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:Q9,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:B9,int32:{type:"number",validate:G9},int64:{type:"number",validate:W9},float:{type:"number",validate:z_},double:{type:"number",validate:z_},password:!0,binary:!0};Hr.fastFormats={...Hr.fullFormats,date:Br(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,fh),time:Br(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,mh),"date-time":Br(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,B_),"iso-time":Br(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,V_),"iso-date-time":Br(/^\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,H_),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};Hr.formatNames=Object.keys(Hr.fullFormats);function D9(e){return e%4===0&&(e%100!==0||e%400===0)}var L9=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,U9=[0,31,28,31,30,31,30,31,31,30,31,30,31];function F_(e){let t=L9.exec(e);if(!t)return!1;let r=+t[1],n=+t[2],o=+t[3];return n>=1&&n<=12&&o>=1&&o<=(n===2&&D9(r)?29:U9[n])}function fh(e,t){if(e&&t)return e>t?1:e<t?-1:0}var lh=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function uh(e){return function(r){let n=lh.exec(r);if(!n)return!1;let o=+n[1],i=+n[2],s=+n[3],a=n[4],c=n[5]==="-"?-1:1,p=+(n[6]||0),l=+(n[7]||0);if(p>23||l>59||e&&!a)return!1;if(o<=23&&i<=59&&s<60)return!0;let u=i-l*c,d=o-p*c-(u<0?1:0);return(d===23||d===-1)&&(u===59||u===-1)&&s<61}}function mh(e,t){if(!(e&&t))return;let r=new Date("2020-01-01T"+e).valueOf(),n=new Date("2020-01-01T"+t).valueOf();if(r&&n)return r-n}function V_(e,t){if(!(e&&t))return;let r=lh.exec(e),n=lh.exec(t);if(r&&n)return e=r[1]+r[2]+r[3],t=n[1]+n[2]+n[3],e>t?1:e<t?-1:0}var dh=/t|\s/i;function L_(e){let t=uh(e);return function(n){let o=n.split(dh);return o.length===2&&F_(o[0])&&t(o[1])}}function B_(e,t){if(!(e&&t))return;let r=new Date(e).valueOf(),n=new Date(t).valueOf();if(r&&n)return r-n}function H_(e,t){if(!(e&&t))return;let[r,n]=e.split(dh),[o,i]=t.split(dh),s=fh(r,o);if(s!==void 0)return s||mh(n,i)}var z9=/\/|:/,F9=/^(?:[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 V9(e){return z9.test(e)&&F9.test(e)}var U_=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function B9(e){return U_.lastIndex=0,U_.test(e)}var H9=-(2**31),K9=2**31-1;function G9(e){return Number.isInteger(e)&&e<=K9&&e>=H9}function W9(e){return Number.isInteger(e)}function z_(){return!0}var Y9=/[^\\]\\Z/;function Q9(e){if(Y9.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var ga=v(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.regexpCode=be.getEsmExportName=be.getProperty=be.safeStringify=be.stringify=be.strConcat=be.addCodeArg=be.str=be._=be.nil=be._Code=be.Name=be.IDENTIFIER=be._CodeOrName=void 0;var ha=class{};be._CodeOrName=ha;be.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var To=class extends ha{constructor(t){if(super(),!be.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}}};be.Name=To;var rr=class extends ha{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 To&&(r[n.str]=(r[n.str]||0)+1),r),{})}};be._Code=rr;be.nil=new rr("");function G_(e,...t){let r=[e[0]],n=0;for(;n<t.length;)yh(r,t[n]),r.push(e[++n]);return new rr(r)}be._=G_;var hh=new rr("+");function W_(e,...t){let r=[ya(e[0])],n=0;for(;n<t.length;)r.push(hh),yh(r,t[n]),r.push(hh,ya(e[++n]));return J9(r),new rr(r)}be.str=W_;function yh(e,t){t instanceof rr?e.push(...t._items):t instanceof To?e.push(t):e.push(eK(t))}be.addCodeArg=yh;function J9(e){let t=1;for(;t<e.length-1;){if(e[t]===hh){let r=X9(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function X9(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof To||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 To))return`"${e}${t.slice(1)}`}function Z9(e,t){return t.emptyStr()?e:e.emptyStr()?t:W_`${e}${t}`}be.strConcat=Z9;function eK(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ya(Array.isArray(e)?e.join(","):e)}function tK(e){return new rr(ya(e))}be.stringify=tK;function ya(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}be.safeStringify=ya;function rK(e){return typeof e=="string"&&be.IDENTIFIER.test(e)?new rr(`.${e}`):G_`[${e}]`}be.getProperty=rK;function nK(e){if(typeof e=="string"&&be.IDENTIFIER.test(e))return new rr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}be.getEsmExportName=nK;function oK(e){return new rr(e.toString())}be.regexpCode=oK});var vh=v(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.ValueScope=qt.ValueScopeName=qt.Scope=qt.varKinds=qt.UsedValueState=void 0;var Ct=ga(),gh=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},Np;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Np||(qt.UsedValueState=Np={}));qt.varKinds={const:new Ct.Name("const"),let:new Ct.Name("let"),var:new Ct.Name("var")};var Mp=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Ct.Name?t:this.name(t)}name(t){return new Ct.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=Mp;var jp=class extends Ct.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Ct._)`.${new Ct.Name(r)}[${n}]`}};qt.ValueScopeName=jp;var iK=(0,Ct._)`\n`,bh=class extends Mp{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?iK:Ct.nil}}get(){return this._scope}name(t){return new jp(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 o=this.toName(t),{prefix:i}=o,s=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[i];if(a){let l=a.get(s);if(l)return l}else a=this._values[i]=new Map;a.set(s,o);let c=this._scope[i]||(this._scope[i]=[]),p=c.length;return c[p]=r.ref,o.setValue(r,{property:i,itemIndex:p}),o}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,Ct._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},r,n)}_reduceValues(t,r,n={},o){let i=Ct.nil;for(let s in t){let a=t[s];if(!a)continue;let c=n[s]=n[s]||new Map;a.forEach(p=>{if(c.has(p))return;c.set(p,Np.Started);let l=r(p);if(l){let u=this.opts.es5?qt.varKinds.var:qt.varKinds.const;i=(0,Ct._)`${i}${u} ${p} = ${l};${this.opts._n}`}else if(l=o?.(p))i=(0,Ct._)`${i}${l}${this.opts._n}`;else throw new gh(p);c.set(p,Np.Completed)})}return i}};qt.ValueScope=bh});var Z=v(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.or=re.and=re.not=re.CodeGen=re.operators=re.varKinds=re.ValueScopeName=re.ValueScope=re.Scope=re.Name=re.regexpCode=re.stringify=re.getProperty=re.nil=re.strConcat=re.str=re._=void 0;var ue=ga(),br=vh(),Un=ga();Object.defineProperty(re,"_",{enumerable:!0,get:function(){return Un._}});Object.defineProperty(re,"str",{enumerable:!0,get:function(){return Un.str}});Object.defineProperty(re,"strConcat",{enumerable:!0,get:function(){return Un.strConcat}});Object.defineProperty(re,"nil",{enumerable:!0,get:function(){return Un.nil}});Object.defineProperty(re,"getProperty",{enumerable:!0,get:function(){return Un.getProperty}});Object.defineProperty(re,"stringify",{enumerable:!0,get:function(){return Un.stringify}});Object.defineProperty(re,"regexpCode",{enumerable:!0,get:function(){return Un.regexpCode}});Object.defineProperty(re,"Name",{enumerable:!0,get:function(){return Un.Name}});var zp=vh();Object.defineProperty(re,"Scope",{enumerable:!0,get:function(){return zp.Scope}});Object.defineProperty(re,"ValueScope",{enumerable:!0,get:function(){return zp.ValueScope}});Object.defineProperty(re,"ValueScopeName",{enumerable:!0,get:function(){return zp.ValueScopeName}});Object.defineProperty(re,"varKinds",{enumerable:!0,get:function(){return zp.varKinds}});re.operators={GT:new ue._Code(">"),GTE:new ue._Code(">="),LT:new ue._Code("<"),LTE:new ue._Code("<="),EQ:new ue._Code("==="),NEQ:new ue._Code("!=="),NOT:new ue._Code("!"),OR:new ue._Code("||"),AND:new ue._Code("&&"),ADD:new ue._Code("+")};var un=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},Sh=class extends un{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?br.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=zi(this.rhs,t,r)),this}get names(){return this.rhs instanceof ue._CodeOrName?this.rhs.names:{}}},Dp=class extends un{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 ue.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=zi(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ue.Name?{}:{...this.lhs.names};return Up(t,this.rhs)}},xh=class extends Dp{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},wh=class extends un{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},_h=class extends un{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},Ph=class extends un{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},Eh=class extends un{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=zi(this.code,t,r),this}get names(){return this.code instanceof ue._CodeOrName?this.code.names:{}}},ba=class extends un{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,o=n.length;for(;o--;){let i=n[o];i.optimizeNames(t,r)||(sK(t,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>ko(t,r.names),{})}},dn=class extends ba{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},$h=class extends ba{},Ui=class extends dn{};Ui.kind="else";var Ro=class e extends dn{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 Ui(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(Y_(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=zi(this.condition,t,r),this}get names(){let t=super.names;return Up(t,this.condition),this.else&&ko(t,this.else.names),t}};Ro.kind="if";var Oo=class extends dn{};Oo.kind="for";var Ah=class extends Oo{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=zi(this.iteration,t,r),this}get names(){return ko(super.names,this.iteration.names)}},Th=class extends Oo{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?br.varKinds.var:this.varKind,{name:n,from:o,to:i}=this;return`for(${r} ${n}=${o}; ${n}<${i}; ${n}++)`+super.render(t)}get names(){let t=Up(super.names,this.from);return Up(t,this.to)}},Lp=class extends Oo{constructor(t,r,n,o){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=o}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=zi(this.iterable,t,r),this}get names(){return ko(super.names,this.iterable.names)}},va=class extends dn{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)}};va.kind="func";var Sa=class extends ba{render(t){return"return "+super.render(t)}};Sa.kind="return";var Rh=class extends dn{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,o;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(o=this.finally)===null||o===void 0||o.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&ko(t,this.catch.names),this.finally&&ko(t,this.finally.names),t}},xa=class extends dn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};xa.kind="catch";var wa=class extends dn{render(t){return"finally"+super.render(t)}};wa.kind="finally";var Oh=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
15
|
-
`:""},this._extScope=t,this._scope=new br.Scope({parent:t}),this._nodes=[new $h]}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,o){let i=this._scope.toName(r);return n!==void 0&&o&&(this._constants[i.str]=n),this._leafNode(new Sh(t,i,n)),i}const(t,r,n){return this._def(br.varKinds.const,t,r,n)}let(t,r,n){return this._def(br.varKinds.let,t,r,n)}var(t,r,n){return this._def(br.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Dp(t,r,n))}add(t,r){return this._leafNode(new xh(t,re.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ue.nil&&this._leafNode(new Eh(t)),this}object(...t){let r=["{"];for(let[n,o]of t)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,ue.addCodeArg)(r,o));return r.push("}"),new ue._Code(r)}if(t,r,n){if(this._blockNode(new Ro(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 Ro(t))}else(){return this._elseNode(new Ui)}endIf(){return this._endBlockNode(Ro,Ui)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Ah(t),r)}forRange(t,r,n,o,i=this.opts.es5?br.varKinds.var:br.varKinds.let){let s=this._scope.toName(t);return this._for(new Th(i,s,r,n),()=>o(s))}forOf(t,r,n,o=br.varKinds.const){let i=this._scope.toName(t);if(this.opts.es5){let s=r instanceof ue.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ue._)`${s}.length`,a=>{this.var(i,(0,ue._)`${s}[${a}]`),n(i)})}return this._for(new Lp("of",o,i,r),()=>n(i))}forIn(t,r,n,o=this.opts.es5?br.varKinds.var:br.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ue._)`Object.keys(${r})`,n);let i=this._scope.toName(t);return this._for(new Lp("in",o,i,r),()=>n(i))}endFor(){return this._endBlockNode(Oo)}label(t){return this._leafNode(new wh(t))}break(t){return this._leafNode(new _h(t))}return(t){let r=new Sa;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Sa)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new Rh;if(this._blockNode(o),this.code(t),r){let i=this.name("e");this._currNode=o.catch=new xa(i),r(i)}return n&&(this._currNode=o.finally=new wa,this.code(n)),this._endBlockNode(xa,wa)}throw(t){return this._leafNode(new Ph(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=ue.nil,n,o){return this._blockNode(new va(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(va)}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 Ro))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}};re.CodeGen=Oh;function ko(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function Up(e,t){return t instanceof ue._CodeOrName?ko(e,t.names):e}function zi(e,t,r){if(e instanceof ue.Name)return n(e);if(!o(e))return e;return new ue._Code(e._items.reduce((i,s)=>(s instanceof ue.Name&&(s=n(s)),s instanceof ue._Code?i.push(...s._items):i.push(s),i),[]));function n(i){let s=r[i.str];return s===void 0||t[i.str]!==1?i:(delete t[i.str],s)}function o(i){return i instanceof ue._Code&&i._items.some(s=>s instanceof ue.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function sK(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function Y_(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ue._)`!${kh(e)}`}re.not=Y_;var aK=Q_(re.operators.AND);function cK(...e){return e.reduce(aK)}re.and=cK;var pK=Q_(re.operators.OR);function lK(...e){return e.reduce(pK)}re.or=lK;function Q_(e){return(t,r)=>t===ue.nil?r:r===ue.nil?t:(0,ue._)`${kh(t)} ${e} ${kh(r)}`}function kh(e){return e instanceof ue.Name?e:(0,ue._)`(${e})`}});var he=v(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.checkStrictMode=ie.getErrorPath=ie.Type=ie.useFunc=ie.setEvaluated=ie.evaluatedPropsToName=ie.mergeEvaluated=ie.eachItem=ie.unescapeJsonPointer=ie.escapeJsonPointer=ie.escapeFragment=ie.unescapeFragment=ie.schemaRefOrVal=ie.schemaHasRulesButRef=ie.schemaHasRules=ie.checkUnknownRules=ie.alwaysValidSchema=ie.toHash=void 0;var Te=Z(),uK=ga();function dK(e){let t={};for(let r of e)t[r]=!0;return t}ie.toHash=dK;function fK(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Z_(e,t),!eP(t,e.self.RULES.all))}ie.alwaysValidSchema=fK;function Z_(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let o=n.RULES.keywords;for(let i in t)o[i]||nP(e,`unknown keyword: "${i}"`)}ie.checkUnknownRules=Z_;function eP(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}ie.schemaHasRules=eP;function mK(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}ie.schemaHasRulesButRef=mK;function hK({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Te._)`${r}`}return(0,Te._)`${e}${t}${(0,Te.getProperty)(n)}`}ie.schemaRefOrVal=hK;function yK(e){return tP(decodeURIComponent(e))}ie.unescapeFragment=yK;function gK(e){return encodeURIComponent(Ch(e))}ie.escapeFragment=gK;function Ch(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}ie.escapeJsonPointer=Ch;function tP(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}ie.unescapeJsonPointer=tP;function bK(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}ie.eachItem=bK;function J_({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,i,s,a)=>{let c=s===void 0?i:s instanceof Te.Name?(i instanceof Te.Name?e(o,i,s):t(o,i,s),s):i instanceof Te.Name?(t(o,s,i),i):r(i,s);return a===Te.Name&&!(c instanceof Te.Name)?n(o,c):c}}ie.mergeEvaluated={props:J_({mergeNames:(e,t,r)=>e.if((0,Te._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Te._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Te._)`${r} || {}`).code((0,Te._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Te._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Te._)`${r} || {}`),qh(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:rP}),items:J_({mergeNames:(e,t,r)=>e.if((0,Te._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Te._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Te._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Te._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function rP(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Te._)`{}`);return t!==void 0&&qh(e,r,t),r}ie.evaluatedPropsToName=rP;function qh(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Te._)`${t}${(0,Te.getProperty)(n)}`,!0))}ie.setEvaluated=qh;var X_={};function vK(e,t){return e.scopeValue("func",{ref:t,code:X_[t.code]||(X_[t.code]=new uK._Code(t.code))})}ie.useFunc=vK;var Ih;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Ih||(ie.Type=Ih={}));function SK(e,t,r){if(e instanceof Te.Name){let n=t===Ih.Num;return r?n?(0,Te._)`"[" + ${e} + "]"`:(0,Te._)`"['" + ${e} + "']"`:n?(0,Te._)`"/" + ${e}`:(0,Te._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Te.getProperty)(e).toString():"/"+Ch(e)}ie.getErrorPath=SK;function nP(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}ie.checkStrictMode=nP});var fn=v(Nh=>{"use strict";Object.defineProperty(Nh,"__esModule",{value:!0});var mt=Z(),xK={data:new mt.Name("data"),valCxt:new mt.Name("valCxt"),instancePath:new mt.Name("instancePath"),parentData:new mt.Name("parentData"),parentDataProperty:new mt.Name("parentDataProperty"),rootData:new mt.Name("rootData"),dynamicAnchors:new mt.Name("dynamicAnchors"),vErrors:new mt.Name("vErrors"),errors:new mt.Name("errors"),this:new mt.Name("this"),self:new mt.Name("self"),scope:new mt.Name("scope"),json:new mt.Name("json"),jsonPos:new mt.Name("jsonPos"),jsonLen:new mt.Name("jsonLen"),jsonPart:new mt.Name("jsonPart")};Nh.default=xK});var _a=v(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.extendErrors=ht.resetErrorsCount=ht.reportExtraError=ht.reportError=ht.keyword$DataError=ht.keywordError=void 0;var ye=Z(),Fp=he(),Pt=fn();ht.keywordError={message:({keyword:e})=>(0,ye.str)`must pass "${e}" keyword validation`};ht.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,ye.str)`"${e}" keyword must be ${t} ($data)`:(0,ye.str)`"${e}" keyword is invalid ($data)`};function wK(e,t=ht.keywordError,r,n){let{it:o}=e,{gen:i,compositeRule:s,allErrors:a}=o,c=sP(e,t,r);n??(s||a)?oP(i,c):iP(o,(0,ye._)`[${c}]`)}ht.reportError=wK;function _K(e,t=ht.keywordError,r){let{it:n}=e,{gen:o,compositeRule:i,allErrors:s}=n,a=sP(e,t,r);oP(o,a),i||s||iP(n,Pt.default.vErrors)}ht.reportExtraError=_K;function PK(e,t){e.assign(Pt.default.errors,t),e.if((0,ye._)`${Pt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,ye._)`${Pt.default.vErrors}.length`,t),()=>e.assign(Pt.default.vErrors,null)))}ht.resetErrorsCount=PK;function EK({gen:e,keyword:t,schemaValue:r,data:n,errsCount:o,it:i}){if(o===void 0)throw new Error("ajv implementation error");let s=e.name("err");e.forRange("i",o,Pt.default.errors,a=>{e.const(s,(0,ye._)`${Pt.default.vErrors}[${a}]`),e.if((0,ye._)`${s}.instancePath === undefined`,()=>e.assign((0,ye._)`${s}.instancePath`,(0,ye.strConcat)(Pt.default.instancePath,i.errorPath))),e.assign((0,ye._)`${s}.schemaPath`,(0,ye.str)`${i.errSchemaPath}/${t}`),i.opts.verbose&&(e.assign((0,ye._)`${s}.schema`,r),e.assign((0,ye._)`${s}.data`,n))})}ht.extendErrors=EK;function oP(e,t){let r=e.const("err",t);e.if((0,ye._)`${Pt.default.vErrors} === null`,()=>e.assign(Pt.default.vErrors,(0,ye._)`[${r}]`),(0,ye._)`${Pt.default.vErrors}.push(${r})`),e.code((0,ye._)`${Pt.default.errors}++`)}function iP(e,t){let{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,ye._)`new ${e.ValidationError}(${t})`):(r.assign((0,ye._)`${n}.errors`,t),r.return(!1))}var Io={keyword:new ye.Name("keyword"),schemaPath:new ye.Name("schemaPath"),params:new ye.Name("params"),propertyName:new ye.Name("propertyName"),message:new ye.Name("message"),schema:new ye.Name("schema"),parentSchema:new ye.Name("parentSchema")};function sP(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,ye._)`{}`:$K(e,t,r)}function $K(e,t,r={}){let{gen:n,it:o}=e,i=[AK(o,r),TK(e,r)];return RK(e,t,i),n.object(...i)}function AK({errorPath:e},{instancePath:t}){let r=t?(0,ye.str)`${e}${(0,Fp.getErrorPath)(t,Fp.Type.Str)}`:e;return[Pt.default.instancePath,(0,ye.strConcat)(Pt.default.instancePath,r)]}function TK({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let o=n?t:(0,ye.str)`${t}/${e}`;return r&&(o=(0,ye.str)`${o}${(0,Fp.getErrorPath)(r,Fp.Type.Str)}`),[Io.schemaPath,o]}function RK(e,{params:t,message:r},n){let{keyword:o,data:i,schemaValue:s,it:a}=e,{opts:c,propertyName:p,topSchemaRef:l,schemaPath:u}=a;n.push([Io.keyword,o],[Io.params,typeof t=="function"?t(e):t||(0,ye._)`{}`]),c.messages&&n.push([Io.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([Io.schema,s],[Io.parentSchema,(0,ye._)`${l}${u}`],[Pt.default.data,i]),p&&n.push([Io.propertyName,p])}});var cP=v(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.boolOrEmptySchema=Fi.topBoolOrEmptySchema=void 0;var OK=_a(),kK=Z(),IK=fn(),CK={message:"boolean schema is false"};function qK(e){let{gen:t,schema:r,validateName:n}=e;r===!1?aP(e,!1):typeof r=="object"&&r.$async===!0?t.return(IK.default.data):(t.assign((0,kK._)`${n}.errors`,null),t.return(!0))}Fi.topBoolOrEmptySchema=qK;function NK(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),aP(e)):r.var(t,!0)}Fi.boolOrEmptySchema=NK;function aP(e,t){let{gen:r,data:n}=e,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,OK.reportError)(o,CK,void 0,t)}});var Mh=v(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.getRules=Vi.isJSONType=void 0;var MK=["string","number","integer","boolean","null","object","array"],jK=new Set(MK);function DK(e){return typeof e=="string"&&jK.has(e)}Vi.isJSONType=DK;function LK(){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:{}}}Vi.getRules=LK});var jh=v(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.shouldUseRule=zn.shouldUseGroup=zn.schemaHasRulesForType=void 0;function UK({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&pP(e,n)}zn.schemaHasRulesForType=UK;function pP(e,t){return t.rules.some(r=>lP(e,r))}zn.shouldUseGroup=pP;function lP(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))}zn.shouldUseRule=lP});var Pa=v(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.reportTypeError=yt.checkDataTypes=yt.checkDataType=yt.coerceAndCheckDataType=yt.getJSONTypes=yt.getSchemaTypes=yt.DataType=void 0;var zK=Mh(),FK=jh(),VK=_a(),X=Z(),uP=he(),Bi;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Bi||(yt.DataType=Bi={}));function BK(e){let t=dP(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}yt.getSchemaTypes=BK;function dP(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(zK.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}yt.getJSONTypes=dP;function HK(e,t){let{gen:r,data:n,opts:o}=e,i=KK(t,o.coerceTypes),s=t.length>0&&!(i.length===0&&t.length===1&&(0,FK.schemaHasRulesForType)(e,t[0]));if(s){let a=Lh(t,n,o.strictNumbers,Bi.Wrong);r.if(a,()=>{i.length?GK(e,t,i):Uh(e)})}return s}yt.coerceAndCheckDataType=HK;var fP=new Set(["string","number","integer","boolean","null"]);function KK(e,t){return t?e.filter(r=>fP.has(r)||t==="array"&&r==="array"):[]}function GK(e,t,r){let{gen:n,data:o,opts:i}=e,s=n.let("dataType",(0,X._)`typeof ${o}`),a=n.let("coerced",(0,X._)`undefined`);i.coerceTypes==="array"&&n.if((0,X._)`${s} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,X._)`${o}[0]`).assign(s,(0,X._)`typeof ${o}`).if(Lh(t,o,i.strictNumbers),()=>n.assign(a,o))),n.if((0,X._)`${a} !== undefined`);for(let p of r)(fP.has(p)||p==="array"&&i.coerceTypes==="array")&&c(p);n.else(),Uh(e),n.endIf(),n.if((0,X._)`${a} !== undefined`,()=>{n.assign(o,a),WK(e,a)});function c(p){switch(p){case"string":n.elseIf((0,X._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,X._)`"" + ${o}`).elseIf((0,X._)`${o} === null`).assign(a,(0,X._)`""`);return;case"number":n.elseIf((0,X._)`${s} == "boolean" || ${o} === null
|
|
16
|
-
|| (${s} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,X._)`+${o}`);return;case"integer":n.elseIf((0,X._)`${s} === "boolean" || ${o} === null
|
|
17
|
-
|| (${s} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,X._)`+${o}`);return;case"boolean":n.elseIf((0,X._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(a,!1).elseIf((0,X._)`${o} === "true" || ${o} === 1`).assign(a,!0);return;case"null":n.elseIf((0,X._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(a,null);return;case"array":n.elseIf((0,X._)`${s} === "string" || ${s} === "number"
|
|
18
|
-
|| ${s} === "boolean" || ${o} === null`).assign(a,(0,X._)`[${o}]`)}}}function WK({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,X._)`${t} !== undefined`,()=>e.assign((0,X._)`${t}[${r}]`,n))}function Dh(e,t,r,n=Bi.Correct){let o=n===Bi.Correct?X.operators.EQ:X.operators.NEQ,i;switch(e){case"null":return(0,X._)`${t} ${o} null`;case"array":i=(0,X._)`Array.isArray(${t})`;break;case"object":i=(0,X._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=s((0,X._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=s();break;default:return(0,X._)`typeof ${t} ${o} ${e}`}return n===Bi.Correct?i:(0,X.not)(i);function s(a=X.nil){return(0,X.and)((0,X._)`typeof ${t} == "number"`,a,r?(0,X._)`isFinite(${t})`:X.nil)}}yt.checkDataType=Dh;function Lh(e,t,r,n){if(e.length===1)return Dh(e[0],t,r,n);let o,i=(0,uP.toHash)(e);if(i.array&&i.object){let s=(0,X._)`typeof ${t} != "object"`;o=i.null?s:(0,X._)`!${t} || ${s}`,delete i.null,delete i.array,delete i.object}else o=X.nil;i.number&&delete i.integer;for(let s in i)o=(0,X.and)(o,Dh(s,t,r,n));return o}yt.checkDataTypes=Lh;var YK={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,X._)`{type: ${e}}`:(0,X._)`{type: ${t}}`};function Uh(e){let t=QK(e);(0,VK.reportError)(t,YK)}yt.reportTypeError=Uh;function QK(e){let{gen:t,data:r,schema:n}=e,o=(0,uP.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var hP=v(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});Vp.assignDefaults=void 0;var Hi=Z(),JK=he();function XK(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)mP(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,i)=>mP(e,i,o.default))}Vp.assignDefaults=XK;function mP(e,t,r){let{gen:n,compositeRule:o,data:i,opts:s}=e;if(r===void 0)return;let a=(0,Hi._)`${i}${(0,Hi.getProperty)(t)}`;if(o){(0,JK.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,Hi._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,Hi._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,Hi._)`${a} = ${(0,Hi.stringify)(r)}`)}});var nr=v(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.validateUnion=Ee.validateArray=Ee.usePattern=Ee.callValidateCode=Ee.schemaProperties=Ee.allSchemaProperties=Ee.noPropertyInData=Ee.propertyInData=Ee.isOwnProperty=Ee.hasPropFunc=Ee.reportMissingProp=Ee.checkMissingProp=Ee.checkReportMissingProp=void 0;var qe=Z(),zh=he(),Fn=fn(),ZK=he();function e4(e,t){let{gen:r,data:n,it:o}=e;r.if(Vh(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,qe._)`${t}`},!0),e.error()})}Ee.checkReportMissingProp=e4;function t4({gen:e,data:t,it:{opts:r}},n,o){return(0,qe.or)(...n.map(i=>(0,qe.and)(Vh(e,t,i,r.ownProperties),(0,qe._)`${o} = ${i}`)))}Ee.checkMissingProp=t4;function r4(e,t){e.setParams({missingProperty:t},!0),e.error()}Ee.reportMissingProp=r4;function yP(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,qe._)`Object.prototype.hasOwnProperty`})}Ee.hasPropFunc=yP;function Fh(e,t,r){return(0,qe._)`${yP(e)}.call(${t}, ${r})`}Ee.isOwnProperty=Fh;function n4(e,t,r,n){let o=(0,qe._)`${t}${(0,qe.getProperty)(r)} !== undefined`;return n?(0,qe._)`${o} && ${Fh(e,t,r)}`:o}Ee.propertyInData=n4;function Vh(e,t,r,n){let o=(0,qe._)`${t}${(0,qe.getProperty)(r)} === undefined`;return n?(0,qe.or)(o,(0,qe.not)(Fh(e,t,r))):o}Ee.noPropertyInData=Vh;function gP(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Ee.allSchemaProperties=gP;function o4(e,t){return gP(t).filter(r=>!(0,zh.alwaysValidSchema)(e,t[r]))}Ee.schemaProperties=o4;function i4({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:i},it:s},a,c,p){let l=p?(0,qe._)`${e}, ${t}, ${n}${o}`:t,u=[[Fn.default.instancePath,(0,qe.strConcat)(Fn.default.instancePath,i)],[Fn.default.parentData,s.parentData],[Fn.default.parentDataProperty,s.parentDataProperty],[Fn.default.rootData,Fn.default.rootData]];s.opts.dynamicRef&&u.push([Fn.default.dynamicAnchors,Fn.default.dynamicAnchors]);let d=(0,qe._)`${l}, ${r.object(...u)}`;return c!==qe.nil?(0,qe._)`${a}.call(${c}, ${d})`:(0,qe._)`${a}(${d})`}Ee.callValidateCode=i4;var s4=(0,qe._)`new RegExp`;function a4({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:o}=t.code,i=o(r,n);return e.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,qe._)`${o.code==="new RegExp"?s4:(0,ZK.useFunc)(e,o)}(${r}, ${n})`})}Ee.usePattern=a4;function c4(e){let{gen:t,data:r,keyword:n,it:o}=e,i=t.name("valid");if(o.allErrors){let a=t.let("valid",!0);return s(()=>t.assign(a,!1)),a}return t.var(i,!0),s(()=>t.break()),i;function s(a){let c=t.const("len",(0,qe._)`${r}.length`);t.forRange("i",0,c,p=>{e.subschema({keyword:n,dataProp:p,dataPropType:zh.Type.Num},i),t.if((0,qe.not)(i),a)})}}Ee.validateArray=c4;function p4(e){let{gen:t,schema:r,keyword:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,zh.alwaysValidSchema)(o,c))&&!o.opts.unevaluated)return;let s=t.let("valid",!1),a=t.name("_valid");t.block(()=>r.forEach((c,p)=>{let l=e.subschema({keyword:n,schemaProp:p,compositeRule:!0},a);t.assign(s,(0,qe._)`${s} || ${a}`),e.mergeValidEvaluated(l,a)||t.if((0,qe.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}Ee.validateUnion=p4});var SP=v(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.validateKeywordUsage=Kr.validSchemaType=Kr.funcKeywordCode=Kr.macroKeywordCode=void 0;var Et=Z(),Co=fn(),l4=nr(),u4=_a();function d4(e,t){let{gen:r,keyword:n,schema:o,parentSchema:i,it:s}=e,a=t.macro.call(s.self,o,i,s),c=vP(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let p=r.name("valid");e.subschema({schema:a,schemaPath:Et.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},p),e.pass(p,()=>e.error(!0))}Kr.macroKeywordCode=d4;function f4(e,t){var r;let{gen:n,keyword:o,schema:i,parentSchema:s,$data:a,it:c}=e;h4(c,t);let p=!a&&t.compile?t.compile.call(c.self,i,s,c):t.validate,l=vP(n,o,p),u=n.let("valid");e.block$data(u,d),e.ok((r=t.valid)!==null&&r!==void 0?r:u);function d(){if(t.errors===!1)h(),t.modifying&&bP(e),y(()=>e.error());else{let g=t.async?f():m();t.modifying&&bP(e),y(()=>m4(e,g))}}function f(){let g=n.let("ruleErrs",null);return n.try(()=>h((0,Et._)`await `),P=>n.assign(u,!1).if((0,Et._)`${P} instanceof ${c.ValidationError}`,()=>n.assign(g,(0,Et._)`${P}.errors`),()=>n.throw(P))),g}function m(){let g=(0,Et._)`${l}.errors`;return n.assign(g,null),h(Et.nil),g}function h(g=t.async?(0,Et._)`await `:Et.nil){let P=c.opts.passContext?Co.default.this:Co.default.self,b=!("compile"in t&&!a||t.schema===!1);n.assign(u,(0,Et._)`${g}${(0,l4.callValidateCode)(e,l,P,b)}`,t.modifying)}function y(g){var P;n.if((0,Et.not)((P=t.valid)!==null&&P!==void 0?P:u),g)}}Kr.funcKeywordCode=f4;function bP(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Et._)`${n.parentData}[${n.parentDataProperty}]`))}function m4(e,t){let{gen:r}=e;r.if((0,Et._)`Array.isArray(${t})`,()=>{r.assign(Co.default.vErrors,(0,Et._)`${Co.default.vErrors} === null ? ${t} : ${Co.default.vErrors}.concat(${t})`).assign(Co.default.errors,(0,Et._)`${Co.default.vErrors}.length`),(0,u4.extendErrors)(e)},()=>e.error())}function h4({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function vP(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Et.stringify)(r)})}function y4(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")}Kr.validSchemaType=y4;function g4({schema:e,opts:t,self:r,errSchemaPath:n},o,i){if(Array.isArray(o.keyword)?!o.keyword.includes(i):o.keyword!==i)throw new Error("ajv implementation error");let s=o.dependencies;if(s?.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${i}: ${s.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[i])){let c=`keyword "${i}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}Kr.validateKeywordUsage=g4});var wP=v(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.extendSubschemaMode=Vn.extendSubschemaData=Vn.getSubschema=void 0;var Gr=Z(),xP=he();function b4(e,{keyword:t,schemaProp:r,schema:n,schemaPath:o,errSchemaPath:i,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,Gr._)`${e.schemaPath}${(0,Gr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,Gr._)`${e.schemaPath}${(0,Gr.getProperty)(t)}${(0,Gr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,xP.escapeFragment)(r)}`}}if(n!==void 0){if(o===void 0||i===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:s,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')}Vn.getSubschema=b4;function v4(e,t,{dataProp:r,dataPropType:n,data:o,dataTypes:i,propertyName:s}){if(o!==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:p,dataPathArr:l,opts:u}=t,d=a.let("data",(0,Gr._)`${t.data}${(0,Gr.getProperty)(r)}`,!0);c(d),e.errorPath=(0,Gr.str)`${p}${(0,xP.getErrorPath)(r,n,u.jsPropertySyntax)}`,e.parentDataProperty=(0,Gr._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(o!==void 0){let p=o instanceof Gr.Name?o:a.let("data",o,!0);c(p),s!==void 0&&(e.propertyName=s)}i&&(e.dataTypes=i);function c(p){e.data=p,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,p]}}Vn.extendSubschemaData=v4;function S4(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:i}){n!==void 0&&(e.compositeRule=n),o!==void 0&&(e.createErrors=o),i!==void 0&&(e.allErrors=i),e.jtdDiscriminator=t,e.jtdMetadata=r}Vn.extendSubschemaMode=S4});var Ea=v(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.getSchemaRefs=Nt.resolveUrl=Nt.normalizeId=Nt._getFullPath=Nt.getFullPath=Nt.inlineRef=void 0;var x4=he(),w4=Fs(),_4=df(),P4=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function E4(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Bh(e):t?_P(e)<=t:!1}Nt.inlineRef=E4;var $4=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Bh(e){for(let t in e){if($4.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Bh)||typeof r=="object"&&Bh(r))return!0}return!1}function _P(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!P4.has(r)&&(typeof e[r]=="object"&&(0,x4.eachItem)(e[r],n=>t+=_P(n)),t===1/0))return 1/0}return t}function PP(e,t="",r){r!==!1&&(t=Ki(t));let n=e.parse(t);return EP(e,n)}Nt.getFullPath=PP;function EP(e,t){return e.serialize(t).split("#")[0]+"#"}Nt._getFullPath=EP;var A4=/#\/?$/;function Ki(e){return e?e.replace(A4,""):""}Nt.normalizeId=Ki;function T4(e,t,r){return r=Ki(r),e.resolve(t,r)}Nt.resolveUrl=T4;var R4=/^[a-z_][-a-z0-9._]*$/i;function O4(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=Ki(e[r]||t),i={"":o},s=PP(n,o,!1),a={},c=new Set;return _4(e,{allKeys:!0},(u,d,f,m)=>{if(m===void 0)return;let h=s+d,y=i[m];typeof u[r]=="string"&&(y=g.call(this,u[r])),P.call(this,u.$anchor),P.call(this,u.$dynamicAnchor),i[d]=y;function g(b){let x=this.opts.uriResolver.resolve;if(b=Ki(y?x(y,b):b),c.has(b))throw l(b);c.add(b);let S=this.refs[b];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?p(u,S.schema,b):b!==Ki(h)&&(b[0]==="#"?(p(u,a[b],b),a[b]=u):this.refs[b]=h),b}function P(b){if(typeof b=="string"){if(!R4.test(b))throw new Error(`invalid anchor "${b}"`);g.call(this,`#${b}`)}}}),a;function p(u,d,f){if(d!==void 0&&!w4(u,d))throw l(f)}function l(u){return new Error(`reference "${u}" resolves to more than one schema`)}}Nt.getSchemaRefs=O4});var Ta=v(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.getData=Bn.KeywordCxt=Bn.validateFunctionCode=void 0;var OP=cP(),$P=Pa(),Kh=jh(),Bp=Pa(),k4=hP(),Aa=SP(),Hh=wP(),D=Z(),K=fn(),I4=Ea(),mn=he(),$a=_a();function C4(e){if(CP(e)&&(qP(e),IP(e))){M4(e);return}kP(e,()=>(0,OP.topBoolOrEmptySchema)(e))}Bn.validateFunctionCode=C4;function kP({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},i){o.code.es5?e.func(t,(0,D._)`${K.default.data}, ${K.default.valCxt}`,n.$async,()=>{e.code((0,D._)`"use strict"; ${AP(r,o)}`),N4(e,o),e.code(i)}):e.func(t,(0,D._)`${K.default.data}, ${q4(o)}`,n.$async,()=>e.code(AP(r,o)).code(i))}function q4(e){return(0,D._)`{${K.default.instancePath}="", ${K.default.parentData}, ${K.default.parentDataProperty}, ${K.default.rootData}=${K.default.data}${e.dynamicRef?(0,D._)`, ${K.default.dynamicAnchors}={}`:D.nil}}={}`}function N4(e,t){e.if(K.default.valCxt,()=>{e.var(K.default.instancePath,(0,D._)`${K.default.valCxt}.${K.default.instancePath}`),e.var(K.default.parentData,(0,D._)`${K.default.valCxt}.${K.default.parentData}`),e.var(K.default.parentDataProperty,(0,D._)`${K.default.valCxt}.${K.default.parentDataProperty}`),e.var(K.default.rootData,(0,D._)`${K.default.valCxt}.${K.default.rootData}`),t.dynamicRef&&e.var(K.default.dynamicAnchors,(0,D._)`${K.default.valCxt}.${K.default.dynamicAnchors}`)},()=>{e.var(K.default.instancePath,(0,D._)`""`),e.var(K.default.parentData,(0,D._)`undefined`),e.var(K.default.parentDataProperty,(0,D._)`undefined`),e.var(K.default.rootData,K.default.data),t.dynamicRef&&e.var(K.default.dynamicAnchors,(0,D._)`{}`)})}function M4(e){let{schema:t,opts:r,gen:n}=e;kP(e,()=>{r.$comment&&t.$comment&&MP(e),z4(e),n.let(K.default.vErrors,null),n.let(K.default.errors,0),r.unevaluated&&j4(e),NP(e),B4(e)})}function j4(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,D._)`${r}.evaluated`),t.if((0,D._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,D._)`${e.evaluated}.props`,(0,D._)`undefined`)),t.if((0,D._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,D._)`${e.evaluated}.items`,(0,D._)`undefined`))}function AP(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,D._)`/*# sourceURL=${r} */`:D.nil}function D4(e,t){if(CP(e)&&(qP(e),IP(e))){L4(e,t);return}(0,OP.boolOrEmptySchema)(e,t)}function IP({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 CP(e){return typeof e.schema!="boolean"}function L4(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&MP(e),F4(e),V4(e);let i=n.const("_errs",K.default.errors);NP(e,i),n.var(t,(0,D._)`${i} === ${K.default.errors}`)}function qP(e){(0,mn.checkUnknownRules)(e),U4(e)}function NP(e,t){if(e.opts.jtd)return TP(e,[],!1,t);let r=(0,$P.getSchemaTypes)(e.schema),n=(0,$P.coerceAndCheckDataType)(e,r);TP(e,r,!n,t)}function U4(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,mn.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function z4(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,mn.checkStrictMode)(e,"default is ignored in the schema root")}function F4(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,I4.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function V4(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function MP({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let i=r.$comment;if(o.$comment===!0)e.code((0,D._)`${K.default.self}.logger.log(${i})`);else if(typeof o.$comment=="function"){let s=(0,D.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,D._)`${K.default.self}.opts.$comment(${i}, ${s}, ${a}.schema)`)}}function B4(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:i}=e;r.$async?t.if((0,D._)`${K.default.errors} === 0`,()=>t.return(K.default.data),()=>t.throw((0,D._)`new ${o}(${K.default.vErrors})`)):(t.assign((0,D._)`${n}.errors`,K.default.vErrors),i.unevaluated&&H4(e),t.return((0,D._)`${K.default.errors} === 0`))}function H4({gen:e,evaluated:t,props:r,items:n}){r instanceof D.Name&&e.assign((0,D._)`${t}.props`,r),n instanceof D.Name&&e.assign((0,D._)`${t}.items`,n)}function TP(e,t,r,n){let{gen:o,schema:i,data:s,allErrors:a,opts:c,self:p}=e,{RULES:l}=p;if(i.$ref&&(c.ignoreKeywordsWithRef||!(0,mn.schemaHasRulesButRef)(i,l))){o.block(()=>DP(e,"$ref",l.all.$ref.definition));return}c.jtd||K4(e,t),o.block(()=>{for(let d of l.rules)u(d);u(l.post)});function u(d){(0,Kh.shouldUseGroup)(i,d)&&(d.type?(o.if((0,Bp.checkDataType)(d.type,s,c.strictNumbers)),RP(e,d),t.length===1&&t[0]===d.type&&r&&(o.else(),(0,Bp.reportTypeError)(e)),o.endIf()):RP(e,d),a||o.if((0,D._)`${K.default.errors} === ${n||0}`))}}function RP(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,k4.assignDefaults)(e,t.type),r.block(()=>{for(let i of t.rules)(0,Kh.shouldUseRule)(n,i)&&DP(e,i.keyword,i.definition,t.type)})}function K4(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(G4(e,t),e.opts.allowUnionTypes||W4(e,t),Y4(e,e.dataTypes))}function G4(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{jP(e.dataTypes,r)||Gh(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),J4(e,t)}}function W4(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Gh(e,"use allowUnionTypes to allow union type keyword")}function Y4(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,Kh.shouldUseRule)(e.schema,o)){let{type:i}=o.definition;i.length&&!i.some(s=>Q4(t,s))&&Gh(e,`missing type "${i.join(",")}" for keyword "${n}"`)}}}function Q4(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function jP(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function J4(e,t){let r=[];for(let n of e.dataTypes)jP(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function Gh(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,mn.checkStrictMode)(e,t,e.opts.strictTypes)}var Hp=class{constructor(t,r,n){if((0,Aa.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,mn.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",LP(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Aa.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",K.default.errors))}result(t,r,n){this.failResult((0,D.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,D.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,D._)`${r} !== undefined && (${(0,D.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?$a.reportExtraError:$a.reportError)(this,this.def.error,r)}$dataError(){(0,$a.reportError)(this,this.def.$dataError||$a.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,$a.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=D.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=D.nil,r=D.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:i,def:s}=this;n.if((0,D.or)((0,D._)`${o} === undefined`,r)),t!==D.nil&&n.assign(t,!0),(i.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==D.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:o,it:i}=this;return(0,D.or)(s(),a());function s(){if(n.length){if(!(r instanceof D.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,D._)`${(0,Bp.checkDataTypes)(c,r,i.opts.strictNumbers,Bp.DataType.Wrong)}`}return D.nil}function a(){if(o.validateSchema){let c=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,D._)`!${c}(${r})`}return D.nil}}subschema(t,r){let n=(0,Hh.getSubschema)(this.it,t);(0,Hh.extendSubschemaData)(n,this.it,t),(0,Hh.extendSubschemaMode)(n,t);let o={...this.it,...n,items:void 0,props:void 0};return D4(o,r),o}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=mn.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=mn.mergeEvaluated.items(o,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(r,()=>this.mergeEvaluated(t,D.Name)),!0}};Bn.KeywordCxt=Hp;function DP(e,t,r,n){let o=new Hp(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,Aa.funcKeywordCode)(o,r):"macro"in r?(0,Aa.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,Aa.funcKeywordCode)(o,r)}var X4=/^\/(?:[^~]|~0|~1)*$/,Z4=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function LP(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,i;if(e==="")return K.default.rootData;if(e[0]==="/"){if(!X4.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=K.default.rootData}else{let p=Z4.exec(e);if(!p)throw new Error(`Invalid JSON-pointer: ${e}`);let l=+p[1];if(o=p[2],o==="#"){if(l>=t)throw new Error(c("property/index",l));return n[t-l]}if(l>t)throw new Error(c("data",l));if(i=r[t-l],!o)return i}let s=i,a=o.split("/");for(let p of a)p&&(i=(0,D._)`${i}${(0,D.getProperty)((0,mn.unescapeJsonPointer)(p))}`,s=(0,D._)`${s} && ${i}`);return s;function c(p,l){return`Cannot access ${p} ${l} levels up, current level is ${t}`}}Bn.getData=LP});var Kp=v(Yh=>{"use strict";Object.defineProperty(Yh,"__esModule",{value:!0});var Wh=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};Yh.default=Wh});var Ra=v(Xh=>{"use strict";Object.defineProperty(Xh,"__esModule",{value:!0});var Qh=Ea(),Jh=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Qh.resolveUrl)(t,r,n),this.missingSchema=(0,Qh.normalizeId)((0,Qh.getFullPath)(t,this.missingRef))}};Xh.default=Jh});var Wp=v(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.resolveSchema=or.getCompilingSchema=or.resolveRef=or.compileSchema=or.SchemaEnv=void 0;var vr=Z(),eG=Kp(),qo=fn(),Sr=Ea(),UP=he(),tG=Ta(),Gi=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,Sr.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};or.SchemaEnv=Gi;function ey(e){let t=zP.call(this,e);if(t)return t;let r=(0,Sr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:i}=this.opts,s=new vr.CodeGen(this.scope,{es5:n,lines:o,ownProperties:i}),a;e.$async&&(a=s.scopeValue("Error",{ref:eG.default,code:(0,vr._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let p={gen:s,allErrors:this.opts.allErrors,data:qo.default.data,parentData:qo.default.parentData,parentDataProperty:qo.default.parentDataProperty,dataNames:[qo.default.data],dataPathArr:[vr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,vr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:vr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,vr._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(e),(0,tG.validateFunctionCode)(p),s.optimize(this.opts.code.optimize);let u=s.toString();l=`${s.scopeRefs(qo.default.scope)}return ${u}`,this.opts.code.process&&(l=this.opts.code.process(l,e));let f=new Function(`${qo.default.self}`,`${qo.default.scope}`,l)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=e.schema,f.schemaEnv=e,e.$async&&(f.$async=!0),this.opts.code.source===!0&&(f.source={validateName:c,validateCode:u,scopeValues:s._values}),this.opts.unevaluated){let{props:m,items:h}=p;f.evaluated={props:m instanceof vr.Name?void 0:m,items:h instanceof vr.Name?void 0:h,dynamicProps:m instanceof vr.Name,dynamicItems:h instanceof vr.Name},f.source&&(f.source.evaluated=(0,vr.stringify)(f.evaluated))}return e.validate=f,e}catch(u){throw delete e.validate,delete e.validateName,l&&this.logger.error("Error compiling schema, function code:",l),u}finally{this._compilations.delete(e)}}or.compileSchema=ey;function rG(e,t,r){var n;r=(0,Sr.resolveUrl)(this.opts.uriResolver,t,r);let o=e.refs[r];if(o)return o;let i=iG.call(this,e,r);if(i===void 0){let s=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;s&&(i=new Gi({schema:s,schemaId:a,root:e,baseId:t}))}if(i!==void 0)return e.refs[r]=nG.call(this,i)}or.resolveRef=rG;function nG(e){return(0,Sr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:ey.call(this,e)}function zP(e){for(let t of this._compilations)if(oG(t,e))return t}or.getCompilingSchema=zP;function oG(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function iG(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Gp.call(this,e,t)}function Gp(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Sr._getFullPath)(this.opts.uriResolver,r),o=(0,Sr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return Zh.call(this,r,e);let i=(0,Sr.normalizeId)(n),s=this.refs[i]||this.schemas[i];if(typeof s=="string"){let a=Gp.call(this,e,s);return typeof a?.schema!="object"?void 0:Zh.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||ey.call(this,s),i===(0,Sr.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,p=a[c];return p&&(o=(0,Sr.resolveUrl)(this.opts.uriResolver,o,p)),new Gi({schema:a,schemaId:c,root:e,baseId:o})}return Zh.call(this,r,s)}}or.resolveSchema=Gp;var sG=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Zh(e,{baseId:t,schema:r,root:n}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(let a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,UP.unescapeFragment)(a)];if(c===void 0)return;r=c;let p=typeof r=="object"&&r[this.opts.schemaId];!sG.has(a)&&p&&(t=(0,Sr.resolveUrl)(this.opts.uriResolver,t,p))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,UP.schemaHasRulesButRef)(r,this.RULES)){let a=(0,Sr.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=Gp.call(this,n,a)}let{schemaId:s}=this.opts;if(i=i||new Gi({schema:r,schemaId:s,root:n,baseId:t}),i.schema!==i.root.schema)return i}});var FP=v((sie,aG)=>{aG.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 BP=v(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});var VP=Of();VP.code='require("ajv/dist/runtime/uri").default';ty.default=VP});var XP=v(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 cG=Ta();Object.defineProperty(st,"KeywordCxt",{enumerable:!0,get:function(){return cG.KeywordCxt}});var Wi=Z();Object.defineProperty(st,"_",{enumerable:!0,get:function(){return Wi._}});Object.defineProperty(st,"str",{enumerable:!0,get:function(){return Wi.str}});Object.defineProperty(st,"stringify",{enumerable:!0,get:function(){return Wi.stringify}});Object.defineProperty(st,"nil",{enumerable:!0,get:function(){return Wi.nil}});Object.defineProperty(st,"Name",{enumerable:!0,get:function(){return Wi.Name}});Object.defineProperty(st,"CodeGen",{enumerable:!0,get:function(){return Wi.CodeGen}});var pG=Kp(),YP=Ra(),lG=Mh(),Oa=Wp(),uG=Z(),ka=Ea(),Yp=Pa(),ny=he(),HP=FP(),dG=BP(),QP=(e,t)=>new RegExp(e,t);QP.code="new RegExp";var fG=["removeAdditional","useDefaults","coerceTypes"],mG=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),hG={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."},yG={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},KP=200;function gG(e){var t,r,n,o,i,s,a,c,p,l,u,d,f,m,h,y,g,P,b,x,S,w,T,_,$;let E=e.strict,G=(t=e.code)===null||t===void 0?void 0:t.optimize,F=G===!0||G===void 0?1:G||0,ae=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:QP,A=(o=e.uriResolver)!==null&&o!==void 0?o:dG.default;return{strictSchema:(s=(i=e.strictSchema)!==null&&i!==void 0?i: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:(l=(p=e.strictTypes)!==null&&p!==void 0?p:E)!==null&&l!==void 0?l:"log",strictTuples:(d=(u=e.strictTuples)!==null&&u!==void 0?u:E)!==null&&d!==void 0?d:"log",strictRequired:(m=(f=e.strictRequired)!==null&&f!==void 0?f:E)!==null&&m!==void 0?m:!1,code:e.code?{...e.code,optimize:F,regExp:ae}:{optimize:F,regExp:ae},loopRequired:(h=e.loopRequired)!==null&&h!==void 0?h:KP,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:KP,meta:(g=e.meta)!==null&&g!==void 0?g:!0,messages:(P=e.messages)!==null&&P!==void 0?P:!0,inlineRefs:(b=e.inlineRefs)!==null&&b!==void 0?b:!0,schemaId:(x=e.schemaId)!==null&&x!==void 0?x:"$id",addUsedSchema:(S=e.addUsedSchema)!==null&&S!==void 0?S:!0,validateSchema:(w=e.validateSchema)!==null&&w!==void 0?w:!0,validateFormats:(T=e.validateFormats)!==null&&T!==void 0?T:!0,unicodeRegExp:(_=e.unicodeRegExp)!==null&&_!==void 0?_:!0,int32range:($=e.int32range)!==null&&$!==void 0?$:!0,uriResolver:A}}var Ia=class{constructor(t={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...gG(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new uG.ValueScope({scope:{},prefixes:mG,es5:r,lines:n}),this.logger=_G(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,lG.getRules)(),GP.call(this,hG,t,"NOT SUPPORTED"),GP.call(this,yG,t,"DEPRECATED","warn"),this._metaOpts=xG.call(this),t.formats&&vG.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&SG.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),bG.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=HP;n==="id"&&(o={...HP},o.id=o.$id,delete o.$id),r&&t&&this.addMetaSchema(o,o[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 o=n(r);return"$async"in n||(this.errors=n.errors),o}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 o.call(this,t,r);async function o(l,u){await i.call(this,l.$schema);let d=this._addSchema(l,u);return d.validate||s.call(this,d)}async function i(l){l&&!this.getSchema(l)&&await o.call(this,{$ref:l},!0)}async function s(l){try{return this._compileSchemaEnv(l)}catch(u){if(!(u instanceof YP.default))throw u;return a.call(this,u),await c.call(this,u.missingSchema),s.call(this,l)}}function a({missingSchema:l,missingRef:u}){if(this.refs[l])throw new Error(`AnySchema ${l} is loaded but ${u} cannot be resolved`)}async function c(l){let u=await p.call(this,l);this.refs[l]||await i.call(this,u.$schema),this.refs[l]||this.addSchema(u,l,r)}async function p(l){let u=this._loading[l];if(u)return u;try{return await(this._loading[l]=n(l))}finally{delete this._loading[l]}}}addSchema(t,r,n,o=this.opts.validateSchema){if(Array.isArray(t)){for(let s of t)this.addSchema(s,void 0,n,o);return this}let i;if(typeof t=="object"){let{schemaId:s}=this.opts;if(i=t[s],i!==void 0&&typeof i!="string")throw new Error(`schema ${s} must be string`)}return r=(0,ka.normalizeId)(r||i),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,o,!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 o=this.validate(n,t);if(!o&&r){let i="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(i);else throw new Error(i)}return o}getSchema(t){let r;for(;typeof(r=WP.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new Oa.SchemaEnv({schema:{},schemaId:n});if(r=Oa.resolveSchema.call(this,o,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=WP.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,ka.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(EG.call(this,n,r),!r)return(0,ny.eachItem)(n,i=>ry.call(this,i)),this;AG.call(this,r);let o={...r,type:(0,Yp.getJSONTypes)(r.type),schemaType:(0,Yp.getJSONTypes)(r.schemaType)};return(0,ny.eachItem)(n,o.type.length===0?i=>ry.call(this,i,o):i=>o.type.forEach(s=>ry.call(this,i,o,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 o=n.rules.findIndex(i=>i.keyword===t);o>=0&&n.rules.splice(o,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(o=>`${n}${o.instancePath} ${o.message}`).reduce((o,i)=>o+r+i)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let o of r){let i=o.split("/").slice(1),s=t;for(let a of i)s=s[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:p}=c.definition,l=s[a];p&&l&&(s[a]=JP(l))}}return t}_removeAllSchemas(t,r){for(let n in t){let o=t[n];(!r||r.test(n))&&(typeof o=="string"?delete t[n]:o&&!o.meta&&(this._cache.delete(o.schema),delete t[n]))}}_addSchema(t,r,n,o=this.opts.validateSchema,i=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,ka.normalizeId)(s||n);let p=ka.getSchemaRefs.call(this,t,n);return c=new Oa.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:n,localRefs:p}),this._cache.set(c.schema,c),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),o&&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):Oa.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{Oa.compileSchema.call(this,t)}finally{this.opts=r}}};Ia.ValidationError=pG.default;Ia.MissingRefError=YP.default;st.default=Ia;function GP(e,t,r,n="error"){for(let o in e){let i=o;i in t&&this.logger[n](`${r}: option ${o}. ${e[i]}`)}}function WP(e){return e=(0,ka.normalizeId)(e),this.schemas[e]||this.refs[e]}function bG(){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 vG(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function SG(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 xG(){let e={...this.opts};for(let t of fG)delete e[t];return e}var wG={log(){},warn(){},error(){}};function _G(e){if(e===!1)return wG;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 PG=/^[a-z_$][a-z0-9_$:-]*$/i;function EG(e,t){let{RULES:r}=this;if((0,ny.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!PG.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 ry(e,t,r){var n;let o=t?.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:i}=this,s=o?i.post:i.rules.find(({type:c})=>c===r);if(s||(s={type:r,rules:[]},i.rules.push(s)),i.keywords[e]=!0,!t)return;let a={keyword:e,definition:{...t,type:(0,Yp.getJSONTypes)(t.type),schemaType:(0,Yp.getJSONTypes)(t.schemaType)}};t.before?$G.call(this,s,a,t.before):s.rules.push(a),i.all[e]=a,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function $G(e,t,r){let n=e.rules.findIndex(o=>o.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function AG(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=JP(t)),e.validateSchema=this.compile(t,!0))}var TG={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function JP(e){return{anyOf:[e,TG]}}});var ZP=v(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});var RG={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};oy.default=RG});var nE=v(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.callRef=No.getValidate=void 0;var OG=Ra(),eE=nr(),Mt=Z(),Yi=fn(),tE=Wp(),Qp=he(),kG={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:i,validateName:s,opts:a,self:c}=n,{root:p}=i;if((r==="#"||r==="#/")&&o===p.baseId)return u();let l=tE.resolveRef.call(c,p,o,r);if(l===void 0)throw new OG.default(n.opts.uriResolver,o,r);if(l instanceof tE.SchemaEnv)return d(l);return f(l);function u(){if(i===p)return Jp(e,s,i,i.$async);let m=t.scopeValue("root",{ref:p});return Jp(e,(0,Mt._)`${m}.validate`,p,p.$async)}function d(m){let h=rE(e,m);Jp(e,h,m,m.$async)}function f(m){let h=t.scopeValue("schema",a.code.source===!0?{ref:m,code:(0,Mt.stringify)(m)}:{ref:m}),y=t.name("valid"),g=e.subschema({schema:m,dataTypes:[],schemaPath:Mt.nil,topSchemaRef:h,errSchemaPath:r},y);e.mergeEvaluated(g),e.ok(y)}}};function rE(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Mt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}No.getValidate=rE;function Jp(e,t,r,n){let{gen:o,it:i}=e,{allErrors:s,schemaEnv:a,opts:c}=i,p=c.passContext?Yi.default.this:Mt.nil;n?l():u();function l(){if(!a.$async)throw new Error("async schema referenced by sync schema");let m=o.let("valid");o.try(()=>{o.code((0,Mt._)`await ${(0,eE.callValidateCode)(e,t,p)}`),f(t),s||o.assign(m,!0)},h=>{o.if((0,Mt._)`!(${h} instanceof ${i.ValidationError})`,()=>o.throw(h)),d(h),s||o.assign(m,!1)}),e.ok(m)}function u(){e.result((0,eE.callValidateCode)(e,t,p),()=>f(t),()=>d(t))}function d(m){let h=(0,Mt._)`${m}.errors`;o.assign(Yi.default.vErrors,(0,Mt._)`${Yi.default.vErrors} === null ? ${h} : ${Yi.default.vErrors}.concat(${h})`),o.assign(Yi.default.errors,(0,Mt._)`${Yi.default.vErrors}.length`)}function f(m){var h;if(!i.opts.unevaluated)return;let y=(h=r?.validate)===null||h===void 0?void 0:h.evaluated;if(i.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(i.props=Qp.mergeEvaluated.props(o,y.props,i.props));else{let g=o.var("props",(0,Mt._)`${m}.evaluated.props`);i.props=Qp.mergeEvaluated.props(o,g,i.props,Mt.Name)}if(i.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(i.items=Qp.mergeEvaluated.items(o,y.items,i.items));else{let g=o.var("items",(0,Mt._)`${m}.evaluated.items`);i.items=Qp.mergeEvaluated.items(o,g,i.items,Mt.Name)}}}No.callRef=Jp;No.default=kG});var oE=v(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});var IG=ZP(),CG=nE(),qG=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",IG.default,CG.default];iy.default=qG});var iE=v(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});var Xp=Z(),Hn=Xp.operators,Zp={maximum:{okStr:"<=",ok:Hn.LTE,fail:Hn.GT},minimum:{okStr:">=",ok:Hn.GTE,fail:Hn.LT},exclusiveMaximum:{okStr:"<",ok:Hn.LT,fail:Hn.GTE},exclusiveMinimum:{okStr:">",ok:Hn.GT,fail:Hn.LTE}},NG={message:({keyword:e,schemaCode:t})=>(0,Xp.str)`must be ${Zp[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Xp._)`{comparison: ${Zp[e].okStr}, limit: ${t}}`},MG={keyword:Object.keys(Zp),type:"number",schemaType:"number",$data:!0,error:NG,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Xp._)`${r} ${Zp[t].fail} ${n} || isNaN(${r})`)}};sy.default=MG});var sE=v(ay=>{"use strict";Object.defineProperty(ay,"__esModule",{value:!0});var Ca=Z(),jG={message:({schemaCode:e})=>(0,Ca.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Ca._)`{multipleOf: ${e}}`},DG={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:jG,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,i=o.opts.multipleOfPrecision,s=t.let("res"),a=i?(0,Ca._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${i}`:(0,Ca._)`${s} !== parseInt(${s})`;e.fail$data((0,Ca._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};ay.default=DG});var cE=v(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0});function aE(e){let t=e.length,r=0,n=0,o;for(;n<t;)r++,o=e.charCodeAt(n++),o>=55296&&o<=56319&&n<t&&(o=e.charCodeAt(n),(o&64512)===56320&&n++);return r}cy.default=aE;aE.code='require("ajv/dist/runtime/ucs2length").default'});var pE=v(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0});var Mo=Z(),LG=he(),UG=cE(),zG={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Mo.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Mo._)`{limit: ${e}}`},FG={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:zG,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,i=t==="maxLength"?Mo.operators.GT:Mo.operators.LT,s=o.opts.unicode===!1?(0,Mo._)`${r}.length`:(0,Mo._)`${(0,LG.useFunc)(e.gen,UG.default)}(${r})`;e.fail$data((0,Mo._)`${s} ${i} ${n}`)}};py.default=FG});var lE=v(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});var VG=nr(),BG=he(),Qi=Z(),HG={message:({schemaCode:e})=>(0,Qi.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Qi._)`{pattern: ${e}}`},KG={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:HG,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"";if(n){let{regExp:c}=s.opts.code,p=c.code==="new RegExp"?(0,Qi._)`new RegExp`:(0,BG.useFunc)(t,c),l=t.let("valid");t.try(()=>t.assign(l,(0,Qi._)`${p}(${i}, ${a}).test(${r})`),()=>t.assign(l,!1)),e.fail$data((0,Qi._)`!${l}`)}else{let c=(0,VG.usePattern)(e,o);e.fail$data((0,Qi._)`!${c}.test(${r})`)}}};ly.default=KG});var uE=v(uy=>{"use strict";Object.defineProperty(uy,"__esModule",{value:!0});var qa=Z(),GG={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,qa.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,qa._)`{limit: ${e}}`},WG={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:GG,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?qa.operators.GT:qa.operators.LT;e.fail$data((0,qa._)`Object.keys(${r}).length ${o} ${n}`)}};uy.default=WG});var dE=v(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});var Na=nr(),Ma=Z(),YG=he(),QG={message:({params:{missingProperty:e}})=>(0,Ma.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Ma._)`{missingProperty: ${e}}`},JG={keyword:"required",type:"object",schemaType:"array",$data:!0,error:QG,code(e){let{gen:t,schema:r,schemaCode:n,data:o,$data:i,it:s}=e,{opts:a}=s;if(!i&&r.length===0)return;let c=r.length>=a.loopRequired;if(s.allErrors?p():l(),a.strictRequired){let f=e.parentSchema.properties,{definedProperties:m}=e.it;for(let h of r)if(f?.[h]===void 0&&!m.has(h)){let y=s.schemaEnv.baseId+s.errSchemaPath,g=`required property "${h}" is not defined at "${y}" (strictRequired)`;(0,YG.checkStrictMode)(s,g,s.opts.strictRequired)}}function p(){if(c||i)e.block$data(Ma.nil,u);else for(let f of r)(0,Na.checkReportMissingProp)(e,f)}function l(){let f=t.let("missing");if(c||i){let m=t.let("valid",!0);e.block$data(m,()=>d(f,m)),e.ok(m)}else t.if((0,Na.checkMissingProp)(e,r,f)),(0,Na.reportMissingProp)(e,f),t.else()}function u(){t.forOf("prop",n,f=>{e.setParams({missingProperty:f}),t.if((0,Na.noPropertyInData)(t,o,f,a.ownProperties),()=>e.error())})}function d(f,m){e.setParams({missingProperty:f}),t.forOf(f,n,()=>{t.assign(m,(0,Na.propertyInData)(t,o,f,a.ownProperties)),t.if((0,Ma.not)(m),()=>{e.error(),t.break()})},Ma.nil)}}};dy.default=JG});var fE=v(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0});var ja=Z(),XG={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,ja.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,ja._)`{limit: ${e}}`},ZG={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:XG,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?ja.operators.GT:ja.operators.LT;e.fail$data((0,ja._)`${r}.length ${o} ${n}`)}};fy.default=ZG});var el=v(my=>{"use strict";Object.defineProperty(my,"__esModule",{value:!0});var mE=Fs();mE.code='require("ajv/dist/runtime/equal").default';my.default=mE});var hE=v(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});var hy=Pa(),at=Z(),e5=he(),t5=el(),r5={message:({params:{i:e,j:t}})=>(0,at.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,at._)`{i: ${e}, j: ${t}}`},n5={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:r5,code(e){let{gen:t,data:r,$data:n,schema:o,parentSchema:i,schemaCode:s,it:a}=e;if(!n&&!o)return;let c=t.let("valid"),p=i.items?(0,hy.getSchemaTypes)(i.items):[];e.block$data(c,l,(0,at._)`${s} === false`),e.ok(c);function l(){let m=t.let("i",(0,at._)`${r}.length`),h=t.let("j");e.setParams({i:m,j:h}),t.assign(c,!0),t.if((0,at._)`${m} > 1`,()=>(u()?d:f)(m,h))}function u(){return p.length>0&&!p.some(m=>m==="object"||m==="array")}function d(m,h){let y=t.name("item"),g=(0,hy.checkDataTypes)(p,y,a.opts.strictNumbers,hy.DataType.Wrong),P=t.const("indices",(0,at._)`{}`);t.for((0,at._)`;${m}--;`,()=>{t.let(y,(0,at._)`${r}[${m}]`),t.if(g,(0,at._)`continue`),p.length>1&&t.if((0,at._)`typeof ${y} == "string"`,(0,at._)`${y} += "_"`),t.if((0,at._)`typeof ${P}[${y}] == "number"`,()=>{t.assign(h,(0,at._)`${P}[${y}]`),e.error(),t.assign(c,!1).break()}).code((0,at._)`${P}[${y}] = ${m}`)})}function f(m,h){let y=(0,e5.useFunc)(t,t5.default),g=t.name("outer");t.label(g).for((0,at._)`;${m}--;`,()=>t.for((0,at._)`${h} = ${m}; ${h}--;`,()=>t.if((0,at._)`${y}(${r}[${m}], ${r}[${h}])`,()=>{e.error(),t.assign(c,!1).break(g)})))}}};yy.default=n5});var yE=v(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});var gy=Z(),o5=he(),i5=el(),s5={message:"must be equal to constant",params:({schemaCode:e})=>(0,gy._)`{allowedValue: ${e}}`},a5={keyword:"const",$data:!0,error:s5,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:i}=e;n||i&&typeof i=="object"?e.fail$data((0,gy._)`!${(0,o5.useFunc)(t,i5.default)}(${r}, ${o})`):e.fail((0,gy._)`${i} !== ${r}`)}};by.default=a5});var gE=v(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0});var Da=Z(),c5=he(),p5=el(),l5={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Da._)`{allowedValues: ${e}}`},u5={keyword:"enum",schemaType:"array",$data:!0,error:l5,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:i,it:s}=e;if(!n&&o.length===0)throw new Error("enum must have non-empty array");let a=o.length>=s.opts.loopEnum,c,p=()=>c??(c=(0,c5.useFunc)(t,p5.default)),l;if(a||n)l=t.let("valid"),e.block$data(l,u);else{if(!Array.isArray(o))throw new Error("ajv implementation error");let f=t.const("vSchema",i);l=(0,Da.or)(...o.map((m,h)=>d(f,h)))}e.pass(l);function u(){t.assign(l,!1),t.forOf("v",i,f=>t.if((0,Da._)`${p()}(${r}, ${f})`,()=>t.assign(l,!0).break()))}function d(f,m){let h=o[m];return typeof h=="object"&&h!==null?(0,Da._)`${p()}(${r}, ${f}[${m}])`:(0,Da._)`${r} === ${h}`}}};vy.default=u5});var bE=v(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});var d5=iE(),f5=sE(),m5=pE(),h5=lE(),y5=uE(),g5=dE(),b5=fE(),v5=hE(),S5=yE(),x5=gE(),w5=[d5.default,f5.default,m5.default,h5.default,y5.default,g5.default,b5.default,v5.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},S5.default,x5.default];Sy.default=w5});var wy=v(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.validateAdditionalItems=void 0;var jo=Z(),xy=he(),_5={message:({params:{len:e}})=>(0,jo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,jo._)`{limit: ${e}}`},P5={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:_5,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,xy.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}vE(e,n)}};function vE(e,t){let{gen:r,schema:n,data:o,keyword:i,it:s}=e;s.items=!0;let a=r.const("len",(0,jo._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,jo._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,xy.alwaysValidSchema)(s,n)){let p=r.var("valid",(0,jo._)`${a} <= ${t.length}`);r.if((0,jo.not)(p),()=>c(p)),e.ok(p)}function c(p){r.forRange("i",t.length,a,l=>{e.subschema({keyword:i,dataProp:l,dataPropType:xy.Type.Num},p),s.allErrors||r.if((0,jo.not)(p),()=>r.break())})}}La.validateAdditionalItems=vE;La.default=P5});var _y=v(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.validateTuple=void 0;var SE=Z(),tl=he(),E5=nr(),$5={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return xE(e,"additionalItems",t);r.items=!0,!(0,tl.alwaysValidSchema)(r,t)&&e.ok((0,E5.validateArray)(e))}};function xE(e,t,r=e.schema){let{gen:n,parentSchema:o,data:i,keyword:s,it:a}=e;l(o),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=tl.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),p=n.const("len",(0,SE._)`${i}.length`);r.forEach((u,d)=>{(0,tl.alwaysValidSchema)(a,u)||(n.if((0,SE._)`${p} > ${d}`,()=>e.subschema({keyword:s,schemaProp:d,dataProp:d},c)),e.ok(c))});function l(u){let{opts:d,errSchemaPath:f}=a,m=r.length,h=m===u.minItems&&(m===u.maxItems||u[t]===!1);if(d.strictTuples&&!h){let y=`"${s}" is ${m}-tuple, but minItems or maxItems/${t} are not specified or different at path "${f}"`;(0,tl.checkStrictMode)(a,y,d.strictTuples)}}}Ua.validateTuple=xE;Ua.default=$5});var wE=v(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});var A5=_y(),T5={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,A5.validateTuple)(e,"items")};Py.default=T5});var PE=v(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});var _E=Z(),R5=he(),O5=nr(),k5=wy(),I5={message:({params:{len:e}})=>(0,_E.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,_E._)`{limit: ${e}}`},C5={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:I5,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,R5.alwaysValidSchema)(n,t)&&(o?(0,k5.validateAdditionalItems)(e,o):e.ok((0,O5.validateArray)(e)))}};Ey.default=C5});var EE=v($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});var ir=Z(),rl=he(),q5={message:({params:{min:e,max:t}})=>t===void 0?(0,ir.str)`must contain at least ${e} valid item(s)`:(0,ir.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,ir._)`{minContains: ${e}}`:(0,ir._)`{minContains: ${e}, maxContains: ${t}}`},N5={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:q5,code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:i}=e,s,a,{minContains:c,maxContains:p}=n;i.opts.next?(s=c===void 0?1:c,a=p):s=1;let l=t.const("len",(0,ir._)`${o}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,rl.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,rl.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,rl.alwaysValidSchema)(i,r)){let h=(0,ir._)`${l} >= ${s}`;a!==void 0&&(h=(0,ir._)`${h} && ${l} <= ${a}`),e.pass(h);return}i.items=!0;let u=t.name("valid");a===void 0&&s===1?f(u,()=>t.if(u,()=>t.break())):s===0?(t.let(u,!0),a!==void 0&&t.if((0,ir._)`${o}.length > 0`,d)):(t.let(u,!1),d()),e.result(u,()=>e.reset());function d(){let h=t.name("_valid"),y=t.let("count",0);f(h,()=>t.if(h,()=>m(y)))}function f(h,y){t.forRange("i",0,l,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:rl.Type.Num,compositeRule:!0},h),y()})}function m(h){t.code((0,ir._)`${h}++`),a===void 0?t.if((0,ir._)`${h} >= ${s}`,()=>t.assign(u,!0).break()):(t.if((0,ir._)`${h} > ${a}`,()=>t.assign(u,!1).break()),s===1?t.assign(u,!0):t.if((0,ir._)`${h} >= ${s}`,()=>t.assign(u,!0)))}}};$y.default=N5});var TE=v(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.validateSchemaDeps=Wr.validatePropertyDeps=Wr.error=void 0;var Ay=Z(),M5=he(),za=nr();Wr.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Ay.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Ay._)`{property: ${e},
|
|
19
|
-
missingProperty: ${n},
|
|
20
|
-
depsCount: ${t},
|
|
21
|
-
deps: ${r}}`};var j5={keyword:"dependencies",type:"object",schemaType:"object",error:Wr.error,code(e){let[t,r]=D5(e);$E(e,t),AE(e,r)}};function D5({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let o=Array.isArray(e[n])?t:r;o[n]=e[n]}return[t,r]}function $E(e,t=e.schema){let{gen:r,data:n,it:o}=e;if(Object.keys(t).length===0)return;let i=r.let("missing");for(let s in t){let a=t[s];if(a.length===0)continue;let c=(0,za.propertyInData)(r,n,s,o.opts.ownProperties);e.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),o.allErrors?r.if(c,()=>{for(let p of a)(0,za.checkReportMissingProp)(e,p)}):(r.if((0,Ay._)`${c} && (${(0,za.checkMissingProp)(e,a,i)})`),(0,za.reportMissingProp)(e,i),r.else())}}Wr.validatePropertyDeps=$E;function AE(e,t=e.schema){let{gen:r,data:n,keyword:o,it:i}=e,s=r.name("valid");for(let a in t)(0,M5.alwaysValidSchema)(i,t[a])||(r.if((0,za.propertyInData)(r,n,a,i.opts.ownProperties),()=>{let c=e.subschema({keyword:o,schemaProp:a},s);e.mergeValidEvaluated(c,s)},()=>r.var(s,!0)),e.ok(s))}Wr.validateSchemaDeps=AE;Wr.default=j5});var OE=v(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});var RE=Z(),L5=he(),U5={message:"property name must be valid",params:({params:e})=>(0,RE._)`{propertyName: ${e.propertyName}}`},z5={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:U5,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,L5.alwaysValidSchema)(o,r))return;let i=t.name("valid");t.forIn("key",n,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},i),t.if((0,RE.not)(i),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(i)}};Ty.default=z5});var Oy=v(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});var nl=nr(),xr=Z(),F5=fn(),ol=he(),V5={message:"must NOT have additional properties",params:({params:e})=>(0,xr._)`{additionalProperty: ${e.additionalProperty}}`},B5={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:V5,code(e){let{gen:t,schema:r,parentSchema:n,data:o,errsCount:i,it:s}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=s;if(s.props=!0,c.removeAdditional!=="all"&&(0,ol.alwaysValidSchema)(s,r))return;let p=(0,nl.allSchemaProperties)(n.properties),l=(0,nl.allSchemaProperties)(n.patternProperties);u(),e.ok((0,xr._)`${i} === ${F5.default.errors}`);function u(){t.forIn("key",o,y=>{!p.length&&!l.length?m(y):t.if(d(y),()=>m(y))})}function d(y){let g;if(p.length>8){let P=(0,ol.schemaRefOrVal)(s,n.properties,"properties");g=(0,nl.isOwnProperty)(t,P,y)}else p.length?g=(0,xr.or)(...p.map(P=>(0,xr._)`${y} === ${P}`)):g=xr.nil;return l.length&&(g=(0,xr.or)(g,...l.map(P=>(0,xr._)`${(0,nl.usePattern)(e,P)}.test(${y})`))),(0,xr.not)(g)}function f(y){t.code((0,xr._)`delete ${o}[${y}]`)}function m(y){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){f(y);return}if(r===!1){e.setParams({additionalProperty:y}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,ol.alwaysValidSchema)(s,r)){let g=t.name("valid");c.removeAdditional==="failing"?(h(y,g,!1),t.if((0,xr.not)(g),()=>{e.reset(),f(y)})):(h(y,g),a||t.if((0,xr.not)(g),()=>t.break()))}}function h(y,g,P){let b={keyword:"additionalProperties",dataProp:y,dataPropType:ol.Type.Str};P===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(b,g)}}};Ry.default=B5});var CE=v(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0});var H5=Ta(),kE=nr(),ky=he(),IE=Oy(),K5={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:i}=e;i.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&IE.default.code(new H5.KeywordCxt(i,IE.default,"additionalProperties"));let s=(0,kE.allSchemaProperties)(r);for(let u of s)i.definedProperties.add(u);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=ky.mergeEvaluated.props(t,(0,ky.toHash)(s),i.props));let a=s.filter(u=>!(0,ky.alwaysValidSchema)(i,r[u]));if(a.length===0)return;let c=t.name("valid");for(let u of a)p(u)?l(u):(t.if((0,kE.propertyInData)(t,o,u,i.opts.ownProperties)),l(u),i.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(u),e.ok(c);function p(u){return i.opts.useDefaults&&!i.compositeRule&&r[u].default!==void 0}function l(u){e.subschema({keyword:"properties",schemaProp:u,dataProp:u},c)}}};Iy.default=K5});var jE=v(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});var qE=nr(),il=Z(),NE=he(),ME=he(),G5={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:o,it:i}=e,{opts:s}=i,a=(0,qE.allSchemaProperties)(r),c=a.filter(h=>(0,NE.alwaysValidSchema)(i,r[h]));if(a.length===0||c.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;let p=s.strictSchema&&!s.allowMatchingProperties&&o.properties,l=t.name("valid");i.props!==!0&&!(i.props instanceof il.Name)&&(i.props=(0,ME.evaluatedPropsToName)(t,i.props));let{props:u}=i;d();function d(){for(let h of a)p&&f(h),i.allErrors?m(h):(t.var(l,!0),m(h),t.if(l))}function f(h){for(let y in p)new RegExp(h).test(y)&&(0,NE.checkStrictMode)(i,`property ${y} matches pattern ${h} (use allowMatchingProperties)`)}function m(h){t.forIn("key",n,y=>{t.if((0,il._)`${(0,qE.usePattern)(e,h)}.test(${y})`,()=>{let g=c.includes(h);g||e.subschema({keyword:"patternProperties",schemaProp:h,dataProp:y,dataPropType:ME.Type.Str},l),i.opts.unevaluated&&u!==!0?t.assign((0,il._)`${u}[${y}]`,!0):!g&&!i.allErrors&&t.if((0,il.not)(l),()=>t.break())})})}}};Cy.default=G5});var DE=v(qy=>{"use strict";Object.defineProperty(qy,"__esModule",{value:!0});var W5=he(),Y5={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,W5.alwaysValidSchema)(n,r)){e.fail();return}let o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};qy.default=Y5});var LE=v(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var Q5=nr(),J5={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Q5.validateUnion,error:{message:"must match a schema in anyOf"}};Ny.default=J5});var UE=v(My=>{"use strict";Object.defineProperty(My,"__esModule",{value:!0});var sl=Z(),X5=he(),Z5={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,sl._)`{passingSchemas: ${e.passing}}`},eW={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Z5,code(e){let{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;let i=r,s=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(p),e.result(s,()=>e.reset(),()=>e.error(!0));function p(){i.forEach((l,u)=>{let d;(0,X5.alwaysValidSchema)(o,l)?t.var(c,!0):d=e.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},c),u>0&&t.if((0,sl._)`${c} && ${s}`).assign(s,!1).assign(a,(0,sl._)`[${a}, ${u}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,u),d&&e.mergeEvaluated(d,sl.Name)})})}}};My.default=eW});var zE=v(jy=>{"use strict";Object.defineProperty(jy,"__esModule",{value:!0});var tW=he(),rW={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 o=t.name("valid");r.forEach((i,s)=>{if((0,tW.alwaysValidSchema)(n,i))return;let a=e.subschema({keyword:"allOf",schemaProp:s},o);e.ok(o),e.mergeEvaluated(a)})}};jy.default=rW});var BE=v(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});var al=Z(),VE=he(),nW={message:({params:e})=>(0,al.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,al._)`{failingKeyword: ${e.ifClause}}`},oW={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:nW,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,VE.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=FE(n,"then"),i=FE(n,"else");if(!o&&!i)return;let s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),o&&i){let l=t.let("ifClause");e.setParams({ifClause:l}),t.if(a,p("then",l),p("else",l))}else o?t.if(a,p("then")):t.if((0,al.not)(a),p("else"));e.pass(s,()=>e.error(!0));function c(){let l=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(l)}function p(l,u){return()=>{let d=e.subschema({keyword:l},a);t.assign(s,a),e.mergeValidEvaluated(d,s),u?t.assign(u,(0,al._)`${l}`):e.setParams({ifClause:l})}}}};function FE(e,t){let r=e.schema[t];return r!==void 0&&!(0,VE.alwaysValidSchema)(e,r)}Dy.default=oW});var HE=v(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});var iW=he(),sW={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,iW.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Ly.default=sW});var KE=v(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});var aW=wy(),cW=wE(),pW=_y(),lW=PE(),uW=EE(),dW=TE(),fW=OE(),mW=Oy(),hW=CE(),yW=jE(),gW=DE(),bW=LE(),vW=UE(),SW=zE(),xW=BE(),wW=HE();function _W(e=!1){let t=[gW.default,bW.default,vW.default,SW.default,xW.default,wW.default,fW.default,mW.default,dW.default,hW.default,yW.default];return e?t.push(cW.default,lW.default):t.push(aW.default,pW.default),t.push(uW.default),t}Uy.default=_W});var GE=v(zy=>{"use strict";Object.defineProperty(zy,"__esModule",{value:!0});var Ve=Z(),PW={message:({schemaCode:e})=>(0,Ve.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Ve._)`{format: ${e}}`},EW={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:PW,code(e,t){let{gen:r,data:n,$data:o,schema:i,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:p,schemaEnv:l,self:u}=a;if(!c.validateFormats)return;o?d():f();function d(){let m=r.scopeValue("formats",{ref:u.formats,code:c.code.formats}),h=r.const("fDef",(0,Ve._)`${m}[${s}]`),y=r.let("fType"),g=r.let("format");r.if((0,Ve._)`typeof ${h} == "object" && !(${h} instanceof RegExp)`,()=>r.assign(y,(0,Ve._)`${h}.type || "string"`).assign(g,(0,Ve._)`${h}.validate`),()=>r.assign(y,(0,Ve._)`"string"`).assign(g,h)),e.fail$data((0,Ve.or)(P(),b()));function P(){return c.strictSchema===!1?Ve.nil:(0,Ve._)`${s} && !${g}`}function b(){let x=l.$async?(0,Ve._)`(${h}.async ? await ${g}(${n}) : ${g}(${n}))`:(0,Ve._)`${g}(${n})`,S=(0,Ve._)`(typeof ${g} == "function" ? ${x} : ${g}.test(${n}))`;return(0,Ve._)`${g} && ${g} !== true && ${y} === ${t} && !${S}`}}function f(){let m=u.formats[i];if(!m){P();return}if(m===!0)return;let[h,y,g]=b(m);h===t&&e.pass(x());function P(){if(c.strictSchema===!1){u.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${i}" ignored in schema at path "${p}"`}}function b(S){let w=S instanceof RegExp?(0,Ve.regexpCode)(S):c.code.formats?(0,Ve._)`${c.code.formats}${(0,Ve.getProperty)(i)}`:void 0,T=r.scopeValue("formats",{key:i,ref:S,code:w});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,Ve._)`${T}.validate`]:["string",S,T]}function x(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!l.$async)throw new Error("async format in sync schema");return(0,Ve._)`await ${g}(${n})`}return typeof y=="function"?(0,Ve._)`${g}(${n})`:(0,Ve._)`${g}.test(${n})`}}}};zy.default=EW});var WE=v(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});var $W=GE(),AW=[$W.default];Fy.default=AW});var YE=v(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.contentVocabulary=Ji.metadataVocabulary=void 0;Ji.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Ji.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var JE=v(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0});var TW=oE(),RW=bE(),OW=KE(),kW=WE(),QE=YE(),IW=[TW.default,RW.default,(0,OW.default)(),kW.default,QE.metadataVocabulary,QE.contentVocabulary];Vy.default=IW});var ZE=v(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.DiscrError=void 0;var XE;(function(e){e.Tag="tag",e.Mapping="mapping"})(XE||(cl.DiscrError=XE={}))});var t$=v(Hy=>{"use strict";Object.defineProperty(Hy,"__esModule",{value:!0});var Xi=Z(),By=ZE(),e$=Wp(),CW=Ra(),qW=he(),NW={message:({params:{discrError:e,tagName:t}})=>e===By.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Xi._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},MW={keyword:"discriminator",type:"object",schemaType:"object",error:NW,code(e){let{gen:t,data:r,schema:n,parentSchema:o,it:i}=e,{oneOf:s}=o;if(!i.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),p=t.const("tag",(0,Xi._)`${r}${(0,Xi.getProperty)(a)}`);t.if((0,Xi._)`typeof ${p} == "string"`,()=>l(),()=>e.error(!1,{discrError:By.DiscrError.Tag,tag:p,tagName:a})),e.ok(c);function l(){let f=d();t.if(!1);for(let m in f)t.elseIf((0,Xi._)`${p} === ${m}`),t.assign(c,u(f[m]));t.else(),e.error(!1,{discrError:By.DiscrError.Mapping,tag:p,tagName:a}),t.endIf()}function u(f){let m=t.name("valid"),h=e.subschema({keyword:"oneOf",schemaProp:f},m);return e.mergeEvaluated(h,Xi.Name),m}function d(){var f;let m={},h=g(o),y=!0;for(let x=0;x<s.length;x++){let S=s[x];if(S?.$ref&&!(0,qW.schemaHasRulesButRef)(S,i.self.RULES)){let T=S.$ref;if(S=e$.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,T),S instanceof e$.SchemaEnv&&(S=S.schema),S===void 0)throw new CW.default(i.opts.uriResolver,i.baseId,T)}let w=(f=S?.properties)===null||f===void 0?void 0:f[a];if(typeof w!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);y=y&&(h||g(S)),P(w,x)}if(!y)throw new Error(`discriminator: "${a}" must be required`);return m;function g({required:x}){return Array.isArray(x)&&x.includes(a)}function P(x,S){if(x.const)b(x.const,S);else if(x.enum)for(let w of x.enum)b(w,S);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function b(x,S){if(typeof x!="string"||x in m)throw new Error(`discriminator: "${a}" values must be unique strings`);m[x]=S}}}};Hy.default=MW});var r$=v((Wie,jW)=>{jW.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 o$=v((Ne,Ky)=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.MissingRefError=Ne.ValidationError=Ne.CodeGen=Ne.Name=Ne.nil=Ne.stringify=Ne.str=Ne._=Ne.KeywordCxt=Ne.Ajv=void 0;var DW=XP(),LW=JE(),UW=t$(),n$=r$(),zW=["/properties"],pl="http://json-schema.org/draft-07/schema",Zi=class extends DW.default{_addVocabularies(){super._addVocabularies(),LW.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(UW.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(n$,zW):n$;this.addMetaSchema(t,pl,!1),this.refs["http://json-schema.org/schema"]=pl}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(pl)?pl:void 0)}};Ne.Ajv=Zi;Ky.exports=Ne=Zi;Ky.exports.Ajv=Zi;Object.defineProperty(Ne,"__esModule",{value:!0});Ne.default=Zi;var FW=Ta();Object.defineProperty(Ne,"KeywordCxt",{enumerable:!0,get:function(){return FW.KeywordCxt}});var es=Z();Object.defineProperty(Ne,"_",{enumerable:!0,get:function(){return es._}});Object.defineProperty(Ne,"str",{enumerable:!0,get:function(){return es.str}});Object.defineProperty(Ne,"stringify",{enumerable:!0,get:function(){return es.stringify}});Object.defineProperty(Ne,"nil",{enumerable:!0,get:function(){return es.nil}});Object.defineProperty(Ne,"Name",{enumerable:!0,get:function(){return es.Name}});Object.defineProperty(Ne,"CodeGen",{enumerable:!0,get:function(){return es.CodeGen}});var VW=Kp();Object.defineProperty(Ne,"ValidationError",{enumerable:!0,get:function(){return VW.default}});var BW=Ra();Object.defineProperty(Ne,"MissingRefError",{enumerable:!0,get:function(){return BW.default}})});var i$=v(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.formatLimitDefinition=void 0;var HW=o$(),wr=Z(),Kn=wr.operators,ll={formatMaximum:{okStr:"<=",ok:Kn.LTE,fail:Kn.GT},formatMinimum:{okStr:">=",ok:Kn.GTE,fail:Kn.LT},formatExclusiveMaximum:{okStr:"<",ok:Kn.LT,fail:Kn.GTE},formatExclusiveMinimum:{okStr:">",ok:Kn.GT,fail:Kn.LTE}},KW={message:({keyword:e,schemaCode:t})=>(0,wr.str)`should be ${ll[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,wr._)`{comparison: ${ll[e].okStr}, limit: ${t}}`};ts.formatLimitDefinition={keyword:Object.keys(ll),type:"string",schemaType:"string",$data:!0,error:KW,code(e){let{gen:t,data:r,schemaCode:n,keyword:o,it:i}=e,{opts:s,self:a}=i;if(!s.validateFormats)return;let c=new HW.KeywordCxt(i,a.RULES.all.format.definition,"format");c.$data?p():l();function p(){let d=t.scopeValue("formats",{ref:a.formats,code:s.code.formats}),f=t.const("fmt",(0,wr._)`${d}[${c.schemaCode}]`);e.fail$data((0,wr.or)((0,wr._)`typeof ${f} != "object"`,(0,wr._)`${f} instanceof RegExp`,(0,wr._)`typeof ${f}.compare != "function"`,u(f)))}function l(){let d=c.schema,f=a.formats[d];if(!f||f===!0)return;if(typeof f!="object"||f instanceof RegExp||typeof f.compare!="function")throw new Error(`"${o}": format "${d}" does not define "compare" function`);let m=t.scopeValue("formats",{key:d,ref:f,code:s.code.formats?(0,wr._)`${s.code.formats}${(0,wr.getProperty)(d)}`:void 0});e.fail$data(u(m))}function u(d){return(0,wr._)`${d}.compare(${r}, ${n}) ${ll[o].fail} 0`}},dependencies:["format"]};var GW=e=>(e.addKeyword(ts.formatLimitDefinition),e);ts.default=GW});var p$=v((Fa,c$)=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});var rs=K_(),WW=i$(),Gy=Z(),s$=new Gy.Name("fullFormats"),YW=new Gy.Name("fastFormats"),Wy=(e,t={keywords:!0})=>{if(Array.isArray(t))return a$(e,t,rs.fullFormats,s$),e;let[r,n]=t.mode==="fast"?[rs.fastFormats,YW]:[rs.fullFormats,s$],o=t.formats||rs.formatNames;return a$(e,o,r,n),t.keywords&&(0,WW.default)(e),e};Wy.get=(e,t="full")=>{let n=(t==="fast"?rs.fastFormats:rs.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function a$(e,t,r,n){var o,i;(o=(i=e.opts.code).formats)!==null&&o!==void 0||(i.formats=(0,Gy._)`require("ajv-formats/dist/formats").${n}`);for(let s of t)e.addFormat(s,r[s])}c$.exports=Fa=Wy;Object.defineProperty(Fa,"__esModule",{value:!0});Fa.default=Wy});var Ka=v(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});var ss;(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"})(ss=Yr.Kind||(Yr.Kind={}));function CY(e,t){var r=t?t.endPosition:e.endPosition+1,n={key:e,value:t,startPosition:e.startPosition,endPosition:r,kind:ss.MAPPING,parent:null,errors:[]};return n}Yr.newMapping=CY;function qY(e,t,r,n){return{errors:[],referencesAnchor:e,value:n,startPosition:t,endPosition:r,kind:ss.ANCHOR_REF,parent:null}}Yr.newAnchorRef=qY;function NY(e){e===void 0&&(e="");var t={errors:[],startPosition:-1,endPosition:-1,value:""+e,kind:ss.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(t.valueObject=e),t}Yr.newScalar=NY;function jA(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:ss.SEQ,parent:null}}Yr.newItems=jA;function MY(){return jA()}Yr.newSeq=MY;function jY(e){return{errors:[],startPosition:-1,endPosition:-1,mappings:e||[],kind:ss.MAP,parent:null}}Yr.newMap=jY});var Lo=v(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});function DA(e){return typeof e>"u"||e===null}Qn.isNothing=DA;function DY(e){return typeof e=="object"&&e!==null}Qn.isObject=DY;function LY(e){return Array.isArray(e)?e:DA(e)?[]:[e]}Qn.toArray=LY;function UY(e,t){var r,n,o,i;if(t)for(i=Object.keys(t),r=0,n=i.length;r<n;r+=1)o=i[r],e[o]=t[o];return e}Qn.extend=UY;function zY(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}Qn.repeat=zY;function FY(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Qn.isNegativeZero=FY});var as=v((Cde,LA)=>{"use strict";var VY=(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 o=n[r];if(o==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})();LA.exports=VY});var FA=v((qde,zA)=>{"use strict";var UA=Lo(),BY=(function(){function e(t,r,n,o,i){this.name=t,this.buffer=r,this.position=n,this.line=o,this.column=i}return e.prototype.getSnippet=function(t,r){t===void 0&&(t=0),r===void 0&&(r=75);var n,o,i,s,a;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",o=this.position;o>0&&`\0\r
|
|
22
|
-
\x85\u2028\u2029`.indexOf(this.buffer.charAt(o-1))===-1;)if(o-=1,this.position-o>r/2-1){n=" ... ",o+=5;break}for(i="",s=this.position;s<this.buffer.length&&`\0\r
|
|
23
|
-
\x85\u2028\u2029`.indexOf(this.buffer.charAt(s))===-1;)if(s+=1,s-this.position>r/2-1){i=" ... ",s-=5;break}return a=this.buffer.slice(o,s),UA.repeat(" ",t)+n+a+i+`
|
|
24
|
-
`+UA.repeat(" ",t+this.position-o+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+=`:
|
|
25
|
-
`+r)),n},e})();zA.exports=BY});var ct=v(ug=>{"use strict";Object.defineProperty(ug,"__esModule",{value:!0});var VA=as(),HY=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],KY=["scalar","sequence","mapping"];function GY(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}var WY=(function(){function e(t,r){if(r=r||{},Object.keys(r).forEach(function(n){if(HY.indexOf(n)===-1)throw new VA('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=GY(r.styleAliases||null),KY.indexOf(this.kind)===-1)throw new VA('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}return e})();ug.Type=WY});var cs=v(fg=>{"use strict";Object.defineProperty(fg,"__esModule",{value:!0});var BA=Lo(),Fl=as(),YY=ct();function dg(e,t,r){var n=[];return e.include.forEach(function(o){r=dg(o,t,r)}),e[t].forEach(function(o){r.forEach(function(i,s){i.tag===o.tag&&n.push(s)}),r.push(o)}),r.filter(function(o,i){return n.indexOf(i)===-1})}function QY(){var e={},t,r;function n(o){e[o.tag]=o}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}var JY=(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 Fl("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=dg(this,"implicit",[]),this.compiledExplicit=dg(this,"explicit",[]),this.compiledTypeMap=QY(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 Fl("Wrong number of arguments for Schema.create function")}if(r=BA.toArray(r),n=BA.toArray(n),!r.every(function(o){return o instanceof e}))throw new Fl("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!n.every(function(o){return o instanceof YY.Type}))throw new Fl("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new e({include:r,explicit:n})},e})();fg.Schema=JY});var KA=v((jde,HA)=>{"use strict";var XY=ct();HA.exports=new XY.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var WA=v((Dde,GA)=>{"use strict";var ZY=ct();GA.exports=new ZY.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var QA=v((Lde,YA)=>{"use strict";var eQ=ct();YA.exports=new eQ.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var XA=v((Ude,JA)=>{"use strict";var tQ=cs();JA.exports=new tQ.Schema({explicit:[KA(),WA(),QA()]})});var eT=v((zde,ZA)=>{"use strict";var rQ=ct();function nQ(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function oQ(){return null}function iQ(e){return e===null}ZA.exports=new rQ.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:nQ,construct:oQ,predicate:iQ,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var rT=v((Fde,tT)=>{"use strict";var sQ=ct();function aQ(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 cQ(e){return e==="true"||e==="True"||e==="TRUE"}function pQ(e){return Object.prototype.toString.call(e)==="[object Boolean]"}tT.exports=new sQ.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:aQ,construct:cQ,predicate:pQ,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 oT=v((Vde,nT)=>{"use strict";var lQ=Lo(),uQ=ct();function dQ(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function fQ(e){return 48<=e&&e<=55}function mQ(e){return 48<=e&&e<=57}function hQ(e){if(e===null)return!1;var t=e.length,r=0,n=!1,o;if(!t)return!1;if(o=e[r],(o==="-"||o==="+")&&(o=e[++r]),o==="0"){if(r+1===t)return!0;if(o=e[++r],o==="b"){for(r++;r<t;r++)if(o=e[r],o!=="_"){if(o!=="0"&&o!=="1")return!1;n=!0}return n}if(o==="x"){for(r++;r<t;r++)if(o=e[r],o!=="_"){if(!dQ(e.charCodeAt(r)))return!1;n=!0}return n}for(;r<t;r++)if(o=e[r],o!=="_"){if(!fQ(e.charCodeAt(r)))return!1;n=!0}return n}for(;r<t;r++)if(o=e[r],o!=="_"){if(o===":")break;if(!mQ(e.charCodeAt(r)))return!1;n=!0}return n?o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r)):!1}function yQ(e){var t=e,r=1,n,o,i=[];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){i.unshift(parseInt(s,10))}),t=0,o=1,i.forEach(function(s){t+=s*o,o*=60}),r*t):r*parseInt(t,10)}function gQ(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!lQ.isNegativeZero(e)}nT.exports=new uQ.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:hQ,construct:yQ,predicate:gQ,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 aT=v((Bde,sT)=>{"use strict";var iT=Lo(),bQ=ct(),vQ=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 SQ(e){if(e===null)return!1;var t,r,n,o;return!!vQ.test(e)}function xQ(e){var t,r,n,o;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,o=[],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(i){o.unshift(parseFloat(i,10))}),t=0,n=1,o.forEach(function(i){t+=i*n,n*=60}),r*t):r*parseFloat(t,10)}function wQ(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(iT.isNegativeZero(e))return"-0.0";return e.toString(10)}function _Q(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||iT.isNegativeZero(e))}sT.exports=new bQ.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:SQ,construct:xQ,predicate:_Q,represent:wQ,defaultStyle:"lowercase"})});var pT=v((Hde,cT)=>{"use strict";var PQ=cs();cT.exports=new PQ.Schema({include:[XA()],implicit:[eT(),rT(),oT(),aT()]})});var uT=v((Kde,lT)=>{"use strict";var EQ=cs();lT.exports=new EQ.Schema({include:[pT()]})});var mT=v((Gde,fT)=>{"use strict";var $Q=ct(),dT=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 AQ(e){if(e===null)return!1;var t,r,n,o,i,s,a,c=0,p=null,l,u,d;return t=dT.exec(e),t!==null}function TQ(e){var t,r,n,o,i,s,a,c=0,p=null,l,u,d;if(t=dT.exec(e),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(r,n,o));if(i=+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]&&(l=+t[10],u=+(t[11]||0),p=(l*60+u)*6e4,t[9]==="-"&&(p=-p)),d=new Date(Date.UTC(r,n,o,i,s,a,c)),p&&d.setTime(d.getTime()-p),d}function RQ(e){return e.toISOString()}fT.exports=new $Q.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:AQ,construct:TQ,instanceOf:Date,represent:RQ})});var yT=v((Wde,hT)=>{"use strict";var OQ=ct();function kQ(e){return e==="<<"||e===null}hT.exports=new OQ.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:kQ})});var bT=v((Yde,gT)=>{"use strict";var Vl=tu("buffer").Buffer,IQ=ct(),mg=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
26
|
-
\r`;function CQ(e){if(e===null)return!1;var t,r,n=0,o=0,i=e.length,s=mg;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function qQ(e){var t,r,n,o=e.replace(/[\r\n=]/g,""),i=o.length,s=mg,a=0,c=[];for(r=0;r<i;r++)r%4===0&&r&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(o.charAt(r));return n=i%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),Vl?new Vl(c):c}function NQ(e){var t="",r=0,n,o,i=e.length,s=mg;for(n=0;n<i;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 o=i%3,o===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):o===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):o===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function MQ(e){return Vl&&Vl.isBuffer(e)}gT.exports=new IQ.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:CQ,construct:qQ,predicate:MQ,represent:NQ})});var ST=v((Qde,vT)=>{"use strict";var jQ=ct(),DQ=Object.prototype.hasOwnProperty,LQ=Object.prototype.toString;function UQ(e){if(e===null)return!0;var t=[],r,n,o,i,s,a=e;for(r=0,n=a.length;r<n;r+=1){if(o=a[r],s=!1,LQ.call(o)!=="[object Object]")return!1;for(i in o)if(DQ.call(o,i))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(i)===-1)t.push(i);else return!1}return!0}function zQ(e){return e!==null?e:[]}vT.exports=new jQ.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:UQ,construct:zQ})});var wT=v((Jde,xT)=>{"use strict";var FQ=ct(),hg=Ka(),VQ=Object.prototype.toString;function BQ(e){if(e===null)return!0;if(e.kind!=hg.Kind.SEQ)return!1;var t,r,n,o,i,s=e.items;for(t=0,r=s.length;t<r;t+=1)if(n=s[t],VQ.call(n)!=="[object Object]"||!Array.isArray(n.mappings)||n.mappings.length!==1)return!1;return!0}function HQ(e){if(e===null||!Array.isArray(e.items))return[];var t,r,n,o,i=e.items;for(o=hg.newItems(),o.parent=e.parent,o.startPosition=e.startPosition,o.endPosition=e.endPosition,t=0,r=i.length;t<r;t+=1){var s=i[t],a=s.mappings[0],c=hg.newItems();c.parent=o,c.startPosition=a.key.startPosition,c.endPosition=a.value.startPosition,a.key.parent=c,a.value.parent=c,c.items=[a.key,a.value],o.items.push(c)}return o}xT.exports=new FQ.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:BQ,construct:HQ})});var PT=v((Xde,_T)=>{"use strict";var KQ=ct(),GQ=Ka();function WQ(e){return e===null?!0:e.kind==GQ.Kind.MAP}function YQ(e){return e!==null?e:{}}_T.exports=new KQ.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:WQ,construct:YQ})});var Bl=v((Zde,ET)=>{"use strict";var QQ=cs(),JQ=new QQ.Schema({include:[uT()],implicit:[mT(),yT()],explicit:[bT(),ST(),wT(),PT()]});ET.exports=JQ});var AT=v((efe,$T)=>{"use strict";var XQ=ct();function ZQ(){return!0}function e6(){}function t6(){return""}function r6(e){return typeof e>"u"}$T.exports=new XQ.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:ZQ,construct:e6,predicate:r6,represent:t6})});var RT=v((tfe,TT)=>{"use strict";var n6=ct();function o6(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 o=new RegExp(t,n);return!0}catch{return!1}}function i6(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 s6(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function a6(e){return Object.prototype.toString.call(e)==="[object RegExp]"}TT.exports=new n6.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:o6,construct:i6,predicate:a6,represent:s6})});var yg=v((rfe,IT)=>{"use strict";var OT=cs(),kT=new OT.Schema({include:[Bl()],explicit:[AT(),RT()]});OT.Schema.DEFAULT=kT;IT.exports=kT});var HT=v((ds,Wa)=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});var Gt=Ka(),Jn=Lo(),_g=as(),Pg=FA(),MT=Bl(),c6=yg(),Gl=Object.prototype.hasOwnProperty,Hl=1,jT=2,DT=3,Kl=4,gg=1,p6=2,CT=3,l6=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,u6=/[\x85\u2028\u2029]/,d6=/[,\[\]\{\}]/,LT=/^(?:!|!!|![a-z\-]+!)$/i,UT=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _r(e){return e===10||e===13}function Uo(e){return e===9||e===32}function Dt(e){return e===9||e===32||e===10||e===13}function ps(e){return e===44||e===91||e===93||e===123||e===125}function f6(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function m6(e){return e===120?2:e===117?4:e===85?8:0}function h6(e){return 48<=e&&e<=57?e-48:-1}function y6(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
27
|
-
`: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 g6(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var bg=new Array(256),vg=new Array(256),zT=new Array(256),Sg=new Array(256);for(ar=0;ar<256;ar++)Sg[ar]=vg[ar]=y6(ar),bg[ar]=vg[ar]?1:0,zT[ar]=1,bg[ar]||(Sg[ar]="\\"+String.fromCharCode(ar));var ar,b6=(function(){function e(t,r){this.errorMap={},this.errors=[],this.lines=[],this.input=t,this.filename=r.filename||null,this.schema=r.schema||c6,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 Eg(e,t,r){return r===void 0&&(r=!1),new _g(t,new Pg(e.filename,e.input,e.position,e.line,e.position-e.lineStart),r)}function xg(e,t,r,n,o){n===void 0&&(n=!1),o===void 0&&(o=!1);var i=v6(e,t);if(i){var s=r+t;if(!e.errorMap[s]){var a=new Pg(e.filename,e.input,t,i.line,t-i.start);o&&(a.toLineEnd=!0);var c=new _g(r,a,n);e.errors.push(c)}}}function H(e,t){var r=Eg(e,t),n=r.message+r.mark.position;if(!e.errorMap[n]){e.errors.push(r),e.errorMap[n]=1;for(var o=e.position;;){if(e.position>=e.input.length-1)return;var i=e.input.charAt(e.position);if(i==`
|
|
28
|
-
`){e.position--,e.position==o&&(e.position+=1);return}if(i=="\r"){e.position--,e.position==o&&(e.position+=1);return}e.position++}}}function wg(e,t){var r=Eg(e,t);e.onWarning&&e.onWarning.call(null,r)}var qT={YAML:function(t,r,n){var o,i,s;t.version!==null&&H(t,"duplication of %YAML directive"),n.length!==1&&H(t,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),o===null&&H(t,"ill-formed argument of the YAML directive"),i=parseInt(o[1],10),s=parseInt(o[2],10),i!==1&&H(t,"found incompatible YAML document (version 1.2 is required)"),t.version=n[0],t.checkLineBreaks=s<2,s!==2&&H(t,"found incompatible YAML document (version 1.2 is required)")},TAG:function(t,r,n){var o,i;n.length!==2&&H(t,"TAG directive accepts exactly two arguments"),o=n[0],i=n[1],LT.test(o)||H(t,"ill-formed tag handle (first argument) of the TAG directive"),Gl.call(t.tagMap,o)&&H(t,'there is a previously declared suffix for "'+o+'" tag handle'),UT.test(i)||H(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[o]=i}};function Xn(e,t,r,n){var o,i,s,a,c=e.result;if(c.startPosition==-1&&(c.startPosition=t),t<=r){if(a=e.input.slice(t,r),n)for(o=0,i=a.length;o<i;o+=1)s=a.charCodeAt(o),s===9||32<=s&&s<=1114111||H(e,"expected valid JSON character");else l6.test(a)&&H(e,"the stream contains non-printable characters");c.value+=a,c.endPosition=r}}function ls(e,t,r,n,o){var i,s;if(n!=null){t===null&&(t={startPosition:n.startPosition,endPosition:o.endPosition,parent:null,errors:[],mappings:[],kind:Gt.Kind.MAP});var a=Gt.newMapping(n,o);return a.parent=t,n.parent=a,o!=null&&(o.parent=a),!e.ignoreDuplicateKeys&&t.mappings.forEach(function(c){c.key&&c.key.value===(a.key&&a.key.value)&&(xg(e,a.key.startPosition,"duplicate key"),xg(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(a),t.endPosition=o?o.endPosition:n.endPosition+1,t}}function $g(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++):H(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.lines.push({start:e.lineStart,line:e.line})}function v6(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 He(e,t,r){for(var n=0,o=e.input.charCodeAt(e.position);o!==0;){for(;Uo(o);)o===9&&e.errors.push(Eg(e,"Using tabs can lead to unpredictable results",!0)),o=e.input.charCodeAt(++e.position);if(t&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(_r(o))for($g(e),o=e.input.charCodeAt(e.position),n++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&wg(e,"deficient indentation"),n}function Ga(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||Dt(r)))}function Ag(e,t,r){r===1?t.value+=" ":r>1&&(t.value+=Jn.repeat(`
|
|
29
|
-
`,r-1))}function S6(e,t,r){var n,o,i,s,a,c,p,l,u=e.kind,d=e.result,f,m=Gt.newScalar();if(m.plainScalar=!0,e.result=m,f=e.input.charCodeAt(e.position),Dt(f)||ps(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96||(f===63||f===45)&&(o=e.input.charCodeAt(e.position+1),Dt(o)||r&&ps(o)))return!1;for(e.kind="scalar",i=s=e.position,a=!1;f!==0;){if(f===58){if(o=e.input.charCodeAt(e.position+1),Dt(o)||r&&ps(o))break}else if(f===35){if(n=e.input.charCodeAt(e.position-1),Dt(n))break}else{if(e.position===e.lineStart&&Ga(e)||r&&ps(f))break;if(_r(f))if(c=e.line,p=e.lineStart,l=e.lineIndent,He(e,!1,-1),e.lineIndent>=t){a=!0,f=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=c,e.lineStart=p,e.lineIndent=l;break}}if(a&&(Xn(e,i,s,!1),Ag(e,m,e.line-c),i=s=e.position,a=!1),Uo(f)||(s=e.position+1),f=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return Xn(e,i,s,!1),e.result.startPosition!=-1?(m.rawValue=e.input.substring(m.startPosition,m.endPosition),!0):(e.kind=u,e.result=d,!1)}function x6(e,t){var r,n,o;if(r=e.input.charCodeAt(e.position),r!==39)return!1;var i=Gt.newScalar();for(i.singleQuoted=!0,e.kind="scalar",e.result=i,i.startPosition=e.position,e.position++,n=o=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Xn(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),i.endPosition=e.position,r===39)n=o=e.position,e.position++;else return!0;else _r(r)?(Xn(e,n,o,!0),Ag(e,i,He(e,!1,t)),n=o=e.position):e.position===e.lineStart&&Ga(e)?H(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position,i.endPosition=e.position);H(e,"unexpected end of the stream within a single quoted scalar")}function w6(e,t){var r,n,o,i,s,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;e.kind="scalar";var p=Gt.newScalar();for(p.doubleQuoted=!0,e.result=p,p.startPosition=e.position,e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return Xn(e,r,e.position,!0),e.position++,p.endPosition=e.position,p.rawValue=e.input.substring(p.startPosition,p.endPosition),!0;if(c===92){if(Xn(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),_r(c))He(e,!1,t);else if(c<256&&(e.allowAnyEscape?zT[c]:bg[c]))p.value+=e.allowAnyEscape?Sg[c]:vg[c],e.position++;else if((s=m6(c))>0){for(o=s,i=0;o>0;o--)c=e.input.charCodeAt(++e.position),(s=f6(c))>=0?i=(i<<4)+s:H(e,"expected hexadecimal character");p.value+=g6(i),e.position++}else H(e,"unknown escape sequence");r=n=e.position}else _r(c)?(Xn(e,r,n,!0),Ag(e,p,He(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Ga(e)?H(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}H(e,"unexpected end of the stream within a double quoted scalar")}function _6(e,t){var r=!0,n,o=e.tag,i,s=e.anchor,a,c,p,l,u,d,f,m,h;if(h=e.input.charCodeAt(e.position),h===91)c=93,u=!1,i=Gt.newItems(),i.startPosition=e.position;else if(h===123)c=125,u=!0,i=Gt.newMap(),i.startPosition=e.position;else return!1;for(e.anchor!==null&&(i.anchorId=e.anchor,e.anchorMap[e.anchor]=i),h=e.input.charCodeAt(++e.position);h!==0;){if(He(e,!0,t),h=e.input.charCodeAt(e.position),h===c)return e.position++,e.tag=o,e.anchor=s,e.kind=u?"mapping":"sequence",e.result=i,i.endPosition=e.position,!0;if(!r){var y=e.position;H(e,"missed comma between flow collection entries"),e.position=y+1}if(f=d=m=null,p=l=!1,h===63&&(a=e.input.charCodeAt(e.position+1),Dt(a)&&(p=l=!0,e.position++,He(e,!0,t))),n=e.line,us(e,t,Hl,!1,!0),f=e.tag,d=e.result,He(e,!0,t),h=e.input.charCodeAt(e.position),(l||e.line===n)&&h===58&&(p=!0,h=e.input.charCodeAt(++e.position),He(e,!0,t),us(e,t,Hl,!1,!0),m=e.result),u)ls(e,i,f,d,m);else if(p){var g=ls(e,null,f,d,m);g.parent=i,i.items.push(g)}else d&&(d.parent=i),i.items.push(d);i.endPosition=e.position+1,He(e,!0,t),h=e.input.charCodeAt(e.position),h===44?(r=!0,h=e.input.charCodeAt(++e.position)):r=!1}H(e,"unexpected end of the stream within a flow collection")}function P6(e,t){var r,n,o=gg,i=!1,s=t,a=0,c=!1,p,l;if(l=e.input.charCodeAt(e.position),l===124)n=!1;else if(l===62)n=!0;else return!1;var u=Gt.newScalar();for(e.kind="scalar",e.result=u,u.startPosition=e.position;l!==0;)if(l=e.input.charCodeAt(++e.position),l===43||l===45)gg===o?o=l===43?CT:p6:H(e,"repeat of a chomping mode identifier");else if((p=h6(l))>=0)p===0?H(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):i?H(e,"repeat of an indentation width identifier"):(s=t+p-1,i=!0);else break;if(Uo(l)){do l=e.input.charCodeAt(++e.position);while(Uo(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!_r(l)&&l!==0)}for(;l!==0;){for($g(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!i||e.lineIndent<s)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!i&&e.lineIndent>s&&(s=e.lineIndent),_r(l)){a++;continue}if(e.lineIndent<s){o===CT?u.value+=Jn.repeat(`
|
|
30
|
-
`,a):o===gg&&i&&(u.value+=`
|
|
31
|
-
`);break}for(n?Uo(l)?(c=!0,u.value+=Jn.repeat(`
|
|
32
|
-
`,a+1)):c?(c=!1,u.value+=Jn.repeat(`
|
|
33
|
-
`,a+1)):a===0?i&&(u.value+=" "):u.value+=Jn.repeat(`
|
|
34
|
-
`,a):i&&(u.value+=Jn.repeat(`
|
|
35
|
-
`,a+1)),i=!0,a=0,r=e.position;!_r(l)&&l!==0;)l=e.input.charCodeAt(++e.position);Xn(e,r,e.position,!1)}u.endPosition=e.position;for(var d=e.position-1,f=!1;;){var m=e.input[d];if(m=="\r"||m==`
|
|
36
|
-
`){f&&d--;break}if(m!=" "&&m!=" ")break;d--}return u.endPosition=d,u.rawValue=e.input.substring(u.startPosition,u.endPosition),!0}function NT(e,t){var r,n=e.tag,o=e.anchor,i=Gt.newItems(),s,a=!1,c;for(e.anchor!==null&&(i.anchorId=e.anchor,e.anchorMap[e.anchor]=i),i.startPosition=e.position,c=e.input.charCodeAt(e.position);c!==0&&!(c!==45||(s=e.input.charCodeAt(e.position+1),!Dt(s)));){if(a=!0,e.position++,He(e,!0,-1)&&e.lineIndent<=t){i.items.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,us(e,t,DT,!1,!0),e.result&&(e.result.parent=i,i.items.push(e.result)),He(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)H(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return i.endPosition=e.position,a?(e.tag=n,e.anchor=o,e.kind="sequence",e.result=i,i.endPosition=e.position,!0):!1}function E6(e,t,r){var n,o,i,s=e.tag,a=e.anchor,c=Gt.newMap(),p=null,l=null,u=null,d=!1,f=!1,m;for(c.startPosition=e.position,e.anchor!==null&&(c.anchorId=e.anchor,e.anchorMap[e.anchor]=c),m=e.input.charCodeAt(e.position);m!==0;){if(n=e.input.charCodeAt(e.position+1),i=e.line,(m===63||m===58)&&Dt(n))m===63?(d&&(ls(e,c,p,l,null),p=l=u=null),f=!0,d=!0,o=!0):d?(d=!1,o=!0):H(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,m=n;else if(us(e,r,jT,!1,!0))if(e.line===i){for(m=e.input.charCodeAt(e.position);Uo(m);)m=e.input.charCodeAt(++e.position);if(m===58)m=e.input.charCodeAt(++e.position),Dt(m)||H(e,"a whitespace character is expected after the key-value separator within a block mapping"),d&&(ls(e,c,p,l,null),p=l=u=null),f=!0,d=!1,o=!1,p=e.tag,l=e.result;else{if(e.position==e.lineStart&&Ga(e))break;if(f)H(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=s,e.anchor=a,!0}}else if(f){for(H(e,"can not read a block mapping entry; a multiline key may not be an implicit key");e.position>0;)if(m=e.input.charCodeAt(--e.position),_r(m)){e.position++;break}}else return e.tag=s,e.anchor=a,!0;else break;if((e.line===i||e.lineIndent>t)&&(us(e,t,Kl,!0,o)&&(d?l=e.result:u=e.result),d||(ls(e,c,p,l,u),p=l=u=null),He(e,!0,-1),m=e.input.charCodeAt(e.position)),e.lineIndent>t&&m!==0)H(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return d&&ls(e,c,p,l,null),f&&(e.tag=s,e.anchor=a,e.kind="mapping",e.result=c),f}function $6(e){var t,r=!1,n=!1,o,i,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&H(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,o="!!",s=e.input.charCodeAt(++e.position)):o="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(i=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):H(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Dt(s);)s===33&&(n?H(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(t-1,e.position+1),LT.test(o)||H(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);i=e.input.slice(t,e.position),d6.test(i)&&H(e,"tag suffix cannot contain flow indicator characters")}return i&&!UT.test(i)&&H(e,"tag name cannot contain such characters: "+i),r?e.tag=i:Gl.call(e.tagMap,o)?e.tag=e.tagMap[o]+i:o==="!"?e.tag="!"+i:o==="!!"?e.tag="tag:yaml.org,2002:"+i:H(e,'undeclared tag handle "'+o+'"'),!0}function A6(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&H(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Dt(r)&&!ps(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&H(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function T6(e){var t,r,n=e.length,o=e.input,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!Dt(i)&&!ps(i);)i=e.input.charCodeAt(++e.position);return e.position<=t&&(H(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)||(H(e,'unidentified alias "'+r+'"'),e.position<=t&&(e.position=t+1)),e.result=Gt.newAnchorRef(r,t,e.position,e.anchorMap[r]),He(e,!0,-1),!0}function us(e,t,r,n,o){var i,s,a,c=1,p=!1,l=!1,u,d,f,m,h,y;e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=s=a=Kl===r||DT===r,n&&He(e,!0,-1)&&(p=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1));var g=e.position,P=e.position-e.lineStart;if(c===1)for(;$6(e)||A6(e);)He(e,!0,-1)?(p=!0,a=i,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):a=!1;if(a&&(a=p||o),(c===1||Kl===r)&&(Hl===r||jT===r?m=t:m=t+1,h=e.position-e.lineStart,c===1?a&&(NT(e,h)||E6(e,h,m))||_6(e,m)?l=!0:(s&&P6(e,m)||x6(e,m)||w6(e,m)?l=!0:T6(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&H(e,"alias node should not have any properties")):S6(e,m,Hl===r)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result,e.result.anchorId=e.anchor)):c===0&&(l=a&&NT(e,h))),e.tag!==null&&e.tag!=="!")if(e.tag=="!include")e.result||(e.result=Gt.newScalar(),e.result.startPosition=e.position,e.result.endPosition=e.position,H(e,"!include without value")),e.result.kind=Gt.Kind.INCLUDE_REF;else if(e.tag==="?")for(u=0,d=e.implicitTypes.length;u<d;u+=1){f=e.implicitTypes[u];var b=e.result.value;if(f.resolve(b)){e.result.valueObject=f.construct(e.result.value),e.tag=f.tag,e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result);break}}else Gl.call(e.typeMap,e.tag)?(f=e.typeMap[e.tag],e.result!==null&&f.kind!==e.kind&&H(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result)?(e.result=f.construct(e.result),e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result)):H(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):xg(e,g,"unknown tag <"+e.tag+">",!1,!0);return e.tag!==null||e.anchor!==null||l}function R6(e){var t=e.position,r,n,o,i=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(s=e.input.charCodeAt(e.position))!==0&&(He(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(i=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!Dt(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),o=[],n.length<1&&H(e,"directive name must not be less than one character in length");s!==0;){for(;Uo(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!_r(s));break}if(_r(s))break;for(r=e.position;s!==0&&!Dt(s);)s=e.input.charCodeAt(++e.position);o.push(e.input.slice(r,e.position))}s!==0&&$g(e),Gl.call(qT,n)?qT[n](e,n,o):(wg(e,'unknown document directive "'+n+'"'),e.position++)}if(He(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,He(e,!0,-1)):i&&H(e,"directives end mark is expected"),us(e,e.lineIndent-1,Kl,!1,!0),He(e,!0,-1),e.checkLineBreaks&&u6.test(e.input.slice(t,e.position))&&wg(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ga(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,He(e,!0,-1));return}if(e.position<e.length-1)H(e,"end of the stream or a document separator is expected");else return}function FT(e,t){e=String(e),t=t||{};var r=e.length;r!==0&&(e.charCodeAt(r-1)!==10&&e.charCodeAt(r-1)!==13&&(e+=`
|
|
37
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new b6(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 o=n.position;if(R6(n),n.position<=o)for(;n.position<n.length-1;n.position++){var i=n.input.charAt(n.position);if(i==`
|
|
38
|
-
`)break}}var s=n.documents,a=s.length;a>0&&(s[a-1].endPosition=r);for(var c=0,p=s;c<p.length;c++){var l=p[c];l.errors=n.errors,l.startPosition>l.endPosition&&(l.startPosition=l.endPosition)}return s}function Tg(e,t,r){r===void 0&&(r={});var n=FT(e,r),o,i;for(o=0,i=n.length;o<i;o+=1)t(n[o])}ds.loadAll=Tg;function Rg(e,t){t===void 0&&(t={});var r=FT(e,t),n,o;if(r.length!==0){if(r.length===1)return r[0];var i=new _g("expected a single document in the stream, but found more");return i.mark=new Pg("","",0,0,0),i.mark.position=r[0].endPosition,r[0].errors.push(i),r[0]}}ds.load=Rg;function VT(e,t,r){r===void 0&&(r={}),Tg(e,t,Jn.extend({schema:MT},r))}ds.safeLoadAll=VT;function BT(e,t){return t===void 0&&(t={}),Rg(e,Jn.extend({schema:MT},t))}ds.safeLoad=BT;Wa.exports.loadAll=Tg;Wa.exports.load=Rg;Wa.exports.safeLoadAll=VT;Wa.exports.safeLoad=BT});var XT=v(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});var Ya=Lo(),Ng=as(),O6=yg(),k6=Bl(),Mg=Object.prototype.toString,YT=Object.prototype.hasOwnProperty,I6=9,zo=10,C6=13,Og=32,q6=33,kg=34,N6=35,M6=37,j6=38,Ig=39,D6=42,L6=44,U6=45,z6=58,F6=62,V6=63,B6=64,H6=91,K6=93,G6=96,W6=123,Y6=124,Q6=125,Ze={};Ze[0]="\\0";Ze[7]="\\a";Ze[8]="\\b";Ze[9]="\\t";Ze[10]="\\n";Ze[11]="\\v";Ze[12]="\\f";Ze[13]="\\r";Ze[27]="\\e";Ze[34]='\\"';Ze[92]="\\\\";Ze[133]="\\N";Ze[160]="\\_";Ze[8232]="\\L";Ze[8233]="\\P";var J6=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function X6(e,t){var r,n,o,i,s,a,c;if(t===null)return{};for(r={},n=Object.keys(t),o=0,i=n.length;o<i;o+=1)s=n[o],a=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),c=e.compiledTypeMap[s],c&&YT.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[s]=a;return r}function Z6(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 Ng("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Ya.repeat("0",n-t.length)+t}function eJ(e){this.schema=e.schema||O6,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ya.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=X6(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 KT(e,t){for(var r=Ya.repeat(" ",t),n=0,o=-1,i="",s,a=e.length;n<a;)o=e.indexOf(`
|
|
39
|
-
`,n),o===-1?(s=e.slice(n),n=a):(s=e.slice(n,o+1),n=o+1),s.length&&s!==`
|
|
40
|
-
`&&(i+=r),i+=s;return i}function Cg(e,t){return`
|
|
41
|
-
`+Ya.repeat(" ",e.indent*t)}function tJ(e,t){var r,n,o;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(o=e.implicitTypes[r],o.resolve(t))return!0;return!1}function Wl(e){this.source=e,this.result="",this.checkpoint=0}Wl.prototype.takeUpTo=function(e){var t;if(e<this.checkpoint)throw t=new Error("position should be > checkpoint"),t.position=e,t.checkpoint=this.checkpoint,t;return this.result+=this.source.slice(this.checkpoint,e),this.checkpoint=e,this};Wl.prototype.escapeChar=function(){var e,t;return e=this.source.charCodeAt(this.checkpoint),t=Ze[e]||Z6(e),this.result+=t,this.checkpoint+=1,this};Wl.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function rJ(e,t,r){var n,o,i,s,a,c,p,l,u,d,f,m,h,y,g,P,b,x,S,w,T;if(t.length===0){e.dump="''";return}if(t.indexOf("!include")==0){e.dump=""+t;return}if(t.indexOf("!$$$novalue")==0){e.dump="";return}if(J6.indexOf(t)!==-1){e.dump="'"+t+"'";return}for(n=!0,o=t.length?t.charCodeAt(0):0,i=Og===o||Og===t.charCodeAt(t.length-1),(U6===o||V6===o||B6===o||G6===o)&&(n=!1),i?(n=!1,s=!1,a=!1):(s=!0,a=!0),c=!0,p=new Wl(t),l=!1,u=0,d=0,f=e.indent*r,m=80,f<40?m-=f:m=40,y=0;y<t.length;y++){if(h=t.charCodeAt(y),n)if(!oJ(h))n=!1;else continue;c&&h===Ig&&(c=!1),g=Ze[h],P=QT(h),!(!g&&!P)&&(h!==zo&&h!==kg&&h!==Ig?(s=!1,a=!1):h===zo&&(l=!0,c=!1,y>0&&(b=t.charCodeAt(y-1),b===Og&&(a=!1,s=!1)),s&&(x=y-u,u=y,x>d&&(d=x))),h!==kg&&(c=!1),p.takeUpTo(y),p.escapeChar())}if(n&&tJ(e,t)&&(n=!1),S="",(s||a)&&(w=0,t.charCodeAt(t.length-1)===zo&&(w+=1,t.charCodeAt(t.length-2)===zo&&(w+=1)),w===0?S="-":w===2&&(S="+")),a&&d<m&&(s=!1),l||(a=!1),n)e.dump=t;else if(c)e.dump="'"+t+"'";else if(s)T=nJ(t,m),e.dump=">"+S+`
|
|
42
|
-
`+KT(T,f);else if(a)S||(t=t.replace(/\n$/,"")),e.dump="|"+S+`
|
|
43
|
-
`+KT(t,f);else if(p)p.finish(),e.dump='"'+p.result+'"';else throw new Error("Failed to dump scalar value")}function nJ(e,t){var r="",n=0,o=e.length,i=/\n+$/.exec(e),s;for(i&&(o=i.index+1);n<o;)s=e.indexOf(`
|
|
44
|
-
`,n),s>o||s===-1?(r&&(r+=`
|
|
45
|
-
|
|
46
|
-
`),r+=GT(e.slice(n,o),t),n=o):(r&&(r+=`
|
|
47
|
-
|
|
48
|
-
`),r+=GT(e.slice(n,s),t),n=s+1);return i&&i[0]!==`
|
|
49
|
-
`&&(r+=i[0]),r}function GT(e,t){if(e==="")return e;for(var r=/[^\s] [^\s]/g,n="",o=0,i=0,s=r.exec(e),a,c,p;s;)a=s.index,a-i>t&&(o!==i?c=o:c=a,n&&(n+=`
|
|
50
|
-
`),p=e.slice(i,c),n+=p,i=c+1),o=a+1,s=r.exec(e);return n&&(n+=`
|
|
51
|
-
`),i!==o&&e.length-i>t?n+=e.slice(i,o)+`
|
|
52
|
-
`+e.slice(o+1):n+=e.slice(i),n}function oJ(e){return I6!==e&&zo!==e&&C6!==e&&L6!==e&&H6!==e&&K6!==e&&W6!==e&&Q6!==e&&N6!==e&&j6!==e&&D6!==e&&q6!==e&&Y6!==e&&F6!==e&&Ig!==e&&kg!==e&&M6!==e&&z6!==e&&!Ze[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 iJ(e,t,r){var n="",o=e.tag,i,s;for(i=0,s=r.length;i<s;i+=1)Fo(e,t,r[i],!1,!1)&&(i!==0&&(n+=", "),n+=e.dump);e.tag=o,e.dump="["+n+"]"}function sJ(e,t,r,n){var o="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Fo(e,t+1,r[s],!0,!0)&&((!n||s!==0)&&(o+=Cg(e,t)),o+="- "+e.dump);e.tag=i,e.dump=o||"[]"}function aJ(e,t,r){var n="",o=e.tag,i=Object.keys(r),s,a,c,p,l;for(s=0,a=i.length;s<a;s+=1)l="",s!==0&&(l+=", "),c=i[s],p=r[c],Fo(e,t,c,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+": ",Fo(e,t,p,!1,!1)&&(l+=e.dump,n+=l));e.tag=o,e.dump="{"+n+"}"}function cJ(e,t,r,n){var o="",i=e.tag,s=Object.keys(r),a,c,p,l,u,d;for(a=0,c=s.length;a<c;a+=1)d="",(!n||a!==0)&&(d+=Cg(e,t)),p=s[a],l=r[p],Fo(e,t+1,p,!0,!0)&&(u=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,u&&(e.dump&&zo===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,u&&(d+=Cg(e,t)),Fo(e,t+1,l,!0,u)&&(e.dump&&zo===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,o+=d));e.tag=i,e.dump=o||"{}"}function WT(e,t,r){var n,o,i,s,a,c;for(o=r?e.explicitTypes:e.implicitTypes,i=0,s=o.length;i<s;i+=1)if(a=o[i],(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,Mg.call(a.represent)==="[object Function]")n=a.represent(t,c);else if(YT.call(a.represent,c))n=a.represent[c](t,c);else throw new Ng("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}function Fo(e,t,r,n,o){e.tag=null,e.dump=r,WT(e,r,!1)||WT(e,r,!0);var i=Mg.call(e.dump);n&&(n=0>e.flowLevel||e.flowLevel>t),(e.tag!==null&&e.tag!=="?"||e.indent!==2&&t>0)&&(o=!1);var s=i==="[object Object]"||i==="[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),i==="[object Object]")n&&Object.keys(e.dump).length!==0?(cJ(e,t,e.dump,o),c&&(e.dump="&ref_"+a+(t===0?`
|
|
53
|
-
`:"")+e.dump)):(aJ(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(i==="[object Array]")n&&e.dump.length!==0?(sJ(e,t,e.dump,o),c&&(e.dump="&ref_"+a+(t===0?`
|
|
54
|
-
`:"")+e.dump)):(iJ(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(i==="[object String]")e.tag!=="?"&&rJ(e,e.dump,t);else{if(e.skipInvalid)return!1;throw new Ng("unacceptable kind of an object to dump "+i)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function pJ(e,t){var r=[],n=[],o,i;for(qg(e,r,n),o=0,i=n.length;o<i;o+=1)t.duplicates.push(r[n[o]]);t.usedDuplicates=new Array(i)}function qg(e,t,r){var n=Mg.call(e),o,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)qg(e[i],t,r);else for(o=Object.keys(e),i=0,s=o.length;i<s;i+=1)qg(e[o[i]],t,r)}function JT(e,t){t=t||{};var r=new eJ(t);return pJ(e,r),Fo(r,0,e,!0,!0)?r.dump+`
|
|
55
|
-
`:""}Yl.dump=JT;function lJ(e,t){return JT(e,Ya.extend({schema:k6},t))}Yl.safeDump=lJ});var ZT=v(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});function uJ(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw'Invalid boolean "'+e+'"'}Zn.parseYamlBoolean=uJ;function dJ(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function fJ(e){var t=dJ(e);if(isNaN(t))throw'Invalid integer "'+e+'"';return t}Zn.parseYamlInteger=fJ;function mJ(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+'"'}Zn.parseYamlFloat=mJ;var gn;(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"})(gn=Zn.ScalarType||(Zn.ScalarType={}));function hJ(e){if(e===void 0)return gn.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return gn.string;var t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return gn.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return gn.bool;var r=/^[-+]?[0-9]+$/,n=/^0o[0-7]+$/,o=/^0x[0-9a-fA-F]+$/;if(r.test(t)||n.test(t)||o.test(t))return gn.int;var i=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,s=/^[-+]?(\.inf|\.Inf|\.INF)$/;return i.test(t)||s.test(t)||[".nan",".NaN",".NAN"].indexOf(t)>=0?gn.float:gn.string}Zn.determineScalarType=hJ});var rR=v(Pr=>{"use strict";function eR(e){for(var t in e)Pr.hasOwnProperty(t)||(Pr[t]=e[t])}Object.defineProperty(Pr,"__esModule",{value:!0});var Ql=HT();Pr.load=Ql.load;Pr.loadAll=Ql.loadAll;Pr.safeLoad=Ql.safeLoad;Pr.safeLoadAll=Ql.safeLoadAll;var tR=XT();Pr.dump=tR.dump;Pr.safeDump=tR.safeDump;Pr.YAMLException=as();eR(Ka());eR(ZT())});import*as Ho from"node:path";function O(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Ge(e){return!!e}function Qr(e,t){return e===""&&(e="#/"),e[e.length-1]==="/"?e+t:e+"/"+t}function L(e){return O(e)&&typeof e.$ref=="string"}function Ko(e){return L(e)&&Object.keys(e).length>1}function Qa(e){return O(e)&&typeof e.externalValue=="string"}var zt=class e{source;pointer;constructor(t,r){this.source=t,this.pointer=r}child(t){return new e(this.source,Qr(this.pointer,(Array.isArray(t)?t:[t]).map(Or).join("/")))}key(){return{...this,reportOnKey:!0}}get absolutePointer(){return this.source.absoluteRef+(this.pointer==="#/"?"":this.pointer)}};function Ug(e){let t=e.indexOf("~")===-1?e:e.replaceAll("~1","/").replaceAll("~0","~");try{return decodeURIComponent(t)}catch{return t}}function Or(e){return typeof e=="number"||e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replaceAll("~","~0").replaceAll("/","~1")}function vn(e){let[t,r=""]=e.split("#/");return{uri:(t.endsWith("#")?t.slice(0,-1):t)||null,pointer:ru(r)}}function ru(e){return e.split("/").map(Ug).filter(Ge)}function zg(e){let t=e.split("/");return t[t.length-1]}function Fg(e){let t=e.split(/[\/\\]/);return t[t.length-1].replace(/\.[^.]+$/,"")}function se(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("file://")||e.startsWith("data:")}function nu(e){return Ho.extname(e)?se(e)?e.substring(0,e.lastIndexOf("/")):Ho.dirname(e):e}function Ja(e,t){return se(e)?new URL(t,e.endsWith("/")?e:`${e}/`).href:Ho.resolve(e,t)}function kr(e){return typeof e=="string"&&(e.startsWith("#")||se(e)||e.startsWith("./")||e.startsWith("../")||e.indexOf("/")>-1||/\.(ya?ml|json)$/i.test(e))}function Vg(e){return/^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(e)}function ms(e,t,r){if(!O(t.node)&&r.parent){r.parent[r.key]=t.node;return}delete e.$ref,O(t.node)&&Object.assign(e,{...t.node,...e})}var fe=Symbol("NOT_RESOLVED"),$u=Symbol("MERGE_KEY");function lt(e,t){return{tagName:e,nodeKind:"scalar",implicit:t.implicit??!1,matchByTagPrefix:t.matchByTagPrefix??!1,implicitFirstChars:t.implicitFirstChars??null,resolve:t.resolve,identify:t.identify??null,represent:t.represent??(r=>String(r)),representTagName:t.representTagName??null}}function Au(e,t){let r=t.finalize===void 0;return{tagName:e,nodeKind:"sequence",implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addItem:t.addItem,finalize:t.finalize??(n=>n),carrierIsResult:r,identify:t.identify??null,represent:t.represent??(n=>n),representTagName:t.representTagName??null}}function ic(e,t){let r=t.finalize===void 0;return{tagName:e,nodeKind:"mapping",implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addPair:t.addPair,has:t.has,keys:t.keys,get:t.get,finalize:t.finalize??(n=>n),carrierIsResult:r,identify:t.identify??null,represent:t.represent??(n=>n),representTagName:t.representTagName??null}}var dR=lt("tag:yaml.org,2002:str",{resolve:e=>e,identify:e=>typeof e=="string"}),fR=["","~","null","Null","NULL"],mR=lt("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>fR.indexOf(e)!==-1?null:fe,identify:e=>e===null,represent:()=>"null"}),hR=lt("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:(e,t)=>e==="null"||t&&e===""?null:fe,identify:e=>e===null,represent:()=>"null"}),yR=["","~","null","Null","NULL"],gR=lt("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>yR.indexOf(e)!==-1?null:fe,identify:e=>e===null,represent:()=>"null"}),bR=["true","True","TRUE"],vR=["false","False","FALSE"],SR=lt("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:e=>bR.indexOf(e)!==-1?!0:vR.indexOf(e)!==-1?!1:fe,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),xR=["true"],wR=["false"],_R=lt("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:e=>xR.indexOf(e)!==-1?!0:wR.indexOf(e)!==-1?!1:fe,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),PR=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],ER=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],$R=lt("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:e=>PR.indexOf(e)!==-1?!0:ER.indexOf(e)!==-1?!1:fe,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),AR=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),TR=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function RR(e){let t=e,r=1;return(t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(r=-1),t=t.slice(1)),t.startsWith("0b")?r*parseInt(t.slice(2),2):t.startsWith("0o")?r*parseInt(t.slice(2),8):t.startsWith("0x")?r*parseInt(t.slice(2),16):r*parseInt(t,10)}function OR(e,t){if(t){if(!TR.test(e))return fe}else if(!AR.test(e))return fe;let r=RR(e);return Number.isFinite(r)?r:fe}var cb=lt("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:OR,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),kR=new RegExp("^-?(?:0|[1-9][0-9]*)$"),IR=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function CR(e){let t=e,r=1;return(t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(r=-1),t=t.slice(1)),t.startsWith("0b")?r*parseInt(t.slice(2),2):t.startsWith("0o")?r*parseInt(t.slice(2),8):t.startsWith("0x")?r*parseInt(t.slice(2),16):r*parseInt(t,10)}function qR(e,t){if(t){if(!IR.test(e))return fe}else if(!kR.test(e))return fe;let r=CR(e);return Number.isFinite(r)?r:fe}var NR=lt("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:qR,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),MR=new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");function jR(e){let t=e.replace(/_/g,""),r=1;if((t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(r=-1),t=t.slice(1)),t.startsWith("0b"))return r*parseInt(t.slice(2),2);if(t.startsWith("0x"))return r*parseInt(t.slice(2),16);if(t.includes(":")){let n=0;for(let o of t.split(":"))n=n*60+Number(o);return r*n}return t!=="0"&&t[0]==="0"?r*parseInt(t,8):r*parseInt(t,10)}function DR(e){if(!MR.test(e))return fe;let t=jR(e);return Number.isFinite(t)?t:fe}var lu=lt("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:DR,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),LR=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),UR=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function zR(e){if(!LR.test(e))return fe;let t=e.toLowerCase(),r=t[0]==="-"?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),t===".inf")return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(t===".nan")return NaN;let n=r*parseFloat(t);return Number.isFinite(n)||UR.test(e)?n:fe}function FR(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var pb=lt("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:zR,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:FR}),VR=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),BR=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function HR(e,t){if(t){if(!BR.test(e))return fe;let n=e.toLowerCase(),o=n[0]==="-"?-1:1;if("+-".includes(n[0])&&(n=n.slice(1)),n===".inf")return o===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(n===".nan")return NaN;let i=o*parseFloat(n);return Number.isFinite(i)?i:fe}if(!VR.test(e))return fe;let r=Number(e);return Number.isFinite(r)?r:fe}function KR(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var GR=lt("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:HR,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:KR}),WR=new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),YR=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function QR(e){if(!WR.test(e))return fe;let t=e.toLowerCase().replace(/_/g,""),r=t[0]==="-"?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),t===".inf")return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(t===".nan")return NaN;let n=0;if(t.includes(":")){for(let o of t.split(":"))n=n*60+Number(o);n*=r}else n=r*parseFloat(t);return Number.isFinite(n)||YR.test(e)?n:fe}function JR(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var uu=lt("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:QR,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:JR}),Tu=lt("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:(e,t)=>e==="<<"||t&&e===""?$u:fe}),XR=/^[A-Za-z0-9+/]*={0,2}$/;function ZR(e){let t=e.replace(/\s/g,"");if(t.length%4!==0||!XR.test(t))return fe;let r=atob(t),n=new Uint8Array(r.length);for(let o=0;o<r.length;o++)n[o]=r.charCodeAt(o);return n}function eO(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}var Ru=lt("tag:yaml.org,2002:binary",{resolve:ZR,identify:e=>Object.prototype.toString.call(e)==="[object Uint8Array]",represent:eO}),tO=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),rO=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 nO(e){let t=tO.exec(e);if(t===null&&(t=rO.exec(e)),t===null)return fe;let r=+t[1],n=+t[2]-1,o=+t[3];if(!t[4]){let l=new Date(Date.UTC(r,n,o));return l.getUTCFullYear()!==r||l.getUTCMonth()!==n||l.getUTCDate()!==o?fe:l}let i=+t[4],s=+t[5],a=+t[6],c=0;if(i>23||s>59||a>59)return fe;if(t[7]){let l=t[7].slice(0,3);for(;l.length<3;)l+="0";c=+l}let p=new Date(Date.UTC(r,n,o,i,s,a,c));if(p.getUTCFullYear()!==r||p.getUTCMonth()!==n||p.getUTCDate()!==o)return fe;if(t[9]){let l=+t[10],u=+(t[11]||0);if(l>23||u>59)return fe;let d=(l*60+u)*6e4;p.setTime(p.getTime()-(t[9]==="-"?-d:d))}return p}var oO=lt("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:nO,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),iO=Au("tag:yaml.org,2002:seq",{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray});function sc(e){if(e===null||typeof e!="object"||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function du(e,t){let r={};for(let n of t)e[n]!==void 0&&(r[n]=e[n]);return r}var Ou=Au("tag:yaml.org,2002:omap",{create:()=>({list:[],seen:new Set}),addItem:(e,t)=>{let r;if(t instanceof Map){if(t.size!==1)return"cannot resolve an ordered map item";r=t.keys().next().value}else if(sc(t)){let n=Object.keys(t);if(n.length!==1)return"cannot resolve an ordered map item";r=n[0]}else return"cannot resolve an ordered map item";return e.seen.has(r)?"duplicate key in ordered map":(e.seen.add(r),e.list.push(t),"")},finalize:e=>e.list}),ku=Au("tag:yaml.org,2002:pairs",{create:()=>[],addItem:(e,t)=>{if(t instanceof Map)return t.size!==1?"cannot resolve a pairs item":(e.push(t.entries().next().value),"");if(Object.prototype.toString.call(t)!=="[object Object]")return"cannot resolve a pairs item";let r=t,n=Object.keys(r);return n.length!==1?"cannot resolve a pairs item":(e.push([n[0],r[n[0]]]),"")}}),sO=ic("tag:yaml.org,2002:map",{create:()=>({}),identify:sc,represent:e=>{let t=new Map;for(let r of Object.keys(e))t.set(r,e[r]);return t},addPair:(e,t,r)=>{if(t!==null&&typeof t=="object")return"object-based map does not support complex keys";let n=String(t);return n==="__proto__"?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,""},has:(e,t)=>t!==null&&typeof t=="object"?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>e[String(t)]}),Iu=ic("tag:yaml.org,2002:set",{create:()=>new Set,identify:e=>e instanceof Set,represent:e=>{let t=new Map;for(let r of e)t.set(r,null);return t},addPair:(e,t,r)=>r!==null?"cannot resolve a set item":(e.add(t),""),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:()=>null});function aO(){return{scalar:{},sequence:{},mapping:{}}}function cO(){return{scalar:[],sequence:[],mapping:[]}}function pO(e){let t=[];for(let r of e){let n=t.length;for(let o=0;o<t.length;o++){let i=t[o];if(i.nodeKind===r.nodeKind&&i.tagName===r.tagName&&i.matchByTagPrefix===r.matchByTagPrefix){n=o;break}}t[n]=r}return t}var ac=class lb{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(t){let r=pO(t),n=[],o=aO(),i=cO();for(let l of r){if(l.nodeKind==="scalar"&&l.implicit){if(l.matchByTagPrefix)throw new Error("Implicit scalar tags cannot match by tag prefix");n.push(l)}switch(l.nodeKind){case"scalar":l.matchByTagPrefix?i.scalar.push(l):o.scalar[l.tagName]=l;break;case"sequence":l.matchByTagPrefix?i.sequence.push(l):o.sequence[l.tagName]=l;break;case"mapping":l.matchByTagPrefix?i.mapping.push(l):o.mapping[l.tagName]=l;break}}let s=n.filter(l=>l.implicitFirstChars===null),a=new Set;for(let l of n)if(l.implicitFirstChars!==null)for(let u of l.implicitFirstChars)a.add(u);let c=new Map;for(let l of a)c.set(l,n.filter(u=>u.implicitFirstChars===null||u.implicitFirstChars.indexOf(l)!==-1));let p=o.scalar["tag:yaml.org,2002:str"];if(!p)throw new Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");this.tags=r,this.implicitScalarTags=n,this.implicitScalarByFirstChar=c,this.implicitScalarAnyFirstChar=s,this.defaultScalarTag=p,this.defaultSequenceTag=o.sequence["tag:yaml.org,2002:seq"],this.defaultMappingTag=o.mapping["tag:yaml.org,2002:map"],this.exact=o,this.prefix=i}withTags(...t){let r=[];for(let n of t)r=r.concat(n);return new lb([...this.tags,...r])}},Cu=new ac([dR,iO,sO]),LJ=new ac([...Cu.tags,hR,_R,NR,GR]),qu=new ac([...Cu.tags,mR,SR,cb,pb]),lO=new ac([...Cu.tags,gR,$R,lu,uu,oO,Tu,Ru,Ou,ku,Iu]),UJ=ic("tag:yaml.org,2002:map",{create:()=>new Map,addPair:(e,t,r)=>(e.set(t,r),""),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:(e,t)=>e.get(t),identify:e=>e instanceof Map||sc(e),represent:e=>{if(e instanceof Map)return e;let t=new Map,r=e;for(let n of Object.keys(r))t.set(n,r[n]);return t}});function Bg(e){if(Array.isArray(e)){let t=Array.prototype.slice.call(e);for(let r=0;r<t.length;r++){if(Array.isArray(t[r]))return null;typeof t[r]=="object"&&Object.prototype.toString.call(t[r])==="[object Object]"&&(t[r]="[object Object]")}return String(t)}return typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"?"[object Object]":String(e)}var zJ=ic("tag:yaml.org,2002:map",{create:()=>({}),identify:sc,represent:e=>{let t=new Map;for(let r of Object.keys(e))t.set(r,e[r]);return t},addPair:(e,t,r)=>{let n=Bg(t);return n===null?"nested arrays are not supported inside keys":(n==="__proto__"?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,"")},has:(e,t)=>{let r=Bg(t);return r!==null&&Object.prototype.hasOwnProperty.call(e,r)},keys:e=>Object.keys(e),get:(e,t)=>e[String(t)]}),uO={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function ou(e,t,r,n,o){let i="",s="",a=Math.floor(o/2)-1;return n-t>a&&(i=" ... ",t=n-a+i.length),r-n>a&&(s=" ...",r=n+a-s.length),{str:i+e.slice(t,r).replace(/\t/g,"\u2192")+s,pos:n-t+i.length}}function iu(e,t){return" ".repeat(Math.max(t-e.length,0))+e}function dO(e,t){if(!e.buffer)return null;let r={...uO,...t},n=/\r?\n|\r|\0/g,o=[0],i=[],s,a=-1;for(;s=n.exec(e.buffer);)i.push(s.index),o.push(s.index+s[0].length),e.position<=s.index&&a<0&&(a=o.length-2);a<0&&(a=o.length-1);let c="",p=Math.min(e.line+r.linesAfter,i.length).toString().length,l=r.maxLength-(r.indent+p+3);for(let d=1;d<=r.linesBefore&&!(a-d<0);d++){let f=ou(e.buffer,o[a-d],i[a-d],e.position-(o[a]-o[a-d]),l);c=`${" ".repeat(r.indent)}${iu((e.line-d+1).toString(),p)} | ${f.str}
|
|
56
|
-
${c}`}let u=ou(e.buffer,o[a],i[a],e.position,l);c+=`${" ".repeat(r.indent)}${iu((e.line+1).toString(),p)} | ${u.str}
|
|
57
|
-
`,c+=`${"-".repeat(r.indent+p+3+u.pos)}^
|
|
58
|
-
`;for(let d=1;d<=r.linesAfter&&!(a+d>=i.length);d++){let f=ou(e.buffer,o[a+d],i[a+d],e.position-(o[a]-o[a+d]),l);c+=`${" ".repeat(r.indent)}${iu((e.line+d+1).toString(),p)} | ${f.str}
|
|
59
|
-
`}return c.replace(/\n$/,"")}function Hg(e,t){let r="";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+=`
|
|
60
|
-
|
|
61
|
-
${e.mark.snippet}`),`${e.reason} ${r}`):e.reason}var ws=class extends Error{reason;mark;constructor(e,t){super(),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Hg(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${Hg(this,e)}`}};function cc(e,t,r,n=""){let o=0,i=0;for(let a=0;a<t;a++){let c=e.charCodeAt(a);c===10?(o++,i=a+1):c===13&&(o++,e.charCodeAt(a+1)===10&&a++,i=a+1)}let s={name:n,buffer:e,position:t,line:o,column:t-i};throw s.snippet=dO(s),new ws(r,s)}var fO=-1;function Kg(e){switch(e){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
|
|
62
|
-
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}var ub=new Array(256),db=new Array(256);for(let e=0;e<256;e++)ub[e]=Kg(e)?1:0,db[e]=Kg(e);function mO(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function hO(e){return e>=48&&e<=57?e-48:(e|32)-97+10}function yO(e){return e===120?2:e===117?4:8}function rc(e,t,r){let n=0;for(;t<r;){let o=e.charCodeAt(t);if(o===10)n++,t++;else if(o===13)n++,t++,e.charCodeAt(t)===10&&t++;else if(o===32||o===9)t++;else break}return{position:t,breaks:n}}function Nu(e){return e===1?" ":`
|
|
63
|
-
`.repeat(e-1)}function gO(e,t,r){let n="",o=t,i=t,s=t;for(;o<r;){let a=e.charCodeAt(o);if(a===10||a===13){n+=e.slice(i,s);let c=rc(e,o,r);n+=Nu(c.breaks),o=i=s=c.position}else o++,a!==32&&a!==9&&(s=o)}return n+e.slice(i,s)}function bO(e,t,r){let n="",o=t,i=t,s=t;for(;o<r;){let a=e.charCodeAt(o);if(a===39)n+=e.slice(i,o)+"'",o+=2,i=s=o;else if(a===10||a===13){n+=e.slice(i,s);let c=rc(e,o,r);n+=Nu(c.breaks),o=i=s=c.position}else o++,a!==32&&a!==9&&(s=o)}return n+e.slice(i,r)}function vO(e,t,r){let n="",o=t,i=t,s=t;for(;o<r;){let a=e.charCodeAt(o);if(a===92){n+=e.slice(i,o),o++;let c=e.charCodeAt(o);if(c===10||c===13)o=rc(e,o,r).position;else if(c<256&&ub[c])n+=db[c],o++;else{let p=yO(c),l=0;for(;p>0;p--){o++;let u=hO(e.charCodeAt(o));l=(l<<4)+u}n+=mO(l),o++}i=s=o}else if(a===10||a===13){n+=e.slice(i,s);let c=rc(e,o,r);n+=Nu(c.breaks),o=i=s=c.position}else o++,a!==32&&a!==9&&(s=o)}return n+e.slice(i,r)}function Gg(e,t,r,n,o,i){let s=n<0?0:n,a=e.slice(t,r).replace(/\r\n?/g,`
|
|
64
|
-
`),c=a===""?[]:(a.endsWith(`
|
|
65
|
-
`)?a.slice(0,-1):a).split(`
|
|
66
|
-
`),p="",l=!1,u=0,d=!1;for(let f of c){let m=0;for(;m<s&&f.charCodeAt(m)===32;)m++;if(n<0||m>=f.length){u++;continue}let h=f.slice(s),y=h.charCodeAt(0);i?y===32||y===9?(d=!0,p+=`
|
|
67
|
-
`.repeat(l?1+u:u)):d?(d=!1,p+=`
|
|
68
|
-
`.repeat(u+1)):u===0?l&&(p+=" "):p+=`
|
|
69
|
-
`.repeat(u):p+=`
|
|
70
|
-
`.repeat(l?1+u:u),p+=h,l=!0,u=0}return o===3?p+=`
|
|
71
|
-
`.repeat(l?1+u:u):o!==2&&l&&(p+=`
|
|
72
|
-
`),p}function SO(e,t){if(t.valueStart===fO)return"";let{valueStart:r,valueEnd:n}=t;if(t.fast)return e.slice(r,n);switch(t.style){case 2:return bO(e,r,n);case 3:return vO(e,r,n);case 4:return Gg(e,r,n,t.indent,t.chomping,!1);case 5:return Gg(e,r,n,t.indent,t.chomping,!0);default:return gO(e,r,n)}}var xO={"!":"!","!!":"tag:yaml.org,2002:"};function su(e){return encodeURI(e).replace(/!/g,"%21")}function fb(e,t){if(e.startsWith("!<")&&e.endsWith(">"))return decodeURIComponent(e.slice(2,-1));let r=e.indexOf("!",1),n=r===-1?"!":e.slice(0,r+1),o=t?.[n]??xO[n]??n;return decodeURIComponent(o)+decodeURIComponent(e.slice(n.length))}function mb(e){let t=e;return t.charCodeAt(0)===33?(t=t.slice(1),`!${su(t)}`):t.slice(0,18)==="tag:yaml.org,2002:"?`!!${su(t.slice(18))}`:`!<${su(t)}>`}var Go=-1,Mu={filename:"",schema:qu,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function wO(e){return"tagStart"in e&&e.tagStart!==Go?e.tagStart:"anchorStart"in e&&e.anchorStart!==Go?e.anchorStart:"valueStart"in e&&e.valueStart!==Go?e.valueStart:"start"in e?e.start:0}function At(e,t){cc(e.source,e.position,t,e.filename)}function hb(e,t,r,n){try{return r.finalize(n)}catch(o){if(o instanceof ws)throw o;cc(e.source,t,o instanceof Error?o.message:String(o),e.filename)}}function ec(e,t,r){let n=e[r];if(n)return n;for(let o of t)if(r.startsWith(o.tagName))return o}function _O(e,t,r,n,o){let i=ec(t,r,n);if(i)return i;At(e,`unknown ${o} tag !<${n}>`)}function PO(e,t){let r=SO(e.source,t),n=t.tagStart===Go?"":e.source.slice(t.tagStart,t.tagEnd),o=e.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:o};let i=fb(n,e.tagHandlers),s=ec(e.schema.exact.scalar,e.schema.prefix.scalar,i);if(s){let c=s.resolve(r,!0,i);return c===fe&&At(e,`cannot resolve a node with !<${i}> explicit tag`),{value:c,tag:s}}let a=ec(e.schema.exact.mapping,e.schema.prefix.mapping,i)??ec(e.schema.exact.sequence,e.schema.prefix.sequence,i);if(a){r!==""&&At(e,`cannot resolve a node with !<${i}> explicit tag`);let c=a.create(i);return{value:a.carrierIsResult?c:hb(e,e.position,a,c),tag:a}}At(e,`unknown scalar tag !<${i}>`)}if(t.style===1){let i=e.schema.implicitScalarByFirstChar.get(r.charAt(0))??e.schema.implicitScalarAnyFirstChar;for(let s of i){let a=s.resolve(r,!1,s.tagName);if(a!==fe)return{value:a,tag:s}}}return{value:o.resolve(r,!1,o.tagName),tag:o}}function Wg(e,t,r,n,o,i){let s=t.tagStart===Go?"":e.source.slice(t.tagStart,t.tagEnd),a=s===""||s==="!"?o:fb(s,e.tagHandlers);return{tagName:a,tag:_O(e,r,n,a,i)}}function yb(e){return e.nodeKind==="mapping"}function Yg(e,t,r,n){for(let o of n.keys(r)){if(e.maxTotalMergeKeys!==-1&&++e.totalMergeKeys>e.maxTotalMergeKeys&&At(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`),t.tag.has(t.value,o))continue;let i=t.tag.addPair(t.value,o,n.get(r,o));i&&At(e,i),(t.overridable??=new Set).add(o)}}function EO(e,t,r,n){if(e.position=t.keyPosition,yb(n))Yg(e,t,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r))for(let o of r)Yg(e,t,o,t.tag);else At(e,"cannot merge mappings; the provided source object is unacceptable")}function $O(e,t,r,n,o){if(e.position=t.keyPosition,r===$u){EO(e,t,n,o);return}!e.json&&t.tag.has(t.value,r)&&!t.overridable?.has(r)&&At(e,"duplicated mapping key");let i=t.tag.addPair(t.value,r,n);i&&At(e,i),t.overridable?.delete(r)}function au(e,t,r){let n=e.frames[e.frames.length-1];if(n.kind==="document")n.value=t,n.hasValue=!0;else if(n.kind==="sequence"){n.merge&&(yb(r)||At(e,"cannot merge mappings; the provided source object is unacceptable"));let o=n.tag.addItem(n.value,t,n.index++);o&&At(e,o)}else if(n.hasKey){let o=n.key;n.key=void 0,n.hasKey=!1,$O(e,n,o,t,r)}else n.key=t,n.keyPosition=e.position,n.hasKey=!0}function cu(e,t,r,n,o){if(t.anchorStart!==Go){let i={value:r,tag:n,isValueFinal:o};return e.anchors.set(e.source.slice(t.anchorStart,t.anchorEnd),i),i}return null}function AO(e,t){let r={...Mu,...t,events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;r.eventIndex<r.events.length;){let n=r.events[r.eventIndex++];switch(r.position=wO(n),n.type){case 1:r.anchors=new Map,r.aliasCount=0,r.tagHandlers=Object.create(null);for(let o of n.directives)o.kind==="tag"&&(r.tagHandlers[o.handle]=o.prefix);r.frames.push({kind:"document",position:r.position,value:void 0,hasValue:!1});break;case 4:{let{value:o,tag:i}=PO(r,n);cu(r,n,o,i,!0),au(r,o,i);break}case 2:{let o=Wg(r,n,r.schema.exact.sequence,r.schema.prefix.sequence,"tag:yaml.org,2002:seq","sequence"),i=o.tag.create(o.tagName),s=cu(r,n,i,o.tag,o.tag.carrierIsResult),a=r.frames[r.frames.length-1],c=a!==void 0&&a.kind==="mapping"&&a.hasKey&&a.key===$u;r.frames.push({kind:"sequence",position:r.position,value:i,tag:o.tag,anchor:s,index:0,merge:c});break}case 3:{let o=Wg(r,n,r.schema.exact.mapping,r.schema.prefix.mapping,"tag:yaml.org,2002:map","mapping"),i=o.tag.create(o.tagName),s=cu(r,n,i,o.tag,o.tag.carrierIsResult);r.frames.push({kind:"mapping",position:r.position,value:i,tag:o.tag,anchor:s,key:void 0,keyPosition:r.position,hasKey:!1,overridable:null});break}case 5:{r.maxAliases!==-1&&++r.aliasCount>r.maxAliases&&At(r,`aliases exceeded maxAliases (${r.maxAliases})`);let o=r.source.slice(n.anchorStart,n.anchorEnd),i=r.anchors.get(o);i||At(r,`unidentified alias "${o}"`),i.isValueFinal||At(r,`recursive alias "${o}" is not supported for tag ${i.tag.tagName} because it uses finalize()`),au(r,i.value,i.tag);break}case 6:{let o=r.frames.pop();if(o.kind==="document")r.documents.push(o.value);else{let i=o.tag.carrierIsResult?o.value:hb(r,o.position,o.tag,o.value);o.anchor&&(o.anchor.value=i,o.anchor.isValueFinal=!0),au(r,i,o.tag)}break}}}return r.documents}var ve=-1,gb=Object.prototype.hasOwnProperty,Jo=1,fu=2,bb=3,nc=4,TO=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,RO=/[,\[\]{}]/,vb=/^(?:!|!!|![0-9A-Za-z-]+!)$/,mu=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,Sb=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,OO=new RegExp(`^(?:${mu})*$`),kO=new RegExp(`^(?:${Sb})+$`),IO=new RegExp(`^(?:!(?:${mu})*|${Sb}(?:${mu})*)$`),ju={filename:"",maxDepth:100};function CO(e,t,r){e.events.push({type:1,explicitStart:t,explicitEnd:r,directives:e.directives})}function xb(e,t,r,n,o,i,s){e.events.push({type:2,start:t,anchorStart:r,anchorEnd:n,tagStart:o,tagEnd:i,style:s})}function hu(e,t,r,n,o,i,s){e.events.push({type:3,start:t,anchorStart:r,anchorEnd:n,tagStart:o,tagEnd:i,style:s})}function Qg(e,t){e.events.splice(t.eventsLength,0,{type:3,start:t.position,anchorStart:ve,anchorEnd:ve,tagStart:ve,tagEnd:ve,style:2})}function Zo(e,t,r,n,o,i,s,a,c=1,p=-1,l=!1){e.events.push({type:4,valueStart:t,valueEnd:r,anchorStart:n,anchorEnd:o,tagStart:i,tagEnd:s,style:a,chomping:c,indent:p,fast:l})}function qO(e,t,r){e.events.push({type:5,anchorStart:t,anchorEnd:r})}function Wo(e){e.events.push({type:6})}function bt(e){Zo(e,ve,ve,ve,ve,ve,ve,1)}function Jg(){return{anchorStart:ve,anchorEnd:ve,tagStart:ve,tagEnd:ve}}function gs(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function Yo(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.events.length=t.eventsLength}function U(e,t){cc(e.input.slice(0,e.length),e.position,t,e.filename)}function Qe(e){return e===10||e===13}function ro(e){return e===9||e===32}function pr(e){return ro(e)||Qe(e)}function Jr(e){return e===0||pr(e)}function no(e){return e===44||e===91||e===93||e===123||e===125}function NO(e){return e>=48&&e<=57?e-48:-1}function MO(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function jO(e){return e===120?2:e===117?4:e===85?8:0}function DO(e){return e===48||e===97||e===98||e===116||e===9||e===110||e===118||e===102||e===114||e===101||e===32||e===34||e===47||e===92||e===78||e===95||e===76||e===80}function oc(e){e.input.charCodeAt(e.position)===10?e.position++:(e.position++,e.input.charCodeAt(e.position)===10&&e.position++),e.line++,e.lineStart=e.position,e.lineIndent=0,e.firstTabInLine=-1}function vt(e,t){let r=0,n=e.input.charCodeAt(e.position),o=e.position===e.lineStart||pr(e.input.charCodeAt(e.position-1));for(;n!==0;){for(;ro(n);)o=!0,n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&o&&n===35)do n=e.input.charCodeAt(++e.position);while(!Qe(n)&&n!==0);if(!Qe(n))break;for(oc(e),r++,o=!0,n=e.input.charCodeAt(e.position);n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position)}return r}function xn(e,t=e.position){let r=e.input.charCodeAt(t);if((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)){let n=e.input.charCodeAt(t+3);return n===0||pr(n)}return!1}function Xg(e){let t=e.input.charCodeAt(e.position);for(;t!==0&&!Qe(t);)t=e.input.charCodeAt(++e.position)}function wb(e,t,r){TO.test(e.input.slice(t,r))&&U(e,"the stream contains non-printable characters")}function LO(e,t,r){if(e.input.charCodeAt(e.position)!==33)return!1;t.tagStart!==ve&&U(e,"duplication of a tag property");let n=e.position,o=!1,i=!1,s="!",a=e.input.charCodeAt(++e.position);a===60?(o=!0,a=e.input.charCodeAt(++e.position)):a===33&&(i=!0,s="!!",a=e.input.charCodeAt(++e.position));let c=e.position,p;if(o){for(;a!==0&&a!==62;)a=e.input.charCodeAt(++e.position);a!==62&&U(e,"unexpected end of the stream within a verbatim tag"),p=e.input.slice(c,e.position),e.position++}else{for(;a!==0&&!pr(a)&&!(r&&no(a));)a===33&&(i?U(e,"tag suffix cannot contain exclamation marks"):(s=e.input.slice(c-1,e.position+1),vb.test(s)||U(e,"named tag handle cannot contain such characters"),i=!0,c=e.position+1)),a=e.input.charCodeAt(++e.position);p=e.input.slice(c,e.position),RO.test(p)&&U(e,"tag suffix cannot contain flow indicator characters")}return p&&!(o?OO.test(p):kO.test(p))&&U(e,`tag name cannot contain such characters: ${p}`),!o&&s!=="!"&&s!=="!!"&&!gb.call(e.tagHandlers,s)&&U(e,`undeclared tag handle "${s}"`),t.tagStart=n,t.tagEnd=e.position,!0}function UO(e,t){if(e.input.charCodeAt(e.position)!==38)return!1;t.anchorStart!==ve&&U(e,"duplication of an anchor property"),e.position++;let r=e.position;for(;e.input.charCodeAt(e.position)!==0&&!pr(e.input.charCodeAt(e.position))&&!no(e.input.charCodeAt(e.position));)e.position++;return e.position===r&&U(e,"name of an anchor node must contain at least one character"),t.anchorStart=r,t.anchorEnd=e.position,!0}function zO(e,t){if(e.input.charCodeAt(e.position)!==42)return!1;(t.anchorStart!==ve||t.tagStart!==ve)&&U(e,"alias node should not have any properties"),e.position++;let r=e.position;for(;e.input.charCodeAt(e.position)!==0&&!pr(e.input.charCodeAt(e.position))&&!no(e.input.charCodeAt(e.position));)e.position++;return e.position===r&&U(e,"name of an alias node must contain at least one character"),qO(e,r,e.position),!0}function yu(e,t){vt(e,!1),e.lineIndent<t&&U(e,"deficient indentation")}function FO(e,t,r){if(e.input.charCodeAt(e.position)!==39)return!1;e.position++;let n=e.position,o=!0;for(;e.input.charCodeAt(e.position)!==0;){let i=e.input.charCodeAt(e.position);if(i===39){if(e.input.charCodeAt(e.position+1)===39){o=!1,e.position+=2;continue}let s=e.position;return e.position++,Zo(e,n,s,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,2,1,-1,o),!0}Qe(i)?(o=!1,yu(e,t)):e.position===e.lineStart&&xn(e)?U(e,"unexpected end of the document within a single quoted scalar"):i!==9&&i<32?U(e,"expected valid JSON character"):e.position++}U(e,"unexpected end of the stream within a single quoted scalar")}function VO(e,t,r){if(e.input.charCodeAt(e.position)!==34)return!1;e.position++;let n=e.position,o=!0;for(;e.input.charCodeAt(e.position)!==0;){let i=e.input.charCodeAt(e.position);if(i===34){let s=e.position;return e.position++,Zo(e,n,s,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,3,1,-1,o),!0}if(i===92){o=!1;let s=e.input.charCodeAt(++e.position);if(Qe(s))yu(e,t);else if(DO(s))e.position++;else{let a=jO(s);for(a===0&&U(e,"unknown escape sequence");a-- >0;)e.position++,MO(e.input.charCodeAt(e.position))<0&&U(e,"expected hexadecimal character");e.position++}}else Qe(i)?(o=!1,yu(e,t)):e.position===e.lineStart&&xn(e)?U(e,"unexpected end of the document within a double quoted scalar"):i!==9&&i<32?U(e,"expected valid JSON character"):e.position++}U(e,"unexpected end of the stream within a double quoted scalar")}function BO(e,t,r){let n=e.input.charCodeAt(e.position),o=1,i=-1,s=!1;if(n!==124&&n!==62)return!1;let a=n===124?4:5;for(e.position++;e.input.charCodeAt(e.position)!==0;){let f=e.input.charCodeAt(e.position),m=NO(f);if(f===43||f===45)o!==1&&U(e,"repeat of a chomping mode identifier"),o=f===43?3:2,e.position++;else if(m>=0)m===0&&U(e,"bad explicit indentation width of a block scalar; it cannot be less than one"),s&&U(e,"repeat of an indentation width identifier"),i=t+m-1,s=!0,e.position++;else break}let c=!1;for(;ro(e.input.charCodeAt(e.position));)c=!0,e.position++;c&&e.input.charCodeAt(e.position)===35&&Xg(e),Qe(e.input.charCodeAt(e.position))?oc(e):e.input.charCodeAt(e.position)!==0&&U(e,"a line break is expected");let p=s?i:-1,l=0,u=e.position,d=e.position;for(;e.input.charCodeAt(e.position)!==0;){let f=e.position,m=0;for(;e.input.charCodeAt(f+m)===32;)m++;let h=e.input.charCodeAt(f+m);if(h===0){p>=0?m>p&&(d=f+m):m>0&&(d=f+m);break}if(f===e.lineStart&&xn(e,f))break;if(!s&&p===-1&&Qe(h)&&(l=Math.max(l,m)),!s&&p===-1&&!Qe(h)&&(h===9&&m<t&&(e.position=f+m,U(e,"tab characters must not be used in indentation")),m<l&&(e.position=f+m,U(e,"bad indentation of a mapping entry"))),p===-1&&h!==0&&!Qe(h)&&m<t){e.lineIndent=m,e.position=f+m;break}!s&&h!==0&&!Qe(h)&&p===-1&&(p=m);let y=p===-1?t+1:p;if(h!==0&&!Qe(h)&&m<y){e.lineIndent=m,e.position=f+m;break}Xg(e),d=e.position,Qe(e.input.charCodeAt(e.position))&&(oc(e),d=e.position)}return wb(e,u,d),Zo(e,u,d,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,a,o,p),!0}function HO(e,t){let r=e.input.charCodeAt(e.position),n=t===Jo;if(r===0||pr(r)||r===35||r===38||r===42||r===33||r===124||r===62||r===39||r===34||r===37||r===64||r===96||n&&no(r))return!1;if(r===63||r===45){let o=e.input.charCodeAt(e.position+1);if(Jr(o)||n&&no(o))return!1}return!0}function KO(e,t,r,n){if(!HO(e,r))return!1;let o=e.position,i=e.position,s=e.input.charCodeAt(e.position),a=r===Jo,c=!1;for(;s!==0&&!(e.position===e.lineStart&&xn(e));){if(s===58){let p=e.input.charCodeAt(e.position+1);if(Jr(p)||a&&no(p))break}else if(s===35){if(pr(e.input.charCodeAt(e.position-1)))break}else{if(a&&no(s))break;if(Qe(s)){let p=e.position,l=e.line,u=e.lineStart,d=e.lineIndent;if(vt(e,!1),e.lineIndent>=t){c=!0,s=e.input.charCodeAt(e.position);continue}e.position=p,e.line=l,e.lineStart=u,e.lineIndent=d;break}}ro(s)||(i=e.position+1),s=e.input.charCodeAt(++e.position)}return i===o?!1:(wb(e,o,i),Zo(e,o,i,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1,1,-1,!c),!0)}function hs(e,t){let r=e.line;vt(e,!0),(e.line>r&&e.lineIndent<t||e.firstTabInLine!==-1&&e.lineIndent<t)&&U(e,"deficient indentation")}function GO(e,t,r){let n=e.input.charCodeAt(e.position),o=n===123,i=e.position,s=!0;if(n!==91&&n!==123)return!1;let a=o?125:93;for(o?hu(e,i,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,2):xb(e,i,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,2),e.position++;e.input.charCodeAt(e.position)!==0;){hs(e,t);let c=e.input.charCodeAt(e.position);if(c===a)return e.position++,Wo(e),!0;s?c===44&&U(e,"expected the node content, but found ','"):U(e,"missed comma between flow collection entries");let p=!1,l=!1;c===63&&pr(e.input.charCodeAt(e.position+1))&&(p=l=!0,e.position+=1,hs(e,t));let u=e.line,d=gs(e),f=to(e,t,Jo,!1,!0);hs(e,t),c=e.input.charCodeAt(e.position),(o||l||e.line===u)&&c===58?(p=!0,e.position++,hs(e,t),o||Qg(e,d),f||bt(e),to(e,t,Jo,!1,!0)||bt(e),hs(e,t),o||Wo(e)):o&&p?(f||bt(e),bt(e)):o?bt(e):p&&(Qg(e,d),f||bt(e),bt(e),Wo(e)),c=e.input.charCodeAt(e.position),c===44?(s=!0,e.position++):s=!1}U(e,"unexpected end of the stream within a flow collection")}function Zg(e,t,r){if(e.firstTabInLine!==-1||e.input.charCodeAt(e.position)!==45||!Jr(e.input.charCodeAt(e.position+1)))return!1;for(xb(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,1);e.input.charCodeAt(e.position)===45&&Jr(e.input.charCodeAt(e.position+1));){e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,U(e,"tab characters must not be used in indentation"));let n=e.line;e.position++;let o=vt(e,!0)>0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&Jr(e.input.charCodeAt(e.position+1))&&U(e,"bad indentation of a sequence entry"),o&&e.lineIndent<=t?bt(e):to(e,t,bb,!1,!0),vt(e,!0),e.lineIndent<t||e.position>=e.length)break;e.lineIndent>t&&U(e,"bad indentation of a sequence entry"),e.line===n&&e.input.charCodeAt(e.position)===45&&Jr(e.input.charCodeAt(e.position+1))&&U(e,"bad indentation of a sequence entry")}return Wo(e),!0}function pu(e,t,r,n){let o=!1,i=!1,s=!1,a=!1;if(e.firstTabInLine!==-1)return!1;let c=e.input.charCodeAt(e.position);for(;c!==0;){!o&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,U(e,"tab characters must not be used in indentation"));let p=e.input.charCodeAt(e.position+1),l=e.line;if((c===63||c===58)&&Jr(p))s||(hu(e,e.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1),s=!0),c===63?(o&&bt(e),i=!0,o=!0):(o||(bt(e),i=!0),o=!1),e.position+=1,a=!0;else{o&&(bt(e),o=!1);let u=gs(e);if(!to(e,r,fu,!1,!0))break;if(e.line===l){for(c=e.input.charCodeAt(e.position);ro(c);)c=e.input.charCodeAt(++e.position);if(c===58){if(c=e.input.charCodeAt(++e.position),Jr(c)||U(e,"a whitespace character is expected after the key-value separator within a block mapping"),!s){for(Yo(e,u),hu(e,u.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1),s=!0,to(e,r,fu,!1,!0),c=e.input.charCodeAt(e.position);ro(c);)c=e.input.charCodeAt(++e.position);e.position++}i=!0,o=!1,a=!1}else if(i)U(e,"expected ':' after a mapping key");else return n.anchorStart!==ve||n.tagStart!==ve?(Yo(e,u),!1):!0}else if(i)U(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return n.anchorStart!==ve||n.tagStart!==ve?(Yo(e,u),!1):!0}if(to(e,t,nc,!0,a)&&(a=!1),o||a&&(bt(e),a=!1),vt(e,!0),c=e.input.charCodeAt(e.position),(e.line===l||e.lineIndent>t)&&c!==0)U(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return i?(o&&bt(e),s&&Wo(e),!0):!1}function to(e,t,r,n,o,i=!0){e.depth>=e.maxDepth&&U(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let s=1,a=!1,c=!1,p=null,l=Jg(),u=r===nc||r===bb,d=u,f=u;if(n&&vt(e,!0)&&(a=!0,e.lineIndent>t?s=1:e.lineIndent===t?s=0:s=-1),e.position===e.lineStart&&xn(e))return e.depth--,!1;if(s===1)for(;;){let m=e.input.charCodeAt(e.position),h=gs(e);if(a&&s!==1&&(m===33||m===38))break;if(a&&f&&(l.tagStart!==ve||l.anchorStart!==ve)&&(m===33||m===38)){let y=gs(e),g=t+1;if(pu(e,e.position-e.lineStart,g,l)&&e.events[y.eventsLength]?.type===3)return e.depth--,!0;Yo(e,y)}if(a&&(m===33&&l.tagStart!==ve||m===38&&l.anchorStart!==ve)||!LO(e,l,r===Jo)&&!UO(e,l))break;p===null&&(p=h),vt(e,!0)?(a=!0,d=f,e.lineIndent>t?s=1:e.lineIndent===t?s=0:s=-1):d=!1}if(d&&(d=a||o),s===1||r===nc){let m=r===Jo||r===fu?t:t+1,h=e.position-e.lineStart;if(s===1)if(d&&(Zg(e,h,l)||pu(e,h,m,l))||GO(e,m,l))c=!0;else{let y=e.input.charCodeAt(e.position);if(p!==null&&i&&f&&!d&&y!==124&&y!==62){let g=gs(e),P=p.position-p.lineStart;Yo(e,p),pu(e,P,m,Jg())&&e.events[g.eventsLength]?.type===3?c=!0:Yo(e,g)}!c&&(u&&BO(e,m,l)||FO(e,m,l)||VO(e,m,l)||zO(e,l)||KO(e,m,r,l))&&(c=!0)}else s===0&&(c=d&&Zg(e,h,l))}return u=u&&!c,!c&&(l.anchorStart!==ve||l.tagStart!==ve||u)&&(Zo(e,ve,ve,l.anchorStart,l.anchorEnd,l.tagStart,l.tagEnd,1),c=!0),e.depth--,c||l.anchorStart!==ve||l.tagStart!==ve}function WO(e){if(e.lineIndent>0||e.input.charCodeAt(e.position)!==37)return!1;e.position++;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!pr(e.input.charCodeAt(e.position));)e.position++;let r=e.input.slice(t,e.position),n=[];for(r.length===0&&U(e,"directive name must not be less than one character in length");e.input.charCodeAt(e.position)!==0&&!Qe(e.input.charCodeAt(e.position));){for(;ro(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||Qe(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;let o=e.position;for(;e.input.charCodeAt(e.position)!==0&&!pr(e.input.charCodeAt(e.position));)e.position++;n.push(e.input.slice(o,e.position))}if(Qe(e.input.charCodeAt(e.position))&&oc(e),r==="YAML"){e.directives.some(i=>i.kind==="yaml")&&U(e,"duplication of %YAML directive"),n.length!==1&&U(e,"YAML directive accepts exactly one argument");let o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);o===null&&U(e,"ill-formed argument of the YAML directive"),parseInt(o[1],10)!==1&&U(e,"unacceptable YAML version of the document"),e.directives.push({kind:"yaml",version:n[0]})}else if(r==="TAG"){n.length!==2&&U(e,"TAG directive accepts exactly two arguments");let[o,i]=n;vb.test(o)||U(e,"ill-formed tag handle (first argument) of the TAG directive"),gb.call(e.tagHandlers,o)&&U(e,`there is a previously declared suffix for "${o}" tag handle`),IO.test(i)||U(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagHandlers[o]=i,e.directives.push({kind:"tag",handle:o,prefix:i})}return!0}function YO(e){e.directives=[],e.tagHandlers=Object.create(null);let t=!1;for(vt(e,!0);WO(e);)t=!0,vt(e,!0);let r=!1,n=!1,o=!0;if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45&&Jr(e.input.charCodeAt(e.position+3))){r=!0;let a=e.line;e.position+=3,vt(e,!0),o=e.line>a}else t&&U(e,"directives end mark is expected");let i=e.events.length;if(!r&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&xn(e)){e.position+=3,vt(e,!0);return}if(CO(e,r,!1),to(e,e.lineIndent-1,nc,!1,o,o)||bt(e),vt(e,!0),e.position===e.lineStart&&xn(e)&&(n=e.input.charCodeAt(e.position)===46,n)){let a=e.line;e.position+=3,vt(e,!0),e.line===a&&e.position<e.length&&U(e,"end of the stream or a document separator is expected")}let s=e.events[i];s?.type===1&&(s.explicitEnd=n),Wo(e),!n&&e.position<e.length&&!(e.position===e.lineStart&&xn(e))&&U(e,"end of the stream or a document separator is expected")}function QO(e,t){let r=e.length,n={...ju,...t,input:`${e}\0`,length:r,position:0,line:0,lineStart:0,lineIndent:0,firstTabInLine:-1,depth:0,directives:[],tagHandlers:Object.create(null),events:[]},o=e.indexOf("\0");for(o!==-1&&cc(e,o,"null byte is not allowed in input",n.filename),n.input.charCodeAt(n.position)===65279&&n.position++;n.position<n.length&&(vt(n,!0),!(n.position>=n.length));){let i=n.position;YO(n),n.position===i&&U(n,"can not read a document")}return n.events}var JO={...ju,...Mu};function XO(e,t={}){let r={...JO,...t},n=String(e),o=Object.keys(ju),i=Object.keys(Mu);return AO(QO(n,du(r,o)),{...du(r,i),source:n})}function _b(e,t,r){let n=null;typeof t=="function"?n=t:t!==null&&typeof t=="object"&&(r=t);let o=XO(e,r);if(n===null)return o;for(let i of o)n(i)}var Xa=class{tagged=!1;flow=!1;singleQuoted=!1;doubleQuoted=!1;literal=!1;folded=!1},eo=Symbol("INVALID");function ZO(e){let t=new Set([e.defaultScalarTag,e.defaultSequenceTag,e.defaultMappingTag].filter(i=>i!==void 0)),r=e.implicitScalarTags,n=e.tags.filter(i=>!(i.nodeKind==="scalar"&&i.implicit)&&!t.has(i)),o=e.tags.filter(i=>t.has(i));return[...r.map(i=>({tag:i,implicitTag:!0})),...n.map(i=>({tag:i,implicitTag:!1})),...o.map(i=>({tag:i,implicitTag:!0}))]}function e1(e,t){for(let r=0,n=e.representTypes.length;r<n;r+=1){let{tag:o,implicitTag:i}=e.representTypes[r];if(o.identify&&o.identify(t)){let s;return o.matchByTagPrefix&&o.representTagName?s=o.representTagName(t):s=o.tagName,{tag:o,tagName:s,implicitTag:i}}}return null}function ys(e,t){if(!e.noRefs&&t!==null&&typeof t=="object"){let l=e.refs.get(t);if(l)return l.anchor===void 0&&(l.anchor=`ref_${e.refCounter++}`),{kind:"alias",tag:"",style:new Xa,anchor:l.anchor}}let r=e1(e,t);if(!r){if(t===void 0||e.skipInvalid)return eo;throw new ws(`unacceptable kind of an object to dump ${Object.prototype.toString.call(t)}`)}let{tag:n,tagName:o,implicitTag:i}=r,s=i?o:mb(o);if(n.nodeKind==="scalar"){let l=new Xa;return l.tagged=!i,{kind:"scalar",tag:s,style:l,value:n.represent(t)}}if(n.nodeKind==="sequence"){let l=n.represent(t),u=new Xa;u.tagged=!i;let d={kind:"sequence",tag:s,style:u,items:[]};e.noRefs||e.refs.set(t,d);for(let f=0,m=l.length;f<m;f+=1){let h=ys(e,l[f]);h===eo&&l[f]===void 0&&(h=ys(e,null)),h!==eo&&d.items.push(h)}return d}let a=n.represent(t),c=new Xa;c.tagged=!i;let p={kind:"mapping",tag:s,style:c,items:[]};e.noRefs||e.refs.set(t,p);for(let[l,u]of a){let d=ys(e,l);if(d===eo)continue;let f=ys(e,u);f!==eo&&p.items.push({key:d,value:f})}return p}function t1(e,t,r={}){let n=ys({representTypes:ZO(t),noRefs:r.noRefs??!1,skipInvalid:r.skipInvalid??!1,refs:new Map,refCounter:0},e);return[{contents:n===eo?null:n,directives:[]}]}var r1=Symbol("visit:break"),Pb=Symbol("visit:skip");function tc(e,t,r){let n=t(e,r);if(n===r1)return!0;if(n===Pb)return!1;let o=r.depth+1;switch(e.kind){case"sequence":for(let i of e.items)if(tc(i,t,{depth:o,parent:e,isKey:!1}))return!0;break;case"mapping":for(let{key:i,value:s}of e.items)if(tc(i,t,{depth:o,parent:e,isKey:!0})||tc(s,t,{depth:o,parent:e,isKey:!1}))return!0;break}return!1}function n1(e,t){for(let r of e)if(r.contents&&tc(r.contents,t,{depth:0,parent:null,isKey:!1}))return}var Du=65279,o1=9,oo=10,Eb=13,i1=32,s1=33,$b=34,gu=35,a1=37,c1=38,Ab=39,p1=42,bu=44,Lu=45,vs=58,l1=61,u1=62,Tb=63,d1=64,vu=91,Su=93,f1=96,xu=123,m1=124,wu=125,ut={};ut[0]="\\0";ut[7]="\\a";ut[8]="\\b";ut[9]="\\t";ut[10]="\\n";ut[11]="\\v";ut[12]="\\f";ut[13]="\\r";ut[27]="\\e";ut[34]='\\"';ut[92]="\\\\";ut[133]="\\N";ut[160]="\\_";ut[8232]="\\L";ut[8233]="\\P";var Uu={indent:2,seqNoIndent:!1,seqInlineFirst:!0,sortKeys:!1,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,tagBeforeAnchor:!1};function h1(e){return e.style.tagged?e.tag:mb(e.tag)}function y1(e){let t={...Uu,...e};return{...t,defaultScalarTagName:t.schema.defaultScalarTag.tagName,implicitResolvers:t.schema.implicitScalarTags}}function g1(e){let t=e.toString(16).toUpperCase(),r=e<=255?"x":"u",n=e<=255?2:4;return`\\${r}${"0".repeat(n-t.length)}${t}`}function eb(e,t){let r=" ".repeat(t),n=0,o="",i=e.length;for(;n<i;){let s,a=e.indexOf(`
|
|
73
|
-
`,n);a===-1?(s=e.slice(n),n=i):(s=e.slice(n,a+1),n=a+1),s.length&&s!==`
|
|
74
|
-
`&&(o+=r),o+=s}return o}function _u(e,t){return`
|
|
75
|
-
${" ".repeat(e.indent*t)}`}function b1(e,t){let r=e.indent*Math.max(1,t);return{indent:r,blockIndent:t===0?e.indent+1:e.indent,lineWidth:e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-r)}}function tb(e,t){for(let r=0,n=e.implicitResolvers.length;r<n;r+=1){let o=e.implicitResolvers[r];if(o.resolve(t,!1,o.tagName)!==fe)return o.tagName}return e.defaultScalarTagName}function Xo(e){return e===i1||e===o1}function v1(e){let t=e.charCodeAt(0);if(t!==Lu&&t!==46||e.charCodeAt(1)!==t||e.charCodeAt(2)!==t)return!1;if(e.length===3)return!0;let r=e.charCodeAt(3);return Xo(r)||r===Eb||r===oo}function Ss(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==Du||e>=65536&&e<=1114111}function rb(e){return Ss(e)&&e!==Du&&e!==Eb&&e!==oo}function Pu(e,t,r){let n=rb(e),o=n&&!Xo(e);return(r?n:n&&e!==bu&&e!==vu&&e!==Su&&e!==xu&&e!==wu)&&e!==gu&&!(t===vs&&!o)||rb(t)&&!Xo(t)&&e===gu||t===vs&&o&&(r||e!==bu&&e!==vu&&e!==Su&&e!==xu&&e!==wu)}function S1(e){return Ss(e)&&e!==Du&&!Xo(e)&&e!==Lu&&e!==Tb&&e!==vs&&e!==bu&&e!==vu&&e!==Su&&e!==xu&&e!==wu&&e!==gu&&e!==c1&&e!==p1&&e!==s1&&e!==m1&&e!==l1&&e!==u1&&e!==Ab&&e!==$b&&e!==a1&&e!==d1&&e!==f1}function x1(e,t){let r=Qo(e,0);if(S1(r))return!0;if(e.length>1&&(r===Lu||r===Tb||r===vs)){let n=Qo(e,1);return!Xo(n)&&Pu(n,r,t)}return!1}function w1(e){return!Xo(e)&&e!==vs}function Qo(e,t){let r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function Rb(e){return/^\n* /.test(e)}var xs=1,bs=2,zu=3,Fu=4,Sn=5;function _1(e,t,r,n,o,i){let{blockIndent:s,lineWidth:a}=r,c,p=0,l=-1,u=!1,d=!1,f=a!==-1,m=-1,h=!v1(t)&&x1(t,i)&&w1(Qo(t,t.length-1));if(n||o)for(c=0;c<t.length;p>=65536?c+=2:c++){if(p=Qo(t,c),!Ss(p))return Sn;h=h&&Pu(p,l,i),l=p}else{for(c=0;c<t.length;p>=65536?c+=2:c++){if(p=Qo(t,c),p===oo)u=!0,f&&(d=d||c-m-1>a&&t[m+1]!==" ",m=c);else if(!Ss(p))return Sn;h=h&&Pu(p,l,i),l=p}d=d||f&&c-m-1>a&&t[m+1]!==" "}return!u&&!d?h&&!o?xs:e.quoteStyle==="double"?Sn:bs:s>9&&Rb(t)?Sn:d?Fu:zu}function P1(e,t,r){let{indent:n,blockIndent:o,lineWidth:i}=r;switch(t){case xs:return ob(e,n);case bs:return`'${ob(e,n).replace(/'/g,"''")}'`;case zu:return"|"+nb(e,o)+ib(eb(e,n));case Fu:return">"+nb(e,o)+ib(eb($1(e,i),n));case Sn:return`"${A1(e)}"`}}function E1(e,t,r,n,o){let i=n||!o;if(t.style.singleQuoted)return bs;if(t.style.doubleQuoted)return Sn;if(!i){if(t.style.literal)return zu;if(t.style.folded)return Fu}let s=t.value;if(s.length===0)return t.style.tagged||tb(e,s)===t.tag?xs:e.quoteStyle==="double"?Sn:bs;let a=_1(e,s,r,i,e.forceQuotes&&!n,o);return a===xs&&!t.style.tagged&&tb(e,s)!==t.tag?e.quoteStyle==="double"?Sn:bs:a}function nb(e,t){let r=Rb(e)?String(t):"",n=e[e.length-1]===`
|
|
76
|
-
`;return`${r}${n&&(e[e.length-2]===`
|
|
77
|
-
`||e===`
|
|
78
|
-
`)?"+":n?"":"-"}
|
|
79
|
-
`}function ob(e,t){let r=e.indexOf(`
|
|
80
|
-
`);if(r===-1)return e;let n=" ".repeat(t),o=e.slice(0,r),i=/(\n+)([^\n]*)/g;i.lastIndex=r;let s;for(;s=i.exec(e);){let a=s[1].length,c=s[2];o+=`
|
|
81
|
-
`.repeat(a+1)+n+c}return o}function ib(e){return e[e.length-1]===`
|
|
82
|
-
`?e.slice(0,-1):e}function $1(e,t){let r=/(\n+)([^\n]*)/g,n=e.indexOf(`
|
|
83
|
-
`);n===-1&&(n=e.length),r.lastIndex=n;let o=sb(e.slice(0,n),t),i=e[0]===`
|
|
84
|
-
`||e[0]===" ",s,a;for(;a=r.exec(e);){let c=a[1],p=a[2];s=p[0]===" ",o+=c+(!i&&!s&&p!==""?`
|
|
85
|
-
`:"")+sb(p,t),i=s}return o}function sb(e,t){if(e===""||e[0]===" ")return e;let r=/ [^ ]/g,n,o=0,i,s=0,a=0,c="";for(;n=r.exec(e);)a=n.index,a-o>t&&(i=s>o?s:a,c+=`
|
|
86
|
-
${e.slice(o,i)}`,o=i+1),s=a;return c+=`
|
|
87
|
-
`,e.length-o>t&&s>o?c+=`${e.slice(o,s)}
|
|
88
|
-
${e.slice(s+1)}`:c+=e.slice(o),c.slice(1)}function A1(e){let t="",r=0;for(let n=0;n<e.length;r>=65536?n+=2:n++){r=Qo(e,n);let o=ut[r];if(o){t+=o;continue}if(Ss(r)){t+=e[n],r>=65536&&(t+=e[n+1]);continue}t+=g1(r)}return t}function T1(e,t,r){let n="";for(let i=0,s=r.items.length;i<s;i+=1){let a=Xr(e,t,r.items[i],{});n!==""&&(n+=`,${e.flowSkipCommaSpace?"":" "}`),n+=a}let o=e.flowBracketPadding&&n!==""?" ":"";return`[${o}${n}${o}]`}function ab(e,t,r,n){let o="";for(let i=0,s=r.items.length;i<s;i+=1){let a=Xr(e,t+1,r.items[i],{block:!0,compact:e.seqInlineFirst,isblockseq:!0});(!n||o!=="")&&(o+=_u(e,t)),a===""||oo===a.charCodeAt(0)?o+="-":o+="- ",o+=a}return o}function R1(e,t,r){let n="",o=Ob(e,r.items);for(let{key:s,value:a}of o){let c="";n!==""&&(c+=`,${e.flowSkipCommaSpace?"":" "}`);let p=Xr(e,t,s,{iskey:!0}),l=p.length>1024;l?c+="? ":e.quoteFlowKeys&&(c+='"');let u=Xr(e,t,a,{}),d=e.flowSkipColonSpace||u===""?"":" ";c+=`${p}${e.quoteFlowKeys&&!l?'"':""}:${d}${u}`,n+=c}let i=e.flowBracketPadding&&n!==""?" ":"";return`{${i}${n}${i}}`}function Za(e){return e.kind==="scalar"?e.value:e}function Ob(e,t){if(!e.sortKeys)return t;let r=t.slice();if(e.sortKeys===!0)r.sort((n,o)=>{let i=Za(n.key),s=Za(o.key);return i<s?-1:i>s?1:0});else{let n=e.sortKeys;r.sort((o,i)=>n(Za(o.key),Za(i.key)))}return r}function O1(e,t,r,n){let o="",i=Ob(e,r.items);for(let s=0,a=i.length;s<a;s+=1){let c="";(!n||o!=="")&&(c+=_u(e,t));let{key:p,value:l}=i[s],u=(p.kind==="mapping"||p.kind==="sequence")&&!p.style.flow&&p.items.length!==0||p.kind==="scalar"&&(p.style.literal||p.style.folded),d=u?Xr(e,t+1,p,{block:!0,compact:!0,isblockseq:!Eu(e,p,t+1)}):Xr(e,t+1,p,{block:!0,compact:!0,iskey:!0}),f=p.kind==="scalar"&&p.value.indexOf(`
|
|
89
|
-
`)!==-1,m=u||f||d.length>1024;m&&(d&&oo===d.charCodeAt(0)?c+="?":c+="? "),c+=d,m&&(c+=_u(e,t));let h=Xr(e,t+1,l,{block:!0,compact:m,isblockseq:m&&!Eu(e,l,t+1)}),y=p.kind==="scalar"&&p.value===""&&d!==""&&d.charCodeAt(d.length-1)!==Ab&&d.charCodeAt(d.length-1)!==$b,g=!m&&(p.kind==="alias"||y)?" ":"";h===""||oo===h.charCodeAt(0)?c+=`${g}:`:c+=`${g}: `,c+=h,o+=c}return o}function Eu(e,t,r){return t.style.tagged||t.anchor!==void 0||e.indent<2&&r>0}function Xr(e,t,r,n){if(r.kind==="alias")return`*${r.anchor}`;let{block:o=!1,iskey:i=!1,isblockseq:s=!1}=n,a=n.compact??!1,c=r.anchor!==void 0;Eu(e,r,t)&&(a=!1);let p,l=r.style.tagged,u=o&&(r.kind==="mapping"||r.kind==="sequence")&&!r.style.flow&&r.items.length!==0;if(r.kind==="mapping")u?p=O1(e,t,r,a):p=R1(e,t,r);else if(r.kind==="sequence")u?e.seqNoIndent&&!s&&t>0?p=ab(e,t-1,r,a):p=ab(e,t,r,a):p=T1(e,t,r);else{let d=b1(e,t),f=E1(e,r,d,i,o);p=P1(r.value,f,d),l=r.style.tagged||f!==xs&&r.tag!==e.defaultScalarTagName}if(u&&a&&t>0&&e.indent>2&&(p=`${" ".repeat(e.indent-2)}${p}`),l||c){let d=[],f=l?h1(r):null,m=c?`&${r.anchor}`:null;e.tagBeforeAnchor?(f!==null&&d.push(f),m!==null&&d.push(m)):(m!==null&&d.push(m),f!==null&&d.push(f));let h=p===""||p.charCodeAt(0)===oo?"":" ";p=`${d.join(" ")}${h}${p}`}return p}function k1(e){return(e.kind==="sequence"||e.kind==="mapping")&&!e.style.flow&&e.items.length!==0&&!e.style.tagged&&e.anchor===void 0}function I1(e){let t=e;for(;(t.kind==="sequence"||t.kind==="mapping")&&!t.style.flow&&t.items.length!==0;)t=t.kind==="sequence"?t.items[t.items.length-1]:t.items[t.items.length-1].value;if(t.kind!=="scalar"||!(t.style.literal||t.style.folded))return!1;let{value:r}=t;return r.endsWith(`
|
|
90
|
-
|
|
91
|
-
`)||r===`
|
|
92
|
-
`}function C1(e){let t="";for(let r of e.directives){if(r.kind==="yaml"){t+=`%YAML ${r.version}
|
|
93
|
-
`;continue}let{handle:n,prefix:o}=r;t+=`%TAG ${n} ${o}
|
|
94
|
-
`}return t}function q1(e,t){let r=y1(t),n="",o=!1;for(let i=0;i<e.length;i+=1){let s=e[i],a=C1(s),c=a!=="",p=s.explicitStart||c||i>0&&!o;if(n+=a,s.contents===null)p&&(n+=`---
|
|
95
|
-
`);else if(p){let l=Xr(r,0,s.contents,{block:!0,compact:!0}),u=l===""?"":c||k1(s.contents)?`
|
|
96
|
-
`:" ";n+=`---${u}${l}
|
|
97
|
-
`}else n+=Xr(r,0,s.contents,{block:!0,compact:!0})+`
|
|
98
|
-
`;o=s.explicitEnd||s.contents!==null&&I1(s.contents),o&&(n+=`...
|
|
99
|
-
`)}return n}var N1=lO.withTags({...lu,resolve:(e,t,r)=>{let n=lu.resolve(e,t,r);return n===fe?cb.resolve(e,t,r):n}},{...uu,resolve:(e,t,r)=>{let n=uu.resolve(e,t,r);return n===fe?pb.resolve(e,t,r):n}}),M1={...Uu,schema:N1,skipInvalid:!1,noRefs:!1,flowLevel:-1,transform:()=>{}};function kb(e,t={}){let r={...M1,...t},n=t1(e,r.schema,{noRefs:r.noRefs,skipInvalid:r.skipInvalid});return r.flowLevel>=0&&n1(n,(o,i)=>{if(!(i.depth<r.flowLevel))return o.style.flow=!0,Pb}),r.transform(n),q1(n,{...du(r,Object.keys(Uu)),schema:r.schema})}var j1=qu.withTags(Tu,Ru,Ou,ku,Iu),io=(e,t)=>{let r=_b(e,{schema:j1,...t});if(r.length===0)return e.trim()===""?void 0:null;if(r.length>1)throw new ws("expected a single document in the stream, but found more");return r[0]},pc=(e,t)=>kb(e,t);var Gu={};lR(Gu,{bgBlack:()=>sk,bgBlackBright:()=>wk,bgBlue:()=>lk,bgBlueBright:()=>$k,bgCyan:()=>dk,bgCyanBright:()=>Tk,bgGreen:()=>ck,bgGreenBright:()=>Pk,bgMagenta:()=>uk,bgMagentaBright:()=>Ak,bgRed:()=>ak,bgRedBright:()=>_k,bgWhite:()=>fk,bgWhiteBright:()=>Rk,bgYellow:()=>pk,bgYellowBright:()=>Ek,black:()=>J1,blackBright:()=>mk,blue:()=>tk,blueBright:()=>bk,bold:()=>B1,cyan:()=>nk,cyanBright:()=>Sk,dim:()=>H1,gray:()=>ik,green:()=>Z1,greenBright:()=>yk,hidden:()=>Y1,inverse:()=>W1,italic:()=>K1,magenta:()=>rk,magentaBright:()=>vk,options:()=>Ku,red:()=>X1,redBright:()=>hk,reset:()=>V1,strikethrough:()=>Q1,underline:()=>G1,white:()=>ok,whiteBright:()=>xk,yellow:()=>ek,yellowBright:()=>gk});import*as Bu from"tty";var wn=process.env,D1="NO_COLOR"in wn,L1="FORCE_COLOR"in wn,U1=process.platform==="win32",z1=Bu&&Bu.isatty(1)&&wn.TERM&&wn.TERM!=="dumb",F1="CI"in wn&&("GITHUB_ACTIONS"in wn||"GITLAB_CI"in wn||"CIRCLECI"in wn),Vu=!D1&&(L1||U1||z1||F1),Hu=(e,t,r,n)=>o=>Vu?e+(~(o+="").indexOf(t,4)?o.replace(r,n):o)+t:o,ee=(e,t)=>Hu(`\x1B[${e}m`,`\x1B[${t}m`,new RegExp(`\\x1b\\[${t}m`,"g"),`\x1B[${e}m`),Ku=Object.defineProperty({},"enabled",{get:()=>Vu,set:e=>Vu=e}),V1=ee(0,0),B1=Hu("\x1B[1m","\x1B[22m",/\x1b\[22m/g,"\x1B[22m\x1B[1m"),H1=Hu("\x1B[2m","\x1B[22m",/\x1b\[22m/g,"\x1B[22m\x1B[2m"),K1=ee(3,23),G1=ee(4,24),W1=ee(7,27),Y1=ee(8,28),Q1=ee(9,29),J1=ee(30,39),X1=ee(31,39),Z1=ee(32,39),ek=ee(33,39),tk=ee(34,39),rk=ee(35,39),nk=ee(36,39),ok=ee(37,39),ik=ee(90,39),sk=ee(40,49),ak=ee(41,49),ck=ee(42,49),pk=ee(43,49),lk=ee(44,49),uk=ee(45,49),dk=ee(46,49),fk=ee(47,49),mk=ee(90,39),hk=ee(91,39),yk=ee(92,39),gk=ee(93,39),bk=ee(94,39),vk=ee(95,39),Sk=ee(96,39),xk=ee(97,39),wk=ee(100,49),_k=ee(101,49),Pk=ee(102,49),Ek=ee(103,49),$k=ee(104,49),Ak=ee(105,49),Tk=ee(106,49),Rk=ee(107,49);var Je=typeof window<"u"||typeof process>"u"||process?.platform==="browser",_s=Je?{}:process.env||{};function Ib(e){return e}var Ps=Ku,Y=new Proxy(Gu,{get(e,t){return Je?Ib:e[t]}}),Wu=class{info(t){return Je?console.info(t):process.stderr.write(t)}warn(t){return Je?console.warn(t):process.stderr.write(Y.yellow(t))}error(t){return Je?console.error(t):process.stderr.write(Y.red(t))}output(t){return Je?console.log(t):process.stdout.write(t)}printNewLine(){Je?console.log(`
|
|
100
|
-
`):process.stdout.write(`
|
|
101
|
-
`)}printSeparator(t){let r=process.stdout.columns||80,n=t.repeat(Math.ceil(r/t.length)).slice(0,r),o=Je?n:Y.gray(n);return Je?console.log(o):process.stdout.write(o)}indent(t,r){let n=Je?" ":"\xA0";return t.split(`
|
|
102
|
-
`).map(o=>n.repeat(r)+o).join(`
|
|
103
|
-
`)}},Q=new Wu;import*as Ok from"node:fs";import*as Yu from"node:path";function kk(e){return(Yu.extname(e)===".yaml"||Yu.extname(e)===".yml")&&!!Ok?.existsSync?.(e)}function ei(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--&&ei(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)||!ei(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function Ft(e){return O(e)&&Object.keys(e).length===0}function so(e){return Array.isArray(e)&&e.length>0}function Ik(e){return O(e)&&!Ft(e)}function Me(e){return typeof e=="string"}function Es(e){return e?Object.keys(e):[]}async function Ck(e){return new Promise(t=>setTimeout(t,e))}var Cb=Rr(Xu(),1);function qk(e,t,r){return e.split(" ").map(n=>(0,Cb.default)(n,t,r)).join(" ")}var iv=Rr(ov(),1);async function pd(e,t){let r={};for(let o of t.headers)hI(e,o.matches)&&(r[o.name]=o.envVariable!==void 0?_s[o.envVariable]||"":o.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 hI(e,t){return t.match(/^https?:\/\//)||(e=e.replace(/^https?:\/\//,"")),iv.default.isMatch(e,t)}function ld(e){return/^\\\\\?\\/.test(e)?e:e.replace(/\\/g,"/")}function ao(e){let t=e.match(/^\/(.*)\/(.*)|(.*)/);return t&&new RegExp(t[1]||t[3],t[2])}function q(e,t={}){return{name:`${e}List`,properties:{},items:e,...t}}function N(e,t={}){return{name:`${e}Map`,properties:{},additionalProperties:()=>e,...t}}var lr={name:"SpecExtension",properties:{},additionalProperties:{resolvable:!0}};function Zr(e,t={}){let r={};for(let i of Object.keys(e))r[i]={...e[i],name:i};for(let i of Object.values(r))n(i);return r.SpecExtension=lr,r;function n(i){if(i.additionalProperties&&(i.additionalProperties=o(i.additionalProperties)),i.items&&(i.items=o(i.items)),i.properties){let s={};for(let[a,c]of Object.entries(i.properties))s[a]=o(c),t.doNotResolveExamples&&c&&c.isExample&&(s[a]={...c,resolvable:!1});i.properties=s}}function o(i){if(typeof i=="string"){if(!r[i])throw new Error(`Unknown type name found: ${i}`);return r[i]}else return typeof i=="function"?(s,a)=>o(i(s,a)):ur(i)?(i={...i},n(i),i):i?.directResolveAs!==void 0?{...i,directResolveAs:o(i.directResolveAs)??void 0}:i}}function ur(e){return typeof e?.name=="string"}var yI=/^[0-9][0-9Xx]{2}$/,gI={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-"},bI={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-"},vI={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}},extensionsPrefix:"x-"},SI={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},xI={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},wI={properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},_I={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},PI={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-"},EI={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},$I={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},AI={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},TI={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-"},RI={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-"},OI={properties:{default:"Response"},additionalProperties:(e,t)=>yI.test(t)?"Response":void 0},kI={properties:{description:{type:"string"},schema:"Schema",headers:N("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},II={properties:{},additionalProperties:{isExample:!0}},CI={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 O(e)&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},qI={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},NI={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},MI={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)?q("Schema"):"Schema",allOf:q("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-"},jI={properties:{},additionalProperties:{type:"string"}},DI={properties:{},additionalProperties:"Schema"},LI={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},UI={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?.type){case"apiKey":return["type","name","in"];case"oauth2":switch(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?.type){case"basic":return["type","description"];case"apiKey":return["type","name","in","description"];case"oauth2":switch(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-"},zI={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},FI={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},ud={Root:gI,Tag:qI,TagList:q("Tag"),TagGroups:q("TagGroup"),TagGroup:NI,ExternalDocs:AI,Example:FI,ExamplesMap:N("Example"),EnumDescriptions:jI,SecurityRequirement:zI,SecurityRequirementList:q("SecurityRequirement"),Info:bI,Contact:SI,License:xI,Logo:vI,Paths:wI,PathItem:_I,Parameter:TI,ParameterItems:RI,ParameterList:q("Parameter"),Operation:PI,Examples:II,Header:CI,Responses:OI,Response:kI,Schema:MI,Xml:LI,SchemaProperties:DI,NamedSchemas:N("Schema"),NamedResponses:N("Response"),NamedParameters:N("Parameter"),NamedSecuritySchemes:N("SecurityScheme"),SecurityScheme:UI,XCodeSample:EI,XCodeSampleList:q("XCodeSample"),XServerList:q("XServer"),XServer:$I};var VI=/^[0-9][0-9Xx]{2}$/,BI={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-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/openapi#openapi",description:"REQUIRED. This string MUST be the semantic version number of the OpenAPI Specification version that the OpenAPI document uses. The openapi field SHOULD be used by tooling specifications and clients to interpret the OpenAPI document. This is not related to the API info.version string."},HI={properties:{name:{type:"string",description:"REQUIRED. The name of the tag."},description:{type:"string",description:"A description for the tag."},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-",description:"The Tag Object represents a tag used by the OAS. It is not mandatory to have a tag object per tag used by the OAS but each tag object can contain additional metadata."},KI={properties:{name:{type:"string",description:"The display name for the tag, used in the navigation bar and as a section heading."},tags:{type:"array",description:"List of tags to include in this group.",items:{type:"string"}}},extensionsPrefix:"x-",description:"The x-tagGroups extension is used at the top level of an OpenAPI description.",documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-tag-groups#taggroup-object"},GI={properties:{description:{type:"string",description:"A description of the target documentation. Used as the link anchor text in Redocly. If not provided, the url is used as the link anchor text."},url:{type:"string",description:"REQUIRED. The URL for the target documentation."}},required:["url"],extensionsPrefix:"x-",description:"Additional external documentation for this operation.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/external-docs"},WI={properties:{url:{type:"string",description:"REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the OpenAPI document is being served. Variable substitutions are made when a variable is named in { curly braces }."},description:{type:"string",description:"An optional string describing the host designated by the URL."},variables:"ServerVariablesMap"},required:["url"],extensionsPrefix:"x-",description:"A server object to be used by the target operation."},YI={properties:{enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty. If defined, the array MUST contain the default value."},default:{type:"string",description:"REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. Note this behavior is different than the Schema Object's treatment of default values, because in those cases parameter values are optional. If the enum is defined, the value MUST exist in the enum's values."},description:{type:"string",description:"An optional description for the server variable."}},required:["default"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/server-variables#server-variables",description:"Server variables are used when you need to make a substitution into the server URL such as when the subdomain is unique per tenant."},QI={properties:{},additionalProperties:{type:"array",items:{type:"string"}},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/security#security-requirement-object",description:"A declaration of which security mechanisms can be used across the API. The list of values includes alternative security requirement objects that can be used. Only one of the security requirement objects need to be satisfied to authorize a request. Individual operations can override this definition. To make security optional, an empty security requirement ({}) can be included in the array."},JI={properties:{title:{type:"string",description:"REQUIRED. The title of the API."},version:{type:"string",description:"REQUIRED. The version of the OpenAPI document (which is distinct from the OpenAPI Specification version or the API implementation version)."},description:{type:"string",description:"RECOMMENDED. A description of the API (Markdown may be used)."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API."},contact:"Contact",license:"License","x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-",description:"REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/info#info"},XI={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}},documentationLink:"https://redocly.com/docs-legacy/api-reference-docs/specification-extensions/x-logo#x-logo",description:"A commonly used specification extension containing the information about the API logo."},ZI={properties:{name:{type:"string",description:"The identifying name of the contact person or organization."},url:{type:"string",description:"The URL pointing to the contact information."},email:{type:"string",description:"The email address of the contact person or organization."}},extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/contact",description:"The contact information for the exposed API."},eC={properties:{name:{type:"string",description:"REQUIRED. The license name used for the API."},url:{type:"string",description:"The URL pointing to the contact information."}},required:["name"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/license#license",description:"The license information for the exposed API."},tC={properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0,description:"The Paths Object is a map of a paths to the path item object. A path starts with a /.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/paths#paths-object"},rC={properties:{},additionalProperties:()=>"PathItem",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/webhooks#types"},nC={properties:{$ref:{type:"string",description:"Allows for a referenced definition of this path item. The referenced structure MUST be in the form of a Path Item Object. In case a Path Item Object field appears both in the defined object and the referenced object, the behavior is undefined. See the rules for resolving Relative References.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/reference"},servers:"ServerList",parameters:"ParameterList",summary:{type:"string",description:"An optional, string summary, intended to apply to all operations in this path."},description:{type:"string",description:"An optional, string description, intended to apply to all operations in this path."},get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation",trace:"Operation","x-query":"Operation"},extensionsPrefix:"x-",description:"Describes the operations available on a single path. A Path Item MAY be empty, due to ACL constraints. The path itself is still exposed to the documentation viewer but they will not know which operations and parameters are available.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/path-item#path-item-object"},oC={properties:{name:{type:"string",description:"REQUIRED. The name of the parameter. Parameter names are case sensitive."},in:{enum:["query","header","path","cookie"],description:'REQUIRED. The location of the parameter. Possible values are "query", "header", "path", or "cookie".'},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use."},required:{type:"boolean",description:'Determines whether this parameter is mandatory. If the parameter location is "path", this property is REQUIRED and its value MUST be true. Otherwise, the property MAY be included and its default value is false.'},deprecated:{type:"boolean",description:"Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false."},allowEmptyValue:{type:"boolean",description:"Sets the ability to pass empty-valued parameters. This is valid only for query parameters and allows sending a parameter with an empty value. Default value is false. If style is used, and if behavior is n/a (cannot be serialized), the value of allowEmptyValue SHALL be ignored. Use of this property is NOT RECOMMENDED, as it is likely to be removed in a later revision."},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"],description:"Describes how the parameter value will be serialized depending on the type of the parameter value. Default values (based on value of in): for query - form; for path - simple; for header - simple; for cookie - form."},explode:{type:"boolean",description:"When this is true, parameter values of type array or object generate separate parameters for each value of the array or key-value pair of the map. For other types of parameters this property has no effect. When style is form, the default value is true. For all other styles, the default value is false."},allowReserved:{type:"boolean",description:"Determines whether the parameter value SHOULD allow reserved characters, as defined by RFC3986 :/?#[]@!$&'()*+,;= to be included without percent-encoding. This property only applies to parameters with an in value of query. The default value is false."},schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",content:"MediaTypesMap"},required:["name","in"],requiredOneOf:["schema","content"],extensionsPrefix:"x-",description:"Describes a request parameter, which excludes the request body. A unique parameter is defined by a unique combination of the name and in values.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/parameter"},iC={properties:{tags:{type:"array",items:{type:"string"},description:"A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier."},summary:{type:"string",description:"A short summary of what the operation does.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#summary"},description:{type:"string",description:"A verbose explanation of the operation behavior.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#description"},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#operationid"},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-",description:"The Operation Object describes a single API operation on a path, including its parameters, responses, and request body (if applicable). Each path can support more than one operation, but those operations must be unique. A unique operation is a combination of a path and an HTTP method, so two GET or two POST methods for the same path are not allowed.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation"},sC={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}},documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-code-samples",description:"Code samples are snippets of code shown alongside API operations in reference documentation, giving users a quick way to start to interact with an API from their own code. The x-codeSamples addition to OpenAPI allows you to add or override any existing code samples for a particular language or endpoint."},aC={properties:{description:{type:"string",description:"A brief description of the request body. This could contain examples of use."},required:{type:"boolean",description:"Determines if the request body is required in the request. Defaults to false."},content:"MediaTypesMap"},required:["content"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/request-body",description:"The request body is defined inside of operations (including paths and webhooks). The request body can also be defined inside of the named requestBodies object in components."},cC={properties:{},additionalProperties:"MediaType",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type#types"},pC={properties:{schema:"Schema",example:{isExample:!0,description:"Example of the media type. The example object SHOULD be in the correct format as specified by the media type. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains an example, the example value SHALL override the example provided by the schema."},examples:"ExamplesMap",encoding:"EncodingMap"},extensionsPrefix:"x-",description:"The Media Type Object is one of the important building blocks of OpenAPI.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type"},lC={properties:{value:{resolvable:!1,description:"Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON or YAML, use a string value to contain the example, escaping where necessary."},summary:{type:"string"},description:{type:"string",description:"Long description for the example."},externalValue:{type:"string",description:"A URL that points to the literal example. This provides the capability to reference examples that cannot easily be included in JSON or YAML documents. The value field and externalValue field are mutually exclusive."}},extensionsPrefix:"x-",description:"Example of the media type. The example object SHOULD be in the correct format as specified by the media type. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains an example, the example value SHALL override the example provided by the schema.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/example"},uC={properties:{contentType:{type:"string",description:"The Content-Type for encoding a specific property. Default value depends on the property type: for string with format being binary \u2013 application/octet-stream; for other primitive types \u2013 text/plain; for object - application/json; for array \u2013 the default is defined based on the inner type. The value can be a specific media type (e.g. application/json), a wildcard media type (e.g. image/*), or a comma-separated list of the two types."},headers:"HeadersMap",style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"],description:"Describes how a specific property value will be serialized depending on its type. See Parameter Object for details on the style property. The behavior follows the same values as query parameters, including default values. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded."},explode:{type:"boolean",description:"When this is true, property values of type array or object generate separate parameters for each value of the array, or key-value-pair of the map. For other types of properties this property has no effect. When style is form, the default value is true. For all other styles, the default value is false. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded."},allowReserved:{type:"boolean",description:"Determines whether the parameter value SHOULD allow reserved characters, as defined by [RFC3986] Section 2.2 :/?#[]@!$&'()*+,;= to be included without percent-encoding. The default value is false. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded."}},extensionsPrefix:"x-",description:"A single encoding definition applied to a single schema property.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/encoding#types"},dC={properties:{},additionalProperties:{type:"string"},description:'The enum (short for "enumeration") fields in OpenAPI allow you to restrict the value of a field to a list of allowed values. These values need to be short and machine-readable, but that can make them harder for humans to parse and work with.',documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-enum-descriptions"},fC={properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation."},required:{type:"boolean",description:"Determines whether this parameter is mandatory. Its default value is false."},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean",description:"Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false."},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0,description:"Example of the header's potential value. The example SHOULD match the specified schema and encoding properties if present. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema that contains an example, the example value SHALL override the example provided by the schema. To represent examples of media types that cannot naturally be represented in JSON or YAML, a string value can contain the example with escaping where necessary."},examples:"ExamplesMap",content:"MediaTypesMap"},requiredOneOf:["schema","content"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/header#header-object",description:"The header object is used to describe a response header in the headers map."},mC={properties:{default:"Response"},additionalProperties:(e,t)=>VI.test(t)?"Response":void 0,description:"The list of possible responses as they are returned from executing this operation.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/named-responses"},hC={properties:{description:{type:"string"},headers:"HeadersMap",content:"MediaTypesMap",links:"LinksMap","x-summary":{type:"string",documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-summary#openapi-extension-x-summary",description:"Use x-summary to add a short custom text to describe the response in the API documentation."}},required:["description"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/response",description:"The response object describes a single response in the Responses Map."},yC={properties:{operationRef:{type:"string",description:"A relative or absolute reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI definition."},operationId:{type:"string",description:"The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually exclusive of the operationRef field."},parameters:null,requestBody:null,description:{type:"string",description:"A description of the link."},server:"Server"},extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/links",description:"The Link object represents a possible design-time link for a response. The presence of a link does not guarantee the caller\u2019s ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations."},gC={properties:{externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string",description:"Value MUST be a string. Multiple types via an array are not supported."},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",description:"(This string SHOULD be a valid regular expression, according to the Ecma-262 Edition 5.1 regular expression dialect)"},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"],description:"Value MUST be a string. Multiple types via an array are not supported."},allOf:q("Schema",{description:"Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema."}),anyOf:q("Schema",{description:"Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema."}),oneOf:q("Schema",{description:"Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema."}),not:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?q("Schema"):"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string",description:"CommonMark syntax MAY be used for rich text representation."},format:{type:"string",description:"See Data Type Formats for further details. While relying on JSON Schema's defined formats, the OAS offers a few additional predefined formats."},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-",description:"The schema defining the content of the request, response, or parameter.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/schemas"},bC={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-",description:"This MAY be used only on properties schemas. It has no effect on root schemas. Adds additional metadata to describe the XML representation of this property."},vC={properties:{},additionalProperties:"Schema"},SC={properties:{},additionalProperties:e=>typeof e=="string"&&kr(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#types"},xC={properties:{propertyName:{type:"string",description:"REQUIRED. The name of the property in the payload that will hold the discriminator value."},mapping:"DiscriminatorMapping"},required:["propertyName"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#discriminator-object",description:"When request bodies or response payloads may be one of a number of different schemas, a discriminator object can be used to aid in serialization, deserialization, and validation. The discriminator is a specific object in a schema which is used to inform the consumer of the document of an alternative schema based on the value associated with it."},wC={properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks"},extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/components#components"},_C={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Implicit flow."},PC={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-",description:"Object Configuration for the OAuth Resource Owner Password flow."},EC={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0."},$C={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-",description:"Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0."},AC={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-",description:"Configuration details for a supported OAuth Flow."},TC={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect"],description:'REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "oauth2", "openIdConnect".'},description:{type:"string",description:"A short description for security scheme."},name:{type:"string",description:"REQUIRED. The name of the header, query or cookie parameter to be used."},in:{type:"string",enum:["query","header","cookie"],description:'REQUIRED. The location of the API key. Valid values are "query", "header" or "cookie".'},scheme:{type:"string",description:"A short description for security scheme."},bearerFormat:{type:"string",description:"A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes."},flows:"OAuth2Flows",openIdConnectUrl:{type:"string",description:"REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of a URL."},"x-defaultClientId":{type:"string"}},required(e){switch(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?.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-"},RC={properties:{disableManualConfiguration:{type:"boolean"},hideClientSecretInput:{type:"boolean"}},description:"The x-usePkce allows you to enable Proof Key for Code Exchange (PKCE) for the Oauth2 or OpenID Connect authorization code flow in the Replay.",documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-use-pkce#openapi-extension-x-usepkce"},Rt={Root:BI,Tag:HI,TagList:q("Tag",{documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/tags",description:"A list of tags used by the document with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared. The tags that are not declared MAY be organized randomly or based on the tools' logic. Each tag name in the list MUST be unique."}),TagGroups:q("TagGroup"),TagGroup:KI,ExternalDocs:GI,Server:WI,ServerList:q("Server",{description:"A list of servers available to the API.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/servers#servers"}),ServerVariable:YI,ServerVariablesMap:N("ServerVariable",{description:"A map between a variable name and its value. The value is used for substitution in the server's URL template."}),SecurityRequirement:QI,SecurityRequirementList:q("SecurityRequirement"),Info:JI,Contact:ZI,License:eC,Paths:tC,PathItem:nC,Parameter:oC,ParameterList:q("Parameter",{description:"A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item, the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined at the OpenAPI Object\u2019s components/parameters."}),Operation:iC,Callback:N("PathItem",{description:"https://redocly.com/learn/openapi/openapi-visual-reference/callbacks#callback-object"}),CallbacksMap:N("Callback"),RequestBody:aC,MediaTypesMap:cC,MediaType:pC,Example:lC,ExamplesMap:N("Example"),Encoding:uC,EncodingMap:N("Encoding"),EnumDescriptions:dC,Header:fC,HeadersMap:N("Header"),Responses:mC,Response:hC,Link:yC,Logo:XI,Schema:gC,Xml:bC,SchemaProperties:vC,DiscriminatorMapping:SC,Discriminator:xC,Components:wC,LinksMap:N("Link"),NamedSchemas:N("Schema"),NamedResponses:N("Response"),NamedParameters:N("Parameter"),NamedExamples:N("Example"),NamedRequestBodies:N("RequestBody"),NamedHeaders:N("Header"),NamedSecuritySchemes:N("SecurityScheme"),NamedLinks:N("Link"),NamedCallbacks:N("Callback"),ImplicitFlow:_C,PasswordFlow:PC,ClientCredentials:EC,AuthorizationCode:$C,OAuth2Flows:AC,SecurityScheme:TC,XCodeSample:sC,XCodeSampleList:q("XCodeSample"),XUsePkce:RC,WebhooksMap:rC};var OC={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",webhooks:"WebhooksMap",components:"Components",jsonSchemaDialect:{type:"string",description:"The default value for the $schema keyword within Schema Objects contained within this OAS document. This MUST be in the form of a URI."}},required:["openapi","info"],requiredOneOf:["paths","components","webhooks"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/openapi#openapi",description:"REQUIRED. This string MUST be the semantic version number of the OpenAPI Specification version that the OpenAPI document uses. The openapi field SHOULD be used by tooling specifications and clients to interpret the OpenAPI document. This is not related to the API info.version string."},kC={...Rt.License,properties:{...Rt.License.properties,identifier:{type:"string",description:"An [SPDX-Licenses] expression for the API. The identifier field is mutually exclusive of the url field."}}},IC={...Rt.Info,properties:{...Rt.Info.properties,summary:{type:"string",description:"A short summary of the API. This field MAY be used by tooling as required."}}},CC={...Rt.Components,properties:{...Rt.Components.properties,pathItems:"NamedPathItems"}},qC={properties:{tags:{type:"array",items:{type:"string"},description:"A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier."},summary:{type:"string",description:"A short summary of what the operation does.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#summary"},description:{type:"string",description:"A verbose explanation of the operation behavior.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#description"},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#operationid"},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-",description:"The Operation Object describes a single API operation on a path, including its parameters, responses, and request body (if applicable). Each path can support more than one operation, but those operations must be unique. A unique operation is a combination of a path and an HTTP method, so two GET or two POST methods for the same path are not allowed."},NC={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:q("Schema"),anyOf:q("Schema"),oneOf:q("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:N("Schema"),dependentRequired:"DependentRequired",prefixItems:q("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-"},sv={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},MC={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?.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?.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":switch(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-"},jC={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},_e={...Rt,Info:IC,Root:OC,Schema:NC,SchemaProperties:sv,PatternProperties:sv,License:kC,Components:CC,NamedPathItems:N("PathItem"),SecurityScheme:MC,Operation:qC,DependentRequired:jC};var DC={..._e.Root,properties:{..._e.Root.properties,$self:{type:"string",description:"This string MUST be in the form of a URI reference as defined by [RFC3986] Section 4.1. The $self field provides the self-assigned URI of this document, which also serves as its base URI in accordance with [RFC3986] Section 5.1.1. Implementations MUST support identifying the targets of API description URIs using the URI defined by this field when it is present. See Establishing the Base URI for the base URI behavior when $self is absent or relative, and see Appendix F for examples of using $self to resolve references."}}},LC={..._e.Tag,properties:{..._e.Tag.properties,kind:{type:"string",description:"A machine-readable string to categorize what sort of tag it is. Any string value can be used; common uses are nav for Navigation, badge for visible badges, audience for APIs used by different groups. A registry of the most commonly used values is available."},parent:{type:"string",description:"The name of a tag that this tag is nested under. The named tag MUST exist in the API description, and circular references between parent and child tags MUST NOT be used."},summary:{type:"string",description:"A short summary of the tag, used for display purposes."}},description:"Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag defined in the Operation Object instances."},UC={..._e.Server,properties:{..._e.Server.properties,name:{type:"string",description:"An optional unique string to refer to the host designated by the URL."}},description:"An object representing a Server."},zC={..._e.SecurityScheme,properties:{..._e.SecurityScheme.properties,deprecated:{type:"boolean",description:"Declares this security scheme to be deprecated. Consumers SHOULD refrain from usage of the declared scheme. Default value is false."},oauth2MetadataUrl:{type:"string",description:"URL to the OAuth2 authorization server metadata [RFC8414]. TLS is required."}},allowed(e){switch(e?.type){case"apiKey":return["type","name","in","description","deprecated"];case"http":return["type","scheme","bearerFormat","description","deprecated"];case"oauth2":switch(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"]}},description:"Defines a security scheme that can be used by the operations."},FC={..._e.OAuth2Flows,properties:{..._e.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},VC={properties:{deviceAuthorizationUrl:{type:"string",description:"REQUIRED. The device authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},tokenUrl:{type:"string",description:"REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},refreshUrl:{type:"string",description:"The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},scopes:N("string",{description:"REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty."})},required:["deviceAuthorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Device Authorization flow."},BC={...Rt.PathItem,properties:{...Rt.PathItem.properties,query:"Operation",additionalOperations:N("Operation")}},HC={..._e.Parameter,properties:{..._e.Parameter.properties,in:{description:'REQUIRED. The location of the parameter. Possible values are "query", "querystring", "header", "path" or "cookie".',enum:["query","header","path","cookie","querystring"]}}},KC={..._e.Response,properties:{..._e.Response.properties,summary:{type:"string",description:"A short summary of the meaning of the response."}}},GC={..._e.MediaType,properties:{..._e.MediaType.properties,itemSchema:"Schema",prefixEncoding:q("Encoding",{description:"A map between a property name and its encoding information, as defined under Encoding By Name. The encoding field SHALL only apply when the media type is multipart or application/x-www-form-urlencoded. If no Encoding Object is provided for a property, the behavior is determined by the default values documented for the Encoding Object. This field MUST NOT be present if prefixEncoding or itemEncoding are present."}),itemEncoding:"Encoding"}},WC={..._e.Discriminator,properties:{..._e.Discriminator.properties,defaultMapping:e=>{let t="The schema name or URI reference to a schema that is expected to validate the structure of the model when the discriminating property is not present in the payload or contains a value for which there is no explicit or implicit mapping.";return kr(e)?{type:"string",directResolveAs:"Schema",description:t}:{type:"string",description:t}}}},YC={properties:{..._e.Components.properties,mediaTypes:"NamedMediaTypes"}},QC={..._e.Example,properties:{..._e.Example.properties,dataValue:{resolvable:!1,description:"An example of the data structure that MUST be valid according to the relevant Schema Object. If this field is present, value MUST be absent."},serializedValue:{type:"string",description:"An example of the serialized form of the value, including encoding and escaping as described under Validating Examples. If dataValue is present, then this field SHOULD contain the serialization of the given data. Otherwise, it SHOULD be the valid serialization of a data value that itself MUST be valid as described for dataValue. This field SHOULD NOT be used if the serialization format is JSON, as the data form is easier to work with. If this field is present, value, and externalValue MUST be absent."}}},JC={properties:{nodeType:{type:"string",enum:["element","attribute","text","cdata","none"],description:'One of element, attribute, text, cdata, or none, as explained under XML Node Types. The default value is none if $ref, $dynamicRef, or type: "array" is present in the Schema Object containing the XML Object, and element otherwise.'},name:{type:"string",description:"Sets the name of the element/attribute corresponding to the schema, replacing the name that was inferred as described under XML Node Names. This field SHALL be ignored if the nodeType is text, cdata, or none."},namespace:{type:"string",description:"The IRI ([RFC3987]) of the namespace definition. Value MUST be in the form of a non-relative IRI."},prefix:{type:"string",description:"The prefix to be used for the name."},attribute:{type:"boolean",description:'Declares whether the property definition translates to an attribute instead of an element. Default value is false. If nodeType is present, this field MUST NOT be present.Deprecated: Use nodeType: "attribute" instead of attribute: true.'},wrapped:{type:"boolean",description:'MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being "array" (outside the items). If nodeType is present, this field MUST NOT be present. Deprecated: Use nodeType: "element" instead of wrapped: true.'}},extensionsPrefix:"x-",description:"A metadata object that allows for more fine-tuned XML model definitions. When using a Schema Object with XML, if no XML Object is present, the behavior is determined by the XML Object\u2019s default field values."},XC={..._e.Schema,properties:{..._e.Schema.properties,xml:"Xml"}},We={..._e,Root:DC,Tag:LC,Server:UC,SecurityScheme:zC,OAuth2Flows:FC,DeviceAuthorization:VC,PathItem:BC,Parameter:HC,Response:KC,MediaType:GC,Discriminator:WC,Example:QC,Xml:JC,Schema:XC,Components:YC,NamedMediaTypes:N("MediaTypesMap")};var ZC={properties:{},description:"Protocol-specific information for an HTTP channel."},eq={properties:{},description:"Protocol-specific information for an HTTP server."},tq={properties:{headers:"Schema",statusCode:{type:"number"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP message, i.e., a request or a response."},rq={properties:{type:{type:"string"},method:{type:"string",enum:["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","CONNECT","TRACE"]},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP operation."},nq={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a WebSockets channel."},oq={properties:{},description:"Protocol-specific information for a WebSockets server."},iq={properties:{},description:"Protocol-specific information for a WebSockets message."},sq={properties:{},description:"Protocol-specific information for a WebSockets operation."},aq={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"},"confluent.key.schema.validation":{type:"boolean"},"confluent.key.subject.name.strategy":{type:"string"},"confluent.value.schema.validation":{type:"boolean"},"confluent.value.subject.name.strategy":{type:"string"}}},cq={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka channel."},pq={properties:{schemaRegistryUrl:{type:"string"},schemaRegistryVendor:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka server."},lq={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka message."},uq={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka operation."},dq={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ channel."},fq={properties:{},description:"Protocol-specific information for an Anypoint MQ server."},mq={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ message."},hq={properties:{},description:"Protocol-specific information for an Anypoint MQ operation."},yq={properties:{name:{type:"string"},type:{type:"string",enum:["topic","direct","fanout","default","headers"]},durable:{type:"boolean"},autoDelete:{type:"boolean"},vhost:{type:"string"}},description:"The AMQP exchange the channel is bound to."},gq={properties:{name:{type:"string"},durable:{type:"boolean"},exclusive:{type:"boolean"},autoDelete:{type:"boolean"},vhost:{type:"string"}},description:"The AMQP queue the channel is bound to."},bq={properties:{is:{type:"string",enum:["queue","routingKey"]},exchange:"AmqpChannelExchange",queue:"AmqpChannelQueue",bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 channel."},vq={properties:{},description:"Protocol-specific information for an AMQP 0-9-1 server."},Sq={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 message."},xq={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"}},description:"Protocol-specific information for an AMQP 0-9-1 operation."},wq={properties:{},description:"Protocol-specific information for an AMQP 1.0 channel."},_q={properties:{},description:"Protocol-specific information for an AMQP 1.0 server."},Pq={properties:{},description:"Protocol-specific information for an AMQP 1.0 message."},Eq={properties:{},description:"Protocol-specific information for an AMQP 1.0 operation."},$q={properties:{},description:"Protocol-specific information for an MQTT channel."},Aq={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},Tq={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},sessionExpiryInterval:e=>O(e)?"Schema":{type:"integer"},maximumPacketSize:e=>O(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT server."},Rq={properties:{payloadFormatIndicator:{type:"integer"},correlationData:"Schema",contentType:{type:"string"},responseTopic:e=>O(e)?"Schema":{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT message."},Oq={properties:{qos:{type:"integer"},retain:{type:"boolean"},messageExpiryInterval:e=>O(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT operation."},kq={properties:{},description:"Protocol-specific information for an MQTT 5 channel."},Iq={properties:{sessionExpiryInterval:e=>O(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT 5 server."},Cq={properties:{},description:"Protocol-specific information for an MQTT 5 message."},qq={properties:{},description:"Protocol-specific information for an MQTT 5 operation."},Nq={properties:{},description:"Protocol-specific information for a NATS channel."},Mq={properties:{},description:"Protocol-specific information for a NATS server."},jq={properties:{},description:"Protocol-specific information for a NATS message."},Dq={properties:{queue:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a NATS operation."},Lq={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS channel."},Uq={properties:{name:{type:"string"},value:{}},required:["name","value"],description:"A name-value pair to set on the JMS ConnectionFactory implementation."},zq={properties:{jmsConnectionFactory:{type:"string"},properties:q("JmsServerBindingProperty"),clientID:{type:"string"},bindingVersion:{type:"string"}},required:["jmsConnectionFactory"],description:"Protocol-specific information for a JMS server."},Fq={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS message."},Vq={properties:{},description:"Protocol-specific information for a JMS operation."},Bq={properties:{},description:"Protocol-specific information for a Solace channel."},Hq={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"},clientName:{type:"string"}},description:"Protocol-specific information for a Solace server."},Kq={properties:{},description:"Protocol-specific information for a Solace message."},Gq={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.maxMsgSpoolUsage":{type:"string"},"queue.maxTtl":{type:"string"},"topic.topicSubscriptions":{type:"array",items:{type:"string"}}}},Wq={properties:{bindingVersion:{type:"string"},destinations:q("SolaceDestination"),dmqEligible:{type:"boolean"},priority:{type:"integer",minimum:0},timeToLive:{type:"integer"}},description:"Protocol-specific information for a Solace operation."},Yq={properties:{url:{type:"string"},email:{type:"string"},phone:{type:"string"},arn:{type:"string"},name:{type:"string"}},description:"Identifies an SNS resource: exactly one of url, email, phone, arn, or name."},Qq={properties:{type:{type:"string",enum:["standard","FIFO"]},contentBasedDeduplication:{type:"boolean"}},required:["type"],description:"Defines the ordering and deduplication properties of an SNS topic."},Jq={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SNS access-policy statement."},Xq={properties:{statements:q("SnsStatement")},required:["statements"],description:"The security policy for an SNS topic."},Zq={properties:{name:{type:"string"},ordering:"SnsOrdering",policy:"SnsPolicy",tags:{type:"object"},bindingVersion:{type:"string"}},required:["name"],description:"Protocol-specific information for an SNS channel."},eN={properties:{deadLetterQueue:"SnsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SNS messages are moved."},tN={properties:{minDelayTarget:{type:"integer"},maxDelayTarget:{type:"integer"},numRetries:{type:"integer"},numNoDelayRetries:{type:"integer"},numMinDelayRetries:{type:"integer"},numMaxDelayRetries:{type:"integer"},backoffFunction:{type:"string",enum:["arithmetic","exponential","geometric","linear"]},maxReceivesPerSecond:{type:"integer"}},description:"Defines how SNS retries the delivery of messages to a subscription endpoint."},rN={properties:{protocol:{type:"string",enum:["http","https","email","email-json","sms","sqs","application","lambda","firehose"]},endpoint:"SnsIdentifier",filterPolicy:{type:"object"},filterPolicyScope:{type:"string",enum:["MessageAttributes","MessageBody"]},rawMessageDelivery:{type:"boolean"},redrivePolicy:"SnsRedrivePolicy",deliveryPolicy:"SnsDeliveryPolicy",displayName:{type:"string"}},required:["protocol","endpoint","rawMessageDelivery"],description:"Describes an SNS subscription consuming messages from a topic."},nN={properties:{topic:"SnsIdentifier",consumers:q("SnsConsumer"),deliveryPolicy:"SnsDeliveryPolicy",bindingVersion:{type:"string"}},required:["consumers"],description:"Protocol-specific information for an SNS operation."},oN={properties:{arn:{type:"string"},name:{type:"string"}},description:"Identifies an SQS queue: exactly one of arn or name."},iN={properties:{deadLetterQueue:"SqsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SQS messages are moved."},sN={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SQS access-policy statement."},aN={properties:{statements:q("SqsStatement")},required:["statements"],description:"The security policy for an SQS queue."},av={properties:{name:{type:"string"},fifoQueue:{type:"boolean"},deduplicationScope:{type:"string",enum:["queue","messageGroup"]},fifoThroughputLimit:{type:"string",enum:["perQueue","perMessageGroupId"]},deliveryDelay:{type:"integer"},visibilityTimeout:{type:"integer"},receiveMessageWaitTime:{type:"integer"},messageRetentionPeriod:{type:"integer"},redrivePolicy:"SqsRedrivePolicy",policy:"SqsPolicy",tags:{type:"object"}},required:["name","fifoQueue"],description:"Describes an SQS queue (channel-level definition)."},cN={...av,required:["name"],description:"Describes an SQS queue (operation-level definition)."},pN={properties:{queue:"SqsQueue",deadLetterQueue:"SqsQueue",bindingVersion:{type:"string"}},required:["queue"],description:"Protocol-specific information for an SQS channel."},lN={properties:{queues:q("SqsOperationQueue"),bindingVersion:{type:"string"}},required:["queues"],description:"Protocol-specific information for an SQS operation."},uN={properties:{},description:"Protocol-specific information for a STOMP channel."},dN={properties:{},description:"Protocol-specific information for a STOMP server."},fN={properties:{},description:"Protocol-specific information for a STOMP message."},mN={properties:{},description:"Protocol-specific information for a STOMP operation."},hN={properties:{},description:"Protocol-specific information for a Redis channel."},yN={properties:{},description:"Protocol-specific information for a Redis server."},gN={properties:{},description:"Protocol-specific information for a Redis message."},bN={properties:{},description:"Protocol-specific information for a Redis operation."},vN={properties:{},description:"Protocol-specific information for a Mercure channel."},SN={properties:{},description:"Protocol-specific information for a Mercure server."},xN={properties:{},description:"Protocol-specific information for a Mercure message."},wN={properties:{},description:"Protocol-specific information for a Mercure operation."},_N={properties:{groupId:{type:"string"},ccdtQueueManagerName:{type:"string"},cipherSpec:{type:"string"},multiEndpointServer:{type:"boolean"},heartBeatInterval:{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an IBM MQ server."},PN={properties:{objectName:{type:"string"},isPartitioned:{type:"boolean"},exclusive:{type:"boolean"}},required:["objectName"],description:"Defines the properties of an IBM MQ queue."},EN={properties:{string:{type:"string"},objectName:{type:"string"},durablePermitted:{type:"boolean"},lastMsgRetained:{type:"boolean"}},description:"Defines the properties of an IBM MQ topic."},$N={properties:{destinationType:{type:"string",enum:["topic","queue"]},queue:"IbmmqChannelQueue",topic:"IbmmqChannelTopic",maxMsgLength:{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an IBM MQ channel."},AN={properties:{type:{type:"string",enum:["string","jms","binary"]},headers:{type:"string"},description:{type:"string"},expiry:{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an IBM MQ message."},TN={properties:{allowedPersistenceRegions:{type:"array",items:{type:"string"}}},description:"Policy constraining the regions where Google Cloud Pub/Sub messages are stored."},RN={properties:{encoding:{type:"string"},firstRevisionId:{type:"string"},lastRevisionId:{type:"string"},name:{type:"string"}},required:["encoding","name"],description:"Settings for validating Google Cloud Pub/Sub messages against a schema."},ON={properties:{labels:{type:"object"},messageRetentionDuration:{type:"string"},messageStoragePolicy:"GooglepubsubMessageStoragePolicy",schemaSettings:"GooglepubsubSchemaSettings",topic:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub channel."},kN={properties:{name:{type:"string"},type:{type:"string"}},required:["name"],description:"Identifies the Google Cloud Pub/Sub schema a message is validated against."},IN={properties:{attributes:{type:"object"},orderingKey:{type:"string"},schema:"GooglepubsubSchema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub message."},CN={properties:{tenant:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Pulsar server."},qN={properties:{time:{type:"integer"},size:{type:"integer"}},description:"The retention policy of a Pulsar topic."},NN={properties:{namespace:{type:"string"},persistence:{type:"string",enum:["persistent","non-persistent"]},compaction:{type:"integer"},"geo-replication":{type:"array",items:{type:"string"}},retention:"PulsarRetention",ttl:{type:"integer"},deduplication:{type:"boolean"},bindingVersion:{type:"string"}},required:["namespace","persistence"],description:"Protocol-specific information for a Pulsar channel."},MN={properties:{rmwImplementation:{type:"string"},domainId:{type:"integer",minimum:0}},description:"Protocol-specific information for a ROS 2 server."},jN={properties:{},description:"Protocol-specific information for a ROS 2 channel."},DN={properties:{reliability:{type:"string",enum:["best_effort","reliable"]},history:{type:"string",enum:["keep_last","keep_all","unknown"]},durability:{type:"string",enum:["transient_local","volatile"]},lifespan:{type:"integer"},deadline:{type:"integer"},liveliness:{type:"string",enum:["automatic","manual"]},leaseDuration:{type:"integer"}},description:"Quality of Service settings for a ROS 2 operation."},LN={properties:{role:{type:"string",enum:["publisher","subscriber","service_client","service_server","action_client","action_server"]},node:{type:"string"},qosPolicies:"Ros2QosPolicies",bindingVersion:{type:"string"}},description:"Protocol-specific information for a ROS 2 operation."},UN={properties:{},description:"Protocol-specific information for a ROS 2 message."},zN={properties:{http:"HttpServerBinding",ws:"WsServerBinding",kafka:"KafkaServerBinding",anypointmq:"AnypointmqServerBinding",amqp:"AmqpServerBinding",amqp1:"Amqp1ServerBinding",mqtt:"MqttServerBinding",mqtt5:"Mqtt5ServerBinding",nats:"NatsServerBinding",jms:"JmsServerBinding",solace:"SolaceServerBinding",stomp:"StompServerBinding",redis:"RedisServerBinding",mercure:"MercureServerBinding",ibmmq:"IbmmqServerBinding",pulsar:"PulsarServerBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for a server."},FN={properties:{http:"HttpChannelBinding",ws:"WsChannelBinding",kafka:"KafkaChannelBinding",anypointmq:"AnypointmqChannelBinding",amqp:"AmqpChannelBinding",amqp1:"Amqp1ChannelBinding",mqtt:"MqttChannelBinding",mqtt5:"Mqtt5ChannelBinding",nats:"NatsChannelBinding",jms:"JmsChannelBinding",solace:"SolaceChannelBinding",stomp:"StompChannelBinding",redis:"RedisChannelBinding",mercure:"MercureChannelBinding",sns:"SnsChannelBinding",sqs:"SqsChannelBinding",ibmmq:"IbmmqChannelBinding",googlepubsub:"GooglepubsubChannelBinding",pulsar:"PulsarChannelBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for a channel."},VN={properties:{http:"HttpOperationBinding",ws:"WsOperationBinding",kafka:"KafkaOperationBinding",anypointmq:"AnypointmqOperationBinding",amqp:"AmqpOperationBinding",amqp1:"Amqp1OperationBinding",mqtt:"MqttOperationBinding",mqtt5:"Mqtt5OperationBinding",nats:"NatsOperationBinding",jms:"JmsOperationBinding",solace:"SolaceOperationBinding",stomp:"StompOperationBinding",redis:"RedisOperationBinding",mercure:"MercureOperationBinding",sns:"SnsOperationBinding",sqs:"SqsOperationBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for an operation."},BN={properties:{http:"HttpMessageBinding",ws:"WsMessageBinding",kafka:"KafkaMessageBinding",anypointmq:"AnypointmqMessageBinding",amqp:"AmqpMessageBinding",amqp1:"Amqp1MessageBinding",mqtt:"MqttMessageBinding",mqtt5:"Mqtt5MessageBinding",nats:"NatsMessageBinding",jms:"JmsMessageBinding",solace:"SolaceMessageBinding",stomp:"StompMessageBinding",redis:"RedisMessageBinding",mercure:"MercureMessageBinding",ibmmq:"IbmmqMessageBinding",googlepubsub:"GooglepubsubMessageBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for a message."},Wt={HttpServerBinding:eq,HttpChannelBinding:ZC,HttpMessageBinding:tq,HttpOperationBinding:rq,WsServerBinding:oq,WsChannelBinding:nq,WsMessageBinding:iq,WsOperationBinding:sq,KafkaServerBinding:pq,KafkaTopicConfiguration:aq,KafkaChannelBinding:cq,KafkaMessageBinding:lq,KafkaOperationBinding:uq,AnypointmqServerBinding:fq,AnypointmqChannelBinding:dq,AnypointmqMessageBinding:mq,AnypointmqOperationBinding:hq,AmqpServerBinding:vq,AmqpChannelExchange:yq,AmqpChannelQueue:gq,AmqpChannelBinding:bq,AmqpMessageBinding:Sq,AmqpOperationBinding:xq,Amqp1ServerBinding:_q,Amqp1ChannelBinding:wq,Amqp1MessageBinding:Pq,Amqp1OperationBinding:Eq,MqttServerBindingLastWill:Aq,MqttServerBinding:Tq,MqttChannelBinding:$q,MqttMessageBinding:Rq,MqttOperationBinding:Oq,Mqtt5ServerBinding:Iq,Mqtt5ChannelBinding:kq,Mqtt5MessageBinding:Cq,Mqtt5OperationBinding:qq,NatsServerBinding:Mq,NatsChannelBinding:Nq,NatsMessageBinding:jq,NatsOperationBinding:Dq,JmsServerBindingProperty:Uq,JmsServerBinding:zq,JmsChannelBinding:Lq,JmsMessageBinding:Fq,JmsOperationBinding:Vq,SolaceServerBinding:Hq,SolaceChannelBinding:Bq,SolaceMessageBinding:Kq,SolaceDestination:Gq,SolaceOperationBinding:Wq,StompServerBinding:dN,StompChannelBinding:uN,StompMessageBinding:fN,StompOperationBinding:mN,RedisServerBinding:yN,RedisChannelBinding:hN,RedisMessageBinding:gN,RedisOperationBinding:bN,MercureServerBinding:SN,MercureChannelBinding:vN,MercureMessageBinding:xN,MercureOperationBinding:wN,SnsIdentifier:Yq,SnsOrdering:Qq,SnsStatement:Jq,SnsPolicy:Xq,SnsChannelBinding:Zq,SnsRedrivePolicy:eN,SnsDeliveryPolicy:tN,SnsConsumer:rN,SnsOperationBinding:nN,SqsIdentifier:oN,SqsRedrivePolicy:iN,SqsStatement:sN,SqsPolicy:aN,SqsQueue:av,SqsOperationQueue:cN,SqsChannelBinding:pN,SqsOperationBinding:lN,IbmmqServerBinding:_N,IbmmqChannelQueue:PN,IbmmqChannelTopic:EN,IbmmqChannelBinding:$N,IbmmqMessageBinding:AN,GooglepubsubMessageStoragePolicy:TN,GooglepubsubSchemaSettings:RN,GooglepubsubChannelBinding:ON,GooglepubsubSchema:kN,GooglepubsubMessageBinding:IN,PulsarServerBinding:CN,PulsarRetention:qN,PulsarChannelBinding:NN,ServerBindings:zN,ChannelBindings:FN,MessageBindings:BN,OperationBindings:VN},cv={Ros2ServerBinding:MN,Ros2ChannelBinding:jN,Ros2OperationBinding:LN,Ros2QosPolicies:DN,Ros2MessageBinding:UN};var ri={properties:{$id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",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:q("Schema"),anyOf:q("Schema"),oneOf:q("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?q("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"}},ni={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},oi={properties:{},additionalProperties:e=>Array.isArray(e)?{type:"array",items:{type:"string"}}:"Schema"},ii={properties:{},additionalProperties:e=>typeof e=="string"&&kr(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},si={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]};var HN={properties:{asyncapi:null,info:"Info",id:{type:"string",description:"Identifier of the application the AsyncAPI document is defining."},servers:"ServerMap",channels:"ChannelMap",components:"Components",tags:"TagList",externalDocs:"ExternalDocs",defaultContentType:{type:"string"}},required:["asyncapi","channels","info"]},KN={properties:{description:{type:"string",description:"An optional description of this channel item. CommonMark syntax can be used for rich text representation."},subscribe:"Operation",publish:"Operation",parameters:"ParametersMap",bindings:"ChannelBindings",servers:{type:"array",items:{type:"string"},description:"The servers on which this channel is available, specified as an optional unordered list of names (string keys) of Server Objects defined in the Servers Object (a map)."}},description:"Describes the operations available on a single channel."},GN={properties:{},additionalProperties:"Channel"},dd={properties:{name:{type:"string",description:"REQUIRED. The name of the tag."},description:{type:"string",description:"A short description for the tag. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs"},required:["name"],description:"Allows adding meta data to a single tag."},fd={properties:{description:{type:"string",description:"A short description of the target documentation. CommonMark syntax can be used for rich text representation."},url:{type:"string",description:"REQUIRED. The URL for the target documentation. This MUST be in the form of an absolute URL."}},required:["url"],description:"Allows referencing an external resource for extended documentation."},WN={properties:{},additionalProperties:{type:"array",items:{type:"string"}},description:"Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a security scheme declared in the Security Schemes under the Components Object."},YN={properties:{url:{type:"string",description:"REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the AsyncAPI document is being served. Variable substitutions will be made when a variable is named in {braces}."},protocol:{type:"string",description:"REQUIRED. The protocol this URL supports for connection. Supported protocol include, but are not limited to: amqp, amqps, http, https, ibmmq, jms, kafka, kafka-secure, anypointmq, mqtt, secure-mqtt, solace, stomp, stomps, ws, wss, mercure, googlepubsub, pulsar."},protocolVersion:{type:"string",description:"The version of the protocol used for connection. For instance: AMQP 0.9.1, HTTP 2.0, Kafka 1.0.0, etc."},description:{type:"string",description:"An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation."},variables:"ServerVariablesMap",security:"SecurityRequirementList",bindings:"ServerBindings",tags:"TagList"},required:["url","protocol"],description:"An object representing a message broker, a server or any other kind of computer program capable of sending and/or receiving data. This object is used to capture details such as URIs, protocols and security configuration. Variable substitution can be used so that some details, for example usernames and passwords, can be injected by code generation tools."},md={properties:{},additionalProperties:(e,t)=>t.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},hd={properties:{enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set."},default:{type:"string",description:"The default value to use for substitution, and to send, if an alternate value is not supplied."},description:{type:"string",description:"An optional description for the server variable. CommonMark syntax MAY be used for rich text representation."},examples:{type:"array",items:{type:"string"},description:"An array of examples of the server variable."}},required:[],description:"An object representing a Server Variable for server URL template substitution."},QN={properties:{title:{type:"string",description:"REQUIRED. The title of the application."},version:{type:"string",description:"REQUIRED Provides the version of the application API (not to be confused with the specification version)."},description:{type:"string",description:"A short description of the application. CommonMark syntax can be used for rich text representation."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. This MUST be in the form of an absolute URL."},contact:"Contact",license:"License"},required:["title","version"],description:"The object provides metadata about the API. The metadata can be used by the clients if needed."},yd={properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information. This MUST be in the form of an absolute URL."},email:{type:"string",description:"The email address of the contact person/organization. MUST be in the format of an email address."}},description:"Contact information for the exposed API."},gd={properties:{name:{type:"string",description:"REQUIRED. The license name used for the API."},url:{type:"string",description:"A URL to the license used for the API. This MUST be in the form of an absolute URL."}},required:["name"],description:"License information for the exposed API."},JN={properties:{description:{type:"string",description:"A verbose explanation of the parameter. CommonMark syntax can be used for rich text representation."},schema:"Schema",location:{type:"string",description:"A runtime expression that specifies the location of the parameter value. Even when a definition for the target field exists, it MUST NOT be used to validate this parameter but, instead, the schema property MUST be used."}},description:"Describes a parameter included in a channel name."},bd={properties:{description:{type:"string",description:"An optional description of the identifier. CommonMark syntax can be used for rich text representation."},location:{type:"string",description:"REQUIRED. A runtime expression that specifies the location of the correlation ID."}},required:["location"],description:"An object that specifies an identifier at design time that can used for message tracing and correlation."},XN={properties:{messageId:{type:"string",description:"Unique string used to identify the message. The id MUST be unique among all messages described in the API. The messageId value is case-sensitive. Tools and libraries MAY use the messageId to uniquely identify a message, therefore, it is RECOMMENDED to follow common programming naming conventions."},headers:"Schema",payload:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string",description:"A string containing the name of the schema format used to define the message payload. If omitted, implementations should parse the payload as a Schema object. When the payload is defined using a $ref to a remote file, it is RECOMMENDED the schema format includes the file encoding type to allow implementations to parse the file correctly."},contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A machine-friendly name for the message."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{},description:"Describes a message received on a given channel and operation."},ZN={properties:{tags:"TagList",summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions."},security:"SecurityRequirementList",bindings:"OperationBindings"},required:[],description:"Describes a trait that MAY be applied to an Operation Object. This object MAY contain any property from the Operation Object, except message and traits."},eM={properties:{messageId:{type:"string",description:"Unique string used to identify the message. The id MUST be unique among all messages described in the API. The messageId value is case-sensitive. Tools and libraries MAY use the messageId to uniquely identify a message, therefore, it is RECOMMENDED to follow common programming naming conventions."},headers:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string",description:"A string containing the name of the schema format/language used to define the message payload. If omitted, implementations should parse the payload as a Schema object."},contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{},description:"Describes a trait that MAY be applied to a Message Object. This object MAY contain any property from the Message Object, except payload and traits."},tM={properties:{tags:"TagList",summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions."},security:"SecurityRequirementList",bindings:"OperationBindings",traits:"OperationTraitList",message:"Message"},required:[],description:"Describes a publish or a subscribe operation. This provides a place to document how and why messages are sent and received."},vd={properties:{payload:{isExample:!0,description:"The value of this field MUST validate against the Message Object's payload field."},summary:{type:"string",description:"A short summary of what the example is about."},name:{type:"string",description:"A machine-friendly name."},headers:{type:"object",description:"The value of this field MUST validate against the Message Object's headers field."}},description:"Message Example Object represents an example of a Message Object and MUST contain either headers and/or payload fields."},rM={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"}},nM={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],description:"Configuration for the OAuth Implicit flow."},oM={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],description:"Configuration for the OAuth Password flow."},iM={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],description:"Configuration for the OAuth Client Credentials flow."},sM={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","scopes"],description:"Configuration for the OAuth Authorization Code flow."},Sd={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},aM={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"]},description:{type:"string",description:"A short description for security scheme. CommonMark syntax MAY be used for rich text representation."},name:{type:"string",description:"REQUIRED. The name of the header, query or cookie parameter to be used."},in:{type:"string",enum:["query","header","cookie","user","password"],description:'REQUIRED. The location of the API key. Valid values are "user" and "password" for apiKey and "query", "header" or "cookie" for httpApiKey.'},scheme:{type:"string",description:"REQUIRED. The name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235."},bearerFormat:{type:"string",description:"A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes."},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string",description:"REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of an absolute URL."}},required(e){switch(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?.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-",description:"Defines a security scheme that can be used by the operations."},xd={...Wt,Root:HN,Tag:dd,TagList:q("Tag"),ServerMap:md,ExternalDocs:fd,Server:YN,ServerVariable:hd,ServerVariablesMap:N("ServerVariable"),SecurityRequirement:WN,SecurityRequirementList:q("SecurityRequirement"),Info:QN,Contact:yd,License:gd,ChannelMap:GN,Channel:KN,Parameter:JN,ParametersMap:N("Parameter"),Operation:tM,Schema:ri,MessageExample:vd,SchemaProperties:ni,DiscriminatorMapping:ii,Discriminator:si,Components:rM,NamedSchemas:N("Schema"),NamedMessages:N("Message"),NamedMessageTraits:N("MessageTrait"),NamedOperationTraits:N("OperationTrait"),NamedParameters:N("Parameter"),NamedSecuritySchemes:N("SecurityScheme"),NamedCorrelationIds:N("CorrelationId"),ImplicitFlow:nM,PasswordFlow:oM,ClientCredentials:iM,AuthorizationCode:sM,SecuritySchemeFlows:Sd,SecurityScheme:aM,Message:XN,OperationTrait:ZN,OperationTraitList:q("OperationTrait"),MessageTrait:eM,MessageTraitList:q("MessageTrait"),MessageExampleList:q("MessageExample"),CorrelationId:bd,Dependencies:oi};var cM={properties:{asyncapi:{type:"string",description:"REQUIRED. Specifies the AsyncAPI Specification version being used. It can be used by tooling Specifications and clients to interpret the version. The structure shall be major.minor.patch, where patch versions must be compatible with the existing major.minor tooling. Typically patch versions will be introduced to address errors in the documentation, and tooling should typically be compatible with the corresponding major.minor (1.0.*). Patch versions will correspond to patches of this document."},info:"Info",id:{type:"string",description:"Identifier of the application the AsyncAPI document is defining."},servers:"ServerMap",channels:"NamedChannels",components:"Components",operations:"NamedOperations",defaultContentType:{type:"string",description:"Default content type to use when encoding/decoding a message's payload."}},required:["asyncapi","info"],description:"This is the root document object for the API specification. It combines resource listing and API declaration together into one document."},pM={properties:{address:{type:"string",description:`An optional string representation of this channel's address. The address is typically the "topic name", "routing key", "event type", or "path". When null or absent, it MUST be interpreted as unknown. This is useful when the address is generated dynamically at runtime or can't be known upfront. It MAY contain Channel Address Expressions. Query parameters and fragments SHALL NOT be used, instead use bindings to define them.`},messages:"NamedMessages",title:{type:"string",description:"A human-friendly title for the channel."},summary:{type:"string",description:"A short summary of the channel."},description:{type:"string",description:"An optional description of this channel. CommonMark syntax can be used for rich text representation."},servers:"ServerList",parameters:"ParametersMap",bindings:"ChannelBindings",tags:"TagList",externalDocs:"ExternalDocs"},description:"Describes a shared communication channel."},lM={properties:{host:{type:"string",description:"REQUIRED. The server host name. It MAY include the port. This field supports Server Variables. Variable substitutions will be made when a variable is named in {braces}."},pathname:{type:"string",description:"The path to a resource in the host. This field supports Server Variables. Variable substitutions will be made when a variable is named in {braces}."},protocol:{type:"string",description:"REQUIRED. The protocol this server supports for connection."},protocolVersion:{type:"string",description:"The version of the protocol used for connection. For instance: AMQP 0.9.1, HTTP 2.0, Kafka 1.0.0, etc."},description:{type:"string",description:"An optional string describing the server. CommonMark syntax MAY be used for rich text representation."},variables:"ServerVariablesMap",security:"SecuritySchemeList",bindings:"ServerBindings",externalDocs:"ExternalDocs",tags:"TagList"},required:["host","protocol"],description:"An object representing a message broker, a server or any other kind of computer program capable of sending and/or receiving data. This object is used to capture details such as URIs, protocols and security configuration. Variable substitution can be used so that some details, for example usernames and passwords, can be injected by code generation tools."},uM={properties:{title:{type:"string",description:"REQUIRED. The title of the application."},version:{type:"string",description:"REQUIRED Provides the version of the application API (not to be confused with the specification version)."},description:{type:"string",description:"A short description of the application. CommonMark syntax can be used for rich text representation."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. This MUST be in the form of an absolute URL."},contact:"Contact",license:"License",tags:"TagList",externalDocs:"ExternalDocs"},required:["title","version"],description:"The object provides metadata about the API. The metadata can be used by the clients if needed."},dM={properties:{description:{type:"string",description:"An optional description for the parameter. CommonMark syntax MAY be used for rich text representation."},enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set."},default:{type:"string",description:"The default value to use for substitution, and to send, if an alternate value is not supplied."},examples:{type:"array",items:{type:"string"},description:"An array of examples of the parameter value."},location:{type:"string",description:"A runtime expression that specifies the location of the parameter value."}},description:"Describes a parameter included in a channel address."},fM={properties:{headers:"Schema",payload:e=>e&&e?.schemaFormat?{properties:{schema:"Schema",schemaFormat:{type:"string"}},required:["schema","schemaFormat"]}:"Schema",correlationId:"CorrelationId",contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A machine-friendly name for the message."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{},description:"Describes a message received on a given channel and operation."},mM={properties:{tags:"TagList",title:{type:"string",description:"A human-friendly title for the operation."},summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",security:"SecuritySchemeList",bindings:"OperationBindings"},required:[],description:"Describes a trait that MAY be applied to an Operation Object. This object MAY contain any property from the Operation Object, except the action, channel, messages and traits ones."},hM={properties:{headers:e=>typeof e=="function"||O(e)?{properties:{schema:"Schema",schemaFormat:{type:"string"}}}:"Schema",correlationId:"CorrelationId",contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A machine-friendly name for the message."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{},description:"Describes a trait that MAY be applied to a Message Object. This object MAY contain any property from the Message Object, except payload and traits."},yM={properties:{action:{type:"string",enum:["send","receive"],description:"Required. Use send when it's expected that the application will send a message to the given channel, and receive when the application should expect receiving messages from the given channel."},channel:"Channel",title:{type:"string",description:"A human-friendly title for the operation."},tags:"TagList",summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecuritySchemeList",bindings:"OperationBindings",traits:"OperationTraitList",messages:"MessageList",reply:"OperationReply"},required:["action","channel"]},gM={properties:{channel:"Channel",messages:"MessageList",address:"OperationReplyAddress"},description:"Describes the reply part that MAY be applied to an Operation Object. If an operation implements the request/reply pattern, the reply object represents the response message."},bM={properties:{location:{type:"string",description:"REQUIRED. A runtime expression that specifies the location of the reply address."},description:{type:"string",description:"An optional description of the address. CommonMark syntax can be used for rich text representation."}},required:["location"],description:"An object that specifies where an operation has to send the reply."},vM={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"},description:"Holds a set of reusable objects for different aspects of the AsyncAPI specification. All objects defined within the components object will have no effect on the API unless they are explicitly referenced from properties outside the components object."},SM={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","availableScopes"],description:"Configuration for the OAuth Implicit flow."},xM={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"],description:"Configuration for the OAuth Resource Owner Protected Credentials flow."},wM={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"],description:"Configuration for the OAuth Client Credentials flow."},_M={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","availableScopes"],description:"Configuration for the OAuth Authorization Code flow."},PM={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"],description:'REQUIRED. The type of the security scheme. Valid values are "userPassword", "apiKey", "X509", "symmetricEncryption", "asymmetricEncryption", "httpApiKey", "http", "oauth2", "openIdConnect", "plain", "scramSha256", "scramSha512", and "gssapi".'},description:{type:"string",description:"A short description for security scheme. CommonMark syntax MAY be used for rich text representation."},name:{type:"string",description:"REQUIRED. The name of the header, query or cookie parameter to be used."},in:{type:"string",enum:["query","header","cookie","user","password"],description:'REQUIRED. The location of the API key. Valid values are "user" and "password" for apiKey and "query", "header" or "cookie" for httpApiKey.'},scheme:{type:"string",description:"REQUIRED. The name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235."},bearerFormat:{type:"string",description:"A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes."},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string",description:"REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of an absolute URL."},scopes:{type:"array",items:{type:"string"},description:"List of the needed scope names. An empty array means no scopes are needed."}},required(e){switch(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?.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-",description:"Defines a security scheme that can be used by the operations."},EM={...Wt.ServerBindings,properties:{...Wt.ServerBindings.properties,ros2:"Ros2ServerBinding"}},$M={...Wt.ChannelBindings,properties:{...Wt.ChannelBindings.properties,ros2:"Ros2ChannelBinding"}},AM={...Wt.OperationBindings,properties:{...Wt.OperationBindings.properties,ros2:"Ros2OperationBinding"}},TM={...Wt.MessageBindings,properties:{...Wt.MessageBindings.properties,ros2:"Ros2MessageBinding"}},wd={...Wt,...cv,ServerBindings:EM,ChannelBindings:$M,OperationBindings:AM,MessageBindings:TM,CorrelationId:bd,SecuritySchemeFlows:Sd,ServerVariable:hd,Contact:yd,License:gd,MessageExample:vd,Tag:dd,Dependencies:oi,Schema:ri,Discriminator:si,DiscriminatorMapping:ii,SchemaProperties:ni,ServerMap:md,ExternalDocs:fd,Root:cM,Channel:pM,Parameter:dM,Info:uM,Server:lM,MessageTrait:hM,Operation:yM,OperationReply:gM,OperationReplyAddress:bM,Components:vM,ImplicitFlow:SM,PasswordFlow:xM,ClientCredentials:wM,AuthorizationCode:_M,SecurityScheme:PM,Message:fM,OperationTrait:mM,ServerVariablesMap:N("ServerVariable"),NamedTags:N("Tag"),NamedExternalDocs:N("ExternalDocs"),NamedChannels:N("Channel"),ParametersMap:N("Parameter"),NamedOperations:N("Operation"),NamedOperationReplies:N("OperationReply"),NamedOperationRelyAddresses:N("OperationReplyAddress"),NamedSchemas:N("Schema"),NamedMessages:N("Message"),NamedMessageTraits:N("MessageTrait"),NamedOperationTraits:N("OperationTrait"),NamedParameters:N("Parameter"),NamedSecuritySchemes:N("SecurityScheme"),NamedCorrelationIds:N("CorrelationId"),ServerList:q("Server"),SecuritySchemeList:q("SecurityScheme"),MessageList:q("Message"),OperationTraitList:q("OperationTrait"),MessageTraitList:q("MessageTrait"),MessageExampleList:q("MessageExample"),TagList:q("Tag")};var RM={properties:{arazzo:{type:"string",description:"REQUIRED. This string MUST be the version number of the Arazzo Specification that the Arazzo Description uses. The arazzo field MUST be used by tooling to interpret the Arazzo Description."},info:"Info",sourceDescriptions:"SourceDescriptions",workflows:"Workflows",components:"Components"},required:["arazzo","info","sourceDescriptions","workflows"],extensionsPrefix:"x-"},OM={properties:{},additionalProperties:"Parameter"},kM={properties:{},additionalProperties:"SuccessActionObject"},IM={properties:{},additionalProperties:"FailureActionObject"},CM={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},qM=N("Schema"),NM={properties:{title:{type:"string",description:"REQUIRED. A human readable title of the Arazzo Description."},description:{type:"string",description:"A description of the purpose of the workflows defined. CommonMark syntax MAY be used for rich text representation."},summary:{type:"string",description:"A short summary of the Arazzo Description."},version:{type:"string",description:"REQUIRED. The version identifier of the Arazzo document (which is distinct from the Arazzo Specification version)."}},required:["title","version"],extensionsPrefix:"x-",description:"The object provides metadata about API workflows defined in this Arazzo document. The metadata MAY be used by the clients if needed."},MM={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},jM={properties:{name:{type:"string",description:"REQUIRED. A unique name for the source description. Tools and libraries MAY use the name to uniquely identify a source description, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},type:{type:"string",enum:["openapi"],description:'The type of source description. Possible values are "openapi".'},url:{type:"string",description:"REQUIRED. A URL to a source description to be used by a workflow. If a relative reference is used, it MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.2."},"x-serverUrl":{type:"string"}},required:["name","type","url"],extensionsPrefix:"x-",description:"Describes a source description (such as an OpenAPI description) that will be referenced by one or more workflows described within an Arazzo Description."},DM={properties:{name:{type:"string",description:"REQUIRED. A unique name for the source description. Tools and libraries MAY use the name to uniquely identify a source description, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},type:{type:"string",enum:["arazzo"],description:'The type of source description. Possible values are "arazzo".'},url:{type:"string",description:"REQUIRED. A URL to a source description to be used by a workflow. If a relative reference is used, it MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.2."}},required:["name","type","url"],extensionsPrefix:"x-",description:"Describes a source description (such as an OpenAPI description) that will be referenced by one or more workflows described within an Arazzo Description."},LM={properties:{reference:{type:"string",description:"REQUIRED. A Runtime Expression used to reference the desired object."},value:{}},required:["reference"],extensionsPrefix:"x-",description:"A simple object to allow referencing of objects contained within the Components Object. It can be used from locations within steps or workflows in the Arazzo Description. Note - Input Objects MUST use standard JSON Schema referencing via the $ref keyword while all non JSON Schema objects use this object and its expression based referencing mechanism."},UM={properties:{in:{type:"string",enum:["header","query","path","cookie"],description:'The location of the parameter. Possible values are "path", "query", "header", or "cookie". When the step in context specifies a workflowId, then all parameters map to workflow inputs. In all other scenarios (e.g., a step specifies an operationId), the in field MUST be specified.'},name:{type:"string",description:"REQUIRED. The name of the parameter. Parameter names are case sensitive."},value:{}},required:["name","value"],extensionsPrefix:"x-",description:"Describes a single step parameter. A unique parameter is defined by the combination of a name and in fields."},zM={properties:{},items:e=>e?.reference?"ReusableObject":"Parameter"},FM={properties:{workflowId:{type:"string",description:"REQUIRED. The unique identifier of the workflow."},summary:{type:"string",description:"A short summary of what the workflow does."},description:{type:"string",description:"A verbose explanation of the workflow behavior. CommonMark syntax MAY be used for rich text representation."},parameters:"Parameters",dependsOn:{type:"array",items:{type:"string"},description:"A list of workflows that MUST be completed before this workflow can be processed. Each value provided MUST be a workflowId."},inputs:"Schema",outputs:"Outputs",steps:"Steps",successActions:"OnSuccessActionList",failureActions:"OnFailureActionList","x-security":"ExtendedSecurityList"},required:["workflowId","steps"],extensionsPrefix:"x-",description:"Describes the steps to be taken across one or more APIs to achieve an objective. The workflow object MAY define inputs needed in order to execute workflow steps, where the defined steps represent a call to an API operation or another workflow, and a set of outputs."},VM=q("Workflow"),BM=q("Step"),HM={properties:{stepId:{type:"string",description:"REQUIRED. Unique string to represent the step. The stepId MUST be unique amongst all steps described in the workflow. The stepId value is case-sensitive. Tools and libraries MAY use the stepId to uniquely identify a workflow step, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},description:{type:"string",description:"A description of the step. CommonMark syntax MAY be used for rich text representation."},operationId:{type:"string",description:"The name of an existing, resolvable operation, as defined with a unique operationId and existing within one of the sourceDescriptions. The referenced operation will be invoked by this workflow step. If multiple (non arazzo type) sourceDescriptions are defined, then the operationId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<operationId>) to avoid ambiguity or potential clashes. This field is mutually exclusive of the operationPath and workflowId fields respectively."},operationPath:{type:"string",description:"A reference to a Source Description Object combined with a JSON Pointer to reference an operation. This field is mutually exclusive of the operationId and workflowId fields respectively. The operation being referenced MUST be described within one of the sourceDescriptions descriptions. A Runtime Expression syntax MUST be used to identify the source description document. If the referenced operation has an operationId defined then the operationId SHOULD be preferred over the operationPath."},workflowId:{type:"string",description:"The workflowId referencing an existing workflow within the Arazzo Description. If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. The field is mutually exclusive of the operationId and operationPath fields respectively."},parameters:"Parameters",successCriteria:q("CriterionObject",{description:"A list of assertions to determine the success of the step. Each assertion is described using a Criterion Object. All assertions MUST be satisfied for the step to be deemed successful."}),onSuccess:"OnSuccessActionList",onFailure:"OnFailureActionList",outputs:"Outputs","x-operation":"ExtendedOperation","x-security":"ExtendedSecurityList",requestBody:"RequestBody"},required:["stepId"],requiredOneOf:["x-operation","operationId","operationPath","workflowId"],extensionsPrefix:"x-",description:"Describes a single workflow step which MAY be a call to an API operation (OpenAPI Operation Object) or another Workflow Object."},KM={properties:{},additionalProperties:{type:"string"},description:"A map between a friendly name and a dynamic output value defined using a Runtime Expression. The name MUST use keys that match the regular expression: ^[a-zA-Z0-9_.-]+$."},GM={properties:{contentType:{type:"string",description:"The Content-Type for the request content. If omitted then refer to Content-Type specified at the targeted operation to understand serialization requirements."},payload:{},replacements:q("Replacement",{description:"A list of locations and values to set within a payload."})},required:["payload"],extensionsPrefix:"x-",description:"A single request body describing the Content-Type and request body content to be passed by a step to an operation."},WM={properties:{target:{type:"string",description:"REQUIRED. A JSON Pointer or XPath Expression which MUST be resolved against the request body. Used to identify the location to inject the value."},value:{}},required:["target","value"],extensionsPrefix:"x-",description:"Describes a location within a payload (e.g., a request body) and a value to set within the location."},YM={properties:{schemeName:{type:"string",description:"REQUIRED. Name of the security scheme from your OpenAPI specification. Use with operationId or operationPath at the step level."},values:{},scheme:"SecurityScheme"},required:["values"],requiredOneOf:["schemeName","scheme"],description:"Use the x-security extension to define authorization flows based on OpenAPI security schemes. Respect automatically constructs appropriate authorization headers, queries, or cookies based on your parameters."},QM={properties:{url:{type:"string",description:"REQUIRED. A valid url including the protocol (such as http://localhost:4000/my-api or https://example.com/api/my-api)."},method:{enum:["get","post","put","delete","patch","head","options","trace","connect","query","GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","QUERY"],description:"REQUIRED. HTTP operation method. Possible values: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, CONNECT, TRACE. You can also use their lowercase equivalents."}},required:["url","method"],description:"x-operation enables you to specify a URL and HTTP method for an operation that is not described in the Arazzo sourceDescriptions section. The primary application of the x-operation extension is to facilitate calls to third-party APIs or other endpoints that are needed in a sequence of API calls."},JM={properties:{condition:{type:"string",description:"REQUIRED. The condition to apply. Conditions can be simple (e.g. $statusCode == 200 which applies an operator on a value obtained from a runtime expression), or a regex, or a JSONPath expression. For regex or JSONPath, the type and context MUST be specified."},context:{type:"string",description:"A Runtime Expression used to set the context for the condition to be applied on. If type is specified, then the context MUST be provided (e.g. $response.body would set the context that a JSONPath query expression could be applied to)."},type:e=>{if(e)return typeof e=="string"?{enum:["regex","jsonpath","simple","xpath"],description:"The type of condition to be applied."}:e?.type==="jsonpath"?"JSONPathCriterion":"XPathCriterion"}},required:["condition"],description:"An object used to specify the context, conditions, and condition types that can be used to prove or satisfy assertions specified in Step Object successCriteria, Success Action Object criteria, and Failure Action Object criteria."},XM={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},ZM={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},ej={properties:{name:{type:"string",description:"REQUIRED. The name of the success action. Names are case sensitive."},type:{type:"string",enum:["goto","end"],description:'REQUIRED. The type of action to take. Possible values are "end" or "goto".'},stepId:{type:"string",description:'The stepId to transfer to upon success of the step. This field is only relevant when the type field value is "goto". The referenced stepId MUST be within the current workflow. This field is mutually exclusive to workflowId.'},workflowId:{type:"string",description:'The workflowId referencing an existing workflow within the Arazzo Description to transfer to upon success of the step. This field is only relevant when the type field value is "goto". If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. This field is mutually exclusive to stepId.'},criteria:q("CriterionObject",{description:"A list of assertions to determine if this action SHALL be executed. Each assertion is described using a Criterion Object. All criteria assertions MUST be satisfied for the action to be executed."})},required:["type","name"],description:"A single success action which describes an action to take upon success of a workflow step."},tj={properties:{},items:e=>e?.type&&e?.name?"SuccessActionObject":"ReusableObject"},rj={properties:{name:{type:"string",description:"REQUIRED. The name of the failure action. Names are case sensitive."},type:{type:"string",enum:["goto","retry","end"],description:'REQUIRED. The type of action to take. Possible values are "end", "retry", or "goto".'},workflowId:{type:"string",description:'The workflowId referencing an existing workflow within the Arazzo Description to transfer to upon failure of the step. This field is only relevant when the type field value is "goto" or "retry". If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. This field is mutually exclusive to stepId. When used with "retry", context transfers back upon completion of the specified workflow.'},stepId:{type:"string",description:'The stepId to transfer to upon failure of the step. This field is only relevant when the type field value is "goto" or "retry". The referenced stepId MUST be within the current workflow. This field is mutually exclusive to workflowId. When used with "retry", context transfers back upon completion of the specified step.'},retryAfter:{type:"number",minimum:0,description:'A non-negative decimal indicating the seconds to delay after the step failure before another attempt SHALL be made. Note: if an HTTP Retry-After response header was returned to a step from a targeted operation, then it SHOULD overrule this particular field value. This field only applies when the type field value is "retry".'},retryLimit:{type:"number",minimum:0,description:'A non-negative integer indicating how many attempts to retry the step MAY be attempted before failing the overall step. If not specified then a single retry SHALL be attempted. This field only applies when the type field value is "retry". The retryLimit MUST be exhausted prior to executing subsequent failure actions.'},criteria:q("CriterionObject",{description:"A list of assertions to determine if this action SHALL be executed. Each assertion is described using a Criterion Object."})},required:["type","name"],description:"A single failure action which describes an action to take upon failure of a workflow step."},nj={properties:{},items:e=>e?.type&&e?.name?"FailureActionObject":"ReusableObject"},Ye={Root:RM,Info:NM,SourceDescriptions:MM,OpenAPISourceDescription:jM,ArazzoSourceDescription:DM,Parameters:zM,Parameter:UM,ReusableObject:LM,Workflows:VM,Workflow:FM,Steps:BM,Step:HM,RequestBody:GM,Replacement:WM,ExtendedOperation:QM,ExtendedSecurityList:q("ExtendedSecurity"),ExtendedSecurity:YM,Outputs:KM,CriterionObject:JM,XPathCriterion:ZM,JSONPathCriterion:XM,SuccessActionObject:ej,OnSuccessActionList:tj,FailureActionObject:rj,OnFailureActionList:nj,Schema:We.Schema,NamedSchemas:N("Schema"),ExternalDocs:We.ExternalDocs,DiscriminatorMapping:We.DiscriminatorMapping,Discriminator:We.Discriminator,DependentRequired:We.DependentRequired,SchemaProperties:We.SchemaProperties,PatternProperties:We.SchemaProperties,Components:CM,NamedInputs:qM,NamedParameters:OM,NamedSuccessActions:kM,NamedFailureActions:IM,Xml:We.Xml,SecurityScheme:We.SecurityScheme,OAuth2Flows:We.OAuth2Flows,ImplicitFlow:We.ImplicitFlow,PasswordFlow:We.PasswordFlow,ClientCredentials:We.ClientCredentials,AuthorizationCode:We.AuthorizationCode,DeviceAuthorization:We.DeviceAuthorization};var oj={...Ye.Root,properties:{...Ye.Root.properties,$self:{type:"string",description:"This string MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.1. The $self field provides the self-assigned URI of this document, which also serves as its base URI in accordance with [RFC3986] Section 5.1.1."}}},ij={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":e?.type==="asyncapi"?"AsyncAPISourceDescription":"ArazzoSourceDescription"},sj={properties:{name:{type:"string",description:"REQUIRED. A unique name for the source description. Tools and libraries MAY use the name to uniquely identify a source description, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},type:{type:"string",enum:["asyncapi"],description:'The type of source description. Possible values are "asyncapi".'},url:{type:"string",description:"REQUIRED. A URL to a source description to be used by a workflow. If a relative reference is used, it MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.2."}},required:["name","type","url"],extensionsPrefix:"x-",description:"Describes a source description (such as an AsyncAPI description) that will be referenced by one or more workflows described within an Arazzo Description."},aj={...Ye.Parameter,properties:{...Ye.Parameter.properties,in:{type:"string",enum:["header","query","path","cookie","querystring"],description:'The location of the parameter. Possible values are "path", "query", "querystring", "header", or "cookie". When the step in context specifies a workflowId, then all parameters map to workflow inputs. In all other scenarios (e.g., a step specifies an operationId), the in field MUST be specified.'}}},cj={...Ye.Step,properties:{...Ye.Step.properties,channelPath:{type:"string",description:"A reference to a Source Description Object combined with a JSON Pointer to reference an AsyncAPI channel. This field is mutually exclusive of the operationId, operationPath, and workflowId fields respectively. A Runtime Expression syntax MUST be used to identify the source description document."},action:{type:"string",enum:["send","receive"],description:'Describes the intent of the message flow for an AsyncAPI operation. Possible values are "send" or "receive".'},correlationId:{type:"string",description:'A Runtime Expression used to correlate a request with a response when interacting with asynchronous APIs. Applies to "receive" steps.'},timeout:{type:"integer",minimum:0,description:"A non-negative integer indicating the maximum amount of time (in milliseconds) to wait before timing out."},dependsOn:{type:"array",items:{type:"string"},description:"A list of steps that MUST be completed before this step can be executed. Each value provided MUST be a stepId."}},requiredOneOf:["x-operation","operationId","operationPath","channelPath","workflowId"]},pj={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["rfc9535","draft-goessner-dispatch-jsonpath-00"]}},required:["type","version"]},lj={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-31","xpath-30","xpath-20","xpath-10"]}},required:["type","version"]},uj={properties:{type:{type:"string",enum:["jsonpointer"]},version:{type:"string",enum:["rfc6901"]}},required:["type","version"]},dj={properties:{type:{type:"string",enum:["jsonpath","xpath","jsonpointer"],description:"REQUIRED. The selector type. The options allowed are jsonpath, xpath, or jsonpointer."},version:{type:"string",description:"REQUIRED. A short hand string representing the version of the expression type being used."}},required:["type","version"]},fj=e=>e?.type==="jsonpath"?"JSONPathExpression":e?.type==="xpath"?"XPathExpression":e?.type==="jsonpointer"?"JSONPointerExpression":"ExpressionType",_d=(e,t,{optional:r=!0}={})=>n=>{if(!(r&&!n))return typeof n=="string"?{enum:e,description:t}:fj(n)},mj={...Ye.CriterionObject,properties:{...Ye.CriterionObject.properties,type:_d(["regex","jsonpath","simple","xpath"],"The type of condition to be applied.")}},hj={properties:{context:{type:"string",description:"REQUIRED. A Runtime Expression that evaluates to structured data (e.g., $response.body) the selector is applied to."},selector:{type:"string",description:"REQUIRED. The selector expression (JSONPath, XPath, or JSON Pointer) used to extract data from the context."},type:_d(["jsonpath","xpath","jsonpointer"],"The type of selector to be applied.",{optional:!1})},required:["context","selector","type"],extensionsPrefix:"x-",description:"An object used to extract specific data from structured content using JSONPath, XPath, or JSON Pointer expressions."},yj={properties:{},additionalProperties:e=>O(e)?"SelectorObject":{type:"string"},description:"A map between a friendly name and a dynamic output value defined using a Runtime Expression or a Selector Object. The name MUST use keys that match the regular expression: ^[a-zA-Z0-9_.-]+$."},gj={...Ye.Replacement,properties:{...Ye.Replacement.properties,value:e=>O(e)&&"selector"in e?"SelectorObject":{},targetSelectorType:_d(["jsonpath","xpath","jsonpointer"],"The type of selector used in the target field.")}},bj={...Ye.SuccessActionObject,properties:{...Ye.SuccessActionObject.properties,parameters:"Parameters"}},vj={...Ye.FailureActionObject,properties:{...Ye.FailureActionObject.properties,parameters:"Parameters"}},Pd={...Ye,Root:oj,SourceDescriptions:ij,AsyncAPISourceDescription:sj,Parameter:aj,Step:cj,CriterionObject:mj,JSONPathExpression:pj,XPathExpression:lj,JSONPointerExpression:uj,ExpressionType:dj,SelectorObject:hj,Outputs:yj,Replacement:gj,SuccessActionObject:bj,FailureActionObject:vj};var Sj={properties:{overlay:{type:"string",description:"REQUIRED. This string MUST be the version number of the Overlay Specification that the Overlay document uses. The overlay field SHOULD be used by tooling to interpret the Overlay document."},info:"Info",extends:{type:"string",description:"URI reference that identifies the target document (such as an [OpenAPI] document) this overlay applies to."},actions:"Actions"},required:["overlay","info","actions"],extensionsPrefix:"x-",description:"This is the root object of the Overlay."},xj={properties:{title:{type:"string",description:"REQUIRED. A human readable description of the purpose of the overlay."},version:{type:"string",description:"REQUIRED. A version identifer for indicating changes to the Overlay document."}},required:["title","version"],extensionsPrefix:"x-",description:"The object provides metadata about the Overlay. The metadata MAY be used by the clients if needed."},wj=q("Action"),_j={properties:{target:{type:"string",description:"REQUIRED A JSONPath expression selecting nodes in the target document."},description:{type:"string",description:"A description of the action. [CommonMark] syntax MAY be used for rich text representation."},update:{},remove:{type:"boolean",description:"A boolean value that indicates that the target object or array MUST be removed from the the map or array it is contained in. The default value is false."}},required:["target"],extensionsPrefix:"x-",description:"This object represents one or more changes to be applied to the target document at the location defined by the target JSONPath expression"},Ed={Root:Sj,Info:xj,Actions:wj,Action:_j};var Pj={properties:{openrpc:{type:"string",description:"REQUIRED. This string MUST be the semantic version number of the OpenRPC Specification version that the OpenRPC document uses. The openrpc field SHOULD be used by tooling specifications and clients to interpret the OpenRPC document. This is not related to the API info.version string."},info:"Info",servers:"ServerList",methods:"MethodList",components:"Components",externalDocs:"ExternalDocs"},required:["openrpc","info","methods"],extensionsPrefix:"x-",description:"This is the root object of the OpenRPC document. The contents of this object represent a whole OpenRPC document. How this object is constructed or stored is outside the scope of the OpenRPC Specification."},Ej={properties:{title:{type:"string",description:"REQUIRED. The title of the application."},description:{type:"string",description:"A verbose description of the application. GitHub Flavored Markdown syntax MAY be used for rich text representation."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. MUST be in the format of a URL."},contact:"Contact",license:"License",version:{type:"string",description:"REQUIRED. The version of the OpenRPC document (which is distinct from the OpenRPC Specification version or the API implementation version)."}},required:["title","version"],extensionsPrefix:"x-",description:"REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required."},$j={properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information. MUST be in the format of a URL."},email:{type:"string",description:"The email address of the contact person/organization. MUST be in the format of an email address."}},extensionsPrefix:"x-",description:"Contact information for the exposed API."},Aj={properties:{name:{type:"string",description:"REQUIRED. The license name used for the API."},url:{type:"string",description:"A URL to the license used for the API. MUST be in the format of a URL."}},required:["name"],extensionsPrefix:"x-",description:"License information for the exposed API."},Tj={properties:{url:{type:"string",description:"REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the OpenRPC document is being served. Server Variables are passed into the Runtime Expression to produce a server URL."},name:{type:"string",description:"REQUIRED. A name to be used as the canonical name for the server."},description:{type:"string",description:"An optional string describing the host designated by the URL. GitHub Flavored Markdown syntax MAY be used for rich text representation."},summary:{type:"string",description:"A short summary of what the server is."},variables:"ServerVariablesMap"},required:["url"],extensionsPrefix:"x-",description:"An object representing a Server."},Rj={properties:{enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set."},default:{type:"string",description:"REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. Note this behavior is different than the Schema Object\u2019s treatment of default values, because in those cases parameter values are optional."},description:{type:"string",description:"An optional description for the server variable. GitHub Flavored Markdown syntax MAY be used for rich text representation."}},required:["default"],extensionsPrefix:"x-",description:"An object representing a Server Variable for server URL template substitution."},Oj={properties:{name:{type:"string",description:"REQUIRED. The cannonical name for the method. The name MUST be unique within the methods array."},tags:"TagList",summary:{type:"string",description:"A short summary of what the method does."},description:{type:"string",description:"A verbose explanation of the method behavior. GitHub Flavored Markdown syntax MAY be used for rich text representation."},externalDocs:"ExternalDocs",params:"ContentDescriptorList",result:"ContentDescriptor",deprecated:{type:"boolean",description:"Declares this method to be deprecated. Consumers SHOULD refrain from usage of the declared method. Default value is false."},servers:"ServerList",errors:"ErrorList",links:"LinkList",paramStructure:{enum:["by-name","by-position","either"]},examples:"ExamplePairingList"},required:["name","params"],extensionsPrefix:"x-",description:"Describes the interface for the given method name. The method name is used as the method field of the JSON-RPC body. It therefore MUST be unique."},kj={properties:{name:{type:"string",description:"REQUIRED. Name of the content that is being described. If the content described is a method parameter assignable by-name, this field SHALL define the parameter\u2019s key (ie name)."},summary:{type:"string",description:"A short summary of the content that is being described."},description:{type:"string",description:"A verbose explanation of the content descriptor behavior. GitHub Flavored Markdown syntax MAY be used for rich text representation."},required:{type:"boolean",description:"Determines if the content is a required field. Default value is false."},schema:"Schema",deprecated:{type:"boolean",description:"Specifies that the content is deprecated and SHOULD be transitioned out of usage. Default value is false."}},required:["name","schema"],extensionsPrefix:"x-",description:"Content Descriptors are objects that do just as they suggest - describe content. They are reusable ways of describing either parameters or result. They MUST have a schema."},Ij={properties:{name:{type:"string",description:"REQUIRED Name for the example pairing."},description:{type:"string",description:"A verbose explanation of the example pairing."},summary:{type:"string",description:"Short description for the example pairing."},params:"ExampleList",result:"Example"},extensionsPrefix:"x-",description:"The Example Pairing object consists of a set of example params and result. The result is what you can expect from the JSON-RPC service given the exact params."},Cj={properties:{name:{type:"string",description:"Cannonical name of the example."},summary:{type:"string",description:"Short description for the example."},description:{type:"string",description:"A verbose explanation of the example. GitHub Flavored Markdown syntax MAY be used for rich text representation."},value:{resolvable:!1,description:"Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON, use a string value to contain the example, escaping where necessary."},externalValue:{type:"string",description:"A URL that points to the literal example. This provides the capability to reference examples that cannot easily be included in JSON documents. The value field and externalValue field are mutually exclusive."}},extensionsPrefix:"x-",description:"The Example object is an object that defines an example that is intended to match the schema of a given Content Descriptor."},qj={properties:{name:{type:"string",description:"REQUIRED. Canonical name of the link."},description:{type:"string",description:"A description of the link. GitHub Flavored Markdown syntax MAY be used for rich text representation."},summary:{type:"string",description:"Short description for the link."},method:{type:"string",description:"The name of an existing, resolvable OpenRPC method, as defined with a unique method. This field MUST resolve to a unique Method Object. As opposed to Open Api, Relative method values ARE NOT permitted."},params:{type:"object",description:"A map representing parameters to pass to a method as specified with method. The key is the parameter name to be used, whereas the value can be a constant or a runtime expression to be evaluated and passed to the linked method."},server:"Server"},required:["name"],extensionsPrefix:"x-",description:"The Link object represents a possible design-time link for a result. The presence of a link does not guarantee the caller\u2019s ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between results and other methods."},Nj={properties:{code:{type:"integer",description:"REQUIRED. A Number that indicates the error type that occurred. This MUST be an integer. The error codes from and including -32768 to -32000 are reserved for pre-defined errors. These pre-defined errors SHOULD be assumed to be returned from any JSON-RPC api."},message:{type:"string",description:"REQUIRED. A String providing a short description of the error. The message SHOULD be limited to a concise single sentence."},data:{resolvable:!1,description:"A Primitive or Structured value that contains additional information about the error. This may be omitted. The value of this member is defined by the Server (e.g. detailed error information, nested errors etc.)."}},required:["code","message"],extensionsPrefix:"x-",description:"Defines an application level error."},Mj={properties:{contentDescriptors:"NamedContentDescriptors",schemas:"NamedSchemas",examples:"NamedExamples",links:"NamedLinks",errors:"NamedErrors",examplePairingObjects:"NamedExamplePairingObjects",tags:"NamedTags"},extensionsPrefix:"x-",description:"Holds a set of reusable objects for different aspects of the OpenRPC. All objects defined within the components object will have no effect on the API unless they are explicitly referenced from properties outside the components object."},jj={properties:{name:{type:"string",description:"REQUIRED. The name of the tag."},summary:{type:"string",description:"A short summary of the tag."},description:{type:"string",description:"A verbose explanation for the tag. GitHub Flavored Markdown syntax MAY be used for rich text representation."},externalDocs:"ExternalDocs"},required:["name"],extensionsPrefix:"x-",description:"Adds metadata to a single tag that is used by the Method Object. It is not mandatory to have a Tag Object per tag defined in the Method Object instances."},Dj={properties:{description:{type:"string",description:"A verbose explanation of the target documentation. GitHub Flavored Markdown syntax MAY be used for rich text representation."},url:{type:"string",description:"REQUIRED. The URL for the target documentation. Value MUST be in the format of a URL."}},required:["url"],extensionsPrefix:"x-",description:"Allows referencing an external resource for extended documentation."},$d={Root:Pj,Info:Ej,Contact:$j,License:Aj,Server:Tj,ServerList:q("Server"),ServerVariable:Rj,ServerVariablesMap:N("ServerVariable"),Method:Oj,MethodList:q("Method"),ContentDescriptor:kj,ContentDescriptorList:q("ContentDescriptor"),ExamplePairing:Ij,ExamplePairingList:q("ExamplePairing"),Example:Cj,ExampleList:q("Example"),Link:qj,LinkList:q("Link"),ErrorObject:Nj,ErrorList:q("ErrorObject"),Components:Mj,Tag:jj,TagList:q("Tag"),ExternalDocs:Dj,Schema:ri,SchemaProperties:ni,Dependencies:oi,DiscriminatorMapping:ii,Discriminator:si,NamedContentDescriptors:N("ContentDescriptor"),NamedSchemas:N("Schema"),NamedExamples:N("Example"),NamedLinks:N("Link"),NamedErrors:N("ErrorObject"),NamedExamplePairingObjects:N("ExamplePairing"),NamedTags:N("Tag")};var wv={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Os={type:"object",properties:wv,additionalProperties:!1},Lj={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},ks={type:"object",properties:{hide:{type:"boolean"},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"]},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"]},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:{...wv,like:Os,dislike:Os,satisfied:Os,neutral:Os,dissatisfied:Os},additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:Lj},additionalProperties:!1}},additionalProperties:!1},Uj={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string"},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},Od={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},hc={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:ks,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:Od,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:Uj,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},ai={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},zj={type:"object",properties:{name:{type:"string"},items:ai,queries:ai,mutations:ai,subscriptions:ai,types:ai,directives:ai},required:["name"],additionalProperties:!1},Fj={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:zj},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},Vj={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},Bj={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},Hj={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:Vj,license:Bj},additionalProperties:!1},yc={type:"object",properties:{menu:{type:"object",properties:{...Fj.properties},additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:Od,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:ks,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:Hj},additionalProperties:!1},Kj={type:"object",properties:{downloadUrls:Od,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},excludeFromSearch:{type:"boolean"},samplesMaxInlineArgs:{type:"number"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},feedback:ks,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},Gj={type:"object",properties:{label:{type:"string"},lang:{type:"string",enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Wj={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"}}},pv={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Yj={type:"object",properties:{beforeInfo:{type:"array",items:pv},end:{type:"array",items:pv}}},co={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},uc={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Qj={type:"object",properties:wc(co.properties,["light","dark"])},Jj={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"}}},Xj={type:"object",properties:{error:uc,info:uc,redirect:uc,success:uc}},Zj={type:"object",properties:ci(co.properties,["dark"])},eD={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},tD={type:"object",properties:{accent:co,border:Qj,error:co,http:Jj,primary:co,responses:Xj,secondary:Zj,success:co,text:eD,tonalOffset:{type:"number"},warning:co}},dc={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},rD={type:"object",properties:{small:dc,medium:dc,large:dc,xlarge:dc}},Cr={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},nD={type:"object",properties:{...ci(Cr.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:rD}},lv={type:"object",properties:wc(Cr.properties,["fontSize","lineHeight"])},oD={type:"object",properties:{medium:lv,small:lv}},iD={type:"object",properties:{...ci(Cr.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:oD}},sD={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},aD={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},uv={type:"object",properties:{fullWidth:{type:"boolean"}}},cD={type:"object",properties:{buttons:nD,httpBadges:iD,layoutControls:sD,panels:aD,tryItButton:uv,tryItSendButton:uv}},gc={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},pD={type:"object",properties:{maxWidth:gc}},lD={type:"object",properties:{maxWidth:gc,middlePanelMaxWidth:gc}},uD={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:pD,"three-panel":lD}},dv={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},dD={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:dv,defaultDetailsWidth:{type:"string"},examples:dv,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},_v={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},fD={type:"object",properties:wc(_v.properties,["textTransform"])},mD={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},hD={type:"object",properties:{...ci(Cr.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:_v,level1items:fD,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:mD,textColor:{type:"string"},width:{type:"string"}}},fc={type:"object",properties:{...Cr.properties,color:{type:"string"},transform:{type:"string"}}},yD={type:"object",properties:{...Cr.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"}}},gD={type:"object",properties:ci(Cr.properties,["fontSize"])},bD={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},vD={type:"object",properties:{code:yD,fieldName:Cr,...wc(Cr.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:fc,heading2:fc,heading3:fc,headings:gD,lineHeight:{type:"string"},links:bD,optimizeSpeed:{type:"boolean"},rightPanelHeading:fc,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},SD={type:"object",properties:{color:{type:"string"},...ci(Cr.properties,["fontWeight"])}},xD={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:SD}},wD={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},_D={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},fv={type:"object",properties:{custom:{type:"string"}}},PD={type:"object",properties:{DownloadButton:fv,NextSectionButton:fv}},ED={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},$D={type:"object",properties:{borderRadius:{type:"string"}}},AD={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},TD={type:"object",properties:{breakpoints:gc,codeBlock:xD,colors:tD,components:cD,layout:uD,logo:wD,fab:_D,overrides:PD,rightPanel:ED,schema:dD,shape:$D,sidebar:hD,spacing:AD,typography:vD,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},RD={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Gj}},required:["languages"]},Pv={type:"object",properties:{theme:TD,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:RD,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:Wj,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{type:"string",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:Yj,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 wc(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function ci(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var Yt={nodeTypeName:void 0,type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules"};var OD={rules:Yt,oas2Rules:Yt,oas3_0Rules:Yt,oas3_1Rules:Yt,oas3_2Rules:Yt,async2Rules:Yt,async3Rules:Yt,arazzo1Rules:Yt,arazzo1_1Rules:Yt,overlay1Rules:Yt,openrpc1Rules:Yt,graphqlRules:Yt};var dr={nodeTypeName:void 0,type:"object",additionalProperties:!0},kD={preprocessors:dr,oas2Preprocessors:dr,oas3_0Preprocessors:dr,oas3_1Preprocessors:dr,oas3_2Preprocessors:dr,async2Preprocessors:dr,async3Preprocessors:dr,arazzo1Preprocessors:dr,arazzo1_1Preprocessors:dr,overlay1Preprocessors:dr,openrpc1Preprocessors:dr},fr={nodeTypeName:void 0,type:"object",additionalProperties:!0};var ID={decorators:fr,oas2Decorators:fr,oas3_0Decorators:fr,oas3_1Decorators:fr,oas3_2Decorators:fr,async2Decorators:fr,async3Decorators:fr,arazzo1Decorators:fr,arazzo1_1Decorators:fr,overlay1Decorators:fr,openrpc1Decorators:fr},CD={nodeTypeName:void 0,type:"array",items:{type:"string"},description:"Use extends to inherit rules and their configurations from other rulesets.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/extends"},_c={...OD,...ID,...kD,extends:CD},Ev=e=>e,et=Ev({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),Xe={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},mv={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},Ad={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean"},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"]},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"}},additionalProps:{type:"object",additionalProperties:!0}}},kd={type:"array",items:{...Ad,properties:{...Ad.properties,items:{type:"array",items:Ad}}}},qD={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},ND={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},MD={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}},jD={type:"object",properties:{facets:MD,...Xe.properties},additionalProperties:!1},DD={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},$v={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Av={type:"object",properties:{items:kd,...Xe.properties},additionalProperties:!1},Tv={type:"object",additionalProperties:qD},Rv={type:"object",properties:{items:kd,copyrightText:{type:"string"},logo:Xe,...Xe.properties},additionalProperties:!1},Ov={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...Xe.properties},additionalProperties:!1},kv={type:"object",properties:{head:{type:"array",items:mv},body:{type:"array",items:mv}},additionalProperties:!1},Iv={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}},Cv={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:ND,filters:jD,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:DD},...Xe.properties},additionalProperties:!1},qv={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean"},inputType:{type:"string",enum:["button","icon"]},inputIcon:{type:"string",enum:["chat","sparkles","redocly"]}},additionalProperties:!1}},additionalProperties:!1},Nv={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...Xe.properties},additionalProperties:!1},Id={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},LD={type:"object",properties:{...Xe.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},Mv={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...Xe.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...Xe.properties},additionalProperties:!1},actions:LD},additionalProperties:!1},jv={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...Xe.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...Xe.properties},additionalProperties:!1},expand:{type:"object",properties:{...Xe.properties},additionalProperties:!1},collapse:{type:"object",properties:{...Xe.properties},additionalProperties:!1}},additionalProperties:!1},Dv={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"}},partialsFolders:{type:"array",items:{type:"string"}},lastUpdatedBlock:{type:"object",properties:{format:{type:"string",enum:["timeago","iso","long","short"]},locale:{type:"string"},...Xe.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...Xe.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...Xe.properties},additionalProperties:!1},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},bc={...hc,properties:{...hc.properties,...Pv.properties}},p7={...hc,properties:{...hc.properties,...Pv.properties}},UD={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},zD={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"]},FD={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},VD={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},BD={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"]},HD={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},KD={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{type:"object",additionalProperties:!0},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},Lv={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"]},GD={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:Lv}},additionalProperties:!1,required:["trackingId"]},Uv={type:"object",properties:{adobe:UD,amplitude:zD,fullstory:FD,heap:VD,rudderstack:BD,segment:HD,gtm:KD,ga:GD}},zv={type:"object",properties:{items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0}},hideLoginButton:{type:"boolean"},...Xe.properties},additionalProperties:!1},Fv={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Vv={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}}},additionalProperties:!1},WD={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"]},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"}}}},YD={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:WD},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:kd,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},vc={type:"object",patternProperties:{".*":YD}},Sc={nodeTypeName:et.ScorecardClassic,description:"Add and create sets of rules and test your API description files against them. With these rules you can maintain quality across your existing APIs and ensure that newly-added or updated APIs match your criteria. An API scorecard can include multiple sets of rules, corresponding to different quality levels.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic",type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean"},teamMetadataProperty:{nodeTypeName:et.ScorecardClassicTeamMetadataProperty,description:"Provide custom team label and team metadata property.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#team-metadata-object",type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{nodeTypeName:et.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:et.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},..._c},additionalProperties:!1}},targets:{nodeTypeName:et.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:et.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:et.ScorecardClassicTargetWhere,description:"Specify which API descriptions to apply the `minimumLevel` to based on the metadata.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#where-object",type:"object",required:["metadata"],properties:{metadata:{nodeTypeName:et.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},QD={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},JD={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},XD={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"]},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},en={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:JD},excludes:{type:"array",items:QD},filters:{type:"array",items:XD},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},ZD={type:"object",properties:{type:{type:"string",enum:["string","number","boolean","array","object"]},description:{type:"string"},example:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{type:"object"}]},enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},format:{type:"string"},minimum:{type:"number"},maximum:{type:"number"},items:{type:"object"}},additionalProperties:!0},eL={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:ZD},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},tL={type:"object",required:["name","description","metadataSchema"],properties:{name:{type:"string",description:"Display name of the entity type"},description:{type:"string",description:"Description of the entity type"},metadataSchema:eL,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},rL={type:"object",additionalProperties:tL},Bv={type:"object",properties:{show:{type:"boolean"},entityTypes:rL,catalogs:{type:"object",properties:{all:en,services:en,domains:en,teams:en,users:en,apiDescriptions:en,dataSchemas:en,apiOperations:en},additionalProperties:en}},additionalProperties:!1},hv={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},Cd={type:"string",enum:["and","or"]},Td={type:"object",properties:{field:{type:"string"},operator:hv,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:hv,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},nL={type:"object",properties:{operator:Cd,conditions:{type:"array",items:Td}},required:["operator","conditions"],additionalProperties:!1},yv={type:"array",items:{oneOf:[Td,{type:"object",properties:{operator:Cd,conditions:{type:"array",items:{oneOf:[Td,nL]}}},required:["operator","conditions"],additionalProperties:!1}]}},Hv={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]}},additionalProperties:!1},oL={type:"array",items:{type:"object",properties:{subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},assertions:Hv},required:["subject","assertions"],additionalProperties:!1}},iL={type:"object",properties:{title:{type:"string"},subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},severity:{type:"string",enum:["error","warn","off"]},message:{type:"string"},assertions:Hv,where:oL,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},sL={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},iL]}},aL={type:"object",properties:{name:{type:"string"},extends:_c.extends,rules:sL},required:["name"],additionalProperties:!1},gv={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},cL={oneOf:[gv,{type:"array",items:gv}]},pL={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[yv,{type:"object",properties:{operator:Cd,conditions:yv},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:aL,minItems:1},trigger:cL},required:["name","key","entities","levels"],additionalProperties:!1},Kv={type:"array",items:pL},Ir={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:$v,navbar:Av,products:Tv,footer:Rv,sidebar:Ov,scripts:kv,links:Iv,feedback:ks,search:Cv,aiAssistant:qv,colorMode:Nv,palette:Id,navigation:Mv,codeSnippet:jv,markdown:Dv,openapi:bc,asyncapi:Kj,graphql:yc,analytics:Uv,userMenu:zv,versionPicker:Fv,breadcrumbs:Vv,catalog:vc,entitiesCatalog:Bv,catalogClassic:vc,scorecard:Sc,scorecardClassic:Sc,scorecards:Kv},additionalProperties:!0};var lL=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(lL||{}),uL=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(uL||{});var dL=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(dL||{});var Gv="^[a-z0-9]+(?:-[a-z0-9]+)*$",l7=new RegExp(Gv);var fL=63,u7=`Unique ID cannot exceed ${fL} characters`,Wv="redocly",Yv=[Wv,"corporate","guest"],d7=`Unique ID cannot be a reserved word (${Yv.join(", ")})`,bv=["REDOCLY","CORPORATE","GUEST"],mL={type:"object",additionalProperties:{type:"string"}},hL={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},mc={type:"string",enum:["error","warn","off"]},yL={type:"object",additionalProperties:!1,properties:{schemaCheck:mc,statusCodeCheck:mc,contentTypeCheck:mc,successCriteriaCheck:mc}},gL={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},bL={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},vL={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},SL={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean"},{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:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[gL,bL]},inputs:mL,servers:hL,severity:yL,slo:vL},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},xL={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},wL={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:xL,clientId:{type:"string",minLength:1},clientSecret:{type:"string"},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},_L={type:"object",properties:{type:{type:"string",const:"SAML2"},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string"},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},PL={oneOf:[wL,_L],discriminator:{propertyName:"type"}},EL={type:"object",additionalProperties:PL},Qv={oneOf:[{type:"array",items:{type:"string",enum:bv},uniqueItems:!0},{type:"string",enum:bv}]},vv={type:"string",pattern:Gv,not:{enum:Yv.filter(e=>e!==Wv)}},Jv={oneOf:[{type:"array",items:vv,uniqueItems:!0},vv]},Xv={type:"boolean"},Zv={type:"string",pattern:"^https?://.*"},e0={type:"string",pattern:"^https?://.*"},$L={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:et.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},AL={type:"object",additionalProperties:$L,nodeTypeName:et.Redirects,description:"Use redirects to change which resource a URL points to, maintaining working links when you move, rename, or restructure content.",documentationLink:"https://redocly.com/docs/realm/config/redirects"},TL={type:"string",enum:["info","success","warning","error"]},we={type:"object",additionalProperties:{type:"string"}},RL={type:"object",properties:{trackingId:{type:"string"},content:{type:"string"},dismissible:{type:"boolean"},target:{type:"string"},color:TL,rbac:we,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},OL={type:"array",items:RL},t0={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:we,openapi:bc,graphql:yc,theme:{type:"object",properties:{openapi:bc,graphql:yc},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},..._c},required:["root"]},kL={type:"object",additionalProperties:!0},IL={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},CL={type:"object",properties:{hide:{type:"boolean"},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"}},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"}},excludeFiles:{type:"array",items:{type:"string"}}},required:["title"],additionalProperties:!1}}},additionalProperties:!1},qL={type:"object",properties:{title:{type:"string"},projectTitle:{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:CL},additionalProperties:!1},NL={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},ML={type:"object",properties:{catalogs:{type:"object",properties:{all:we,services:we,domains:we,teams:we,users:we,apiDescriptions:we,dataSchemas:we,apiOperations:we},additionalProperties:we},entitiesTypes:{type:"object",properties:{service:we,domain:we,team:we,user:we,apiDescription:we,apiOperation:we,dataSchema:we},additionalProperties:we},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:we},additionalProperties:!1}},entities:{type:"object",properties:{"**":we},additionalProperties:we}},additionalProperties:!1},r0={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:we,cms:we,reunite:we,features:{type:"object",properties:{aiSearch:we,mcp:we},additionalProperties:!1},content:{type:"object",properties:{"**":we},additionalProperties:we},entitiesCatalog:ML},additionalProperties:we},jL={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},DL={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},LL={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[jL,DL]}},additionalProperties:!1,required:["type","apiBaseUrl"]},UL={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},zL={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Rd={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean"},auth:{type:"object",oneOf:[UL,zL],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},FL={...Rd,properties:{...Rd.properties,type:{type:"string",const:"APIGEE_EDGE"}}},VL={type:"object",oneOf:[Rd,FL,LL],discriminator:{propertyName:"type"}},BL={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:VL}}},Sv={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"]},HL={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},KL={type:"object",properties:{hide:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1},GL={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},WL={type:"object",properties:{requiresLogin:Xv,logoutReturnUrl:Zv,residency:e0,sso:Qv,idps:Jv,rbac:r0},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},xc={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:AL,seo:qL,rbac:r0,apiFunctions:NL,requiresLogin:Xv,responseHeaders:{type:"object",additionalProperties:{type:"array",items:HL}},mockServer:{type:"object",properties:{off:{type:"boolean"},position:{type:"string",enum:["first","last","replace","off"]},strictExamples:{type:"boolean"},errorIfForcedExampleNotFound:{type:"boolean"},description:{type:"string"}}},apis:{type:"object",additionalProperties:t0},..._c,ssoDirect:EL,sso:Qv,idps:Jv,residency:e0,logoutReturnUrl:Zv,access:WL,developerOnboarding:BL,removeAttribution:{type:"boolean"},i18n:Sv,l10n:Sv,metadata:kL,metadataGlobs:IL,ignore:{type:"array",items:{type:"string"}},theme:Ir,reunite:SL,logo:$v,navbar:Av,products:Tv,footer:Rv,sidebar:Ov,scripts:kv,links:Iv,feedback:ks,search:Cv,aiAssistant:qv,colorMode:Nv,palette:Id,navigation:Mv,codeSnippet:jv,markdown:Dv,openapi:bc,graphql:yc,analytics:Uv,userMenu:zv,versionPicker:Fv,breadcrumbs:Vv,catalog:vc,entitiesCatalog:Bv,catalogClassic:vc,scorecard:Sc,scorecardClassic:Sc,scorecards:Kv,mcp:KL,skills:GL,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:OL},not:{required:["sso","idps"]},additionalProperties:!0},YL={...xc,additionalProperties:!1},pi={$id:"root-redocly-config",...xc,properties:{plugins:{type:"array",items:{type:"string"}},...xc.properties,env:{type:"object",additionalProperties:YL}},additionalProperties:!1},xv={type:"object",properties:{logo:Ir.properties.logo,navbar:Ir.properties.navbar,footer:Ir.properties.footer,sidebar:Ir.properties.sidebar,search:Ir.properties.search,codeSnippet:Ir.properties.codeSnippet,breadcrumbs:Ir.properties.breadcrumbs,openapi:Ir.properties.openapi,feedback:Ir.properties.feedback,palette:Id,mockServer:xc.properties.mockServer,analytics:{type:"object",properties:{ga:Lv}}},additionalProperties:!0},f7={$id:"product-config-override",type:"object",properties:{...xv.properties,apis:{type:"object",additionalProperties:t0},theme:xv},additionalProperties:!1},QL=["partOf","hasParts","creates","createdBy","owns","ownedBy","implements","implementedBy","dependsOn","dependencyOf","uses","usedBy","produces","consumes","linksTo","supersedes","supersededBy","compatibleWith","extends","extendedBy","relatesTo","hasMember","memberOf","triggers","triggeredBy","returns","returnedBy"],ze=Ev({UserEntity:"UserEntity",UserEntityMetadata:"UserEntityMetadata",ApiDescriptionEntity:"ApiDescriptionEntity",ApiDescriptionEntityMetadata:"ApiDescriptionEntityMetadata",ApiOperationEntity:"ApiOperationEntity",ApiOperationEntityMetadata:"ApiOperationEntityMetadata",DataSchemaEntity:"DataSchemaEntity",DataSchemaEntityMetadata:"DataSchemaEntityMetadata",ServiceEntity:"ServiceEntity",DomainEntity:"DomainEntity",TeamEntity:"TeamEntity",Entity:"Entity",EntityMetadata:"EntityMetadata",EntityLinkList:"EntityLinkList",EntityLink:"EntityLink",EntityRelation:"EntityRelation",EntityRelationList:"EntityRelationList",EntityContact:"EntityContact",EntitySlackContact:"EntitySlackContact",EntitySlackChannel:"EntitySlackChannel"}),JL={type:"object",nodeTypeName:ze.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},XL={type:"object",nodeTypeName:ze.ApiDescriptionEntityMetadata,properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Type of the API description"},descriptionFile:{type:"string",description:"Path to the file containing the API description"}},required:["specType","descriptionFile"],additionalProperties:!0},ZL={type:"object",nodeTypeName:ze.ApiOperationEntityMetadata,properties:{method:{type:"string",enum:["GET","POST","PUT","DELETE","PATCH","MUTATION","QUERY","SUBSCRIBE","PUBLISH"],description:"HTTP method of the API operation"},path:{type:"string",description:"Path of the API operation"},payload:{type:"array",items:{type:"string",description:"Related dataSchema name"}},responses:{type:"array",items:{type:"string",description:"Related dataSchema name"}}},required:["method","path"],additionalProperties:!0},e2={type:"object",nodeTypeName:ze.DataSchemaEntityMetadata,properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Specification type of the data schema"},schema:{type:"string",description:"Inline schema of the data structure"},sdl:{type:"string",description:"SDL of the data structure"}},required:["specType"],additionalProperties:!0},t2={type:"object",properties:{},nodeTypeName:ze.EntityMetadata,additionalProperties:!0},r2={type:"object",nodeTypeName:ze.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},n2={type:"object",nodeTypeName:ze.EntitySlackContact,properties:{channels:{type:"array",items:r2}},required:["channels"],additionalProperties:!1},o2={type:"object",nodeTypeName:ze.EntityContact,properties:{slack:n2},additionalProperties:!1},i2={type:"object",nodeTypeName:ze.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},s2={type:"object",nodeTypeName:ze.EntityRelation,properties:{type:{type:"string",enum:QL},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},_n={version:{type:"string"},key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},type:{type:"string",enum:["user","data-schema","api-operation","api-description","service","domain","team"]},title:{type:"string",minLength:2,maxLength:200},summary:{type:"string",minLength:1,maxLength:500},tags:{type:"array",items:{type:"string",minLength:1,maxLength:50}},git:{type:"array",items:{type:"string"}},contact:o2,links:{type:"array",nodeTypeName:ze.EntityLinkList,items:i2},relations:{type:"array",nodeTypeName:ze.EntityRelationList,items:s2},metadata:t2},a2={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{..._n,type:{type:"string",const:"user"},metadata:JL},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:ze.UserEntity},{type:"object",nodeTypeName:ze.ApiOperationEntity,properties:{..._n,type:{type:"string",const:"api-operation"},metadata:ZL},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:ze.DataSchemaEntity,properties:{..._n,type:{type:"string",const:"data-schema"},metadata:e2},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:ze.ApiDescriptionEntity,properties:{..._n,type:{type:"string",const:"api-description"},metadata:XL},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:ze.ServiceEntity,properties:{..._n,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:ze.DomainEntity,properties:{..._n,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:ze.TeamEntity,properties:{..._n,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},c2={type:"object",nodeTypeName:ze.Entity,properties:{..._n},required:["key","title","type"],additionalProperties:!1};import iH from"node:path";var n0=["Name","Document","OperationDefinition","VariableDefinition","SelectionSet","Field","Argument","FragmentSpread","InlineFragment","FragmentDefinition","Variable","IntValue","FloatValue","StringValue","BooleanValue","NullValue","EnumValue","ListValue","ObjectValue","ObjectField","Directive","NamedType","ListType","NonNullType","SchemaDefinition","OperationTypeDefinition","ScalarTypeDefinition","ObjectTypeDefinition","FieldDefinition","InputValueDefinition","InterfaceTypeDefinition","UnionTypeDefinition","EnumTypeDefinition","EnumValueDefinition","InputObjectTypeDefinition","DirectiveDefinition","SchemaExtension","DirectiveExtension","ScalarTypeExtension","ObjectTypeExtension","InterfaceTypeExtension","UnionTypeExtension","EnumTypeExtension","InputObjectTypeExtension","TypeCoordinate","MemberCoordinate","ArgumentCoordinate","DirectiveCoordinate","DirectiveArgumentCoordinate"];var li=["oas2","oas3_0","oas3_1","oas3_2","async2","async3","arazzo1","arazzo1_1","overlay1","openrpc1","graphql"],Pc="a-zA-Z0-9\\.\\-_",p2={oas2:ud,oas3_0:Rt,oas3_1:_e,oas3_2:We,async2:xd,async3:wd,arazzo1:Ye,arazzo1_1:Pd,overlay1:Ed,openrpc1:$d};function po(e){return e==="graphql"?{}:p2[e]}function Ec(e){return e.includes("/")}function $c(e,t){let r={...e};return t.forEach(n=>{delete r[n]}),r}var rw=Rr(Wm(),1);var nH=new rw.default({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0});function tw(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(o=>nH.validate(o,r));return n===-1&&(n=0),t[n]}}function Ti(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.`);if(t.type==="string"||t.type==="number"||t.type==="integer"||t.type==="boolean"){let{default:n,format:o,...i}=t;return i}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(O(t.properties)||O(t.additionalProperties)||O(t.items)&&(O(t.items.properties)||O(t.items.additionalProperties)||t.items.oneOf))return oH(e,t,r);if(t.oneOf)if(t.discriminator){let n=t.discriminator?.propertyName;if(!n)throw new Error(`Unexpected discriminator without a propertyName in ${e}.`);let o={},i=t.oneOf.map((s,a)=>{if(typeof s=="boolean")throw new Error(`Unexpected boolean schema in ${e} at position ${a} in oneOf.`);let c=s?.properties?.[n];if(!c||typeof c=="boolean")throw new Error(`Unexpected property '${c}' schema in ${e} at position ${a} in oneOf.`);let p=c.const,l=Ti(p,s,r);return typeof l=="string"&&(o[p]=l),l});return(s,a)=>{if(O(s)){let c=s[n];if(typeof c=="string"){let p=o[c];if(p&&r[p])return p}}return tw(t.oneOf,i)(s,a)}}else{let n=t.oneOf.map((o,i)=>Ti(e+"_"+i,o,r));return tw(t.oneOf,n)}return t}function oH(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=t.nodeTypeName??e,o={};for(let[c,p]of Object.entries(t.properties||{}))o[c]=Ti(n+"."+c,p,r);let i;O(t.additionalProperties)&&(i=Ti(e+"_additionalProperties",t.additionalProperties,r)),t.additionalProperties===!0&&(i={});let s;O(t.items)&&(O(t.items.properties)||O(t.items.additionalProperties)||t.items.oneOf)&&(s=Ti(e+"_items",t.items,r));let a=t.required;return t.oneOf&&t.oneOf.every(c=>!!c.required)&&(a=c=>{let p=t.oneOf.map(u=>[...t.required||[],...u.required]),l=p.findIndex(u=>u.every(d=>c[d]!==void 0));return l===-1&&(l=0),p[l]}),r[n]={properties:o,additionalProperties:i,items:s,required:a,description:t.description,documentationLink:t.documentationLink},n}function Ym(e,t){let r={},n=Ti(e,t,r);return{ctx:r,discriminatorResolver:typeof n=="function"?n:void 0}}var sH=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","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","security-scopes-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"],aH=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","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","security-scopes-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","no-mixed-number-range-constraints","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","spec-querystring-parameters"],cH=["info-contact","info-license-strict","operation-operationId","security-defined","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","security-scopes-defined"],pH=["info-contact","info-license-strict","operation-operationId","security-defined","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","security-scopes-defined"],lH=["sourceDescription-type","workflowId-unique","stepId-unique","sourceDescription-name-unique","sourceDescriptions-not-empty","spec-step-mutually-exclusive-fields","workflow-dependsOn","outputs-defined","parameters-unique","step-onSuccess-unique","step-onFailure-unique","requestBody-replacements-unique","no-criteria-xpath","criteria-unique","no-x-security-scheme-name-without-openapi","x-security-scheme-required-values","no-x-security-both-scheme-and-scheme-name","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","x-security-scheme-name-reference"],uH=["info-contact"],dH=["info-contact","info-license","no-unused-components","spec-no-duplicated-method-params","spec-no-required-params-after-optional"],fH=["no-unused-types","type-description"],mH=["struct","no-unresolved-refs"],hH=[...sH,...aH,...cH,...pH,...lH,...uH,...dH,...fH,...mH],yH=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","remove-unused-components"],gH=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","media-type-examples-override","remove-unused-components"],nw=[...gH,...yH],ow={extends:{name:"Extends",properties:{},items:e=>typeof e=="string"&&!se(e)&&!iH.extname(e)?{type:"string"}:{...pa,directResolveAs:{name:"ConfigGovernance",...pa}},description:"Use extends to inherit rules and their configurations from other rulesets.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/extends#extends"},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",arazzo1_1Rules:"Rules",overlay1Rules:"Rules",openrpc1Rules:"Rules",graphqlRules:"Rules",preprocessors:"Preprocessors",oas2Preprocessors:"Preprocessors",oas3_0Preprocessors:"Preprocessors",oas3_1Preprocessors:"Preprocessors",oas3_2Preprocessors:"Preprocessors",async2Preprocessors:"Preprocessors",async3Preprocessors:"Preprocessors",arazzo1Preprocessors:"Preprocessors",arazzo1_1Preprocessors:"Preprocessors",overlay1Preprocessors:"Preprocessors",openrpc1Preprocessors:"Preprocessors",decorators:"Decorators",oas2Decorators:"Decorators",oas3_0Decorators:"Decorators",oas3_1Decorators:"Decorators",oas3_2Decorators:"Decorators",async2Decorators:"Decorators",async3Decorators:"Decorators",arazzo1Decorators:"Decorators",arazzo1_1Decorators:"Decorators",overlay1Decorators:"Decorators",openrpc1Decorators:"Decorators"},pa={properties:ow},bH=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...pa.properties,apis:"ConfigApis",client:"Client",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),vH={properties:{},additionalProperties:"ConfigApisProperties",description:"The `apis` configuration section is used when a project contains multiple API descriptions to set up different rules and settings for individual APIs. It allows defining specific configurations for each API, which must be identified by a unique name.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/apis"},SH=e=>({...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...e["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,...$c(pa.properties,["plugins"]),client:"Client",clientOutput:{type:"string"}}}),xH={properties:{headers:{type:"array",items:{type:"string"}}}},wH={properties:{generators:{type:"array",items:{type:"string"}},argsStyle:{enum:["flat","grouped"]},serverUrl:{type:"string"},outputMode:{enum:["single","split"]},runtime:{enum:["inline","package"]},importExt:{enum:["js","ts"]},errorMode:{enum:["throw","result"]},dateType:{enum:["string","Date"]},mockData:{enum:["static","faker"]},mockSeed:{type:"number"},queryKeyPrefix:{type:"string"},setup:{type:"string"},pagination:"ClientPagination"}},iw={properties:{style:{enum:["cursor","offset","page","link"]},cursorParam:{type:"string"},nextCursor:{type:"string"},hasMore:{type:"string"},offsetParam:{type:"string"},limitParam:{type:"string"},items:{type:"string"}}},_H={properties:{...iw.properties,exclude:{type:"array",items:{type:"string"}},operations:N("ClientPaginationRule")}},PH={properties:{},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules",additionalProperties:(e,t)=>{if(t.startsWith("rule/"))return typeof e=="string"?{enum:["error","warn","off"]}:"ConfigurableRule";if(hH.includes(t))return typeof e=="string"?{enum:["error","warn","off"]}:"BuiltinRule";if(Ec(t))return typeof e=="string"?{enum:["error","warn","off"]}:"CustomRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},EH={properties:{severity:{enum:["error","warn","off"]}},additionalProperties:{},required:["severity"],description:"Built-in rules are the default linting rules included with Redocly CLI. They enforce widely accepted API design standards and best practices. Each built-in rule has a default severity of error, but you can change the severity or turn off any built-in rule in your configuration file.",documentationLink:"https://redocly.com/docs/cli/rules/built-in-rules"},$H={properties:{severity:{enum:["error","warn","off"]}},additionalProperties:{},required:["severity"],description:"Custom rules are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-rules"},AH={properties:{},description:"Decorators define transformations that can be applied to the API document during the bundle step.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/decorators",additionalProperties:(e,t)=>{if(nw.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinDecorator";if(Ec(t))return typeof e=="string"?{type:"string"}:"CustomDecorator"}},TH={properties:{},additionalProperties:{},description:"Built-in decorators are the default decorators included with Redocly CLI.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},RH={properties:{},additionalProperties:{},description:"Custom decorators are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},OH={properties:{},description:"Preprocessors define transformations that can be applied to the API document before bundling.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/preprocessors",additionalProperties:(e,t)=>{if(nw.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinPreprocessor";if(Ec(t))return typeof e=="string"?{type:"string"}:"CustomPreprocessor"}},kH={properties:{},additionalProperties:{},description:"Built-in preprocessors are the default preprocessors included with Redocly CLI. The available options are the same for decorators and preprocessors.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},IH={properties:{},additionalProperties:{},description:"Custom preprocessors are defined by users via plugins. The available options are the same for decorators and preprocessors.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},CH={properties:{properties:N("Schema")},additionalProperties:{}};function qH(e){return{properties:{type:{enum:[...new Set(["any",...e,"SpecExtension"])],description:"REQUIRED. Locates the API node type that the lint command evaluates.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#subject-object"},property:t=>Array.isArray(t)?{type:"array",items:{type:"string"},description:"Property name corresponding to the API node type. If a list of properties is provided, assertions evaluate against each property in the sequence. If not provided (or null), assertions evaluate against the key names for the subject node type.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#property-example"}:t===null?null:{type:"string",description:"Property name corresponding to the API node type. If a list of properties is provided, assertions evaluate against each property in the sequence. If not provided (or null), assertions evaluate against the key names for the subject node type.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#property-example"},filterInParentKeys:{type:"array",items:{type:"string"},description:"The name of the subject's parent key that locates where assertions run. An example value given the subject Operation could be filterInParentKeys: [get, put] means that only GET and PUT operations are evaluated for the assertions.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyrequired-example"},filterOutParentKeys:{type:"array",items:{type:"string"},description:"The name of the subject's parent key that excludes where assertions run. An example value given the subject Operation could be filterOutParentKeys: [delete] means that all operations except DELETE operations are evaluated for the assertions."},matchParentKeys:{type:"string",description:"Applies a regex pattern to the subject's parent keys to determine where assertions run. An example value given the subject Operation could be matchParentKeys: /^p/ means that POST, PUT, and PATCH operations are evaluated for the assertions."}},required:["type"],description:"REQUIRED. Narrows the subject further by specifying its type, and optionally property, filterParentKeys, etc.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#subject-object"}}function NH(e){return{...e[et.ScorecardClassicLevel],properties:{...e[et.ScorecardClassicLevel]?.properties,...ow}}}var MH={properties:{enum:{type:"array",items:{type:"string"},description:"Asserts a value is within a predefined list of values. Providing a single value in a list is an equality check.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#enum-example"},pattern:{type:"string",description:"Asserts a value matches a regex pattern.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#pattern-example"},notPattern:{type:"string",description:"Asserts a value doesn't match a regex pattern.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#notpattern-example"},casing:{enum:["camelCase","kebab-case","snake_case","PascalCase","MACRO_CASE","COBOL-CASE","flatcase"],description:"Asserts a casing style. Supported styles are: camelCase, kebab-case, snake_case, PascalCase, MACRO_CASE, COBOL-CASE, flatcase.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#casing-example"},mutuallyExclusive:{type:"array",items:{type:"string"},description:"Asserts that listed properties (key names only) are mutually exclusive.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyexclusive-example"},mutuallyRequired:{type:"array",items:{type:"string"},description:"Asserts that listed properties (key names only) are mutually required.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyrequired-example"},required:{type:"array",items:{type:"string"},description:"Asserts all listed values are defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#required-example"},requireAny:{type:"array",items:{type:"string"},description:"Asserts that at least one of the listed properties (key names only) is defined. ",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#requireany-example"},contains:{type:"array",items:{type:"string"},description:"Asserts that all listed strings are included in the value array.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#contains-example"},disallowed:{type:"array",items:{type:"string"},description:"Asserts all listed values are not defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#disallowed-example"},defined:{type:"boolean",description:"Asserts a property is defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#defined-example"},nonEmpty:{type:"boolean",description:"Asserts a property is not empty.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#nonempty-example"},minLength:{type:"integer",description:"Asserts a minimum length (inclusive) of a string or list (array).",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#minlength-example"},maxLength:{type:"integer",description:"Asserts a maximum length (inclusive) of a string or list (array).",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#maxlength-example"},ref:e=>typeof e=="string"?{type:"string",description:"Asserts a reference object presence in object's property. A boolean value of true means the property has a $ref defined. A boolean value of false means the property has not defined a $ref (it has an in-place value). A string value means that the $ref is defined and the unresolved value must match the pattern (for example, '/paths/.*.yaml$/').",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#ref-example"}:{type:"boolean",description:"Asserts a reference object presence in object's property. A boolean value of true means the property has a $ref defined. A boolean value of false means the property has not defined a $ref (it has an in-place value). A string value means that the $ref is defined and the unresolved value must match the pattern (for example, '/paths/.*.yaml$/').",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#ref-example"},const:e=>{if(typeof e=="string")return{type:"string",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"};if(typeof e=="number")return{type:"number",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"};if(typeof e=="boolean")return{type:"boolean",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"}}},additionalProperties:(e,t)=>{if(/^\w+\/\w+$/.test(t))return{}},description:"A minimum of one assertion property is required to be defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#assertion-object"},jH={properties:{subject:"Subject",assertions:"Assertions"},required:["subject","assertions"],description:"The where object is part of a where list which must be defined in order from the root node. Each node can only be used in one where object for each assertion. Each subsequent node must be a descendant of the previous one. Rules that use multiple where objects must target each one on a different node. However, the same node could be used in the last where object and in the root subject object. Nodes may be skipped in between the subject node types of the where list and those defined in the root subject type.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#where-object"},DH={properties:{subject:"Subject",assertions:"Assertions",where:q("Where"),message:{type:"string"},suggest:{type:"array",items:{type:"string"}},reference:{type:"string"},severity:{enum:["error","warn","off"]}},required:["subject","assertions"],description:"Configurable rule definitions enforce your custom API design standards. Add or edit your configurable rules in the configuration file. A configurable rule is a rule that starts with a rule/ prefix followed by a unique rule name. Rule names display in the lint log if the assertions fail. More than one configurable rule may be defined, and any configurable rule may have multiple assertions.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#configurable-rule-object"};function cp(e,t){let r=li.flatMap(o=>{let i=po(o),s=t?t.extendTypes(i,o):i;return Object.keys(s)}),{ctx:n}=Ym("rootRedoclyConfigSchema",e);return{...LH,ConfigRoot:bH(n),ConfigApisProperties:SH(n),Subject:qH([...r,...n0]),...n,[et.ScorecardClassicLevel]:NH(n)}}var LH={ConfigurableRule:DH,ConfigApis:vH,ConfigGovernance:pa,ConfigHTTP:xH,Client:wH,ClientPagination:_H,ClientPaginationRule:iw,Where:jH,BuiltinRule:EH,CustomRule:$H,BuiltinDecorator:TH,CustomDecorator:RH,BuiltinPreprocessor:kH,CustomPreprocessor:IH,Schema:CH,Rules:PH,Decorators:AH,Preprocessors:OH,Assertions:MH},{theme:_Z,...UH}=pi.properties,zH={...pi,properties:UH},sw=cp(zH),On=Zr(sw);var FH=e=>({ExternalDocs:{leave(){e.externalDocs.total++}},ref:{enter(t){e.refs.items.add(t.$ref)}},Tag:{leave(t){e.tags.items.add(t.name)}},Link:{leave(t){e.links.items.add(t.operationId)}},WebhooksMap:{Operation:{leave(t){if(e.webhooks.total++,t.tags)for(let r of t.tags)e.tags.items.add(r)}}},Paths:{PathItem:{leave(){e.pathItems.total++},Operation:{leave(t){if(e.operations.total++,t.tags)for(let r of t.tags)e.tags.items.add(r)}},Parameter:{leave(t){e.parameters.items.add(t.name)}}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){e.parameters.total=e.parameters.items.size,e.refs.total=e.refs.items.size,e.links.total=e.links.items.size,e.tags.total=e.tags.items.size}}}),VH=e=>({ExternalDocs:{leave(){e.externalDocs.total++}},ref:{enter(t){e.refs.items.add(t.$ref)}},Tag:{leave(t){e.tags.items.add(t.name)}},ChannelMap:{Channel:{leave(){e.channels.total++},Operation:{leave(t){if(e.operations.total++,t.tags)for(let r of t.tags)e.tags.items.add(r)}},Parameter:{leave(t){t.name&&e.parameters.items.add(t.name)}}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){e.parameters.total=e.parameters.items.size,e.refs.total=e.refs.items.size,e.tags.total=e.tags.items.size}}}),BH=e=>({ExternalDocs:{leave(){e.externalDocs.total++}},ref:{enter(t){e.refs.items.add(t.$ref)}},Tag:{leave(t){e.tags.items.add(t.name)}},NamedChannels:{Channel:{leave(){e.channels.total++},Parameter:{leave(t){t.name&&e.parameters.items.add(t.name)}}}},NamedOperations:{Operation:{leave(t){if(e.operations.total++,t.tags)for(let r of t.tags)e.tags.items.add(r)}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){e.parameters.total=e.parameters.items.size,e.refs.total=e.refs.items.size,e.tags.total=e.tags.items.size}}});import*as mw from"node:fs";import*as an from"node:path";var Ri="redocly.yaml",aw={extends:["recommended"]},la=".redocly.lint-ignore.yaml",cw=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
|
|
104
|
-
# See https://redocly.com/docs/cli/ for more information.
|
|
105
|
-
`,pp="configBundler",lp="pluginsCollector",pw=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];function up(e){return{http:{headers:e?.http?.headers??[],customFetch:void 0}}}function ua(e,t){let r=new Set(t),n=0;for(let o of e)r.has(o)&&n++;return n}function lw(e,t){let r=t.direction||t,n=t.property;for(let o=1;o<e.length;o++){let i=e[o],s=e[o-1];if(n){let c=e[o][n],p=e[o-1][n];if(!c||!p)return!1;i=c,s=p}if(typeof i=="string"&&typeof s=="string"&&(i=i.toLowerCase(),s=s.toLowerCase()),!(r==="asc"?i>=s:i<=s))return!1}return!0}var dp=new Set(["mutuallyExclusive","mutuallyRequired","enum","pattern","notPattern","minLength","maxLength","casing","sortOrder","disallowed","required","requireAny","ref","const","defined"]),fp=new Set(["pattern","notPattern","enum","defined","nonEmpty","minLength","maxLength","casing","sortOrder","ref","const","contains"]),jr={pattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||O(e))return[];let o=Array.isArray(e)?e:[e],i=ao(t);return o.map(s=>!i?.test(s)&&{message:`"${s}" should match a regex ${t}`,location:Me(e)?r:O(n)?r.child(s).key():r.key()}).filter(Ge)},notPattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||O(e))return[];let o=Array.isArray(e)?e:[e],i=ao(t);return o.map(s=>i?.test(s)&&{message:`"${s}" should not match a regex ${t}`,location:Me(e)?r:O(n)?r.child(s).key():r.key()}).filter(Ge)},enum:(e,t,{baseLocation:r})=>typeof e>"u"||O(e)?[]:(Array.isArray(e)?e:[e]).map(o=>!t.includes(o)&&{message:`"${o}" should be one of the predefined values`,location:Me(e)?r:r.child(o).key()}).filter(Ge),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(Ge),contains:(e,t,{baseLocation:r})=>{if(typeof e>"u"||O(e))return[];let n=Array.isArray(e)?e:[e];return t.map(o=>!n.includes(o)&&{message:`${o} should be in the list`,location:r}).filter(Ge)},disallowed:(e,t,{baseLocation:r})=>typeof e>"u"||O(e)?[]:(Array.isArray(e)?e:[e]).map(o=>t.includes(o)&&{message:`"${o}" is disallowed`,location:Me(e)?r:r.child(o).key()}).filter(Ge),const:(e,t,{baseLocation:r})=>typeof e>"u"?[]:Array.isArray(e)?e.map(n=>t!==n&&{message:`"${n}" should be equal ${t} `,location:Me(e)?r:r.child(n).key()}).filter(Ge):e!==t?[{message:`${e} should be equal ${t}`,location:r}]:[],nonEmpty:(e,t=!0,{baseLocation:r})=>{let n=typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0;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"||O(e))return[];let n=Array.isArray(e)?e:[e],o={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(i=>!i.match(o[t])&&{message:`"${i}" should use ${t}`,location:Me(e)?r:r.child(i).key()}).filter(Ge)},sortOrder:(e,t,{baseLocation:r})=>{let n=t.direction||t,o=t.property;return Array.isArray(e)&&e.length>0&&O(e[0])&&!o?[{message:"Please define a property to sort objects by",location:r}]:typeof e>"u"||lw(e,t)?[]:[{message:`Should be sorted in ${n==="asc"?"an ascending":"a descending"} order${o?` by property ${o}`:""}`,location:r}]},mutuallyExclusive:(e,t,{baseLocation:r})=>ua(e,t)<2?[]:[{message:`${t.join(", ")} keys should be mutually exclusive`,location:r.key()}],mutuallyRequired:(e,t,{baseLocation:r})=>(ua(e,t)>0?ua(e,t)===t.length:!0)?[]:[{message:`Properties ${t.join(", ")} are mutually required`,location:r.key()}],requireAny:(e,t,{baseLocation:r})=>ua(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 o=n.hasOwnProperty("$ref");if(typeof t=="boolean")return(t?o:!o)?[]:[{message:t?"should use $ref":"should not use $ref",location:o?r:r.key()}];let i=ao(t);return o&&i?.test(n.$ref)?[]:[{message:`$ref value should match ${t}`,location:o?r:r.key()}]}};function uw(e){return(t,r,n)=>e.call(null,t,r,n)}function fw(e,t){if(!e.rules)return{};let r={},n=[];for(let[o,i]of Object.entries(e.rules))if(o.startsWith("rule/")&&O(i)){let s=i;if(t){dw(t,s);for(let a of s.where||[])dw(t,a)}n.push({...s,assertionId:o})}else r[o]=i;return n.length>0&&(r.assertions=n),r}function dw(e,t){for(let r of Object.keys(t.assertions||{})){let[n,o]=r.split("/");if(!n||!o)continue;let i=e.find(s=>s.id===n);if(!i)throw Error(`Plugin ${n} isn't found.`);if(!i.assertions||!i.assertions[o])throw Error(`Plugin ${n} doesn't export assertions function with name ${o}.`);jr[r]=uw(i.assertions[o])}}var Oi=class e{resolvedConfig;configPath;document;resolvedRefMap;resolve;_alias;plugins;ignore={};doNotResolveExamples;rules;preprocessors;decorators;_usedRules=new Set;_usedVersions=new Set;constructor(t,r={}){this.resolvedConfig=t,this.configPath=r.configPath,this.document=r.document,this.resolvedRefMap=r.resolvedRefMap,this.resolve=up(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!t.resolve?.doNotResolveExamples;let n=o=>fw({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}),arazzo1_1:n({...t.rules,...t.arazzo1_1Rules}),overlay1:n({...t.rules,...t.overlay1Rules}),openrpc1:n({...t.rules,...t.openrpc1Rules}),graphql:n({...$c(t.rules??{},["no-unresolved-refs"]),...t.graphqlRules})},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},arazzo1_1:{...t.preprocessors,...t.arazzo1_1Preprocessors},overlay1:{...t.preprocessors,...t.overlay1Preprocessors},openrpc1:{...t.preprocessors,...t.openrpc1Preprocessors},graphql:{}},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},arazzo1_1:{...t.decorators,...t.arazzo1_1Decorators},overlay1:{...t.decorators,...t.overlay1Decorators},openrpc1:{...t.decorators,...t.openrpc1Decorators},graphql:{}},this.ignore=r.ignore??{}}forAlias(t){if(t===void 0||!O(this.resolvedConfig?.apis?.[t]))return this;let{apis:r,...n}=this.resolvedConfig,{root:o,output:i,...s}=r[t];return new e({...n,...s},{configPath:this.configPath,document:this.document,resolvedRefMap:this.resolvedRefMap,alias:t,plugins:this.plugins,ignore:this.ignore})}clearIgnoreForRef(t){let r=this.configPath?an.dirname(this.configPath):process.cwd(),n=se(t)?t:an.resolve(r,t);delete this.ignore[n]}saveIgnore(){let t=this.configPath?an.dirname(this.configPath):process.cwd(),r=an.join(t,la),n={};for(let o of Object.keys(this.ignore)){let i=se(o)?o:ld(an.relative(t,o)),s=n[i]=this.ignore[o];for(let a of Object.keys(s))s[a]=Array.from(s[a])}mw.writeFileSync(r,cw+pc(n))}addIgnore(t){let r=this.ignore,n=t.location[0];if(n.pointer===void 0)return;let o=r[n.source.absoluteRef]=r[n.source.absoluteRef]||{};(o[t.ruleId]=o[t.ruleId]||new Set).add(n.pointer)}addProblemToIgnore(t){let r=t.location[0];if(r.pointer===void 0)return t;let o=(this.ignore[r.source.absoluteRef]||{})[t.ruleId],i=o&&o.has(r.pointer);return i?{...t,ignored:i}:t}extendTypes(t,r){let n=t;for(let o of this.plugins)if(o.typeExtension!==void 0)switch(r){case"oas3_0":case"oas3_1":case"oas3_2":if(!o.typeExtension.oas3)continue;n=o.typeExtension.oas3(n,r);break;case"oas2":if(!o.typeExtension.oas2)continue;n=o.typeExtension.oas2(n,r);break;case"async2":if(!o.typeExtension.async2)continue;n=o.typeExtension.async2(n,r);break;case"async3":if(!o.typeExtension.async3)continue;n=o.typeExtension.async3(n,r);break;case"arazzo1":case"arazzo1_1":if(!o.typeExtension.arazzo1)continue;n=o.typeExtension.arazzo1(n,r);break;case"overlay1":if(!o.typeExtension.overlay1)continue;n=o.typeExtension.overlay1(n,r);break;case"openrpc1":if(!o.typeExtension.openrpc1)continue;n=o.typeExtension.openrpc1(n,r);break;case"graphql":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 o of Array.from(this._usedVersions))t.push(...Object.keys(this.rules[o]).filter(i=>!this._usedRules.has(i))),r.push(...Object.keys(this.decorators[o]).filter(i=>!this._usedRules.has(i))),n.push(...Object.keys(this.preprocessors[o]).filter(i=>!this._usedRules.has(i)));return{rules:t,preprocessors:n,decorators:r}}getRulesForSpecVersion(t){switch(t){case"oas3":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.oas3&&r.push(n.preprocessors.oas3)),this.plugins.forEach(n=>n.rules?.oas3&&r.push(n.rules.oas3)),this.plugins.forEach(n=>n.decorators?.oas3&&r.push(n.decorators.oas3)),r}case"oas2":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.oas2&&r.push(n.preprocessors.oas2)),this.plugins.forEach(n=>n.rules?.oas2&&r.push(n.rules.oas2)),this.plugins.forEach(n=>n.decorators?.oas2&&r.push(n.decorators.oas2)),r}case"async2":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.async2&&r.push(n.preprocessors.async2)),this.plugins.forEach(n=>n.rules?.async2&&r.push(n.rules.async2)),this.plugins.forEach(n=>n.decorators?.async2&&r.push(n.decorators.async2)),r}case"async3":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.async3&&r.push(n.preprocessors.async3)),this.plugins.forEach(n=>n.rules?.async3&&r.push(n.rules.async3)),this.plugins.forEach(n=>n.decorators?.async3&&r.push(n.decorators.async3)),r}case"arazzo1":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.arazzo1&&r.push(n.preprocessors.arazzo1)),this.plugins.forEach(n=>n.rules?.arazzo1&&r.push(n.rules.arazzo1)),this.plugins.forEach(n=>n.decorators?.arazzo1&&r.push(n.decorators.arazzo1)),r}case"arazzo1_1":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.arazzo1_1&&r.push(n.preprocessors.arazzo1_1)),this.plugins.forEach(n=>n.rules?.arazzo1_1&&r.push(n.rules.arazzo1_1)),this.plugins.forEach(n=>n.decorators?.arazzo1_1&&r.push(n.decorators.arazzo1_1)),r}case"overlay1":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.overlay1&&r.push(n.preprocessors.overlay1)),this.plugins.forEach(n=>n.rules?.overlay1&&r.push(n.rules.overlay1)),this.plugins.forEach(n=>n.decorators?.overlay1&&r.push(n.decorators.overlay1)),r}case"openrpc1":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.openrpc1&&r.push(n.preprocessors.openrpc1)),this.plugins.forEach(n=>n.rules?.openrpc1&&r.push(n.rules.openrpc1)),this.plugins.forEach(n=>n.decorators?.openrpc1&&r.push(n.decorators.openrpc1)),r}case"graphql":{let r=[];return this.plugins.forEach(n=>n.rules?.graphql&&r.push(n.rules.graphql)),r}}}skipRules(t){for(let r of t||[])for(let n of li)if(this.rules[n][r])this.rules[n][r]="off";else if(Array.isArray(this.rules[n].assertions))for(let o of this.rules[n].assertions)o.assertionId===r&&(o.severity="off")}skipPreprocessors(t){for(let r of t||[])for(let n of li)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(t){for(let r of t||[])for(let n of li)this.decorators[n][r]&&(this.decorators[n][r]="off")}};var hw={};var yw={};var gw={};function mp(e){return Array.isArray(e)&&e.length===0}function hp(e,t,r){let{parent:n,key:o}=t,i=!1;if(Array.isArray(e))for(let s=0;s<e.length;s++){if(L(e[s])){let a=t.resolve(e[s]);r(a.node)&&(e.splice(s,1),i=!0,s--)}r(e[s])&&(e.splice(s,1),i=!0,s--)}else if(O(e))for(let s of Object.keys(e)){if(L(e[s])){let a=t.resolve(e[s]);r(a.node)&&(delete e[s],i=!0)}r(e[s])&&(delete e[s],i=!0)}i&&(Ft(e)||mp(e))&&delete n[o]}function kn(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=bw(t),e=bw(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function bw(e){return Array.isArray(e)?e:[e]}var HH="any",yp=({property:e,value:t,matchStrategy:r,applyTo:n})=>{let o=r||HH;if(n!==void 0){if(n==="Operation"){let s=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(a,c){for(let l of s){let u=L(a[l])?c.resolve(a[l]).node:a[l];if(O(u)){let d=u[e];kn(d,t,o)||delete a[l]}}s.some(l=>a[l])||a.additionalOperations||delete c.parent[c.key]}}}}if(n==="PathItem")return{PathItem:{enter(s,a){let c=s[e];kn(c,t,o)||delete a.parent[a.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}let i=s=>s?.[e]&&!kn(s?.[e],t,o);return{any:{enter:(s,a)=>{hp(s,a,i)}}}};var KH="any",gp=({property:e,value:t,matchStrategy:r,applyTo:n})=>{let o=r||KH;if(n!==void 0){if(n==="Operation"){let s=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(a,c){for(let l of s){let u=L(a[l])?c.resolve(a[l]).node:a[l];if(O(u)){let d=u[e];kn(d,t,o)&&delete a[l]}}s.some(l=>a[l])||a.additionalOperations||delete c.parent[c.key]}}}}if(n==="PathItem")return{PathItem:{enter(s,a){let c=s[e];kn(c,t,o)&&delete a.parent[a.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}let i=s=>kn(s?.[e],t,o);return{any:{enter:(s,a)=>{hp(s,a,i)}}}};import*as bp from"node:fs";import*as vp from"node:path";function Qm(e){let t=bp.readFileSync(e,"utf-8");return io(t)}function cn(e,t){return se(e)||t===void 0?e:vp.resolve(vp.dirname(t),e)}function ki(e){return bp.readFileSync(e,"utf-8")}var Sp=({filePath:e})=>({Info:{leave(t,{report:r,location:n,config:o}){if(!e)throw new Error('Parameter "filePath" is not provided for "info-description-override" rule');try{t.description=ki(cn(e,o?.configPath))}catch(i){r({message:`Failed to read markdown override file for "info.description".
|
|
106
|
-
${i.message}`,location:n.child("description")})}}}});var xp=e=>({Info:{leave(t){if(!O(e))throw new Error('"info-override" decorator should be called with an object');let{severity:r,...n}=e;Object.assign(t,n)}}});var wp=({operationIds:e})=>({Operation:{leave(t,{report:r,location:n,config:o}){if(!t.operationId)return;if(!e)throw new Error('Parameter "operationIds" is not provided for "operation-description-override" rule');let i=t.operationId;if(e[i])try{let s=e[i];t.description=ki(cn(s,o?.configPath))}catch(s){r({message:`Failed to read markdown override file for operation "${i}".
|
|
107
|
-
${s.message}`,location:n.child("operationId").key()})}}}});var GH="x-internal",_p=({internalFlagProperty:e=GH})=>{function t(n,o,i){let{parent:s,key:a}=o,c=!1;if(Array.isArray(n))for(let p=0;p<n.length;p++){if(L(n[p])&&o.resolve(n[p]).node?.[e]){if(O(s.discriminator?.mapping))for(let u in s.discriminator.mapping)i?.[u]===n[p].$ref&&delete s.discriminator.mapping[u];n.splice(p,1),c=!0,p--}n[p]?.[e]&&(n.splice(p,1),c=!0,p--)}else if(O(n))for(let p of Object.keys(n)){if(L(n[p])){let l=o.resolve(n[p]);O(l.node)&&l.node?.[e]&&(delete n[p],c=!0)}O(n[p])&&n[p]?.[e]&&(delete n[p],c=!0)}c&&(Ft(n)||mp(n))&&delete s[a]}let r={};return{DiscriminatorMapping:{enter:n=>{r=JSON.parse(JSON.stringify(n))}},any:{enter:(n,o)=>{t(n,o,r)}}}};var Pp=({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 o=e[t.name];if(o)try{t.description=ki(cn(o,n?.configPath))}catch(i){r({message:`Failed to read markdown override file for tag "${t.name}".
|
|
108
|
-
${i.message}`})}}}});var WH=["definitions","parameters","responses","securityDefinitions"],Ep=()=>{let e=new Map;function t(o,i){let s=`${o}/${i}`;e.set(s,{usedIn:e.get(s)?.usedIn??[],componentType:o,name:i})}function r(o){if(!o.startsWith("#/"))return;let[i,s]=vn(o).pointer;if(!(!i||!s)&&WH.includes(i))return`${i}/${s}`}function n(o,i=new Set){let s=i.size;for(let[a,{usedIn:c,name:p,componentType:l}]of e)!c.some(d=>d!==a&&!i.has(d))&&l&&(i.add(a),delete o[l][p],e.delete(a),Ft(o[l])&&delete o[l]);return i.size>s?n(o,i):i.size}return{ref:{leave(o,{location:i,type:s,key:a}){if(["Schema","Parameter","Response","SecurityScheme"].includes(s.name)){let c=r(o.$ref);if(!c)return;let p=r(i.pointer)??i.pointer,l=e.get(c);l?l.usedIn.push(p):e.set(c,{usedIn:[p],name:a.toString()})}}},Root:{leave(o,i){let s=i.getVisitorData();s.removedCount=n(o)}},NamedSchemas:{Schema(o,{key:i}){o.allOf||t("definitions",i.toString())}},NamedParameters:{Parameter(o,{key:i}){t("parameters",i.toString())}},NamedResponses:{Response(o,{key:i}){t("responses",i.toString())}},NamedSecuritySchemes:{SecurityScheme(o,{key:i}){t("securityDefinitions",i.toString())}},SecurityRequirement(o){for(let i of Object.keys(o)){let s=`securityDefinitions/${i}`,a=e.get(s);a?a.usedIn.push("SecurityRequirement"):e.set(s,{usedIn:["SecurityRequirement"],name:i})}}}};var vw={"operation-description-override":wp,"tag-description-override":Pp,"info-description-override":Sp,"info-override":xp,"remove-x-internal":_p,"filter-in":yp,"filter-out":gp,"remove-unused-components":Ep};var xw=({operationIds:e})=>({Operation:{enter(t,r){let n=t.operationId;if(!n)return;let o=e[n];if(o){if(o.responses&&t.responses)for(let i of Object.keys(o.responses)){let s=Sw(t.responses[i],r.resolve);s&&(s.content=s.content?s.content:{},Object.keys(o.responses[i]).forEach(a=>{let c=o.responses[i][a];s.content[a]={...s.content[a],examples:Qm(cn(c,r.config?.configPath))}}),t.responses[i]=s)}if(o.request&&t.requestBody){let i=Sw(t.requestBody,r.resolve);if(!i)return;i.content=i.content?i.content:{},Object.keys(o.request).forEach(s=>{let a=o.request[s];i.content[s]={...i.content[s],examples:Qm(cn(a,r.config?.configPath))}}),t.requestBody=i}}}}});function Sw(e,t){if(!L(e))return e;let r=t(e);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}function ww(e,t){return t in e}function _w(e){if(!e.startsWith("#/components/"))return;let[t,r,n]=vn(e).pointer;if(!(!r||!n))return`${r}/${n}`}var $p=()=>{let e=new Map;function t(n,o,i=!1){let s=`${n}/${o}`;e.set(s,{usedIn:e.get(s)?.usedIn??[],componentType:n,name:o,referencesDiscriminator:i})}function r(n,o=new Set){let i=o.size;for(let[s,{usedIn:a,name:c,componentType:p,referencesDiscriminator:l}]of e)if(!(a.some(d=>d!==s&&!o.has(d))||l)&&p&&n.components&&ww(n.components,p)){o.add(s);let d=n.components[p];delete d[c],e.delete(s),Ft(d)&&delete n.components[p]}return o.size>i?r(n,o):o.size}return{ref:{leave(n,{location:o,type:i,key:s}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap","SecurityScheme"].includes(i.name)){let a=_w(n.$ref);if(!a)return;let c=_w(o.pointer)??o.pointer,p=e.get(a);p?p.usedIn.push(c):e.set(a,{usedIn:[c],name:s.toString()})}}},Root:{leave(n,o){let i=o.getVisitorData();i.removedCount=r(n),Ft(n.components)&&delete n.components}},NamedSchemas:{Schema(n,o){let i=n.allOf?.some(s=>L(s)&&o.resolve(s)?.node?.discriminator);t("schemas",o.key.toString(),i)}},NamedParameters:{Parameter(n,{key:o}){t("parameters",o.toString())}},NamedResponses:{Response(n,{key:o}){t("responses",o.toString())}},NamedExamples:{Example(n,{key:o}){t("examples",o.toString())}},NamedRequestBodies:{RequestBody(n,{key:o}){t("requestBodies",o.toString())}},NamedHeaders:{Header(n,{key:o}){t("headers",o.toString())}},NamedMediaTypes:{MediaTypesMap(n,{key:o}){t("mediaTypes",o.toString())}},NamedSecuritySchemes:{SecurityScheme(n,{key:o}){t("securitySchemes",o.toString())}},SecurityRequirement(n){for(let o of Object.keys(n)){let i=`securitySchemes/${o}`,s=e.get(i);s?s.usedIn.push("SecurityRequirement"):e.set(i,{usedIn:["SecurityRequirement"],name:o})}}}};var Pw={"operation-description-override":wp,"tag-description-override":Pp,"info-description-override":Sp,"info-override":xp,"remove-x-internal":_p,"filter-in":yp,"filter-out":gp,"media-type-examples-override":xw,"remove-unused-components":$p};var Ew={};var $w={};var Aw=()=>({SourceDescriptions:{enter(e,{report:t,location:r,specVersion:n}){if(!e.length)return;let o=n==="arazzo1"?["openapi","arazzo"]:["openapi","arazzo","asyncapi"];for(let i of e)o.includes(i?.type)||t({message:`The \`type\` property of the \`sourceDescription\` object must be either ${o.map(s=>`\`${s}\``).join(" or ")}.`,location:r.child([e.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/sourcedescription-type"})}}});var Jm={problems:"{{problems}}",assertionName:"{{assertionName}}",nodeType:"{{nodeType}}",key:"{{key}}",property:"{{property}}",file:"{{file}}",pointer:"{{pointer}}"};function Tw(e){let{filterInParentKeys:t,filterOutParentKeys:r,matchParentKeys:n}=e,o=n&&ao(n),i=o&&(c=>o.test(c.toString())),s=Array.isArray(t)&&(c=>t.includes(c.toString())),a=Array.isArray(r)&&(c=>!r.includes(c.toString()));return[i,s,a].filter(Ge)}function Ow(e){let t=Es(jr).filter(o=>e.assertions[o]!==void 0).map(o=>({name:o,conditions:e.assertions[o],runsOnKeys:dp.has(o),runsOnValues:fp.has(o)})),r=t.find(o=>o.runsOnKeys&&!o.runsOnValues),n=t.find(o=>o.runsOnValues&&!o.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 kw({subject:e}){return(Array.isArray(e.property)?e.property:[e?.property]).filter(Boolean)}function Iw(e,t,r){let n=kw(e),o=[];for(let i of t)if(n.length)for(let s of n)o.push(Rw({assert:i,ctx:r,assertionProperty:s}));else o.push(Rw({assert:i,ctx:r}));return o.flat()}function Cw(e,t){let r=Tw(e.subject),n=r.length?(c,p)=>!r.every(l=>l(p)):void 0,o={[e.subject.type]:{enter:t,...n&&{skip:n}}};if(!Array.isArray(e.where))return o;let i={},s=i,a=e.where;for(let c=0;c<a.length;c++){let p=a[c];if(!Me(p.subject?.type))throw new Error(`${e.assertionId} -> where -> [${c}]: 'type' (String) is required`);let l=Tw(p.subject),u=Ow(p),d=(m,h,y)=>!l.every(g=>g(h))||!!Iw(p,u,{...y,node:m}).length,f={...(l.length||u.length)&&{skip:d}};p.subject.type===e.subject.type&&c===a.length-1?o[e.subject.type]={enter:t,...f.skip&&{skip:f.skip}||n&&{skip:(m,h,y)=>!!(f.skip?.(m,h,y)||n?.(m,h))}}:i=i[p.subject?.type]=f}return i[e.subject.type]=o[e.subject.type],s}function qw(e,t){return(r,n)=>{let o=kw(t),i=`${Y.blue(e)} failed because the ${Y.blue(t.subject.type)} ${Y.blue(o.join(", "))} didn't meet the assertions: ${Jm.problems}`.replace(/ +/g," "),s=Iw(t,Ow(t),{...n,node:r});if(s.length)for(let a of YH(s)){let c=t.message||i,l={problems:Xm(a),assertionName:e,nodeType:t.subject.type,property:o.join(", "),key:String(n.key),pointer:n.location.pointer,file:Zm(n.location.source.absoluteRef)};n.report({message:eh(c,l),location:QH(a)||n.location,forceSeverity:t.severity||"error",suggest:t.suggest||[],...t.reference&&{reference:t.reference},ruleId:e})}}}function YH(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 QH(e){return e.length?e[0].location:void 0}function Xm(e){return e.length===1?e[0].message??"":e.map(t=>`
|
|
109
|
-
- ${t.message??""}`).join("")}function Zm(e){return se(e)?e.split("/").at(-1)||e:e.split(/[/\\]/).at(-1)||e}function eh(e,t){let r=e;for(let n of Object.keys(Jm)){let o=Jm[n],i=t[n];o&&(r=r.split(o).join(i))}return r}function Rw({assert:e,ctx:t,assertionProperty:r}){let n=e.name==="ref"?t.rawLocation:t.location;if(r){let o=L(t.node[r])?t.resolve(t.node[r])?.node:t.node[r],i=t.rawNode[r],s=n.child(r);return jr[e.name](o,e.conditions,{...t,baseLocation:s,rawValue:i})}else{let o=Array.isArray(t.node)?t.node:Object.keys(t.node);return jr[e.name](o,e.conditions,{...t,rawValue:t.rawNode,baseLocation:n})}}var _t=e=>{let t=[],r=Object.values(e).filter(n=>O(n));for(let[n,o]of r.entries()){if(!Me(o.subject.type))throw new Error(`${o.assertionId}: 'type' (String) is required`);let i=qw(o.assertionId,o),s=Cw(o,i);t.push(s)}return t};var Dr=()=>({Schema(e,{report:t,location:r}){if(!Array.isArray(e.enum))return;let n=new Set;for(let[o,i]of e.enum.entries())n.has(i)&&t({message:`Duplicated enum value found: '${i}'.`,location:r.child(["enum",o]),reference:"https://redocly.com/docs/cli/rules/common/no-duplicated-enum-values"}),n.add(i)}});var jw=Rr(Mw(),1);function Bt(e,t){return e.hasOwnProperty(t)?e[t]:void 0}var Po=(e,t,r)=>{if(L(e)){let n=t.resolve(e,r?.source.absoluteRef);return n?{schema:n.node,location:n.location,chain:n.chain}:{schema:void 0,location:r}}return{schema:e,location:r}},th=(e,t,r,n,o)=>!!(e.properties&&Bt(e.properties,t)!==void 0||e.allOf?.some(i=>pn(i,t,r,n,o))||so(e.anyOf)&&e.anyOf.every(i=>pn(i,t,r,new Set(n),o))||so(e.oneOf)&&e.oneOf.every(i=>pn(i,t,r,new Set(n),o))),pn=(e,t,r,n=new Set,o)=>{if(L(e)&&th(e,t,r,n,o))return!0;let{schema:i,location:s,chain:a}=Po(e,r,o);if(!i)return!1;if(!n.has(i)&&(n.add(i),th(i,t,r,n,s)))return!0;for(let c of a??[])if(!(!O(c.node)||n.has(c.node))&&(n.add(c.node),th(c.node,t,r,n,c.location)))return!0;return!1};function Ci(e){return Array.isArray(e)?"array":e===null?"null":Number.isInteger(e)?"integer":typeof e}function Ii(e){let t=e?.security;return Array.isArray(t)&&t.length>0}function Ap(e,t,r){if(Ii(e))return!0;if(!Array.isArray(e?.traits))return!1;for(let n of e.traits){let o=L(n)?t(n,r).node:n;if(Ii(o))return!0}return!1}function qi(e,t,r){if(r&&e===null)return!0;switch(t){case"array":return Array.isArray(e);case"object":return O(e);case"null":return e===null;case"integer":return Number.isInteger(e);default:return typeof e===t}}function Eo(e,t){return`${e} object should contain \`${t}\` field.`}function JH(e,t){return`${e} object should contain one of the fields: ${t.map(r=>`\`${r}\``).join(", ")}.`}function Dw(e,t){return`${e} object \`${t}\` must be non-empty string.`}function er({fieldName:e,value:t,ctx:r,reference:n}){O(t)&&(t[e]===void 0?r.report({message:Eo(r.type.name,e),location:r.location.child([e]).key(),reference:n}):t[e]||r.report({message:Dw(r.type.name,e),location:r.location.child([e]).key(),reference:n}))}function Lw({fieldNames:e,value:t,ctx:r,reference:n}){if(O(t)){e.some(o=>t.hasOwnProperty(o))||r.report({message:JH(r.type.name,e),location:r.location.key(),reference:n});for(let o of e)t.hasOwnProperty(o)&&!t[o]&&r.report({message:Dw(r.type.name,o),location:r.location.child([o]).key(),reference:n})}}function $o(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 o=(0,jw.default)(e,t[n]);o<4&&r.push({distance:o,variant:t[n]})}return r.sort((n,o)=>n.distance-o.distance),r.map(n=>n.variant)}function Tp(e){if(O(e)){if(Ut(e.dataValue))return{value:e.dataValue,field:"dataValue"};if(Ut(e.value))return{value:e.value,field:"value"}}}function In({example:e,schema:t,options:r,reference:n}){let{location:o,ctx:i,validator:s,allowAdditionalProperties:a,ajvContext:c}=r,{resolve:p,location:l,report:u,specVersion:d}=i;try{let{valid:f,errors:m}=s.validate(e,t,{schemaLoc:l.child("schema"),instancePath:o.pointer,resolve:p,allowAdditionalProperties:a,ajvContext:c,specVersion:d});if(!f)for(let h of m)u({message:`Example value must conform to the schema: ${h.message}.`,location:{...new zt(o.source,h.instancePath),reportOnKey:h.keyword==="unevaluatedProperties"||h.keyword==="additionalProperties"},from:l,suggest:h.suggest,reference:n})}catch(f){if(f.message==="discriminator: requires oneOf or anyOf composite keyword")return;u({message:`Example validation errored: ${f.message}.`,location:l.child("schema"),from:l,reference:n})}}var XH=10;function rh(e,t,r,n,{report:o,location:i},s){if(e&&!e.includes(t)){let a=e.length>XH?`\`${r}\` "${t}" is not a valid value.${s?` See the supported values: ${s}.`:""}`:`\`${r}\` can be one of the following only: ${e.map(c=>`"${c}"`).join(", ")}.`;o({location:i,message:a,from:n,suggest:$o(t,e)})}}function Ni({responseCodes:e,codeRange:t,report:r,reference:n}){let o=new RegExp(`^${t[0]}[0-9Xx]{2}$`);e.some(s=>t==="2XX"&&s==="default"||o.test(s))||r({message:`Operation must have at least one \`${t}\` response.`,location:{reportOnKey:!0},reference:n})}function da(e,t){return t?e.name.toLowerCase():e.name}var Lr=()=>({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(o=>!qi(o,e.type,e.nullable));for(let o of n)t({message:`All values of \`enum\` field must be of the same type as the \`type\` field: expected "${e.type}" but received "${Ci(o)}".`,location:r.child(["enum",e.enum.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}if(e.enum&&e.type&&Array.isArray(e.type)){let n={};for(let o of e.enum){n[o]=[];for(let i of e.type)qi(o,i,e.nullable)||n[o].push(i);n[o].length!==e.type.length&&delete n[o]}for(let o of Object.keys(n))t({message:`Enum value \`${o}\` must be of allowed types: \`${e.type}\`.`,location:r.child(["enum",e.enum.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}}}});var Cn=()=>({Schema(e,{report:t,location:r}){typeof e.maximum=="number"&&typeof e.exclusiveMaximum=="number"&&t({message:"Schema should not have both `maximum` and `exclusiveMaximum`. Use one or the other.",location:r.child(["exclusiveMaximum"]).key(),reference:"https://redocly.com/docs/cli/rules/common/no-mixed-number-range-constraints"}),typeof e.minimum=="number"&&typeof e.exclusiveMinimum=="number"&&t({message:"Schema should not have both `minimum` and `exclusiveMinimum`. Use one or the other.",location:r.child(["exclusiveMinimum"]).key(),reference:"https://redocly.com/docs/cli/rules/common/no-mixed-number-range-constraints"})}});var Ur=()=>{let e=[],t=new Set,r=(n,o,i)=>{if(so(n.required))for(let[s,a]of n.required.entries())pn(n,a,i,new Set,o)||i.report({message:`Required property '${a}' is not defined.`,location:o.child(["required",s]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})};return{ref:{leave(n,o,i){if(o.type.name!=="Schema")return;let s=[{node:n,location:o.location},...i.chain??[]];for(let{node:a,location:c}of s)!O(a)||t.has(a)||(t.add(a),r(a,c,o))}},Schema:{leave(n){e.pop()},enter(n,o){if(e.push(n),!so(n.required))return;let i=(c,p)=>{let l=u=>Po(u,o).schema===p;return!!(c.allOf?.some(l)||c.anyOf?.some(l)||c.oneOf?.some(l))},s=(c,p)=>{if(c<0)return;let l=e[c];return i(l,p)?s(c-1,l)??l:void 0},a=s(e.length-2,n);for(let[c,p]of n.required.entries())!pn(n,p,o)&&!pn(a,p,o)&&o.report({message:`Required property '${p}' is not defined.`,location:o.location.child(["required",c]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})}}}};var zr=()=>({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"),reference:"https://redocly.com/docs/cli/rules/common/no-schema-type-mismatch"}),e.type==="array"&&e.properties&&t({message:"Schema type mismatch: 'array' type should not contain 'properties' field.",location:r.child("properties"),reference:"https://redocly.com/docs/cli/rules/common/no-schema-type-mismatch"})}});var ZH=/\((\d+):(\d+)\)$/,Fr=class e extends Error{originalError;source;col;line;constructor(t,r){super(t.message.split(`
|
|
110
|
-
`)[0]),this.originalError=t,this.source=r,Object.setPrototypeOf(this,e.prototype);let[,n,o]=this.message.match(ZH)||[];this.line=parseInt(n,10),this.col=parseInt(o,10)}};var ot=()=>({ref:{leave(e,{report:t,location:r},n){n.node===void 0&&Ao(n,t,r)}},DiscriminatorMapping(e,{report:t,resolve:r,location:n}){for(let o of Object.keys(e)){let i=r({$ref:e[o]});if(i.node!==void 0)return;Ao(i,t,n.child(o))}}});function Ao(e,t,r){let n=e.error;n instanceof Fr&&t({message:"Failed to parse: "+n.message,location:{source:n.source,pointer:void 0,start:{col:n.col,line:n.line}}});let o=e.error?.message;t({location:r,message:`Can't resolve $ref${o?": "+o:""}`,reference:"https://redocly.com/docs/cli/rules/oas/no-unresolved-refs"})}var Vr=()=>({any(e,{report:t,location:r}){typeof e.description=="string"&&(/<script\b/i.test(e.description)&&t({message:"Markdown descriptions must not contain '<script>' tags.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}),/<[a-z][^>]*\bon[a-z]+\s*=/i.test(e.description)&&t({message:"Markdown descriptions must not contain HTML event handler attributes.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}),/(?:\]\(\s*|\b(?:href|src)\s*=\s*["']?\s*)javascript:/i.test(e.description)&&t({message:"Markdown descriptions must not contain 'javascript:' URLs.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}))}});var it=()=>({any(e,{report:t,type:r,location:n,rawLocation:o,key:i,resolve:s,ignoreNextVisitorsOnNode:a}){let c=Ci(e),p=o!==n?o:void 0;if(r.items){c!=="array"&&(t({message:`Expected type \`${r.name}\` (array) but got \`${c}\``,from:p}),a());return}else if(c!=="object"){r!==lr&&t({message:`Expected type \`${r.name}\` (object) but got \`${c}\``,from:p}),a();return}let l=typeof r.required=="function"?r.required(e,i):r.required;for(let f of l||[])e.hasOwnProperty(f)||t({message:`The field \`${f}\` must be present on this level.`,from:p,location:[{reportOnKey:!0}]});let u=r.allowed?.(e);if(u&&O(e))for(let f in e)u.includes(f)||r.extensionsPrefix&&f.startsWith(r.extensionsPrefix)||!Object.keys(r.properties).includes(f)||t({message:`The field \`${f}\` is not allowed here.`,from:p,location:n.child([f]).key()});let d=r.requiredOneOf||null;if(d){let f=!1;for(let m of d||[])e.hasOwnProperty(m)&&(f=!0);f||t({message:`Must contain at least one of the following fields: ${r.requiredOneOf?.join(", ")}.`,from:p,location:[{reportOnKey:!0}]})}for(let f of Object.keys(e)){let m=n.child([f]),h=e[f],y=Bt(r.properties,f);if(y===void 0&&(y=r.additionalProperties),typeof y=="function"&&(y=y(h,f)),ur(y))continue;let g=y,P=Ci(h);if(g===void 0){if(f.startsWith("x-"))continue;t({message:`Property \`${f}\` is not expected here.`,suggest:$o(f,Object.keys(r.properties)),from:p,location:m.key()});continue}if(g!==null){if(g.resolvable!==!1&&L(h)&&(h=s(h).node),g.items&&g.items?.enum&&Array.isArray(h))for(let b=0;b<h.length;b++)rh(g.items?.enum,h[b],f,p,{report:t,location:n.child([f,b])},g.items?.documentationLink);if(g.enum)rh(g.enum,h,f,p,{report:t,location:n.child([f])},g.documentationLink);else if(g.type&&!qi(h,g.type,!1))t({message:`Expected type \`${g.type}\` but got \`${P}\`.`,from:p,location:m}),a();else if(P==="array"&&g.items?.type){let b=g.items?.type;for(let x=0;x<h.length;x++){let S=h[x];qi(S,b,!1)||t({message:`Expected type \`${b}\` but got \`${Ci(S)}\`.`,from:p,location:m.child([x])})}}typeof g.minimum=="number"&&g.minimum>e[f]&&t({message:`The value of the ${f} field must be greater than or equal to ${g.minimum}`,from:p,location:n.child([f])})}}}});var Uw=()=>({CriterionObject:{enter(e,{report:t,location:r}){e.type&&(e.type==="xpath"||O(e.type)&&e.type.type==="xpath")&&t({message:"The `xpath` type criteria is not supported by Respect.",location:r.child(["type"]),reference:"https://redocly.com/docs/cli/rules/respect/no-criteria-xpath"})}}});var zw=()=>{function e(t,{report:r,location:n}){if(Array.isArray(t))for(let o of t){let i=Bt(o,"scheme"),s=Bt(o,"schemeName");i&&s&&r({message:"`x-security` item must not contain both `scheme` and `schemeName`.",location:n.child(["x-security",t.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/respect/no-x-security-both-scheme-and-scheme-name"})}}return{Workflow:{enter(t,r){e(t?.["x-security"],r)}},Step:{enter(t,r){e(t?.["x-security"],r)}}}};var Fw=()=>({Step:{enter(e,{report:t,location:r}){if(!e?.["x-operation"])return;let o=e?.["x-security"];if(o)for(let i of o)"schemeName"in i&&t({message:"The `schemeName` can be only used in Step with OpenAPI operation, please use `scheme` instead.",location:r.child(["x-security",o.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/respect/no-x-security-scheme-name-without-openapi"})}}});var Vw=()=>{let e=0;return{SourceDescriptions:{enter(t){e=Array.isArray(t)?t.length:0}},Workflow:{leave(t,{report:r,location:n}){let o=t?.["x-security"];if(!(!o||e<=1)){for(let i of o)if("schemeName"in i){let s=i.schemeName;typeof s=="string"&&s.startsWith("$sourceDescriptions.")||r({message:"When multiple `sourceDescriptions` exist, `workflow.x-security.schemeName` must be a reference to a source description (e.g. `$sourceDescriptions.{name}.{schemeName}`)",location:n.child(["x-security",o.indexOf(i),"schemeName"]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-name-reference"})}}}}}};var e9={apiKey:["apiKey"],basic:["username","password"],digest:["username","password"],bearer:["token"],oauth2:["accessToken"],openIdConnect:["accessToken"],mutualTLS:[]};function Bw(e,{report:t,location:r}){if(e)for(let n of e){if("schemeName"in n)continue;let{scheme:o,values:i}=n,s=o?.type==="http"?o.scheme:o?.type;if(s==="mutualTLS"){Q.warn("Please use CLI option to provide mutualTLS certificates for mutualTls authentication security schema.");continue}let a=e9[s];if(a)for(let c of a)(!i||!(c in i))&&t({message:`The \`${c}\` is required when using the ${s} authentication security schema.`,location:r.child(["x-security",e.indexOf(n)]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-required-values"});else t({message:`The \`${s}\` authentication security schema is not supported.`,location:r.child(["x-security",e.indexOf(n)]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-required-values"})}}var Hw=()=>({Step:{enter(e,t){Bw(e?.["x-security"],t)}},Workflow:{enter(e,t){Bw(e?.["x-security"],t)}}});var Kw=()=>({FailureActionObject:{enter(e,{report:t,location:r}){let n=e?.criteria;if(!Array.isArray(n))return;let o=new Set;for(let i of n){let s=JSON.stringify(i);o.has(s)?t({message:"The FailureAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):o.add(s)}}},SuccessActionObject:{enter(e,{report:t,location:r}){let n=e?.criteria;if(!Array.isArray(n))return;let o=new Set;for(let i of n){let s=JSON.stringify(i);o.has(s)?t({message:"The SuccessAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):o.add(s)}}},Step:{enter(e,{report:t,location:r}){let n=e?.successCriteria;if(!Array.isArray(n))return;let o=new Set;for(let i of n){let s=JSON.stringify(i);o.has(s)?t({message:"The Step SuccessCriteria items must be unique.",location:r.child(["successCriteria",n.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):o.add(s)}}}});var Gw=()=>{let e=new Map,t=new Map,r=[];function n({value:s,report:a,location:c,path:p,definedWorkflowOutputs:l}){let u=/\$workflows\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g,d;for(;(d=u.exec(s))!==null;){let[f,m,h]=d,y=l.get(m);y?y.includes(h)||a({message:`Output key "${h}" is not defined in workflow "${m}". Available outputs: [ ${y.join(", ")} ].`,location:c.child(p)}):a({message:`Workflow "${m}" referenced in runtime expression "${f}" is not defined or has no outputs.`,location:c.child(p)})}}function o({value:s,report:a,location:c,path:p,definedStepOutputs:l}){let u=/\$steps\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g,d;for(;(d=u.exec(s))!==null;){let[f,m,h]=d,y=l.get(m);y?y.includes(h)||a({message:`Output key "${h}" is not defined in step "${m}". Available outputs: [ ${y.join(", ")} ].`,location:c.child(p)}):a({message:`Step "${m}" referenced in runtime expression "${f}" is not defined or has no outputs.`,location:c.child(p)})}}function i(s,a,c=[]){if(typeof s=="string")n({value:s,report:a.report,location:a.location,path:c,definedWorkflowOutputs:e}),o({value:s,report:a.report,location:a.location,path:c,definedStepOutputs:t});else if(O(s)||Array.isArray(s))for(let[p,l]of Object.entries(s))i(l,a,[...c,p])}return{Step:{enter(s,{report:a,location:c}){s.outputs&&t.set(s.stepId,Object.keys(s.outputs))}},Workflow:{enter(s,{report:a,location:c}){s.outputs&&e.set(s.workflowId,Object.keys(s.outputs))}},Parameters:{enter(s,a){r.push(()=>{i(s,a)})}},RequestBody:{enter(s,a){r.push(()=>{i(s,a)})}},CriterionObject:{enter(s,a){r.push(()=>{i(s.condition,a)})}},Outputs:{enter(s,a){r.push(()=>{i(s,a)})}},ExtendedSecurity:{enter(s,a){r.push(()=>{i(s,a)})}},ExtendedOperation:{enter(s,a){r.push(()=>{i(s,a)})}},Root:{leave(){for(let s of r)s()}}}};var Ww=()=>({Parameters:{enter(e,{report:t,location:r}){if(!e)return;let n=new Set;for(let o of e)n.has(o?.name)&&t({message:"The parameter `name` must be unique amongst listed parameters.",location:r.child([e.indexOf(o)])}),n.has(o?.reference)&&t({message:"The parameter `reference` must be unique amongst listed parameters.",location:r.child([e.indexOf(o)])}),n.add(o?.name??o?.reference)}}});var Yw=()=>{let e=new Set;return{Step:{leave(){e.clear()},RequestBody:{enter(t,{report:r,location:n}){if(t.replacements)for(let o of t.replacements)e.has(o.target)&&r({message:"Every `replacement` in `requestBody` must be unique.",location:n.child(["replacements",t.replacements.indexOf(o),"target"]),reference:"https://redocly.com/docs/cli/rules/arazzo/requestbody-replacements-unique"}),e.add(o.target)}}}}};var Qw=()=>{let e=new Set;return{SourceDescriptions:{enter(t,{report:r,location:n}){if(t.length)for(let o of t)e.has(o.name)&&r({message:"The `name` must be unique amongst all SourceDescriptions.",location:n.child([t.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/sourcedescription-name-unique"}),e.add(o.name)}}}};var Jw=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){e?.length||t({message:"The `sourceDescriptions` list must have at least one entry.",location:r})}}});var t9=["x-operation","operationId","operationPath","channelPath","workflowId"],Xw=()=>({Step:{enter(e,{report:t,location:r}){let n=t9.filter(o=>Object.hasOwn(e,o));n.length>1&&t({message:`A step can only use one of the following mutually exclusive fields: ${n.map(o=>`\`${o}\``).join(", ")}.`,location:n.map(o=>r.child([o]).key()),reference:"https://redocly.com/docs/cli/rules/arazzo/spec-step-mutually-exclusive-fields"})}}});var Zw=()=>({OnFailureActionList:{enter(e,{report:t,location:r}){if(!e)return;let n=new Set;for(let o of e)n.has(o?.name)&&t({message:"The action `name` must be unique amongst listed `onFailure` actions.",location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onfailure-unique"}),n.has(o?.reference)&&t({message:"The action `reference` must be unique amongst listed `onFailure` actions.",location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onfailure-unique"}),n.add(o.name??o.reference)}}});var e_=()=>({OnSuccessActionList:{enter(e,{report:t,location:r}){if(!e)return;let n=new Set;for(let o of e)n.has(o?.name)&&t({message:"The action `name` must be unique amongst listed `onSuccess` actions.",location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onsuccess-unique"}),n.has(o?.reference)&&t({message:"The action `reference` must be unique amongst listed `onSuccess` actions.",location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onsuccess-unique"}),n.add(o?.name??o?.reference)}}});var t_=()=>({Workflow:{enter(e,{report:t,location:r}){if(!e.steps)return;let n=new Set;for(let o of e.steps){if(!o.stepId)return;n.has(o.stepId)&&t({message:"The `stepId` must be unique amongst all steps described in the workflow.",location:r.child(["steps",e.steps.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/stepid-unique"}),n.add(o.stepId)}}}});var r_=()=>{let e=new Set,t=new Set,r=new Set;return{SourceDescriptions:{enter(n){for(let o of n)t.add(o.name)}},Workflows:{enter(n){for(let o of n)r.add(o.workflowId)}},Workflow:{leave(n,{report:o,location:i}){if(n.dependsOn)for(let s of n.dependsOn){if(s.startsWith("$sourceDescriptions.")){let a=s.split(".")[1];t.has(a)||o({message:`SourceDescription ${a} must be defined in sourceDescriptions.`,location:i.child(["dependsOn",n.dependsOn.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"})}!s.startsWith("$sourceDescriptions")&&!r.has(s)&&o({message:`Workflow ${s} must be defined in workflows.`,location:i.child(["dependsOn",n.dependsOn.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),e.has(s)&&o({message:"Every workflow in dependsOn must be unique.",location:i.child(["dependsOn"]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),e.add(s)}}}}};var n_=()=>{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]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflowid-unique"}),e.add(t.workflowId))}}}};var o_={assertions:_t,"criteria-unique":Kw,"no-criteria-xpath":Uw,"no-duplicated-enum-values":Dr,"no-unsafe-markdown":Vr,"no-enum-type-mismatch":Lr,"no-mixed-number-range-constraints":Cn,"no-required-schema-properties-undefined":Ur,"no-schema-type-mismatch":zr,"no-unresolved-refs":ot,"no-x-security-both-scheme-and-scheme-name":zw,"no-x-security-scheme-name-without-openapi":Fw,"outputs-defined":Gw,"parameters-unique":Ww,"requestBody-replacements-unique":Yw,"sourceDescription-name-unique":Qw,"sourceDescription-type":Aw,"sourceDescriptions-not-empty":Jw,"spec-step-mutually-exclusive-fields":Xw,"step-onFailure-unique":Zw,"step-onSuccess-unique":e_,"stepId-unique":t_,struct:it,"workflow-dependsOn":r_,"workflowId-unique":n_,"x-security-scheme-name-reference":Vw,"x-security-scheme-required-values":Hw},i_={};var tr=()=>({Info(e,{report:t,location:r}){e.contact||t({message:Eo("Info","contact"),location:r.child("contact").key(),reference:"https://redocly.com/docs/cli/rules/oas/info-contact"})}});var s_=/^1\.0\.\d+(-.+)?$/;function fa(e){return e.startsWith("oas3")?"oas3":e==="oas2"?"oas2":e==="async2"?"async2":e==="async3"?"async3":e==="arazzo1"||e==="arazzo1_1"?"arazzo1":e==="overlay1"?"overlay1":e==="openrpc1"?"openrpc1":e==="graphql"?"graphql":"oas3"}function ln(e){if(!O(e))throw new Error(`Document must be JSON object, got ${typeof e}`);if(typeof e.openrpc=="string"&&e.openrpc.startsWith("1."))return"openrpc1";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"&&e.arazzo.startsWith("1.0."))return"arazzo1";if(typeof e.arazzo=="string"&&e.arazzo.startsWith("1.1."))return"arazzo1_1";if(e.arazzo)throw new Error(`Unsupported Arazzo version: ${e.arazzo}`);if(typeof e.overlay=="string"&&s_.test(e.overlay))return"overlay1";throw new Error("Unsupported specification")}var qn=()=>{let e;return{Root:{enter(t){e=ln(t)},License:{leave(t,r){e==="oas3_1"||e==="oas3_2"?Lw({fieldNames:["url","identifier"],value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"}):er({fieldName:"url",value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"})}}}}};var Nn=({ignoreCase:e=!1})=>{let t=new Set;return{Tag:{leave(r,n){let o=da(r,e);t.has(o)?n.report({message:`Duplicate tag name found: '${r.name}'.`,location:n.location}):t.add(o)}}}};var Mn=()=>({Root:{PathItem:{Operation(e,t){er({fieldName:"operationId",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId"})}}}});function r9(e,t,r){if("flows"in e&&e.flows){let{node:n,location:o}=L(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},i=(o??r).source.absoluteRef,s=Object.values(n??{}).flatMap(a=>{let c=L(a)?t(a,i).node:a;return Object.keys(c?.scopes||{})});return[...new Set(s)]}return Object.keys(e.scopes||{})}var Mi=e=>{let t=new Map,r=[];return{Root:{leave(n,{report:o}){for(let{schemeName:i,scopes:s,location:a}of r){let c=t.get(i);if(c?.type==="oauth2"){if(e.requireScopes&&s.length===0){o({message:`The "${i}" security requirement must list at least one scope.`,location:a.key(),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"});continue}for(let p=0;p<s.length;p++){let l=s[p];c.definedScopes.includes(l)||o({message:`The "${l}" scope is not defined in the "${i}" security scheme.`,location:a.child([p]),suggest:$o(l,c.definedScopes),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}},SecurityScheme(n,{key:o,resolve:i,location:s}){t.set(o.toString(),{type:n.type,definedScopes:n.type==="oauth2"?r9(n,i,s):[]})},SecurityRequirement(n,{location:o}){for(let[i,s]of Object.entries(n))r.push({schemeName:i,scopes:s||[],location:o.child([i])})}}};var jn=()=>({Tag(e,t){er({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/tag-description"})}});var Dn=({ignoreCase:e=!1})=>({Root(t,{report:r,location:n}){if(t.tags)for(let o=0;o<t.tags.length-1;o++)da(t.tags[o],e)>da(t.tags[o+1],e)&&r({message:"The `tags` array should be in alphabetical order.",location:n.child(["tags",o]),reference:"https://redocly.com/docs/cli/rules/oas/tags-alphabetical"})}});var a_=()=>({Channel(e,{report:t,key:r}){r.split(/[/.:]/).filter(o=>o!=="").every(o=>/^{.+}$/.test(o)||/^[a-z0-9-.]+$/.test(o))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/async/channels-kebab-case"})}});var c_=()=>({Channel(e,{report:t,key:r,location:n}){r.endsWith("/")&&r!=="/"&&t({message:`\`${r}\` should not have a trailing slash.`,location:n.key(),reference:"https://redocly.com/docs/cli/rules/async/no-channel-trailing-slash"})}});var p_="https://redocly.com/docs/cli/rules/async/security-defined",l_=()=>{let e=new Map,t=new Map,r=[],n,o=!1;return{Root:{leave(i,{report:s}){for(let[c,p]of e.entries())if(!p.defined)for(let l of p.from)s({message:`There is no \`${c}\` security scheme defined.`,location:l.key(),reference:p_});let a=[...t.keys()];for(let{location:c,channelServers:p}of r){let l=p??a;l.length>0&&l.every(d=>t.get(d))||s({message:"Every operation should have security defined on it.",location:c.key(),reference:p_})}}},SecurityScheme(i,{key:s}){i!=null&&e.set(s.toString(),{defined:!0,from:[]})},SecurityRequirement(i,{location:s}){for(let a of Object.keys(i)){let c=e.get(a),p=s.child([a]);c?c.from.push(p):e.set(a,{from:[p]})}},Components:{enter(){o=!0},leave(){o=!1}},Server(i,{key:s}){o||t.set(s.toString(),Ii(i))},Channel:{skip(){return o},enter(i){n=Array.isArray(i?.servers)&&i.servers.length>0?i.servers:void 0},Operation(i,{location:s,resolve:a}){Ap(i,a)||r.push({location:s,channelServers:n})}}}};var u_={struct:it,"no-unresolved-refs":ot,assertions:_t,"info-contact":tr,"info-license-strict":qn,"operation-operationId":Mn,"security-defined":l_,"channels-kebab-case":a_,"no-channel-trailing-slash":c_,"tag-description":jn,"tags-alphabetical":Dn,"no-duplicated-enum-values":Dr,"no-unsafe-markdown":Vr,"no-duplicated-tag-names":Nn,"no-required-schema-properties-undefined":Ur,"no-enum-type-mismatch":Lr,"no-mixed-number-range-constraints":Cn,"no-schema-type-mismatch":zr,"security-scopes-defined":Mi},d_={};var f_=()=>({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},reference:"https://redocly.com/docs/cli/rules/async/channels-kebab-case"})}});var m_=()=>({Channel(e,{report:t,location:r}){e?.address?.endsWith("/")&&e?.address!=="/"&&t({message:`\`${e.address}\` should not have a trailing slash.`,location:r.key(),reference:"https://redocly.com/docs/cli/rules/async/no-channel-trailing-slash"})}});var h_="#/components/securitySchemes/",n9="#/components/",nh="https://redocly.com/docs/cli/rules/async/security-defined";function o9(e){let t=e.indexOf("#");return t===-1?e:e.slice(t)}function i9(e){if(!e.startsWith(h_))return!1;let t=e.slice(h_.length);return t!==""&&!t.includes("/")}var y_=()=>{let e=[],t,r,n,o,i,s=(a,c,p)=>{let l=a.channel,u=L(l)?c(l,p):void 0,f=(L(l)?u?.node:l)?.servers,m,h;return f&&f.length>0?(m=f,h=u?.location?.source.absoluteRef??p):(m=t?Object.values(t):[],h=r),m.length===0?!1:m.every(y=>{let g=L(y)?c(y,h).node:y;return Ii(g)})};return{Root:{enter(a,{location:c,resolve:p}){let l=a?.servers;if(L(l)){let d=p(l);t=d.node??void 0,r=d.location?.source.absoluteRef}else t=l,r=void 0;let u=a?.operations;if(L(u)){let d=p(u);n=d.node??void 0,o=d.location?.source.absoluteRef,i=d.location}else n=u,o=void 0,i=c.child(["operations"])},leave(a,{report:c,resolve:p}){for(let l of e){if((l.local||l.refPointer.startsWith(n9))&&!i9(l.refPointer)){c({message:"Security scheme `$ref` must point to `#/components/securitySchemes`.",location:l.location.key(),reference:nh});continue}l.resolved||c({message:`There is no \`${l.name}\` security scheme defined.`,location:l.location.key(),reference:nh})}if(n&&i){let l=i;for(let[u,d]of Object.entries(n)){let f,m;if(L(d)){let h=p(d,o);f=h.node,m=h.location?.source.absoluteRef}else f=d,m=o;f&&(Ap(f,p,m)||s(f,p,m)||c({message:"Every operation should have security defined on it.",location:l.child([u]).key(),reference:nh}))}}}},SecuritySchemeList:{enter(a,{location:c,resolve:p}){if(a)for(let l=0;l<a.length;l++){let u=a[l];if(!L(u))continue;let d=c.child([l]),f=p(u),m=o9(u.$ref),h=m.split("/").pop()??u.$ref;e.push({location:d,name:h,refPointer:m,resolved:f.node!=null,local:u.$ref.startsWith("#")})}}}}};function s9(e,t,r){if(!e.flows)return[];let{node:n,location:o}=L(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},i=(o??r).source.absoluteRef,s=Object.values(n??{}).flatMap(a=>{let c=L(a)?t(a,i).node:a;return Object.keys(c?.availableScopes||{})});return[...new Set(s)]}var g_=e=>{let t=new Map;return{SecuritySchemeList(r,{resolve:n,location:o}){for(let i=0;i<r.length;i++){let s=r[i],a=L(s)?n(s):{node:s,location:o.child([i])};!a.node||!a.location||t.set(a.location.absolutePointer,{scheme:a.node,location:a.location,availableScopes:a.node.type==="oauth2"?s9(a.node,n,a.location):[]})}},Root:{leave(r,{report:n}){for(let{scheme:o,location:i,availableScopes:s}of t.values()){if(o.type!=="oauth2")continue;if(e.requireScopes&&!o.scopes?.length){n({message:"The security scheme must list at least one scope.",location:i.key(),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"});continue}let a=o.scopes||[];for(let c=0;c<a.length;c++){let p=a[c];s.includes(p)||n({message:`The "${p}" scope is not defined in the available scopes of the security scheme flows.`,location:i.child(["scopes",c]),suggest:$o(p,s),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}}};var b_={struct:it,"no-unresolved-refs":ot,assertions:_t,"info-contact":tr,"info-license-strict":qn,"operation-operationId":Mn,"security-defined":y_,"channels-kebab-case":f_,"no-channel-trailing-slash":m_,"tag-description":jn,"tags-alphabetical":Dn,"no-duplicated-enum-values":Dr,"no-unsafe-markdown":Vr,"no-duplicated-tag-names":Nn,"no-required-schema-properties-undefined":Ur,"no-enum-type-mismatch":Lr,"no-mixed-number-range-constraints":Cn,"no-schema-type-mismatch":zr,"security-scopes-defined":g_},v_={};function x_(e){return Es(jr).filter(t=>e.assertions[t]!==void 0).map(t=>({name:t,conditions:e.assertions[t],runsOnKeys:dp.has(t),runsOnValues:fp.has(t)}))}var w_=e=>{let t=Object.values(e).filter(O),r=[];for(let n of t){if(n.severity==="off")continue;let o=n.subject?.type;if(!o)continue;let i=x_(n),s=a9(n);r.push({[o]:(a,c)=>{c9(a,c,s)&&p9(a,c,n,i)}})}return r};function a9(e){return Array.isArray(e.where)?e.where.map((t,r)=>{if(!Me(t.subject?.type))throw new Error(`${e.assertionId} -> where -> [${r}]: 'type' (String) is required`);return{kind:t.subject.type,definition:t,assertsToApply:x_(t)}}):[]}function c9(e,t,r){let n=r,o=r.at(-1);if(o&&o.kind===e.kind){if(!S_(e,o,t))return!1;n=r.slice(0,-1)}let i=0;for(let s of n){let a=!1;for(;i<t.ancestors.length;){let c=t.ancestors[i++];if(c.kind===s.kind&&S_(c,s,t)){a=!0;break}}if(!a)return!1}return!0}function S_(e,t,r){let{value:n}=__(e,t.definition.subject.property),o=new zt(r.source,"#/");return t.assertsToApply.every(i=>jr[i.name](n,i.conditions,{baseLocation:o,rawValue:n}).length===0)}function p9(e,t,r,n){let o=P_(r.subject.property),{value:i,locNode:s}=__(e,r.subject.property),a=new zt(t.source,"#/"),c=n.flatMap(l=>jr[l.name](i,l.conditions,{baseLocation:a,rawValue:i}));if(!c.length)return;let p=`${Y.blue(r.assertionId)} failed because the ${Y.blue(r.subject.type)} ${Y.blue(o??"")} didn't meet the assertions: {{problems}}`.replace(/ +/g," ");t.report({message:eh(r.message??p,{problems:Xm(c),assertionName:r.assertionId,nodeType:r.subject.type,property:o??"",key:"",pointer:"",file:Zm(t.source.absoluteRef)}),node:s,suggest:r.suggest,ruleId:r.assertionId,severity:r.severity})}function oh(e){return e?.name?.value!==void 0?{value:e.name.value,locNode:e.name}:e?.value!==void 0?{value:e.value,locNode:e}:{value:e,locNode:e}}function __(e,t){let r=P_(t);if(r===void 0)return oh(e);let n=e[r];if(Array.isArray(n))return{value:n.map(i=>oh(i).value),locNode:e};let o=oh(n);return{value:o.value,locNode:l9(o.locNode)?o.locNode:e}}function l9(e){return O(e)&&"kind"in e}function P_(e){return Array.isArray(e)?e[0]:e}var u9=["Query","Mutation","Subscription"];function d9(e){let t=e;for(;t.kind==="ListType"||t.kind==="NonNullType";)t=t.type;return t.name.value}var E_=()=>{let e=new Map,t=new Set,r=new Set,n=!1,o=l=>t.add(d9(l)),i=l=>e.set(l.name.value,l.name),s=l=>{for(let u of l.interfaces??[])o(u);for(let u of l.fields??[]){o(u.type);for(let d of u.arguments??[])o(d.type)}},a=l=>{for(let u of l.types??[])o(u)},c=l=>{for(let u of l.fields??[])o(u.type)},p=l=>{for(let u of l.operationTypes??[])r.add(u.type.name.value)};return{SchemaDefinition:l=>{n=!0,p(l)},SchemaExtension:p,DirectiveDefinition:l=>{for(let u of l.arguments??[])o(u.type)},ObjectTypeDefinition:l=>{i(l),s(l)},ObjectTypeExtension:s,InterfaceTypeDefinition:l=>{i(l),s(l)},InterfaceTypeExtension:s,UnionTypeDefinition:l=>{i(l),a(l)},UnionTypeExtension:a,InputObjectTypeDefinition:l=>{i(l),c(l)},InputObjectTypeExtension:c,EnumTypeDefinition:i,ScalarTypeDefinition:i,Document:{leave:(l,u)=>{if(!n)for(let d of u9)e.has(d)&&r.add(d);if(r.size!==0)for(let[d,f]of e)t.has(d)||r.has(d)||u.report({message:`Type \`${d}\` is declared but never used.`,node:f})}}}};var ji=Rr(uR(),1),$_=()=>({Document:{enter:(e,t)=>{let r;try{r=(0,ji.buildASTSchema)(e,{assumeValidSDL:!1})}catch(n){f9(n,t);return}for(let n of(0,ji.validateSchema)(r))A_(n,t)}}});function f9(e,t){if(e instanceof ji.GraphQLError)A_(e,t);else if(e instanceof Error)t.report({message:e.message});else throw e}function A_(e,t){let r=e.locations?.[0];t.report({message:e.message,node:e.nodes?.[0],loc:r?{start:{line:r.line,col:r.column}}:void 0})}var T_=()=>{let e=(t,r)=>{(!t.description||t.description.value.trim()==="")&&r.report({message:`Type \`${t.name.value}\` should have a non-empty description.`,node:t.name})};return{ObjectTypeDefinition:e,InterfaceTypeDefinition:e,EnumTypeDefinition:e,InputObjectTypeDefinition:e,UnionTypeDefinition:e,ScalarTypeDefinition:e}};var R_={struct:$_,assertions:w_,"no-unused-types":E_,"type-description":T_};var Di=()=>({Info(e,{report:t}){e.license||t({message:Eo("Info","license"),location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/info-license"})}});var Rp=()=>({Paths(e,{report:t,location:r}){let n=[];for(let o of Object.keys(e)){let i=n.find(s=>m9(s,o));i&&t({message:`Paths should resolve unambiguously. Found two ambiguous paths: \`${i}\` and \`${o}\`.`,location:r.child([o]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-ambiguous-paths"}),n.push(o)}}});function m9(e,t){let r=e.split("/"),n=t.split("/");if(r.length!==n.length)return!1;let o=0,i=0,s=!0;for(let a=0;a<r.length;a++){let c=r[a].match(/^{.+?}$/),p=n[a].match(/^{.+?}$/);if(c||p){c&&o++,p&&i++;continue}else r[a]!==n[a]&&(s=!1)}return s&&o===i}function Op(e){return e.startsWith("{")&&e.endsWith("}")}function O_(e){let t=e.split(/(?:[-._])|([A-Z][a-z]+)/).filter(Ge).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 h9=["get","head","post","put","patch","delete","options","trace"],kp=({splitIntoWords:e,excludedPaths:t})=>({PathItem(r,{key:n,report:o,location:i}){let s=n.toString();if(!s.startsWith("/")||t?.some(c=>s===c))return;let a=s.split("/");for(let c of a){if(!c||Op(c))continue;let p=l=>e?O_(c).has(l):c.toLocaleLowerCase().includes(l);for(let l of h9)p(l)&&o({message:`path \`${s}\` should not contain http verb ${l}`,location:i.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-http-verbs-in-paths"})}}});var Ip=()=>({Paths(e,{report:t,location:r}){let n=new Map;for(let o of Object.keys(e)){let i=o.replace(/{.+?}/g,"{VARIABLE}"),s=n.get(i);s?t({message:`The path already exists which differs only by path parameter name(s): \`${s}\` and \`${o}\`.`,location:r.child([o]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-identical-paths"}):n.set(i,o)}}});var u$=Rr(Wm(),1),d$=Rr(D_(),1),f$=Rr(p$(),1);function l$(e){return e==="draft4"?"id":"$id"}function QW(e){return e==="oas2"||e==="oas3_0"?"draft4":"2020"}var Gn=class{instances={};validate(t,r,n){let{schemaLoc:o,instancePath:i,resolve:s,allowAdditionalProperties:a,ajvContext:c,specVersion:p}=n,l=QW(p),u=this.getValidator(r,o,s,a,l);if(!u)return{valid:!0,errors:[]};let d={instancePath:i,parentData:{fake:{}},parentDataProperty:"fake",rootData:{},dynamicAnchors:{}};return{valid:!!u.call(c??{},t,d),errors:(u.errors||[]).map(m)};function m(h){let y=h.message,g=h.keyword==="enum"?h.params.allowedValues:void 0;g&&(y+=` ${g.map(x=>`"${x}"`).join(", ")}`),h.keyword==="type"&&(y=`type ${y}`);let P=h.instancePath.substring(i.length+1),b=P.substring(P.lastIndexOf("/")+1);if(b&&(y=`\`${b}\` property ${y}`),h.keyword==="additionalProperties"||h.keyword==="unevaluatedProperties"){let x=h.params.additionalProperty||h.params.unevaluatedProperty;y=`${y} \`${x}\``,h.instancePath+="/"+Or(x)}return{...h,message:y,suggest:g}}}getAjv(t,r){if(!this.instances[r]){let n=l$(r),o={schemaId:n,meta:!0,allErrors:!0,strictSchema:!1,inlineRefs:!1,validateSchema:!1,discriminator:!0,allowUnionTypes:!0,validateFormats:!0,passContext:!0,logger:!1,loadSchemaSync(i,s,a){let c=decodeURI(i.split("#")[0]),p=t({$ref:s},c);return!p||!p.location?!1:{[n]:encodeURI(p.location.source.absoluteRef)+"#"+a,...p.node}}};this.instances[r]=r==="2020"?new u$.default(o):new d$.default(o),(0,f$.default)(this.instances[r])}return this.instances[r]}getValidator(t,r,n,o,i){let s=this.getAjv(n,i),a=encodeURI(r.absolutePointer),c=l$(i);return s.getSchema(a)||(s.setDefaultUnevaluatedProperties(o),s.addSchema({[c]:a,...t},a)),s.getSchema(a)}};var ul=e=>{let t=new Gn;return{Parameter:{leave(r,n){if(Ut(r.example)&&In({example:r.example,schema:r.schema,options:{location:n.location.child("example"),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:{apiContext:"request"}},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-parameter-examples"}),O(r.examples))for(let[o,i]of Object.entries(r.examples)){let s=Tp(i);s&&In({example:s.value,schema:r.schema,options:{location:n.location.child(["examples",o,s.field]),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:{apiContext:"request"}},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-parameter-examples"})}}}}};var dl=e=>{let t=new Gn;return{Schema:{leave(r,n){let o=r.examples;if(Array.isArray(o))for(let i of o)In({example:i,schema:r,options:{location:n.location.child(["examples",o.indexOf(i)]),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-schema-examples"});if(Ut(r.example)){if(r.nullable===!0&&r.example===null&&r.type!==void 0)return;In({example:r.example,schema:r,options:{location:n.location.child("example"),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-schema-examples"})}}}}};var fl=()=>({PathItem(e,{report:t,key:r,rawLocation:n}){r.endsWith("/")&&r!=="/"&&t({message:`\`${r}\` should not have a trailing slash.`,location:n.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-path-trailing-slash"})}});var ml=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){let n=Object.keys(t||{});Ni({responseCodes:n,codeRange:"2XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response"})}},WebhooksMap:{Responses(t,{report:r}){if(!e)return;let n=Object.keys(t||{});Ni({responseCodes:n,codeRange:"2XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response"})}}});var hl=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){let n=Object.keys(t||{});Ni({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}},WebhooksMap:{Responses(t,{report:r}){if(!e)return;let n=Object.keys(t||{});Ni({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}}});var yl=()=>({Operation(e,t){er({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-description"})}});var gl=()=>{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]),reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId-unique"}),e.add(t.operationId))}}};var JW=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/,bl=()=>({Operation(e,{report:t,location:r}){e.operationId&&!JW.test(e.operationId)&&t({message:"Operation `operationId` should not have URL invalid characters.",location:r.child(["operationId"]),reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId-url-safe"})}});var vl=()=>{let e,t;return{PathItem:{enter(){e=new Set},Parameter(r,{report:n,key:o,parentLocations:i}){let s=`${r.in}___${r.name}`;e.has(s)&&n({message:`Paths must have unique \`name\` + \`in\` parameters.
|
|
111
|
-
Repeats of \`in:${r.in}\` + \`name:${r.name}\`.`,location:i.PathItem.child(["parameters",o]),reference:"https://redocly.com/docs/cli/rules/oas/operation-parameters-unique"}),e.add(`${r.in}___${r.name}`)},Operation:{enter(){t=new Set},Parameter(r,{report:n,key:o,parentLocations:i}){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:i.Operation.child(["parameters",o]),reference:"https://redocly.com/docs/cli/rules/oas/operation-parameters-unique"}),t.add(s)}}}}};var Sl=()=>({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(),reference:"https://redocly.com/docs/cli/rules/oas/operation-singular-tag"})}});var xl=()=>({Operation(e,t){er({fieldName:"summary",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-summary"})}});var wl=()=>{let e;return{Root(t){e=new Set((t.tags??[]).map(r=>r.name))},Operation(t,{report:r,location:n}){if(t?.tags)for(let o=0;o<t.tags.length;o++)e.has(t.tags[o])||r({message:"Operation tags should be defined in global tags.",location:n.child(["tags",o]),reference:"https://redocly.com/docs/cli/rules/oas/operation-tag-defined"});else r({message:"Operation tags should be defined",location:n.key(),reference:"https://redocly.com/docs/cli/rules/oas/operation-tag-defined"})}}};var _l=()=>({Parameter(e,{report:t,location:r}){e.description===void 0?t({message:"Parameter object description must be present.",location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/parameter-description"}):e.description||t({message:"Parameter object description must be non-empty string.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/oas/parameter-description"})}});var Pl=()=>({PathItem(e,{report:t,key:r}){r.indexOf("{}")!==-1&&t({message:"Path parameter declarations must be non-empty. `{}` is invalid.",location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/path-declaration-must-exist"})}});var XW=["get","head","post","put","patch","delete","options","query","trace"],El=e=>{let t=e&&e.order||XW;if(!Array.isArray(t))throw new Error("path-http-verbs-order `order` option must be an array");return{PathItem(r,{report:n,location:o}){let i=Object.keys(r).filter(s=>t.includes(s));for(let s=0;s<i.length-1;s++){let a=t.indexOf(i[s]);t.indexOf(i[s+1])<a&&n({message:"Operation http verbs must be ordered.",location:{reportOnKey:!0,...o.child(i[s+1])},reference:"https://redocly.com/docs/cli/rules/oas/path-http-verbs-order"})}}}};var $l=()=>({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},reference:"https://redocly.com/docs/cli/rules/oas/path-not-include-query"})}}});var ZW=/\{([a-zA-Z0-9_.-]+)\}+/g,eY=2,ns=()=>{let e={current:null};return{PathItem:{enter(r,{key:n}){m$(e,n)},leave(){tY(e)},Parameter(r,{report:n,location:o,rawLocation:i}){h$({parameter:r,pathContext:e,report:n,location:o,rawLocation:i})},Operation:y$(e,new Set)}}},m$=(e,t)=>{e.current={path:t,templateParams:rY(t),definedParams:new Set}},tY=e=>{e.current=null},h$=({parameter:e,pathContext:t,report:r,location:n,rawLocation:o})=>{e.in==="path"&&e.name&&t.current&&(t.current.definedParams.add(e.name),g$({paramName:e.name,templateParams:t.current.templateParams,path:t.current.path,report:r,location:n,rawLocation:o}))},y$=(e,t,r=0)=>{let n=(i,s,a)=>{i({message:`Maximum callback nesting depth (${a}) reached. Path parameter validation is limited beyond this depth to prevent infinite recursion.`,location:s,reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})};if(r>=eY)return{enter:()=>{},leave:(i,{report:s,location:a})=>{n(s,a,r)},Parameter:()=>{},Callback:void 0};let o=()=>{let i=null;return{enter(s,{key:a}){i=e.current,m$(e,a)},leave(){e.current=i},Parameter(s,{report:a,location:c,rawLocation:p}){h$({parameter:s,pathContext:e,report:a,location:c,rawLocation:p})},get Operation(){return y$(e,t,r+1)}}};return{enter(){t=new Set},leave(i,{report:s,location:a}){!e.current||!t||oY({templateParams:e.current.templateParams,definedOperationParams:t,definedPathParams:e.current.definedParams,path:e.current.path,report:s,location:a})},Parameter(i,{report:s,location:a,rawLocation:c}){nY(i,t),i.in==="path"&&i.name&&e.current&&(t.add(i.name),g$({paramName:i.name,templateParams:e.current.templateParams,path:e.current.path,report:s,location:a,rawLocation:c}))},Callback:{get PathItem(){return o()}}}},rY=e=>new Set(Array.from(e.matchAll(ZW)).map(t=>t[1])),nY=(e,t)=>{O(e)&&"in"in e&&"name"in e&&e.in==="path"&&e.name&&t.add(e.name)},g$=({paramName:e,templateParams:t,path:r,report:n,location:o,rawLocation:i})=>{if(!t.has(e)){let s=`Path parameter \`${e}\` is not used in the path \`${r}\`.`,a=i===o?void 0:i;n({message:s,location:o.child(["name"]),from:a,reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})}},oY=({templateParams:e,definedOperationParams:t,definedPathParams:r,path:n,report:o,location:i})=>{let s=new Set([...t,...r]);for(let a of e)s.has(a)||o({message:`The operation does not define the path parameter \`{${a}}\` expected by path \`${n}\`.`,location:i.child(["parameters"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})};var b$=Rr(Xu(),1);var Al=e=>{let{ignoreLastPathSegment:t,exceptions:r}=e;return{PathItem:{leave(n,{report:o,key:i,location:s}){let a=i.toString();if(a.startsWith("/")){let c=a.split("/");c.shift(),t&&c.length>0&&c.pop();for(let p of c)r&&r.includes(p)||!Op(p)&&b$.default.isSingular(p)&&o({message:`path segment \`${p}\` should be plural.`,location:s.key(),reference:"https://redocly.com/docs/cli/rules/oas/path-segment-plural"})}}}}};var Tl=()=>({PathItem(e,{report:t,key:r}){r.substr(1).split("/").filter(o=>o!=="").every(o=>/^{.+}$/.test(o)||/^[a-z0-9-.]+$/.test(o))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/paths-kebab-case"})}});var Rl=()=>{let e,t;return{Schema:{enter(r){if(!r?.required){e=!0;return}t=new Set(r.required),e=!1},SchemaProperties:{skip(){return e},Schema:{enter(r,{key:n,location:o,report:i}){t.has(n)&&r.type==="string"&&(r?.minLength||i({message:"Property minLength is required.",location:o.key(),reference:"https://redocly.com/docs/cli/rules/oas/required-string-property-missing-min-length"}))}}}}}};function hn(e){return`${e}`.replace(/^(\d)\d\d$/,(t,r)=>`${r}XX`)}var Ol=e=>{let t=e.names||{};return{Operation:{Response:{enter:(r,{report:n,location:o,key:i})=>{let s=t[i]||t[hn(i)]||t[hn(i).toLowerCase()]||[];for(let a of s)(!r?.headers||!Object.keys(r?.headers).some(c=>c.toLowerCase()===a.toLowerCase()))&&n({message:`Response object must contain a "${a}" header.`,location:o.child("headers").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-header"})}}}}};var v$=["string","integer","number","boolean","null"],kl=()=>({SchemaProperties(e,{report:t,location:r,specVersion:n,resolve:o}){for(let i of Object.keys(e)){let s=o(Bt(e,i)).node;!s||!iY(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(i).key(),reference:"https://redocly.com/docs/cli/rules/oas/scalar-property-missing-example"})}}});function iY(e){return!e.type||e.allOf||e.anyOf||e.oneOf||e.format==="binary"?!1:Array.isArray(e.type)?e.type.every(t=>v$.includes(t)):v$.includes(e.type)}var Il=e=>{let t=new Map,r=[],n=!0,o;return{Root:{leave(i,{report:s}){for(let[a,c]of t.entries())if(!c.defined)for(let p of c.from)s({message:`There is no \`${a}\` security scheme defined.`,location:p.key(),reference:"https://redocly.com/docs/cli/rules/oas/security-defined"});if(!(i.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(),reference:"https://redocly.com/docs/cli/rules/oas/security-defined"})}},SecurityScheme(i,{key:s}){t.set(s.toString(),{defined:!0,from:[]})},SecurityRequirement(i,{location:s}){for(let a of Object.keys(i)){let c=t.get(a),p=s.child([a]);c?c.from.push(p):t.set(a,{from:[p]})}},PathItem:{enter(i,{key:s}){o=s},Operation(i,{location:s,key:a}){let c=e.exceptions?.some(p=>p.path===o&&(!p.methods||p.methods?.some(l=>l.toLowerCase()===a)));!i?.security&&!c&&(n=!1,r.push(s))}}}};var Cl=()=>{let e=["Schema","Response","Parameter","RequestBody","Example","Header","SecurityScheme","Link","Callback","PathItem"];return{any(t,{report:r,rawNode:n,rawLocation:o,type:i}){!e.includes(i.name)&&L(n)&&r({message:"Field $ref is not expected here.",location:o.child("$ref").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-strict-refs"})}}};var S$=e=>{let t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(i=>`\`${i}\``),o=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter(i,{report:s,location:a}){i.type==="boolean"&&!r.test(i.name)&&s({message:`Boolean parameter \`${i.name}\` should have ${o} prefix.`,location:a.child("name"),reference:"https://redocly.com/docs/cli/rules/oas/boolean-parameter-prefixes"})}}};function os({type:e,value:t,ctx:r,allowedValues:n,reference:o}){let{report:i,location:s}=r,a=e==="consumes"?"request":"response";if(!n)throw new Error(`Parameter "allowedValues" is not provided for "${a}-mime-type" rule`);if(t[e])for(let c of t[e])n.includes(c)||i({message:`Mime type "${c}" is not allowed`,location:s.child(t[e].indexOf(c)).key(),reference:o})}function Wn({type:e,value:t,ctx:r,allowedValues:n,reference:o}){let{report:i,location:s}=r,a=e==="consumes"?"request":"response";if(!n)throw new Error(`Parameter "allowedValues" is not provided for "${a}-mime-type" rule`);if(t.content)for(let c of Object.keys(t.content))n.includes(c)||i({message:`Mime type "${c}" is not allowed`,location:s.child("content").child(c).key(),reference:o})}var x$=({allowedValues:e})=>({Root(t,r){os({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})},Operation:{leave(t,r){os({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}});var w$=e=>{let t=e.names||{},r;return{Operation:{Response:{skip:(n,o)=>`${o}`=="204",enter:(n,o)=>{r=o.key},Schema(n,{report:o,location:i}){if(n.type!=="object")return;let s=t[r]||t[hn(r)]||t[hn(r).toLowerCase()]||[];for(let a of s)n.properties?.[a]||o({message:`Response object must contain a top-level "${a}" property.`,location:i.child("properties").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-property"})}}}}};var _$=({allowedValues:e})=>({Root(t,r){os({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})},Operation:{leave(t,r){os({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}});var P$={struct:it,"no-invalid-schema-examples":dl,"no-invalid-parameter-examples":ul,"info-contact":tr,"info-license":Di,"info-license-strict":qn,"tag-description":jn,"tags-alphabetical":Dn,"paths-kebab-case":Tl,"no-enum-type-mismatch":Lr,"boolean-parameter-prefixes":S$,"no-path-trailing-slash":fl,"operation-2xx-response":ml,"operation-4xx-response":hl,assertions:_t,"operation-operationId-unique":gl,"operation-parameters-unique":vl,"path-parameters-defined":ns,"operation-tag-defined":wl,"path-declaration-must-exist":Pl,"operation-operationId-url-safe":bl,"operation-operationId":Mn,"operation-summary":xl,"operation-description":yl,"path-not-include-query":$l,"path-params-defined":ns,"parameter-description":_l,"operation-singular-tag":Sl,"security-defined":Il,"security-scopes-defined":Mi,"no-unresolved-refs":ot,"no-identical-paths":Ip,"no-ambiguous-paths":Rp,"path-http-verbs-order":El,"no-http-verbs-in-paths":kp,"request-mime-type":x$,"response-mime-type":_$,"path-segment-plural":Al,"response-contains-header":Ol,"response-contains-property":w$,"scalar-property-missing-example":kl,"required-string-property-missing-min-length":Rl,"spec-strict-refs":Cl,"no-required-schema-properties-undefined":Ur,"no-schema-type-mismatch":zr,"no-duplicated-enum-values":Dr,"no-unsafe-markdown":Vr,"no-duplicated-tag-names":Nn},E$={};var $$=e=>({Parameter:{leave(t,r){if(!t.schema)return;let n=L(t.schema)?r.resolve(t.schema).node:t.schema;n&&sY(t,n,e)&&r.report({message:`Parameter \`${t.name}\` should have \`style\` and \`explode \` fields`,location:r.location,reference:"https://redocly.com/docs/cli/rules/oas/array-parameter-serialization"})}}});function sY(e,t,r){return(t.type==="array"||t.items||t.prefixItems)&&(e.style===void 0||e.explode===void 0)&&(!r.in||e.in&&r.in?.includes(e.in))}var A$=e=>{let t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(i=>`\`${i}\``),o=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter:{Schema(i,{report:s,parentLocations:a},c){i.type==="boolean"&&!r.test(c.Parameter.name)&&s({message:`Boolean parameter \`${c.Parameter.name}\` should have ${o} prefix.`,location:a.Parameter.child(["name"]),reference:"https://redocly.com/docs/cli/rules/oas/boolean-parameter-prefixes"})}}}};function Va(e){return e.endsWith(".yaml")||e.endsWith(".yml")||e.endsWith(".json")}var Yy="Schema",Qy="Parameter",Jy="Response",Xy="RequestBody",aY={[Yy]:"schemas",[Qy]:"parameters",[Jy]:"responses",[Xy]:"requestBodies"},T$=e=>{let t=new Map,r=[];e.schemas!=="off"&&r.push(Yy),e.parameters!=="off"&&r.push(Qy),e.responses!=="off"&&r.push(Jy),e.requestBodies!=="off"&&r.push(Xy);let n={ref:{leave(a,{type:c,resolve:p}){let l=c.name;if(r.includes(l)){let u=p(a);if(!u.location)return;s(l,u.location)}}},Root:{leave(a,c){t.forEach((p,l,u)=>{if(p.absolutePointers.size>1){let d=lY(l),f=cY(d.typeName),m=f?e[f]:null;for(let h of p.locations){let y=Array.from(p.absolutePointers).filter(P=>P!==h.absolutePointer.toString()).map(P=>`- ${P}`).join(`
|
|
112
|
-
`),g={message:`Component '${f}/${d.componentName}' is not unique. It is also defined at:
|
|
113
|
-
${y}`,location:h,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};m&&(g.forceSeverity=m),c.report(g)}}})}}};return e.schemas!="off"&&(n.NamedSchemas={Schema(a,{location:c}){s(Yy,c)}}),e.responses!="off"&&(n.NamedResponses={Response(a,{location:c}){s(Jy,c)}}),e.parameters!="off"&&(n.NamedParameters={Parameter(a,{location:c}){s(Qy,c)}}),e.requestBodies!="off"&&(n.NamedRequestBodies={RequestBody(a,{location:c}){s(Xy,c)}}),n;function o(a){let c=a.split("/").slice(-1)[0];return Va(c)?c.slice(0,c.lastIndexOf(".")):c}function i(a,c,p){let l=pY(a,c),u=t.get(l)??{absolutePointers:new Set,locations:[]},d=p.absolutePointer.toString();u.absolutePointers.has(d)||(u.absolutePointers.add(d),u.locations.push(p)),t.set(l,u)}function s(a,c){let p=o(c.absolutePointer.toString());i(a,p,c)}};function cY(e){return aY[e]??null}function pY(e,t){return`${e}/${t}`}function lY(e){let[t,r]=e.split("/");return{typeName:t,componentName:r}}var R$=()=>({Root(e,{report:t,location:r}){if(!e.hasOwnProperty("servers")){t({message:"Servers must be present.",location:r.child(["openapi"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-empty-servers"});return}(!Array.isArray(e.servers)||e.servers.length===0)&&t({message:"Servers must be a non-empty array.",location:r.child(["servers"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-empty-servers"})}});var O$=()=>({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(),reference:"https://redocly.com/docs/cli/rules/oas/no-example-value-and-externalValue"})}});var k$=e=>{let t=new Gn,r=o=>o.schema===void 0,n=o=>(i,s)=>{let{location:a,resolve:c}=s;if(Ut(i.example))p(i.example,a.child("example"));else if(O(i.examples))for(let l of Object.keys(i.examples))p(i.examples[l],a.child(["examples",l]),!0);function p(l,u,d){if(L(l)){let m=c(l);if(!m.location)return;u=m.location,l=m.node}let f=l;if(d){let m=Tp(l);if(!m)return;f=m.value,u=u.child(m.field)}In({example:f,schema:i.schema,options:{location:u,ctx:s,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:o},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-media-type-examples"})}};return{Parameter:{MediaType:{skip:r,leave:n({apiContext:"request"})}},RequestBody:{MediaType:{skip:r,leave:n({apiContext:"request"})}},Response:{MediaType:{skip:r,leave:n({apiContext:"response"})}}}};var I$=()=>({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"]),reference:"https://redocly.com/docs/cli/rules/oas/no-server-example-com"})}});var C$=()=>({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"]),reference:"https://redocly.com/docs/cli/rules/oas/no-server-trailing-slash"})}});var N$=()=>({Root(e,{report:t,location:r}){if(!e.servers||e.servers.length===0)return;let n=[];if(Array.isArray(e.servers))for(let o of e.servers){let i=q$(o);i&&n.push(...i)}else{let o=q$(e.servers);if(!o)return;n.push(...o)}for(let o of n)o==="empty"&&t({message:"Server variable with `enum` must be a non-empty array.",location:r.child(["servers"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-server-variables-empty-enum"}),o==="invalidDefaultValue"&&t({message:"Server variable define `enum` and `default`. `enum` must include default value",location:r.child(["servers"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-server-variables-empty-enum"})}});function q$(e){if(e.variables&&Object.keys(e.variables).length===0)return;let t=[];for(let r in e.variables){let n=e.variables[r];if(!n.enum||(Array.isArray(n.enum)&&n.enum?.length===0&&t.push("empty"),!n.default))continue;let o=e.variables[r].default;n.enum&&!n.enum.includes(o)&&t.push("invalidDefaultValue")}if(t.length)return t}var M$=()=>({Server(e,{report:t,location:r}){if(!e?.url)return;let n=e.url.match(/{[^}]+}/g)?.map(i=>i.slice(1,i.length-1))||[],o=e?.variables&&Object.keys(e.variables)||[];for(let i of n)o.includes(i)||t({message:`The \`${i}\` variable is not defined in the \`variables\` objects.`,location:r.child(["url"]),reference:"https://redocly.com/docs/cli/rules/oas/no-undefined-server-variable"});for(let i of o)n.includes(i)||t({message:`The \`${i}\` variable is not used in the server's \`url\` field.`,location:r.child(["variables",i]).key(),from:r.child("url"),reference:"https://redocly.com/docs/cli/rules/oas/no-undefined-server-variable"})}});var j$=()=>{let e=new Map,t=new Map,r=new Set;function n(o,i,s=!1){e.set(o.absolutePointer,{used:e.get(o.absolutePointer)?.used||!1,referencesDiscriminator:s,location:o,name:i})}return{ref(o,{type:i,resolve:s,key:a,location:c}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap"].includes(i.name)){let p=s(o);if(!p.location)return;e.set(p.location.absolutePointer,{used:!0,name:a.toString(),location:c})}},Root:{leave(o,{report:i}){e.forEach(s=>{!s.used&&!s.referencesDiscriminator&&i({message:`Component: "${s.name}" is never used.`,location:s.location.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})}),t.forEach((s,a)=>{r.has(a)||i({message:`Security scheme: "${a}" is never used.`,location:s.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})})}},NamedSchemas:{Schema(o,{location:i,key:s,resolve:a}){let c=o.allOf?.some(p=>L(p)&&a(p)?.node?.discriminator);n(i,s.toString(),c)}},NamedParameters:{Parameter(o,{location:i,key:s}){n(i,s.toString())}},NamedResponses:{Response(o,{location:i,key:s}){n(i,s.toString())}},NamedExamples:{Example(o,{location:i,key:s}){n(i,s.toString())}},NamedRequestBodies:{RequestBody(o,{location:i,key:s}){n(i,s.toString())}},NamedHeaders:{Header(o,{location:i,key:s}){n(i,s.toString())}},NamedMediaTypes:{MediaTypesMap(o,{location:i,key:s}){n(i,s.toString())}},NamedSecuritySchemes:{SecurityScheme(o,{rawLocation:i,key:s}){t.set(s.toString(),i)}},SecurityRequirement(o){for(let i of Object.keys(o))r.add(i)}}};var D$=()=>({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"]),reference:"https://redocly.com/docs/cli/rules/oas/nullable-type-sibling"})}}});var Zy="https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807",L$=()=>({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(),reference:Zy})},MediaType:{skip(e,t){return t!=="application/problem+json"},enter(e,t){if(er({fieldName:"schema",value:e,ctx:t,reference:Zy}),!e.schema)return;let{schema:r,location:n}=Po(e.schema,t,t.location.child("schema"));if(!(!r||!n))for(let o of["type","title"])pn(e.schema,o,t)||t.report({message:Eo("SchemaProperties",o),location:r.properties?n.child(["properties",o]).key():n.key(),reference:Zy})}}}});var U$=({allowedValues:e})=>({Paths:{RequestBody:{leave(t,r){Wn({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}},Callback:{RequestBody(){},Response:{leave(t,r){Wn({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}},WebhooksMap:{Response:{leave(t,r){Wn({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}});var z$=e=>{let t=e.names||{},r;return{Operation:{Response:{skip:(n,o)=>`${o}`=="204",enter:(n,o)=>{r=o.key},MediaType:{Schema(n,{report:o,location:i}){if(n.type!=="object")return;let s=t[r]||t[hn(r)]||t[hn(r).toLowerCase()]||[];for(let a of s)n.properties?.[a]||o({message:`Response object must contain a top-level "${a}" property.`,location:i.child("properties").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-property"})}}}}}};var F$=({allowedValues:e})=>({Paths:{Response:{leave(t,r){Wn({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}},Callback:{Response(){},RequestBody:{leave(t,r){Wn({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}},WebhooksMap:{RequestBody:{leave(t,r){Wn({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}});var V$=()=>{let e=`^[${Pc}]+$`;function t(r,n,o,i){new RegExp(e).test(r)||n({message:`The map key in ${i} "${r}" does not match the regular expression "${e}"`,location:o.key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-components-invalid-map-name"})}return{NamedSchemas:{Schema(r,{key:n,report:o,location:i}){t(n,o,i,"schemas")}},NamedParameters:{Parameter(r,{key:n,report:o,location:i}){t(n,o,i,"parameters")}},NamedResponses:{Response(r,{key:n,report:o,location:i}){t(n,o,i,"responses")}},NamedExamples:{Example(r,{key:n,report:o,location:i}){t(n,o,i,"examples")}},NamedRequestBodies:{RequestBody(r,{key:n,report:o,location:i}){t(n,o,i,"requestBodies")}},NamedHeaders:{Header(r,{key:n,report:o,location:i}){t(n,o,i,"headers")}},NamedSecuritySchemes:{SecurityScheme(r,{key:n,report:o,location:i}){t(n,o,i,"securitySchemes")}},NamedLinks:{Link(r,{key:n,report:o,location:i}){t(n,o,i,"links")}},NamedCallbacks:{Callback(r,{key:n,report:o,location:i}){t(n,o,i,"callbacks")}}}};var B$=()=>{let e=[];return{Root:{enter(t){e=Object.keys(t.components?.schemas||{})}},Schema:{leave(t,r){let n=t.discriminator?.propertyName;if(!n)return;let o=t.discriminator?.defaultMapping;if(o===void 0){let i=new Set,s=(a,c)=>{let p=Po(a,r,c);return!!(!p.schema||i.has(p.schema)||(i.add(p.schema),p.schema.required?.includes(n)||p.schema.allOf?.some(l=>s(l,p.location))||p.schema.oneOf?.every(l=>s(l,p.location))||p.schema.anyOf?.every(l=>s(l,p.location))))};s(t)||r.report({message:`Discriminator with optional property '${n}' must include a defaultMapping field.`,location:r.location.child("discriminator"),reference:"https://redocly.com/docs/cli/rules/oas/spec-discriminator-defaultMapping"})}else r.resolve({$ref:o}).node===void 0&&!e.includes(o)&&r.report({message:`defaultMapping value '${o}' does not point to an existing schema component.`,location:r.location.child(["discriminator","defaultMapping"]),reference:"https://redocly.com/docs/cli/rules/oas/spec-discriminator-defaultMapping"})}}}};var H$=()=>({Example({value:e,externalValue:t,dataValue:r,serializedValue:n},{report:o,location:i}){e!==void 0&&t!==void 0&&o({message:"The 'value' and 'externalValue' fields of an example object are mutually exclusive.",location:i,reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),n!==void 0&&t!==void 0&&o({message:"The 'serializedValue' and 'externalValue' fields of an example object are mutually exclusive.",location:i,reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),e!==void 0&&r!==void 0&&o({message:"The 'value' filed must be absent if 'dataValue' is present in an example object.",location:i.child("value").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),e!==void 0&&n!==void 0&&o({message:"The 'value' filed must be absent if 'serializedValue' is present in an example object.",location:i.child("value").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"})}});var K$=()=>({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(),reference:"https://redocly.com/docs/cli/rules/oas/spec-no-invalid-encoding-combinations"})}}});var G$=()=>{let e;return{Root:{enter(t){e=t.tags??[]}},Tag:{leave(t,{report:r,location:n}){if(t?.parent===void 0)return;if(!e.find(s=>s.name===t.parent)){r({message:`Tag parent '${t.parent}' is not defined in the API description.`,location:n.child("parent"),reference:"https://redocly.com/docs/cli/rules/oas/spec-no-invalid-tag-parents"});return}let o=new Set(t.name),i=t.parent;for(;i!==void 0;){if(o.has(i)){r({message:`Circular reference detected in tag parent hierarchy for tag '${t.name}'.`,location:n.child("parent"),reference:"https://redocly.com/docs/cli/rules/oas/spec-no-invalid-tag-parents"});return}o.add(i),i=e.find(s=>s.name===i)?.parent}}}}};function W$(e){return e.filter(t=>!("$ref"in t)&&t.in==="querystring").length}function Y$(e,t){let r=t.location.child("parameters");e>1&&t.report({message:"Parameters with `in: querystring` should be defined only once per path/operation parameter set.",location:r,reference:"https://redocly.com/docs/cli/rules/oas/spec-querystring-parameters"})}function Q$(e,t,r,n){if(e.in==="query"){r.querystringLocation&&n.report({message:"Parameters with `in: query` cannot be used together with `in: querystring` in the same operation/path parameter set.",location:t,reference:"https://redocly.com/docs/cli/rules/oas/spec-querystring-parameters"}),r.queryLocation??=t;return}e.in==="querystring"&&(r.queryLocation&&n.report({message:"Parameters with `in: querystring` cannot be used together with `in: query` in the same operation/path parameter set.",location:t,reference:"https://redocly.com/docs/cli/rules/oas/spec-querystring-parameters"}),r.querystringLocation??=t)}var J$=()=>{let e={},t={},r=0;return{PathItem:{enter(n,o){e={},t={},r=0,Y$(W$(n.parameters||[]),o)},Parameter(n,o){Q$(n,o.location,e,o),n.in==="querystring"&&(r+=1)},Operation:{enter(n,o){t={...e};let i=r+W$(n.parameters||[]);Y$(i,o)},Parameter(n,o){Q$(n,o.location,t,o)}}}}};var X$={struct:it,"info-contact":tr,"info-license":Di,"info-license-strict":qn,"operation-2xx-response":ml,"operation-4xx-response":hl,"operation-4xx-problem-details-rfc7807":L$,assertions:_t,"operation-operationId-unique":gl,"operation-parameters-unique":vl,"operation-tag-defined":wl,"no-example-value-and-externalValue":O$,"no-mixed-number-range-constraints":Cn,"no-enum-type-mismatch":Lr,"no-path-trailing-slash":fl,"no-empty-servers":R$,"path-declaration-must-exist":Pl,"operation-operationId-url-safe":bl,"operation-operationId":Mn,"operation-summary":xl,"tags-alphabetical":Dn,"no-server-example.com":I$,"no-server-trailing-slash":C$,"tag-description":jn,"operation-description":yl,"no-unused-components":j$,"path-not-include-query":$l,"path-parameters-defined":ns,"path-params-defined":ns,"parameter-description":_l,"operation-singular-tag":Sl,"security-defined":Il,"security-scopes-defined":Mi,"no-unresolved-refs":ot,"paths-kebab-case":Tl,"boolean-parameter-prefixes":A$,"path-http-verbs-order":El,"no-invalid-media-type-examples":k$,"no-identical-paths":Ip,"no-ambiguous-paths":Rp,"no-undefined-server-variable":M$,"no-server-variables-empty-enum":N$,"no-http-verbs-in-paths":kp,"request-mime-type":U$,"response-mime-type":F$,"path-segment-plural":Al,"no-invalid-schema-examples":dl,"no-invalid-parameter-examples":ul,"response-contains-header":Ol,"response-contains-property":z$,"scalar-property-missing-example":kl,"spec-components-invalid-map-name":V$,"required-string-property-missing-min-length":Rl,"spec-strict-refs":Cl,"component-name-unique":T$,"array-parameter-serialization":$$,"no-required-schema-properties-undefined":Ur,"no-schema-type-mismatch":zr,"no-duplicated-enum-values":Dr,"no-unsafe-markdown":Vr,"no-duplicated-tag-names":Nn,"nullable-type-sibling":D$,"spec-no-invalid-tag-parents":G$,"spec-no-invalid-encoding-combinations":K$,"spec-discriminator-defaultMapping":B$,"spec-example-values":H$,"spec-querystring-parameters":J$},Z$={};var eA=()=>{let e=new Map;function t(r,n){e.set(r.absolutePointer,{used:e.get(r.absolutePointer)?.used||!1,location:r,name:n})}return{ref(r,{type:n,resolve:o,key:i,location:s}){if(["Schema","ContentDescriptor","Example","Link","ErrorObject","ExamplePairing","Tag"].includes(n.name)){let a=o(r);if(!a.location)return;e.set(a.location.absolutePointer,{used:!0,name:i.toString(),location:s})}},Root:{leave(r,{report:n}){e.forEach(o=>{o.used||n({message:`Component: "${o.name}" is never used.`,location:o.location.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})})}},NamedSchemas:{Schema(r,{location:n,key:o}){t(n,o.toString())}},NamedContentDescriptors:{ContentDescriptor(r,{location:n,key:o}){t(n,o.toString())}},NamedExamples:{Example(r,{location:n,key:o}){t(n,o.toString())}},NamedLinks:{Link(r,{location:n,key:o}){t(n,o.toString())}},NamedErrors:{ErrorObject(r,{location:n,key:o}){t(n,o.toString())}},NamedExamplePairingObjects:{ExamplePairing(r,{location:n,key:o}){t(n,o.toString())}},NamedTags:{Tag(r,{location:n,key:o}){t(n,o.toString())}}}};var tA=()=>({Method:{leave(e,{report:t,resolve:r,location:n}){if(!e.params||!Array.isArray(e.params))return;let o=new Set;e.params.forEach((i,s)=>{let a=r(i);if(!a.node)return;let c=a.node,p=c.name;p&&(o.has(p)&&t({message:`Parameter names must be unique. Duplicate parameter name '${c.name}' found.`,location:n.child([s,"name"]),reference:"https://redocly.com/docs/cli/rules/openrpc/spec-no-duplicated-method-params"}),o.add(p))})}}});var rA=()=>({Method:{leave(e,{report:t,resolve:r,location:n}){if(!e.params||!Array.isArray(e.params))return;let o=!1;e.params.forEach((i,s)=>{let a=r(i);if(!a.node)return;let c=a.node;if(!c.name)return;c.required===!0?o&&t({message:`Required parameter '${c.name}' must be positioned before optional parameters.`,location:n.child([s,"name"]),reference:"https://redocly.com/docs/cli/rules/openrpc/spec-no-required-params-after-optional"}):o=!0})}}});var nA={struct:it,"no-unresolved-refs":ot,assertions:_t,"info-license":Di,"no-unused-components":eA,"info-contact":tr,"spec-no-duplicated-method-params":tA,"spec-no-required-params-after-optional":rA},oA={};var iA={"info-contact":tr,struct:it,"no-unresolved-refs":ot,assertions:_t},sA={};var uY={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"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-unsafe-markdown":"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","security-scopes-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-duplicated-enum-values":"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-unsafe-markdown":"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","security-scopes-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-duplicated-enum-values":"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-mixed-number-range-constraints":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unsafe-markdown":"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","security-scopes-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-duplicated-enum-values":"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-mixed-number-range-constraints":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-unsafe-markdown":"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","security-scopes-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","spec-querystring-parameters":"error"},async2Rules:{"channels-kebab-case":"error","info-contact":"error","info-license-strict":"error","no-channel-trailing-slash":"error","no-duplicated-enum-values":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-schema-type-mismatch":"error"},async3Rules:{"channels-kebab-case":"error","info-contact":"error","info-license-strict":"error","no-channel-trailing-slash":"error","no-duplicated-enum-values":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-schema-type-mismatch":"error"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"error"},openrpc1Rules:{"info-contact":"error","info-license":"error","no-unused-components":"error","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"},graphqlRules:{"no-unused-types":"error","type-description":"error"}},aA=uY;var dY={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-enum-values":"off","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","no-unsafe-markdown":"off","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","security-scopes-defined":"off","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-enum-values":"off","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-unsafe-markdown":"off","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","security-scopes-defined":"off","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-enum-values":"off","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-mixed-number-range-constraints":"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-unsafe-markdown":"off","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","security-scopes-defined":"off","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-enum-values":"off","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-mixed-number-range-constraints":"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-unsafe-markdown":"off","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","security-scopes-defined":"off","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-querystring-parameters":"error","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-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"off","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-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"off","tag-description":"warn","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"off","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"off","parameters-unique":"off","requestBody-replacements-unique":"off","sourceDescription-name-unique":"off","sourceDescription-type":"off","sourceDescriptions-not-empty":"off","spec-step-mutually-exclusive-fields":"warn","step-onFailure-unique":"off","step-onSuccess-unique":"off","stepId-unique":"error","workflow-dependsOn":"off","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"off","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"off","parameters-unique":"off","requestBody-replacements-unique":"off","sourceDescription-name-unique":"off","sourceDescription-type":"off","sourceDescriptions-not-empty":"off","spec-step-mutually-exclusive-fields":"warn","step-onFailure-unique":"off","step-onSuccess-unique":"off","stepId-unique":"error","workflow-dependsOn":"off","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},graphqlRules:{"no-unused-types":"off","type-description":"off"},openrpc1Rules:{"info-contact":"off","info-license":"off","no-unused-components":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"}},cA=dY;var fY={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-enum-values":"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","no-unsafe-markdown":"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","security-scopes-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-enum-values":"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-unsafe-markdown":"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","security-scopes-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-enum-values":"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-mixed-number-range-constraints":"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-unsafe-markdown":"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","security-scopes-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-enum-values":"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-mixed-number-range-constraints":"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-unsafe-markdown":"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","security-scopes-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-querystring-parameters":"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-enum-values":"error","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"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-enum-values":"error","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},openrpc1Rules:{"info-contact":"off","info-license":"error","no-unused-components":"error","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"},graphqlRules:{"no-unused-types":"error","type-description":"off"}},pA=fY;var mY={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-enum-values":"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","no-unsafe-markdown":"warn","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","security-scopes-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":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"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-unsafe-markdown":"warn","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","security-scopes-defined":"warn","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-enum-values":"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-mixed-number-range-constraints":"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-unsafe-markdown":"warn","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","security-scopes-defined":"warn","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-enum-values":"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-mixed-number-range-constraints":"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-unsafe-markdown":"warn","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","security-scopes-defined":"warn","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-querystring-parameters":"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-enum-values":"warn","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"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-enum-values":"warn","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"warn","tag-description":"warn","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"warn","no-criteria-xpath":"off","no-duplicated-enum-values":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"warn","parameters-unique":"error","requestBody-replacements-unique":"warn","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"warn","step-onSuccess-unique":"warn","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"warn","no-criteria-xpath":"off","no-duplicated-enum-values":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"warn","parameters-unique":"error","requestBody-replacements-unique":"warn","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"warn","step-onSuccess-unique":"warn","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},openrpc1Rules:{"info-license":"warn","no-unused-components":"warn","info-contact":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"},graphqlRules:{"no-unused-types":"warn","type-description":"off"}},lA=mY;var hY={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-enum-values":"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","no-unsafe-markdown":"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","security-scopes-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-enum-values":"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-unsafe-markdown":"off","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","security-scopes-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-enum-values":"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-mixed-number-range-constraints":"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-unsafe-markdown":"off","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","security-scopes-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-enum-values":"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-mixed-number-range-constraints":"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-unsafe-markdown":"off","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","security-scopes-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-querystring-parameters":"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-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","operation-operationId":"off","security-defined":"off","security-scopes-defined":"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-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","operation-operationId":"off","security-defined":"off","security-scopes-defined":"off","tag-description":"off","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},openrpc1Rules:{"info-contact":"off","info-license":"off","no-unused-components":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"},graphqlRules:{"no-unused-types":"off","type-description":"off"}},uA=hY;var yY={recommended:lA,"recommended-strict":pA,minimal:cA,all:aA,spec:uA},eg={id:"",rules:{oas3:X$,oas2:P$,async2:u_,async3:b_,arazzo1:o_,overlay1:iA,openrpc1:nA,graphql:R_},preprocessors:{oas3:Z$,oas2:E$,async2:d_,async3:v_,arazzo1:i_,overlay1:sA,openrpc1:oA},decorators:{oas3:Pw,oas2:vw,async2:yw,async3:gw,arazzo1:hw,overlay1:$w,openrpc1:Ew},configs:yY};import*as Ha from"node:fs";import*as IA from"node:path";import*as Nl from"node:fs";import*as Ml from"node:path";var gY=[".graphql",".gql"];function is(e){let t=e.toLowerCase();return gY.some(r=>t.endsWith(r))}function yn(e,t){return e+"::"+t}function dA(){return new Promise(e=>{setTimeout(e)})}var Yn=class{absoluteRef;body;mimeType;constructor(t,r,n){this.absoluteRef=t,this.body=r,this.mimeType=n}#e;#t;getAst(t){return this.#e===void 0&&(this.#e=t(this.body,{filename:this.absoluteRef})??void 0,this.#e&&this.#e.kind===0&&this.#e.value===""&&this.#e.startPosition!==1&&(this.#e.startPosition=1,this.#e.endPosition=1)),this.#e}getLines(){return this.#t===void 0&&(this.#t=this.body.split(/\r\n|[\n\r]/g)),this.#t}},ql=class e extends Error{originalError;constructor(t){super(t.message),this.originalError=t,Object.setPrototypeOf(this,e.prototype)}};function Do(e,t){let r=new Yn(t,e);if(is(t))return{source:r,parsed:e};try{return{source:r,parsed:io(e,{filename:t})}}catch(n){throw new Fr(n,r)}}var jt=class{config;cache=new Map;constructor(t={http:{headers:[]}}){this.config=t}getFiles(){return new Set(Array.from(this.cache.keys()))}resolveExternalRef(t,r){return se(r)?r:t&&se(t)?new URL(r,t).href:Ml.resolve(t?Ml.dirname(t):process.cwd(),r)}async loadExternalRef(t){try{if(se(t)){let{body:r,mimeType:n}=await pd(t,this.config.http);return new Yn(t,r,n)}else{if(Nl.lstatSync(t).isDirectory())throw new Error(`Expected a file but received a folder at ${t}.`);let r=await Nl.promises.readFile(t,"utf-8");return new Yn(t,r.replace(/\r\n/g,`
|
|
114
|
-
`))}}catch(r){throw r.message=r.message.replace(", lstat",""),new ql(r)}}parseDocument(t,r=!1){if(is(t.absoluteRef))return{source:t,parsed:t.body};if(!Va(t.absoluteRef)&&!t.mimeType?.match(/(json|yaml|openapi)/)&&!r)return{source:t,parsed:t.body};try{return{source:t,parsed:io(t.body,{filename:t.absoluteRef})}}catch(n){throw new Fr(n,t)}}async resolveDocument(t,r,n=!1){let o=this.resolveExternalRef(t,r),i=this.cache.get(o);if(i)return i;let s=this.loadExternalRef(o).then(a=>this.parseDocument(a,n));return this.cache.set(o,s),s}};function fA(e,t){return{prev:e,node:t}}function bY(e,t){for(;e;){if(e.node===t)return!0;e=e.prev}return!1}var Ba={name:"unknown",properties:{}},vY={name:"scalar",properties:{}};async function sr(e){let{rootDocument:t,externalRefResolver:r,rootType:n}=e,o=new Map,i=new Set,s=[];c(t.parsed,t,"#/",n);let a;do a=await Promise.all(s);while(s.length!==a.length);return o;function c(p,l,u,d){let f=l.source.absoluteRef,m=new Map;h(p,d,f+u);function h(g,P,b){if(!O(g)&&!Array.isArray(g))return;let x=`${P.name}::${b}`;if(i.has(x))return;if(i.add(x),Array.isArray(g)){let T=P.items;if(T===void 0&&P!==Ba&&P!==lr)return;let _=typeof T=="function";for(let $=0;$<g.length;$++){let E=_?T(g[$],Qr(b,$)):T;if(E===void 0&&P!==Ba&&P!==lr)continue;let G=E?.directResolveAs?{$ref:g[$]}:g[$];E=E?.directResolveAs||E,h(G,ur(E)?E:Ba,Qr(b,$))}return}let[S,w]=Object.entries(g).find(([T])=>T==="$anchor")||[];w&&m.set(`#${w}`,g);for(let T of Object.keys(g)){let _=g[T],$=Bt(P.properties,T);$===void 0&&($=P.additionalProperties),typeof $=="function"&&($=$(_,T)),$===void 0&&($=Ba),P.extensionsPrefix&&T.startsWith(P.extensionsPrefix)&&$===Ba&&($=lr),!ur($)&&$?.directResolveAs&&($=$.directResolveAs,_={$ref:_}),$&&$.name===void 0&&$.resolvable!==!1&&($=vY),!(!ur($)||!(O(_)||Array.isArray(_)))&&h(_,$,Qr(b,Or(T)))}if(L(g)){let T=y(l,g,{prev:null,node:g}).then(_=>{if(_.resolved){c(_.node,_.document,_.nodePointer,P);for(let $ of _.chain??[])c($.node,$.document,$.location.pointer,P)}});s.push(T)}if(Qa(g)){let T=y(l,{$ref:g.externalValue},{prev:null,node:g}).then(_=>{_.resolved&&c(_.node,_.document,_.nodePointer,P)});s.push(T)}}async function y(g,P,b){if(bY(b.prev,P))throw new Error("Self-referencing circular pointer");if(Vg(P.$ref)){await dA();let F={resolved:!0,isRemote:!1,node:m.get(P.$ref),document:g,nodePointer:P.$ref},ae=yn(g.source.absoluteRef,P.$ref);return o.set(ae,F),F}let{uri:x,pointer:S}=vn(P.$ref),w=x!==null&&r.resolveExternalRef(g.source.absoluteRef,x)!==g.source.absoluteRef,T;try{T=w?await r.resolveDocument(g.source.absoluteRef,x):g}catch(F){let ae={resolved:!1,isRemote:w,document:void 0,error:F},A=yn(g.source.absoluteRef,P.$ref);return o.set(A,ae),ae}let _={resolved:!0,document:T,isRemote:w,node:g.parsed,nodePointer:"#/"},$=T.parsed,E=S;for(let F of E)if(O($)&&$[F]!==void 0)$=$[F],_.nodePointer=Qr(_.nodePointer,Or(F));else if(Array.isArray($)&&$[+F]!==void 0)$=$[+F],_.nodePointer=Qr(_.nodePointer,Or(F));else if(L($))if(_=await y(T,$,fA(b,$)),_.chain=void 0,T=_.document||T,O(_.node))$=_.node[F],_.nodePointer=Qr(_.nodePointer,Or(F));else if(Array.isArray(_.node))$=_.node[+F],_.nodePointer=Qr(_.nodePointer,Or(F));else{$=void 0;break}else{$=void 0;break}_.node=$,_.document=T;let G=yn(g.source.absoluteRef,P.$ref);if(_.document&&L($)){let F=Ko($)?{node:$,document:_.document,location:new zt(_.document.source,_.nodePointer)}:void 0;_=await y(_.document,$,fA(b,$)),F&&_.resolved&&(_={..._,chain:[F,..._.chain??[]]})}return o.set(G,_),{..._}}}}import*as pg from"node:fs";import AY from"node:module";import*as $t from"node:path";import*as OA from"node:url";var SY={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function Ht(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:p}of e)i({ruleId:s,severity:a,message:c},p,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,p,l=[]){if(l.includes(a))return;l=[...l,a];let u=new Set;for(let f of Object.values(a.properties)){if(f===c){d(s,l);continue}O(f)&&f.name!==void 0&&u.add(f)}a.additionalProperties&&typeof a.additionalProperties!="function"&&(a.additionalProperties===c?d(s,l):a.additionalProperties.name!==void 0&&u.add(a.additionalProperties)),a.items&&typeof a.items!="function"&&(a.items===c?d(s,l):a.items.name!==void 0&&u.add(a.items)),a.extensionsPrefix&&u.add(lr);for(let f of Array.from(u.values()))n(s,f,c,p,l);function d(f,m){for(let h of m.slice(1))r[h.name]=r[h.name]||{enter:[],leave:[]},r[h.name].enter.push({...f,visit:()=>{},depth:0,context:{isSkippedLevel:!0,seen:new Set,parent:p}})}}function o(s,a){if(Array.isArray(a)){let c=a.find(p=>s[p])||void 0;return c&&s[c]}return s[a]}function i(s,a,c,p=0){let l=Object.keys(t);if(p===0)l.push("any"),l.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 u of l){let d=a[u]||o(a,SY[u]),f=r[u];if(!d)continue;let m,h,y,g=O(d);if(u==="ref"&&g&&d.skip)throw new Error("ref() visitor does not support skip");typeof d=="function"?m=d:g&&(m=d.enter,h=d.leave,y=d.skip);let P=(m?1:0)+(h?1:0)+(y?1:0),b=g&&Object.keys(d).length>P,x={activatedOn:null,type:t[u],parent:c,isSkippedLevel:!1};if(b&&i(s,d,x,p+1),c&&n(s,c.type,t[u],c),m||g){if(m&&typeof m!="function")throw new Error("DEV: should be function");f.enter.push({...s,visit:m||(()=>{}),skip:y,depth:p,context:x})}if(h){if(typeof h!="function")throw new Error("DEV: should be function");f.leave.push({...s,visit:h,depth:p,context:x})}}}}import xY from"node:path";var de=(e,t)=>{if(t)for(let r of Object.keys(t))O(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r]};function Se(e,t){if(t)for(let r of Object.keys(t))e.hasOwnProperty(r)&&(O(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r])}function mA(e){if(e.indexOf("/")>-1){let[t,r]=e.split("/");return{pluginId:t,configName:r}}else return{pluginId:"",configName:e}}function je(e,t){if(!t)return e;let r={};for(let n of Object.keys(e))r[`${t}/${n}`]=e[n];return r}function jl(e){let t={rules:{},oas2Rules:{},oas3_0Rules:{},oas3_1Rules:{},oas3_2Rules:{},async2Rules:{},async3Rules:{},arazzo1Rules:{},arazzo1_1Rules:{},overlay1Rules:{},openrpc1Rules:{},graphqlRules:{},preprocessors:{},oas2Preprocessors:{},oas3_0Preprocessors:{},oas3_1Preprocessors:{},oas3_2Preprocessors:{},async2Preprocessors:{},async3Preprocessors:{},arazzo1Preprocessors:{},arazzo1_1Preprocessors:{},overlay1Preprocessors:{},openrpc1Preprocessors:{},decorators:{},oas2Decorators:{},oas3_0Decorators:{},oas3_1Decorators:{},oas3_2Decorators:{},async2Decorators:{},async3Decorators:{},arazzo1Decorators:{},arazzo1_1Decorators:{},overlay1Decorators:{},openrpc1Decorators:{}};for(let r of e){if(O(r)&&"extends"in r&&r.extends!==void 0)throw new Error(`'extends' is not supported in shared configs yet:
|
|
115
|
-
${JSON.stringify(r,null,2)}`);de(t.rules,r.rules),de(t.oas2Rules,r.oas2Rules),Se(t.oas2Rules,r.rules),de(t.oas3_0Rules,r.oas3_0Rules),Se(t.oas3_0Rules,r.rules),de(t.oas3_1Rules,r.oas3_1Rules),Se(t.oas3_1Rules,r.rules),de(t.oas3_2Rules,r.oas3_2Rules),Se(t.oas3_2Rules,r.rules),de(t.async2Rules,r.async2Rules),Se(t.async2Rules,r.rules),de(t.async3Rules,r.async3Rules),Se(t.async3Rules,r.rules),de(t.arazzo1Rules,r.arazzo1Rules),Se(t.arazzo1Rules,r.rules),de(t.arazzo1_1Rules,r.arazzo1_1Rules),Se(t.arazzo1_1Rules,r.rules),de(t.overlay1Rules,r.overlay1Rules),Se(t.overlay1Rules,r.rules),de(t.openrpc1Rules,r.openrpc1Rules),Se(t.openrpc1Rules,r.rules),de(t.graphqlRules,r.graphqlRules),Se(t.graphqlRules,r.rules),de(t.preprocessors,r.preprocessors),de(t.oas2Preprocessors,r.oas2Preprocessors),Se(t.oas2Preprocessors,r.preprocessors),de(t.oas3_0Preprocessors,r.oas3_0Preprocessors),Se(t.oas3_0Preprocessors,r.preprocessors),de(t.oas3_1Preprocessors,r.oas3_1Preprocessors),Se(t.oas3_1Preprocessors,r.preprocessors),de(t.oas3_2Preprocessors,r.oas3_2Preprocessors),Se(t.oas3_2Preprocessors,r.preprocessors),de(t.async2Preprocessors,r.async2Preprocessors),Se(t.async2Preprocessors,r.preprocessors),de(t.async3Preprocessors,r.async3Preprocessors),Se(t.async3Preprocessors,r.preprocessors),de(t.arazzo1Preprocessors,r.arazzo1Preprocessors),Se(t.arazzo1Preprocessors,r.preprocessors),de(t.arazzo1_1Preprocessors,r.arazzo1_1Preprocessors),Se(t.arazzo1_1Preprocessors,r.preprocessors),de(t.overlay1Preprocessors,r.overlay1Preprocessors),Se(t.overlay1Preprocessors,r.preprocessors),de(t.openrpc1Preprocessors,r.openrpc1Preprocessors),Se(t.openrpc1Preprocessors,r.preprocessors),de(t.decorators,r.decorators),de(t.oas2Decorators,r.oas2Decorators),Se(t.oas2Decorators,r.decorators),de(t.oas3_0Decorators,r.oas3_0Decorators),Se(t.oas3_0Decorators,r.decorators),de(t.oas3_1Decorators,r.oas3_1Decorators),Se(t.oas3_1Decorators,r.decorators),de(t.oas3_2Decorators,r.oas3_2Decorators),Se(t.oas3_2Decorators,r.decorators),de(t.async2Decorators,r.async2Decorators),Se(t.async2Decorators,r.decorators),de(t.async3Decorators,r.async3Decorators),Se(t.async3Decorators,r.decorators),de(t.arazzo1Decorators,r.arazzo1Decorators),Se(t.arazzo1Decorators,r.decorators),de(t.arazzo1_1Decorators,r.arazzo1_1Decorators),Se(t.arazzo1_1Decorators,r.decorators),de(t.overlay1Decorators,r.overlay1Decorators),Se(t.overlay1Decorators,r.decorators),de(t.openrpc1Decorators,r.openrpc1Decorators),Se(t.openrpc1Decorators,r.decorators)}return t}var tg=class extends Error{};function hA(e){return new Map(JSON.parse(JSON.stringify([...e])))}function rg(e){return O(e)&&"id"in e}function yA(e){return typeof e=="function"}function ng({node:e,ctx:t,plugins:r}){if(!e.extends)return e;let n=(e.extends||[]).filter(Ge).map(o=>{if(!se(o)&&!xY.extname(o))return gA(o,r);let i=t.resolve({$ref:o});return i.location&&i.node!==void 0?i.node:null}).filter(Ge);return jl([...n.map(o=>ng({node:o,ctx:t,plugins:r})),{...e,extends:void 0}])}function Dl(e,t){if(O(e)&&Array.isArray(e.plugins)){let{plugins:r,rootConfigDir:n}=t.getVisitorData();r.push(...e.plugins.map(o=>Ul(o,t.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}var bA=Ht([{severity:"error",ruleId:lp,visitor:{ref:{},ConfigGovernance:{leave(e,t){Dl(e,t)}},ConfigApisProperties:{leave(e,t){Dl(e,t)}},[et.ScorecardClassicLevel]:{leave(e,t){Dl(e,t)}},ConfigRoot:{leave(e,t){Dl(e,t)}}}}],On);function Ll(e,t){if(O(e)&&e.extends){let{plugins:r,skipPluginEval:n}=t.getVisitorData();if(n)return;let o=ng({node:e,ctx:t,plugins:r});Object.assign(e,o),delete e.extends}}var vA=Ht([{severity:"error",ruleId:pp,visitor:{ref:{leave(e,t,r){ms(e,r,t)}},ConfigGovernance:{leave(e,t){Ll(e,t)}},ConfigApisProperties:{leave(e,t){Ll(e,t)}},[et.ScorecardClassicLevel]:{leave(e,t){Ll(e,t)}},ConfigRoot:{leave(e,t){Ll(e,t)}}}}],On);function og(e,t){return{prev:e,value:t}}function ig(e){return e?.prev??null}function wY(e){let t={};for(;e.parent;)t[e.parent.type.name]=e.parent.activatedOn?.value.node,e=e.parent;return t}function _Y(e){let t={};for(;e.parent;)e.parent.activatedOn?.value.location&&(t[e.parent.type.name]=e.parent.activatedOn?.value.location),e=e.parent;return t}function Kt(e){let{document:t,rootType:r,normalizedVisitors:n,resolvedRefMap:o,ctx:i}=e,s={},a=new Set,c=(h,y)=>`${h.name}::${y.absolutePointer}`,p=new Set,l=n.any.enter,u=n.any.leave,d={},f={};for(let h of Object.keys(n))h==="any"||h==="ref"||(d[h]=l.concat(n[h]?.enter||[]),f[h]=(n[h]?.leave||[]).concat(u));m(t.parsed,r,new zt(t.source,"#/"),void 0,"");function m(h,y,g,P,b){let x=(V,ce=w.source.absoluteRef)=>{if(!L(V))return{location:g,node:V};let Re=yn(ce,V.$ref),pe=o.get(Re);if(!pe)return{location:void 0,node:void 0};let{resolved:De,node:Lt,document:gt,nodePointer:C,error:M,chain:Le}=pe;return{location:De?new zt(gt.source,C):M instanceof Fr?new zt(M.source,""):void 0,node:Lt,error:M,chain:Le}},S=g,w=g,T=L(h),{node:_,location:$,error:E,chain:G}=x(h),F=new Set,ae=Ko(h)&&a.has(c(y,g));if(Ko(h)&&a.add(c(y,g)),T&&!ae){let V=n.ref.enter;for(let{visit:ce,ruleId:Re,severity:pe,message:De,context:Lt}of V)F.add(Lt),ce(h,{report:C=>R(Re,pe,De,C),resolve:x,rawNode:h,rawLocation:S,location:g,type:y,parent:P,key:b,parentLocations:{},specVersion:i.specVersion,config:i.config,getVisitorData:()=>pt(Re)},{node:_,location:$,error:E,chain:G}),$?.source.absoluteRef&&i.refTypes&&i.refTypes.set($?.source.absoluteRef,y)}if(_!==void 0&&$&&y.name!=="scalar"){let V=(C,M,Le,cr)=>{let k=Bt(y.properties,C);k===void 0&&(k=y.additionalProperties),typeof k=="function"&&(k=k(M,C)),k===void 0&&y.extensionsPrefix&&C.startsWith(y.extensionsPrefix)&&(k=lr),!ur(k)&&k?.directResolveAs&&(k=k.directResolveAs,M={$ref:M}),k&&k.name===void 0&&k.resolvable!==!1&&(k={name:"scalar",properties:{}}),!(!ur(k)||k.name==="scalar"&&!L(M))&&m(M,k,Le.child([C]),cr,C)};w=$;let ce=s[y.name]?.has?.(_),Re=!1,pe=d[y.name]||l.concat(n[y.name]?.enter||[]),De=[],Lt=`${w.absolutePointer}${w.pointer}`;for(let{context:C,visit:M,skip:Le,ruleId:cr,severity:k,message:xe}of pe){if(p.has(Lt))break;if(C.isSkippedLevel)C.parent.activatedOn&&!C.parent.activatedOn.value.nextLevelTypeActivated&&!C.seen.has(h)&&(C.seen.add(h),Re=!0,De.push(C));else if(C.parent&&C.parent.activatedOn&&C.activatedOn?.value.withParentNode!==C.parent.activatedOn.value.node&&C.parent.activatedOn.value.nextLevelTypeActivated?.value!==y||!C.parent&&!ce){De.push(C);let I={node:_,location:$,nextLevelTypeActivated:null,withParentNode:C.parent?.activatedOn?.value.node,skipped:(C.parent?.activatedOn?.value.skipped||Le?.(_,b,{location:g,rawLocation:S,resolve:x,rawNode:h}))??!1};C.activatedOn=og(C.activatedOn,I);let W=C.parent;for(;W;)W.activatedOn.value.nextLevelTypeActivated=og(W.activatedOn.value.nextLevelTypeActivated,y),W=W.parent;I.skipped||(Re=!0,F.add(C),A(M,_,h,C,cr,k,xe))}}if(Re||!ce){if(s[y.name]=s[y.name]||new Set,s[y.name].add(_),Array.isArray(_)){let C=y.items;if(C!==void 0){let M=typeof C=="function";for(let Le=0;Le<_.length;Le++){let cr=$.child([Le]),k=M?C(_[Le],cr.absolutePointer):C,xe=_[Le];k?.directResolveAs&&(k=k.directResolveAs,xe={$ref:xe}),ur(k)&&m(xe,k,cr,_,Le)}}}else if(O(_)){let C=Object.keys(y.properties);y.additionalProperties?C.push(...Object.keys(_).filter(M=>!C.includes(M))):y.extensionsPrefix&&C.push(...Object.keys(_).filter(M=>M.startsWith(y.extensionsPrefix)));for(let M of C){let Le=_[M];Le!==void 0&&V(M,Le,$,_)}}}if(T&&G?.length){let C=G[0];a.has(c(y,C.location))||m(C.node,y,C.location,void 0,b)}if(Ko(h)&&!ae)for(let C of Object.keys(h))C!=="$ref"&&h[C]!==_?.[C]&&V(C,h[C],g,h);let gt=f[y.name]||(n[y.name]?.leave||[]).concat(u);for(let C of De.reverse())if(C.isSkippedLevel)C.seen.delete(_);else if(C.activatedOn=ig(C.activatedOn),C.parent){let M=C.parent;for(;M;)M.activatedOn.value.nextLevelTypeActivated=ig(M.activatedOn.value.nextLevelTypeActivated),M=M.parent}for(let{context:C,visit:M,ruleId:Le,severity:cr,message:k}of gt)!C.isSkippedLevel&&F.has(C)&&A(M,_,h,C,Le,cr,k)}if(w=g,T&&!ae){let V=n.ref.leave;for(let{visit:ce,ruleId:Re,severity:pe,context:De,message:Lt}of V)F.has(De)&&ce(h,{report:C=>R(Re,pe,Lt,C),resolve:x,rawNode:h,rawLocation:S,location:g,type:y,parent:P,key:b,parentLocations:{},specVersion:i.specVersion,config:i.config,getVisitorData:()=>pt(Re)},{node:_,location:$,error:E,chain:G})}function A(V,ce,Re,pe,De,Lt,gt){V(ce,{report:M=>R(De,Lt,gt,M),resolve:x,rawNode:Re,location:w,rawLocation:S,type:y,parent:P,key:b,parentLocations:_Y(pe),specVersion:i.specVersion,config:i.config,ignoreNextVisitorsOnNode:()=>{p.add(`${w.absolutePointer}${w.pointer}`)},getVisitorData:()=>pt(De)},wY(pe),pe)}function R(V,ce,Re,pe){let Lt=(pe.location?Array.isArray(pe.location)?pe.location:[pe.location]:[{...w,reportOnKey:!1}]).map(C=>({...w,reportOnKey:!1,...C})),gt=pe.forceSeverity||ce;gt!=="off"&&i.problems.push({ruleId:pe.ruleId||V,severity:gt,...pe,message:Re?Re.replace("{{message}}",pe.message):pe.message,suggest:pe.suggest||[],location:Lt})}function pt(V){return i.visitorsData[V]=i.visitorsData[V]||{},i.visitorsData[V]}}}function SA(e){return e.trim().split(/\s+/).map(t=>t.replace(/^[a-z]/,r=>r.toUpperCase())).join("")}function sg(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";case"MediaTypesMap":return"mediaTypes";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;case"openrpc1":switch(e){case"ContentDescriptor":return"contentDescriptors";case"Schema":return"schemas";case"Example":return"examples";case"Link":return"links";case"ErrorObject":return"errors";case"ExamplePairing":return"examplePairingObjects";case"Tag":return"tags";default:return null}default:return null}}function xA({version:e,dereference:t,rootDocument:r,resolvedRefMap:n,keepUrlRefs:o,componentRenamingConflicts:i="warn",componentNamesStrategy:s="basename"}){let a,c,p=b=>b.chain?.[0]??{node:b.node,location:b.location},l=new Map,u=sg("Schema",e),d={ref:{leave(b,x,S){if(!S.location||S.node===void 0){Ao(S,x.report,x.location);return}let w=p(S);if(w.location.source===r.source&&w.location.source===x.location.source&&x.type.name!=="scalar"&&!t){vn(b.$ref).uri!==null&&b.$ref!==w.location.pointer&&(b.$ref=w.location.pointer);return}if(o&&se(b.$ref))return;let T=sg(x.type.name,e);T?t?(m(T,w,x),ms(b,w,x)):(b.$ref=m(T,w,x),f(b,S,x)):ms(b,w,x)}},Example:{leave(b,x){if(Qa(b)&&b.value===void 0){let S=x.resolve({$ref:b.externalValue});if(!S.location||S.node===void 0){Ao(S,x.report,x.location);return}if(o&&se(b.externalValue))return;b.value=x.resolve({$ref:b.externalValue}).node,delete b.externalValue}}},Root:{enter(b,x){c=x.location,e==="oas3"?a=b.components=b.components||{}:e==="oas2"?a=b:e==="async2"?a=b.components=b.components||{}:e==="async3"?a=b.components=b.components||{}:e==="arazzo1"?a=b.components=b.components||{}:e==="openrpc1"&&(a=b.components=b.components||{})}}};e==="oas3"&&(d.Discriminator={leave(b,x){if(typeof b.defaultMapping!="string"||!kr(b.defaultMapping))return;let S=x.resolve({$ref:b.defaultMapping});if(!S.location||S.node===void 0){Ao(S,x.report,x.location.child("defaultMapping"));return}b.defaultMapping=m(u,p(S),x)},DiscriminatorMapping:{leave(b,x){for(let S of Object.keys(b)){let w=b[S];if(!kr(w))continue;let T=x.resolve({$ref:w});if(!T.location||T.node===void 0){Ao(T,x.report,x.location.child(S));return}b[S]=m(u,p(T),x)}}}});function f(b,x,S){let w={resolved:!0,isRemote:!1,node:x.node,chain:x.chain,document:r,nodePointer:b.$ref};n.set(yn(S.location.source.absoluteRef,b.$ref),w),n.set(yn(r.source.absoluteRef,b.$ref),w)}function m(b,x,S){a[b]=a[b]||{};let w=P(x,b,S);return a[b][w]=x.node,e==="oas3"||e==="async2"||e==="async3"||e==="openrpc1"?`#/components/${b}/${w}`:`#/${b}/${w}`}function h(b,x,S){if(L(b)){let w=S.resolve(b,c.absolutePointer);if((w.location&&p(w).location)?.absolutePointer===x.location.absolutePointer)return!0}return ei(b,x.node)}function y(b,x,S){let{node:w}=b,T=O(w)&&Me(w.title)?w.title.trim():"",_=SA(T).replace(new RegExp(`[^${Pc}]`,"g"),"-"),$=b.location.child("title");return T===""?{key:_,problem:{message:"Schema must define a `title` when using `--component-names-strategy title`.",location:b.location,forceSeverity:"error"}}:x[_]&&!h(x[_],b,S)?{key:_,problem:{message:`Title "${T}" maps to component name \`${_}\`, already used by another schema. Rename one of the titles.`,location:$,from:l.get(_),forceSeverity:i}}:{key:_}}function g(b,x,S){let w=zg(b.location.pointer)||Fg(b.location.source.absoluteRef),T=w;for(let _=2;x[T]&&!h(x[T],b,S);_++)T=`${w}-${_}`;return{name:T,prevName:w}}function P(b,x,S){let w=a[x];if(s==="title"&&x===u){let{key:$,problem:E}=y(b,w,S);if(!E)return l.set($,b.location.child("title")),$;let{name:G}=g(b,w,S);return w[G]||(S.report(E),l.set(G,b.location)),G}let{name:T,prevName:_}=g(b,w,S);return!w[T]&&_!==T&&S.report({message:`Two schemas are referenced with the same name but different content. Renamed ${_} to ${T}.`,location:S.location,forceSeverity:i}),T}return d}async function ag(e){let{document:t,config:r,types:n,externalRefResolver:o,dereference:i=!1,removeUnusedComponents:s=!1,keepUrlRefs:a=!1,componentRenamingConflicts:c,componentNamesStrategy:p="basename"}=e,l=ln(t.parsed),u=fa(l),d=r.getRulesForSpecVersion(u),f=Zr(r.extendTypes(n,l),r),m=Bo(d,r,"preprocessors",l),h=Bo(d,r,"decorators",l),y={problems:[],specVersion:l,config:r,refTypes:new Map,visitorsData:{}},g=await sr({rootDocument:t,rootType:f.Root,externalRefResolver:o});m.length>0&&(Kt({document:t,rootType:f.Root,normalizedVisitors:Ht(m,f),resolvedRefMap:g,ctx:y}),g=await sr({rootDocument:t,rootType:f.Root,externalRefResolver:o}));let P=Ht([{severity:"error",ruleId:"bundler",visitor:xA({version:u,dereference:i,rootDocument:t,resolvedRefMap:g,keepUrlRefs:a,componentRenamingConflicts:c,componentNamesStrategy:p})},...h.filter(b=>b.ruleId!=="remove-unused-components")],f);if(Kt({document:t,rootType:f.Root,normalizedVisitors:P,resolvedRefMap:g,ctx:y}),s||r.getDecoratorSettings("remove-unused-components",l).severity!=="off"){let b=await sr({rootDocument:t,rootType:f.Root,externalRefResolver:o}),x=Ht([{severity:"error",ruleId:"remove-unused-components",visitor:u==="oas2"?Ep({}):$p({})}],f);Kt({document:t,rootType:f.Root,normalizedVisitors:x,resolvedRefMap:b,ctx:y})}return{bundle:t,problems:y.problems.map(b=>r.addProblemToIgnore(b)),fileDependencies:o.getFiles(),rootType:f.Root,refTypes:y.refTypes,visitorsData:y.visitorsData}}function wA(e,t,r){let n={plugins:[],rootConfigDir:r},o={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[lp]:n}};return Kt({document:e,rootType:On.ConfigRoot,normalizedVisitors:bA,resolvedRefMap:t,ctx:o}),n.plugins}function _A(e,t,r,n=!1){let o={plugins:r,skipPluginEval:n},i={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[pp]:o}};return Kt({document:e,rootType:On.ConfigRoot,normalizedVisitors:vA,resolvedRefMap:t,ctx:i}),e.parsed??{}}async function PY(e){let{ref:t,doc:r,externalRefResolver:n=new jt(e.config.resolve),base:o=null}=e;if(!(t||r))throw new Error(`Document or reference is required.
|
|
116
|
-
`);let i=r===void 0?await n.resolveDocument(o,t,!0):r;if(i instanceof Error)throw i;return e.collectSpecData?.(i),ag({document:i,...e,externalRefResolver:n,types:po(ln(i.parsed))})}function zl(e){return!Me(e)}import*as PA from"node:url";var cg=new Map,EY="v",$Y=0;function EA(e){return cg.has(e)}function $A(e){return cg.get(e)}function AA(e,t){cg.set(e,t)}async function TA(e){let t=PA.pathToFileURL(e);return t.searchParams.set(EY,String($Y)),import(t.href)}async function lg({rawConfigDocument:e,configPath:t,externalRefResolver:r,customExtends:n,skipPluginEval:o}){let i=e===void 0?aw:e.parsed;if(n!==void 0&&O(i)&&(i.extends=n),O(i)&&(i?.extends?.some(zl)||i?.scorecardClassic?.levels?.some(f=>f?.extends?.some(zl))||i?.scorecard?.levels?.some(f=>f?.extends?.some(zl))))throw new Error("Configuration format not detected in extends: values must be strings.");let s=e??{source:new Yn(t??"",JSON.stringify(i)),parsed:i},a=await sr({rootDocument:s,rootType:On.ConfigRoot,externalRefResolver:r??new jt(up(i?.resolve))}),c=[],p,l="";Je?p=[...(i?.plugins||[]).filter(m=>!Me(m)),eg]:(l=$t.dirname(t??""),c=wA(s,a,l),p=[...await kA(c.map(m=>RA(m)?m.absolutePath:m),l,o),eg]);let u=_A(s,hA(a),p,o);u.apis&&!o&&(u.apis=Object.fromEntries(Object.entries(u.apis).map(([f,m])=>{let h=jl([u,m]);return[f,{...m,...h}]})));let d=c.length?c.map(f=>RA(f)&&f.isModule?f.rawPath:f.absolutePath&&$t.relative(l,f.absolutePath)).filter(Ut):void 0;return{resolvedConfig:{...u,plugins:d},resolvedRefMap:a,plugins:p}}function TY(e){for(let t of pw){let r=$t.resolve(e,t);if(pg.existsSync(r))return t}}function RA(e){return"isModule"in e}var Ul=(e,t,r)=>{if(!Me(e))return e;let n=$t.resolve($t.dirname(t),e);if(pg.existsSync(n))return{absolutePath:n,rawPath:e,isModule:!1};try{return{absolutePath:AY.createRequire(import.meta.url??__dirname).resolve(e,{paths:[r,import.meta.url?$t.dirname(OA.fileURLToPath(import.meta.url)):__dirname]}),isModule:!0,rawPath:e}}catch{throw new Error(`Plugin "${e}" not found.`)}};async function kA(e,t,r=!1){if(!e)return[];let n=async c=>{if(!Me(c))return c;try{let p=$t.isAbsolute(c)?c:Ul(c,$t.join(t,Ri),t).absolutePath;if(!EA(p)){let l=await TA(p),u=l.default||l,d={contentDir:t},f=Array.isArray(u)?u:[u];for(let y of f)y?.id&&rg(y)&&Q.info(`Deprecated plugin format detected: ${y.id}
|
|
117
|
-
`);let m=rg(u)?u:yA(u)?await u(d):await u?.default?.(d),h=Array.isArray(m)?m:[m];m&&AA(p,h.map(y=>({...y,path:c,absolutePath:p})))}return $A(p)}catch(p){throw new Error(`Failed to load plugin "${c}": ${p.message}
|
|
118
|
-
|
|
119
|
-
${p.stack}`)}},o=new Map,i=TY(t);i&&e.push(i);let s=new Set;if(r){let c=[];for(let p of e){if(!Me(p)){c.push(p);continue}let l=$t.isAbsolute(p)?p:Ul(p,$t.join(t,Ri),t).absolutePath;s.has(l)||(s.add(l),c.push({absolutePath:l}))}return c}return(await Promise.all(e.map(async c=>{if(Me(c)){if(se(c))throw new Error(Y.red("We don't support remote plugins yet."));if(s.has(c))return;s.add(c)}let p=await n(c);if(!p)return;let l=Array.isArray(p)?p:[p];return(await Promise.all(l.map(async u=>{if(!u)return;let d=u.id;if(typeof d!="string")throw new Error(Y.red(`Plugin must define \`id\` property in ${Y.blue(c.toString())}.`));let f=u.absolutePath??c.toString(),m=o.get(d);if(m){if(f!==m)throw new Error(Y.red(`Plugin "id" must be unique. Plugin ${Y.blue(f)} uses id "${Y.blue(d)}" already seen in ${Y.blue(f)}`));return}o.set(d,f);let h={id:d,...u.configs?{configs:u.configs}:{},...u.typeExtension?{typeExtension:u.typeExtension}:{}};if(u.rules){if(!u.rules.oas3&&!u.rules.oas2&&!u.rules.async2&&!u.rules.async3&&!u.rules.arazzo1&&!u.rules.overlay1&&!u.rules.openrpc1&&!u.rules.graphql)throw new Error(`Plugin rules must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo\`, \`overlay1\`, \`openrpc1\`, or \`graphql\` rules "${c}.`);h.rules={},u.rules.oas3&&(h.rules.oas3=je(u.rules.oas3,d)),u.rules.oas2&&(h.rules.oas2=je(u.rules.oas2,d)),u.rules.async2&&(h.rules.async2=je(u.rules.async2,d)),u.rules.async3&&(h.rules.async3=je(u.rules.async3,d)),u.rules.arazzo1&&(h.rules.arazzo1=je(u.rules.arazzo1,d)),u.rules.overlay1&&(h.rules.overlay1=je(u.rules.overlay1,d)),u.rules.openrpc1&&(h.rules.openrpc1=je(u.rules.openrpc1,d)),u.rules.graphql&&(h.rules.graphql=je(u.rules.graphql,d))}if(u.preprocessors){if(!u.preprocessors.oas3&&!u.preprocessors.oas2&&!u.preprocessors.async2&&!u.preprocessors.async3&&!u.preprocessors.arazzo1&&!u.preprocessors.overlay1&&!u.preprocessors.openrpc1)throw new Error(`Plugin \`preprocessors\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` preprocessors "${c}.`);h.preprocessors={},u.preprocessors.oas3&&(h.preprocessors.oas3=je(u.preprocessors.oas3,d)),u.preprocessors.oas2&&(h.preprocessors.oas2=je(u.preprocessors.oas2,d)),u.preprocessors.async2&&(h.preprocessors.async2=je(u.preprocessors.async2,d)),u.preprocessors.async3&&(h.preprocessors.async3=je(u.preprocessors.async3,d)),u.preprocessors.arazzo1&&(h.preprocessors.arazzo1=je(u.preprocessors.arazzo1,d)),u.preprocessors.overlay1&&(h.preprocessors.overlay1=je(u.preprocessors.overlay1,d)),u.preprocessors.openrpc1&&(h.preprocessors.openrpc1=je(u.preprocessors.openrpc1,d))}if(u.decorators){if(!u.decorators.oas3&&!u.decorators.oas2&&!u.decorators.async2&&!u.decorators.async3&&!u.decorators.arazzo1&&!u.decorators.overlay1&&!u.decorators.openrpc1)throw new Error(`Plugin \`decorators\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` decorators "${c}.`);h.decorators={},u.decorators.oas3&&(h.decorators.oas3=je(u.decorators.oas3,d)),u.decorators.oas2&&(h.decorators.oas2=je(u.decorators.oas2,d)),u.decorators.async2&&(h.decorators.async2=je(u.decorators.async2,d)),u.decorators.async3&&(h.decorators.async3=je(u.decorators.async3,d)),u.decorators.arazzo1&&(h.decorators.arazzo1=je(u.decorators.arazzo1,d)),u.decorators.overlay1&&(h.decorators.overlay1=je(u.decorators.overlay1,d)),u.decorators.openrpc1&&(h.decorators.openrpc1=je(u.decorators.openrpc1,d))}return u.assertions&&(h.assertions=u.assertions),{...u,...h}}))).filter(Ut)}))).filter(Ut).flat()}function gA(e,t){let{pluginId:r,configName:n}=mA(e),o=t.find(s=>s.id===r);if(!o)throw new Error(`Invalid config ${Y.red(e)}: plugin ${r} is not included.`);let i=o.configs?.[n];if(!i)throw new Error(r?`Invalid config ${Y.red(e)}: plugin ${r} doesn't export config with name ${n}.`:`Invalid config ${Y.red(e)}: there is no such built-in config.`);return i}function RY(e,t){let r=Object.create(null);for(let n of Object.keys(e)){let o=e[n],i=se(n)?n:Ja(t,n);r[i]=Object.create(null);for(let s of Object.keys(o))r[i][s]=new Set(o[s])}return r}async function CA(e,t){let r=e?nu(e):Je?"":process.cwd(),n=r?Ja(r,la):la;if(Ha?.existsSync&&!se(n)&&!Ha.existsSync(n))return{};let o=await t.resolveDocument(null,n,!0);return o instanceof Error||!o.parsed?{}:RY(o.parsed||{},r)}async function OY(e={}){let{configPath:t=qA(),customExtends:r,externalRefResolver:n,skipPluginEval:o}=e,i=n??new jt,s=t?await i.resolveDocument(null,t,!0):void 0;if(s instanceof Error)throw s;let{resolvedConfig:a,resolvedRefMap:c,plugins:p}=await lg({rawConfigDocument:s?MA(s):void 0,customExtends:r,configPath:t,externalRefResolver:n,skipPluginEval:o}),l=await CA(t,i);return new Oi(a,{configPath:t,document:s,resolvedRefMap:c,plugins:p,ignore:l})}function qA(e){if(!Ha?.existsSync)return;let t=e?IA.resolve(e,Ri):Ri;return Ha.existsSync(t)?t:void 0}async function NA(e,{configPath:t,externalRefResolver:r,ignore:n}={}){let i=Do(typeof e=="string"?e:"",t??"");typeof e!="string"&&e&&(i.parsed=e);let{resolvedConfig:s,resolvedRefMap:a,plugins:c}=await lg({rawConfigDocument:MA(i),configPath:t,externalRefResolver:r});return new Oi(s,{configPath:t,document:i,resolvedRefMap:a,plugins:c,ignore:n})}function MA(e){if(!e.parsed)return e;let{plugins:t,resolve:r,...n}=e.parsed,o={...structuredClone(n),plugins:t?.slice(),...r&&{resolve:{...r}}};return{...e,parsed:o}}var Vo=Rr(rR(),1);var yJ=150,gJ=3;function Xl(e,t){Ps.enabled=t;let{start:r,end:n={line:r.line,col:r.col+1},source:o}=e,i=o.getLines(),s=r.line,a=Math.max(Math.min(n.line,i.length),r.line),c=Math.max(a-s-gJ+1,0);c<2&&(c=0);let p=[],l=0;for(let d=s;d<=a&&!(c>0&&d>=a-c);d++){let f=i[d-1]||"";f!==""&&(l=Jl(f));let m=d===s?r.col-1:l,h=d===a?n.col-1:f.length;p.push([`${d}`,u(f,m,h,Y.red)]),t||p.push(["",nR(f,m,h)])}return c>0&&(p.push(["\u2026",`${jg(l)}${Y.gray(`< ${c} more lines >`)}`]),p.push([`${a}`,u(i[a-1],-1,n.col-1,Y.red)]),t||p.push(["",nR(i[a-1],-1,n.col-1)])),bJ([[`${s-2}`,u(i[s-1-2])],[`${s-1}`,u(i[s-1-1])],...p,[`${a+1}`,u(i[a-1+1])],[`${a+2}`,u(i[a-1+2])]]);function u(d,f=-1,m=1/0,h=Y.gray){return!t||!d?d:(f===-1&&(f=Jl(d)),m=Math.min(m,d.length),d.substr(0,f)+h(d.substring(f,m))+d.substr(m))}}function bJ(e){let t=e.filter(([o,i])=>i!==void 0),r=Math.max(...t.map(([o])=>o.length)),n=Math.min(...t.map(([o,i])=>i===""?1/0:Jl(i)));return t.map(([o,i])=>Y.gray(SJ(r,o)+" |")+(i?" "+vJ(i.substring(n)):"")).join(`
|
|
120
|
-
`)}function vJ(e,t=yJ){let r=e.length-t;if(r>0){let n=Y.gray(`...<${r} chars>`);return e.substring(0,t-n.length)+n}else return e}function nR(e,t=-1,r=1/0){return t===-1&&(t=Jl(e)),r=Math.min(r,e.length),jg(t)+"^".repeat(Math.max(r-t,1))}function jg(e){return" ".repeat(e)}function SJ(e,t){return jg(e-t.length)+t}function Jl(e){for(let t=0;t<e.length;t++)if(e[t]!==" ")return t;return e.length}function bn(e){if(e.pointer===void 0)return e;let{source:t,pointer:r,reportOnKey:n}=e,o=t.getAst(Vo.safeLoad),i=oR(o,r,!!n);return{...e,pointer:void 0,...xJ(t.body,i?.startPosition??1,i?.endPosition??1)}}function xJ(e,t,r){let n=1,o=1,i={line:1,col:1};for(let a=0;a<r-1;a++){if(a===t-1&&(i={line:n,col:o+1}),e[a]===`
|
|
121
|
-
`){n++,o=1,a===t-1&&(i={line:n,col:o}),e[a+1]==="\r"&&a++;continue}o++}let s=t===r?{...i}:{line:n,col:o+1};return{start:i,end:s}}function oR(e,t,r){let n=ru(t.substr(2));if(e===void 0)return;let o=e;for(let i of n)if(o.kind===Vo.Kind.MAP){let s=o.mappings.find(a=>a.key.value===i);if(!s||(o=s,!s?.value))break;o=s.value}else if(o.kind===Vo.Kind.SEQ){let s=o.items[parseInt(i,10)];if(!s)break;o=s}if(r){let i=o.parent;return!i||i.kind===Vo.Kind.SEQ?o:i.kind===Vo.Kind.MAPPING?i.key:o}else return o}import*as $r from"node:path";var wJ={INVALID_SEVERITY_LEVEL:"Invalid severity level; accepted values: error or warn"},iR={warn:e=>Y.bgYellow(Y.black(e)),error:Y.bgRed},sR={warn:Y.yellow,error:Y.red},fs={warn:"Warning",error:"Error"},_J={error:"critical",warn:"minor"},PJ=+(_s.REDOCLY_CLI_LINT_MAX_SUGGESTIONS??5);function Zl(e){return e==="error"?1:2}function aR(e){let t=0,r=0,n=0;for(let o of e){if(o.ignored){n++;continue}o.severity==="error"&&t++,o.severity==="warn"&&r++}return{errors:t,warnings:r,ignored:n}}function EJ(e,t){let{maxProblems:r=100,cwd:n=Je?"":process.cwd(),format:o="codeframe",color:i=Ps.enabled,totals:s=aR(e),version:a="2.0",command:c}=t;Ps.enabled=i;let p=e.length;e=e.filter(b=>!b.ignored);let l=p-e.length;if(e=e.sort((b,x)=>Zl(b.severity)-Zl(x.severity)).slice(0,r),!p&&o!=="json"&&o!=="junit")return;switch(o){case"json":d();break;case"codeframe":for(let b=0;b<e.length;b++){let x=e[b];c==="bundle"?Q.info(`${m(x,b)}
|
|
122
|
-
`):Q.output(`${m(x,b)}
|
|
123
|
-
`)}break;case"stylish":{let b=Dg(e);for(let[x,{ruleIdPad:S,locationPad:w,fileProblems:T}]of Object.entries(b)){Q.output(`${Y.blue(se(x)?x:$r.relative(n,x))}:
|
|
124
|
-
`);for(let _=0;_<T.length;_++){let $=T[_];Q.output(`${h($,w,S)}
|
|
125
|
-
`)}Q.output(`
|
|
126
|
-
`)}break}case"markdown":{let b=Dg(e);for(let[x,{fileProblems:S}]of Object.entries(b)){Q.output(`## Lint: ${se(x)?x:$r.relative(n,x)}
|
|
127
|
-
|
|
128
|
-
`),Q.output(`| Severity | Location | Problem | Message |
|
|
129
|
-
`),Q.output(`|---|---|---|---|
|
|
130
|
-
`);for(let w=0;w<S.length;w++){let T=S[w];Q.output(`${y(T)}
|
|
131
|
-
`)}Q.output(`
|
|
132
|
-
`),s.errors>0?Q.output(`Validation failed
|
|
133
|
-
Errors: ${s.errors}
|
|
134
|
-
`):Q.output(`Validation successful
|
|
135
|
-
`),s.warnings>0&&Q.output(`Warnings: ${s.warnings}
|
|
136
|
-
`),Q.output(`
|
|
137
|
-
`)}break}case"checkstyle":{let b=Dg(e);Q.output(`<?xml version="1.0" encoding="UTF-8"?>
|
|
138
|
-
`),Q.output(`<checkstyle version="4.3">
|
|
139
|
-
`);for(let[x,{fileProblems:S}]of Object.entries(b))Q.output(`<file name="${Er(se(x)?x:$r.relative(n,x))}">
|
|
140
|
-
`),S.forEach(g),Q.output(`</file>
|
|
141
|
-
`);Q.output(`</checkstyle>
|
|
142
|
-
`);break}case"junit":{let b=e.filter(w=>w.severity==="error").length,x=e.filter(w=>w.severity==="warn").length,S={};for(let w of e){let T=w.location[0].source.absoluteRef;S[T]||(S[T]=[]),S[T].push(w)}Q.output(`<?xml version="1.0" encoding="UTF-8"?>
|
|
143
|
-
`),Q.output(`<testsuites name="redocly lint" tests="${e.length}" errors="${b}" failures="${x}" skipped="0">
|
|
144
|
-
`);for(let[w,T]of Object.entries(S)){let _=se(w)?w:$r.relative(n,w),$=T.filter(G=>G.severity==="error").length,E=T.filter(G=>G.severity==="warn").length;Q.output(`<testsuite name="${Er(_)}" tests="${T.length}" errors="${$}" failures="${E}">
|
|
145
|
-
`),T.forEach(G=>P(G,_)),Q.output(`</testsuite>
|
|
146
|
-
`)}Q.output(`</testsuites>
|
|
147
|
-
`);break}case"codeclimate":u();break;case"summary":$J(e);break;case"github-actions":TJ(e,n)}p-l>r&&Q.info(`< ... ${p-r} more problems hidden > ${Y.gray("increase with `--max-problems N`")}
|
|
148
|
-
`);function u(){let b=e.map(x=>{let S=x.location[0],w=bn(S);return{description:x.message,location:{path:se(S.source.absoluteRef)?S.source.absoluteRef:$r.relative(n,S.source.absoluteRef),lines:{begin:w.start.line}},severity:_J[x.severity],fingerprint:`${x.ruleId}${x.location.length>0?"-"+x.location[0].pointer:""}`}});Q.output(JSON.stringify(b,null,2))}function d(){let b={totals:s,version:a,problems:e.map(x=>{let S={...x,location:x.location.map(w=>({...w,source:{ref:se(w.source.absoluteRef)?w.source.absoluteRef:$r.relative(n,w.source.absoluteRef)}})),from:x.from?{...x.from,source:{ref:se(x.from?.source.absoluteRef)?x.from?.source.absoluteRef:$r.relative(n,x.from?.source.absoluteRef||n)}}:void 0};if(_s.FORMAT_JSON_WITH_CODEFRAMES){let w=x.location[0],T=bn(w);S.codeframe=Xl(T,i)}return S})};Q.output(JSON.stringify(b,null,2))}function f(b){let{severity:x}=b;if(!iR[x])throw new Error(wJ.INVALID_SEVERITY_LEVEL);return iR[x]}function m(b,x){let S=f(b),w=b.location[0],T=se(w.source.absoluteRef)?w.source.absoluteRef:$r.relative(n,w.source.absoluteRef),_=bn(w),$=w.pointer?Y.gray(`at ${w.pointer}`):"",E=`${T}:${_.start.line}:${_.start.col}`;return`[${x+1}] ${S(E)} ${$}
|
|
149
|
-
|
|
150
|
-
${b.message}
|
|
151
|
-
|
|
152
|
-
`+cR(b)+Xl(_,i)+`
|
|
153
|
-
|
|
154
|
-
`+AJ(n,b.from)+`${fs[b.severity]} was generated by the ${Y.blue(b.ruleId)} rule.
|
|
155
|
-
|
|
156
|
-
`+(b.reference?`Reference: ${Y.blue(b.reference)}
|
|
157
|
-
|
|
158
|
-
`:"")}function h(b,x,S){let w=sR[b.severity];if(!fs[b.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";let T=w(fs[b.severity].toLowerCase().padEnd(7)),{start:_}=b.location[0];return` ${`${_.line}:${_.col}`.padEnd(x)} ${T} ${b.ruleId.padEnd(S)} ${b.message}`}function y(b){if(!fs[b.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";let x=fs[b.severity].toLowerCase(),{start:S}=b.location[0];return`| ${x} | line ${`${S.line}:${S.col}`} | [${b.ruleId}](https://redocly.com/docs/cli/rules/${b.ruleId}/) | ${b.message.replaceAll(`
|
|
159
|
-
`,"<br>")} |`}function g(b){let{line:x,col:S}=b.location[0].start,w=b.severity=="warn"?"warning":"error",T=Er(b.message),_=Er(b.ruleId);Q.output(`<error line="${x}" column="${S}" severity="${w}" message="${T}" source="${_}" />
|
|
160
|
-
`)}function P(b,x){let S=b.location[0],{start:w}=bn(S),T=b.severity==="error"?"error":"failure",_=Er(b.ruleId),$=Er(b.message),E=[`Rule: ${_}`,`Severity: ${Er(b.severity)}`,`File: ${Er(x)}`,`Line: ${w.line}`,`Column: ${w.col}`];S.pointer&&E.push(`Pointer: ${Er(S.pointer)}`),E.push(`Message: ${$}`),Q.output(`<testcase classname="${_}" name="${_}" file="${Er(x)}" line="${w.line}">
|
|
161
|
-
`),Q.output(`<${T} message="${$}" type="${_}">${E.join(`
|
|
162
|
-
`)}</${T}>
|
|
163
|
-
`),Q.output(`</testcase>
|
|
164
|
-
`)}}function $J(e){let t={};for(let n of e)t[n.ruleId]=t[n.ruleId]||{count:0,severity:n.severity},t[n.ruleId].count++;let r=Object.entries(t).sort(([,n],[,o])=>Zl(n.severity)-Zl(o.severity)||o.count-n.count);for(let[n,o]of r){let i=sR[o.severity],s=i(fs[o.severity].toLowerCase().padEnd(7));Q.output(`${s} ${n}: ${o.count}
|
|
165
|
-
`)}Q.output(`
|
|
166
|
-
`)}function AJ(e,t){if(!t)return"";let r=$r.relative(e,t.source.absoluteRef),n=bn(t),o=`${r}:${n.start.line}:${n.start.col}`,i=t.pointer?Y.gray(`at ${t.pointer}`):"";return`referenced from ${Y.blue(o)} ${i}
|
|
167
|
-
|
|
168
|
-
`}function cR(e){return e.suggest.length===0?"":e.suggest.length===1?`Did you mean: ${e.suggest[0]} ?
|
|
169
|
-
|
|
170
|
-
`:`Did you mean:
|
|
171
|
-
- ${e.suggest.slice(0,PJ).join(`
|
|
172
|
-
- `)}
|
|
173
|
-
|
|
174
|
-
`}var Dg=e=>{let t={};for(let r of e){let n=r.location[0].source.absoluteRef;t[n]=t[n]||{fileProblems:[],ruleIdPad:0,locationPad:0};let o={...r,location:r.location.map(bn)};t[n].fileProblems.push(o),t[n].ruleIdPad=Math.max(r.ruleId.length,t[n].ruleIdPad),t[n].locationPad=Math.max(Math.max(...o.location.map(i=>`${i.start.line}:${i.start.col}`.length)),t[n].locationPad)}return t};function Er(e){return e.replace(/[<>&"'\x00-\x1F\x7F\u0080-\uFFFF]/gu,t=>{switch(t){case"<":return"<";case">":return">";case"&":return"&";case'"':return""";case"'":return"'";default:return`&#${t.charCodeAt(0)};`}})}function TJ(e,t){for(let s of e)for(let a of s.location.map(bn)){let c;switch(s.severity){case"error":c="error";break;case"warn":c="warning";break}let p=cR(s),l=s.reference?`Reference: ${s.reference}
|
|
175
|
-
|
|
176
|
-
`:"",u=s.message+(p!==""||l!==""?`
|
|
177
|
-
|
|
178
|
-
`:"")+p+l,d={title:s.ruleId,file:se(a.source.absoluteRef)?a.source.absoluteRef:$r.relative(t,a.source.absoluteRef),line:a.start.line,col:a.start.col,endLine:a.end?.line,endColumn:a.end?.col};Q.output(`::${c} ${r(d)}::${o(u)}
|
|
179
|
-
`)}function r(s){return Object.entries(s).filter(([,a])=>a!=null).map(([a,c])=>`${a}=${i(c)}`).join(",")}function n(s){return s==null?"":typeof s=="string"||s instanceof String?s:JSON.stringify(s)}function o(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function i(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}var{theme:$fe,...RJ}=pi.properties,OJ={...pi,properties:RJ};async function pR(e){let{ref:t,externalRefResolver:r=new jt(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),eu({document:n,...e,externalRefResolver:r})}async function kJ(e){let{source:t,absoluteRef:r,externalRefResolver:n=new jt(e.config.resolve)}=e,o=Do(t,r||"/");return eu({document:o,...e,externalRefResolver:n})}async function eu(e){let{document:t,customTypes:r,externalRefResolver:n,config:o}=e;if(is(t.source.absoluteRef)){let{lintGraphqlDocument:f}=await import("./UYZXI3NO.js");return f({document:t,config:o})}let i=ln(t.parsed),s=o.getRulesForSpecVersion(fa(i)),a=Zr(o.extendTypes(r??po(i),i),o),c={problems:[],specVersion:i,config:o,visitorsData:{}},p=Bo(s,o,"preprocessors",i),l=Bo(s,o,"rules",i),u=await sr({rootDocument:t,rootType:a.Root,externalRefResolver:n});p.length>0&&(Kt({document:t,rootType:a.Root,normalizedVisitors:Ht(p,a),resolvedRefMap:u,ctx:c}),u=await sr({rootDocument:t,rootType:a.Root,externalRefResolver:n}));let d=Ht(l,a);return Kt({document:t,rootType:a.Root,normalizedVisitors:d,resolvedRefMap:u,ctx:c}),c.problems.map(f=>o.addProblemToIgnore(f))}async function IJ(e){let{severity:t,externalRefResolver:r=new jt,config:n}=e;if(!n.document)throw new Error("Config document is not set.");let o={problems:[],specVersion:"config",config:n,visitorsData:{}},i=Zr(e.externalConfigTypes||cp(OJ,n)),s=[{severity:t||"error",ruleId:"configuration struct",visitor:it({severity:"error"})},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:ot({severity:"error"})}],a=Ht(s,i),c=n.resolvedRefMap||await sr({rootDocument:n.document,rootType:i.ConfigRoot,externalRefResolver:r});return Kt({document:n.document,rootType:i.ConfigRoot,normalizedVisitors:a,resolvedRefMap:c,ctx:o}),o.problems}var Lg=class extends Error{};export{kk as a,ei as b,O as c,Ft as d,so as e,Ik as f,Me as g,Ge as h,Es as i,Ck as j,Xu as k,qk as l,Je as m,ld as n,ao as o,Zr as p,L as q,Ug as r,se as s,kr as t,po as u,Fs as v,df as w,Wm as x,FH as y,VH as z,BH as A,io as B,pc as C,B1 as D,H1 as E,X1 as F,Z1 as G,ek as H,tk as I,rk as J,nk as K,ok as L,ik as M,Gu as N,Q as O,Fr as P,fa as Q,ln as R,p$ as S,Va as T,is as U,ql as V,jt as W,sr as X,Ht as Y,tg as Z,Kt as _,ag as $,PY as aa,OY as ba,NA as ca,bn as da,aR as ea,EJ as fa,Er as ga,pR as ha,kJ as ia,eu as ja,IJ as ka,Lg as la};
|
|
180
|
-
/*! Bundled license information:
|
|
181
|
-
|
|
182
|
-
js-yaml/dist/js-yaml.mjs:
|
|
183
|
-
(*! js-yaml 5.2.2 https://github.com/nodeca/js-yaml @license MIT *)
|
|
184
|
-
*/
|