@redocly/openapi-docs 3.25.0-next.2 → 3.25.0-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{redocly-openapi-docs.min.AiChatProvider-C_KLy-F0.js → redocly-openapi-docs.min.AiChatProvider-BtZYXzQL.js} +1 -1
- package/dist/{redocly-openapi-docs.min.AiChatSqliteDBStorage-xPx3J3uK.js → redocly-openapi-docs.min.AiChatSqliteDBStorage-CMWIhurV.js} +1 -1
- package/dist/{redocly-openapi-docs.min.AiPanel-BmK852q6.js → redocly-openapi-docs.min.AiPanel-CzVBo_SJ.js} +1 -1
- package/dist/{redocly-openapi-docs.min.FileWatcher-BtXjqGQC.js → redocly-openapi-docs.min.FileWatcher-DjTW24VD.js} +1 -1
- package/dist/{redocly-openapi-docs.min.SemanticSearchService-gLmwyYO3.js → redocly-openapi-docs.min.SemanticSearchService-BdbJAsUF.js} +1 -1
- package/dist/{redocly-openapi-docs.min.SqliteDBStorage-DfF4kq1F.js → redocly-openapi-docs.min.SqliteDBStorage-DicEB6xf.js} +1 -1
- package/dist/{redocly-openapi-docs.min.TauriFileSystemAdapter-DZLjNpl_.js → redocly-openapi-docs.min.TauriFileSystemAdapter-Bzf6nZVE.js} +1 -1
- package/dist/{redocly-openapi-docs.min.TauriRootStorage-DMQv9g_J.js → redocly-openapi-docs.min.TauriRootStorage-Cg1lmYY7.js} +1 -1
- package/dist/{redocly-openapi-docs.min.ai-chat-mappers-O-bg124u.js → redocly-openapi-docs.min.ai-chat-mappers-BfCwakK5.js} +1 -1
- package/dist/{redocly-openapi-docs.min.external-resolver-D89x3qoA.js → redocly-openapi-docs.min.external-resolver-DftxHgbt.js} +1 -1
- package/dist/{redocly-openapi-docs.min.index-DbxjaOoh.js → redocly-openapi-docs.min.index-BXAn8eur.js} +11 -11
- package/dist/{redocly-openapi-docs.min.index-BBNK1d3n.js → redocly-openapi-docs.min.index-BnxwvVhR.js} +1 -1
- package/dist/{redocly-openapi-docs.min.index-D4_45rLR.js → redocly-openapi-docs.min.index-CHKNddXa.js} +1 -1
- package/dist/redocly-openapi-docs.min.index-U6ORLz-U.js +1 -0
- package/dist/redocly-openapi-docs.min.js +1 -1
- package/dist/{redocly-openapi-docs.min.lint-graphql-1y6KKl09.js → redocly-openapi-docs.min.lint-graphql-BLIlXit9.js} +1 -1
- package/dist/redocly-openapi-docs.min.lint-jyJiMT1p.js +174 -0
- package/dist/{redocly-openapi-docs.min.respect-run-BdIceoa0.js → redocly-openapi-docs.min.respect-run-CTD2qNkS.js} +1 -1
- package/dist/{redocly-openapi-docs.min.standalone-crUOAFz-.js → redocly-openapi-docs.min.standalone-CS00-kVE.js} +709 -600
- package/dist/{redocly-openapi-docs.min.tauri-path-BjTOYabX.js → redocly-openapi-docs.min.tauri-path-Dw7ZXd_2.js} +1 -1
- package/dist/{redocly-openapi-docs.min.useAiChatQueries-Rfa850wl.js → redocly-openapi-docs.min.useAiChatQueries-BH1oro3k.js} +2 -2
- package/package.json +4 -4
- package/dist/redocly-openapi-docs.min.index-DQHVHxbB.js +0 -1
- package/dist/redocly-openapi-docs.min.lint-DLjLNlT2.js +0 -181
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import{d as xr,bq as Ji,l as Ee,br as df,b9 as en,bs as Xi,ba as tt,ao as Zi,bt as ff,bu as mf,aE as ps,aC as ze,aB as ea,p as Ke,bi as hf,bv as yf,bw as gf,bx as vf,be as Ot,bk as bf,bg as tn,by as rr,bz as ta,bA as ra,aD as wf,bB as ls,bC as Ir,bD as Mt,bE as $f,bF as Ef,aK as Vt,b5 as rn,b6 as xf,bf as If,bG as Tf,aF as Tr,aP as na,bH as _f,b0 as Pf,aH as Yt,b4 as oa,aJ as us,aI as nn,bI as on,aQ as sa,aS as Sf,b2 as kf,aG as sn,bJ as Of,aT as Nf,aR as ia,b7 as jf,bl as aa,aV as ca,bK as Af,bL as Rf,bM as pa,bc as Cf,b8 as Df,bN as la}from"./redocly-openapi-docs.min.standalone-CS00-kVE.js";function qf(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function _r(e){return Array.isArray(e)&&e.length>0}function ds(e){return e?Object.keys(e):[]}var fs={exports:{}},Lf=fs.exports,ua;function Mf(){return ua||(ua=1,(function(e,t){(function(r,n){typeof qf=="function"?e.exports=n():r.pluralize=n()})(Lf,function(){var r=[],n=[],o={},s={},i={};function c($){return typeof $=="string"?new RegExp("^"+$+"$","i"):$}function a($,b){return $===b?b:$===$.toLowerCase()?b.toLowerCase():$===$.toUpperCase()?b.toUpperCase():$[0]===$[0].toUpperCase()?b.charAt(0).toUpperCase()+b.substr(1).toLowerCase():b.toLowerCase()}function p($,b){return $.replace(/\$(\d{1,2})/g,function(E,w){return b[w]||""})}function l($,b){return $.replace(b[0],function(E,w){var f=p(b[1],arguments);return a(E===""?$[w-1]:E,f)})}function d($,b,E){if(!$.length||o.hasOwnProperty($))return b;for(var w=E.length;w--;){var f=E[w];if(f[0].test(b))return l(b,f)}return b}function y($,b,E){return function(w){var f=w.toLowerCase();return b.hasOwnProperty(f)?a(w,f):$.hasOwnProperty(f)?a(w,$[f]):d(f,w,E)}}function m($,b,E,w){return function(f){var I=f.toLowerCase();return b.hasOwnProperty(I)?!0:$.hasOwnProperty(I)?!1:d(I,I,E)===I}}function h($,b,E){var w=b===1?h.singular($):h.plural($);return(E?b+" ":"")+w}return h.plural=y(i,s,r),h.isPlural=m(i,s,r),h.singular=y(s,i,n),h.isSingular=m(s,i,n),h.addPluralRule=function($,b){r.push([c($),b])},h.addSingularRule=function($,b){n.push([c($),b])},h.addUncountableRule=function($){if(typeof $=="string"){o[$.toLowerCase()]=!0;return}h.addPluralRule($,"$0"),h.addSingularRule($,"$0")},h.addIrregularRule=function($,b){b=b.toLowerCase(),$=$.toLowerCase(),i[$]=b,s[b]=$},[["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($){return h.addIrregularRule($[0],$[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($){return h.addPluralRule($[0],$[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($){return h.addSingularRule($[0],$[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(h.addUncountableRule),h})})(fs)),fs.exports}var Vf=Mf();const da=xr(Vf);function zf(e,t,r){return e.split(" ").map(n=>da(n,t,r)).join(" ")}var fa={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Pr={type:"object",properties:fa,additionalProperties:!1},Ff={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Sr={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:{...fa,like:Pr,dislike:Pr,satisfied:Pr,neutral:Pr,dissatisfied:Pr},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:Ff},additionalProperties:!1}},additionalProperties:!1},Uf={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},ms={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},ma={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Sr,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ms,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:Uf,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},nr={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Bf={type:"object",properties:{name:{type:"string"},items:nr,queries:nr,mutations:nr,subscriptions:nr,types:nr,directives:nr},required:["name"],additionalProperties:!1},Kf={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Bf},otherItemsGroupName:{type:"string"}}},Gf={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},Yf={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},Wf={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:Gf,license:Yf},additionalProperties:!1},an={type:"object",properties:{menu:{type:"object",properties:{...Kf.properties},additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:ms,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:Sr,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:Wf},additionalProperties:!1},Hf={type:"object",properties:{downloadUrls:ms,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:Sr,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},Qf={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"]},Jf={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"}}},ha={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Xf={type:"object",properties:{beforeInfo:{type:"array",items:ha},end:{type:"array",items:ha}}},Wt={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},cn={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Zf={type:"object",properties:dn(Wt.properties,["light","dark"])},em={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"}}},tm={type:"object",properties:{error:cn,info:cn,redirect:cn,success:cn}},rm={type:"object",properties:or(Wt.properties,["dark"])},nm={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},om={type:"object",properties:{accent:Wt,border:Zf,error:Wt,http:em,primary:Wt,responses:tm,secondary:rm,success:Wt,text:nm,tonalOffset:{type:"number"},warning:Wt}},pn={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},sm={type:"object",properties:{small:pn,medium:pn,large:pn,xlarge:pn}},_t={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},im={type:"object",properties:{...or(_t.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:sm}},ya={type:"object",properties:dn(_t.properties,["fontSize","lineHeight"])},am={type:"object",properties:{medium:ya,small:ya}},cm={type:"object",properties:{...or(_t.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:am}},pm={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},lm={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},ga={type:"object",properties:{fullWidth:{type:"boolean"}}},um={type:"object",properties:{buttons:im,httpBadges:cm,layoutControls:pm,panels:lm,tryItButton:ga,tryItSendButton:ga}},ln={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},dm={type:"object",properties:{maxWidth:ln}},fm={type:"object",properties:{maxWidth:ln,middlePanelMaxWidth:ln}},mm={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:dm,"three-panel":fm}},va={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},hm={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:va,defaultDetailsWidth:{type:"string"},examples:va,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},ba={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},ym={type:"object",properties:dn(ba.properties,["textTransform"])},gm={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},vm={type:"object",properties:{...or(_t.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:ba,level1items:ym,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:gm,textColor:{type:"string"},width:{type:"string"}}},un={type:"object",properties:{..._t.properties,color:{type:"string"},transform:{type:"string"}}},bm={type:"object",properties:{..._t.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"}}},wm={type:"object",properties:or(_t.properties,["fontSize"])},$m={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},Em={type:"object",properties:{code:bm,fieldName:_t,...dn(_t.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:un,heading2:un,heading3:un,headings:wm,lineHeight:{type:"string"},links:$m,optimizeSpeed:{type:"boolean"},rightPanelHeading:un,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},xm={type:"object",properties:{color:{type:"string"},...or(_t.properties,["fontWeight"])}},Im={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:xm}},Tm={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},_m={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},wa={type:"object",properties:{custom:{type:"string"}}},Pm={type:"object",properties:{DownloadButton:wa,NextSectionButton:wa}},Sm={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},km={type:"object",properties:{borderRadius:{type:"string"}}},Om={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},Nm={type:"object",properties:{breakpoints:ln,codeBlock:Im,colors:om,components:um,layout:mm,logo:Tm,fab:_m,overrides:Pm,rightPanel:Sm,schema:hm,shape:km,sidebar:vm,spacing:Om,typography:Em,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},jm={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Qf}},required:["languages"]},Am={properties:{theme:Nm,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:jm,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:Jf,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:Xf,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"}}};function dn(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function or(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var pt={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"},Rm={rules:pt,oas2Rules:pt,oas3_0Rules:pt,oas3_1Rules:pt,oas3_2Rules:pt,async2Rules:pt,async3Rules:pt,arazzo1Rules:pt,arazzo1_1Rules:pt,overlay1Rules:pt,openrpc1Rules:pt,graphqlRules:pt},ft={nodeTypeName:void 0,type:"object",additionalProperties:!0},Cm={preprocessors:ft,oas2Preprocessors:ft,oas3_0Preprocessors:ft,oas3_1Preprocessors:ft,oas3_2Preprocessors:ft,async2Preprocessors:ft,async3Preprocessors:ft,arazzo1Preprocessors:ft,arazzo1_1Preprocessors:ft,overlay1Preprocessors:ft,openrpc1Preprocessors:ft},mt={nodeTypeName:void 0,type:"object",additionalProperties:!0},Dm={decorators:mt,oas2Decorators:mt,oas3_0Decorators:mt,oas3_1Decorators:mt,oas3_2Decorators:mt,async2Decorators:mt,async3Decorators:mt,arazzo1Decorators:mt,arazzo1_1Decorators:mt,overlay1Decorators:mt,openrpc1Decorators:mt},qm={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"},fn={...Rm,...Dm,...Cm,extends:qm},$a=e=>e,rt=$a({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),He={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Ea={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},hs={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}}},ys={type:"array",items:{...hs,properties:{...hs.properties,items:{type:"array",items:hs}}}},Lm={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},Mm={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},Vm={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}},zm={type:"object",properties:{facets:Vm,...He.properties},additionalProperties:!1},Fm={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},xa={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Ia={type:"object",properties:{items:ys,...He.properties},additionalProperties:!1},Ta={type:"object",additionalProperties:Lm},_a={type:"object",properties:{items:ys,copyrightText:{type:"string"},logo:He,...He.properties},additionalProperties:!1},Pa={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...He.properties},additionalProperties:!1},Sa={type:"object",properties:{head:{type:"array",items:Ea},body:{type:"array",items:Ea}},additionalProperties:!1},ka={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}},Oa={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:Mm,filters:zm,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:Fm},...He.properties},additionalProperties:!1},Na={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},ja={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...He.properties},additionalProperties:!1},Aa={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},Um={type:"object",properties:{...He.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},Ra={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...He.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...He.properties},additionalProperties:!1},actions:Um},additionalProperties:!1},Ca={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...He.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...He.properties},additionalProperties:!1},expand:{type:"object",properties:{...He.properties},additionalProperties:!1},collapse:{type:"object",properties:{...He.properties},additionalProperties:!1}},additionalProperties:!1},Da={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"},...He.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...He.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...He.properties},additionalProperties:!1},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},mn={...ma,properties:{...ma.properties,...Am.properties}},Bm={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},Km={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"]},Gm={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},Ym={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},Wm={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"]},Hm={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},Qm={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"]},Jm={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"]},Xm={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:Jm}},additionalProperties:!1,required:["trackingId"]},qa={type:"object",properties:{adobe:Bm,amplitude:Km,fullstory:Gm,heap:Ym,rudderstack:Wm,segment:Hm,gtm:Qm,ga:Xm}},La={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"},...He.properties},additionalProperties:!1},Ma={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Va={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},Zm={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"}}}},eh={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:Zm},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:ys,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},hn={type:"object",patternProperties:{".*":eh}},yn={nodeTypeName:rt.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:rt.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:rt.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:rt.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...fn},additionalProperties:!1}},targets:{nodeTypeName:rt.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:rt.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:rt.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:rt.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},th={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},rh={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},nh={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},Nt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:rh},excludes:{type:"array",items:th},filters:{type:"array",items:nh},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},oh={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},sh={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:oh},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},ih={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:sh,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},ah={type:"object",additionalProperties:ih},za={type:"object",properties:{show:{type:"boolean"},entityTypes:ah,catalogs:{type:"object",properties:{all:Nt,services:Nt,domains:Nt,teams:Nt,users:Nt,apiDescriptions:Nt,dataSchemas:Nt,apiOperations:Nt},additionalProperties:Nt}},additionalProperties:!1},Fa={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},gs={type:"string",enum:["and","or"]},vs={type:"object",properties:{field:{type:"string"},operator:Fa,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Fa,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},ch={type:"object",properties:{operator:gs,conditions:{type:"array",items:vs}},required:["operator","conditions"],additionalProperties:!1},Ua={type:"array",items:{oneOf:[vs,{type:"object",properties:{operator:gs,conditions:{type:"array",items:{oneOf:[vs,ch]}}},required:["operator","conditions"],additionalProperties:!1}]}},Ba={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},ph={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:Ba},required:["subject","assertions"],additionalProperties:!1}},lh={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:Ba,where:ph,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},uh={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},lh]}},dh={type:"object",properties:{name:{type:"string"},extends:fn.extends,rules:uh},required:["name"],additionalProperties:!1},Ka={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},fh={oneOf:[Ka,{type:"array",items:Ka}]},mh={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[Ua,{type:"object",properties:{operator:gs,conditions:Ua},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:dh,minItems:1},trigger:fh},required:["name","key","entities","levels"],additionalProperties:!1},Ga={type:"array",items:mh},hh={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:xa,navbar:Ia,products:Ta,footer:_a,sidebar:Pa,scripts:Sa,links:ka,feedback:Sr,search:Oa,aiAssistant:Na,colorMode:ja,palette:Aa,navigation:Ra,codeSnippet:Ca,markdown:Da,openapi:mn,asyncapi:Hf,graphql:an,analytics:qa,userMenu:La,versionPicker:Ma,breadcrumbs:Va,catalog:hn,entitiesCatalog:za,catalogClassic:hn,scorecard:yn,scorecardClassic:yn,scorecards:Ga},additionalProperties:!0},yh=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(yh||{}),gh=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(gh||{}),vh=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(vh||{}),bh="^[a-z0-9]+(?:-[a-z0-9]+)*$",Ya="redocly",wh=[Ya,"corporate","guest"],Wa=["REDOCLY","CORPORATE","GUEST"],$h={type:"object",additionalProperties:{type:"string"}},Eh={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},gn={type:"string",enum:["error","warn","off"]},xh={type:"object",additionalProperties:!1,properties:{schemaCheck:gn,statusCodeCheck:gn,contentTypeCheck:gn,successCriteriaCheck:gn}},Ih={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},Th={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},_h={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Ph={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:[Ih,Th]},inputs:$h,servers:Eh,severity:xh,slo:_h},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},Sh={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},kh={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:Sh,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},Oh={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"]},Nh={oneOf:[kh,Oh],discriminator:{propertyName:"type"}},jh={type:"object",additionalProperties:Nh},Ha={oneOf:[{type:"array",items:{type:"string",enum:Wa},uniqueItems:!0},{type:"string",enum:Wa}]},Qa={type:"string",pattern:bh,not:{enum:wh.filter(e=>e!==Ya)}},Ja={oneOf:[{type:"array",items:Qa,uniqueItems:!0},Qa]},Xa={type:"boolean"},Za={type:"string",pattern:"^https?://.*"},ec={type:"string",pattern:"^https?://.*"},Ah={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:rt.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},Rh={type:"object",additionalProperties:Ah,nodeTypeName:rt.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"},Ch={type:"string",enum:["info","success","warning","error"]},Le={type:"object",additionalProperties:{type:"string"}},Dh={type:"object",properties:{trackingId:{type:"string"},content:{type:"string"},dismissible:{type:"boolean"},target:{type:"string"},color:Ch,rbac:Le,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},qh={type:"array",items:Dh},Lh={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:Le,openapi:mn,graphql:an,theme:{type:"object",properties:{openapi:mn,graphql:an},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...fn},required:["root"]},Mh={type:"object",additionalProperties:!0},Vh={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},zh={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},Fh={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:zh},additionalProperties:!1},Uh={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},Bh={type:"object",properties:{catalogs:{type:"object",properties:{all:Le,services:Le,domains:Le,teams:Le,users:Le,apiDescriptions:Le,dataSchemas:Le,apiOperations:Le},additionalProperties:Le},entitiesTypes:{type:"object",properties:{service:Le,domain:Le,team:Le,user:Le,apiDescription:Le,apiOperation:Le,dataSchema:Le},additionalProperties:Le},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:Le},additionalProperties:!1}},entities:{type:"object",properties:{"**":Le},additionalProperties:Le}},additionalProperties:!1},tc={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:Le,cms:Le,reunite:Le,features:{type:"object",properties:{aiSearch:Le,mcp:Le},additionalProperties:!1},content:{type:"object",properties:{"**":Le},additionalProperties:Le},entitiesCatalog:Bh},additionalProperties:Le},Kh={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},Gh={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},Yh={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[Kh,Gh]}},additionalProperties:!1,required:["type","apiBaseUrl"]},Wh={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},Hh={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},bs={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:[Wh,Hh],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},Qh={...bs,properties:{...bs.properties,type:{type:"string",const:"APIGEE_EDGE"}}},Jh={type:"object",oneOf:[bs,Qh,Yh],discriminator:{propertyName:"type"}},Xh={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:Jh}}},rc={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"]},Zh={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},ey={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},ty={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},ry={type:"object",properties:{requiresLogin:Xa,logoutReturnUrl:Za,residency:ec,sso:Ha,idps:Ja,rbac:tc},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},ws={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:Rh,seo:Fh,rbac:tc,apiFunctions:Uh,requiresLogin:Xa,responseHeaders:{type:"object",additionalProperties:{type:"array",items:Zh}},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:Lh},...fn,ssoDirect:jh,sso:Ha,idps:Ja,residency:ec,logoutReturnUrl:Za,access:ry,developerOnboarding:Xh,removeAttribution:{type:"boolean"},i18n:rc,l10n:rc,metadata:Mh,metadataGlobs:Vh,ignore:{type:"array",items:{type:"string"}},theme:hh,reunite:Ph,logo:xa,navbar:Ia,products:Ta,footer:_a,sidebar:Pa,scripts:Sa,links:ka,feedback:Sr,search:Oa,aiAssistant:Na,colorMode:ja,palette:Aa,navigation:Ra,codeSnippet:Ca,markdown:Da,openapi:mn,graphql:an,analytics:qa,userMenu:La,versionPicker:Ma,breadcrumbs:Va,catalog:hn,entitiesCatalog:za,catalogClassic:hn,scorecard:yn,scorecardClassic:yn,scorecards:Ga,mcp:ey,skills:ty,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:qh},not:{required:["sso","idps"]},additionalProperties:!0},ny={...ws,additionalProperties:!1},vn={$id:"root-redocly-config",...ws,properties:{plugins:{type:"array",items:{type:"string"}},...ws.properties,env:{type:"object",additionalProperties:ny}},additionalProperties:!1},oy=["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"],Ge=$a({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"}),sy={type:"object",nodeTypeName:Ge.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},iy={type:"object",nodeTypeName:Ge.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},ay={type:"object",nodeTypeName:Ge.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},cy={type:"object",nodeTypeName:Ge.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},py={type:"object",properties:{},nodeTypeName:Ge.EntityMetadata,additionalProperties:!0},ly={type:"object",nodeTypeName:Ge.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},uy={type:"object",nodeTypeName:Ge.EntitySlackContact,properties:{channels:{type:"array",items:ly}},required:["channels"],additionalProperties:!1},dy={type:"object",nodeTypeName:Ge.EntityContact,properties:{slack:uy},additionalProperties:!1},fy={type:"object",nodeTypeName:Ge.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},my={type:"object",nodeTypeName:Ge.EntityRelation,properties:{type:{type:"string",enum:oy},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},zt={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:dy,links:{type:"array",nodeTypeName:Ge.EntityLinkList,items:fy},relations:{type:"array",nodeTypeName:Ge.EntityRelationList,items:my},metadata:py},hy={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...zt,type:{type:"string",const:"user"},metadata:sy},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:Ge.UserEntity},{type:"object",nodeTypeName:Ge.ApiOperationEntity,properties:{...zt,type:{type:"string",const:"api-operation"},metadata:ay},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.DataSchemaEntity,properties:{...zt,type:{type:"string",const:"data-schema"},metadata:cy},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.ApiDescriptionEntity,properties:{...zt,type:{type:"string",const:"api-description"},metadata:iy},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.ServiceEntity,properties:{...zt,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.DomainEntity,properties:{...zt,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.TeamEntity,properties:{...zt,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},yy={type:"object",nodeTypeName:Ge.Entity,properties:{...zt},required:["key","title","type"],additionalProperties:!1};const gy=["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"];function $s(e){return e.includes("/")}var Es={exports:{}},nc={},jt={},Ht={},oc={},sc={},ic={},ac;function bn(){return ac||(ac=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(w){if(super(),!e.IDENTIFIER.test(w))throw new Error("CodeGen: name must be a valid identifier");this.str=w}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(w){super(),this._items=typeof w=="string"?[w]:w}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const w=this._items[0];return w===""||w==='""'}get str(){var w;return(w=this._str)!==null&&w!==void 0?w:this._str=this._items.reduce((f,I)=>`${f}${I}`,"")}get names(){var w;return(w=this._names)!==null&&w!==void 0?w:this._names=this._items.reduce((f,I)=>(I instanceof r&&(f[I.str]=(f[I.str]||0)+1),f),{})}}e._Code=n,e.nil=new n("");function o(E,...w){const f=[E[0]];let I=0;for(;I<w.length;)c(f,w[I]),f.push(E[++I]);return new n(f)}e._=o;const s=new n("+");function i(E,...w){const f=[m(E[0])];let I=0;for(;I<w.length;)f.push(s),c(f,w[I]),f.push(s,m(E[++I]));return a(f),new n(f)}e.str=i;function c(E,w){w instanceof n?E.push(...w._items):w instanceof r?E.push(w):E.push(d(w))}e.addCodeArg=c;function a(E){let w=1;for(;w<E.length-1;){if(E[w]===s){const f=p(E[w-1],E[w+1]);if(f!==void 0){E.splice(w-1,3,f);continue}E[w++]="+"}w++}}function p(E,w){if(w==='""')return E;if(E==='""')return w;if(typeof E=="string")return w instanceof r||E[E.length-1]!=='"'?void 0:typeof w!="string"?`${E.slice(0,-1)}${w}"`:w[0]==='"'?E.slice(0,-1)+w.slice(1):void 0;if(typeof w=="string"&&w[0]==='"'&&!(E instanceof r))return`"${E}${w.slice(1)}`}function l(E,w){return w.emptyStr()?E:E.emptyStr()?w:i`${E}${w}`}e.strConcat=l;function d(E){return typeof E=="number"||typeof E=="boolean"||E===null?E:m(Array.isArray(E)?E.join(","):E)}function y(E){return new n(m(E))}e.stringify=y;function m(E){return JSON.stringify(E).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=m;function h(E){return typeof E=="string"&&e.IDENTIFIER.test(E)?new n(`.${E}`):o`[${E}]`}e.getProperty=h;function $(E){if(typeof E=="string"&&e.IDENTIFIER.test(E))return new n(`${E}`);throw new Error(`CodeGen: invalid export name: ${E}, use explicit $id name mapping`)}e.getEsmExportName=$;function b(E){return new n(E.toString())}e.regexpCode=b})(ic)),ic}var cc={},pc;function lc(){return pc||(pc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=bn();class r extends Error{constructor(p){super(`CodeGen: "code" for ${p} not defined`),this.value=p.value}}var n;(function(a){a[a.Started=0]="Started",a[a.Completed=1]="Completed"})(n||(e.UsedValueState=n={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:p,parent:l}={}){this._names={},this._prefixes=p,this._parent=l}toName(p){return p instanceof t.Name?p:this.name(p)}name(p){return new t.Name(this._newName(p))}_newName(p){const l=this._names[p]||this._nameGroup(p);return`${p}${l.index++}`}_nameGroup(p){var l,d;if(!((d=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||d===void 0)&&d.has(p)||this._prefixes&&!this._prefixes.has(p))throw new Error(`CodeGen: prefix "${p}" is not allowed in this scope`);return this._names[p]={prefix:p,index:0}}}e.Scope=o;class s extends t.Name{constructor(p,l){super(l),this.prefix=p}setValue(p,{property:l,itemIndex:d}){this.value=p,this.scopePath=(0,t._)`.${new t.Name(l)}[${d}]`}}e.ValueScopeName=s;const i=(0,t._)`\n`;class c extends o{constructor(p){super(p),this._values={},this._scope=p.scope,this.opts={...p,_n:p.lines?i:t.nil}}get(){return this._scope}name(p){return new s(p,this._newName(p))}value(p,l){var d;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const y=this.toName(p),{prefix:m}=y,h=(d=l.key)!==null&&d!==void 0?d:l.ref;let $=this._values[m];if($){const w=$.get(h);if(w)return w}else $=this._values[m]=new Map;$.set(h,y);const b=this._scope[m]||(this._scope[m]=[]),E=b.length;return b[E]=l.ref,y.setValue(l,{property:m,itemIndex:E}),y}getValue(p,l){const d=this._values[p];if(d)return d.get(l)}scopeRefs(p,l=this._values){return this._reduceValues(l,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${p}${d.scopePath}`})}scopeCode(p=this._values,l,d){return this._reduceValues(p,y=>{if(y.value===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return y.value.code},l,d)}_reduceValues(p,l,d={},y){let m=t.nil;for(const h in p){const $=p[h];if(!$)continue;const b=d[h]=d[h]||new Map;$.forEach(E=>{if(b.has(E))return;b.set(E,n.Started);let w=l(E);if(w){const f=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${f} ${E} = ${w};${this.opts._n}`}else if(w=y?.(E))m=(0,t._)`${m}${w}${this.opts._n}`;else throw new r(E);b.set(E,n.Completed)})}return m}}e.ValueScope=c})(cc)),cc}var uc;function $e(){return uc||(uc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=bn(),r=lc();var n=bn();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var o=lc();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class s{optimizeNodes(){return this}optimizeNames(T,S){return this}}class i extends s{constructor(T,S,_){super(),this.varKind=T,this.name=S,this.rhs=_}render({es5:T,_n:S}){const _=T?r.varKinds.var:this.varKind,L=this.rhs===void 0?"":` = ${this.rhs}`;return`${_} ${this.name}${L};`+S}optimizeNames(T,S){if(T[this.name.str])return this.rhs&&(this.rhs=z(this.rhs,T,S)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends s{constructor(T,S,_){super(),this.lhs=T,this.rhs=S,this.sideEffects=_}render({_n:T}){return`${this.lhs} = ${this.rhs};`+T}optimizeNames(T,S){if(!(this.lhs instanceof t.Name&&!T[this.lhs.str]&&!this.sideEffects))return this.rhs=z(this.rhs,T,S),this}get names(){const T=this.lhs instanceof t.Name?{}:{...this.lhs.names};return O(T,this.rhs)}}class a extends c{constructor(T,S,_,L){super(T,_,L),this.op=S}render({_n:T}){return`${this.lhs} ${this.op}= ${this.rhs};`+T}}class p extends s{constructor(T){super(),this.label=T,this.names={}}render({_n:T}){return`${this.label}:`+T}}class l extends s{constructor(T){super(),this.label=T,this.names={}}render({_n:T}){return`break${this.label?` ${this.label}`:""};`+T}}class d extends s{constructor(T){super(),this.error=T}render({_n:T}){return`throw ${this.error};`+T}get names(){return this.error.names}}class y extends s{constructor(T){super(),this.code=T}render({_n:T}){return`${this.code};`+T}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(T,S){return this.code=z(this.code,T,S),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class m extends s{constructor(T=[]){super(),this.nodes=T}render(T){return this.nodes.reduce((S,_)=>S+_.render(T),"")}optimizeNodes(){const{nodes:T}=this;let S=T.length;for(;S--;){const _=T[S].optimizeNodes();Array.isArray(_)?T.splice(S,1,..._):_?T[S]=_:T.splice(S,1)}return T.length>0?this:void 0}optimizeNames(T,S){const{nodes:_}=this;let L=_.length;for(;L--;){const V=_[L];V.optimizeNames(T,S)||(me(T,V.names),_.splice(L,1))}return _.length>0?this:void 0}get names(){return this.nodes.reduce((T,S)=>F(T,S.names),{})}}class h extends m{render(T){return"{"+T._n+super.render(T)+"}"+T._n}}class $ extends m{}class b extends h{}b.kind="else";class E extends h{constructor(T,S){super(S),this.condition=T}render(T){let S=`if(${this.condition})`+super.render(T);return this.else&&(S+="else "+this.else.render(T)),S}optimizeNodes(){super.optimizeNodes();const T=this.condition;if(T===!0)return this.nodes;let S=this.else;if(S){const _=S.optimizeNodes();S=this.else=Array.isArray(_)?new b(_):_}if(S)return T===!1?S instanceof E?S:S.nodes:this.nodes.length?this:new E(we(T),S instanceof E?[S]:S.nodes);if(!(T===!1||!this.nodes.length))return this}optimizeNames(T,S){var _;if(this.else=(_=this.else)===null||_===void 0?void 0:_.optimizeNames(T,S),!!(super.optimizeNames(T,S)||this.else))return this.condition=z(this.condition,T,S),this}get names(){const T=super.names;return O(T,this.condition),this.else&&F(T,this.else.names),T}}E.kind="if";class w extends h{}w.kind="for";class f extends w{constructor(T){super(),this.iteration=T}render(T){return`for(${this.iteration})`+super.render(T)}optimizeNames(T,S){if(super.optimizeNames(T,S))return this.iteration=z(this.iteration,T,S),this}get names(){return F(super.names,this.iteration.names)}}class I extends w{constructor(T,S,_,L){super(),this.varKind=T,this.name=S,this.from=_,this.to=L}render(T){const S=T.es5?r.varKinds.var:this.varKind,{name:_,from:L,to:V}=this;return`for(${S} ${_}=${L}; ${_}<${V}; ${_}++)`+super.render(T)}get names(){const T=O(super.names,this.from);return O(T,this.to)}}class g extends w{constructor(T,S,_,L){super(),this.loop=T,this.varKind=S,this.name=_,this.iterable=L}render(T){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(T)}optimizeNames(T,S){if(super.optimizeNames(T,S))return this.iterable=z(this.iterable,T,S),this}get names(){return F(super.names,this.iterable.names)}}class v extends h{constructor(T,S,_){super(),this.name=T,this.args=S,this.async=_}render(T){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(T)}}v.kind="func";class x extends m{render(T){return"return "+super.render(T)}}x.kind="return";class N extends h{render(T){let S="try"+super.render(T);return this.catch&&(S+=this.catch.render(T)),this.finally&&(S+=this.finally.render(T)),S}optimizeNodes(){var T,S;return super.optimizeNodes(),(T=this.catch)===null||T===void 0||T.optimizeNodes(),(S=this.finally)===null||S===void 0||S.optimizeNodes(),this}optimizeNames(T,S){var _,L;return super.optimizeNames(T,S),(_=this.catch)===null||_===void 0||_.optimizeNames(T,S),(L=this.finally)===null||L===void 0||L.optimizeNames(T,S),this}get names(){const T=super.names;return this.catch&&F(T,this.catch.names),this.finally&&F(T,this.finally.names),T}}class K extends h{constructor(T){super(),this.error=T}render(T){return`catch(${this.error})`+super.render(T)}}K.kind="catch";class R extends h{render(T){return"finally"+super.render(T)}}R.kind="finally";class C{constructor(T,S={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...S,_n:S.lines?`
|
|
2
|
+
`:""},this._extScope=T,this._scope=new r.Scope({parent:T}),this._nodes=[new $]}toString(){return this._root.render(this.opts)}name(T){return this._scope.name(T)}scopeName(T){return this._extScope.name(T)}scopeValue(T,S){const _=this._extScope.value(T,S);return(this._values[_.prefix]||(this._values[_.prefix]=new Set)).add(_),_}getScopeValue(T,S){return this._extScope.getValue(T,S)}scopeRefs(T){return this._extScope.scopeRefs(T,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(T,S,_,L){const V=this._scope.toName(S);return _!==void 0&&L&&(this._constants[V.str]=_),this._leafNode(new i(T,V,_)),V}const(T,S,_){return this._def(r.varKinds.const,T,S,_)}let(T,S,_){return this._def(r.varKinds.let,T,S,_)}var(T,S,_){return this._def(r.varKinds.var,T,S,_)}assign(T,S,_){return this._leafNode(new c(T,S,_))}add(T,S){return this._leafNode(new a(T,e.operators.ADD,S))}code(T){return typeof T=="function"?T():T!==t.nil&&this._leafNode(new y(T)),this}object(...T){const S=["{"];for(const[_,L]of T)S.length>1&&S.push(","),S.push(_),(_!==L||this.opts.es5)&&(S.push(":"),(0,t.addCodeArg)(S,L));return S.push("}"),new t._Code(S)}if(T,S,_){if(this._blockNode(new E(T)),S&&_)this.code(S).else().code(_).endIf();else if(S)this.code(S).endIf();else if(_)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(T){return this._elseNode(new E(T))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(E,b)}_for(T,S){return this._blockNode(T),S&&this.code(S).endFor(),this}for(T,S){return this._for(new f(T),S)}forRange(T,S,_,L,V=this.opts.es5?r.varKinds.var:r.varKinds.let){const J=this._scope.toName(T);return this._for(new I(V,J,S,_),()=>L(J))}forOf(T,S,_,L=r.varKinds.const){const V=this._scope.toName(T);if(this.opts.es5){const J=S instanceof t.Name?S:this.var("_arr",S);return this.forRange("_i",0,(0,t._)`${J}.length`,ie=>{this.var(V,(0,t._)`${J}[${ie}]`),_(V)})}return this._for(new g("of",L,V,S),()=>_(V))}forIn(T,S,_,L=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(T,(0,t._)`Object.keys(${S})`,_);const V=this._scope.toName(T);return this._for(new g("in",L,V,S),()=>_(V))}endFor(){return this._endBlockNode(w)}label(T){return this._leafNode(new p(T))}break(T){return this._leafNode(new l(T))}return(T){const S=new x;if(this._blockNode(S),this.code(T),S.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(x)}try(T,S,_){if(!S&&!_)throw new Error('CodeGen: "try" without "catch" and "finally"');const L=new N;if(this._blockNode(L),this.code(T),S){const V=this.name("e");this._currNode=L.catch=new K(V),S(V)}return _&&(this._currNode=L.finally=new R,this.code(_)),this._endBlockNode(K,R)}throw(T){return this._leafNode(new d(T))}block(T,S){return this._blockStarts.push(this._nodes.length),T&&this.code(T).endBlock(S),this}endBlock(T){const S=this._blockStarts.pop();if(S===void 0)throw new Error("CodeGen: not in self-balancing block");const _=this._nodes.length-S;if(_<0||T!==void 0&&_!==T)throw new Error(`CodeGen: wrong number of nodes: ${_} vs ${T} expected`);return this._nodes.length=S,this}func(T,S=t.nil,_,L){return this._blockNode(new v(T,S,_)),L&&this.code(L).endFunc(),this}endFunc(){return this._endBlockNode(v)}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,S){const _=this._currNode;if(_ instanceof T||S&&_ instanceof S)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${S?`${T.kind}/${S.kind}`:T.kind}"`)}_elseNode(T){const S=this._currNode;if(!(S instanceof E))throw new Error('CodeGen: "else" without "if"');return this._currNode=S.else=T,this}get _root(){return this._nodes[0]}get _currNode(){const T=this._nodes;return T[T.length-1]}set _currNode(T){const S=this._nodes;S[S.length-1]=T}}e.CodeGen=C;function F(D,T){for(const S in T)D[S]=(D[S]||0)+(T[S]||0);return D}function O(D,T){return T instanceof t._CodeOrName?F(D,T.names):D}function z(D,T,S){if(D instanceof t.Name)return _(D);if(!L(D))return D;return new t._Code(D._items.reduce((V,J)=>(J instanceof t.Name&&(J=_(J)),J instanceof t._Code?V.push(...J._items):V.push(J),V),[]));function _(V){const J=S[V.str];return J===void 0||T[V.str]!==1?V:(delete T[V.str],J)}function L(V){return V instanceof t._Code&&V._items.some(J=>J instanceof t.Name&&T[J.str]===1&&S[J.str]!==void 0)}}function me(D,T){for(const S in T)D[S]=(D[S]||0)-(T[S]||0)}function we(D){return typeof D=="boolean"||typeof D=="number"||D===null?!D:(0,t._)`!${H(D)}`}e.not=we;const Te=A(e.operators.AND);function ve(...D){return D.reduce(Te)}e.and=ve;const je=A(e.operators.OR);function q(...D){return D.reduce(je)}e.or=q;function A(D){return(T,S)=>T===t.nil?S:S===t.nil?T:(0,t._)`${H(T)} ${D} ${H(S)}`}function H(D){return D instanceof t.Name?D:(0,t._)`(${D})`}})(sc)),sc}var Pe={},dc;function Ne(){if(dc)return Pe;dc=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.checkStrictMode=Pe.getErrorPath=Pe.Type=Pe.useFunc=Pe.setEvaluated=Pe.evaluatedPropsToName=Pe.mergeEvaluated=Pe.eachItem=Pe.unescapeJsonPointer=Pe.escapeJsonPointer=Pe.escapeFragment=Pe.unescapeFragment=Pe.schemaRefOrVal=Pe.schemaHasRulesButRef=Pe.schemaHasRules=Pe.checkUnknownRules=Pe.alwaysValidSchema=Pe.toHash=void 0;const e=$e(),t=bn();function r(g){const v={};for(const x of g)v[x]=!0;return v}Pe.toHash=r;function n(g,v){return typeof v=="boolean"?v:Object.keys(v).length===0?!0:(o(g,v),!s(v,g.self.RULES.all))}Pe.alwaysValidSchema=n;function o(g,v=g.schema){const{opts:x,self:N}=g;if(!x.strictSchema||typeof v=="boolean")return;const K=N.RULES.keywords;for(const R in v)K[R]||I(g,`unknown keyword: "${R}"`)}Pe.checkUnknownRules=o;function s(g,v){if(typeof g=="boolean")return!g;for(const x in g)if(v[x])return!0;return!1}Pe.schemaHasRules=s;function i(g,v){if(typeof g=="boolean")return!g;for(const x in g)if(x!=="$ref"&&v.all[x])return!0;return!1}Pe.schemaHasRulesButRef=i;function c({topSchemaRef:g,schemaPath:v},x,N,K){if(!K){if(typeof x=="number"||typeof x=="boolean")return x;if(typeof x=="string")return(0,e._)`${x}`}return(0,e._)`${g}${v}${(0,e.getProperty)(N)}`}Pe.schemaRefOrVal=c;function a(g){return d(decodeURIComponent(g))}Pe.unescapeFragment=a;function p(g){return encodeURIComponent(l(g))}Pe.escapeFragment=p;function l(g){return typeof g=="number"?`${g}`:g.replace(/~/g,"~0").replace(/\//g,"~1")}Pe.escapeJsonPointer=l;function d(g){return g.replace(/~1/g,"/").replace(/~0/g,"~")}Pe.unescapeJsonPointer=d;function y(g,v){if(Array.isArray(g))for(const x of g)v(x);else v(g)}Pe.eachItem=y;function m({mergeNames:g,mergeToName:v,mergeValues:x,resultToName:N}){return(K,R,C,F)=>{const O=C===void 0?R:C instanceof e.Name?(R instanceof e.Name?g(K,R,C):v(K,R,C),C):R instanceof e.Name?(v(K,C,R),R):x(R,C);return F===e.Name&&!(O instanceof e.Name)?N(K,O):O}}Pe.mergeEvaluated={props:m({mergeNames:(g,v,x)=>g.if((0,e._)`${x} !== true && ${v} !== undefined`,()=>{g.if((0,e._)`${v} === true`,()=>g.assign(x,!0),()=>g.assign(x,(0,e._)`${x} || {}`).code((0,e._)`Object.assign(${x}, ${v})`))}),mergeToName:(g,v,x)=>g.if((0,e._)`${x} !== true`,()=>{v===!0?g.assign(x,!0):(g.assign(x,(0,e._)`${x} || {}`),$(g,x,v))}),mergeValues:(g,v)=>g===!0?!0:{...g,...v},resultToName:h}),items:m({mergeNames:(g,v,x)=>g.if((0,e._)`${x} !== true && ${v} !== undefined`,()=>g.assign(x,(0,e._)`${v} === true ? true : ${x} > ${v} ? ${x} : ${v}`)),mergeToName:(g,v,x)=>g.if((0,e._)`${x} !== true`,()=>g.assign(x,v===!0?!0:(0,e._)`${x} > ${v} ? ${x} : ${v}`)),mergeValues:(g,v)=>g===!0?!0:Math.max(g,v),resultToName:(g,v)=>g.var("items",v)})};function h(g,v){if(v===!0)return g.var("props",!0);const x=g.var("props",(0,e._)`{}`);return v!==void 0&&$(g,x,v),x}Pe.evaluatedPropsToName=h;function $(g,v,x){Object.keys(x).forEach(N=>g.assign((0,e._)`${v}${(0,e.getProperty)(N)}`,!0))}Pe.setEvaluated=$;const b={};function E(g,v){return g.scopeValue("func",{ref:v,code:b[v.code]||(b[v.code]=new t._Code(v.code))})}Pe.useFunc=E;var w;(function(g){g[g.Num=0]="Num",g[g.Str=1]="Str"})(w||(Pe.Type=w={}));function f(g,v,x){if(g instanceof e.Name){const N=v===w.Num;return x?N?(0,e._)`"[" + ${g} + "]"`:(0,e._)`"['" + ${g} + "']"`:N?(0,e._)`"/" + ${g}`:(0,e._)`"/" + ${g}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return x?(0,e.getProperty)(g).toString():"/"+l(g)}Pe.getErrorPath=f;function I(g,v,x=g.opts.strictSchema){if(x){if(v=`strict mode: ${v}`,x===!0)throw new Error(v);g.self.logger.warn(v)}}return Pe.checkStrictMode=I,Pe}var wn={},fc;function st(){if(fc)return wn;fc=1,Object.defineProperty(wn,"__esModule",{value:!0});const e=$e(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),isAllOfVariant:new e.Name("isAllOfVariant"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return wn.default=t,wn}var mc;function $n(){return mc||(mc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=$e(),r=Ne(),n=st();e.keywordError={message:({keyword:b})=>(0,t.str)`must pass "${b}" keyword validation`},e.keyword$DataError={message:({keyword:b,schemaType:E})=>E?(0,t.str)`"${b}" keyword must be ${E} ($data)`:(0,t.str)`"${b}" keyword is invalid ($data)`};function o(b,E=e.keywordError,w,f){const{it:I}=b,{gen:g,compositeRule:v,allErrors:x}=I,N=d(b,E,w);f??(v||x)?a(g,N):p(I,(0,t._)`[${N}]`)}e.reportError=o;function s(b,E=e.keywordError,w){const{it:f}=b,{gen:I,compositeRule:g,allErrors:v}=f,x=d(b,E,w);a(I,x),g||v||p(f,n.default.vErrors)}e.reportExtraError=s;function i(b,E){b.assign(n.default.errors,E),b.if((0,t._)`${n.default.vErrors} !== null`,()=>b.if(E,()=>b.assign((0,t._)`${n.default.vErrors}.length`,E),()=>b.assign(n.default.vErrors,null)))}e.resetErrorsCount=i;function c({gen:b,keyword:E,schemaValue:w,data:f,errsCount:I,it:g}){if(I===void 0)throw new Error("ajv implementation error");const v=b.name("err");b.forRange("i",I,n.default.errors,x=>{b.const(v,(0,t._)`${n.default.vErrors}[${x}]`),b.if((0,t._)`${v}.instancePath === undefined`,()=>b.assign((0,t._)`${v}.instancePath`,(0,t.strConcat)(n.default.instancePath,g.errorPath))),b.assign((0,t._)`${v}.schemaPath`,(0,t.str)`${g.errSchemaPath}/${E}`),g.opts.verbose&&(b.assign((0,t._)`${v}.schema`,w),b.assign((0,t._)`${v}.data`,f))})}e.extendErrors=c;function a(b,E){const w=b.const("err",E);b.if((0,t._)`${n.default.vErrors} === null`,()=>b.assign(n.default.vErrors,(0,t._)`[${w}]`),(0,t._)`${n.default.vErrors}.push(${w})`),b.code((0,t._)`${n.default.errors}++`)}function p(b,E){const{gen:w,validateName:f,schemaEnv:I}=b;I.$async?w.throw((0,t._)`new ${b.ValidationError}(${E})`):(w.assign((0,t._)`${f}.errors`,E),w.return(!1))}const l={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function d(b,E,w){const{createErrors:f}=b.it;return f===!1?(0,t._)`{}`:y(b,E,w)}function y(b,E,w={}){const{gen:f,it:I}=b,g=[m(I,w),h(b,w)];return $(b,E,g),f.object(...g)}function m({errorPath:b},{instancePath:E}){const w=E?(0,t.str)`${b}${(0,r.getErrorPath)(E,r.Type.Str)}`:b;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,w)]}function h({keyword:b,it:{errSchemaPath:E}},{schemaPath:w,parentSchema:f}){let I=f?E:(0,t.str)`${E}/${b}`;return w&&(I=(0,t.str)`${I}${(0,r.getErrorPath)(w,r.Type.Str)}`),[l.schemaPath,I]}function $(b,{params:E,message:w},f){const{keyword:I,data:g,schemaValue:v,it:x}=b,{opts:N,propertyName:K,topSchemaRef:R,schemaPath:C}=x;f.push([l.keyword,I],[l.params,typeof E=="function"?E(b):E||(0,t._)`{}`]),N.messages&&f.push([l.message,typeof w=="function"?w(b):w]),N.verbose&&f.push([l.schema,v],[l.parentSchema,(0,t._)`${R}${C}`],[n.default.data,g]),K&&f.push([l.propertyName,K])}})(oc)),oc}var hc;function vy(){if(hc)return Ht;hc=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.boolOrEmptySchema=Ht.topBoolOrEmptySchema=void 0;const e=$n(),t=$e(),r=st(),n={message:"boolean schema is false"};function o(c){const{gen:a,schema:p,validateName:l}=c;p===!1?i(c,!1):typeof p=="object"&&p.$async===!0?a.return(r.default.data):(a.assign((0,t._)`${l}.errors`,null),a.return(!0))}Ht.topBoolOrEmptySchema=o;function s(c,a){const{gen:p,schema:l}=c;l===!1?(p.var(a,!1),i(c)):p.var(a,!0)}Ht.boolOrEmptySchema=s;function i(c,a){const{gen:p,data:l}=c,d={gen:p,keyword:"false schema",data:l,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:c};(0,e.reportError)(d,n,void 0,a)}return Ht}var Je={},Qt={},yc;function gc(){if(yc)return Qt;yc=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.getRules=Qt.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(o){return typeof o=="string"&&t.has(o)}Qt.isJSONType=r;function n(){const o={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...o,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},o.number,o.string,o.array,o.object],post:{rules:[]},all:{},keywords:{}}}return Qt.getRules=n,Qt}var At={},vc;function bc(){if(vc)return At;vc=1,Object.defineProperty(At,"__esModule",{value:!0}),At.shouldUseRule=At.shouldUseGroup=At.schemaHasRulesForType=void 0;function e({schema:n,self:o},s){const i=o.RULES.types[s];return i&&i!==!0&&t(n,i)}At.schemaHasRulesForType=e;function t(n,o){return o.rules.some(s=>r(n,s))}At.shouldUseGroup=t;function r(n,o){var s;return n[o.keyword]!==void 0||((s=o.definition.implements)===null||s===void 0?void 0:s.some(i=>n[i]!==void 0))}return At.shouldUseRule=r,At}var wc;function En(){if(wc)return Je;wc=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.reportTypeError=Je.checkDataTypes=Je.checkDataType=Je.coerceAndCheckDataType=Je.getJSONTypes=Je.getSchemaTypes=Je.DataType=void 0;const e=gc(),t=bc(),r=$n(),n=$e(),o=Ne();var s;(function(w){w[w.Correct=0]="Correct",w[w.Wrong=1]="Wrong"})(s||(Je.DataType=s={}));function i(w){const f=c(w.type);if(f.includes("null")){if(w.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!f.length&&w.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');w.nullable===!0&&f.push("null")}return f}Je.getSchemaTypes=i;function c(w){const f=Array.isArray(w)?w:w?[w]:[];if(f.every(e.isJSONType))return f;throw new Error("type must be JSONType or JSONType[]: "+f.join(","))}Je.getJSONTypes=c;function a(w,f){const{gen:I,data:g,opts:v}=w,x=l(f,v.coerceTypes),N=f.length>0&&!(x.length===0&&f.length===1&&(0,t.schemaHasRulesForType)(w,f[0]));if(N){const K=h(f,g,v.strictNumbers,s.Wrong);I.if(K,()=>{x.length?d(w,f,x):b(w)})}return N}Je.coerceAndCheckDataType=a;const p=new Set(["string","number","integer","boolean","null"]);function l(w,f){return f?w.filter(I=>p.has(I)||f==="array"&&I==="array"):[]}function d(w,f,I){const{gen:g,data:v,opts:x}=w,N=g.let("dataType",(0,n._)`typeof ${v}`),K=g.let("coerced",(0,n._)`undefined`);x.coerceTypes==="array"&&g.if((0,n._)`${N} == 'object' && Array.isArray(${v}) && ${v}.length == 1`,()=>g.assign(v,(0,n._)`${v}[0]`).assign(N,(0,n._)`typeof ${v}`).if(h(f,v,x.strictNumbers),()=>g.assign(K,v))),g.if((0,n._)`${K} !== undefined`);for(const C of I)(p.has(C)||C==="array"&&x.coerceTypes==="array")&&R(C);g.else(),b(w),g.endIf(),g.if((0,n._)`${K} !== undefined`,()=>{g.assign(v,K),y(w,K)});function R(C){switch(C){case"string":g.elseIf((0,n._)`${N} == "number" || ${N} == "boolean"`).assign(K,(0,n._)`"" + ${v}`).elseIf((0,n._)`${v} === null`).assign(K,(0,n._)`""`);return;case"number":g.elseIf((0,n._)`${N} == "boolean" || ${v} === null
|
|
3
|
+
|| (${N} == "string" && ${v} && ${v} == +${v})`).assign(K,(0,n._)`+${v}`);return;case"integer":g.elseIf((0,n._)`${N} === "boolean" || ${v} === null
|
|
4
|
+
|| (${N} === "string" && ${v} && ${v} == +${v} && !(${v} % 1))`).assign(K,(0,n._)`+${v}`);return;case"boolean":g.elseIf((0,n._)`${v} === "false" || ${v} === 0 || ${v} === null`).assign(K,!1).elseIf((0,n._)`${v} === "true" || ${v} === 1`).assign(K,!0);return;case"null":g.elseIf((0,n._)`${v} === "" || ${v} === 0 || ${v} === false`),g.assign(K,null);return;case"array":g.elseIf((0,n._)`${N} === "string" || ${N} === "number"
|
|
5
|
+
|| ${N} === "boolean" || ${v} === null`).assign(K,(0,n._)`[${v}]`)}}}function y({gen:w,parentData:f,parentDataProperty:I},g){w.if((0,n._)`${f} !== undefined`,()=>w.assign((0,n._)`${f}[${I}]`,g))}function m(w,f,I,g=s.Correct){const v=g===s.Correct?n.operators.EQ:n.operators.NEQ;let x;switch(w){case"null":return(0,n._)`${f} ${v} null`;case"array":x=(0,n._)`Array.isArray(${f})`;break;case"object":x=(0,n._)`${f} && typeof ${f} == "object" && !Array.isArray(${f})`;break;case"integer":x=N((0,n._)`!(${f} % 1) && !isNaN(${f})`);break;case"number":x=N();break;default:return(0,n._)`typeof ${f} ${v} ${w}`}return g===s.Correct?x:(0,n.not)(x);function N(K=n.nil){return(0,n.and)((0,n._)`typeof ${f} == "number"`,K,I?(0,n._)`isFinite(${f})`:n.nil)}}Je.checkDataType=m;function h(w,f,I,g){if(w.length===1)return m(w[0],f,I,g);let v;const x=(0,o.toHash)(w);if(x.array&&x.object){const N=(0,n._)`typeof ${f} != "object"`;v=x.null?N:(0,n._)`!${f} || ${N}`,delete x.null,delete x.array,delete x.object}else v=n.nil;x.number&&delete x.integer;for(const N in x)v=(0,n.and)(v,m(N,f,I,g));return v}Je.checkDataTypes=h;const $={message:({schema:w})=>`must be ${w}`,params:({schema:w,schemaValue:f})=>typeof w=="string"?(0,n._)`{type: ${w}}`:(0,n._)`{type: ${f}}`};function b(w){const f=E(w);(0,r.reportError)(f,$)}Je.reportTypeError=b;function E(w){const{gen:f,data:I,schema:g}=w,v=(0,o.schemaRefOrVal)(w,g,"type");return{gen:f,keyword:"type",data:I,schema:g.type,schemaCode:v,schemaValue:v,parentSchema:g,params:{},it:w}}return Je}var kr={},$c;function by(){if($c)return kr;$c=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.assignDefaults=void 0;const e=$e(),t=Ne();function r(o,s){const{properties:i,items:c}=o.schema;if(s==="object"&&i)for(const a in i)n(o,a,i[a].default);else s==="array"&&Array.isArray(c)&&c.forEach((a,p)=>n(o,p,a.default))}kr.assignDefaults=r;function n(o,s,i){const{gen:c,compositeRule:a,data:p,opts:l}=o;if(i===void 0)return;const d=(0,e._)`${p}${(0,e.getProperty)(s)}`;if(a){(0,t.checkStrictMode)(o,`default is ignored for: ${d}`);return}let y=(0,e._)`${d} === undefined`;l.useDefaults==="empty"&&(y=(0,e._)`${y} || ${d} === null || ${d} === ""`),c.if(y,(0,e._)`${d} = ${(0,e.stringify)(i)}`)}return kr}var ht={},Me={},Or={},Ec;function xc(){if(Ec)return Or;Ec=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.getSkipCondition=void 0;const e=$e(),t=st();function r(n,o){var s;const i=(s=n.properties)===null||s===void 0?void 0:s[o];if(!i)return;const c=i.readOnly===!0,a=i.writeOnly===!0;if(!c&&!a)return;const p=[],l=(0,e._)`typeof ${t.default.this} == "object" && ${t.default.this} && ${t.default.this}.apiContext`;return c&&p.push((0,e._)`${l} === "request"`),a&&p.push((0,e._)`${l} === "response"`),(0,e.or)(...p)}return Or.getSkipCondition=r,Or}var Ic;function yt(){if(Ic)return Me;Ic=1,Object.defineProperty(Me,"__esModule",{value:!0}),Me.validateUnion=Me.validateArray=Me.usePattern=Me.callValidateCode=Me.schemaProperties=Me.allSchemaProperties=Me.noPropertyInData=Me.propertyInData=Me.isOwnProperty=Me.hasPropFunc=Me.reportMissingProp=Me.checkMissingProp=Me.checkReportMissingProp=void 0;const e=$e(),t=Ne(),r=st(),n=Ne(),o=xc();function s(f,I){const{gen:g,data:v,it:x}=f;g.if(d(g,v,I,x.opts.ownProperties),()=>{f.setParams({missingProperty:(0,e._)`${I}`},!0),f.error()})}Me.checkReportMissingProp=s;function i({gen:f,data:I,it:{opts:g},parentSchema:v},x,N){return(0,e.or)(...x.map(K=>{var R;return(0,e.and)((0,e.not)((R=(0,o.getSkipCondition)(v,K))!==null&&R!==void 0?R:(0,e._)`false`),d(f,I,K,g.ownProperties),(0,e._)`${N} = ${K}`)}))}Me.checkMissingProp=i;function c(f,I){f.setParams({missingProperty:I},!0),f.error()}Me.reportMissingProp=c;function a(f){return f.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Me.hasPropFunc=a;function p(f,I,g){return(0,e._)`${a(f)}.call(${I}, ${g})`}Me.isOwnProperty=p;function l(f,I,g,v){const x=(0,e._)`${I}${(0,e.getProperty)(g)} !== undefined`;return v?(0,e._)`${x} && ${p(f,I,g)}`:x}Me.propertyInData=l;function d(f,I,g,v){const x=(0,e._)`${I}${(0,e.getProperty)(g)} === undefined`;return v?(0,e.or)(x,(0,e.not)(p(f,I,g))):x}Me.noPropertyInData=d;function y(f){return f?Object.keys(f).filter(I=>I!=="__proto__"):[]}Me.allSchemaProperties=y;function m(f,I){return y(I).filter(g=>!(0,t.alwaysValidSchema)(f,I[g]))}Me.schemaProperties=m;function h({schemaCode:f,data:I,it:{gen:g,topSchemaRef:v,schemaPath:x,errorPath:N},it:K},R,C,F){const O=F?(0,e._)`${f}, ${I}, ${v}${x}`:I,z=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,N)],[r.default.parentData,K.parentData],[r.default.parentDataProperty,K.parentDataProperty],[r.default.rootData,r.default.rootData],[r.default.isAllOfVariant,K.isAllOfVariant?1:0]];K.opts.dynamicRef&&z.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const me=(0,e._)`${O}, ${g.object(...z)}`;return C!==e.nil?(0,e._)`${R}.call(${C}, ${me})`:(0,e._)`${R}(${me})`}Me.callValidateCode=h;const $=(0,e._)`new RegExp`;function b({gen:f,it:{opts:I}},g){const v=I.unicodeRegExp?"u":"",{regExp:x}=I.code,N=x(g,v);return f.scopeValue("pattern",{key:N.toString(),ref:N,code:(0,e._)`${x.code==="new RegExp"?$:(0,n.useFunc)(f,x)}(${g}, ${v})`})}Me.usePattern=b;function E(f){const{gen:I,data:g,keyword:v,it:x}=f,N=I.name("valid");if(x.allErrors){const R=I.let("valid",!0);return K(()=>I.assign(R,!1)),R}return I.var(N,!0),K(()=>I.break()),N;function K(R){const C=I.const("len",(0,e._)`${g}.length`);I.forRange("i",0,C,F=>{f.subschema({keyword:v,dataProp:F,dataPropType:t.Type.Num},N),I.if((0,e.not)(N),R)})}}Me.validateArray=E;function w(f){const{gen:I,schema:g,keyword:v,parentSchema:x,it:N}=f;if(!Array.isArray(g))throw new Error("ajv implementation error");if(N.opts.discriminator&&x.discriminator||g.some(C=>(0,t.alwaysValidSchema)(N,C))&&!N.opts.unevaluated)return;const K=I.let("valid",!1),R=I.name("_valid");I.block(()=>g.forEach((C,F)=>{const O=f.subschema({keyword:v,schemaProp:F,compositeRule:!0},R);I.assign(K,(0,e._)`${K} || ${R}`),f.mergeValidEvaluated(O,R)||I.if((0,e.not)(K))})),f.result(K,()=>f.reset(),()=>f.error(!0))}return Me.validateUnion=w,Me}var Tc;function wy(){if(Tc)return ht;Tc=1,Object.defineProperty(ht,"__esModule",{value:!0}),ht.validateKeywordUsage=ht.validSchemaType=ht.funcKeywordCode=ht.macroKeywordCode=void 0;const e=$e(),t=st(),r=yt(),n=$n();function o(y,m){const{gen:h,keyword:$,schema:b,parentSchema:E,it:w}=y,f=m.macro.call(w.self,b,E,w),I=p(h,$,f);w.opts.validateSchema!==!1&&w.self.validateSchema(f,!0);const g=h.name("valid");y.subschema({schema:f,schemaPath:e.nil,errSchemaPath:`${w.errSchemaPath}/${$}`,topSchemaRef:I,compositeRule:!0},g),y.pass(g,()=>y.error(!0))}ht.macroKeywordCode=o;function s(y,m){var h;const{gen:$,keyword:b,schema:E,parentSchema:w,$data:f,it:I}=y;a(I,m);const g=!f&&m.compile?m.compile.call(I.self,E,w,I):m.validate,v=p($,b,g),x=$.let("valid");y.block$data(x,N),y.ok((h=m.valid)!==null&&h!==void 0?h:x);function N(){if(m.errors===!1)C(),m.modifying&&i(y),F(()=>y.error());else{const O=m.async?K():R();m.modifying&&i(y),F(()=>c(y,O))}}function K(){const O=$.let("ruleErrs",null);return $.try(()=>C((0,e._)`await `),z=>$.assign(x,!1).if((0,e._)`${z} instanceof ${I.ValidationError}`,()=>$.assign(O,(0,e._)`${z}.errors`),()=>$.throw(z))),O}function R(){const O=(0,e._)`${v}.errors`;return $.assign(O,null),C(e.nil),O}function C(O=m.async?(0,e._)`await `:e.nil){const z=I.opts.passContext?t.default.this:t.default.self,me=!("compile"in m&&!f||m.schema===!1);$.assign(x,(0,e._)`${O}${(0,r.callValidateCode)(y,v,z,me)}`,m.modifying)}function F(O){var z;$.if((0,e.not)((z=m.valid)!==null&&z!==void 0?z:x),O)}}ht.funcKeywordCode=s;function i(y){const{gen:m,data:h,it:$}=y;m.if($.parentData,()=>m.assign(h,(0,e._)`${$.parentData}[${$.parentDataProperty}]`))}function c(y,m){const{gen:h}=y;h.if((0,e._)`Array.isArray(${m})`,()=>{h.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${m} : ${t.default.vErrors}.concat(${m})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(y)},()=>y.error())}function a({schemaEnv:y},m){if(m.async&&!y.$async)throw new Error("async keyword in sync schema")}function p(y,m,h){if(h===void 0)throw new Error(`keyword "${m}" failed to compile`);return y.scopeValue("keyword",typeof h=="function"?{ref:h}:{ref:h,code:(0,e.stringify)(h)})}function l(y,m,h=!1){return!m.length||m.some($=>$==="array"?Array.isArray(y):$==="object"?y&&typeof y=="object"&&!Array.isArray(y):typeof y==$||h&&typeof y>"u")}ht.validSchemaType=l;function d({schema:y,opts:m,self:h,errSchemaPath:$},b,E){if(Array.isArray(b.keyword)?!b.keyword.includes(E):b.keyword!==E)throw new Error("ajv implementation error");const w=b.dependencies;if(w?.some(f=>!Object.prototype.hasOwnProperty.call(y,f)))throw new Error(`parent schema must have dependencies of ${E}: ${w.join(",")}`);if(b.validateSchema&&!b.validateSchema(y[E])){const f=`keyword "${E}" value is invalid at path "${$}": `+h.errorsText(b.validateSchema.errors);if(m.validateSchema==="log")h.logger.error(f);else throw new Error(f)}}return ht.validateKeywordUsage=d,ht}var Rt={},_c;function $y(){if(_c)return Rt;_c=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.extendSubschemaMode=Rt.extendSubschemaData=Rt.getSubschema=void 0;const e=$e(),t=Ne();function r(s,{keyword:i,schemaProp:c,schema:a,schemaPath:p,errSchemaPath:l,topSchemaRef:d}){if(i!==void 0&&a!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(i!==void 0){const y=s.schema[i];return c===void 0?{schema:y,schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(i)}`,errSchemaPath:`${s.errSchemaPath}/${i}`}:{schema:y[c],schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(i)}${(0,e.getProperty)(c)}`,errSchemaPath:`${s.errSchemaPath}/${i}/${(0,t.escapeFragment)(c)}`}}if(a!==void 0){if(p===void 0||l===void 0||d===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:a,schemaPath:p,topSchemaRef:d,errSchemaPath:l}}throw new Error('either "keyword" or "schema" must be passed')}Rt.getSubschema=r;function n(s,i,{dataProp:c,dataPropType:a,data:p,dataTypes:l,propertyName:d}){if(p!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:y}=i;if(c!==void 0){const{errorPath:h,dataPathArr:$,opts:b}=i,E=y.let("data",(0,e._)`${i.data}${(0,e.getProperty)(c)}`,!0);m(E),s.errorPath=(0,e.str)`${h}${(0,t.getErrorPath)(c,a,b.jsPropertySyntax)}`,s.parentDataProperty=(0,e._)`${c}`,s.dataPathArr=[...$,s.parentDataProperty]}if(p!==void 0){const h=p instanceof e.Name?p:y.let("data",p,!0);m(h),d!==void 0&&(s.propertyName=d)}l&&(s.dataTypes=l);function m(h){s.data=h,s.dataLevel=i.dataLevel+1,s.dataTypes=[],i.definedProperties=new Set,s.parentData=i.data,s.dataNames=[...i.dataNames,h]}}Rt.extendSubschemaData=n;function o(s,{jtdDiscriminator:i,jtdMetadata:c,compositeRule:a,createErrors:p,allErrors:l}){a!==void 0&&(s.compositeRule=a),p!==void 0&&(s.createErrors=p),l!==void 0&&(s.allErrors=l),s.jtdDiscriminator=i,s.jtdMetadata=c}return Rt.extendSubschemaMode=o,Rt}var nt={},xs={exports:{}},Pc;function Ey(){if(Pc)return xs.exports;Pc=1;var e=xs.exports=function(n,o,s){typeof o=="function"&&(s=o,o={}),s=o.cb||s;var i=typeof s=="function"?s:s.pre||function(){},c=s.post||function(){};t(o,i,c,n,"",n)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.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 t(n,o,s,i,c,a,p,l,d,y){if(i&&typeof i=="object"&&!Array.isArray(i)){o(i,c,a,p,l,d,y);for(var m in i){var h=i[m];if(Array.isArray(h)){if(m in e.arrayKeywords)for(var $=0;$<h.length;$++)t(n,o,s,h[$],c+"/"+m+"/"+$,a,c,m,i,$)}else if(m in e.propsKeywords){if(h&&typeof h=="object")for(var b in h)t(n,o,s,h[b],c+"/"+m+"/"+r(b),a,c,m,i,b)}else(m in e.keywords||n.allKeys&&!(m in e.skipKeywords))&&t(n,o,s,h,c+"/"+m,a,c,m,i)}s(i,c,a,p,l,d,y)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return xs.exports}var Sc;function xn(){if(Sc)return nt;Sc=1,Object.defineProperty(nt,"__esModule",{value:!0}),nt.getSchemaRefs=nt.resolveUrl=nt.normalizeId=nt._getFullPath=nt.getFullPath=nt.inlineRef=void 0;const e=Ne(),t=Ji(),r=Ey(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function o($,b=!0){return typeof $=="boolean"?!0:b===!0?!i($):b?c($)<=b:!1}nt.inlineRef=o;const s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function i($){for(const b in $){if(s.has(b))return!0;const E=$[b];if(Array.isArray(E)&&E.some(i)||typeof E=="object"&&i(E))return!0}return!1}function c($){let b=0;for(const E in $)if(E==="$ref"||(b++,!n.has(E)&&(typeof $[E]=="object"&&(0,e.eachItem)($[E],w=>b+=c(w)),b===1/0)))return 1/0;return b}function a($,b="",E){E!==!1&&(b=d(b));const w=$.parse(b);return p($,w)}nt.getFullPath=a;function p($,b){return $.serialize(b).split("#")[0]+"#"}nt._getFullPath=p;const l=/#\/?$/;function d($){return $?$.replace(l,""):""}nt.normalizeId=d;function y($,b,E){return E=d(E),$.resolve(b,E)}nt.resolveUrl=y;const m=/^[a-z_][-a-z0-9._]*$/i;function h($,b){if(typeof $=="boolean")return{};const{schemaId:E,uriResolver:w}=this.opts,f=d($[E]||b),I={"":f},g=a(w,f,!1),v={},x=new Set;return r($,{allKeys:!0},(R,C,F,O)=>{if(O===void 0)return;const z=g+C;let me=I[O];typeof R[E]=="string"&&(me=we.call(this,R[E])),Te.call(this,R.$anchor),Te.call(this,R.$dynamicAnchor),I[C]=me;function we(ve){const je=this.opts.uriResolver.resolve;if(ve=d(me?je(me,ve):ve),x.has(ve))throw K(ve);x.add(ve);let q=this.refs[ve];return typeof q=="string"&&(q=this.refs[q]),typeof q=="object"?N(R,q.schema,ve):ve!==d(z)&&(ve[0]==="#"?(N(R,v[ve],ve),v[ve]=R):this.refs[ve]=z),ve}function Te(ve){if(typeof ve=="string"){if(!m.test(ve))throw new Error(`invalid anchor "${ve}"`);we.call(this,`#${ve}`)}}}),v;function N(R,C,F){if(C!==void 0&&!t(R,C))throw K(F)}function K(R){return new Error(`reference "${R}" resolves to more than one schema`)}}return nt.getSchemaRefs=h,nt}var kc;function sr(){if(kc)return jt;kc=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.getData=jt.KeywordCxt=jt.validateFunctionCode=void 0;const e=vy(),t=En(),r=bc(),n=En(),o=by(),s=wy(),i=$y(),c=$e(),a=st(),p=xn(),l=Ne(),d=$n();function y(k){if(g(k)&&(x(k),I(k))){b(k);return}m(k,()=>(0,e.topBoolOrEmptySchema)(k))}jt.validateFunctionCode=y;function m({gen:k,validateName:j,schema:Y,schemaEnv:te,opts:ce},ye){ce.code.es5?k.func(j,(0,c._)`${a.default.data}, ${a.default.valCxt}`,te.$async,()=>{k.code((0,c._)`"use strict"; ${w(Y,ce)}`),$(k,ce),k.code(ye)}):k.func(j,(0,c._)`${a.default.data}, ${h(ce)}`,te.$async,()=>k.code(w(Y,ce)).code(ye))}function h(k){return(0,c._)`{${a.default.instancePath}="", ${a.default.parentData}, ${a.default.parentDataProperty}, ${a.default.rootData}=${a.default.data}${k.dynamicRef?(0,c._)`, ${a.default.dynamicAnchors}={}`:c.nil}, ${a.default.isAllOfVariant} = 0}={}`}function $(k,j){k.if(a.default.valCxt,()=>{k.var(a.default.instancePath,(0,c._)`${a.default.valCxt}.${a.default.instancePath}`),k.var(a.default.parentData,(0,c._)`${a.default.valCxt}.${a.default.parentData}`),k.var(a.default.parentDataProperty,(0,c._)`${a.default.valCxt}.${a.default.parentDataProperty}`),k.var(a.default.rootData,(0,c._)`${a.default.valCxt}.${a.default.rootData}`),k.var(a.default.isAllOfVariant,(0,c._)`${a.default.valCxt}.${a.default.isAllOfVariant}`),j.dynamicRef&&k.var(a.default.dynamicAnchors,(0,c._)`${a.default.valCxt}.${a.default.dynamicAnchors}`)},()=>{k.var(a.default.instancePath,(0,c._)`""`),k.var(a.default.parentData,(0,c._)`undefined`),k.var(a.default.parentDataProperty,(0,c._)`undefined`),k.var(a.default.rootData,a.default.data),k.var(a.default.isAllOfVariant,(0,c._)`0`),j.dynamicRef&&k.var(a.default.dynamicAnchors,(0,c._)`{}`)})}function b(k){const{schema:j,opts:Y,gen:te}=k;m(k,()=>{Y.$comment&&j.$comment&&O(k),R(k),te.let(a.default.vErrors,null),te.let(a.default.errors,0),Y.unevaluated&&E(k),N(k),z(k)})}function E(k){const{gen:j,validateName:Y}=k;k.evaluated=j.const("evaluated",(0,c._)`${Y}.evaluated`),j.if((0,c._)`${k.evaluated}.dynamicProps`,()=>j.assign((0,c._)`${k.evaluated}.props`,(0,c._)`undefined`)),j.if((0,c._)`${k.evaluated}.dynamicItems`,()=>j.assign((0,c._)`${k.evaluated}.items`,(0,c._)`undefined`))}function w(k,j){const Y=typeof k=="object"&&k[j.schemaId];return Y&&(j.code.source||j.code.process)?(0,c._)`/*# sourceURL=${Y} */`:c.nil}function f(k,j){if(g(k)&&(x(k),I(k))){v(k,j);return}(0,e.boolOrEmptySchema)(k,j)}function I({schema:k,self:j}){if(typeof k=="boolean")return!k;for(const Y in k)if(j.RULES.all[Y])return!0;return!1}function g(k){return typeof k.schema!="boolean"}function v(k,j){const{schema:Y,gen:te,opts:ce}=k;ce.$comment&&Y.$comment&&O(k),C(k),F(k);const ye=te.const("_errs",a.default.errors);N(k,ye),te.var(j,(0,c._)`${ye} === ${a.default.errors}`)}function x(k){(0,l.checkUnknownRules)(k),K(k)}function N(k,j){if(k.opts.jtd)return we(k,[],!1,j);const Y=(0,t.getSchemaTypes)(k.schema),te=(0,t.coerceAndCheckDataType)(k,Y);we(k,Y,!te,j)}function K(k){const{schema:j,errSchemaPath:Y,opts:te,self:ce}=k;j.$ref&&te.ignoreKeywordsWithRef&&(0,l.schemaHasRulesButRef)(j,ce.RULES)&&ce.logger.warn(`$ref: keywords ignored in schema at path "${Y}"`)}function R(k){const{schema:j,opts:Y}=k;j.default!==void 0&&Y.useDefaults&&Y.strictSchema&&(0,l.checkStrictMode)(k,"default is ignored in the schema root")}function C(k){const j=k.schema[k.opts.schemaId];j&&(k.baseId=(0,p.resolveUrl)(k.opts.uriResolver,k.baseId,j))}function F(k){if(k.schema.$async&&!k.schemaEnv.$async)throw new Error("async schema in sync schema")}function O({gen:k,schemaEnv:j,schema:Y,errSchemaPath:te,opts:ce}){const ye=Y.$comment;if(ce.$comment===!0)k.code((0,c._)`${a.default.self}.logger.log(${ye})`);else if(typeof ce.$comment=="function"){const P=(0,c.str)`${te}/$comment`,W=k.scopeValue("root",{ref:j.root});k.code((0,c._)`${a.default.self}.opts.$comment(${ye}, ${P}, ${W}.schema)`)}}function z(k){const{gen:j,schemaEnv:Y,validateName:te,ValidationError:ce,opts:ye}=k;Y.$async?j.if((0,c._)`${a.default.errors} === 0`,()=>j.return(a.default.data),()=>j.throw((0,c._)`new ${ce}(${a.default.vErrors})`)):(j.assign((0,c._)`${te}.errors`,a.default.vErrors),ye.unevaluated&&me(k),j.return((0,c._)`${a.default.errors} === 0`))}function me({gen:k,evaluated:j,props:Y,items:te}){Y instanceof c.Name&&k.assign((0,c._)`${j}.props`,Y),te instanceof c.Name&&k.assign((0,c._)`${j}.items`,te)}function we(k,j,Y,te){const{gen:ce,schema:ye,data:P,allErrors:W,opts:ne,self:Z}=k,{RULES:re}=Z;if(ye.$ref&&(ne.ignoreKeywordsWithRef||!(0,l.schemaHasRulesButRef)(ye,re))){ce.block(()=>L(k,"$ref",re.all.$ref.definition));return}ne.jtd||ve(k,j),ce.block(()=>{for(const oe of re.rules)pe(oe);pe(re.post)});function pe(oe){(0,r.shouldUseGroup)(ye,oe)&&(oe.type?(ce.if((0,n.checkDataType)(oe.type,P,ne.strictNumbers)),Te(k,oe),j.length===1&&j[0]===oe.type&&Y&&(ce.else(),(0,n.reportTypeError)(k)),ce.endIf()):Te(k,oe),W||ce.if((0,c._)`${a.default.errors} === ${te||0}`))}}function Te(k,j){const{gen:Y,schema:te,opts:{useDefaults:ce}}=k;ce&&(0,o.assignDefaults)(k,j.type),Y.block(()=>{for(const P of j.rules)((0,r.shouldUseRule)(te,P)||ye(te,P))&&L(k,P.keyword,P.definition,j.type)});function ye(P,W){return!!(W.keyword==="unevaluatedProperties"&&(P.properties||P.patternProperties)&&!k.isAllOfVariant&&k.opts.defaultUnevaluatedProperties===!1)}}function ve(k,j){k.schemaEnv.meta||!k.opts.strictTypes||(je(k,j),k.opts.allowUnionTypes||q(k,j),A(k,k.dataTypes))}function je(k,j){if(j.length){if(!k.dataTypes.length){k.dataTypes=j;return}j.forEach(Y=>{D(k.dataTypes,Y)||S(k,`type "${Y}" not allowed by context "${k.dataTypes.join(",")}"`)}),T(k,j)}}function q(k,j){j.length>1&&!(j.length===2&&j.includes("null"))&&S(k,"use allowUnionTypes to allow union type keyword")}function A(k,j){const Y=k.self.RULES.all;for(const te in Y){const ce=Y[te];if(typeof ce=="object"&&(0,r.shouldUseRule)(k.schema,ce)){const{type:ye}=ce.definition;ye.length&&!ye.some(P=>H(j,P))&&S(k,`missing type "${ye.join(",")}" for keyword "${te}"`)}}}function H(k,j){return k.includes(j)||j==="number"&&k.includes("integer")}function D(k,j){return k.includes(j)||j==="integer"&&k.includes("number")}function T(k,j){const Y=[];for(const te of k.dataTypes)D(j,te)?Y.push(te):j.includes("integer")&&te==="number"&&Y.push("integer");k.dataTypes=Y}function S(k,j){const Y=k.schemaEnv.baseId+k.errSchemaPath;j+=` at "${Y}" (strictTypes)`,(0,l.checkStrictMode)(k,j,k.opts.strictTypes)}class _{constructor(j,Y,te){if((0,s.validateKeywordUsage)(j,Y,te),this.gen=j.gen,this.allErrors=j.allErrors,this.keyword=te,this.data=j.data,this.schema=j.schema[te],this.$data=Y.$data&&j.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,l.schemaRefOrVal)(j,this.schema,te,this.$data),this.schemaType=Y.schemaType,this.parentSchema=j.schema,this.params={},this.it=j,this.def=Y,this.$data)this.schemaCode=j.gen.const("vSchema",ie(this.$data,j));else if(this.schemaCode=this.schemaValue,!(0,s.validSchemaType)(this.schema,Y.schemaType,Y.allowUndefined))throw new Error(`${te} value must be ${JSON.stringify(Y.schemaType)}`);("code"in Y?Y.trackErrors:Y.errors!==!1)&&(this.errsCount=j.gen.const("_errs",a.default.errors))}result(j,Y,te){this.failResult((0,c.not)(j),Y,te)}failResult(j,Y,te){this.gen.if(j),te?te():this.error(),Y?(this.gen.else(),Y(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(j,Y){this.failResult((0,c.not)(j),void 0,Y)}fail(j){if(j===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(j),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(j){if(!this.$data)return this.fail(j);const{schemaCode:Y}=this;this.fail((0,c._)`${Y} !== undefined && (${(0,c.or)(this.invalid$data(),j)})`)}error(j,Y,te){if(Y){this.setParams(Y),this._error(j,te),this.setParams({});return}this._error(j,te)}_error(j,Y){(j?d.reportExtraError:d.reportError)(this,this.def.error,Y)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(j){this.allErrors||this.gen.if(j)}setParams(j,Y){Y?Object.assign(this.params,j):this.params=j}block$data(j,Y,te=c.nil){this.gen.block(()=>{this.check$data(j,te),Y()})}check$data(j=c.nil,Y=c.nil){if(!this.$data)return;const{gen:te,schemaCode:ce,schemaType:ye,def:P}=this;te.if((0,c.or)((0,c._)`${ce} === undefined`,Y)),j!==c.nil&&te.assign(j,!0),(ye.length||P.validateSchema)&&(te.elseIf(this.invalid$data()),this.$dataError(),j!==c.nil&&te.assign(j,!1)),te.else()}invalid$data(){const{gen:j,schemaCode:Y,schemaType:te,def:ce,it:ye}=this;return(0,c.or)(P(),W());function P(){if(te.length){if(!(Y instanceof c.Name))throw new Error("ajv implementation error");const ne=Array.isArray(te)?te:[te];return(0,c._)`${(0,n.checkDataTypes)(ne,Y,ye.opts.strictNumbers,n.DataType.Wrong)}`}return c.nil}function W(){if(ce.validateSchema){const ne=j.scopeValue("validate$data",{ref:ce.validateSchema});return(0,c._)`!${ne}(${Y})`}return c.nil}}subschema(j,Y,te){const ce=(0,i.getSubschema)(this.it,j);(0,i.extendSubschemaData)(ce,this.it,j),(0,i.extendSubschemaMode)(ce,j);const ye={...this.it,...ce,items:void 0,props:void 0,isAllOfVariant:te};return f(ye,Y),ye}mergeEvaluated(j,Y){const{it:te,gen:ce}=this;te.opts.unevaluated&&(te.props!==!0&&j.props!==void 0&&(te.props=l.mergeEvaluated.props(ce,j.props,te.props,Y)),te.items!==!0&&j.items!==void 0&&(te.items=l.mergeEvaluated.items(ce,j.items,te.items,Y)))}mergeValidEvaluated(j,Y){const{it:te,gen:ce}=this;if(te.opts.unevaluated&&(te.props!==!0||te.items!==!0))return ce.if(Y,()=>this.mergeEvaluated(j,c.Name)),!0}}jt.KeywordCxt=_;function L(k,j,Y,te){const ce=new _(k,Y,j);"code"in Y?Y.code(ce,te):ce.$data&&Y.validate?(0,s.funcKeywordCode)(ce,Y):"macro"in Y?(0,s.macroKeywordCode)(ce,Y):(Y.compile||Y.validate)&&(0,s.funcKeywordCode)(ce,Y)}const V=/^\/(?:[^~]|~0|~1)*$/,J=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ie(k,{dataLevel:j,dataNames:Y,dataPathArr:te}){let ce,ye;if(k==="")return a.default.rootData;if(k[0]==="/"){if(!V.test(k))throw new Error(`Invalid JSON-pointer: ${k}`);ce=k,ye=a.default.rootData}else{const Z=J.exec(k);if(!Z)throw new Error(`Invalid JSON-pointer: ${k}`);const re=+Z[1];if(ce=Z[2],ce==="#"){if(re>=j)throw new Error(ne("property/index",re));return te[j-re]}if(re>j)throw new Error(ne("data",re));if(ye=Y[j-re],!ce)return ye}let P=ye;const W=ce.split("/");for(const Z of W)Z&&(ye=(0,c._)`${ye}${(0,c.getProperty)((0,l.unescapeJsonPointer)(Z))}`,P=(0,c._)`${P} && ${ye}`);return P;function ne(Z,re){return`Cannot access ${Z} ${re} levels up, current level is ${j}`}}return jt.getData=ie,jt}var In={},Oc;function Nr(){if(Oc)return In;Oc=1,Object.defineProperty(In,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return In.default=e,In}var Tn={},Nc;function ir(){if(Nc)return Tn;Nc=1,Object.defineProperty(Tn,"__esModule",{value:!0});const e=xn();class t extends Error{constructor(n,o,s,i){super(i||`can't resolve reference ${s} from id ${o}`),this.missingRef=(0,e.resolveUrl)(n,o,s),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(n,this.missingRef))}}return Tn.default=t,Tn}var at={},jc;function _n(){if(jc)return at;jc=1,Object.defineProperty(at,"__esModule",{value:!0}),at.resolveSchema=at.getCompilingSchema=at.resolveRef=at.compileSchema=at.SchemaEnv=void 0;const e=$e(),t=Nr(),r=st(),n=xn(),o=Ne(),s=sr();class i{constructor(E){var w;this.refs={},this.dynamicAnchors={};let f;typeof E.schema=="object"&&(f=E.schema),this.schema=E.schema,this.schemaId=E.schemaId,this.root=E.root||this,this.baseId=(w=E.baseId)!==null&&w!==void 0?w:(0,n.normalizeId)(f?.[E.schemaId||"$id"]),this.schemaPath=E.schemaPath,this.localRefs=E.localRefs,this.meta=E.meta,this.$async=f?.$async,this.refs={}}}at.SchemaEnv=i;function c(b){const E=l.call(this,b);if(E)return E;const w=(0,n.getFullPath)(this.opts.uriResolver,b.root.baseId),{es5:f,lines:I}=this.opts.code,{ownProperties:g}=this.opts,v=new e.CodeGen(this.scope,{es5:f,lines:I,ownProperties:g});let x;b.$async&&(x=v.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const N=v.scopeName("validate");b.validateName=N;const K={gen:v,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:v.scopeValue("schema",this.opts.code.source===!0?{ref:b.schema,code:(0,e.stringify)(b.schema)}:{ref:b.schema}),validateName:N,ValidationError:x,schema:b.schema,schemaEnv:b,rootId:w,baseId:b.baseId||w,schemaPath:e.nil,errSchemaPath:b.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let R;try{this._compilations.add(b),(0,s.validateFunctionCode)(K),v.optimize(this.opts.code.optimize);const C=v.toString();R=`const visitedNodesForRef = new WeakMap(); ${v.scopeRefs(r.default.scope)}return ${C}`,this.opts.code.process&&(R=this.opts.code.process(R,b));const F=new Function(`${r.default.self}`,`${r.default.scope}`,R)(this,this.scope.get());if(this.scope.value(N,{ref:F}),F.errors=null,F.schema=b.schema,F.schemaEnv=b,b.$async&&(F.$async=!0),this.opts.code.source===!0&&(F.source={validateName:N,validateCode:C,scopeValues:v._values}),this.opts.unevaluated){const{props:O,items:z}=K;F.evaluated={props:O instanceof e.Name?void 0:O,items:z instanceof e.Name?void 0:z,dynamicProps:O instanceof e.Name,dynamicItems:z instanceof e.Name},F.source&&(F.source.evaluated=(0,e.stringify)(F.evaluated))}return b.validate=F,b}catch(C){throw delete b.validate,delete b.validateName,R&&this.logger.error("Error compiling schema, function code:",R),C}finally{this._compilations.delete(b)}}at.compileSchema=c;function a(b,E,w){var f;const I=(0,n.resolveUrl)(this.opts.uriResolver,E,w),g=b.refs[I];if(g)return g;let v=y.call(this,b,I);if(v===void 0){const x=(f=b.localRefs)===null||f===void 0?void 0:f[I],{schemaId:N}=this.opts;x&&(v=new i({schema:x,schemaId:N,root:b,baseId:E}))}if(v===void 0&&this.opts.loadSchemaSync){const x=this.opts.loadSchemaSync(E,w,I);x&&!(this.refs[I]||this.schemas[I])&&(this.addSchema(x,I,void 0),v=y.call(this,b,I))}if(v!==void 0)return b.refs[I]=p.call(this,v)}at.resolveRef=a;function p(b){return(0,n.inlineRef)(b.schema,this.opts.inlineRefs)?b.schema:b.validate?b:c.call(this,b)}function l(b){for(const E of this._compilations)if(d(E,b))return E}at.getCompilingSchema=l;function d(b,E){return b.schema===E.schema&&b.root===E.root&&b.baseId===E.baseId}function y(b,E){let w;for(;typeof(w=this.refs[E])=="string";)E=w;return w||this.schemas[E]||m.call(this,b,E)}function m(b,E){const w=this.opts.uriResolver.parse(E),f=(0,n._getFullPath)(this.opts.uriResolver,w);let I=(0,n.getFullPath)(this.opts.uriResolver,b.baseId,void 0);if(Object.keys(b.schema).length>0&&f===I)return $.call(this,w,b);const g=(0,n.normalizeId)(f),v=this.refs[g]||this.schemas[g];if(typeof v=="string"){const x=m.call(this,b,v);return typeof x?.schema!="object"?void 0:$.call(this,w,x)}if(typeof v?.schema=="object"){if(v.validate||c.call(this,v),g===(0,n.normalizeId)(E)){const{schema:x}=v,{schemaId:N}=this.opts,K=x[N];return K&&(I=(0,n.resolveUrl)(this.opts.uriResolver,I,K)),new i({schema:x,schemaId:N,root:b,baseId:I})}return $.call(this,w,v)}}at.resolveSchema=m;const h=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function $(b,{baseId:E,schema:w,root:f}){var I;if(((I=b.fragment)===null||I===void 0?void 0:I[0])!=="/")return;for(const x of b.fragment.slice(1).split("/")){if(typeof w=="boolean")return;const N=w[(0,o.unescapeFragment)(x)];if(N===void 0)return;w=N;const K=typeof w=="object"&&w[this.opts.schemaId];!h.has(x)&&K&&(E=(0,n.resolveUrl)(this.opts.uriResolver,E,K))}let g;if(typeof w!="boolean"&&w.$ref&&!(0,o.schemaHasRulesButRef)(w,this.RULES)){const x=(0,n.resolveUrl)(this.opts.uriResolver,E,w.$ref);g=m.call(this,f,x)}const{schemaId:v}=this.opts;if(g=g||new i({schema:w,schemaId:v,root:f,baseId:E}),g.schema!==g.root.schema)return g}return at}const xy="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Iy="Meta-schema for $data reference (JSON AnySchema extension proposal)",Ty="object",_y=["$data"],Py={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Sy=!1,ky={$id:xy,description:Iy,type:Ty,required:_y,properties:Py,additionalProperties:Sy};var Pn={},jr={exports:{}},Is,Ac;function Rc(){if(Ac)return Is;Ac=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=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),r=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),n=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),o=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function s(g){let v="",x=0,N=0;for(N=0;N<g.length;N++)if(x=g[N].charCodeAt(0),x!==48){if(!(x>=48&&x<=57||x>=65&&x<=70||x>=97&&x<=102))return"";v+=g[N];break}for(N+=1;N<g.length;N++){if(x=g[N].charCodeAt(0),!(x>=48&&x<=57||x>=65&&x<=70||x>=97&&x<=102))return"";v+=g[N]}return v}const i=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function c(g){return g.length=0,!0}function a(g,v,x){if(g.length){const N=s(g);if(N!=="")v.push(N);else return x.error=!0,!1;g.length=0}return!0}function p(g){let v=0;const x={error:!1,address:"",zone:""},N=[],K=[];let R=!1,C=!1,F=a;for(let O=0;O<g.length;O++){const z=g[O];if(!(z==="["||z==="]"))if(z===":"){if(R===!0&&(C=!0),!F(K,N,x))break;if(++v>7){x.error=!0;break}O>0&&g[O-1]===":"&&(R=!0),N.push(":");continue}else if(z==="%"){if(!F(K,N,x))break;F=c}else{K.push(z);continue}}return K.length&&(F===c?x.zone=K.join(""):C?N.push(K.join("")):N.push(s(K))),x.address=N.join(""),x}function l(g){if(d(g,":")<2)return{host:g,isIPV6:!1};const v=p(g);if(v.error)return{host:g,isIPV6:!1};{let x=v.address,N=v.address;return v.zone&&(x+="%"+v.zone,N+="%25"+v.zone),{host:x,isIPV6:!0,escapedHost:N}}}function d(g,v){let x=0;for(let N=0;N<g.length;N++)g[N]===v&&x++;return x}function y(g){let v=g;const x=[];let N=-1,K=0;for(;K=v.length;){if(K===1){if(v===".")break;if(v==="/"){x.push("/");break}else{x.push(v);break}}else if(K===2){if(v[0]==="."){if(v[1]===".")break;if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&(v[1]==="."||v[1]==="/")){x.push("/");break}}else if(K===3&&v==="/.."){x.length!==0&&x.pop(),x.push("/");break}if(v[0]==="."){if(v[1]==="."){if(v[2]==="/"){v=v.slice(3);continue}}else if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&v[1]==="."){if(v[2]==="/"){v=v.slice(2);continue}else if(v[2]==="."&&v[3]==="/"){v=v.slice(3),x.length!==0&&x.pop();continue}}if((N=v.indexOf("/",1))===-1){x.push(v);break}else x.push(v.slice(0,N)),v=v.slice(N)}return x.join("")}const m={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},h=/[@/?#:]/g,$=/[@/?#]/g;function b(g,v){const x=v?$:h;return x.lastIndex=0,g.replace(x,N=>m[N])}function E(g,v=!1){if(g.indexOf("%")===-1)return g;let x="";for(let N=0;N<g.length;N++){if(g[N]==="%"&&N+2<g.length){const K=g.slice(N+1,N+3);if(r(K)){const R=K.toUpperCase(),C=String.fromCharCode(parseInt(R,16));v&&n(C)?x+=C:x+="%"+R,N+=2;continue}}x+=g[N]}return x}function w(g){let v="";for(let x=0;x<g.length;x++){if(g[x]==="%"&&x+2<g.length){const N=g.slice(x+1,x+3);if(r(N)){const K=N.toUpperCase(),R=String.fromCharCode(parseInt(K,16));R!=="."&&n(R)?v+=R:v+="%"+K,x+=2;continue}}o(g[x])?v+=g[x]:v+=escape(g[x])}return v}function f(g){let v="";for(let x=0;x<g.length;x++){if(g[x]==="%"&&x+2<g.length){const N=g.slice(x+1,x+3);if(r(N)){v+="%"+N.toUpperCase(),x+=2;continue}}v+=escape(g[x])}return v}function I(g){const v=[];if(g.userinfo!==void 0&&(v.push(g.userinfo),v.push("@")),g.host!==void 0){let x=unescape(g.host);if(!t(x)){const N=l(x);N.isIPV6===!0?x=`[${N.escapedHost}]`:x=b(x,!1)}v.push(x)}return(typeof g.port=="number"||typeof g.port=="string")&&(v.push(":"),v.push(String(g.port))),v.length?v.join(""):void 0}return Is={nonSimpleDomain:i,recomposeAuthority:I,reescapeHostDelimiters:b,normalizePercentEncoding:E,normalizePathEncoding:w,escapePreservingEscapes:f,removeDotSegments:y,isIPv4:t,isUUID:e,normalizeIPv6:l,stringArrayToHexStripped:s},Is}var Ts,Cc;function Oy(){if(Cc)return Ts;Cc=1;const{isUUID:e}=Rc(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function n(f){return r.indexOf(f)!==-1}function o(f){return f.secure===!0?!0:f.secure===!1?!1:f.scheme?f.scheme.length===3&&(f.scheme[0]==="w"||f.scheme[0]==="W")&&(f.scheme[1]==="s"||f.scheme[1]==="S")&&(f.scheme[2]==="s"||f.scheme[2]==="S"):!1}function s(f){return f.host||(f.error=f.error||"HTTP URIs must have a host."),f}function i(f){const I=String(f.scheme).toLowerCase()==="https";return(f.port===(I?443:80)||f.port==="")&&(f.port=void 0),f.path||(f.path="/"),f}function c(f){return f.secure=o(f),f.resourceName=(f.path||"/")+(f.query?"?"+f.query:""),f.path=void 0,f.query=void 0,f}function a(f){if((f.port===(o(f)?443:80)||f.port==="")&&(f.port=void 0),typeof f.secure=="boolean"&&(f.scheme=f.secure?"wss":"ws",f.secure=void 0),f.resourceName){const[I,g]=f.resourceName.split("?");f.path=I&&I!=="/"?I:void 0,f.query=g,f.resourceName=void 0}return f.fragment=void 0,f}function p(f,I){if(!f.path)return f.error="URN can not be parsed",f;const g=f.path.match(t);if(g){const v=I.scheme||f.scheme||"urn";f.nid=g[1].toLowerCase(),f.nss=g[2];const x=`${v}:${I.nid||f.nid}`,N=w(x);f.path=void 0,N&&(f=N.parse(f,I))}else f.error=f.error||"URN can not be parsed.";return f}function l(f,I){if(f.nid===void 0)throw new Error("URN without nid cannot be serialized");const g=I.scheme||f.scheme||"urn",v=f.nid.toLowerCase(),x=`${g}:${I.nid||v}`,N=w(x);N&&(f=N.serialize(f,I));const K=f,R=f.nss;return K.path=`${v||I.nid}:${R}`,I.skipEscape=!0,K}function d(f,I){const g=f;return g.uuid=g.nss,g.nss=void 0,!I.tolerant&&(!g.uuid||!e(g.uuid))&&(g.error=g.error||"UUID is not valid."),g}function y(f){const I=f;return I.nss=(f.uuid||"").toLowerCase(),I}const m={scheme:"http",domainHost:!0,parse:s,serialize:i},h={scheme:"https",domainHost:m.domainHost,parse:s,serialize:i},$={scheme:"ws",domainHost:!0,parse:c,serialize:a},b={scheme:"wss",domainHost:$.domainHost,parse:$.parse,serialize:$.serialize},E={http:m,https:h,ws:$,wss:b,urn:{scheme:"urn",parse:p,serialize:l,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:d,serialize:y,skipNormalize:!0}};Object.setPrototypeOf(E,null);function w(f){return f&&(E[f]||E[f.toLowerCase()])||void 0}return Ts={wsIsSecure:o,SCHEMES:E,isValidSchemeName:n,getSchemeHandler:w},Ts}var Dc;function Ny(){if(Dc)return jr.exports;Dc=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:n,normalizePathEncoding:o,escapePreservingEscapes:s,reescapeHostDelimiters:i,isIPv4:c,nonSimpleDomain:a}=Rc(),{SCHEMES:p,getSchemeHandler:l}=Oy();function d(R,C){return typeof R=="string"?R=v(R,C):typeof R=="object"&&(R=g($(R,C),C)),R}function y(R,C,F){const O=F?Object.assign({scheme:"null"},F):{scheme:"null"},{parsed:z,malformedAuthorityOrPort:me}=I(R,O),{parsed:we,malformedAuthorityOrPort:Te}=I(C,O);if(me||Te)throw new Error(z.error||we.error||"URI is malformed.");const ve=m(z,we,O,!0);return O.skipEscape=!0,$(ve,O)}function m(R,C,F,O){const z={};return O||(R=g($(R,F),F),C=g($(C,F),F)),F=F||{},!F.tolerant&&C.scheme?(z.scheme=C.scheme,z.userinfo=C.userinfo,z.host=C.host,z.port=C.port,z.path=t(C.path||""),z.query=C.query):(C.userinfo!==void 0||C.host!==void 0||C.port!==void 0?(z.userinfo=C.userinfo,z.host=C.host,z.port=C.port,z.path=t(C.path||""),z.query=C.query):(C.path?(C.path[0]==="/"?z.path=t(C.path):((R.userinfo!==void 0||R.host!==void 0||R.port!==void 0)&&!R.path?z.path="/"+C.path:R.path?z.path=R.path.slice(0,R.path.lastIndexOf("/")+1)+C.path:z.path=C.path,z.path=t(z.path)),z.query=C.query):(z.path=R.path,C.query!==void 0?z.query=C.query:z.query=R.query),z.userinfo=R.userinfo,z.host=R.host,z.port=R.port),z.scheme=R.scheme),z.fragment=C.fragment,z}function h(R,C,F){const O=N(R,F),z=N(C,F);return O!==void 0&&z!==void 0&&O.toLowerCase()===z.toLowerCase()}function $(R,C){const F={host:R.host,scheme:R.scheme,userinfo:R.userinfo,port:R.port,path:R.path,query:R.query,nid:R.nid,nss:R.nss,uuid:R.uuid,fragment:R.fragment,reference:R.reference,resourceName:R.resourceName,secure:R.secure,error:""},O=Object.assign({},C),z=[],me=l(O.scheme||F.scheme);me&&me.serialize&&me.serialize(F,O),F.path!==void 0&&(O.skipEscape?F.path=n(F.path):(F.path=s(F.path),F.scheme!==void 0&&(F.path=F.path.split("%3A").join(":")))),O.reference!=="suffix"&&F.scheme&&z.push(F.scheme,":");const we=r(F);if(we!==void 0&&(O.reference!=="suffix"&&z.push("//"),z.push(we),F.path&&F.path[0]!=="/"&&z.push("/")),F.path!==void 0){let Te=F.path;!O.absolutePath&&(!me||!me.absolutePath)&&(Te=t(Te)),we===void 0&&Te[0]==="/"&&Te[1]==="/"&&(Te="/%2F"+Te.slice(2)),z.push(Te)}return F.query!==void 0&&z.push("?",F.query),F.fragment!==void 0&&z.push("#",F.fragment),z.join("")}const b=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,E=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,w=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function f(R,C){if(C[2]!==void 0&&R.path&&R.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof R.port=="number"&&(R.port<0||R.port>65535))return"URI port is malformed."}function I(R,C){const F=Object.assign({},C),O={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let z=!1,me=!1;F.reference==="suffix"&&(F.scheme?R=F.scheme+":"+R:R="//"+R);const we=R.match(E);we!==null&&we[1].indexOf("\\")!==-1&&(O.error="URI authority must not contain a literal backslash.",z=!0);const Te=R.match(w);if(Te!==null){const je=Te[1],q=je.replace(/[\t\n\r]/g,"");q.length>=2&&(q.slice(0,2)!=="//"?(O.error=O.error||"URI authority must not contain a literal backslash.",z=!0):je.length!==q.length&&(O.error=O.error||"URI authority introducer must not contain whitespace.",z=!0))}const ve=R.match(b);if(ve){O.scheme=ve[1],O.userinfo=ve[3],O.host=ve[4],O.port=parseInt(ve[5],10),O.path=ve[6]||"",O.query=ve[7],O.fragment=ve[8],isNaN(O.port)&&(O.port=ve[5]);const je=f(O,ve);if(je!==void 0&&(O.error=O.error||je,z=!0),O.host)if(c(O.host)===!1){const A=e(O.host);O.host=A.host.toLowerCase(),me=A.isIPV6}else me=!0;O.scheme===void 0&&O.userinfo===void 0&&O.host===void 0&&O.port===void 0&&O.query===void 0&&!O.path?O.reference="same-document":O.scheme===void 0?O.reference="relative":O.fragment===void 0?O.reference="absolute":O.reference="uri",F.reference&&F.reference!=="suffix"&&F.reference!==O.reference&&(O.error=O.error||"URI is not a "+F.reference+" reference.");const q=l(F.scheme||O.scheme);if(!F.unicodeSupport&&(!q||!q.unicodeSupport)&&O.host&&(F.domainHost||q&&q.domainHost)&&me===!1&&a(O.host))try{O.host=new URL("http://"+O.host).hostname}catch(A){O.error=O.error||"Host's domain name can not be converted to ASCII: "+A}if((!q||q&&!q.skipNormalize)&&(R.indexOf("%")!==-1&&(O.scheme!==void 0&&(O.scheme=unescape(O.scheme)),O.host!==void 0&&(O.host=i(unescape(O.host),me))),O.path&&(O.path=o(O.path)),O.fragment))try{O.fragment=encodeURI(decodeURIComponent(O.fragment))}catch{O.error=O.error||"URI malformed"}q&&q.parse&&q.parse(O,F)}else O.error=O.error||"URI can not be parsed.";return{parsed:O,malformedAuthorityOrPort:z}}function g(R,C){return I(R,C).parsed}function v(R,C){return x(R,C).normalized}function x(R,C){const{parsed:F,malformedAuthorityOrPort:O}=I(R,C);return{normalized:O?R:$(F,C),malformedAuthorityOrPort:O}}function N(R,C){if(typeof R=="string"){const{normalized:F,malformedAuthorityOrPort:O}=x(R,C);return O?void 0:F}if(typeof R=="object")return $(R,C)}const K={SCHEMES:p,normalize:d,resolve:y,resolveComponent:m,equal:h,serialize:$,parse:g};return jr.exports=K,jr.exports.default=K,jr.exports.fastUri=K,jr.exports}var qc;function jy(){if(qc)return Pn;qc=1,Object.defineProperty(Pn,"__esModule",{value:!0});const e=Ny();return e.code='require("ajv/dist/runtime/uri").default',Pn.default=e,Pn}var Lc;function _s(){return Lc||(Lc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=sr();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=$e();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=Nr(),o=ir(),s=gc(),i=_n(),c=$e(),a=xn(),p=En(),l=Ne(),d=ky,y=jy(),m=(q,A)=>new RegExp(q,A);m.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],$=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),b={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."},E={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},w=200;function f(q){var A,H,D,T,S,_,L,V,J,ie,k,j,Y,te,ce,ye,P,W,ne,Z,re,pe,oe,ae,xe;const Fe=q.strict,u=(A=q.code)===null||A===void 0?void 0:A.optimize,U=u===!0||u===void 0?1:u||0,M=(D=(H=q.code)===null||H===void 0?void 0:H.regExp)!==null&&D!==void 0?D:m,G=(T=q.uriResolver)!==null&&T!==void 0?T:y.default;return{strictSchema:(_=(S=q.strictSchema)!==null&&S!==void 0?S:Fe)!==null&&_!==void 0?_:!0,strictNumbers:(V=(L=q.strictNumbers)!==null&&L!==void 0?L:Fe)!==null&&V!==void 0?V:!0,strictTypes:(ie=(J=q.strictTypes)!==null&&J!==void 0?J:Fe)!==null&&ie!==void 0?ie:"log",strictTuples:(j=(k=q.strictTuples)!==null&&k!==void 0?k:Fe)!==null&&j!==void 0?j:"log",strictRequired:(te=(Y=q.strictRequired)!==null&&Y!==void 0?Y:Fe)!==null&&te!==void 0?te:!1,code:q.code?{...q.code,optimize:U,regExp:M}:{optimize:U,regExp:M},loopRequired:(ce=q.loopRequired)!==null&&ce!==void 0?ce:w,loopEnum:(ye=q.loopEnum)!==null&&ye!==void 0?ye:w,meta:(P=q.meta)!==null&&P!==void 0?P:!0,messages:(W=q.messages)!==null&&W!==void 0?W:!0,inlineRefs:(ne=q.inlineRefs)!==null&&ne!==void 0?ne:!0,schemaId:(Z=q.schemaId)!==null&&Z!==void 0?Z:"$id",addUsedSchema:(re=q.addUsedSchema)!==null&&re!==void 0?re:!0,validateSchema:(pe=q.validateSchema)!==null&&pe!==void 0?pe:!0,validateFormats:(oe=q.validateFormats)!==null&&oe!==void 0?oe:!0,unicodeRegExp:(ae=q.unicodeRegExp)!==null&&ae!==void 0?ae:!0,int32range:(xe=q.int32range)!==null&&xe!==void 0?xe:!0,uriResolver:G}}class I{constructor(A={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,A=this.opts={...A,...f(A)};const{es5:H,lines:D}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:$,es5:H,lines:D}),this.logger=F(A.logger);const T=A.validateFormats;A.validateFormats=!1,this.RULES=(0,s.getRules)(),g.call(this,b,A,"NOT SUPPORTED"),g.call(this,E,A,"DEPRECATED","warn"),this._metaOpts=R.call(this),A.formats&&N.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),A.keywords&&K.call(this,A.keywords),typeof A.meta=="object"&&this.addMetaSchema(A.meta),x.call(this),A.validateFormats=T}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:A,meta:H,schemaId:D}=this.opts;let T=d;D==="id"&&(T={...d},T.id=T.$id,delete T.$id),H&&A&&this.addMetaSchema(T,T[D],!1)}defaultMeta(){const{meta:A,schemaId:H}=this.opts;return this.opts.defaultMeta=typeof A=="object"?A[H]||A:void 0}setDefaultUnevaluatedProperties(A){this.opts.defaultUnevaluatedProperties=A}validate(A,H){let D;if(typeof A=="string"){if(D=this.getSchema(A),!D)throw new Error(`no schema with key or ref "${A}"`)}else D=this.compile(A);const T=D(H);return"$async"in D||(this.errors=D.errors),T}compile(A,H){const D=this._addSchema(A,H);return D.validate||this._compileSchemaEnv(D)}compileAsync(A,H){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:D}=this.opts;return T.call(this,A,H);async function T(ie,k){await S.call(this,ie.$schema);const j=this._addSchema(ie,k);return j.validate||_.call(this,j)}async function S(ie){ie&&!this.getSchema(ie)&&await T.call(this,{$ref:ie},!0)}async function _(ie){try{return this._compileSchemaEnv(ie)}catch(k){if(!(k instanceof o.default))throw k;return L.call(this,k),await V.call(this,k.missingSchema),_.call(this,ie)}}function L({missingSchema:ie,missingRef:k}){if(this.refs[ie])throw new Error(`AnySchema ${ie} is loaded but ${k} cannot be resolved`)}async function V(ie){const k=await J.call(this,ie);this.refs[ie]||await S.call(this,k.$schema),this.refs[ie]||this.addSchema(k,ie,H)}async function J(ie){const k=this._loading[ie];if(k)return k;try{return await(this._loading[ie]=D(ie))}finally{delete this._loading[ie]}}}addSchema(A,H,D,T=this.opts.validateSchema){if(Array.isArray(A)){for(const _ of A)this.addSchema(_,void 0,D,T);return this}let S;if(typeof A=="object"){const{schemaId:_}=this.opts;if(S=A[_],S!==void 0&&typeof S!="string")throw new Error(`schema ${_} must be string`)}return H=(0,a.normalizeId)(H||S),this._checkUnique(H),this.schemas[H]=this._addSchema(A,D,H,T,!0),this}addMetaSchema(A,H,D=this.opts.validateSchema){return this.addSchema(A,H,!0,D),this}validateSchema(A,H){if(typeof A=="boolean")return!0;let D;if(D=A.$schema,D!==void 0&&typeof D!="string")throw new Error("$schema must be a string");if(D=D||this.opts.defaultMeta||this.defaultMeta(),!D)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const T=this.validate(D,A);if(!T&&H){const S="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(S);else throw new Error(S)}return T}getSchema(A){let H;for(;typeof(H=v.call(this,A))=="string";)A=H;if(H===void 0){const{schemaId:D}=this.opts,T=new i.SchemaEnv({schema:{},schemaId:D});if(H=i.resolveSchema.call(this,T,A),!H)return;this.refs[A]=H}return H.validate||this._compileSchemaEnv(H)}removeSchema(A){if(A instanceof RegExp)return this._removeAllSchemas(this.schemas,A),this._removeAllSchemas(this.refs,A),this;switch(typeof A){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const H=v.call(this,A);return typeof H=="object"&&this._cache.delete(H.schema),delete this.schemas[A],delete this.refs[A],this}case"object":{const H=A;this._cache.delete(H);let D=A[this.opts.schemaId];return D&&(D=(0,a.normalizeId)(D),delete this.schemas[D],delete this.refs[D]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(A){for(const H of A)this.addKeyword(H);return this}addKeyword(A,H){let D;if(typeof A=="string")D=A,typeof H=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),H.keyword=D);else if(typeof A=="object"&&H===void 0){if(H=A,D=H.keyword,Array.isArray(D)&&!D.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(z.call(this,D,H),!H)return(0,l.eachItem)(D,S=>me.call(this,S)),this;Te.call(this,H);const T={...H,type:(0,p.getJSONTypes)(H.type),schemaType:(0,p.getJSONTypes)(H.schemaType)};return(0,l.eachItem)(D,T.type.length===0?S=>me.call(this,S,T):S=>T.type.forEach(_=>me.call(this,S,T,_))),this}getKeyword(A){const H=this.RULES.all[A];return typeof H=="object"?H.definition:!!H}removeKeyword(A){const{RULES:H}=this;delete H.keywords[A],delete H.all[A];for(const D of H.rules){const T=D.rules.findIndex(S=>S.keyword===A);T>=0&&D.rules.splice(T,1)}return this}addFormat(A,H){return typeof H=="string"&&(H=new RegExp(H)),this.formats[A]=H,this}errorsText(A=this.errors,{separator:H=", ",dataVar:D="data"}={}){return!A||A.length===0?"No errors":A.map(T=>`${D}${T.instancePath} ${T.message}`).reduce((T,S)=>T+H+S)}$dataMetaSchema(A,H){const D=this.RULES.all;A=JSON.parse(JSON.stringify(A));for(const T of H){const S=T.split("/").slice(1);let _=A;for(const L of S)_=_[L];for(const L in D){const V=D[L];if(typeof V!="object")continue;const{$data:J}=V.definition,ie=_[L];J&&ie&&(_[L]=je(ie))}}return A}_removeAllSchemas(A,H){for(const D in A){const T=A[D];(!H||H.test(D))&&(typeof T=="string"?delete A[D]:T&&!T.meta&&(this._cache.delete(T.schema),delete A[D]))}}_addSchema(A,H,D,T=this.opts.validateSchema,S=this.opts.addUsedSchema){let _;const{schemaId:L}=this.opts;if(typeof A=="object")_=A[L];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof A!="boolean")throw new Error("schema must be object or boolean")}let V=this._cache.get(A);if(V!==void 0)return V;D=(0,a.normalizeId)(_||D);const J=a.getSchemaRefs.call(this,A,D);return V=new i.SchemaEnv({schema:A,schemaId:L,meta:H,baseId:D,localRefs:J}),this._cache.set(V.schema,V),S&&!D.startsWith("#")&&(D&&this._checkUnique(D),this.refs[D]=V),T&&this.validateSchema(A,!0),V}_checkUnique(A){if(this.schemas[A]||this.refs[A])throw new Error(`schema with key or id "${A}" already exists`)}_compileSchemaEnv(A){if(A.meta?this._compileMetaSchema(A):i.compileSchema.call(this,A),!A.validate)throw new Error("ajv implementation error");return A.validate}_compileMetaSchema(A){const H=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,A)}finally{this.opts=H}}}I.ValidationError=n.default,I.MissingRefError=o.default,e.default=I;function g(q,A,H,D="error"){for(const T in q){const S=T;S in A&&this.logger[D](`${H}: option ${T}. ${q[S]}`)}}function v(q){return q=(0,a.normalizeId)(q),this.schemas[q]||this.refs[q]}function x(){const q=this.opts.schemas;if(q)if(Array.isArray(q))this.addSchema(q);else for(const A in q)this.addSchema(q[A],A)}function N(){for(const q in this.opts.formats){const A=this.opts.formats[q];A&&this.addFormat(q,A)}}function K(q){if(Array.isArray(q)){this.addVocabulary(q);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const A in q){const H=q[A];H.keyword||(H.keyword=A),this.addKeyword(H)}}function R(){const q={...this.opts};for(const A of h)delete q[A];return q}const C={log(){},warn(){},error(){}};function F(q){if(q===!1)return C;if(q===void 0)return console;if(q.log&&q.warn&&q.error)return q;throw new Error("logger must implement log, warn and error methods")}const O=/^[a-z_$][a-z0-9_$:-]*$/i;function z(q,A){const{RULES:H}=this;if((0,l.eachItem)(q,D=>{if(H.keywords[D])throw new Error(`Keyword ${D} is already defined`);if(!O.test(D))throw new Error(`Keyword ${D} has invalid name`)}),!!A&&A.$data&&!("code"in A||"validate"in A))throw new Error('$data keyword must have "code" or "validate" function')}function me(q,A,H){var D;const T=A?.post;if(H&&T)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:S}=this;let _=T?S.post:S.rules.find(({type:V})=>V===H);if(_||(_={type:H,rules:[]},S.rules.push(_)),S.keywords[q]=!0,!A)return;const L={keyword:q,definition:{...A,type:(0,p.getJSONTypes)(A.type),schemaType:(0,p.getJSONTypes)(A.schemaType)}};A.before?we.call(this,_,L,A.before):_.rules.push(L),S.all[q]=L,(D=A.implements)===null||D===void 0||D.forEach(V=>this.addKeyword(V))}function we(q,A,H){const D=q.rules.findIndex(T=>T.keyword===H);D>=0?q.rules.splice(D,0,A):(q.rules.push(A),this.logger.warn(`rule ${H} is not defined`))}function Te(q){let{metaSchema:A}=q;A!==void 0&&(q.$data&&this.opts.$data&&(A=je(A)),q.validateSchema=this.compile(A,!0))}const ve={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function je(q){return{anyOf:[q,ve]}}})(nc)),nc}var Sn={},kn={},On={},Mc;function Ay(){if(Mc)return On;Mc=1,Object.defineProperty(On,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return On.default=e,On}var Ft={},Vc;function Nn(){if(Vc)return Ft;Vc=1,Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.callRef=Ft.getValidate=void 0;const e=ir(),t=yt(),r=$e(),n=st(),o=_n(),s=Ne(),i={keyword:"$ref",schemaType:"string",code(p){const{gen:l,schema:d,it:y}=p,{baseId:m,schemaEnv:h,validateName:$,opts:b,self:E}=y,{root:w}=h;if((d==="#"||d==="#/")&&m===w.baseId)return I();const f=o.resolveRef.call(E,w,m,d);if(f===void 0)throw new e.default(y.opts.uriResolver,m,d);if(f instanceof o.SchemaEnv)return g(f);return v(f);function I(){if(h===w)return a(p,$,h,h.$async);const x=l.scopeValue("root",{ref:w});return a(p,(0,r._)`${x}.validate`,w,w.$async)}function g(x){const N=c(p,x);a(p,N,x,x.$async)}function v(x){const N=l.scopeValue("schema",b.code.source===!0?{ref:x,code:(0,r.stringify)(x)}:{ref:x}),K=l.name("valid"),R=p.subschema({schema:x,dataTypes:[],schemaPath:r.nil,topSchemaRef:N,errSchemaPath:d},K,y.isAllOfVariant);p.mergeEvaluated(R),p.ok(K)}}};function c(p,l){const{gen:d}=p;return l.validate?d.scopeValue("validate",{ref:l.validate}):(0,r._)`${d.scopeValue("wrapper",{ref:l})}.validate`}Ft.getValidate=c;function a(p,l,d,y){const{gen:m,it:h}=p,{allErrors:$,schemaEnv:b,opts:E}=h,w=E.passContext?n.default.this:r.nil;y?f():I();function f(){if(!b.$async)throw new Error("async schema referenced by sync schema");const x=m.let("valid");m.try(()=>{m.code((0,r._)`await ${(0,t.callValidateCode)(p,l,w)}`),v(l),$||m.assign(x,!0)},N=>{m.if((0,r._)`!(${N} instanceof ${h.ValidationError})`,()=>m.throw(N)),g(N),$||m.assign(x,!1)}),p.ok(x)}function I(){const x=m.name("visitedNodes");m.code((0,r._)`const ${x} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${l}) || new Set()`),m.if((0,r._)`!${x}.has(${p.data})`,()=>{m.code((0,r._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${l}, ${x})`),m.code((0,r._)`const dataNode = ${p.data}`),m.code((0,r._)`if (typeof dataNode === "object" && dataNode !== null) ${x}.add(dataNode)`);const N=p.result((0,t.callValidateCode)(p,l,w),()=>v(l),()=>g(l));return m.code((0,r._)`${x}.delete(dataNode)`),N})}function g(x){const N=(0,r._)`${x}.errors`;m.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${N} : ${n.default.vErrors}.concat(${N})`),m.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function v(x){var N;if(!h.opts.unevaluated)return;const K=(N=d?.validate)===null||N===void 0?void 0:N.evaluated;if(h.props!==!0)if(K&&!K.dynamicProps)K.props!==void 0&&(h.props=s.mergeEvaluated.props(m,K.props,h.props));else{const R=m.var("props",(0,r._)`${x}.evaluated.props`);h.props=s.mergeEvaluated.props(m,R,h.props,r.Name)}if(h.items!==!0)if(K&&!K.dynamicItems)K.items!==void 0&&(h.items=s.mergeEvaluated.items(m,K.items,h.items));else{const R=m.var("items",(0,r._)`${x}.evaluated.items`);h.items=s.mergeEvaluated.items(m,R,h.items,r.Name)}}}return Ft.callRef=a,Ft.default=i,Ft}var zc;function Fc(){if(zc)return kn;zc=1,Object.defineProperty(kn,"__esModule",{value:!0});const e=Ay(),t=Nn(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return kn.default=r,kn}var jn={},An={},Uc;function Ry(){if(Uc)return An;Uc=1,Object.defineProperty(An,"__esModule",{value:!0});const e=$e(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},n={message:({keyword:s,schemaCode:i})=>(0,e.str)`must be ${r[s].okStr} ${i}`,params:({keyword:s,schemaCode:i})=>(0,e._)`{comparison: ${r[s].okStr}, limit: ${i}}`},o={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(s){const{keyword:i,data:c,schemaCode:a}=s;s.fail$data((0,e._)`${c} ${r[i].fail} ${a} || isNaN(${c})`)}};return An.default=o,An}var Rn={},Bc;function Cy(){if(Bc)return Rn;Bc=1,Object.defineProperty(Rn,"__esModule",{value:!0});const e=$e(),t={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must be multiple of ${r}`,params:({schemaCode:r})=>(0,e._)`{multipleOf: ${r}}`},code(r){const{gen:n,data:o,schemaCode:s,it:i}=r,c=i.opts.multipleOfPrecision,a=n.let("res"),p=c?(0,e._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${c}`:(0,e._)`${a} !== parseInt(${a})`;r.fail$data((0,e._)`(${s} === 0 || (${a} = ${o}/${s}, ${p}))`)}};return Rn.default=t,Rn}var Cn={},Dn={},Kc;function Dy(){if(Kc)return Dn;Kc=1,Object.defineProperty(Dn,"__esModule",{value:!0});function e(t){const r=t.length;let n=0,o=0,s;for(;o<r;)n++,s=t.charCodeAt(o++),s>=55296&&s<=56319&&o<r&&(s=t.charCodeAt(o),(s&64512)===56320&&o++);return n}return Dn.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Dn}var Gc;function qy(){if(Gc)return Cn;Gc=1,Object.defineProperty(Cn,"__esModule",{value:!0});const e=$e(),t=Ne(),r=Dy(),n={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:s}){const i=o==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${i} than ${s} characters`},params:({schemaCode:o})=>(0,e._)`{limit: ${o}}`},code(o){const{keyword:s,data:i,schemaCode:c,it:a}=o,p=s==="maxLength"?e.operators.GT:e.operators.LT,l=a.opts.unicode===!1?(0,e._)`${i}.length`:(0,e._)`${(0,t.useFunc)(o.gen,r.default)}(${i})`;o.fail$data((0,e._)`${l} ${p} ${c}`)}};return Cn.default=n,Cn}var qn={},Yc;function Ly(){if(Yc)return qn;Yc=1,Object.defineProperty(qn,"__esModule",{value:!0});const e=yt(),t=Ne(),r=$e(),n={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:o})=>(0,r.str)`must match pattern "${o}"`,params:({schemaCode:o})=>(0,r._)`{pattern: ${o}}`},code(o){const{gen:s,data:i,$data:c,schema:a,schemaCode:p,it:l}=o,d=l.opts.unicodeRegExp?"u":"";if(c){const{regExp:y}=l.opts.code,m=y.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(s,y),h=s.let("valid");s.try(()=>s.assign(h,(0,r._)`${m}(${p}, ${d}).test(${i})`),()=>s.assign(h,!1)),o.fail$data((0,r._)`!${h}`)}else{const y=(0,e.usePattern)(o,a);o.fail$data((0,r._)`!${y}.test(${i})`)}}};return qn.default=n,qn}var Ln={},Wc;function My(){if(Wc)return Ln;Wc=1,Object.defineProperty(Ln,"__esModule",{value:!0});const e=$e(),t={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:n}){const o=r==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${n} properties`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:n,data:o,schemaCode:s}=r,i=n==="maxProperties"?e.operators.GT:e.operators.LT;r.fail$data((0,e._)`Object.keys(${o}).length ${i} ${s}`)}};return Ln.default=t,Ln}var Mn={},Hc;function Vy(){if(Hc)return Mn;Hc=1,Object.defineProperty(Mn,"__esModule",{value:!0});const e=yt(),t=xc(),r=$e(),n=Ne(),o={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:s}})=>(0,r.str)`must have required property '${s}'`,params:({params:{missingProperty:s}})=>(0,r._)`{missingProperty: ${s}}`},code(s){const{gen:i,schema:c,schemaCode:a,data:p,$data:l,it:d}=s,{opts:y}=d;if(!l&&c.length===0)return;const m=c.length>=y.loopRequired;if(d.allErrors?h():$(),y.strictRequired){const w=s.parentSchema.properties,{definedProperties:f}=s.it;for(const I of c)if(w?.[I]===void 0&&!f.has(I)){const g=d.schemaEnv.baseId+d.errSchemaPath,v=`required property "${I}" is not defined at "${g}" (strictRequired)`;(0,n.checkStrictMode)(d,v,d.opts.strictRequired)}}function h(){var w;if(m||l)s.block$data(r.nil,b);else for(const f of c){const I=(w=(0,t.getSkipCondition)(s.parentSchema,f))!==null&&w!==void 0?w:(0,r._)`false`;i.if((0,r.not)(I),()=>(0,e.checkReportMissingProp)(s,f))}}function $(){const w=i.let("missing");if(m||l){const f=i.let("valid",!0);s.block$data(f,()=>E(w,f)),s.ok(f)}else i.if((0,e.checkMissingProp)(s,c,w)),(0,e.reportMissingProp)(s,w),i.else()}function b(){i.forOf("prop",a,w=>{s.setParams({missingProperty:w}),i.if((0,e.noPropertyInData)(i,p,w,y.ownProperties),()=>s.error())})}function E(w,f){s.setParams({missingProperty:w}),i.forOf(w,a,()=>{i.assign(f,(0,e.propertyInData)(i,p,w,y.ownProperties)),i.if((0,r.not)(f),()=>{s.error(),i.break()})},r.nil)}}};return Mn.default=o,Mn}var Vn={},Qc;function zy(){if(Qc)return Vn;Qc=1,Object.defineProperty(Vn,"__esModule",{value:!0});const e=$e(),t=st(),r={keyword:"readOnly",schemaType:"boolean",error:{message:()=>(0,e.str)`must NOT be present in request context`},code(n){if(n.schema!==!0)return;const o=(0,e._)`(${t.default.this} && ${t.default.this}.apiContext)`;n.fail((0,e._)`${o} === "request"`)}};return Vn.default=r,Vn}var zn={},Jc;function Fy(){if(Jc)return zn;Jc=1,Object.defineProperty(zn,"__esModule",{value:!0});const e=$e(),t=st(),r={keyword:"writeOnly",schemaType:"boolean",error:{message:()=>(0,e.str)`must NOT be present in response context`},code(n){if(n.schema!==!0)return;const o=(0,e._)`(${t.default.this} && ${t.default.this}.apiContext)`;n.fail((0,e._)`${o} === "response"`)}};return zn.default=r,zn}var Fn={},Xc;function Uy(){if(Xc)return Fn;Xc=1,Object.defineProperty(Fn,"__esModule",{value:!0});const e=$e(),t={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:n}){const o=r==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${n} items`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:n,data:o,schemaCode:s}=r,i=n==="maxItems"?e.operators.GT:e.operators.LT;r.fail$data((0,e._)`${o}.length ${i} ${s}`)}};return Fn.default=t,Fn}var Un={},Bn={},Zc;function Ps(){if(Zc)return Bn;Zc=1,Object.defineProperty(Bn,"__esModule",{value:!0});const e=Ji();return e.code='require("ajv/dist/runtime/equal").default',Bn.default=e,Bn}var ep;function By(){if(ep)return Un;ep=1,Object.defineProperty(Un,"__esModule",{value:!0});const e=En(),t=$e(),r=Ne(),n=Ps(),o={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:s,j:i}})=>(0,t.str)`must NOT have duplicate items (items ## ${i} and ${s} are identical)`,params:({params:{i:s,j:i}})=>(0,t._)`{i: ${s}, j: ${i}}`},code(s){const{gen:i,data:c,$data:a,schema:p,parentSchema:l,schemaCode:d,it:y}=s;if(!a&&!p)return;const m=i.let("valid"),h=l.items?(0,e.getSchemaTypes)(l.items):[];s.block$data(m,$,(0,t._)`${d} === false`),s.ok(m);function $(){const f=i.let("i",(0,t._)`${c}.length`),I=i.let("j");s.setParams({i:f,j:I}),i.assign(m,!0),i.if((0,t._)`${f} > 1`,()=>(b()?E:w)(f,I))}function b(){return h.length>0&&!h.some(f=>f==="object"||f==="array")}function E(f,I){const g=i.name("item"),v=(0,e.checkDataTypes)(h,g,y.opts.strictNumbers,e.DataType.Wrong),x=i.const("indices",(0,t._)`{}`);i.for((0,t._)`;${f}--;`,()=>{i.let(g,(0,t._)`${c}[${f}]`),i.if(v,(0,t._)`continue`),h.length>1&&i.if((0,t._)`typeof ${g} == "string"`,(0,t._)`${g} += "_"`),i.if((0,t._)`typeof ${x}[${g}] == "number"`,()=>{i.assign(I,(0,t._)`${x}[${g}]`),s.error(),i.assign(m,!1).break()}).code((0,t._)`${x}[${g}] = ${f}`)})}function w(f,I){const g=(0,r.useFunc)(i,n.default),v=i.name("outer");i.label(v).for((0,t._)`;${f}--;`,()=>i.for((0,t._)`${I} = ${f}; ${I}--;`,()=>i.if((0,t._)`${g}(${c}[${f}], ${c}[${I}])`,()=>{s.error(),i.assign(m,!1).break(v)})))}}};return Un.default=o,Un}var Kn={},tp;function Ky(){if(tp)return Kn;tp=1,Object.defineProperty(Kn,"__esModule",{value:!0});const e=$e(),t=Ne(),r=Ps(),n={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:o})=>(0,e._)`{allowedValue: ${o}}`},code(o){const{gen:s,data:i,$data:c,schemaCode:a,schema:p}=o;c||p&&typeof p=="object"?o.fail$data((0,e._)`!${(0,t.useFunc)(s,r.default)}(${i}, ${a})`):o.fail((0,e._)`${p} !== ${i}`)}};return Kn.default=n,Kn}var Gn={},rp;function Gy(){if(rp)return Gn;rp=1,Object.defineProperty(Gn,"__esModule",{value:!0});const e=$e(),t=Ne(),r=Ps(),n={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:o})=>(0,e._)`{allowedValues: ${o}}`},code(o){const{gen:s,data:i,$data:c,schema:a,schemaCode:p,it:l}=o;if(!c&&a.length===0)throw new Error("enum must have non-empty array");const d=a.length>=l.opts.loopEnum;let y;const m=()=>y??(y=(0,t.useFunc)(s,r.default));let h;if(d||c)h=s.let("valid"),o.block$data(h,$);else{if(!Array.isArray(a))throw new Error("ajv implementation error");const E=s.const("vSchema",p);h=(0,e.or)(...a.map((w,f)=>b(E,f)))}o.pass(h);function $(){s.assign(h,!1),s.forOf("v",p,E=>s.if((0,e._)`${m()}(${i}, ${E})`,()=>s.assign(h,!0).break()))}function b(E,w){const f=a[w];return typeof f=="object"&&f!==null?(0,e._)`${m()}(${i}, ${E}[${w}])`:(0,e._)`${i} === ${f}`}}};return Gn.default=n,Gn}var np;function Ss(){if(np)return jn;np=1,Object.defineProperty(jn,"__esModule",{value:!0});const e=Ry(),t=Cy(),r=qy(),n=Ly(),o=My(),s=Vy(),i=zy(),c=Fy(),a=Uy(),p=By(),l=Ky(),d=Gy(),y=[e.default,t.default,r.default,n.default,o.default,s.default,i.default,c.default,a.default,p.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,d.default];return jn.default=y,jn}var Yn={},ar={},op;function sp(){if(op)return ar;op=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.validateAdditionalItems=void 0;const e=$e(),t=Ne(),r={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:o}})=>(0,e.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,e._)`{limit: ${o}}`},code(o){const{parentSchema:s,it:i}=o,{items:c}=s;if(!Array.isArray(c)){(0,t.checkStrictMode)(i,'"additionalItems" is ignored when "items" is not an array of schemas');return}n(o,c)}};function n(o,s){const{gen:i,schema:c,data:a,keyword:p,it:l}=o;l.items=!0;const d=i.const("len",(0,e._)`${a}.length`);if(c===!1)o.setParams({len:s.length}),o.pass((0,e._)`${d} <= ${s.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(l,c)){const m=i.var("valid",(0,e._)`${d} <= ${s.length}`);i.if((0,e.not)(m),()=>y(m)),o.ok(m)}function y(m){i.forRange("i",s.length,d,h=>{o.subschema({keyword:p,dataProp:h,dataPropType:t.Type.Num},m),l.allErrors||i.if((0,e.not)(m),()=>i.break())})}}return ar.validateAdditionalItems=n,ar.default=r,ar}var Wn={},cr={},ip;function ap(){if(ip)return cr;ip=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.validateTuple=void 0;const e=$e(),t=Ne(),r=yt(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(s){const{schema:i,it:c}=s;if(Array.isArray(i))return o(s,"additionalItems",i);c.items=!0,!(0,t.alwaysValidSchema)(c,i)&&s.ok((0,r.validateArray)(s))}};function o(s,i,c=s.schema){const{gen:a,parentSchema:p,data:l,keyword:d,it:y}=s;$(p),y.opts.unevaluated&&c.length&&y.items!==!0&&(y.items=t.mergeEvaluated.items(a,c.length,y.items));const m=a.name("valid"),h=a.const("len",(0,e._)`${l}.length`);c.forEach((b,E)=>{(0,t.alwaysValidSchema)(y,b)||(a.if((0,e._)`${h} > ${E}`,()=>s.subschema({keyword:d,schemaProp:E,dataProp:E},m)),s.ok(m))});function $(b){const{opts:E,errSchemaPath:w}=y,f=c.length,I=f===b.minItems&&(f===b.maxItems||b[i]===!1);if(E.strictTuples&&!I){const g=`"${d}" is ${f}-tuple, but minItems or maxItems/${i} are not specified or different at path "${w}"`;(0,t.checkStrictMode)(y,g,E.strictTuples)}}}return cr.validateTuple=o,cr.default=n,cr}var cp;function Yy(){if(cp)return Wn;cp=1,Object.defineProperty(Wn,"__esModule",{value:!0});const e=ap(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return Wn.default=t,Wn}var Hn={},pp;function Wy(){if(pp)return Hn;pp=1,Object.defineProperty(Hn,"__esModule",{value:!0});const e=$e(),t=Ne(),r=yt(),n=sp(),o={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,e.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,e._)`{limit: ${s}}`},code(s){const{schema:i,parentSchema:c,it:a}=s,{prefixItems:p}=c;a.items=!0,!(0,t.alwaysValidSchema)(a,i)&&(p?(0,n.validateAdditionalItems)(s,p):s.ok((0,r.validateArray)(s)))}};return Hn.default=o,Hn}var Qn={},lp;function Hy(){if(lp)return Qn;lp=1,Object.defineProperty(Qn,"__esModule",{value:!0});const e=$e(),t=Ne(),r={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:n,max:o}})=>o===void 0?(0,e.str)`must contain at least ${n} valid item(s)`:(0,e.str)`must contain at least ${n} and no more than ${o} valid item(s)`,params:({params:{min:n,max:o}})=>o===void 0?(0,e._)`{minContains: ${n}}`:(0,e._)`{minContains: ${n}, maxContains: ${o}}`},code(n){const{gen:o,schema:s,parentSchema:i,data:c,it:a}=n;let p,l;const{minContains:d,maxContains:y}=i;a.opts.next?(p=d===void 0?1:d,l=y):p=1;const m=o.const("len",(0,e._)`${c}.length`);if(n.setParams({min:p,max:l}),l===void 0&&p===0){(0,t.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(l!==void 0&&p>l){(0,t.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),n.fail();return}if((0,t.alwaysValidSchema)(a,s)){let w=(0,e._)`${m} >= ${p}`;l!==void 0&&(w=(0,e._)`${w} && ${m} <= ${l}`),n.pass(w);return}a.items=!0;const h=o.name("valid");l===void 0&&p===1?b(h,()=>o.if(h,()=>o.break())):p===0?(o.let(h,!0),l!==void 0&&o.if((0,e._)`${c}.length > 0`,$)):(o.let(h,!1),$()),n.result(h,()=>n.reset());function $(){const w=o.name("_valid"),f=o.let("count",0);b(w,()=>o.if(w,()=>E(f)))}function b(w,f){o.forRange("i",0,m,I=>{n.subschema({keyword:"contains",dataProp:I,dataPropType:t.Type.Num,compositeRule:!0},w),f()})}function E(w){o.code((0,e._)`${w}++`),l===void 0?o.if((0,e._)`${w} >= ${p}`,()=>o.assign(h,!0).break()):(o.if((0,e._)`${w} > ${l}`,()=>o.assign(h,!1).break()),p===1?o.assign(h,!0):o.if((0,e._)`${w} >= ${p}`,()=>o.assign(h,!0)))}}};return Qn.default=r,Qn}var up={},dp;function ks(){return dp||(dp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=$e(),r=Ne(),n=yt();e.error={message:({params:{property:a,depsCount:p,deps:l}})=>{const d=p===1?"property":"properties";return(0,t.str)`must have ${d} ${l} when property ${a} is present`},params:({params:{property:a,depsCount:p,deps:l,missingProperty:d}})=>(0,t._)`{property: ${a},
|
|
6
|
+
missingProperty: ${d},
|
|
7
|
+
depsCount: ${p},
|
|
8
|
+
deps: ${l}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(a){const[p,l]=s(a);i(a,p),c(a,l)}};function s({schema:a}){const p={},l={};for(const d in a){if(d==="__proto__")continue;const y=Array.isArray(a[d])?p:l;y[d]=a[d]}return[p,l]}function i(a,p=a.schema){const{gen:l,data:d,it:y}=a;if(Object.keys(p).length===0)return;const m=l.let("missing");for(const h in p){const $=p[h];if($.length===0)continue;const b=(0,n.propertyInData)(l,d,h,y.opts.ownProperties);a.setParams({property:h,depsCount:$.length,deps:$.join(", ")}),y.allErrors?l.if(b,()=>{for(const E of $)(0,n.checkReportMissingProp)(a,E)}):(l.if((0,t._)`${b} && (${(0,n.checkMissingProp)(a,$,m)})`),(0,n.reportMissingProp)(a,m),l.else())}}e.validatePropertyDeps=i;function c(a,p=a.schema){const{gen:l,data:d,keyword:y,it:m}=a,h=l.name("valid");for(const $ in p)(0,r.alwaysValidSchema)(m,p[$])||(l.if((0,n.propertyInData)(l,d,$,m.opts.ownProperties),()=>{const b=a.subschema({keyword:y,schemaProp:$},h);a.mergeValidEvaluated(b,h)},()=>l.var(h,!0)),a.ok(h))}e.validateSchemaDeps=c,e.default=o})(up)),up}var Jn={},fp;function Qy(){if(fp)return Jn;fp=1,Object.defineProperty(Jn,"__esModule",{value:!0});const e=$e(),t=Ne(),r={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:n})=>(0,e._)`{propertyName: ${n.propertyName}}`},code(n){const{gen:o,schema:s,data:i,it:c}=n;if((0,t.alwaysValidSchema)(c,s))return;const a=o.name("valid");o.forIn("key",i,p=>{n.setParams({propertyName:p}),n.subschema({keyword:"propertyNames",data:p,dataTypes:["string"],propertyName:p,compositeRule:!0},a),o.if((0,e.not)(a),()=>{n.error(!0),c.allErrors||o.break()})}),n.ok(a)}};return Jn.default=r,Jn}var Xn={},mp;function hp(){if(mp)return Xn;mp=1,Object.defineProperty(Xn,"__esModule",{value:!0});const e=yt(),t=$e(),r=st(),n=Ne(),o={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,t._)`{additionalProperty: ${s.additionalProperty}}`},code(s){const{gen:i,parentSchema:c,data:a,errsCount:p,it:l}=s,{schema:d=l.opts.defaultAdditionalProperties}=s;if(!p)throw new Error("ajv implementation error");const{allErrors:y,opts:m}=l;if(l.props=!0,m.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(l,d))return;const h=(0,e.allSchemaProperties)(c.properties),$=(0,e.allSchemaProperties)(c.patternProperties);b(),s.ok((0,t._)`${p} === ${r.default.errors}`);function b(){i.forIn("key",a,g=>{!h.length&&!$.length?f(g):i.if(E(g),()=>f(g))})}function E(g){let v;if(h.length>8){const x=(0,n.schemaRefOrVal)(l,c.properties,"properties");v=(0,e.isOwnProperty)(i,x,g)}else h.length?v=(0,t.or)(...h.map(x=>(0,t._)`${g} === ${x}`)):v=t.nil;return $.length&&(v=(0,t.or)(v,...$.map(x=>(0,t._)`${(0,e.usePattern)(s,x)}.test(${g})`))),(0,t.not)(v)}function w(g){i.code((0,t._)`delete ${a}[${g}]`)}function f(g){if(m.removeAdditional==="all"||m.removeAdditional&&d===!1){w(g);return}if(d===!1){s.setParams({additionalProperty:g}),s.error(),y||i.break();return}if(typeof d=="object"&&!(0,n.alwaysValidSchema)(l,d)){const v=i.name("valid");m.removeAdditional==="failing"?(I(g,v,!1),i.if((0,t.not)(v),()=>{s.reset(),w(g)})):(I(g,v),y||i.if((0,t.not)(v),()=>i.break()))}}function I(g,v,x){const N={keyword:"additionalProperties",dataProp:g,dataPropType:n.Type.Str};x===!1&&Object.assign(N,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(N,v)}}};return Xn.default=o,Xn}var Zn={},yp;function Jy(){if(yp)return Zn;yp=1,Object.defineProperty(Zn,"__esModule",{value:!0});const e=sr(),t=yt(),r=Ne(),n=hp(),o={keyword:"properties",type:"object",schemaType:"object",code(s){const{gen:i,schema:c,parentSchema:a,data:p,it:l}=s;(l.opts.removeAdditional==="all"&&a.additionalProperties===void 0||l.opts.defaultAdditionalProperties===!1)&&n.default.code(new e.KeywordCxt(l,n.default,"additionalProperties"));const d=(0,t.allSchemaProperties)(c);for(const b of d)l.definedProperties.add(b);l.opts.unevaluated&&d.length&&l.props!==!0&&(l.props=r.mergeEvaluated.props(i,(0,r.toHash)(d),l.props));const y=d.filter(b=>!(0,r.alwaysValidSchema)(l,c[b]));if(y.length===0)return;const m=i.name("valid");for(const b of y)h(b)?$(b):(i.if((0,t.propertyInData)(i,p,b,l.opts.ownProperties)),$(b),l.allErrors||i.else().var(m,!0),i.endIf()),s.it.definedProperties.add(b),s.ok(m);function h(b){return l.opts.useDefaults&&!l.compositeRule&&c[b].default!==void 0}function $(b){s.subschema({keyword:"properties",schemaProp:b,dataProp:b},m)}}};return Zn.default=o,Zn}var eo={},gp;function Xy(){if(gp)return eo;gp=1,Object.defineProperty(eo,"__esModule",{value:!0});const e=yt(),t=$e(),r=Ne(),n=Ne(),o={keyword:"patternProperties",type:"object",schemaType:"object",code(s){const{gen:i,schema:c,data:a,parentSchema:p,it:l}=s,{opts:d}=l,y=(0,e.allSchemaProperties)(c),m=y.filter(I=>(0,r.alwaysValidSchema)(l,c[I]));if(y.length===0||m.length===y.length&&(!l.opts.unevaluated||l.props===!0))return;const h=d.strictSchema&&!d.allowMatchingProperties&&p.properties,$=i.name("valid");l.props!==!0&&!(l.props instanceof t.Name)&&(l.props=(0,n.evaluatedPropsToName)(i,l.props));const{props:b}=l;E();function E(){for(const I of y)h&&w(I),l.allErrors?f(I):(i.var($,!0),f(I),i.if($))}function w(I){for(const g in h)new RegExp(I).test(g)&&(0,r.checkStrictMode)(l,`property ${g} matches pattern ${I} (use allowMatchingProperties)`)}function f(I){i.forIn("key",a,g=>{i.if((0,t._)`${(0,e.usePattern)(s,I)}.test(${g})`,()=>{const v=m.includes(I);v||s.subschema({keyword:"patternProperties",schemaProp:I,dataProp:g,dataPropType:n.Type.Str},$),l.opts.unevaluated&&b!==!0?i.assign((0,t._)`${b}[${g}]`,!0):!v&&!l.allErrors&&i.if((0,t.not)($),()=>i.break())})})}}};return eo.default=o,eo}var to={},vp;function Zy(){if(vp)return to;vp=1,Object.defineProperty(to,"__esModule",{value:!0});const e=Ne(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:o,it:s}=r;if((0,e.alwaysValidSchema)(s,o)){r.fail();return}const i=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),r.failResult(i,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return to.default=t,to}var ro={},bp;function eg(){if(bp)return ro;bp=1,Object.defineProperty(ro,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:yt().validateUnion,error:{message:"must match a schema in anyOf"}};return ro.default=e,ro}var no={},wp;function tg(){if(wp)return no;wp=1,Object.defineProperty(no,"__esModule",{value:!0});const e=$e(),t=Ne(),r={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:n})=>(0,e._)`{passingSchemas: ${n.passing}}`},code(n){const{gen:o,schema:s,parentSchema:i,it:c}=n;if(!Array.isArray(s))throw new Error("ajv implementation error");if(c.opts.discriminator&&i.discriminator)return;const a=s,p=o.let("valid",!1),l=o.let("passing",null),d=o.name("_valid");n.setParams({passing:l}),o.block(y),n.result(p,()=>n.reset(),()=>n.error(!0));function y(){a.forEach((m,h)=>{let $;(0,t.alwaysValidSchema)(c,m)?o.var(d,!0):$=n.subschema({keyword:"oneOf",schemaProp:h,compositeRule:!0},d),h>0&&o.if((0,e._)`${d} && ${p}`).assign(p,!1).assign(l,(0,e._)`[${l}, ${h}]`).else(),o.if(d,()=>{o.assign(p,!0),o.assign(l,h),$&&n.mergeEvaluated($,e.Name)})})}}};return no.default=r,no}var oo={},$p;function rg(){if($p)return oo;$p=1,Object.defineProperty(oo,"__esModule",{value:!0});const e=Ne(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:o,it:s}=r;if(!Array.isArray(o))throw new Error("ajv implementation error");const i=n.name("valid");o.forEach((c,a)=>{if((0,e.alwaysValidSchema)(s,c))return;const p=r.subschema({keyword:"allOf",schemaProp:a},i,!0);r.ok(i),r.mergeEvaluated(p)})}};return oo.default=t,oo}var so={},Ep;function ng(){if(Ep)return so;Ep=1,Object.defineProperty(so,"__esModule",{value:!0});const e=$e(),t=Ne(),r={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:o})=>(0,e.str)`must match "${o.ifClause}" schema`,params:({params:o})=>(0,e._)`{failingKeyword: ${o.ifClause}}`},code(o){const{gen:s,parentSchema:i,it:c}=o;i.then===void 0&&i.else===void 0&&(0,t.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const a=n(c,"then"),p=n(c,"else");if(!a&&!p)return;const l=s.let("valid",!0),d=s.name("_valid");if(y(),o.reset(),a&&p){const h=s.let("ifClause");o.setParams({ifClause:h}),s.if(d,m("then",h),m("else",h))}else a?s.if(d,m("then")):s.if((0,e.not)(d),m("else"));o.pass(l,()=>o.error(!0));function y(){const h=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},d);o.mergeEvaluated(h)}function m(h,$){return()=>{const b=o.subschema({keyword:h},d);s.assign(l,d),o.mergeValidEvaluated(b,l),$?s.assign($,(0,e._)`${h}`):o.setParams({ifClause:h})}}}};function n(o,s){const i=o.schema[s];return i!==void 0&&!(0,t.alwaysValidSchema)(o,i)}return so.default=r,so}var io={},xp;function og(){if(xp)return io;xp=1,Object.defineProperty(io,"__esModule",{value:!0});const e=Ne(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:o}){n.if===void 0&&(0,e.checkStrictMode)(o,`"${r}" without "if" is ignored`)}};return io.default=t,io}var Ip;function Os(){if(Ip)return Yn;Ip=1,Object.defineProperty(Yn,"__esModule",{value:!0});const e=sp(),t=Yy(),r=ap(),n=Wy(),o=Hy(),s=ks(),i=Qy(),c=hp(),a=Jy(),p=Xy(),l=Zy(),d=eg(),y=tg(),m=rg(),h=ng(),$=og();function b(E=!1){const w=[l.default,d.default,y.default,m.default,h.default,$.default,i.default,c.default,s.default,a.default,p.default];return E?w.push(t.default,n.default):w.push(e.default,r.default),w.push(o.default),w}return Yn.default=b,Yn}var ao={},pr={},Tp;function _p(){if(Tp)return pr;Tp=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.dynamicAnchor=void 0;const e=$e(),t=st(),r=_n(),n=Nn(),o={keyword:"$dynamicAnchor",schemaType:"string",code:c=>s(c,c.schema)};function s(c,a){const{gen:p,it:l}=c;l.schemaEnv.root.dynamicAnchors[a]=!0;const d=(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(a)}`,y=l.errSchemaPath==="#"?l.validateName:i(c);p.if((0,e._)`!${d}`,()=>p.assign(d,y))}pr.dynamicAnchor=s;function i(c){const{schemaEnv:a,schema:p,self:l}=c.it,{root:d,baseId:y,localRefs:m,meta:h}=a.root,{schemaId:$}=l.opts,b=new r.SchemaEnv({schema:p,schemaId:$,root:d,baseId:y,localRefs:m,meta:h});return r.compileSchema.call(l,b),(0,n.getValidate)(c,b)}return pr.default=o,pr}var lr={},Pp;function Sp(){if(Pp)return lr;Pp=1,Object.defineProperty(lr,"__esModule",{value:!0}),lr.dynamicRef=void 0;const e=$e(),t=st(),r=Nn(),n={keyword:"$dynamicRef",schemaType:"string",code:s=>o(s,s.schema)};function o(s,i){const{gen:c,keyword:a,it:p}=s;if(i[0]!=="#")throw new Error(`"${a}" only supports hash fragment reference`);const l=i.slice(1);if(p.allErrors)d();else{const m=c.let("valid",!1);d(m),s.ok(m)}function d(m){if(p.schemaEnv.root.dynamicAnchors[l]){const h=c.let("_v",(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(l)}`);c.if(h,y(h,m),y(p.validateName,m))}else y(p.validateName,m)()}function y(m,h){return h?()=>c.block(()=>{(0,r.callRef)(s,m),c.let(h,!0)}):()=>(0,r.callRef)(s,m)}}return lr.dynamicRef=o,lr.default=n,lr}var co={},kp;function sg(){if(kp)return co;kp=1,Object.defineProperty(co,"__esModule",{value:!0});const e=_p(),t=Ne(),r={keyword:"$recursiveAnchor",schemaType:"boolean",code(n){n.schema?(0,e.dynamicAnchor)(n,""):(0,t.checkStrictMode)(n.it,"$recursiveAnchor: false is ignored")}};return co.default=r,co}var po={},Op;function ig(){if(Op)return po;Op=1,Object.defineProperty(po,"__esModule",{value:!0});const e=Sp(),t={keyword:"$recursiveRef",schemaType:"string",code:r=>(0,e.dynamicRef)(r,r.schema)};return po.default=t,po}var Np;function ag(){if(Np)return ao;Np=1,Object.defineProperty(ao,"__esModule",{value:!0});const e=_p(),t=Sp(),r=sg(),n=ig(),o=[e.default,t.default,r.default,n.default];return ao.default=o,ao}var lo={},uo={},jp;function cg(){if(jp)return uo;jp=1,Object.defineProperty(uo,"__esModule",{value:!0});const e=ks(),t={keyword:"dependentRequired",type:"object",schemaType:"object",error:e.error,code:r=>(0,e.validatePropertyDeps)(r)};return uo.default=t,uo}var fo={},Ap;function pg(){if(Ap)return fo;Ap=1,Object.defineProperty(fo,"__esModule",{value:!0});const e=ks(),t={keyword:"dependentSchemas",type:"object",schemaType:"object",code:r=>(0,e.validateSchemaDeps)(r)};return fo.default=t,fo}var mo={},Rp;function lg(){if(Rp)return mo;Rp=1,Object.defineProperty(mo,"__esModule",{value:!0});const e=Ne(),t={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:r,parentSchema:n,it:o}){n.contains===void 0&&(0,e.checkStrictMode)(o,`"${r}" without "contains" is ignored`)}};return mo.default=t,mo}var Cp;function ug(){if(Cp)return lo;Cp=1,Object.defineProperty(lo,"__esModule",{value:!0});const e=cg(),t=pg(),r=lg(),n=[e.default,t.default,r.default];return lo.default=n,lo}var ho={},yo={},Dp;function dg(){if(Dp)return yo;Dp=1,Object.defineProperty(yo,"__esModule",{value:!0});const e=$e(),t=Ne(),r=st(),n={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have unevaluated properties",params:({params:o})=>(0,e._)`{unevaluatedProperty: ${o.unevaluatedProperty}}`},code(o){const{gen:s,schema:i=o.it.opts.defaultUnevaluatedProperties,data:c,errsCount:a,it:p}=o,l=o.schema===void 0&&o.it.opts.defaultUnevaluatedProperties===!1;if(!a)throw new Error("ajv implementation error");const{allErrors:d,props:y}=p;if(y instanceof e.Name)s.if((0,e._)`${y} !== true`,()=>s.forIn("key",c,b=>s.if(h(y,b),()=>m(b))));else if(y!==!0){const b=()=>s.forIn("key",c,E=>y===void 0?m(E):s.if($(y,E),()=>m(E)));l&&p.errorPath.emptyStr()&&!p.compositeRule?s.if((0,e._)`${r.default.isAllOfVariant} === 0`,b):(!p.compositeRule||o.schema!==void 0)&&b()}l||(p.props=!0),o.ok((0,e._)`${a} === ${r.default.errors}`);function m(b){if(i===!1){o.setParams({unevaluatedProperty:b}),o.error(),d||s.break();return}if(!(0,t.alwaysValidSchema)(p,i)){const E=s.name("valid");o.subschema({keyword:"unevaluatedProperties",dataProp:b,dataPropType:t.Type.Str},E),d||s.if((0,e.not)(E),()=>s.break())}}function h(b,E){return(0,e._)`!${b} || !${b}[${E}]`}function $(b,E){const w=[];for(const f in b)b[f]===!0&&w.push((0,e._)`${E} !== ${f}`);return(0,e.and)(...w)}}};return yo.default=n,yo}var go={},qp;function fg(){if(qp)return go;qp=1,Object.defineProperty(go,"__esModule",{value:!0});const e=$e(),t=Ne(),r={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:n}})=>(0,e.str)`must NOT have more than ${n} items`,params:({params:{len:n}})=>(0,e._)`{limit: ${n}}`},code(n){const{gen:o,schema:s,data:i,it:c}=n,a=c.items||0;if(a===!0)return;const p=o.const("len",(0,e._)`${i}.length`);if(s===!1)n.setParams({len:a}),n.fail((0,e._)`${p} > ${a}`);else if(typeof s=="object"&&!(0,t.alwaysValidSchema)(c,s)){const d=o.var("valid",(0,e._)`${p} <= ${a}`);o.if((0,e.not)(d),()=>l(d,a)),n.ok(d)}c.items=!0;function l(d,y){o.forRange("i",y,p,m=>{n.subschema({keyword:"unevaluatedItems",dataProp:m,dataPropType:t.Type.Num},d),c.allErrors||o.if((0,e.not)(d),()=>o.break())})}}};return go.default=r,go}var Lp;function Mp(){if(Lp)return ho;Lp=1,Object.defineProperty(ho,"__esModule",{value:!0});const e=dg(),t=fg(),r=[e.default,t.default];return ho.default=r,ho}var vo={},bo={},Vp;function mg(){if(Vp)return bo;Vp=1,Object.defineProperty(bo,"__esModule",{value:!0});const e=$e(),t={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,e._)`{format: ${r}}`},code(r,n){const{gen:o,data:s,$data:i,schema:c,schemaCode:a,it:p}=r,{opts:l,errSchemaPath:d,schemaEnv:y,self:m}=p;if(!l.validateFormats)return;i?h():$();function h(){const b=o.scopeValue("formats",{ref:m.formats,code:l.code.formats}),E=o.const("fDef",(0,e._)`${b}[${a}]`),w=o.let("fType"),f=o.let("format");o.if((0,e._)`typeof ${E} == "object" && !(${E} instanceof RegExp)`,()=>o.assign(w,(0,e._)`${E}.type || "string"`).assign(f,(0,e._)`${E}.validate`),()=>o.assign(w,(0,e._)`"string"`).assign(f,E)),r.fail$data((0,e.or)(I(),g()));function I(){return l.strictSchema===!1?e.nil:(0,e._)`${a} && !${f}`}function g(){const v=y.$async?(0,e._)`(${E}.async ? await ${f}(${s}) : ${f}(${s}))`:(0,e._)`${f}(${s})`,x=(0,e._)`(typeof ${f} == "function" ? ${v} : ${f}.test(${s}))`;return(0,e._)`${f} && ${f} !== true && ${w} === ${n} && !${x}`}}function $(){const b=m.formats[c];if(!b){I();return}if(b===!0)return;const[E,w,f]=g(b);E===n&&r.pass(v());function I(){if(l.strictSchema===!1){m.logger.warn(x());return}throw new Error(x());function x(){return`unknown format "${c}" ignored in schema at path "${d}"`}}function g(x){const N=x instanceof RegExp?(0,e.regexpCode)(x):l.code.formats?(0,e._)`${l.code.formats}${(0,e.getProperty)(c)}`:void 0,K=o.scopeValue("formats",{key:c,ref:x,code:N});return typeof x=="object"&&!(x instanceof RegExp)?[x.type||"string",x.validate,(0,e._)`${K}.validate`]:["string",x,K]}function v(){if(typeof b=="object"&&!(b instanceof RegExp)&&b.async){if(!y.$async)throw new Error("async format in sync schema");return(0,e._)`await ${f}(${s})`}return typeof w=="function"?(0,e._)`${f}(${s})`:(0,e._)`${f}.test(${s})`}}}};return bo.default=t,bo}var zp;function Ns(){if(zp)return vo;zp=1,Object.defineProperty(vo,"__esModule",{value:!0});const e=[mg().default];return vo.default=e,vo}var ur={},Fp;function Up(){return Fp||(Fp=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.contentVocabulary=ur.metadataVocabulary=void 0,ur.metadataVocabulary=["title","description","default","deprecated","examples"],ur.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),ur}var Bp;function hg(){if(Bp)return Sn;Bp=1,Object.defineProperty(Sn,"__esModule",{value:!0});const e=Fc(),t=Ss(),r=Os(),n=ag(),o=ug(),s=Mp(),i=Ns(),c=Up(),a=[n.default,e.default,t.default,(0,r.default)(!0),i.default,c.metadataVocabulary,c.contentVocabulary,o.default,s.default];return Sn.default=a,Sn}var wo={},Ar={},Kp;function yg(){if(Kp)return Ar;Kp=1,Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Ar.DiscrError=e={})),Ar}var Gp;function js(){if(Gp)return wo;Gp=1,Object.defineProperty(wo,"__esModule",{value:!0});const e=$e(),t=yg(),r=_n(),n=ir(),o=Ne(),s={message:({params:{discrError:a,tagName:p}})=>a===t.DiscrError.Tag?`tag "${p}" must be string`:`value of tag "${p}" must be in oneOf or anyOf`,params:({params:{discrError:a,tag:p,tagName:l}})=>(0,e._)`{error: ${a}, tag: ${l}, tagValue: ${p}}`};function i(a,p){var l;if(!(!a.allOf||!Array.isArray(a.allOf))){for(const d of a.allOf)if(!((l=d?.properties)===null||l===void 0)&&l[p])return d.properties[p]}}const c={keyword:"discriminator",type:"object",schemaType:"object",error:s,code(a){const{gen:p,data:l,schema:d,parentSchema:y,it:m}=a,h=y.oneOf?"oneOf":y.anyOf?"anyOf":void 0;if(!m.opts.discriminator)throw new Error("discriminator: requires discriminator option");const $=d.propertyName;if(typeof $!="string")throw new Error("discriminator: requires propertyName");if(!h)throw new Error("discriminator: requires oneOf or anyOf composite keyword");const b=y[h],E=p.let("valid",!1),w=p.const("tag",(0,e._)`${l}${(0,e.getProperty)($)}`);p.if((0,e._)`typeof ${w} == "string"`,()=>f(),()=>a.error(!1,{discrError:t.DiscrError.Tag,tag:w,tagName:$})),a.ok(E);function f(){const v=g();p.if(!1);for(const x in v)p.elseIf((0,e._)`${w} === ${x}`),p.assign(E,I(v[x]));p.else(),a.error(!1,{discrError:t.DiscrError.Mapping,tag:w,tagName:$}),p.endIf()}function I(v){const x=p.name("valid"),N=a.subschema({keyword:h,schemaProp:v},x);return a.mergeEvaluated(N,e.Name),x}function g(){var v;const x={},N=R(y);let K=!0;for(let O=0;O<b.length;O++){let z=b[O];const me=z?.$ref;if(me&&d.mapping){const{mapping:Te}=d,ve=Object.keys(Te).filter(je=>Te[je]===z.$ref);if(ve.length){for(const je of ve)F(je,O);continue}}if(me&&!(0,o.schemaHasRulesButRef)(z,m.self.RULES)&&(z=r.resolveRef.call(m.self,m.schemaEnv.root,m.baseId,me),z instanceof r.SchemaEnv&&(z=z.schema),z===void 0))throw new n.default(m.opts.uriResolver,m.baseId,me);let we=(v=z?.properties)===null||v===void 0?void 0:v[$];if(!we&&z?.allOf&&(we=i(z,$)),typeof we!="object")throw new Error(`discriminator: ${h} subschemas (or referenced schemas) must have "properties/${$}" or match mapping`);K=K&&(N||R(z)),C(we,O)}if(!K)throw new Error(`discriminator: "${$}" must be required`);return x;function R(O){if(Array.isArray(O.required)&&O.required.includes($))return!0;if(O.allOf&&Array.isArray(O.allOf))for(const z of O.allOf){const me=z;if(Array.isArray(me.required)&&me.required.includes($))return!0}return!1}function C(O,z){if(O.const)F(O.const,z);else if(O.enum)for(const me of O.enum)F(me,z);else throw new Error(`discriminator: "properties/${$}" must have "const" or "enum"`)}function F(O,z){if(typeof O!="string"||O in x)throw new Error(`discriminator: "${$}" values must be unique strings`);x[O]=z}}}};return wo.default=c,wo}var $o={};const gg="https://json-schema.org/draft/2020-12/schema",vg="https://json-schema.org/draft/2020-12/schema",bg={"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},wg="meta",$g="Core and Validation specifications meta-schema",Eg=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],xg=["object","boolean"],Ig="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",Tg={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}},_g={$schema:gg,$id:vg,$vocabulary:bg,$dynamicAnchor:wg,title:$g,allOf:Eg,type:xg,$comment:Ig,properties:Tg},Pg="https://json-schema.org/draft/2020-12/schema",Sg="https://json-schema.org/draft/2020-12/meta/applicator",kg={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},Og="meta",Ng="Applicator vocabulary meta-schema",jg=["object","boolean"],Ag={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"}},Rg={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},Cg={$schema:Pg,$id:Sg,$vocabulary:kg,$dynamicAnchor:Og,title:Ng,type:jg,properties:Ag,$defs:Rg},Dg="https://json-schema.org/draft/2020-12/schema",qg="https://json-schema.org/draft/2020-12/meta/unevaluated",Lg={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},Mg="meta",Vg="Unevaluated applicator vocabulary meta-schema",zg=["object","boolean"],Fg={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},Ug={$schema:Dg,$id:qg,$vocabulary:Lg,$dynamicAnchor:Mg,title:Vg,type:zg,properties:Fg},Bg="https://json-schema.org/draft/2020-12/schema",Kg="https://json-schema.org/draft/2020-12/meta/content",Gg={"https://json-schema.org/draft/2020-12/vocab/content":!0},Yg="meta",Wg="Content vocabulary meta-schema",Hg=["object","boolean"],Qg={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},Jg={$schema:Bg,$id:Kg,$vocabulary:Gg,$dynamicAnchor:Yg,title:Wg,type:Hg,properties:Qg},Xg="https://json-schema.org/draft/2020-12/schema",Zg="https://json-schema.org/draft/2020-12/meta/core",ev={"https://json-schema.org/draft/2020-12/vocab/core":!0},tv="meta",rv="Core vocabulary meta-schema",nv=["object","boolean"],ov={$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"}}},sv={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},iv={$schema:Xg,$id:Zg,$vocabulary:ev,$dynamicAnchor:tv,title:rv,type:nv,properties:ov,$defs:sv},av="https://json-schema.org/draft/2020-12/schema",cv="https://json-schema.org/draft/2020-12/meta/format-annotation",pv={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},lv="meta",uv="Format vocabulary meta-schema for annotation results",dv=["object","boolean"],fv={format:{type:"string"}},mv={$schema:av,$id:cv,$vocabulary:pv,$dynamicAnchor:lv,title:uv,type:dv,properties:fv},hv="https://json-schema.org/draft/2020-12/schema",yv="https://json-schema.org/draft/2020-12/meta/meta-data",gv={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},vv="meta",bv="Meta-data vocabulary meta-schema",wv=["object","boolean"],$v={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}},Ev={$schema:hv,$id:yv,$vocabulary:gv,$dynamicAnchor:vv,title:bv,type:wv,properties:$v},xv="https://json-schema.org/draft/2020-12/schema",Iv="https://json-schema.org/draft/2020-12/meta/validation",Tv={"https://json-schema.org/draft/2020-12/vocab/validation":!0},_v="meta",Pv="Validation vocabulary meta-schema",Sv=["object","boolean"],kv={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"}}},Ov={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:[]}},Nv={$schema:xv,$id:Iv,$vocabulary:Tv,$dynamicAnchor:_v,title:Pv,type:Sv,properties:kv,$defs:Ov};var Yp;function jv(){if(Yp)return $o;Yp=1,Object.defineProperty($o,"__esModule",{value:!0});const e=_g,t=Cg,r=Ug,n=Jg,o=iv,s=mv,i=Ev,c=Nv,a=["/properties"];function p(l){return[e,t,r,n,o,d(this,s),i,d(this,c)].forEach(y=>this.addMetaSchema(y,void 0,!1)),this;function d(y,m){return l?y.$dataMetaSchema(m,a):m}}return $o.default=p,$o}var Wp;function Av(){return Wp||(Wp=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv2020=void 0;const r=_s(),n=hg(),o=js(),s=jv(),i="https://json-schema.org/draft/2020-12/schema";class c extends r.default{constructor(m={}){super({...m,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(m=>this.addVocabulary(m)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:m,meta:h}=this.opts;h&&(s.default.call(this,m),this.refs["http://json-schema.org/schema"]=i)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(i)?i:void 0)}}t.Ajv2020=c,e.exports=t=c,e.exports.Ajv2020=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var a=sr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return a.KeywordCxt}});var p=$e();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return p._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return p.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return p.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return p.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return p.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return p.CodeGen}});var l=Nr();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return l.default}});var d=ir();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return d.default}})})(Es,Es.exports)),Es.exports}var Rv=Av();const As=xr(Rv),Cv=new As({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0});function Hp(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(o=>Cv.validate(o,r));return n===-1&&(n=0),t[n]}}function dr(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"){const{default:n,format:o,...s}=t;return s}if(t.type==="object"&&!t.properties&&!t.oneOf){if(t.additionalProperties===void 0||t.additionalProperties===!0)return{type:"object"};if(t.additionalProperties===!1)return{type:"object",properties:{}}}if(t.allOf)throw new Error(`Unexpected allOf in ${e}.`);if(t.anyOf)throw new Error(`Unexpected anyOf in ${e}.`);if(Ee(t.properties)||Ee(t.additionalProperties)||Ee(t.items)&&(Ee(t.items.properties)||Ee(t.items.additionalProperties)||t.items.oneOf))return Dv(e,t,r);if(t.oneOf)if(t.discriminator){const n=t.discriminator?.propertyName;if(!n)throw new Error(`Unexpected discriminator without a propertyName in ${e}.`);const o={},s=t.oneOf.map((i,c)=>{if(typeof i=="boolean")throw new Error(`Unexpected boolean schema in ${e} at position ${c} in oneOf.`);const a=i?.properties?.[n];if(!a||typeof a=="boolean")throw new Error(`Unexpected property '${a}' schema in ${e} at position ${c} in oneOf.`);const p=a.const,l=dr(p,i,r);return typeof l=="string"&&(o[p]=l),l});return(i,c)=>{if(Ee(i)){const a=i[n];if(typeof a=="string"){const p=o[a];if(p&&r[p])return p}}return Hp(t.oneOf,s)(i,c)}}else{const n=t.oneOf.map((o,s)=>dr(e+"_"+s,o,r));return Hp(t.oneOf,n)}return t}function Dv(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.`);const n=t.nodeTypeName??e,o={};for(const[a,p]of Object.entries(t.properties||{}))o[a]=dr(n+"."+a,p,r);let s;Ee(t.additionalProperties)&&(s=dr(e+"_additionalProperties",t.additionalProperties,r)),t.additionalProperties===!0&&(s={});let i;Ee(t.items)&&(Ee(t.items.properties)||Ee(t.items.additionalProperties)||t.items.oneOf)&&(i=dr(e+"_items",t.items,r));let c=t.required;return t.oneOf&&t.oneOf.every(a=>!!a.required)&&(c=a=>{const p=t.oneOf.map(d=>[...t.required||[],...d.required]);let l=p.findIndex(d=>d.every(y=>a[y]!==void 0));return l===-1&&(l=0),p[l]}),r[n]={properties:o,additionalProperties:s,items:i,required:c,description:t.description,documentationLink:t.documentationLink},n}function Qp(e,t){const r={},n=dr(e,t,r);return{ctx:r,discriminatorResolver:typeof n=="function"?n:void 0}}const qv=["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","spec-ref-siblings"],Lv=["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","spec-ref-siblings"],Mv=["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","spec-ref-siblings","security-scopes-defined"],Vv=["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","spec-ref-siblings","security-scopes-defined"],zv=["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"],Fv=["info-contact"],Uv=["info-contact","info-license","no-unused-components","spec-no-duplicated-method-params","spec-no-required-params-after-optional","spec-ref-siblings"],Bv=["no-unused-types","type-description"],Kv=["struct","no-unresolved-refs"],Gv=[...qv,...Lv,...Mv,...Vv,...zv,...Fv,...Uv,...Bv,...Kv],Yv=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","remove-unused-components"],Wv=["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"],Jp=[...Wv,...Yv],Xp={extends:{name:"Extends",properties:{},items:e=>typeof e=="string"&&!tt(e)&&!Zi.extname(e)?{type:"string"}:{...Rr,directResolveAs:{name:"ConfigGovernance",...Rr}},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"},Rr={properties:Xp},Hv=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...Rr.properties,apis:"ConfigApis",client:"Client",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),Qv={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"},Jv=e=>({...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...e["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,...mf(Rr.properties,["plugins"]),client:"Client",clientOutput:{type:"string"}}}),Xv={properties:{headers:{type:"array",items:{type:"string"}}}},Zv={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"}},Zp={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"}}},eb={properties:{...Zp.properties,exclude:{type:"array",items:{type:"string"}},operations:Xi("ClientPaginationRule")}},tb={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(Gv.includes(t))return typeof e=="string"?{enum:["error","warn","off"]}:"BuiltinRule";if($s(t))return typeof e=="string"?{enum:["error","warn","off"]}:"CustomRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},rb={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"},nb={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"},ob={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(Jp.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinDecorator";if($s(t))return typeof e=="string"?{type:"string"}:"CustomDecorator"}},sb={properties:{},additionalProperties:{},description:"Built-in decorators are the default decorators included with Redocly CLI.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},ib={properties:{},additionalProperties:{},description:"Custom decorators are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},ab={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(Jp.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinPreprocessor";if($s(t))return typeof e=="string"?{type:"string"}:"CustomPreprocessor"}},cb={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"},pb={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"},lb={properties:{properties:Xi("Schema")},additionalProperties:{}};function ub(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 db(e){return{...e[rt.ScorecardClassicLevel],properties:{...e[rt.ScorecardClassicLevel]?.properties,...Xp}}}const fb={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"},mb={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"},hb={properties:{subject:"Subject",assertions:"Assertions",where:ff("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 Rs(e,t){const r=df.flatMap(o=>{const s=en(o),i=t?t.extendTypes(s,o):s;return Object.keys(i)}),{ctx:n}=Qp("rootRedoclyConfigSchema",e);return{...yb,ConfigRoot:Hv(n),ConfigApisProperties:Jv(n),Subject:ub([...r,...gy]),...n,[rt.ScorecardClassicLevel]:db(n)}}const yb={ConfigurableRule:hb,ConfigApis:Qv,ConfigGovernance:Rr,ConfigHTTP:Xv,Client:Zv,ClientPagination:eb,ClientPaginationRule:Zp,Where:mb,BuiltinRule:rb,CustomRule:nb,BuiltinDecorator:sb,CustomDecorator:ib,BuiltinPreprocessor:cb,CustomPreprocessor:pb,Schema:lb,Rules:tb,Decorators:ob,Preprocessors:ab,Assertions:fb},{theme:gx,...gb}=vn.properties,vb={...vn,properties:gb},el=Rs(vb),Eo=ps(el),bb={},wb={},$b={};function tl(e){return Array.isArray(e)&&e.length===0}function rl(e,t,r){const{parent:n,key:o}=t;let s=!1;if(Array.isArray(e))for(let i=0;i<e.length;i++){if(ze(e[i])){const c=t.resolve(e[i]);r(c.node)&&(e.splice(i,1),s=!0,i--)}r(e[i])&&(e.splice(i,1),s=!0,i--)}else if(Ee(e))for(const i of Object.keys(e)){if(ze(e[i])){const c=t.resolve(e[i]);r(c.node)&&(delete e[i],s=!0)}r(e[i])&&(delete e[i],s=!0)}s&&(ea(e)||tl(e))&&delete n[o]}function fr(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=nl(t),e=nl(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function nl(e){return Array.isArray(e)?e:[e]}const Eb="any",ol=({property:e,value:t,matchStrategy:r,applyTo:n})=>{const o=r||Eb;if(n!==void 0){if(n==="Operation"){const i=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(c,a){for(const p of i){const l=ze(c[p])?a.resolve(c[p]).node:c[p];if(Ee(l)){const d=l[e];fr(d,t,o)||delete c[p]}}i.some(p=>c[p])||c.additionalOperations||delete a.parent[a.key]}}}}if(n==="PathItem")return{PathItem:{enter(i,c){const a=i[e];fr(a,t,o)||delete c.parent[c.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}const s=i=>i?.[e]&&!fr(i?.[e],t,o);return{any:{enter:(i,c)=>{rl(i,c,s)}}}},xb="any",sl=({property:e,value:t,matchStrategy:r,applyTo:n})=>{const o=r||xb;if(n!==void 0){if(n==="Operation"){const i=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(c,a){for(const p of i){const l=ze(c[p])?a.resolve(c[p]).node:c[p];if(Ee(l)){const d=l[e];fr(d,t,o)&&delete c[p]}}i.some(p=>c[p])||c.additionalOperations||delete a.parent[a.key]}}}}if(n==="PathItem")return{PathItem:{enter(i,c){const a=i[e];fr(a,t,o)&&delete c.parent[c.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}const s=i=>fr(i?.[e],t,o);return{any:{enter:(i,c)=>{rl(i,c,s)}}}};function il(e){const t=(void 0)(e,"utf-8");return hf(t)}function Cr(e,t){return tt(e)||t===void 0?e:Ke.resolve(Ke.dirname(t),e)}function Cs(e){return(void 0)(e,"utf-8")}const al=({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=Cs(Cr(e,o?.configPath))}catch(s){r({message:`Failed to read markdown override file for "info.description".
|
|
9
|
+
${s.message}`,location:n.child("description")})}}}}),cl=e=>({Info:{leave(t){if(!Ee(e))throw new Error('"info-override" decorator should be called with an object');const{severity:r,...n}=e;Object.assign(t,n)}}}),pl=({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');const s=t.operationId;if(e[s])try{const i=e[s];t.description=Cs(Cr(i,o?.configPath))}catch(i){r({message:`Failed to read markdown override file for operation "${s}".
|
|
10
|
+
${i.message}`,location:n.child("operationId").key()})}}}}),Ib="x-internal",ll=({internalFlagProperty:e=Ib})=>{function t(n,o,s){const{parent:i,key:c}=o;let a=!1;if(Array.isArray(n))for(let p=0;p<n.length;p++){if(ze(n[p])&&o.resolve(n[p]).node?.[e]){if(Ee(i.discriminator?.mapping))for(const l in i.discriminator.mapping)s?.[l]===n[p].$ref&&delete i.discriminator.mapping[l];n.splice(p,1),a=!0,p--}n[p]?.[e]&&(n.splice(p,1),a=!0,p--)}else if(Ee(n))for(const p of Object.keys(n)){if(ze(n[p])){const l=o.resolve(n[p]);Ee(l.node)&&l.node?.[e]&&(delete n[p],a=!0)}Ee(n[p])&&n[p]?.[e]&&(delete n[p],a=!0)}a&&(ea(n)||tl(n))&&delete i[c]}let r={};return{DiscriminatorMapping:{enter:n=>{r=JSON.parse(JSON.stringify(n))}},any:{enter:(n,o)=>{t(n,o,r)}}}},ul=({tagNames:e})=>({Tag:{leave(t,{report:r,config:n}){if(!e)throw new Error('Parameter "tagNames" is not provided for "tag-description-override" rule');const o=e[t.name];if(o)try{t.description=Cs(Cr(o,n?.configPath))}catch(s){r({message:`Failed to read markdown override file for tag "${t.name}".
|
|
11
|
+
${s.message}`})}}}}),Tb={"operation-description-override":pl,"tag-description-override":ul,"info-description-override":al,"info-override":cl,"remove-x-internal":ll,"filter-in":ol,"filter-out":sl,"remove-unused-components":yf},_b=({operationIds:e})=>({Operation:{enter(t,r){const n=t.operationId;if(!n)return;const o=e[n];if(o){if(o.responses&&t.responses)for(const s of Object.keys(o.responses)){const i=dl(t.responses[s],r.resolve);i&&(i.content=i.content?i.content:{},Object.keys(o.responses[s]).forEach(c=>{const a=o.responses[s][c];i.content[c]={...i.content[c],examples:il(Cr(a,r.config?.configPath))}}),t.responses[s]=i)}if(o.request&&t.requestBody){const s=dl(t.requestBody,r.resolve);if(!s)return;s.content=s.content?s.content:{},Object.keys(o.request).forEach(i=>{const c=o.request[i];s.content[i]={...s.content[i],examples:il(Cr(c,r.config?.configPath))}}),t.requestBody=s}}}}});function dl(e,t){if(!ze(e))return e;const r=t(e);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}const Pb={"operation-description-override":pl,"tag-description-override":ul,"info-description-override":al,"info-override":cl,"remove-x-internal":ll,"filter-in":ol,"filter-out":sl,"media-type-examples-override":_b,"remove-unused-components":gf},Sb={},kb={},Ob=()=>({SourceDescriptions:{enter(e,{report:t,location:r,specVersion:n}){if(!e.length)return;const o=n==="arazzo1"?["openapi","arazzo"]:["openapi","arazzo","asyncapi"];for(const s of e)o.includes(s?.type)||t({message:`The \`type\` property of the \`sourceDescription\` object must be either ${o.map(i=>`\`${i}\``).join(" or ")}.`,location:r.child([e.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/sourcedescription-type"})}}});function Nb(e){return e}const Ds=void 0,Ae=new Proxy(vf,{get(e,t){return Nb}});class jb{info(t){return console.info(t)}warn(t){return console.warn(t)}error(t){return console.error(t)}output(t){return console.log(t)}printNewLine(){console.log(`
|
|
12
|
+
`)}printSeparator(t){const r=null.columns||80,n=t.repeat(Math.ceil(r/t.length)).slice(0,r);return console.log(n)}indent(t,r){return t.split(`
|
|
13
|
+
`).map(n=>" ".repeat(r)+n).join(`
|
|
14
|
+
`)}}const Se=new jb,qs={problems:"{{problems}}",assertionName:"{{assertionName}}",nodeType:"{{nodeType}}",key:"{{key}}",property:"{{property}}",file:"{{file}}",pointer:"{{pointer}}"};function fl(e){const{filterInParentKeys:t,filterOutParentKeys:r,matchParentKeys:n}=e,o=n&&bf(n),s=o&&(a=>o.test(a.toString())),i=Array.isArray(t)&&(a=>t.includes(a.toString())),c=Array.isArray(r)&&(a=>!r.includes(a.toString()));return[s,i,c].filter(tn)}function ml(e){const t=ds(rr).filter(o=>e.assertions[o]!==void 0).map(o=>({name:o,conditions:e.assertions[o],runsOnKeys:ra.has(o),runsOnValues:ta.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 hl({subject:e}){return(Array.isArray(e.property)?e.property:[e?.property]).filter(Boolean)}function yl(e,t,r){const n=hl(e),o=[];for(const s of t)if(n.length)for(const i of n)o.push(wl({assert:s,ctx:r,assertionProperty:i}));else o.push(wl({assert:s,ctx:r}));return o.flat()}function Ab(e,t){const r=fl(e.subject),n=r.length?(a,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 s={};const i=s,c=e.where;for(let a=0;a<c.length;a++){const p=c[a];if(!Ot(p.subject?.type))throw new Error(`${e.assertionId} -> where -> [${a}]: 'type' (String) is required`);if(!Ee(p.assertions))throw new Error(`${e.assertionId} -> where -> [${a}]: 'assertions' (Object) is required`);const l=fl(p.subject),d=ml(p),y=(h,$,b)=>!l.every(E=>E($))||!!yl(p,d,{...b,node:h}).length,m={...(l.length||d.length)&&{skip:y}};p.subject.type===e.subject.type&&a===c.length-1?o[e.subject.type]={enter:t,...m.skip&&{skip:m.skip}||n&&{skip:(h,$,b)=>!!(m.skip?.(h,$,b)||n?.(h,$))}}:s=s[p.subject?.type]=m}return s[e.subject.type]=o[e.subject.type],i}function Rb(e,t){return(r,n)=>{const o=hl(t),s=`${Ae.blue(e)} failed because the ${Ae.blue(t.subject.type)} ${Ae.blue(o.join(", "))} didn't meet the assertions: ${qs.problems}`.replace(/ +/g," "),i=yl(t,ml(t),{...n,node:r});if(i.length)for(const c of Cb(i)){const a=t.message||s,p={problems:gl(c),assertionName:e,nodeType:t.subject.type,property:o.join(", "),key:String(n.key),pointer:n.location.pointer,file:vl(n.location.source.absoluteRef)};n.report({message:bl(a,p),location:Db(c)||n.location,forceSeverity:t.severity||"error",suggest:t.suggest||[],...t.reference&&{reference:t.reference},ruleId:e})}}}function Cb(e){const t={};for(const r of e){if(!r.location)continue;const n=r.location.pointer;t[n]=t[n]||[],t[n].push(r)}return Object.values(t)}function Db(e){return e.length?e[0].location:void 0}function gl(e){return e.length===1?e[0].message??"":e.map(t=>`
|
|
15
|
+
- ${t.message??""}`).join("")}function vl(e){return tt(e)?e.split("/").at(-1)||e:e.split(/[/\\]/).at(-1)||e}function bl(e,t){let r=e;for(const n of Object.keys(qs)){const o=qs[n],s=t[n];o&&(r=r.split(o).join(s))}return r}function wl({assert:e,ctx:t,assertionProperty:r}){const n=e.name==="ref"?t.rawLocation:t.location;if(r){const o=ze(t.node[r])?t.resolve(t.node[r])?.node:t.node[r],s=t.rawNode[r],i=n.child(r);return rr[e.name](o,e.conditions,{...t,baseLocation:i,rawValue:s})}else{const o=Array.isArray(t.node)?t.node:Object.keys(t.node);return rr[e.name](o,e.conditions,{...t,rawValue:t.rawNode,baseLocation:n})}}const Ut=e=>{const t=[],r=Object.values(e).filter(n=>Ee(n));for(const[n,o]of r.entries()){if(!Ot(o.subject.type))throw new Error(`${o.assertionId}: 'type' (String) is required`);if(!Ee(o.assertions))throw new Error(`${o.assertionId}: 'assertions' (Object) is required`);const s=Rb(o.assertionId,o),i=Ab(o,s);t.push(i)}return t};function qb(e){return Ee(e)||Array.isArray(e)}const Dr=()=>({Schema(e,{report:t,location:r}){if(!Array.isArray(e.enum))return;const n=new Set,o=[];for(const[s,i]of e.enum.entries()){const c=qb(i);(c?o.some(a=>wf(a,i)):n.has(i))&&t({message:`Duplicated enum value found: '${c?JSON.stringify(i):i}'.`,location:r.child(["enum",s]),reference:"https://redocly.com/docs/cli/rules/common/no-duplicated-enum-values"}),c?o.push(i):n.add(i)}}});var $l,El;function Lb(){return El||(El=1,$l=(function(){function e(t,r,n,o,s){return t<r||n<r?t>n?n+1:t+1:o===s?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,s=r.length;o>0&&t.charCodeAt(o-1)===r.charCodeAt(s-1);)o--,s--;for(var i=0;i<o&&t.charCodeAt(i)===r.charCodeAt(i);)i++;if(o-=i,s-=i,o===0||s<3)return s;var c=0,a,p,l,d,y,m,h,$,b,E,w,f,I=[];for(a=0;a<o;a++)I.push(a+1),I.push(t.charCodeAt(i+a));for(var g=I.length-1;c<s-3;)for(b=r.charCodeAt(i+(p=c)),E=r.charCodeAt(i+(l=c+1)),w=r.charCodeAt(i+(d=c+2)),f=r.charCodeAt(i+(y=c+3)),m=c+=4,a=0;a<g;a+=2)h=I[a],$=I[a+1],p=e(h,p,l,b,$),l=e(p,l,d,E,$),d=e(l,d,y,w,$),m=e(d,y,m,f,$),I[a]=m,y=d,d=l,l=p,p=h;for(;c<s;)for(b=r.charCodeAt(i+(p=c)),m=++c,a=0;a<g;a+=2)h=I[a],I[a]=m=e(h,p,m,b,I[a+1]),p=h;return m}})()),$l}var Mb=Lb();const Vb=xr(Mb),xo=(e,t,r)=>{if(ze(e)){const 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}},Ls=(e,t,r,n,o)=>!!(e.properties&&Ir(e.properties,t)!==void 0||e.allOf?.some(s=>Jt(s,t,r,n,o))||_r(e.anyOf)&&e.anyOf.every(s=>Jt(s,t,r,new Set(n),o))||_r(e.oneOf)&&e.oneOf.every(s=>Jt(s,t,r,new Set(n),o))),Jt=(e,t,r,n=new Set,o)=>{if(ze(e)&&Ls(e,t,r,n,o))return!0;const{schema:s,location:i,chain:c}=xo(e,r,o);if(!s)return!1;if(!n.has(s)&&(n.add(s),Ls(s,t,r,n,i)))return!0;for(const a of c??[])if(!(!Ee(a.node)||n.has(a.node))&&(n.add(a.node),Ls(a.node,t,r,n,a.location)))return!0;return!1};function Io(e){return Array.isArray(e)?"array":e===null?"null":Number.isInteger(e)?"integer":typeof e}function To(e){const t=e?.security;return Array.isArray(t)&&t.length>0}function xl(e,t,r){if(To(e))return!0;if(!Array.isArray(e?.traits))return!1;for(const n of e.traits){const o=ze(n)?t(n,r).node:n;if(To(o))return!0}return!1}function _o(e,t,r){if(r&&e===null)return!0;switch(t){case"array":return Array.isArray(e);case"object":return Ee(e);case"null":return e===null;case"integer":return Number.isInteger(e);default:return typeof e===t}}function Po(e,t){return`${e} object should contain \`${t}\` field.`}function zb(e,t){return`${e} object should contain one of the fields: ${t.map(r=>`\`${r}\``).join(", ")}.`}function Il(e,t){return`${e} object \`${t}\` must be non-empty string.`}function mr({fieldName:e,value:t,ctx:r,reference:n}){Ee(t)&&(t[e]===void 0?r.report({message:Po(r.type.name,e),location:r.location.child([e]).key(),reference:n}):t[e]||r.report({message:Il(r.type.name,e),location:r.location.child([e]).key(),reference:n}))}function Fb({fieldNames:e,value:t,ctx:r,reference:n}){if(Ee(t)){e.some(o=>t.hasOwnProperty(o))||r.report({message:zb(r.type.name,e),location:r.location.key(),reference:n});for(const o of e)t.hasOwnProperty(o)&&!t[o]&&r.report({message:Il(r.type.name,o),location:r.location.child([o]).key(),reference:n})}}function So(e,t){if(e===null)return t;if(typeof e!="string"||!t.length)return[];const r=[];for(let n=0;n<t.length;n++){const o=Vb(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 Tl(e){if(Ee(e)){if(Mt(e.dataValue))return{value:e.dataValue,field:"dataValue"};if(Mt(e.value))return{value:e.value,field:"value"}}}function qr({example:e,schema:t,options:r,reference:n}){const{location:o,ctx:s,validator:i,allowAdditionalProperties:c,ajvContext:a}=r,{resolve:p,location:l,report:d,specVersion:y}=s;try{const{valid:m,errors:h}=i.validate(e,t,{schemaLoc:l.child("schema"),instancePath:o.pointer,resolve:p,allowAdditionalProperties:c,ajvContext:a,specVersion:y});if(!m)for(const $ of h)d({message:`Example value must conform to the schema: ${$.message}.`,location:{...new ls(o.source,$.instancePath),reportOnKey:$.keyword==="unevaluatedProperties"||$.keyword==="additionalProperties"},from:l,suggest:$.suggest,reference:n})}catch(m){if(m.message==="discriminator: requires oneOf or anyOf composite keyword")return;d({message:`Example validation errored: ${m.message}.`,location:l.child("schema"),from:l,reference:n})}}const Ub=10;function _l(e,t,r,n,{report:o,location:s},i){if(e&&!e.includes(t)){const c=e.length>Ub?`\`${r}\` "${t}" is not a valid value.${i?` See the supported values: ${i}.`:""}`:`\`${r}\` can be one of the following only: ${e.map(a=>`"${a}"`).join(", ")}.`;o({location:s,message:c,from:n,suggest:So(t,e)})}}function ko({responseCodes:e,codeRange:t,report:r,reference:n}){const 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 Ms(e,t){return t?e.name.toLowerCase():e.name}const Lr=()=>({Schema(e,{report:t,location:r}){if(!(e.enum&&!Array.isArray(e.enum))){if(e.enum&&e.type&&!Array.isArray(e.type)){const n=e.enum.filter(o=>!_o(o,e.type,e.nullable));for(const 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 "${Io(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)){const n={};for(const o of e.enum){n[o]=[];for(const s of e.type)_o(o,s,e.nullable)||n[o].push(s);n[o].length!==e.type.length&&delete n[o]}for(const 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"})}}}}),Oo=()=>({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"})}}),Mr=()=>{const e=[],t=new Set,r=(n,o,s)=>{if(_r(n.required))for(const[i,c]of n.required.entries())Jt(n,c,s,new Set,o)||s.report({message:`Required property '${c}' is not defined.`,location:o.child(["required",i]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})};return{ref:{leave(n,o,s){if(o.type.name!=="Schema")return;const i=[{node:n,location:o.location},...s.chain??[]];for(const{node:c,location:a}of i)!Ee(c)||t.has(c)||(t.add(c),r(c,a,o))}},Schema:{leave(n){e.pop()},enter(n,o){if(e.push(n),!_r(n.required))return;const s=(a,p)=>{const l=d=>xo(d,o).schema===p;return!!(a.allOf?.some(l)||a.anyOf?.some(l)||a.oneOf?.some(l))},i=(a,p)=>{if(a<0)return;const l=e[a];return s(l,p)?i(a-1,l)??l:void 0},c=i(e.length-2,n);for(const[a,p]of n.required.entries())!Jt(n,p,o)&&!Jt(c,p,o)&&o.report({message:`Required property '${p}' is not defined.`,location:o.location.child(["required",a]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})}}}},Vr=()=>({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"})}}),zr=()=>({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"}))}}),Ct=()=>({any(e,{report:t,type:r,location:n,rawLocation:o,key:s,resolve:i,ignoreNextVisitorsOnNode:c}){const a=Io(e),p=o!==n?o:void 0;if(r.items){a!=="array"&&(t({message:`Expected type \`${r.name}\` (array) but got \`${a}\``,from:p}),c());return}else if(a!=="object"){r!==$f&&t({message:`Expected type \`${r.name}\` (object) but got \`${a}\``,from:p}),c();return}const l=typeof r.required=="function"?r.required(e,s):r.required;for(const m of l||[])e.hasOwnProperty(m)||t({message:`The field \`${m}\` must be present on this level.`,from:p,location:[{reportOnKey:!0}]});const d=r.allowed?.(e);if(d&&Ee(e))for(const m in e)d.includes(m)||r.extensionsPrefix&&m.startsWith(r.extensionsPrefix)||!Object.keys(r.properties).includes(m)||t({message:`The field \`${m}\` is not allowed here.`,from:p,location:n.child([m]).key()});const y=r.requiredOneOf||null;if(y){let m=!1;for(const h of y||[])e.hasOwnProperty(h)&&(m=!0);m||t({message:`Must contain at least one of the following fields: ${r.requiredOneOf?.join(", ")}.`,from:p,location:[{reportOnKey:!0}]})}for(const m of Object.keys(e)){const h=n.child([m]);let $=e[m],b=Ir(r.properties,m);if(b===void 0&&(b=r.additionalProperties),typeof b=="function"&&(b=b($,m)),Ef(b))continue;const E=b,w=Io($);if(E===void 0){if(m.startsWith("x-"))continue;t({message:`Property \`${m}\` is not expected here.`,suggest:So(m,Object.keys(r.properties)),from:p,location:h.key()});continue}if(E!==null){if(E.resolvable!==!1&&ze($)&&($=i($).node),E.items&&E.items?.enum&&Array.isArray($))for(let f=0;f<$.length;f++)_l(E.items?.enum,$[f],m,p,{report:t,location:n.child([m,f])},E.items?.documentationLink);if(E.enum)_l(E.enum,$,m,p,{report:t,location:n.child([m])},E.documentationLink);else if(E.type&&!_o($,E.type,!1))t({message:`Expected type \`${E.type}\` but got \`${w}\`.`,from:p,location:h}),c();else if(w==="array"&&E.items?.type){const f=E.items?.type;for(let I=0;I<$.length;I++){const g=$[I];_o(g,f,!1)||t({message:`Expected type \`${f}\` but got \`${Io(g)}\`.`,from:p,location:h.child([I])})}}typeof E.minimum=="number"&&E.minimum>e[m]&&t({message:`The value of the ${m} field must be greater than or equal to ${E.minimum}`,from:p,location:n.child([m])})}}}}),Bb=()=>({CriterionObject:{enter(e,{report:t,location:r}){e.type&&(e.type==="xpath"||Ee(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"})}}}),Kb=()=>{function e(t,{report:r,location:n}){if(Array.isArray(t))for(const o of t){const s=Ir(o,"scheme"),i=Ir(o,"schemeName");s&&i&&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)}}}},Gb=()=>({Step:{enter(e,{report:t,location:r}){if(!e?.["x-operation"])return;const n=e?.["x-security"];if(n)for(const o of n)"schemeName"in o&&t({message:"The `schemeName` can be only used in Step with OpenAPI operation, please use `scheme` instead.",location:r.child(["x-security",n.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/respect/no-x-security-scheme-name-without-openapi"})}}}),Yb=()=>{let e=0;return{SourceDescriptions:{enter(t){e=Array.isArray(t)?t.length:0}},Workflow:{leave(t,{report:r,location:n}){const o=t?.["x-security"];if(!(!o||e<=1)){for(const s of o)if("schemeName"in s){const i=s.schemeName;typeof i=="string"&&i.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(s),"schemeName"]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-name-reference"})}}}}}},Wb={apiKey:["apiKey"],basic:["username","password"],digest:["username","password"],bearer:["token"],oauth2:["accessToken"],openIdConnect:["accessToken"],mutualTLS:[]};function Pl(e,{report:t,location:r}){if(e)for(const n of e){if("schemeName"in n)continue;const{scheme:o,values:s}=n,i=o?.type==="http"?o.scheme:o?.type;if(i==="mutualTLS"){Se.warn("Please use CLI option to provide mutualTLS certificates for mutualTls authentication security schema.");continue}const c=Wb[i];if(c)for(const a of c)(!s||!(a in s))&&t({message:`The \`${a}\` is required when using the ${i} 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 \`${i}\` 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"})}}const Hb=()=>({Step:{enter(e,t){Pl(e?.["x-security"],t)}},Workflow:{enter(e,t){Pl(e?.["x-security"],t)}}}),Qb=()=>({FailureActionObject:{enter(e,{report:t,location:r}){const n=e?.criteria;if(!Array.isArray(n))return;const o=new Set;for(const s of n){const i=JSON.stringify(s);o.has(i)?t({message:"The FailureAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):o.add(i)}}},SuccessActionObject:{enter(e,{report:t,location:r}){const n=e?.criteria;if(!Array.isArray(n))return;const o=new Set;for(const s of n){const i=JSON.stringify(s);o.has(i)?t({message:"The SuccessAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):o.add(i)}}},Step:{enter(e,{report:t,location:r}){const n=e?.successCriteria;if(!Array.isArray(n))return;const o=new Set;for(const s of n){const i=JSON.stringify(s);o.has(i)?t({message:"The Step SuccessCriteria items must be unique.",location:r.child(["successCriteria",n.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):o.add(i)}}}}),Jb=()=>{const e=new Map,t=new Map,r=[];function n({value:i,report:c,location:a,path:p,definedWorkflowOutputs:l}){const d=/\$workflows\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g;let y;for(;(y=d.exec(i))!==null;){const[m,h,$]=y,b=l.get(h);b?b.includes($)||c({message:`Output key "${$}" is not defined in workflow "${h}". Available outputs: [ ${b.join(", ")} ].`,location:a.child(p)}):c({message:`Workflow "${h}" referenced in runtime expression "${m}" is not defined or has no outputs.`,location:a.child(p)})}}function o({value:i,report:c,location:a,path:p,definedStepOutputs:l}){const d=/\$steps\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g;let y;for(;(y=d.exec(i))!==null;){const[m,h,$]=y,b=l.get(h);b?b.includes($)||c({message:`Output key "${$}" is not defined in step "${h}". Available outputs: [ ${b.join(", ")} ].`,location:a.child(p)}):c({message:`Step "${h}" referenced in runtime expression "${m}" is not defined or has no outputs.`,location:a.child(p)})}}function s(i,c,a=[]){if(typeof i=="string")n({value:i,report:c.report,location:c.location,path:a,definedWorkflowOutputs:e}),o({value:i,report:c.report,location:c.location,path:a,definedStepOutputs:t});else if(Ee(i)||Array.isArray(i))for(const[p,l]of Object.entries(i))s(l,c,[...a,p])}return{Step:{enter(i,{report:c,location:a}){i.outputs&&t.set(i.stepId,Object.keys(i.outputs))}},Workflow:{enter(i,{report:c,location:a}){i.outputs&&e.set(i.workflowId,Object.keys(i.outputs))}},Parameters:{enter(i,c){r.push(()=>{s(i,c)})}},RequestBody:{enter(i,c){r.push(()=>{s(i,c)})}},CriterionObject:{enter(i,c){r.push(()=>{s(i.condition,c)})}},Outputs:{enter(i,c){r.push(()=>{s(i,c)})}},ExtendedSecurity:{enter(i,c){r.push(()=>{s(i,c)})}},ExtendedOperation:{enter(i,c){r.push(()=>{s(i,c)})}},Root:{leave(){for(const i of r)i()}}}},Xb=()=>({Parameters:{enter(e,{report:t,location:r}){if(!e)return;const n=new Set;for(const 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)}}}),Zb=()=>{const e=new Set;return{Step:{leave(){e.clear()},RequestBody:{enter(t,{report:r,location:n}){if(t.replacements)for(const 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)}}}}},e0=()=>{const e=new Set;return{SourceDescriptions:{enter(t,{report:r,location:n}){if(t.length)for(const 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)}}}},t0=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){e?.length||t({message:"The `sourceDescriptions` list must have at least one entry.",location:r})}}}),r0=["x-operation","operationId","operationPath","channelPath","workflowId"],n0=()=>({Step:{enter(e,{report:t,location:r}){const n=r0.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"})}}}),o0=()=>({OnFailureActionList:{enter(e,{report:t,location:r}){if(!e)return;const n=new Set;for(const 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)}}}),s0=()=>({OnSuccessActionList:{enter(e,{report:t,location:r}){if(!e)return;const n=new Set;for(const 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)}}}),i0=()=>({Workflow:{enter(e,{report:t,location:r}){if(!e.steps)return;const n=new Set;for(const 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)}}}}),a0=()=>{const e=new Set,t=new Set,r=new Set;return{SourceDescriptions:{enter(n){for(const o of n)t.add(o.name)}},Workflows:{enter(n){for(const o of n)r.add(o.workflowId)}},Workflow:{leave(n,{report:o,location:s}){if(n.dependsOn)for(const i of n.dependsOn){if(i.startsWith("$sourceDescriptions.")){const c=i.split(".")[1];t.has(c)||o({message:`SourceDescription ${c} must be defined in sourceDescriptions.`,location:s.child(["dependsOn",n.dependsOn.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"})}!i.startsWith("$sourceDescriptions")&&!r.has(i)&&o({message:`Workflow ${i} must be defined in workflows.`,location:s.child(["dependsOn",n.dependsOn.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),e.has(i)&&o({message:"Every workflow in dependsOn must be unique.",location:s.child(["dependsOn"]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),e.add(i)}}}}},c0=()=>{const 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))}}}},p0={assertions:Ut,"criteria-unique":Qb,"no-criteria-xpath":Bb,"no-duplicated-enum-values":Dr,"no-unsafe-markdown":zr,"no-enum-type-mismatch":Lr,"no-mixed-number-range-constraints":Oo,"no-required-schema-properties-undefined":Mr,"no-schema-type-mismatch":Vr,"no-unresolved-refs":Vt,"no-x-security-both-scheme-and-scheme-name":Kb,"no-x-security-scheme-name-without-openapi":Gb,"outputs-defined":Jb,"parameters-unique":Xb,"requestBody-replacements-unique":Zb,"sourceDescription-name-unique":e0,"sourceDescription-type":Ob,"sourceDescriptions-not-empty":t0,"spec-step-mutually-exclusive-fields":n0,"step-onFailure-unique":o0,"step-onSuccess-unique":s0,"stepId-unique":i0,struct:Ct,"workflow-dependsOn":a0,"workflowId-unique":c0,"x-security-scheme-name-reference":Yb,"x-security-scheme-required-values":Hb},l0={},hr=()=>({Info(e,{report:t,location:r}){e.contact||t({message:Po("Info","contact"),location:r.child("contact").key(),reference:"https://redocly.com/docs/cli/rules/oas/info-contact"})}}),No=()=>{let e;return{Root:{enter(t){e=rn(t)},License:{leave(t,r){e==="oas3_1"||e==="oas3_2"?Fb({fieldNames:["url","identifier"],value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"}):mr({fieldName:"url",value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"})}}}}},jo=({ignoreCase:e=!1})=>{const t=new Set;return{Tag:{leave(r,n){const o=Ms(r,e);t.has(o)?n.report({message:`Duplicate tag name found: '${r.name}'.`,location:n.location}):t.add(o)}}}},Ao=()=>({Root:{PathItem:{Operation(e,t){mr({fieldName:"operationId",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId"})}}}});function u0(e,t,r){if("flows"in e&&e.flows){const{node:n,location:o}=ze(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},s=(o??r).source.absoluteRef,i=Object.values(n??{}).flatMap(c=>{const a=ze(c)?t(c,s).node:c;return Object.keys(a?.scopes||{})});return[...new Set(i)]}return Object.keys(e.scopes||{})}const Vs=e=>{const t=new Map,r=[];return{Root:{leave(n,{report:o}){for(const{schemeName:s,scopes:i,location:c}of r){const a=t.get(s);if(a?.type==="oauth2"){if(e.requireScopes&&i.length===0){o({message:`The "${s}" security requirement must list at least one scope.`,location:c.key(),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"});continue}for(let p=0;p<i.length;p++){const l=i[p];a.definedScopes.includes(l)||o({message:`The "${l}" scope is not defined in the "${s}" security scheme.`,location:c.child([p]),suggest:So(l,a.definedScopes),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}},SecurityScheme(n,{key:o,resolve:s,location:i}){t.set(o.toString(),{type:n.type,definedScopes:n.type==="oauth2"?u0(n,s,i):[]})},SecurityRequirement(n,{location:o}){for(const[s,i]of Object.entries(n))r.push({schemeName:s,scopes:i||[],location:o.child([s])})}}},Ro=()=>({ref:{leave(e,{report:t,location:r,type:n}){if(n.name!=="PathItem")for(const o of Object.keys(e))o!=="$ref"&&t({message:`Property \`${o}\` is not expected here because it is defined alongside \`$ref\`.`,location:r.child(o).key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-ref-siblings"})}}}),Co=()=>({Tag(e,t){mr({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/tag-description"})}}),Do=({ignoreCase:e=!1})=>({Root(t,{report:r,location:n}){if(t.tags)for(let o=0;o<t.tags.length-1;o++)Ms(t.tags[o],e)>Ms(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"})}}),d0=()=>({Channel(e,{report:t,key:r}){r.split(/[/.:]/).filter(n=>n!=="").every(n=>/^{.+}$/.test(n)||/^[a-z0-9-.]+$/.test(n))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/async/channels-kebab-case"})}}),f0=()=>({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"})}}),Sl="https://redocly.com/docs/cli/rules/async/security-defined",m0=()=>{const e=new Map,t=new Map,r=[];let n,o=!1;return{Root:{leave(s,{report:i}){for(const[a,p]of e.entries())if(!p.defined)for(const l of p.from)i({message:`There is no \`${a}\` security scheme defined.`,location:l.key(),reference:Sl});const c=[...t.keys()];for(const{location:a,channelServers:p}of r){const l=p??c;l.length>0&&l.every(d=>t.get(d))||i({message:"Every operation should have security defined on it.",location:a.key(),reference:Sl})}}},SecurityScheme(s,{key:i}){s!=null&&e.set(i.toString(),{defined:!0,from:[]})},SecurityRequirement(s,{location:i}){for(const c of Object.keys(s)){const a=e.get(c),p=i.child([c]);a?a.from.push(p):e.set(c,{from:[p]})}},Components:{enter(){o=!0},leave(){o=!1}},Server(s,{key:i}){o||t.set(i.toString(),To(s))},Channel:{skip(){return o},enter(s){n=Array.isArray(s?.servers)&&s.servers.length>0?s.servers:void 0},Operation(s,{location:i,resolve:c}){xl(s,c)||r.push({location:i,channelServers:n})}}}},h0={struct:Ct,"no-unresolved-refs":Vt,assertions:Ut,"info-contact":hr,"info-license-strict":No,"operation-operationId":Ao,"security-defined":m0,"channels-kebab-case":d0,"no-channel-trailing-slash":f0,"tag-description":Co,"tags-alphabetical":Do,"no-duplicated-enum-values":Dr,"no-unsafe-markdown":zr,"no-duplicated-tag-names":jo,"no-required-schema-properties-undefined":Mr,"no-enum-type-mismatch":Lr,"no-mixed-number-range-constraints":Oo,"no-schema-type-mismatch":Vr,"security-scopes-defined":Vs,"spec-ref-siblings":Ro},y0={},g0=()=>({Channel(e,{report:t}){(e.address||"").split(/[/.:]/).filter(r=>r!=="").every(r=>/^{.+}$/.test(r)||/^[a-z0-9-.]+$/.test(r))||t({message:`\`${e.address}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/async/channels-kebab-case"})}}),v0=()=>({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"})}}),kl="#/components/securitySchemes/",b0="#/components/",zs="https://redocly.com/docs/cli/rules/async/security-defined";function w0(e){const t=e.indexOf("#");return t===-1?e:e.slice(t)}function $0(e){if(!e.startsWith(kl))return!1;const t=e.slice(kl.length);return t!==""&&!t.includes("/")}const E0=()=>{const e=[];let t,r,n,o,s;const i=(c,a,p)=>{const l=c.channel,d=ze(l)?a(l,p):void 0,y=(ze(l)?d?.node:l)?.servers;let m,h;return y&&y.length>0?(m=y,h=d?.location?.source.absoluteRef??p):(m=t?Object.values(t):[],h=r),m.length===0?!1:m.every($=>{const b=ze($)?a($,h).node:$;return To(b)})};return{Root:{enter(c,{location:a,resolve:p}){const l=c?.servers;if(ze(l)){const y=p(l);t=y.node??void 0,r=y.location?.source.absoluteRef}else t=l,r=void 0;const d=c?.operations;if(ze(d)){const y=p(d);n=y.node??void 0,o=y.location?.source.absoluteRef,s=y.location}else n=d,o=void 0,s=a.child(["operations"])},leave(c,{report:a,resolve:p}){for(const l of e){if((l.local||l.refPointer.startsWith(b0))&&!$0(l.refPointer)){a({message:"Security scheme `$ref` must point to `#/components/securitySchemes`.",location:l.location.key(),reference:zs});continue}l.resolved||a({message:`There is no \`${l.name}\` security scheme defined.`,location:l.location.key(),reference:zs})}if(n&&s){const l=s;for(const[d,y]of Object.entries(n)){let m,h;if(ze(y)){const $=p(y,o);m=$.node,h=$.location?.source.absoluteRef}else m=y,h=o;m&&(xl(m,p,h)||i(m,p,h)||a({message:"Every operation should have security defined on it.",location:l.child([d]).key(),reference:zs}))}}}},SecuritySchemeList:{enter(c,{location:a,resolve:p}){if(c)for(let l=0;l<c.length;l++){const d=c[l];if(!ze(d))continue;const y=a.child([l]),m=p(d),h=w0(d.$ref),$=h.split("/").pop()??d.$ref;e.push({location:y,name:$,refPointer:h,resolved:m.node!=null,local:d.$ref.startsWith("#")})}}}}};function x0(e,t,r){if(!e.flows)return[];const{node:n,location:o}=ze(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},s=(o??r).source.absoluteRef,i=Object.values(n??{}).flatMap(c=>{const a=ze(c)?t(c,s).node:c;return Object.keys(a?.availableScopes||{})});return[...new Set(i)]}const I0=e=>{const t=new Map;return{SecuritySchemeList(r,{resolve:n,location:o}){for(let s=0;s<r.length;s++){const i=r[s],c=ze(i)?n(i):{node:i,location:o.child([s])};!c.node||!c.location||t.set(c.location.absolutePointer,{scheme:c.node,location:c.location,availableScopes:c.node.type==="oauth2"?x0(c.node,n,c.location):[]})}},Root:{leave(r,{report:n}){for(const{scheme:o,location:s,availableScopes:i}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:s.key(),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"});continue}const c=o.scopes||[];for(let a=0;a<c.length;a++){const p=c[a];i.includes(p)||n({message:`The "${p}" scope is not defined in the available scopes of the security scheme flows.`,location:s.child(["scopes",a]),suggest:So(p,i),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}}},T0={struct:Ct,"no-unresolved-refs":Vt,assertions:Ut,"info-contact":hr,"info-license-strict":No,"operation-operationId":Ao,"security-defined":E0,"channels-kebab-case":g0,"no-channel-trailing-slash":v0,"tag-description":Co,"tags-alphabetical":Do,"no-duplicated-enum-values":Dr,"no-unsafe-markdown":zr,"no-duplicated-tag-names":jo,"no-required-schema-properties-undefined":Mr,"no-enum-type-mismatch":Lr,"no-mixed-number-range-constraints":Oo,"no-schema-type-mismatch":Vr,"security-scopes-defined":I0,"spec-ref-siblings":Ro},_0={};function Ol(e){return ds(rr).filter(t=>e.assertions[t]!==void 0).map(t=>({name:t,conditions:e.assertions[t],runsOnKeys:ra.has(t),runsOnValues:ta.has(t)}))}const P0=e=>{const t=Object.values(e).filter(Ee),r=[];for(const n of t){if(n.severity==="off")continue;const o=n.subject?.type;if(!o)continue;if(!Ee(n.assertions))throw new Error(`${n.assertionId}: 'assertions' (Object) is required`);const s=Ol(n),i=S0(n);r.push({[o]:(c,a)=>{k0(c,a,i)&&O0(c,a,n,s)}})}return r};function S0(e){return Array.isArray(e.where)?e.where.map((t,r)=>{if(!Ot(t.subject?.type))throw new Error(`${e.assertionId} -> where -> [${r}]: 'type' (String) is required`);if(!Ee(t.assertions))throw new Error(`${e.assertionId} -> where -> [${r}]: 'assertions' (Object) is required`);return{kind:t.subject.type,definition:t,assertsToApply:Ol(t)}}):[]}function k0(e,t,r){let n=r;const o=r.at(-1);if(o&&o.kind===e.kind){if(!Nl(e,o,t))return!1;n=r.slice(0,-1)}let s=0;for(const i of n){let c=!1;for(;s<t.ancestors.length;){const a=t.ancestors[s++];if(a.kind===i.kind&&Nl(a,i,t)){c=!0;break}}if(!c)return!1}return!0}function Nl(e,t,r){const{value:n}=jl(e,t.definition.subject.property),o=new ls(r.source,"#/");return t.assertsToApply.every(s=>rr[s.name](n,s.conditions,{baseLocation:o,rawValue:n}).length===0)}function O0(e,t,r,n){const o=Al(r.subject.property),{value:s,locNode:i}=jl(e,r.subject.property),c=new ls(t.source,"#/"),a=n.flatMap(l=>rr[l.name](s,l.conditions,{baseLocation:c,rawValue:s}));if(!a.length)return;const p=`${Ae.blue(r.assertionId)} failed because the ${Ae.blue(r.subject.type)} ${Ae.blue(o??"")} didn't meet the assertions: {{problems}}`.replace(/ +/g," ");t.report({message:bl(r.message??p,{problems:gl(a),assertionName:r.assertionId,nodeType:r.subject.type,property:o??"",key:"",pointer:"",file:vl(t.source.absoluteRef)}),node:i,suggest:r.suggest,ruleId:r.assertionId,severity:r.severity})}function Fs(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 jl(e,t){const r=Al(t);if(r===void 0)return Fs(e);const n=e[r];if(Array.isArray(n))return{value:n.map(s=>Fs(s).value),locNode:e};const o=Fs(n);return{value:o.value,locNode:N0(o.locNode)?o.locNode:e}}function N0(e){return Ee(e)&&"kind"in e}function Al(e){return Array.isArray(e)?e[0]:e}const j0=["Query","Mutation","Subscription"];function A0(e){let t=e;for(;t.kind==="ListType"||t.kind==="NonNullType";)t=t.type;return t.name.value}const R0=()=>{const e=new Map,t=new Set,r=new Set;let n=!1;const o=l=>t.add(A0(l)),s=l=>e.set(l.name.value,l.name),i=l=>{for(const d of l.interfaces??[])o(d);for(const d of l.fields??[]){o(d.type);for(const y of d.arguments??[])o(y.type)}},c=l=>{for(const d of l.types??[])o(d)},a=l=>{for(const d of l.fields??[])o(d.type)},p=l=>{for(const d of l.operationTypes??[])r.add(d.type.name.value)};return{SchemaDefinition:l=>{n=!0,p(l)},SchemaExtension:p,DirectiveDefinition:l=>{for(const d of l.arguments??[])o(d.type)},ObjectTypeDefinition:l=>{s(l),i(l)},ObjectTypeExtension:i,InterfaceTypeDefinition:l=>{s(l),i(l)},InterfaceTypeExtension:i,UnionTypeDefinition:l=>{s(l),c(l)},UnionTypeExtension:c,InputObjectTypeDefinition:l=>{s(l),a(l)},InputObjectTypeExtension:a,EnumTypeDefinition:s,ScalarTypeDefinition:s,Document:{leave:(l,d)=>{if(!n)for(const y of j0)e.has(y)&&r.add(y);if(r.size!==0)for(const[y,m]of e)t.has(y)||r.has(y)||d.report({message:`Type \`${y}\` is declared but never used.`,node:m})}}}};function Ve(e,t){if(!e)throw new Error(t)}function Xt(e){return typeof e=="object"&&e!==null}function gt(e,t){if(!e)throw new Error(t??"Unexpected invariant triggered.")}const C0=/\r\n|[\n\r]/g;function qo(e,t){let r=0,n=1;for(const o of e.body.matchAll(C0)){if(typeof o.index=="number"||gt(!1),o.index>=t)break;r=o.index+o[0].length,n+=1}return{line:n,column:t+1-r}}function D0(e){return Rl(e.source,qo(e.source,e.start))}function Rl(e,t){const r=e.locationOffset.column-1,n="".padStart(r)+e.body,o=t.line-1,s=e.locationOffset.line-1,i=t.line+s,c=t.line===1?r:0,a=t.column+c,p=`${e.name}:${i}:${a}
|
|
16
|
+
`,l=n.split(/\r\n|[\n\r]/g),d=l[o];if(d.length>120){const y=Math.floor(a/80),m=a%80,h=[];for(let $=0;$<d.length;$+=80)h.push(d.slice($,$+80));return p+Cl([[`${i} |`,h[0]],...h.slice(1,y+1).map($=>["|",$]),["|","^".padStart(m)],["|",h[y+1]]])}return p+Cl([[`${i-1} |`,l[o-1]],[`${i} |`,d],["|","^".padStart(a)],[`${i+1} |`,l[o+1]]])}function Cl(e){const t=e.filter(([n,o])=>o!==void 0),r=Math.max(...t.map(([n])=>n.length));return t.map(([n,o])=>n.padStart(r)+(o?" "+o:"")).join(`
|
|
17
|
+
`)}function q0(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class fe extends Error{constructor(t,...r){var n,o,s;const{nodes:i,source:c,positions:a,path:p,originalError:l,extensions:d}=q0(r);super(t),this.name="GraphQLError",this.path=p??void 0,this.originalError=l??void 0,this.nodes=Dl(Array.isArray(i)?i:i?[i]:void 0);const y=Dl((n=this.nodes)===null||n===void 0?void 0:n.map(h=>h.loc).filter(h=>h!=null));this.source=c??(y==null||(o=y[0])===null||o===void 0?void 0:o.source),this.positions=a??y?.map(h=>h.start),this.locations=a&&c?a.map(h=>qo(c,h)):y?.map(h=>qo(h.source,h.start));const m=Xt(l?.extensions)?l?.extensions:void 0;this.extensions=(s=d??m)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),l!=null&&l.stack?Object.defineProperty(this,"stack",{value:l.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,fe):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const r of this.nodes)r.loc&&(t+=`
|
|
18
|
+
|
|
19
|
+
`+D0(r.loc));else if(this.source&&this.locations)for(const r of this.locations)t+=`
|
|
20
|
+
|
|
21
|
+
`+Rl(this.source,r);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function Dl(e){return e===void 0||e.length===0?void 0:e}class L0{constructor(t,r,n){this.start=t.start,this.end=r.end,this.startToken=t,this.endToken=r,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class M0{constructor(t,r,n,o,s,i){this.kind=t,this.start=r,this.end=n,this.line=o,this.column=s,this.value=i,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const Us={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},V0=new Set(Object.keys(Us));function ql(e){const t=e?.kind;return typeof t=="string"&&V0.has(t)}var lt;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(lt||(lt={}));var he;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",e.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION"})(he||(he={}));var B;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.DIRECTIVE_EXTENSION="DirectiveExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(B||(B={}));function Bs(e){return e===9||e===32}function Ll(e){return e>=48&&e<=57}function Ml(e){return e>=97&&e<=122||e>=65&&e<=90}function Vl(e){return Ml(e)||e===95}function zl(e){return Ml(e)||Ll(e)||e===95}function z0(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,o=-1;for(let i=0;i<e.length;++i){var s;const c=e[i],a=F0(c);a!==c.length&&(n=(s=n)!==null&&s!==void 0?s:i,o=i,i!==0&&a<r&&(r=a))}return e.map((i,c)=>c===0?i:i.slice(r)).slice((t=n)!==null&&t!==void 0?t:0,o+1)}function F0(e){let t=0;for(;t<e.length&&Bs(e.charCodeAt(t));)++t;return t}function U0(e,t){const r=e.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),o=n.length===1,s=n.length>1&&n.slice(1).every(m=>m.length===0||Bs(m.charCodeAt(0))),i=r.endsWith('\\"""'),c=e.endsWith('"')&&!i,a=e.endsWith("\\"),p=c||a,l=!o||e.length>70||p||s||i;let d="";const y=o&&Bs(e.charCodeAt(0));return(l&&!y||s)&&(d+=`
|
|
22
|
+
`),d+=r,(l||p)&&(d+=`
|
|
23
|
+
`),'"""'+d+'"""'}const B0=10,Fl=2;function ge(e){return Lo(e,[])}function Lo(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return K0(e,t);default:return String(e)}}function K0(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(G0(e)){const n=e.toJSON();if(n!==e)return typeof n=="string"?n:Lo(n,r)}else if(Array.isArray(e))return W0(e,r);return Y0(e,r)}function G0(e){return typeof e.toJSON=="function"}function Y0(e,t){const r=Object.entries(e);return r.length===0?"{}":t.length>Fl?"["+H0(e)+"]":"{ "+r.map(([n,o])=>n+": "+Lo(o,t)).join(", ")+" }"}function W0(e,t){if(e.length===0)return"[]";if(t.length>Fl)return"[Array]";const r=Math.min(B0,e.length),n=e.length-r,o=[];for(let s=0;s<r;++s)o.push(Lo(e[s],t));return n===1?o.push("... 1 more item"):n>1&&o.push(`... ${n} more items`),"["+o.join(", ")+"]"}function H0(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const r=e.constructor.name;if(typeof r=="string"&&r!=="")return r}return t}const Q0=globalThis.process&&!0,vt=Q0?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if(typeof e=="object"&&e!==null){var r;const n=t.prototype[Symbol.toStringTag],o=Symbol.toStringTag in e?e[Symbol.toStringTag]:(r=e.constructor)===null||r===void 0?void 0:r.name;if(n===o){const s=ge(e);throw new Error(`Cannot use ${n} "${s}" from another module or realm.
|
|
24
|
+
|
|
25
|
+
Ensure that there is only one instance of "graphql" in the node_modules
|
|
26
|
+
directory. If different versions of "graphql" are the dependencies of other
|
|
27
|
+
relied on modules, use "resolutions" to ensure only one version is installed.
|
|
28
|
+
|
|
29
|
+
https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
30
|
+
|
|
31
|
+
Duplicate "graphql" modules cannot be used at the same time since different
|
|
32
|
+
versions may have different capabilities and behavior. The data from one
|
|
33
|
+
version used in the function from another could produce confusing and
|
|
34
|
+
spurious results.`)}}return!1},J0=5;function Mo(e,t){const[r,n]=t?[e,t]:[void 0,e];let o=" Did you mean ";r&&(o+=r+" ");const s=n.map(a=>`"${a}"`);switch(s.length){case 0:return"";case 1:return o+s[0]+"?";case 2:return o+s[0]+" or "+s[1]+"?"}const i=s.slice(0,J0),c=i.pop();return o+i.join(", ")+", or "+c+"?"}function Ul(e){return e}function yr(e,t){const r=Object.create(null);for(const n of e)r[t(n)]=n;return r}function Ks(e,t,r){const n=Object.create(null);for(const o of e)n[t(o)]=r(o);return n}function Pt(e,t){const r=Object.create(null);for(const n of Object.keys(e))r[n]=t(e[n],n);return r}function X0(e,t){let r=0,n=0;for(;r<e.length&&n<t.length;){let o=e.charCodeAt(r),s=t.charCodeAt(n);if(Vo(o)&&Vo(s)){let i=0;do++r,i=i*10+o-Gs,o=e.charCodeAt(r);while(Vo(o)&&i>0);let c=0;do++n,c=c*10+s-Gs,s=t.charCodeAt(n);while(Vo(s)&&c>0);if(i<c)return-1;if(i>c)return 1}else{if(o<s)return-1;if(o>s)return 1;++r,++n}}return e.length-t.length}const Gs=48,Z0=57;function Vo(e){return!isNaN(e)&&Gs<=e&&e<=Z0}function zo(e,t){const r=Object.create(null),n=new ew(e),o=Math.floor(e.length*.4)+1;for(const s of t){const i=n.measure(s,o);i!==void 0&&(r[s]=i)}return Object.keys(r).sort((s,i)=>{const c=r[s]-r[i];return c!==0?c:X0(s,i)})}class ew{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=Bl(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,r){if(this._input===t)return 0;const n=t.toLowerCase();if(this._inputLowerCase===n)return 1;let o=Bl(n),s=this._inputArray;if(o.length<s.length){const l=o;o=s,s=l}const i=o.length,c=s.length;if(i-c>r)return;const a=this._rows;for(let l=0;l<=c;l++)a[0][l]=l;for(let l=1;l<=i;l++){const d=a[(l-1)%3],y=a[l%3];let m=y[0]=l;for(let h=1;h<=c;h++){const $=o[l-1]===s[h-1]?0:1;let b=Math.min(d[h]+1,y[h-1]+1,d[h-1]+$);if(l>1&&h>1&&o[l-1]===s[h-2]&&o[l-2]===s[h-1]){const E=a[(l-2)%3][h-2];b=Math.min(b,E+1)}b<m&&(m=b),y[h]=b}if(m>r)return}const p=a[i%3][c];return p<=r?p:void 0}}function Bl(e){const t=e.length,r=new Array(t);for(let n=0;n<t;++n)r[n]=e.charCodeAt(n);return r}function ut(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;const t=Object.create(null);for(const[r,n]of Object.entries(e))t[r]=n;return t}function tw(e){return`"${e.replace(rw,nw)}"`}const rw=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function nw(e){return ow[e.charCodeAt(0)]}const ow=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Fr=Object.freeze({});function Ys(e,t,r=Us){const n=new Map;for(const E of Object.values(B))n.set(E,Gl(t,E));let o,s=Array.isArray(e),i=[e],c=-1,a=[],p=e,l,d;const y=[],m=[];do{c++;const E=c===i.length,w=E&&a.length!==0;if(E){if(l=m.length===0?void 0:y[y.length-1],p=d,d=m.pop(),w)if(s){p=p.slice();let I=0;for(const[g,v]of a){const x=g-I;v===null?(p.splice(x,1),I++):p[x]=v}}else{p={...p};for(const[I,g]of a)p[I]=g}c=o.index,i=o.keys,a=o.edits,s=o.inArray,o=o.prev}else if(d){if(l=s?c:i[c],p=d[l],p==null)continue;y.push(l)}let f;if(!Array.isArray(p)){var h,$;if(ql(p)||Ve(!1,`Invalid AST Node: ${ge(p)}.`),f=(E?(h=n.get(p.kind))===null||h===void 0?void 0:h.leave:($=n.get(p.kind))===null||$===void 0?void 0:$.enter)?.call(t,p,l,d,y,m),f===Fr)break;if(f===!1){if(!E){y.pop();continue}}else if(f!==void 0&&(a.push([l,f]),!E))if(ql(f))p=f;else{y.pop();continue}}if(f===void 0&&w&&a.push([l,p]),E)y.pop();else{var b;o={inArray:s,index:c,keys:i,edits:a,prev:o},s=Array.isArray(p),i=s?p:(b=r[p.kind])!==null&&b!==void 0?b:[],c=-1,a=[],d&&m.push(d),d=p}}while(o!==void 0);return a.length!==0?a[a.length-1][1]:e}function Kl(e){const t=new Array(e.length).fill(null),r=Object.create(null);for(const n of Object.values(B)){let o=!1;const s=new Array(e.length).fill(void 0),i=new Array(e.length).fill(void 0);for(let a=0;a<e.length;++a){const{enter:p,leave:l}=Gl(e[a],n);o||(o=p!=null||l!=null),s[a]=p,i[a]=l}if(!o)continue;const c={enter(...a){const p=a[0];for(let d=0;d<e.length;d++)if(t[d]===null){var l;const y=(l=s[d])===null||l===void 0?void 0:l.apply(e[d],a);if(y===!1)t[d]=p;else if(y===Fr)t[d]=Fr;else if(y!==void 0)return y}},leave(...a){const p=a[0];for(let d=0;d<e.length;d++)if(t[d]===null){var l;const y=(l=i[d])===null||l===void 0?void 0:l.apply(e[d],a);if(y===Fr)t[d]=Fr;else if(y!==void 0&&y!==!1)return y}else t[d]===p&&(t[d]=null)}};r[n]=c}return r}function Gl(e,t){const r=e[t];return typeof r=="object"?r:typeof r=="function"?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}function St(e){return Ys(e,iw)}const sw=80,iw={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>se(e.definitions,`
|
|
35
|
+
|
|
36
|
+
`)},OperationDefinition:{leave(e){const t=Ws(e.variableDefinitions)?Ie(`(
|
|
37
|
+
`,se(e.variableDefinitions,`
|
|
38
|
+
`),`
|
|
39
|
+
)`):Ie("(",se(e.variableDefinitions,", "),")"),r=Ie("",e.description,`
|
|
40
|
+
`)+se([e.operation,se([e.name,t]),se(e.directives," ")]," ");return(r==="query"?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n,description:o})=>Ie("",o,`
|
|
41
|
+
`)+e+": "+t+Ie(" = ",r)+Ie(" ",se(n," "))},SelectionSet:{leave:({selections:e})=>bt(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:o}){const s=Ie("",e,": ")+t;let i=s+Ie("(",se(r,", "),")");return i.length>sw&&(i=s+Ie(`(
|
|
42
|
+
`,Fo(se(r,`
|
|
43
|
+
`)),`
|
|
44
|
+
)`)),se([i,se(n," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Ie(" ",se(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>se(["...",Ie("on ",e),se(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:o,description:s})=>Ie("",s,`
|
|
45
|
+
`)+`fragment ${e}${Ie("(",se(r,", "),")")} on ${t} ${Ie("",se(n," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?U0(e):tw(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+se(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+se(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Ie("(",se(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>Ie("",e,`
|
|
46
|
+
`)+se(["schema",se(t," "),bt(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>Ie("",e,`
|
|
47
|
+
`)+se(["scalar",t,se(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:o})=>Ie("",e,`
|
|
48
|
+
`)+se(["type",t,Ie("implements ",se(r," & ")),se(n," "),bt(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:o})=>Ie("",e,`
|
|
49
|
+
`)+t+(Ws(r)?Ie(`(
|
|
50
|
+
`,Fo(se(r,`
|
|
51
|
+
`)),`
|
|
52
|
+
)`):Ie("(",se(r,", "),")"))+": "+n+Ie(" ",se(o," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:o})=>Ie("",e,`
|
|
53
|
+
`)+se([t+": "+r,Ie("= ",n),se(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:o})=>Ie("",e,`
|
|
54
|
+
`)+se(["interface",t,Ie("implements ",se(r," & ")),se(n," "),bt(o)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>Ie("",e,`
|
|
55
|
+
`)+se(["union",t,se(r," "),Ie("= ",se(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>Ie("",e,`
|
|
56
|
+
`)+se(["enum",t,se(r," "),bt(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>Ie("",e,`
|
|
57
|
+
`)+se([t,se(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>Ie("",e,`
|
|
58
|
+
`)+se(["input",t,se(r," "),bt(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,directives:n,repeatable:o,locations:s})=>Ie("",e,`
|
|
59
|
+
`)+"directive @"+t+(Ws(r)?Ie(`(
|
|
60
|
+
`,Fo(se(r,`
|
|
61
|
+
`)),`
|
|
62
|
+
)`):Ie("(",se(r,", "),")"))+Ie(" ",se(n," "))+(o?" repeatable":"")+" on "+se(s," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>se(["extend schema",se(e," "),bt(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>se(["extend scalar",e,se(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>se(["extend type",e,Ie("implements ",se(t," & ")),se(r," "),bt(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>se(["extend interface",e,Ie("implements ",se(t," & ")),se(r," "),bt(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>se(["extend union",e,se(t," "),Ie("= ",se(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>se(["extend enum",e,se(t," "),bt(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>se(["extend input",e,se(t," "),bt(r)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>se(["extend directive @"+e,se(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>se([e,Ie(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>se([e,Ie(".",t),Ie("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>se(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>se(["@",e,Ie("(",t,":)")])}};function se(e,t=""){var r;return(r=e?.filter(n=>n).join(t))!==null&&r!==void 0?r:""}function bt(e){return Ie(`{
|
|
63
|
+
`,Fo(se(e,`
|
|
64
|
+
`)),`
|
|
65
|
+
}`)}function Ie(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function Fo(e){return Ie(" ",e.replace(/\n/g,`
|
|
66
|
+
`))}function Ws(e){var t;return(t=e?.some(r=>r.includes(`
|
|
67
|
+
`)))!==null&&t!==void 0?t:!1}function Hs(e,t){switch(e.kind){case B.NULL:return null;case B.INT:return parseInt(e.value,10);case B.FLOAT:return parseFloat(e.value);case B.STRING:case B.ENUM:case B.BOOLEAN:return e.value;case B.LIST:return e.values.map(r=>Hs(r,t));case B.OBJECT:return Ks(e.fields,r=>r.name.value,r=>Hs(r.value,t));case B.VARIABLE:return t?.[e.name.value]}}function wt(e){if(e!=null||Ve(!1,"Must provide name."),typeof e=="string"||Ve(!1,"Expected name to be a string."),e.length===0)throw new fe("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!zl(e.charCodeAt(t)))throw new fe(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!Vl(e.charCodeAt(0)))throw new fe(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function aw(e){if(e==="true"||e==="false"||e==="null")throw new fe(`Enum values cannot be named: ${e}`);return wt(e)}function Qs(e){return Bt(e)||Xe(e)||Ze(e)||$t(e)||dt(e)||it(e)||Et(e)||Ye(e)}function Bt(e){return vt(e,Kt)}function Xe(e){return vt(e,Dt)}function Ze(e){return vt(e,Xs)}function $t(e){return vt(e,Zs)}function dt(e){return vt(e,Ur)}function it(e){return vt(e,ei)}function Et(e){return vt(e,ct)}function Ye(e){return vt(e,ke)}function Uo(e){return Bt(e)||dt(e)||it(e)||Js(e)&&Uo(e.ofType)}function Yl(e){return Bt(e)||Xe(e)||Ze(e)||$t(e)||dt(e)||Js(e)&&Yl(e.ofType)}function Wl(e){return Bt(e)||dt(e)}function Hl(e){return Ze(e)||$t(e)}class ct{constructor(t){Qs(t)||Ve(!1,`Expected ${ge(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class ke{constructor(t){cw(t)||Ve(!1,`Expected ${ge(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function Js(e){return Et(e)||Ye(e)}function cw(e){return Qs(e)&&!Ye(e)}function pw(e){return Bt(e)||Xe(e)||Ze(e)||$t(e)||dt(e)||it(e)}function lw(e){if(e){let t=e;for(;Js(t);)t=t.ofType;return t}}function Ql(e){return typeof e=="function"?e():e}function Jl(e){return typeof e=="function"?e():e}class Kt{constructor(t){var r,n,o,s;const i=(r=t.parseValue)!==null&&r!==void 0?r:Ul;this.name=wt(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(n=t.serialize)!==null&&n!==void 0?n:Ul,this.parseValue=i,this.parseLiteral=(o=t.parseLiteral)!==null&&o!==void 0?o:(c,a)=>i(Hs(c,a)),this.extensions=ut(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(s=t.extensionASTNodes)!==null&&s!==void 0?s:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||Ve(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${ge(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||Ve(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||Ve(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Dt{constructor(t){var r;this.name=wt(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=ut(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=()=>Zl(t),this._interfaces=()=>Xl(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||Ve(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${ge(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:tu(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Xl(e){var t;const r=Ql((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(r)||Ve(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),r}function Zl(e){const t=Jl(e.fields);return gr(t)||Ve(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Pt(t,(r,n)=>{var o;gr(r)||Ve(!1,`${e.name}.${n} field config must be an object.`),r.resolve==null||typeof r.resolve=="function"||Ve(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${ge(r.resolve)}.`);const s=(o=r.args)!==null&&o!==void 0?o:{};return gr(s)||Ve(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:wt(n),description:r.description,type:r.type,args:eu(s),resolve:r.resolve,subscribe:r.subscribe,deprecationReason:r.deprecationReason,extensions:ut(r.extensions),astNode:r.astNode}})}function eu(e){return Object.entries(e).map(([t,r])=>({name:wt(t),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:ut(r.extensions),astNode:r.astNode}))}function gr(e){return Xt(e)&&!Array.isArray(e)}function tu(e){return Pt(e,t=>({description:t.description,type:t.type,args:ru(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function ru(e){return Ks(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function Bo(e){return Ye(e.type)&&e.defaultValue===void 0}class Xs{constructor(t){var r;this.name=wt(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=ut(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=Zl.bind(void 0,t),this._interfaces=Xl.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||Ve(!1,`${this.name} must provide "resolveType" as a function, but got: ${ge(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:tu(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Zs{constructor(t){var r;this.name=wt(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=ut(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._types=uw.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||Ve(!1,`${this.name} must provide "resolveType" as a function, but got: ${ge(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function uw(e){const t=Ql(e.types);return Array.isArray(t)||Ve(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class Ur{constructor(t){var r;this.name=wt(t.name),this.description=t.description,this.extensions=ut(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._values=typeof t.values=="function"?t.values:nu(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=nu(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=yr(this.getValues(),r=>r.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(n=>[n.value,n])));const r=this._valueLookup.get(t);if(r===void 0)throw new fe(`Enum "${this.name}" cannot represent value: ${ge(t)}`);return r.name}parseValue(t){if(typeof t!="string"){const n=ge(t);throw new fe(`Enum "${this.name}" cannot represent non-string value: ${n}.`+Ko(this,n))}const r=this.getValue(t);if(r==null)throw new fe(`Value "${t}" does not exist in "${this.name}" enum.`+Ko(this,t));return r.value}parseLiteral(t,r){if(t.kind!==B.ENUM){const o=St(t);throw new fe(`Enum "${this.name}" cannot represent non-enum value: ${o}.`+Ko(this,o),{nodes:t})}const n=this.getValue(t.value);if(n==null){const o=St(t);throw new fe(`Value "${o}" does not exist in "${this.name}" enum.`+Ko(this,o),{nodes:t})}return n.value}toConfig(){const t=Ks(this.getValues(),r=>r.name,r=>({description:r.description,value:r.value,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Ko(e,t){const r=e.getValues().map(o=>o.name),n=zo(t,r);return Mo("the enum value",n)}function nu(e,t){return gr(t)||Ve(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([r,n])=>(gr(n)||Ve(!1,`${e}.${r} must refer to an object with a "value" key representing an internal value but got: ${ge(n)}.`),{name:aw(r),description:n.description,value:n.value!==void 0?n.value:r,deprecationReason:n.deprecationReason,extensions:ut(n.extensions),astNode:n.astNode}))}class ei{constructor(t){var r,n;this.name=wt(t.name),this.description=t.description,this.extensions=ut(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this.isOneOf=(n=t.isOneOf)!==null&&n!==void 0?n:!1,this._fields=dw.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){const t=Pt(this.getFields(),r=>({description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function dw(e){const t=Jl(e.fields);return gr(t)||Ve(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Pt(t,(r,n)=>(!("resolve"in r)||Ve(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:wt(n),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:ut(r.extensions),astNode:r.astNode}))}function fw(e){return Ye(e.type)&&e.defaultValue===void 0}function ou(e,t){return e===t?!0:Ye(e)&&Ye(t)||Et(e)&&Et(t)?ou(e.ofType,t.ofType):!1}function Go(e,t,r){return t===r?!0:Ye(r)?Ye(t)?Go(e,t.ofType,r.ofType):!1:Ye(t)?Go(e,t.ofType,r):Et(r)?Et(t)?Go(e,t.ofType,r.ofType):!1:Et(t)?!1:Hl(r)&&(Ze(t)||Xe(t))&&e.isSubType(r,t)}const ti=2147483647,ri=-2147483648,mw=new Kt({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=Br(e);if(typeof t=="boolean")return t?1:0;let r=t;if(typeof t=="string"&&t!==""&&(r=Number(t)),typeof r!="number"||!Number.isInteger(r))throw new fe(`Int cannot represent non-integer value: ${ge(t)}`);if(r>ti||r<ri)throw new fe("Int cannot represent non 32-bit signed integer value: "+ge(t));return r},parseValue(e){if(typeof e!="number"||!Number.isInteger(e))throw new fe(`Int cannot represent non-integer value: ${ge(e)}`);if(e>ti||e<ri)throw new fe(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==B.INT)throw new fe(`Int cannot represent non-integer value: ${St(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>ti||t<ri)throw new fe(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),hw=new Kt({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=Br(e);if(typeof t=="boolean")return t?1:0;let r=t;if(typeof t=="string"&&t!==""&&(r=Number(t)),typeof r!="number"||!Number.isFinite(r))throw new fe(`Float cannot represent non numeric value: ${ge(t)}`);return r},parseValue(e){if(typeof e!="number"||!Number.isFinite(e))throw new fe(`Float cannot represent non numeric value: ${ge(e)}`);return e},parseLiteral(e){if(e.kind!==B.FLOAT&&e.kind!==B.INT)throw new fe(`Float cannot represent non numeric value: ${St(e)}`,e);return parseFloat(e.value)}}),Ue=new Kt({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=Br(e);if(typeof t=="string")return t;if(typeof t=="boolean")return t?"true":"false";if(typeof t=="number"&&Number.isFinite(t))return t.toString();throw new fe(`String cannot represent value: ${ge(e)}`)},parseValue(e){if(typeof e!="string")throw new fe(`String cannot represent a non string value: ${ge(e)}`);return e},parseLiteral(e){if(e.kind!==B.STRING)throw new fe(`String cannot represent a non string value: ${St(e)}`,{nodes:e});return e.value}}),ot=new Kt({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=Br(e);if(typeof t=="boolean")return t;if(Number.isFinite(t))return t!==0;throw new fe(`Boolean cannot represent a non boolean value: ${ge(t)}`)},parseValue(e){if(typeof e!="boolean")throw new fe(`Boolean cannot represent a non boolean value: ${ge(e)}`);return e},parseLiteral(e){if(e.kind!==B.BOOLEAN)throw new fe(`Boolean cannot represent a non boolean value: ${St(e)}`,{nodes:e});return e.value}}),su=new Kt({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=Br(e);if(typeof t=="string")return t;if(Number.isInteger(t))return String(t);throw new fe(`ID cannot represent value: ${ge(e)}`)},parseValue(e){if(typeof e=="string")return e;if(typeof e=="number"&&Number.isInteger(e))return e.toString();throw new fe(`ID cannot represent value: ${ge(e)}`)},parseLiteral(e){if(e.kind!==B.STRING&&e.kind!==B.INT)throw new fe("ID cannot represent a non-string and non-integer value: "+St(e),{nodes:e});return e.value}}),ni=Object.freeze([Ue,mw,hw,ot,su]);function yw(e){return ni.some(({name:t})=>e.name===t)}function Br(e){if(Xt(e)){if(typeof e.valueOf=="function"){const t=e.valueOf();if(!Xt(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}function iu(e){return vt(e,qt)}class qt{constructor(t){var r,n,o;this.name=wt(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(r=t.isRepeatable)!==null&&r!==void 0?r:!1,this.deprecationReason=t.deprecationReason,this.extensions=ut(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],Array.isArray(t.locations)||Ve(!1,`@${t.name} locations must be an Array.`);const s=(o=t.args)!==null&&o!==void 0?o:{};Xt(s)&&!Array.isArray(s)||Ve(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=eu(s)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:ru(this.args),isRepeatable:this.isRepeatable,deprecationReason:this.deprecationReason,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const gw=new qt({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[he.FIELD,he.FRAGMENT_SPREAD,he.INLINE_FRAGMENT],args:{if:{type:new ke(ot),description:"Included when true."}}}),vw=new qt({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[he.FIELD,he.FRAGMENT_SPREAD,he.INLINE_FRAGMENT],args:{if:{type:new ke(ot),description:"Skipped when true."}}}),bw="No longer supported",oi=new qt({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[he.FIELD_DEFINITION,he.ARGUMENT_DEFINITION,he.INPUT_FIELD_DEFINITION,he.ENUM_VALUE,he.DIRECTIVE_DEFINITION],args:{reason:{type:Ue,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:bw}}}),au=new qt({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[he.SCALAR],args:{url:{type:new ke(Ue),description:"The URL that specifies the behavior of this scalar."}}}),cu=new qt({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[he.INPUT_OBJECT],args:{}}),vr=Object.freeze([gw,vw,oi,au,cu]);function ww(e){return typeof e=="object"&&typeof e?.[Symbol.iterator]=="function"}function Kr(e,t){if(Ye(t)){const r=Kr(e,t.ofType);return r?.kind===B.NULL?null:r}if(e===null)return{kind:B.NULL};if(e===void 0)return null;if(Et(t)){const r=t.ofType;if(ww(e)){const n=[];for(const o of e){const s=Kr(o,r);s!=null&&n.push(s)}return{kind:B.LIST,values:n}}return Kr(e,r)}if(it(t)){if(!Xt(e))return null;const r=[];for(const n of Object.values(t.getFields())){const o=Kr(e[n.name],n.type);o&&r.push({kind:B.OBJECT_FIELD,name:{kind:B.NAME,value:n.name},value:o})}return{kind:B.OBJECT,fields:r}}if(Wl(t)){const r=t.serialize(e);if(r==null)return null;if(typeof r=="boolean")return{kind:B.BOOLEAN,value:r};if(typeof r=="number"&&Number.isFinite(r)){const n=String(r);return pu.test(n)?{kind:B.INT,value:n}:{kind:B.FLOAT,value:n}}if(typeof r=="string")return dt(t)?{kind:B.ENUM,value:r}:t===su&&pu.test(r)?{kind:B.INT,value:r}:{kind:B.STRING,value:r};throw new TypeError(`Cannot convert value to AST: ${ge(r)}.`)}gt(!1,"Unexpected input type: "+ge(t))}const pu=/^-?(?:0|[1-9][0-9]*)$/,si=new Dt({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:Ue,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new ke(new ct(new ke(kt))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new ke(kt),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:kt,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:kt,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new ke(new ct(new ke(lu))),args:{includeDeprecated:{type:new ke(ot),defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.getDirectives():e.getDirectives().filter(r=>r.deprecationReason==null)}})}),lu=new Dt({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
|
68
|
+
|
|
69
|
+
In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new ke(Ue),resolve:e=>e.name},description:{type:Ue,resolve:e=>e.description},isRepeatable:{type:new ke(ot),resolve:e=>e.isRepeatable},locations:{type:new ke(new ct(new ke(uu))),resolve:e=>e.locations},args:{type:new ke(new ct(new ke(Yo))),args:{includeDeprecated:{type:ot,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(r=>r.deprecationReason==null)}},isDeprecated:{type:new ke(ot),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ue,resolve:e=>e.deprecationReason}})}),uu=new Ur({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:he.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:he.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:he.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:he.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:he.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:he.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:he.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:he.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:he.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:he.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:he.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:he.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:he.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:he.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:he.UNION,description:"Location adjacent to a union definition."},ENUM:{value:he.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:he.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:he.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:he.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."},DIRECTIVE_DEFINITION:{value:he.DIRECTIVE_DEFINITION,description:"Location adjacent to a directive definition."}}}),kt=new Dt({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new ke(mu),resolve(e){if(Bt(e))return Qe.SCALAR;if(Xe(e))return Qe.OBJECT;if(Ze(e))return Qe.INTERFACE;if($t(e))return Qe.UNION;if(dt(e))return Qe.ENUM;if(it(e))return Qe.INPUT_OBJECT;if(Et(e))return Qe.LIST;if(Ye(e))return Qe.NON_NULL;gt(!1,`Unexpected type: "${ge(e)}".`)}},name:{type:Ue,resolve:e=>"name"in e?e.name:void 0},description:{type:Ue,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Ue,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new ct(new ke(du)),args:{includeDeprecated:{type:ot,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Xe(e)||Ze(e)){const r=Object.values(e.getFields());return t?r:r.filter(n=>n.deprecationReason==null)}}},interfaces:{type:new ct(new ke(kt)),resolve(e){if(Xe(e)||Ze(e))return e.getInterfaces()}},possibleTypes:{type:new ct(new ke(kt)),resolve(e,t,r,{schema:n}){if(Hl(e))return n.getPossibleTypes(e)}},enumValues:{type:new ct(new ke(fu)),args:{includeDeprecated:{type:ot,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(dt(e)){const r=e.getValues();return t?r:r.filter(n=>n.deprecationReason==null)}}},inputFields:{type:new ct(new ke(Yo)),args:{includeDeprecated:{type:ot,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(it(e)){const r=Object.values(e.getFields());return t?r:r.filter(n=>n.deprecationReason==null)}}},ofType:{type:kt,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:ot,resolve:e=>{if(it(e))return e.isOneOf}}})}),du=new Dt({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new ke(Ue),resolve:e=>e.name},description:{type:Ue,resolve:e=>e.description},args:{type:new ke(new ct(new ke(Yo))),args:{includeDeprecated:{type:ot,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(r=>r.deprecationReason==null)}},type:{type:new ke(kt),resolve:e=>e.type},isDeprecated:{type:new ke(ot),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ue,resolve:e=>e.deprecationReason}})}),Yo=new Dt({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new ke(Ue),resolve:e=>e.name},description:{type:Ue,resolve:e=>e.description},type:{type:new ke(kt),resolve:e=>e.type},defaultValue:{type:Ue,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:r}=e,n=Kr(r,t);return n?St(n):null}},isDeprecated:{type:new ke(ot),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ue,resolve:e=>e.deprecationReason}})}),fu=new Dt({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new ke(Ue),resolve:e=>e.name},description:{type:Ue,resolve:e=>e.description},isDeprecated:{type:new ke(ot),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ue,resolve:e=>e.deprecationReason}})});var Qe;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(Qe||(Qe={}));const mu=new Ur({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Qe.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Qe.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Qe.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Qe.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Qe.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Qe.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Qe.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Qe.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});new ke(si),new ke(Ue),new ke(Ue);const ii=Object.freeze([si,lu,uu,kt,du,Yo,fu,mu]);function hu(e){return ii.some(({name:t})=>e.name===t)}function $w(e){return vt(e,yu)}function Ew(e){if(!$w(e))throw new Error(`Expected ${ge(e)} to be a GraphQL schema.`);return e}class yu{constructor(t){var r,n;this.__validationErrors=t.assumeValid===!0?[]:void 0,Xt(t)||Ve(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||Ve(!1,`"types" must be Array if provided but got: ${ge(t.types)}.`),!t.directives||Array.isArray(t.directives)||Ve(!1,`"directives" must be Array if provided but got: ${ge(t.directives)}.`),this.description=t.description,this.extensions=ut(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(n=t.directives)!==null&&n!==void 0?n:vr;const o=new Set(t.types);if(t.types!=null)for(const s of t.types)o.delete(s),xt(s,o);this._queryType!=null&&xt(this._queryType,o),this._mutationType!=null&&xt(this._mutationType,o),this._subscriptionType!=null&&xt(this._subscriptionType,o);for(const s of this._directives)if(iu(s))for(const i of s.args)xt(i.type,o);xt(si,o),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const s of o){if(s==null)continue;const i=s.name;if(i||Ve(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[i]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${i}".`);if(this._typeMap[i]=s,Ze(s)){for(const c of s.getInterfaces())if(Ze(c)){let a=this._implementationsMap[c.name];a===void 0&&(a=this._implementationsMap[c.name]={objects:[],interfaces:[]}),a.interfaces.push(s)}}else if(Xe(s)){for(const c of s.getInterfaces())if(Ze(c)){let a=this._implementationsMap[c.name];a===void 0&&(a=this._implementationsMap[c.name]={objects:[],interfaces:[]}),a.objects.push(s)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case lt.QUERY:return this.getQueryType();case lt.MUTATION:return this.getMutationType();case lt.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return $t(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){return this._implementationsMap[t.name]??{objects:[],interfaces:[]}}isSubType(t,r){let n=this._subTypeMap[t.name];if(n===void 0){if(n=Object.create(null),$t(t))for(const o of t.getTypes())n[o.name]=!0;else{const o=this.getImplementations(t);for(const s of o.objects)n[s.name]=!0;for(const s of o.interfaces)n[s.name]=!0}this._subTypeMap[t.name]=n}return n[r.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(r=>r.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}}function xt(e,t){const r=lw(e);if(!t.has(r)){if(t.add(r),$t(r))for(const n of r.getTypes())xt(n,t);else if(Xe(r)||Ze(r)){for(const n of r.getInterfaces())xt(n,t);for(const n of Object.values(r.getFields())){xt(n.type,t);for(const o of n.args)xt(o.type,t)}}else if(it(r))for(const n of Object.values(r.getFields()))xt(n.type,t)}return t}function xw(e){if(Ew(e),e.__validationErrors)return e.__validationErrors;const t=new Iw(e);Tw(t),_w(t),Pw(t);const r=t.getErrors();return e.__validationErrors=r,r}class Iw{constructor(t){this._errors=[],this.schema=t}reportError(t,r){const n=Array.isArray(r)?r.filter(Boolean):r;this._errors.push(new fe(t,{nodes:n}))}getErrors(){return this._errors}}function Tw(e){const t=e.schema,r=t.getQueryType();if(!r)e.reportError("Query root type must be provided.",t.astNode);else if(!Xe(r)){var n;e.reportError(`Query root type must be Object type, it cannot be ${ge(r)}.`,(n=ai(t,lt.QUERY))!==null&&n!==void 0?n:r.astNode)}const o=t.getMutationType();if(o&&!Xe(o)){var s;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${ge(o)}.`,(s=ai(t,lt.MUTATION))!==null&&s!==void 0?s:o.astNode)}const i=t.getSubscriptionType();if(i&&!Xe(i)){var c;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${ge(i)}.`,(c=ai(t,lt.SUBSCRIPTION))!==null&&c!==void 0?c:i.astNode)}}function ai(e,t){var r;return(r=[e.astNode,...e.extensionASTNodes].flatMap(n=>{var o;return(o=n?.operationTypes)!==null&&o!==void 0?o:[]}).find(n=>n.operation===t))===null||r===void 0?void 0:r.type}function _w(e){for(const r of e.schema.getDirectives()){if(!iu(r)){e.reportError(`Expected directive but got: ${ge(r)}.`,r?.astNode);continue}Zt(e,r),r.locations.length===0&&e.reportError(`Directive @${r.name} must include 1 or more locations.`,r.astNode);for(const n of r.args)if(Zt(e,n),Uo(n.type)||e.reportError(`The type of @${r.name}(${n.name}:) must be Input Type but got: ${ge(n.type)}.`,n.astNode),Bo(n)&&n.deprecationReason!=null){var t;e.reportError(`Required argument @${r.name}(${n.name}:) cannot be deprecated.`,[ci(n.astNode),(t=n.astNode)===null||t===void 0?void 0:t.type])}}}function Zt(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function Pw(e){const t=Dw(e),r=e.schema.getTypeMap();for(const n of Object.values(r)){if(!pw(n)){e.reportError(`Expected GraphQL named type but got: ${ge(n)}.`,n.astNode);continue}hu(n)||Zt(e,n),Xe(n)||Ze(n)?(Sw(e,n),kw(e,n)):$t(n)?jw(e,n):dt(n)?Aw(e,n):it(n)&&(Rw(e,n),t(n))}}function Sw(e,t){const r=Object.values(t.getFields());r.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const i of r){if(Zt(e,i),!Yl(i.type)){var n;e.reportError(`The type of ${t.name}.${i.name} must be Output Type but got: ${ge(i.type)}.`,(n=i.astNode)===null||n===void 0?void 0:n.type)}for(const c of i.args){const a=c.name;if(Zt(e,c),!Uo(c.type)){var o;e.reportError(`The type of ${t.name}.${i.name}(${a}:) must be Input Type but got: ${ge(c.type)}.`,(o=c.astNode)===null||o===void 0?void 0:o.type)}if(Bo(c)&&c.deprecationReason!=null){var s;e.reportError(`Required argument ${t.name}.${i.name}(${a}:) cannot be deprecated.`,[ci(c.astNode),(s=c.astNode)===null||s===void 0?void 0:s.type])}}}}function kw(e,t){const r=Object.create(null);for(const n of t.getInterfaces()){if(!Ze(n)){e.reportError(`Type ${ge(t)} must only implement Interface types, it cannot implement ${ge(n)}.`,Gr(t,n));continue}if(t===n){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Gr(t,n));continue}if(r[n.name]){e.reportError(`Type ${t.name} can only implement ${n.name} once.`,Gr(t,n));continue}r[n.name]=!0,Nw(e,t,n),Ow(e,t,n)}}function Ow(e,t,r){const n=t.getFields();for(const a of Object.values(r.getFields())){const p=a.name,l=n[p];if(!l){e.reportError(`Interface field ${r.name}.${p} expected but ${t.name} does not provide it.`,[a.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!Go(e.schema,l.type,a.type)){var o,s;e.reportError(`Interface field ${r.name}.${p} expects type ${ge(a.type)} but ${t.name}.${p} is type ${ge(l.type)}.`,[(o=a.astNode)===null||o===void 0?void 0:o.type,(s=l.astNode)===null||s===void 0?void 0:s.type])}for(const d of a.args){const y=d.name,m=l.args.find(h=>h.name===y);if(!m){e.reportError(`Interface field argument ${r.name}.${p}(${y}:) expected but ${t.name}.${p} does not provide it.`,[d.astNode,l.astNode]);continue}if(!ou(d.type,m.type)){var i,c;e.reportError(`Interface field argument ${r.name}.${p}(${y}:) expects type ${ge(d.type)} but ${t.name}.${p}(${y}:) is type ${ge(m.type)}.`,[(i=d.astNode)===null||i===void 0?void 0:i.type,(c=m.astNode)===null||c===void 0?void 0:c.type])}}for(const d of l.args){const y=d.name;!a.args.find(m=>m.name===y)&&Bo(d)&&e.reportError(`Object field ${t.name}.${p} includes required argument ${y} that is missing from the Interface field ${r.name}.${p}.`,[d.astNode,a.astNode])}}}function Nw(e,t,r){const n=t.getInterfaces();for(const o of r.getInterfaces())n.includes(o)||e.reportError(o===t?`Type ${t.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${t.name} must implement ${o.name} because it is implemented by ${r.name}.`,[...Gr(r,o),...Gr(t,r)])}function jw(e,t){const r=t.getTypes();r.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const n=Object.create(null);for(const o of r){if(n[o.name]){e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,gu(t,o.name));continue}n[o.name]=!0,Xe(o)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${ge(o)}.`,gu(t,String(o)))}}function Aw(e,t){const r=t.getValues();r.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const n of r)Zt(e,n)}function Rw(e,t){const r=Object.values(t.getFields());r.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const s of r){if(Zt(e,s),!Uo(s.type)){var n;e.reportError(`The type of ${t.name}.${s.name} must be Input Type but got: ${ge(s.type)}.`,(n=s.astNode)===null||n===void 0?void 0:n.type)}if(fw(s)&&s.deprecationReason!=null){var o;e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[ci(s.astNode),(o=s.astNode)===null||o===void 0?void 0:o.type])}t.isOneOf&&Cw(t,s,e)}}function Cw(e,t,r){if(Ye(t.type)){var n;r.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(n=t.astNode)===null||n===void 0?void 0:n.type)}t.defaultValue!==void 0&&r.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function Dw(e){const t=Object.create(null),r=[],n=Object.create(null);return o;function o(s){if(t[s.name])return;t[s.name]=!0,n[s.name]=r.length;const i=Object.values(s.getFields());for(const c of i)if(Ye(c.type)&&it(c.type.ofType)){const a=c.type.ofType,p=n[a.name];if(r.push(c),p===void 0)o(a);else{const l=r.slice(p),d=l.map(y=>y.name).join(".");e.reportError(`Cannot reference Input Object "${a.name}" within itself through a series of non-null fields: "${d}".`,l.map(y=>y.astNode))}r.pop()}n[s.name]=void 0}}function Gr(e,t){const{astNode:r,extensionASTNodes:n}=e;return(r!=null?[r,...n]:n).flatMap(o=>{var s;return(s=o.interfaces)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===t.name)}function gu(e,t){const{astNode:r,extensionASTNodes:n}=e;return(r!=null?[r,...n]:n).flatMap(o=>{var s;return(s=o.types)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===t)}function ci(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(r=>r.name.value===oi.name)}function qw(e){return e.kind===B.SCHEMA_DEFINITION||Yr(e)||e.kind===B.DIRECTIVE_DEFINITION}function Yr(e){return e.kind===B.SCALAR_TYPE_DEFINITION||e.kind===B.OBJECT_TYPE_DEFINITION||e.kind===B.INTERFACE_TYPE_DEFINITION||e.kind===B.UNION_TYPE_DEFINITION||e.kind===B.ENUM_TYPE_DEFINITION||e.kind===B.INPUT_OBJECT_TYPE_DEFINITION}function Lw(e){return e.kind===B.SCHEMA_EXTENSION||e.kind===B.DIRECTIVE_EXTENSION||pi(e)}function pi(e){return e.kind===B.SCALAR_TYPE_EXTENSION||e.kind===B.OBJECT_TYPE_EXTENSION||e.kind===B.INTERFACE_TYPE_EXTENSION||e.kind===B.UNION_TYPE_EXTENSION||e.kind===B.ENUM_TYPE_EXTENSION||e.kind===B.INPUT_OBJECT_TYPE_EXTENSION}function Mw(e){const t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():vr;for(const i of n)t[i.name]=i.args.map(c=>c.name);const o=e.getDocument().definitions;for(const i of o)if(i.kind===B.DIRECTIVE_DEFINITION){var s;const c=(s=i.arguments)!==null&&s!==void 0?s:[];t[i.name.value]=c.map(a=>a.name.value)}return{Directive(i){const c=i.name.value,a=t[c];if(i.arguments&&a)for(const p of i.arguments){const l=p.name.value;if(!a.includes(l)){const d=zo(l,a);e.reportError(new fe(`Unknown argument "${l}" on directive "@${c}".`+Mo(d),{nodes:p}))}}return!1}}}function Vw(e){const t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():vr;for(const s of n)t[s.name]=s.locations;const o=e.getDocument().definitions;for(const s of o)s.kind===B.DIRECTIVE_DEFINITION&&(t[s.name.value]=s.locations.map(i=>i.value));return{Directive(s,i,c,a,p){const l=s.name.value,d=t[l];if(!d){e.reportError(new fe(`Unknown directive "@${l}".`,{nodes:s}));return}const y=zw(p);y&&!d.includes(y)&&e.reportError(new fe(`Directive "@${l}" may not be used on ${y}.`,{nodes:s}))}}}function zw(e){const t=e[e.length-1];switch("kind"in t||gt(!1),t.kind){case B.OPERATION_DEFINITION:return Fw(t.operation);case B.FIELD:return he.FIELD;case B.FRAGMENT_SPREAD:return he.FRAGMENT_SPREAD;case B.INLINE_FRAGMENT:return he.INLINE_FRAGMENT;case B.FRAGMENT_DEFINITION:return he.FRAGMENT_DEFINITION;case B.VARIABLE_DEFINITION:return he.VARIABLE_DEFINITION;case B.SCHEMA_DEFINITION:case B.SCHEMA_EXTENSION:return he.SCHEMA;case B.SCALAR_TYPE_DEFINITION:case B.SCALAR_TYPE_EXTENSION:return he.SCALAR;case B.OBJECT_TYPE_DEFINITION:case B.OBJECT_TYPE_EXTENSION:return he.OBJECT;case B.FIELD_DEFINITION:return he.FIELD_DEFINITION;case B.INTERFACE_TYPE_DEFINITION:case B.INTERFACE_TYPE_EXTENSION:return he.INTERFACE;case B.UNION_TYPE_DEFINITION:case B.UNION_TYPE_EXTENSION:return he.UNION;case B.ENUM_TYPE_DEFINITION:case B.ENUM_TYPE_EXTENSION:return he.ENUM;case B.ENUM_VALUE_DEFINITION:return he.ENUM_VALUE;case B.INPUT_OBJECT_TYPE_DEFINITION:case B.INPUT_OBJECT_TYPE_EXTENSION:return he.INPUT_OBJECT;case B.INPUT_VALUE_DEFINITION:{const r=e[e.length-3];return"kind"in r||gt(!1),r.kind===B.INPUT_OBJECT_TYPE_DEFINITION?he.INPUT_FIELD_DEFINITION:he.ARGUMENT_DEFINITION}case B.DIRECTIVE_DEFINITION:case B.DIRECTIVE_EXTENSION:return he.DIRECTIVE_DEFINITION;default:gt(!1,"Unexpected kind: "+ge(t.kind))}}function Fw(e){switch(e){case lt.QUERY:return he.QUERY;case lt.MUTATION:return he.MUTATION;case lt.SUBSCRIPTION:return he.SUBSCRIPTION}}function Uw(e){const t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);for(const s of e.getDocument().definitions)Yr(s)&&(n[s.name.value]=!0);const o=[...Object.keys(r),...Object.keys(n)];return{NamedType(s,i,c,a,p){const l=s.name.value;if(!r[l]&&!n[l]){var d;const y=(d=p[2])!==null&&d!==void 0?d:c,m=y!=null&&Bw(y);if(m&&vu.includes(l))return;const h=zo(l,m?vu.concat(o):o);e.reportError(new fe(`Unknown type "${l}".`+Mo(h),{nodes:s}))}}}}const vu=[...ni,...ii].map(e=>e.name);function Bw(e){return"kind"in e&&(qw(e)||Lw(e))}function Kw(e){var t,r,n;const o=e.getSchema(),s=(t=(r=(n=o?.astNode)!==null&&n!==void 0?n:o?.getQueryType())!==null&&r!==void 0?r:o?.getMutationType())!==null&&t!==void 0?t:o?.getSubscriptionType();let i=0;return{SchemaDefinition(c){if(s){e.reportError(new fe("Cannot define a new schema within a schema extension.",{nodes:c}));return}i>0&&e.reportError(new fe("Must provide only one schema definition.",{nodes:c})),++i}}}function Gw(e){const t=e.getSchema(),r=Object.create(null);for(const o of e.getDocument().definitions)Yr(o)&&(r[o.name.value]=o);return{ScalarTypeExtension:n,ObjectTypeExtension:n,InterfaceTypeExtension:n,UnionTypeExtension:n,EnumTypeExtension:n,InputObjectTypeExtension:n};function n(o){const s=o.name.value,i=r[s],c=t?.getType(s);let a;if(i?a=Yw[i.kind]:c&&(a=Ww(c)),a){if(a!==o.kind){const p=Hw(o.kind);e.reportError(new fe(`Cannot extend non-${p} type "${s}".`,{nodes:i?[i,o]:o}))}}else{const p=Object.keys({...r,...t?.getTypeMap()}),l=zo(s,p);e.reportError(new fe(`Cannot extend type "${s}" because it is not defined.`+Mo(l),{nodes:o.name}))}}}const Yw={[B.SCALAR_TYPE_DEFINITION]:B.SCALAR_TYPE_EXTENSION,[B.OBJECT_TYPE_DEFINITION]:B.OBJECT_TYPE_EXTENSION,[B.INTERFACE_TYPE_DEFINITION]:B.INTERFACE_TYPE_EXTENSION,[B.UNION_TYPE_DEFINITION]:B.UNION_TYPE_EXTENSION,[B.ENUM_TYPE_DEFINITION]:B.ENUM_TYPE_EXTENSION,[B.INPUT_OBJECT_TYPE_DEFINITION]:B.INPUT_OBJECT_TYPE_EXTENSION};function Ww(e){if(Bt(e))return B.SCALAR_TYPE_EXTENSION;if(Xe(e))return B.OBJECT_TYPE_EXTENSION;if(Ze(e))return B.INTERFACE_TYPE_EXTENSION;if($t(e))return B.UNION_TYPE_EXTENSION;if(dt(e))return B.ENUM_TYPE_EXTENSION;if(it(e))return B.INPUT_OBJECT_TYPE_EXTENSION;gt(!1,"Unexpected type: "+ge(e))}function Hw(e){switch(e){case B.SCALAR_TYPE_EXTENSION:return"scalar";case B.OBJECT_TYPE_EXTENSION:return"object";case B.INTERFACE_TYPE_EXTENSION:return"interface";case B.UNION_TYPE_EXTENSION:return"union";case B.ENUM_TYPE_EXTENSION:return"enum";case B.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:gt(!1,"Unexpected kind: "+ge(e))}}function Qw(e){var t;const r=Object.create(null),n=e.getSchema(),o=(t=n?.getDirectives())!==null&&t!==void 0?t:vr;for(const c of o)r[c.name]=yr(c.args.filter(Bo),a=>a.name);const s=e.getDocument().definitions;for(const c of s)if(c.kind===B.DIRECTIVE_DEFINITION){var i;const a=(i=c.arguments)!==null&&i!==void 0?i:[];r[c.name.value]=yr(a.filter(Jw),p=>p.name.value)}return{Directive:{leave(c){const a=c.name.value,p=r[a];if(p){var l;const d=(l=c.arguments)!==null&&l!==void 0?l:[],y=new Set(d.map(m=>m.name.value));for(const[m,h]of Object.entries(p))if(!y.has(m)){const $=Qs(h.type)?ge(h.type):St(h.type);e.reportError(new fe(`Directive "@${a}" argument "${m}" of type "${$}" is required, but it was not provided.`,{nodes:c}))}}}}}}function Jw(e){return e.type.kind===B.NON_NULL_TYPE&&e.defaultValue==null}function er(e,t,r){if(e&&e.kind!==B.VARIABLE){if(Ye(t))return e.kind===B.NULL?void 0:er(e,t.ofType,r);if(e.kind===B.NULL)return null;if(Et(t)){const n=t.ofType;if(e.kind===B.LIST){const s=[];for(const i of e.values)if(bu(i,r)){if(Ye(n))return;s.push(null)}else{const c=er(i,n,r);if(c===void 0)return;s.push(c)}return s}const o=er(e,n,r);return o===void 0?void 0:[o]}if(it(t)){if(e.kind!==B.OBJECT)return;const n=Object.create(null),o=yr(e.fields,s=>s.name.value);for(const s of Object.values(t.getFields())){const i=o[s.name];if(!i||bu(i.value,r)){if(s.defaultValue!==void 0)n[s.name]=s.defaultValue;else if(Ye(s.type))return;continue}const c=er(i.value,s.type,r);if(c===void 0)return;n[s.name]=c}if(t.isOneOf){const s=Object.keys(n);if(s.length!==1||n[s[0]]===null)return}return n}if(Wl(t)){let n;try{n=t.parseLiteral(e,r)}catch{return}return n===void 0?void 0:n}gt(!1,"Unexpected input type: "+ge(t))}}function bu(e,t){return e.kind===B.VARIABLE&&t==null}function Xw(e,t,r){var n;const o=Object.create(null),s=(n=t.arguments)!==null&&n!==void 0?n:[],i=yr(s,c=>c.name.value);for(const c of e.args){const a=c.name,p=c.type,l=i[a];if(!l){if(c.defaultValue!==void 0)o[a]=c.defaultValue;else if(Ye(p))throw new fe(`Argument "${a}" of required type "${ge(p)}" was not provided.`,{nodes:t});continue}const d=l.value;let y=d.kind===B.NULL;if(d.kind===B.VARIABLE){const h=d.name.value;{if(c.defaultValue!==void 0)o[a]=c.defaultValue;else if(Ye(p))throw new fe(`Argument "${a}" of required type "${ge(p)}" was provided the variable "$${h}" which was not provided a runtime value.`,{nodes:d});continue}}if(y&&Ye(p))throw new fe(`Argument "${a}" of non-null type "${ge(p)}" must not be null.`,{nodes:d});const m=er(d,p,r);if(m===void 0)throw new fe(`Argument "${a}" has invalid value ${St(d)}.`,{nodes:d});o[a]=m}return{...o}}function li(e,t,r){var n;const o=(n=t.directives)===null||n===void 0?void 0:n.find(s=>s.name.value===e.name);if(o)return Xw(e,o,r)}function wu(e,t){const r=new Map;for(const n of e){const o=t(n),s=r.get(o);s===void 0?r.set(o,[n]):s.push(n)}return r}function Zw(e){return{DirectiveDefinition(n){var o;const s=(o=n.arguments)!==null&&o!==void 0?o:[];return r(`@${n.name.value}`,s)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(n){var o;const s=n.name.value,i=(o=n.fields)!==null&&o!==void 0?o:[];for(const a of i){var c;const p=a.name.value,l=(c=a.arguments)!==null&&c!==void 0?c:[];r(`${s}.${p}`,l)}return!1}function r(n,o){const s=wu(o,i=>i.name.value);for(const[i,c]of s)c.length>1&&e.reportError(new fe(`Argument "${n}(${i}:)" can only be defined once.`,{nodes:c.map(a=>a.name)}));return!1}}function e$(e){return{Field:t,Directive:t};function t(r){var n;const o=(n=r.arguments)!==null&&n!==void 0?n:[],s=wu(o,i=>i.name.value);for(const[i,c]of s)c.length>1&&e.reportError(new fe(`There can be only one argument named "${i}".`,{nodes:c.map(a=>a.name)}))}}function t$(e){const t=Object.create(null),r=e.getSchema();return{DirectiveDefinition(n){const o=n.name.value;if(r!=null&&r.getDirective(o)){e.reportError(new fe(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:n.name}));return}return t[o]?e.reportError(new fe(`There can be only one directive named "@${o}".`,{nodes:[t[o],n.name]})):t[o]=n.name,!1}}}function r$(e){const t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():vr;for(const a of n)t[a.name]=!a.isRepeatable;const o=e.getDocument().definitions;for(const a of o)a.kind===B.DIRECTIVE_DEFINITION&&(t[a.name.value]=!a.repeatable);const s=Object.create(null),i=Object.create(null),c=Object.create(null);return{enter(a){if(!("directives"in a)||!a.directives)return;let p;if(a.kind===B.SCHEMA_DEFINITION||a.kind===B.SCHEMA_EXTENSION)p=s;else if(Yr(a)||pi(a)){const l=a.name.value;p=i[l],p===void 0&&(i[l]=p=Object.create(null))}else if(a.kind===B.DIRECTIVE_DEFINITION||a.kind===B.DIRECTIVE_EXTENSION){const l=a.name.value;p=c[l],p===void 0&&(c[l]=p=Object.create(null))}else p=Object.create(null);for(const l of a.directives){const d=l.name.value;t[d]&&(p[d]?e.reportError(new fe(`The directive "@${d}" can only be used once at this location.`,{nodes:[p[d],l]})):p[d]=l)}}}}function n$(e){const t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{EnumTypeDefinition:o,EnumTypeExtension:o};function o(s){var i;const c=s.name.value;n[c]||(n[c]=Object.create(null));const a=(i=s.values)!==null&&i!==void 0?i:[],p=n[c];for(const l of a){const d=l.name.value,y=r[c];dt(y)&&y.getValue(d)?e.reportError(new fe(`Enum value "${c}.${d}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:l.name})):p[d]?e.reportError(new fe(`Enum value "${c}.${d}" can only be defined once.`,{nodes:[p[d],l.name]})):p[d]=l.name}return!1}}function o$(e){const t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{InputObjectTypeDefinition:o,InputObjectTypeExtension:o,InterfaceTypeDefinition:o,InterfaceTypeExtension:o,ObjectTypeDefinition:o,ObjectTypeExtension:o};function o(s){var i;const c=s.name.value;n[c]||(n[c]=Object.create(null));const a=(i=s.fields)!==null&&i!==void 0?i:[],p=n[c];for(const l of a){const d=l.name.value;s$(r[c],d)?e.reportError(new fe(`Field "${c}.${d}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:l.name})):p[d]?e.reportError(new fe(`Field "${c}.${d}" can only be defined once.`,{nodes:[p[d],l.name]})):p[d]=l.name}return!1}}function s$(e,t){return Xe(e)||Ze(e)||it(e)?e.getFields()[t]!=null:!1}function i$(e){const t=[];let r=Object.create(null);return{ObjectValue:{enter(){t.push(r),r=Object.create(null)},leave(){const n=t.pop();n||gt(!1),r=n}},ObjectField(n){const o=n.name.value;r[o]?e.reportError(new fe(`There can be only one input field named "${o}".`,{nodes:[r[o],n.name]})):r[o]=n.name}}}function a$(e){const t=e.getSchema(),r=Object.create(null),n=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:o,SchemaExtension:o};function o(s){var i;const c=(i=s.operationTypes)!==null&&i!==void 0?i:[];for(const a of c){const p=a.operation,l=r[p];n[p]?e.reportError(new fe(`Type for ${p} already defined in the schema. It cannot be redefined.`,{nodes:a})):l?e.reportError(new fe(`There can be only one ${p} type in schema.`,{nodes:[l,a]})):r[p]=a}return!1}}function c$(e){const t=Object.create(null),r=e.getSchema();return{ScalarTypeDefinition:n,ObjectTypeDefinition:n,InterfaceTypeDefinition:n,UnionTypeDefinition:n,EnumTypeDefinition:n,InputObjectTypeDefinition:n};function n(o){const s=o.name.value;if(r!=null&&r.getType(s)){e.reportError(new fe(`Type "${s}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:o.name}));return}return t[s]?e.reportError(new fe(`There can be only one type named "${s}".`,{nodes:[t[s],o.name]})):t[s]=o.name,!1}}const p$=Object.freeze([Kw,a$,c$,n$,o$,Zw,t$,Uw,Vw,r$,Gw,Mw,e$,i$,Qw]);class l${constructor(t,r){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=r}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let r;if(this._fragments)r=this._fragments;else{r=Object.create(null);for(const n of this.getDocument().definitions)n.kind===B.FRAGMENT_DEFINITION&&(r[n.name.value]=n);this._fragments=r}return r[t]}getFragmentSpreads(t){let r=this._fragmentSpreads.get(t);if(!r){r=[];const n=[t];let o;for(;o=n.pop();)for(const s of o.selections)s.kind===B.FRAGMENT_SPREAD?r.push(s):s.selectionSet&&n.push(s.selectionSet);this._fragmentSpreads.set(t,r)}return r}getRecursivelyReferencedFragments(t){let r=this._recursivelyReferencedFragments.get(t);if(!r){r=[];const n=Object.create(null),o=[t.selectionSet];let s;for(;s=o.pop();)for(const i of this.getFragmentSpreads(s)){const c=i.name.value;if(n[c]!==!0){n[c]=!0;const a=this.getFragment(c);a&&(r.push(a),o.push(a.selectionSet))}}this._recursivelyReferencedFragments.set(t,r)}return r}}class u$ extends l${constructor(t,r,n){super(t,n),this._schema=r}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}Pt(Us,e=>e.filter(t=>t!=="description"));function d$(e,t,r=p$){const n=[],o=new u$(e,t,i=>{n.push(i)}),s=r.map(i=>i(o));return Ys(e,Kl(s)),n}function f$(e){const t=d$(e);if(t.length!==0)throw new Error(t.map(r=>r.message).join(`
|
|
70
|
+
|
|
71
|
+
`))}function m$(e,t,r){var n,o,s,i;const c=[],a=Object.create(null),p=Object.create(null),l=[];let d;const y=[];for(const _ of t.definitions)if(_.kind===B.SCHEMA_DEFINITION)d=_;else if(_.kind===B.SCHEMA_EXTENSION)y.push(_);else if(Yr(_))c.push(_);else if(pi(_)){const L=_.name.value,V=a[L];a[L]=V?V.concat([_]):[_]}else if(_.kind===B.DIRECTIVE_DEFINITION)l.push(_);else if(_.kind===B.DIRECTIVE_EXTENSION){const L=_.name.value,V=p[L];p[L]=V?V.concat([_]):[_]}if(Object.keys(a).length===0&&c.length===0&&Object.keys(p).length===0&&l.length===0&&y.length===0&&d==null)return e;const m=Object.create(null);for(const _ of e.types)m[_.name]=g(_);for(const _ of c){var h;const L=_.name.value;m[L]=(h=$u[L])!==null&&h!==void 0?h:S(_)}const $=Object.create(null);for(const _ of e.directives)$[_.name]=me(_);const b={query:e.query&&f(e.query),mutation:e.mutation&&f(e.mutation),subscription:e.subscription&&f(e.subscription),...d&&z([d]),...z(y)},E=Object.values($);return{description:(n=d)===null||n===void 0||(o=n.description)===null||o===void 0?void 0:o.value,...b,types:Object.values(m),directives:[...E.map(I),...l.map(ve)],extensions:Object.create(null),astNode:(s=d)!==null&&s!==void 0?s:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(y),assumeValid:(i=r?.assumeValid)!==null&&i!==void 0?i:!1};function w(_){return Et(_)?new ct(w(_.ofType)):Ye(_)?new ke(w(_.ofType)):f(_)}function f(_){return m[_.name]}function I(_){const L=_.toConfig();return new qt({...L,args:Pt(L.args,O)})}function g(_){if(hu(_)||yw(_))return _;if(Bt(_))return N(_);if(Xe(_))return K(_);if(Ze(_))return R(_);if($t(_))return C(_);if(dt(_))return x(_);if(it(_))return v(_);gt(!1,"Unexpected type: "+ge(_))}function v(_){var L;const V=_.toConfig(),J=(L=a[V.name])!==null&&L!==void 0?L:[];return new ei({...V,fields:()=>({...Pt(V.fields,ie=>({...ie,type:w(ie.type)})),...A(J)}),extensionASTNodes:V.extensionASTNodes.concat(J)})}function x(_){var L;const V=_.toConfig(),J=(L=a[_.name])!==null&&L!==void 0?L:[];return new Ur({...V,values:{...V.values,...H(J)},extensionASTNodes:V.extensionASTNodes.concat(J)})}function N(_){var L;const V=_.toConfig(),J=(L=a[V.name])!==null&&L!==void 0?L:[];let ie=V.specifiedByURL;for(const j of J){var k;ie=(k=Eu(j))!==null&&k!==void 0?k:ie}return new Kt({...V,specifiedByURL:ie,extensionASTNodes:V.extensionASTNodes.concat(J)})}function K(_){var L;const V=_.toConfig(),J=(L=a[V.name])!==null&&L!==void 0?L:[];return new Dt({...V,interfaces:()=>[..._.getInterfaces().map(f),...D(J)],fields:()=>({...Pt(V.fields,F),...je(J)}),extensionASTNodes:V.extensionASTNodes.concat(J)})}function R(_){var L;const V=_.toConfig(),J=(L=a[V.name])!==null&&L!==void 0?L:[];return new Xs({...V,interfaces:()=>[..._.getInterfaces().map(f),...D(J)],fields:()=>({...Pt(V.fields,F),...je(J)}),extensionASTNodes:V.extensionASTNodes.concat(J)})}function C(_){var L;const V=_.toConfig(),J=(L=a[V.name])!==null&&L!==void 0?L:[];return new Zs({...V,types:()=>[..._.getTypes().map(f),...T(J)],extensionASTNodes:V.extensionASTNodes.concat(J)})}function F(_){return{..._,type:w(_.type),args:_.args&&Pt(_.args,O)}}function O(_){return{..._,type:w(_.type)}}function z(_){const L={};for(const J of _){var V;const ie=(V=J.operationTypes)!==null&&V!==void 0?V:[];for(const k of ie)L[k.operation]=we(k.type)}return L}function me(_){var L,V;const J=_.toConfig(),ie=(L=p[J.name])!==null&&L!==void 0?L:[],k=(V=J.deprecationReason)!==null&&V!==void 0?V:ie.map(j=>tr(j)).find(j=>j!=null);return new qt({...J,deprecationReason:k,extensionASTNodes:J.extensionASTNodes.concat(ie)})}function we(_){var L;const V=_.name.value,J=(L=$u[V])!==null&&L!==void 0?L:m[V];if(J===void 0)throw new Error(`Unknown type: "${V}".`);return J}function Te(_){return _.kind===B.LIST_TYPE?new ct(Te(_.type)):_.kind===B.NON_NULL_TYPE?new ke(Te(_.type)):we(_)}function ve(_){var L,V,J;const ie=(L=p[_.name.value])!==null&&L!==void 0?L:[],k=(V=tr(_))!==null&&V!==void 0?V:ie.map(j=>tr(j)).find(j=>j!=null);return new qt({name:_.name.value,description:(J=_.description)===null||J===void 0?void 0:J.value,locations:_.locations.map(({value:j})=>j),isRepeatable:_.repeatable,args:q(_.arguments),deprecationReason:k,astNode:_,extensionASTNodes:ie})}function je(_){const L=Object.create(null);for(const ie of _){var V;const k=(V=ie.fields)!==null&&V!==void 0?V:[];for(const j of k){var J;L[j.name.value]={type:Te(j.type),description:(J=j.description)===null||J===void 0?void 0:J.value,args:q(j.arguments),deprecationReason:tr(j),astNode:j}}}return L}function q(_){const L=_??[],V=Object.create(null);for(const ie of L){var J;const k=Te(ie.type);V[ie.name.value]={type:k,description:(J=ie.description)===null||J===void 0?void 0:J.value,defaultValue:er(ie.defaultValue,k),deprecationReason:tr(ie),astNode:ie}}return V}function A(_){const L=Object.create(null);for(const ie of _){var V;const k=(V=ie.fields)!==null&&V!==void 0?V:[];for(const j of k){var J;const Y=Te(j.type);L[j.name.value]={type:Y,description:(J=j.description)===null||J===void 0?void 0:J.value,defaultValue:er(j.defaultValue,Y),deprecationReason:tr(j),astNode:j}}}return L}function H(_){const L=Object.create(null);for(const ie of _){var V;const k=(V=ie.values)!==null&&V!==void 0?V:[];for(const j of k){var J;L[j.name.value]={description:(J=j.description)===null||J===void 0?void 0:J.value,deprecationReason:tr(j),astNode:j}}}return L}function D(_){return _.flatMap(L=>{var V,J;return(V=(J=L.interfaces)===null||J===void 0?void 0:J.map(we))!==null&&V!==void 0?V:[]})}function T(_){return _.flatMap(L=>{var V,J;return(V=(J=L.types)===null||J===void 0?void 0:J.map(we))!==null&&V!==void 0?V:[]})}function S(_){var L;const V=_.name.value,J=(L=a[V])!==null&&L!==void 0?L:[];switch(_.kind){case B.OBJECT_TYPE_DEFINITION:{var ie;const ye=[_,...J];return new Dt({name:V,description:(ie=_.description)===null||ie===void 0?void 0:ie.value,interfaces:()=>D(ye),fields:()=>je(ye),astNode:_,extensionASTNodes:J})}case B.INTERFACE_TYPE_DEFINITION:{var k;const ye=[_,...J];return new Xs({name:V,description:(k=_.description)===null||k===void 0?void 0:k.value,interfaces:()=>D(ye),fields:()=>je(ye),astNode:_,extensionASTNodes:J})}case B.ENUM_TYPE_DEFINITION:{var j;const ye=[_,...J];return new Ur({name:V,description:(j=_.description)===null||j===void 0?void 0:j.value,values:H(ye),astNode:_,extensionASTNodes:J})}case B.UNION_TYPE_DEFINITION:{var Y;const ye=[_,...J];return new Zs({name:V,description:(Y=_.description)===null||Y===void 0?void 0:Y.value,types:()=>T(ye),astNode:_,extensionASTNodes:J})}case B.SCALAR_TYPE_DEFINITION:{var te;return new Kt({name:V,description:(te=_.description)===null||te===void 0?void 0:te.value,specifiedByURL:Eu(_),astNode:_,extensionASTNodes:J})}case B.INPUT_OBJECT_TYPE_DEFINITION:{var ce;const ye=[_,...J];return new ei({name:V,description:(ce=_.description)===null||ce===void 0?void 0:ce.value,fields:()=>A(ye),astNode:_,extensionASTNodes:J,isOneOf:h$(_)})}}}}const $u=yr([...ni,...ii],e=>e.name);function tr(e){return li(oi,e)?.reason}function Eu(e){return li(au,e)?.url}function h$(e){return!!li(cu,e)}function y$(e,t){e!=null&&e.kind===B.DOCUMENT||Ve(!1,"Must provide valid Document AST."),t?.assumeValid!==!0&&t?.assumeValidSDL!==!0&&f$(e);const r=m$({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(r.astNode==null)for(const o of r.types)switch(o.name){case"Query":r.query=o;break;case"Mutation":r.mutation=o;break;case"Subscription":r.subscription=o;break}const n=[...r.directives,...vr.filter(o=>r.directives.every(s=>s.name!==o.name))];return new yu({...r,directives:n})}const g$=()=>({Document:{enter:(e,t)=>{let r;try{r=y$(e,{assumeValidSDL:!1})}catch(n){v$(n,t);return}for(const n of xw(r))xu(n,t)}}});function v$(e,t){if(e instanceof fe)xu(e,t);else if(e instanceof Error)t.report({message:e.message});else throw e}function xu(e,t){const r=e.locations?.[0];t.report({message:e.message,node:e.nodes?.[0],loc:r?{start:{line:r.line,col:r.column}}:void 0})}const b$=()=>{const 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}},w$={struct:g$,assertions:P0,"no-unused-types":R0,"type-description":b$},ui=()=>({Info(e,{report:t}){e.license||t({message:Po("Info","license"),location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/info-license"})}}),Iu=()=>({Paths(e,{report:t,location:r}){const n=[];for(const o of Object.keys(e)){const s=n.find(i=>$$(i,o));s&&t({message:`Paths should resolve unambiguously. Found two ambiguous paths: \`${s}\` and \`${o}\`.`,location:r.child([o]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-ambiguous-paths"}),n.push(o)}}});function $$(e,t){const r=e.split("/"),n=t.split("/");if(r.length!==n.length)return!1;let o=0,s=0,i=!0;for(let c=0;c<r.length;c++){const a=r[c].match(/^{.+?}$/),p=n[c].match(/^{.+?}$/);if(a||p){a&&o++,p&&s++;continue}else r[c]!==n[c]&&(i=!1)}return i&&o===s}function Tu(e){return e.startsWith("{")&&e.endsWith("}")}function E$(e){const t=e.split(/(?:[-._])|([A-Z][a-z]+)/).filter(tn).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])}const x$=["get","head","post","put","patch","delete","options","trace"],_u=({splitIntoWords:e,excludedPaths:t})=>({PathItem(r,{key:n,report:o,location:s}){const i=n.toString();if(!i.startsWith("/")||t?.some(a=>i===a))return;const c=i.split("/");for(const a of c){if(!a||Tu(a))continue;const p=l=>e?E$(a).has(l):a.toLocaleLowerCase().includes(l);for(const l of x$)p(l)&&o({message:`path \`${i}\` should not contain http verb ${l}`,location:s.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-http-verbs-in-paths"})}}}),Pu=()=>({Paths(e,{report:t,location:r}){const n=new Map;for(const o of Object.keys(e)){const s=o.replace(/{.+?}/g,"{VARIABLE}"),i=n.get(s);i?t({message:`The path already exists which differs only by path parameter name(s): \`${i}\` and \`${o}\`.`,location:r.child([o]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-identical-paths"}):n.set(s,o)}}});var di={exports:{}},Wo={},Ho={},Su;function I$(){if(Su)return Ho;Su=1,Object.defineProperty(Ho,"__esModule",{value:!0});const e=$e(),t=e.operators,r={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:t.LTE,fail:t.GT},{okStr:"<",ok:t.LT,fail:t.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:t.GTE,fail:t.LT},{okStr:">",ok:t.GT,fail:t.LTE}]}},n={message:i=>(0,e.str)`must be ${s(i).okStr} ${i.schemaCode}`,params:i=>(0,e._)`{comparison: ${s(i).okStr}, limit: ${i.schemaCode}}`},o={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(i){const{data:c,schemaCode:a}=i;i.fail$data((0,e._)`${c} ${s(i).fail} ${a} || isNaN(${c})`)}};function s(i){var c;const a=i.keyword,p=!((c=i.parentSchema)===null||c===void 0)&&c[r[a].exclusive]?1:0;return r[a].ops[p]}return Ho.default=o,Ho}var Qo={},ku;function T$(){if(ku)return Qo;ku=1,Object.defineProperty(Qo,"__esModule",{value:!0});const e={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},t={keyword:Object.keys(e),type:"number",schemaType:"boolean",code({keyword:r,parentSchema:n}){const o=e[r];if(n[o]===void 0)throw new Error(`${r} can only be used with ${o}`)}};return Qo.default=t,Qo}var Ou;function _$(){if(Ou)return Wo;Ou=1,Object.defineProperty(Wo,"__esModule",{value:!0});const e=Nn(),t=Os(),r=Mp(),n=Ns(),o=Ss(),s=I$(),i=T$(),c=["title","description","default"],a=["$schema","id","$defs",{keyword:"$comment"},"definitions",e.default],p=[...o.default.slice(1),s.default,i.default],l=[a,p,(0,t.default)(),n.default,c,r.default];return Wo.default=l,Wo}const P$="http://json-schema.org/draft-04/schema#",S$="http://json-schema.org/draft-04/schema#",k$="Core schema meta-schema",O$={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}},N$="object",j$={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:"#"}},A$={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},R$={id:P$,$schema:S$,description:k$,definitions:O$,type:N$,properties:j$,dependencies:A$,default:{}};var Nu;function C$(){return Nu||(Nu=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=_s(),n=_$(),o=js(),s=R$,i=["/properties"],c="http://json-schema.org/draft-04/schema";class a extends r.default{constructor(h={}){super({...h,schemaId:"id",dynamicRef:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(h=>this.addVocabulary(h)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const h=this.opts.$data?this.$dataMetaSchema(s,i):s;this.addMetaSchema(h,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=a,e.exports=t=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var p=sr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return p.KeywordCxt}});var l=$e();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var d=Nr();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var y=ir();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return y.default}})})(di,di.exports)),di.exports}var D$=C$();const q$=xr(D$);var fi={exports:{}},ju={},Au;function L$(){return Au||(Au=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(C,F){return{validate:C,compare:F}}e.fullFormats={date:t(s,i),time:t(a(!0),p),"date-time":t(y(!0),m),"iso-time":t(a(),l),"iso-date-time":t(y(),h),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:E,"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:R,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:f,int32:{type:"number",validate:v},int64:{type:"number",validate:x},float:{type:"number",validate:N},double:{type:"number",validate:N},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),"date-time":t(/^\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,m),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"iso-date-time":t(/^\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},e.formatNames=Object.keys(e.fullFormats);function r(C){return C%4===0&&(C%100!==0||C%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(C){const F=n.exec(C);if(!F)return!1;const O=+F[1],z=+F[2],me=+F[3];return z>=1&&z<=12&&me>=1&&me<=(z===2&&r(O)?29:o[z])}function i(C,F){if(C&&F)return C>F?1:C<F?-1:0}const c=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function a(C){return function(F){const O=c.exec(F);if(!O)return!1;const z=+O[1],me=+O[2],we=+O[3],Te=O[4],ve=O[5]==="-"?-1:1,je=+(O[6]||0),q=+(O[7]||0);if(je>23||q>59||C&&!Te)return!1;if(z<=23&&me<=59&&we<60)return!0;const A=me-q*ve,H=z-je*ve-(A<0?1:0);return(H===23||H===-1)&&(A===59||A===-1)&&we<61}}function p(C,F){if(!(C&&F))return;const O=new Date("2020-01-01T"+C).valueOf(),z=new Date("2020-01-01T"+F).valueOf();if(O&&z)return O-z}function l(C,F){if(!(C&&F))return;const O=c.exec(C),z=c.exec(F);if(O&&z)return C=O[1]+O[2]+O[3],F=z[1]+z[2]+z[3],C>F?1:C<F?-1:0}const d=/t|\s/i;function y(C){const F=a(C);return function(O){const z=O.split(d);return z.length===2&&s(z[0])&&F(z[1])}}function m(C,F){if(!(C&&F))return;const O=new Date(C).valueOf(),z=new Date(F).valueOf();if(O&&z)return O-z}function h(C,F){if(!(C&&F))return;const[O,z]=C.split(d),[me,we]=F.split(d),Te=i(O,me);if(Te!==void 0)return Te||p(z,we)}const $=/\/|:/,b=/^(?:[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 E(C){return $.test(C)&&b.test(C)}const w=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function f(C){return w.lastIndex=0,w.test(C)}const I=-2147483648,g=2**31-1;function v(C){return Number.isInteger(C)&&C<=g&&C>=I}function x(C){return Number.isInteger(C)}function N(){return!0}const K=/[^\\]\\Z/;function R(C){if(K.test(C))return!1;try{return!0}catch{return!1}}})(ju)),ju}var Ru={},mi={exports:{}},Jo={},Cu;function M$(){if(Cu)return Jo;Cu=1,Object.defineProperty(Jo,"__esModule",{value:!0});const e=Fc(),t=Ss(),r=Os(),n=Ns(),o=Up(),s=[e.default,t.default,(0,r.default)(),n.default,o.metadataVocabulary,o.contentVocabulary];return Jo.default=s,Jo}const V$="http://json-schema.org/draft-07/schema#",z$="http://json-schema.org/draft-07/schema#",F$="Core schema meta-schema",U$={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:[]}},B$=["object","boolean"],K$={$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:"#"}},G$={$schema:V$,$id:z$,title:F$,definitions:U$,type:B$,properties:K$,default:!0};var Du;function Y$(){return Du||(Du=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=_s(),n=M$(),o=js(),s=G$,i=["/properties"],c="http://json-schema.org/draft-07/schema";class a extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(h=>this.addVocabulary(h)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const h=this.opts.$data?this.$dataMetaSchema(s,i):s;this.addMetaSchema(h,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=a,e.exports=t=a,e.exports.Ajv=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var p=sr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return p.KeywordCxt}});var l=$e();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var d=Nr();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var y=ir();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return y.default}})})(mi,mi.exports)),mi.exports}var qu;function W$(){return qu||(qu=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Y$(),r=$e(),n=r.operators,o={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},s={message:({keyword:c,schemaCode:a})=>(0,r.str)`should be ${o[c].okStr} ${a}`,params:({keyword:c,schemaCode:a})=>(0,r._)`{comparison: ${o[c].okStr}, limit: ${a}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:s,code(c){const{gen:a,data:p,schemaCode:l,keyword:d,it:y}=c,{opts:m,self:h}=y;if(!m.validateFormats)return;const $=new t.KeywordCxt(y,h.RULES.all.format.definition,"format");$.$data?b():E();function b(){const f=a.scopeValue("formats",{ref:h.formats,code:m.code.formats}),I=a.const("fmt",(0,r._)`${f}[${$.schemaCode}]`);c.fail$data((0,r.or)((0,r._)`typeof ${I} != "object"`,(0,r._)`${I} instanceof RegExp`,(0,r._)`typeof ${I}.compare != "function"`,w(I)))}function E(){const f=$.schema,I=h.formats[f];if(!I||I===!0)return;if(typeof I!="object"||I instanceof RegExp||typeof I.compare!="function")throw new Error(`"${d}": format "${f}" does not define "compare" function`);const g=a.scopeValue("formats",{key:f,ref:I,code:m.code.formats?(0,r._)`${m.code.formats}${(0,r.getProperty)(f)}`:void 0});c.fail$data(w(g))}function w(f){return(0,r._)`${f}.compare(${p}, ${l}) ${o[d].fail} 0`}},dependencies:["format"]};const i=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=i})(Ru)),Ru}var Lu;function H$(){return Lu||(Lu=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=L$(),n=W$(),o=$e(),s=new o.Name("fullFormats"),i=new o.Name("fastFormats"),c=(p,l={keywords:!0})=>{if(Array.isArray(l))return a(p,l,r.fullFormats,s),p;const[d,y]=l.mode==="fast"?[r.fastFormats,i]:[r.fullFormats,s],m=l.formats||r.formatNames;return a(p,m,d,y),l.keywords&&(0,n.default)(p),p};c.get=(p,l="full")=>{const d=(l==="fast"?r.fastFormats:r.fullFormats)[p];if(!d)throw new Error(`Unknown format "${p}"`);return d};function a(p,l,d,y){var m,h;(m=(h=p.opts.code).formats)!==null&&m!==void 0||(h.formats=(0,o._)`require("ajv-formats/dist/formats").${y}`);for(const $ of l)p.addFormat($,d[$])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(fi,fi.exports)),fi.exports}var Q$=H$();const J$=xr(Q$);function Mu(e){return e==="draft4"?"id":"$id"}function X$(e){return e==="oas2"||e==="oas3_0"?"draft4":"2020"}class hi{instances={};validate(t,r,n){const{schemaLoc:o,instancePath:s,resolve:i,allowAdditionalProperties:c,ajvContext:a,specVersion:p}=n,l=X$(p),d=this.getValidator(r,o,i,c,l);if(!d)return{valid:!0,errors:[]};const y={instancePath:s,parentData:{fake:{}},parentDataProperty:"fake",rootData:{},dynamicAnchors:{}};return{valid:!!d.call(a??{},t,y),errors:(d.errors||[]).map(m)};function m(h){let $=h.message;const b=h.keyword==="enum"?h.params.allowedValues:void 0;b&&($+=` ${b.map(f=>`"${f}"`).join(", ")}`),h.keyword==="type"&&($=`type ${$}`);const E=h.instancePath.substring(s.length+1),w=E.substring(E.lastIndexOf("/")+1);if(w&&($=`\`${w}\` property ${$}`),h.keyword==="additionalProperties"||h.keyword==="unevaluatedProperties"){const f=h.params.additionalProperty||h.params.unevaluatedProperty;$=`${$} \`${f}\``,h.instancePath+="/"+xf(f)}return{...h,message:$,suggest:b}}}getAjv(t,r){if(!this.instances[r]){const n=Mu(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(s,i,c){const a=decodeURI(s.split("#")[0]),p=t({$ref:i},a);return!p||!p.location?!1:{[n]:encodeURI(p.location.source.absoluteRef)+"#"+c,...p.node}}};this.instances[r]=r==="2020"?new As(o):new q$(o),J$(this.instances[r])}return this.instances[r]}getValidator(t,r,n,o,s){const i=this.getAjv(n,s),c=encodeURI(r.absolutePointer),a=Mu(s);return i.getSchema(c)||(i.setDefaultUnevaluatedProperties(o),i.addSchema({[a]:c,...t},c)),i.getSchema(c)}}const Vu=e=>{const t=new hi;return{Parameter:{leave(r,n){if(Mt(r.example)&&qr({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"}),Ee(r.examples))for(const[o,s]of Object.entries(r.examples)){const i=Tl(s);i&&qr({example:i.value,schema:r.schema,options:{location:n.location.child(["examples",o,i.field]),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:{apiContext:"request"}},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-parameter-examples"})}}}}},zu=e=>{const t=new hi;return{Schema:{leave(r,n){const o=r.examples;if(Array.isArray(o))for(const s of o)qr({example:s,schema:r,options:{location:n.location.child(["examples",o.indexOf(s)]),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-schema-examples"});if(Mt(r.example)){if(r.nullable===!0&&r.example===null&&r.type!==void 0)return;qr({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"})}}}}},Fu=()=>({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"})}}),Uu=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){const n=Object.keys(t||{});ko({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;const n=Object.keys(t||{});ko({responseCodes:n,codeRange:"2XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response"})}}}),Bu=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){const n=Object.keys(t||{});ko({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;const n=Object.keys(t||{});ko({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}}}),Ku=()=>({Operation(e,t){mr({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-description"})}}),Gu=()=>{const 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))}}},Z$=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/,Yu=()=>({Operation(e,{report:t,location:r}){e.operationId&&!Z$.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"})}}),Wu=()=>{let e,t;return{PathItem:{enter(){e=new Set},Parameter(r,{report:n,key:o,parentLocations:s}){const i=`${r.in}___${r.name}`;e.has(i)&&n({message:`Paths must have unique \`name\` + \`in\` parameters.
|
|
72
|
+
Repeats of \`in:${r.in}\` + \`name:${r.name}\`.`,location:s.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:s}){const i=`${r.in}___${r.name}`;t.has(i)&&n({message:`Operations must have unique \`name\` + \`in\` parameters. Repeats of \`in:${r.in}\` + \`name:${r.name}\`.`,location:s.Operation.child(["parameters",o]),reference:"https://redocly.com/docs/cli/rules/oas/operation-parameters-unique"}),t.add(i)}}}}},Hu=()=>({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"})}}),Qu=()=>({Operation(e,t){mr({fieldName:"summary",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-summary"})}}),Ju=()=>{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"})}}},Xu=()=>({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"})}}),Zu=()=>({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"})}}),eE=["get","head","post","put","patch","delete","options","query","trace"],ed=e=>{const t=e&&e.order||eE;if(!Array.isArray(t))throw new Error("path-http-verbs-order `order` option must be an array");return{PathItem(r,{report:n,location:o}){const s=Object.keys(r).filter(i=>t.includes(i));for(let i=0;i<s.length-1;i++){const c=t.indexOf(s[i]);t.indexOf(s[i+1])<c&&n({message:"Operation http verbs must be ordered.",location:{reportOnKey:!0,...o.child(s[i+1])},reference:"https://redocly.com/docs/cli/rules/oas/path-http-verbs-order"})}}}},td=()=>({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"})}}}),tE=/\{([a-zA-Z0-9_.-]+)\}+/g,rE=2,Xo=()=>{const e={current:null};return{PathItem:{enter(t,{key:r}){rd(e,r)},leave(){nE(e)},Parameter(t,{report:r,location:n,rawLocation:o}){nd({parameter:t,pathContext:e,report:r,location:n,rawLocation:o})},Operation:od(e,new Set)}}},rd=(e,t)=>{e.current={path:t,templateParams:oE(t),definedParams:new Set}},nE=e=>{e.current=null},nd=({parameter:e,pathContext:t,report:r,location:n,rawLocation:o})=>{e.in==="path"&&e.name&&t.current&&(t.current.definedParams.add(e.name),sd({paramName:e.name,templateParams:t.current.templateParams,path:t.current.path,report:r,location:n,rawLocation:o}))},od=(e,t,r=0)=>{const n=(s,i,c)=>{s({message:`Maximum callback nesting depth (${c}) reached. Path parameter validation is limited beyond this depth to prevent infinite recursion.`,location:i,reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})};if(r>=rE)return{enter:()=>{},leave:(s,{report:i,location:c})=>{n(i,c,r)},Parameter:()=>{},Callback:void 0};const o=()=>{let s=null;return{enter(i,{key:c}){s=e.current,rd(e,c)},leave(){e.current=s},Parameter(i,{report:c,location:a,rawLocation:p}){nd({parameter:i,pathContext:e,report:c,location:a,rawLocation:p})},get Operation(){return od(e,t,r+1)}}};return{enter(){t=new Set},leave(s,{report:i,location:c}){!e.current||!t||iE({templateParams:e.current.templateParams,definedOperationParams:t,definedPathParams:e.current.definedParams,path:e.current.path,report:i,location:c})},Parameter(s,{report:i,location:c,rawLocation:a}){sE(s,t),s.in==="path"&&s.name&&e.current&&(t.add(s.name),sd({paramName:s.name,templateParams:e.current.templateParams,path:e.current.path,report:i,location:c,rawLocation:a}))},Callback:{get PathItem(){return o()}}}},oE=e=>new Set(Array.from(e.matchAll(tE)).map(t=>t[1])),sE=(e,t)=>{Ee(e)&&"in"in e&&"name"in e&&e.in==="path"&&e.name&&t.add(e.name)},sd=({paramName:e,templateParams:t,path:r,report:n,location:o,rawLocation:s})=>{if(!t.has(e)){const i=`Path parameter \`${e}\` is not used in the path \`${r}\`.`,c=s===o?void 0:s;n({message:i,location:o.child(["name"]),from:c,reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})}},iE=({templateParams:e,definedOperationParams:t,definedPathParams:r,path:n,report:o,location:s})=>{const i=new Set([...t,...r]);for(const c of e)i.has(c)||o({message:`The operation does not define the path parameter \`{${c}}\` expected by path \`${n}\`.`,location:s.child(["parameters"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})},id=e=>{const{ignoreLastPathSegment:t,exceptions:r}=e;return{PathItem:{leave(n,{report:o,key:s,location:i}){const c=s.toString();if(c.startsWith("/")){const a=c.split("/");a.shift(),t&&a.length>0&&a.pop();for(const p of a)r&&r.includes(p)||!Tu(p)&&da.isSingular(p)&&o({message:`path segment \`${p}\` should be plural.`,location:i.key(),reference:"https://redocly.com/docs/cli/rules/oas/path-segment-plural"})}}}}},ad=()=>({PathItem(e,{report:t,key:r}){r.substr(1).split("/").filter(n=>n!=="").every(n=>/^{.+}$/.test(n)||/^[a-z0-9-.]+$/.test(n))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/paths-kebab-case"})}}),cd=()=>{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:s}){t.has(n)&&r.type==="string"&&(r?.minLength||s({message:"Property minLength is required.",location:o.key(),reference:"https://redocly.com/docs/cli/rules/oas/required-string-property-missing-min-length"}))}}}}}};function br(e){return`${e}`.replace(/^(\d)\d\d$/,(t,r)=>`${r}XX`)}const pd=e=>{const t=e.names||{};return{Operation:{Response:{enter:(r,{report:n,location:o,key:s})=>{const i=t[s]||t[br(s)]||t[br(s).toLowerCase()]||[];for(const c of i)(!r?.headers||!Object.keys(r?.headers).some(a=>a.toLowerCase()===c.toLowerCase()))&&n({message:`Response object must contain a "${c}" header.`,location:o.child("headers").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-header"})}}}}},ld=["string","integer","number","boolean","null"],ud=()=>({SchemaProperties(e,{report:t,location:r,specVersion:n,resolve:o}){for(const s of Object.keys(e)){const i=o(Ir(e,s)).node;!i||!aE(i)||i.example===void 0&&i.examples===void 0&&t({message:`Scalar property should have "example"${n==="oas3_1"||n==="oas3_2"?' or "examples"':""} defined.`,location:r.child(s).key(),reference:"https://redocly.com/docs/cli/rules/oas/scalar-property-missing-example"})}}});function aE(e){return!e.type||e.allOf||e.anyOf||e.oneOf||e.format==="binary"?!1:Array.isArray(e.type)?e.type.every(t=>ld.includes(t)):ld.includes(e.type)}const dd=e=>{const t=new Map,r=[];let n=!0,o;return{Root:{leave(s,{report:i}){for(const[c,a]of t.entries())if(!a.defined)for(const p of a.from)i({message:`There is no \`${c}\` security scheme defined.`,location:p.key(),reference:"https://redocly.com/docs/cli/rules/oas/security-defined"});if(!(s.security||n))for(const c of r)i({message:"Every operation should have security defined on it or on the root level.",location:c.key(),reference:"https://redocly.com/docs/cli/rules/oas/security-defined"})}},SecurityScheme(s,{key:i}){t.set(i.toString(),{defined:!0,from:[]})},SecurityRequirement(s,{location:i}){for(const c of Object.keys(s)){const a=t.get(c),p=i.child([c]);a?a.from.push(p):t.set(c,{from:[p]})}},PathItem:{enter(s,{key:i}){o=i},Operation(s,{location:i,key:c}){const a=e.exceptions?.some(p=>p.path===o&&(!p.methods||p.methods?.some(l=>l.toLowerCase()===c)));!s?.security&&!a&&(n=!1,r.push(i))}}}},fd=()=>{const e=["Schema","Response","Parameter","RequestBody","Example","Header","SecurityScheme","Link","Callback","PathItem"];return{any(t,{report:r,rawNode:n,rawLocation:o,type:s}){!e.includes(s.name)&&ze(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"})}}},cE=e=>{const t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(s=>`\`${s}\``),o=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter(s,{report:i,location:c}){s.type==="boolean"&&!r.test(s.name)&&i({message:`Boolean parameter \`${s.name}\` should have ${o} prefix.`,location:c.child("name"),reference:"https://redocly.com/docs/cli/rules/oas/boolean-parameter-prefixes"})}}};function Zo({type:e,value:t,ctx:r,allowedValues:n,reference:o}){const{report:s,location:i}=r,c=e==="consumes"?"request":"response";if(!n)throw new Error(`Parameter "allowedValues" is not provided for "${c}-mime-type" rule`);if(t[e])for(const a of t[e])n.includes(a)||s({message:`Mime type "${a}" is not allowed`,location:i.child(t[e].indexOf(a)).key(),reference:o})}function wr({type:e,value:t,ctx:r,allowedValues:n,reference:o}){const{report:s,location:i}=r,c=e==="consumes"?"request":"response";if(!n)throw new Error(`Parameter "allowedValues" is not provided for "${c}-mime-type" rule`);if(t.content)for(const a of Object.keys(t.content))n.includes(a)||s({message:`Mime type "${a}" is not allowed`,location:i.child("content").child(a).key(),reference:o})}const pE=({allowedValues:e})=>({Root(t,r){Zo({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})},Operation:{leave(t,r){Zo({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}),lE=e=>{const t=e.names||{};let r;return{Operation:{Response:{skip:(n,o)=>`${o}`=="204",enter:(n,o)=>{r=o.key},Schema(n,{report:o,location:s}){if(n.type!=="object")return;const i=t[r]||t[br(r)]||t[br(r).toLowerCase()]||[];for(const c of i)n.properties?.[c]||o({message:`Response object must contain a top-level "${c}" property.`,location:s.child("properties").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-property"})}}}}},uE=({allowedValues:e})=>({Root(t,r){Zo({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})},Operation:{leave(t,r){Zo({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}),dE={struct:Ct,"no-invalid-schema-examples":zu,"no-invalid-parameter-examples":Vu,"info-contact":hr,"info-license":ui,"info-license-strict":No,"tag-description":Co,"tags-alphabetical":Do,"paths-kebab-case":ad,"no-enum-type-mismatch":Lr,"boolean-parameter-prefixes":cE,"no-path-trailing-slash":Fu,"operation-2xx-response":Uu,"operation-4xx-response":Bu,assertions:Ut,"operation-operationId-unique":Gu,"operation-parameters-unique":Wu,"path-parameters-defined":Xo,"operation-tag-defined":Ju,"path-declaration-must-exist":Zu,"operation-operationId-url-safe":Yu,"operation-operationId":Ao,"operation-summary":Qu,"operation-description":Ku,"path-not-include-query":td,"path-params-defined":Xo,"parameter-description":Xu,"operation-singular-tag":Hu,"security-defined":dd,"security-scopes-defined":Vs,"no-unresolved-refs":Vt,"no-identical-paths":Pu,"no-ambiguous-paths":Iu,"path-http-verbs-order":ed,"no-http-verbs-in-paths":_u,"request-mime-type":pE,"response-mime-type":uE,"path-segment-plural":id,"response-contains-header":pd,"response-contains-property":lE,"scalar-property-missing-example":ud,"required-string-property-missing-min-length":cd,"spec-strict-refs":fd,"spec-ref-siblings":Ro,"no-required-schema-properties-undefined":Mr,"no-schema-type-mismatch":Vr,"no-duplicated-enum-values":Dr,"no-unsafe-markdown":zr,"no-duplicated-tag-names":jo},fE={},mE=e=>({Parameter:{leave(t,r){if(!t.schema)return;const n=ze(t.schema)?r.resolve(t.schema).node:t.schema;n&&hE(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 hE(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))}const yE=e=>{const t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(s=>`\`${s}\``),o=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter:{Schema(s,{report:i,parentLocations:c},a){s.type==="boolean"&&!r.test(a.Parameter.name)&&i({message:`Boolean parameter \`${a.Parameter.name}\` should have ${o} prefix.`,location:c.Parameter.child(["name"]),reference:"https://redocly.com/docs/cli/rules/oas/boolean-parameter-prefixes"})}}}},yi="Schema",gi="Parameter",vi="Response",bi="RequestBody",gE={[yi]:"schemas",[gi]:"parameters",[vi]:"responses",[bi]:"requestBodies"},vE=e=>{const t=new Map,r=[];e.schemas!=="off"&&r.push(yi),e.parameters!=="off"&&r.push(gi),e.responses!=="off"&&r.push(vi),e.requestBodies!=="off"&&r.push(bi);const n={ref:{leave(c,{type:a,resolve:p}){const l=a.name;if(r.includes(l)){const d=p(c);if(!d.location)return;i(l,d.location)}}},Root:{leave(c,a){t.forEach((p,l,d)=>{if(p.absolutePointers.size>1){const y=$E(l),m=bE(y.typeName),h=m?e[m]:null;for(const $ of p.locations){const b=Array.from(p.absolutePointers).filter(w=>w!==$.absolutePointer.toString()).map(w=>`- ${w}`).join(`
|
|
73
|
+
`),E={message:`Component '${m}/${y.componentName}' is not unique. It is also defined at:
|
|
74
|
+
${b}`,location:$,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};h&&(E.forceSeverity=h),a.report(E)}}})}}};return e.schemas!="off"&&(n.NamedSchemas={Schema(c,{location:a}){i(yi,a)}}),e.responses!="off"&&(n.NamedResponses={Response(c,{location:a}){i(vi,a)}}),e.parameters!="off"&&(n.NamedParameters={Parameter(c,{location:a}){i(gi,a)}}),e.requestBodies!="off"&&(n.NamedRequestBodies={RequestBody(c,{location:a}){i(bi,a)}}),n;function o(c){const a=c.split("/").slice(-1)[0];return If(a)?a.slice(0,a.lastIndexOf(".")):a}function s(c,a,p){const l=wE(c,a),d=t.get(l)??{absolutePointers:new Set,locations:[]},y=p.absolutePointer.toString();d.absolutePointers.has(y)||(d.absolutePointers.add(y),d.locations.push(p)),t.set(l,d)}function i(c,a){const p=o(a.absolutePointer.toString());s(c,p,a)}};function bE(e){return gE[e]??null}function wE(e,t){return`${e}/${t}`}function $E(e){const[t,r]=e.split("/");return{typeName:t,componentName:r}}const EE=()=>({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"})}}),xE=()=>({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"})}}),IE=e=>{const t=new hi,r=o=>o.schema===void 0,n=o=>(s,i)=>{const{location:c,resolve:a}=i;if(Mt(s.example))p(s.example,c.child("example"));else if(Ee(s.examples))for(const l of Object.keys(s.examples))p(s.examples[l],c.child(["examples",l]),!0);function p(l,d,y){if(ze(l)){const h=a(l);if(!h.location)return;d=h.location,l=h.node}let m=l;if(y){const h=Tl(l);if(!h)return;m=h.value,d=d.child(h.field)}qr({example:m,schema:s.schema,options:{location:d,ctx:i,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"})}}}},TE=()=>({Server(e,{report:t,location:r}){const 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"})}}),_E=()=>({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"})}}),PE=()=>({Root(e,{report:t,location:r}){if(!e.servers||e.servers.length===0)return;const n=[];if(Array.isArray(e.servers))for(const o of e.servers){const s=md(o);s&&n.push(...s)}else{const o=md(e.servers);if(!o)return;n.push(...o)}for(const 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 md(e){if(e.variables&&Object.keys(e.variables).length===0)return;const t=[];for(const r in e.variables){const n=e.variables[r];if(!n.enum||(Array.isArray(n.enum)&&n.enum?.length===0&&t.push("empty"),!n.default))continue;const o=e.variables[r].default;n.enum&&!n.enum.includes(o)&&t.push("invalidDefaultValue")}if(t.length)return t}const SE=()=>({Server(e,{report:t,location:r}){if(!e?.url)return;const n=e.url.match(/{[^}]+}/g)?.map(s=>s.slice(1,s.length-1))||[],o=e?.variables&&Object.keys(e.variables)||[];for(const s of n)o.includes(s)||t({message:`The \`${s}\` 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(const s of o)n.includes(s)||t({message:`The \`${s}\` variable is not used in the server's \`url\` field.`,location:r.child(["variables",s]).key(),from:r.child("url"),reference:"https://redocly.com/docs/cli/rules/oas/no-undefined-server-variable"})}}),kE=()=>{const e=new Map,t=new Map,r=new Set;function n(o,s,i=!1){e.set(o.absolutePointer,{used:e.get(o.absolutePointer)?.used||!1,referencesDiscriminator:i,location:o,name:s})}return{ref(o,{type:s,resolve:i,key:c,location:a}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap"].includes(s.name)){const p=i(o);if(!p.location)return;e.set(p.location.absolutePointer,{used:!0,name:c.toString(),location:a})}},Root:{leave(o,{report:s}){e.forEach(i=>{!i.used&&!i.referencesDiscriminator&&s({message:`Component: "${i.name}" is never used.`,location:i.location.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})}),t.forEach((i,c)=>{r.has(c)||s({message:`Security scheme: "${c}" is never used.`,location:i.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})})}},NamedSchemas:{Schema(o,{location:s,key:i,resolve:c}){const a=o.allOf?.some(p=>ze(p)&&c(p)?.node?.discriminator);n(s,i.toString(),a)}},NamedParameters:{Parameter(o,{location:s,key:i}){n(s,i.toString())}},NamedResponses:{Response(o,{location:s,key:i}){n(s,i.toString())}},NamedExamples:{Example(o,{location:s,key:i}){n(s,i.toString())}},NamedRequestBodies:{RequestBody(o,{location:s,key:i}){n(s,i.toString())}},NamedHeaders:{Header(o,{location:s,key:i}){n(s,i.toString())}},NamedMediaTypes:{MediaTypesMap(o,{location:s,key:i}){n(s,i.toString())}},NamedSecuritySchemes:{SecurityScheme(o,{rawLocation:s,key:i}){t.set(i.toString(),s)}},SecurityRequirement(o){for(const s of Object.keys(o))r.add(s)}}},OE=()=>({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"})}}}),wi="https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807",NE=()=>({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:wi})},MediaType:{skip(e,t){return t!=="application/problem+json"},enter(e,t){if(mr({fieldName:"schema",value:e,ctx:t,reference:wi}),!e.schema)return;const{schema:r,location:n}=xo(e.schema,t,t.location.child("schema"));if(!(!r||!n))for(const o of["type","title"])Jt(e.schema,o,t)||t.report({message:Po("SchemaProperties",o),location:r.properties?n.child(["properties",o]).key():n.key(),reference:wi})}}}}),jE=({allowedValues:e})=>({Paths:{RequestBody:{leave(t,r){wr({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){wr({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}},WebhooksMap:{Response:{leave(t,r){wr({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}}),AE=e=>{const t=e.names||{};let r;return{Operation:{Response:{skip:(n,o)=>`${o}`=="204",enter:(n,o)=>{r=o.key},MediaType:{Schema(n,{report:o,location:s}){if(n.type!=="object")return;const i=t[r]||t[br(r)]||t[br(r).toLowerCase()]||[];for(const c of i)n.properties?.[c]||o({message:`Response object must contain a top-level "${c}" property.`,location:s.child("properties").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-property"})}}}}}},RE=({allowedValues:e})=>({Paths:{Response:{leave(t,r){wr({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){wr({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}},WebhooksMap:{RequestBody:{leave(t,r){wr({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}}),CE=()=>{const e=`^[${Tf}]+$`;function t(r,n,o,s){new RegExp(e).test(r)||n({message:`The map key in ${s} "${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:s}){t(n,o,s,"schemas")}},NamedParameters:{Parameter(r,{key:n,report:o,location:s}){t(n,o,s,"parameters")}},NamedResponses:{Response(r,{key:n,report:o,location:s}){t(n,o,s,"responses")}},NamedExamples:{Example(r,{key:n,report:o,location:s}){t(n,o,s,"examples")}},NamedRequestBodies:{RequestBody(r,{key:n,report:o,location:s}){t(n,o,s,"requestBodies")}},NamedHeaders:{Header(r,{key:n,report:o,location:s}){t(n,o,s,"headers")}},NamedSecuritySchemes:{SecurityScheme(r,{key:n,report:o,location:s}){t(n,o,s,"securitySchemes")}},NamedLinks:{Link(r,{key:n,report:o,location:s}){t(n,o,s,"links")}},NamedCallbacks:{Callback(r,{key:n,report:o,location:s}){t(n,o,s,"callbacks")}}}},DE=()=>{let e=[];return{Root:{enter(t){e=Object.keys(t.components?.schemas||{})}},Schema:{leave(t,r){const n=t.discriminator?.propertyName;if(!n)return;const o=t.discriminator?.defaultMapping;if(o===void 0){const s=new Set,i=(c,a)=>{const p=xo(c,r,a);return!!(!p.schema||s.has(p.schema)||(s.add(p.schema),p.schema.required?.includes(n)||p.schema.allOf?.some(l=>i(l,p.location))||p.schema.oneOf?.every(l=>i(l,p.location))||p.schema.anyOf?.every(l=>i(l,p.location))))};i(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"})}}}},qE=()=>({Example({value:e,externalValue:t,dataValue:r,serializedValue:n},{report:o,location:s}){e!==void 0&&t!==void 0&&o({message:"The 'value' and 'externalValue' fields of an example object are mutually exclusive.",location:s,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:s,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:s.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:s.child("value").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"})}}),LE=()=>({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"})}}}),ME=()=>{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(i=>i.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}const o=new Set(t.name);let s=t.parent;for(;s!==void 0;){if(o.has(s)){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(s),s=e.find(i=>i.name===s)?.parent}}}}};function hd(e){return e.filter(t=>!("$ref"in t)&&t.in==="querystring").length}function yd(e,t){const 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 gd(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)}const VE=()=>{let e={},t={},r=0;return{PathItem:{enter(n,o){e={},t={},r=0,yd(hd(n.parameters||[]),o)},Parameter(n,o){gd(n,o.location,e,o),n.in==="querystring"&&(r+=1)},Operation:{enter(n,o){t={...e};const s=r+hd(n.parameters||[]);yd(s,o)},Parameter(n,o){gd(n,o.location,t,o)}}}}},zE=()=>({ref:{leave(e,{report:t,location:r,type:n,specVersion:o}){const s=o!=="oas3_0";if(!(s&&n.name==="Schema"||n.name==="PathItem"))for(const i of Object.keys(e))i!=="$ref"&&(s&&(i==="summary"||i==="description")||t({message:`Property \`${i}\` is not expected here because it is defined alongside \`$ref\`.`,location:r.child(i).key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-ref-siblings"}))}}}),FE={struct:Ct,"info-contact":hr,"info-license":ui,"info-license-strict":No,"operation-2xx-response":Uu,"operation-4xx-response":Bu,"operation-4xx-problem-details-rfc7807":NE,assertions:Ut,"operation-operationId-unique":Gu,"operation-parameters-unique":Wu,"operation-tag-defined":Ju,"no-example-value-and-externalValue":xE,"no-mixed-number-range-constraints":Oo,"no-enum-type-mismatch":Lr,"no-path-trailing-slash":Fu,"no-empty-servers":EE,"path-declaration-must-exist":Zu,"operation-operationId-url-safe":Yu,"operation-operationId":Ao,"operation-summary":Qu,"tags-alphabetical":Do,"no-server-example.com":TE,"no-server-trailing-slash":_E,"tag-description":Co,"operation-description":Ku,"no-unused-components":kE,"path-not-include-query":td,"path-parameters-defined":Xo,"path-params-defined":Xo,"parameter-description":Xu,"operation-singular-tag":Hu,"security-defined":dd,"security-scopes-defined":Vs,"no-unresolved-refs":Vt,"paths-kebab-case":ad,"boolean-parameter-prefixes":yE,"path-http-verbs-order":ed,"no-invalid-media-type-examples":IE,"no-identical-paths":Pu,"no-ambiguous-paths":Iu,"no-undefined-server-variable":SE,"no-server-variables-empty-enum":PE,"no-http-verbs-in-paths":_u,"request-mime-type":jE,"response-mime-type":RE,"path-segment-plural":id,"no-invalid-schema-examples":zu,"no-invalid-parameter-examples":Vu,"response-contains-header":pd,"response-contains-property":AE,"scalar-property-missing-example":ud,"spec-components-invalid-map-name":CE,"required-string-property-missing-min-length":cd,"spec-strict-refs":fd,"component-name-unique":vE,"array-parameter-serialization":mE,"no-required-schema-properties-undefined":Mr,"no-schema-type-mismatch":Vr,"no-duplicated-enum-values":Dr,"no-unsafe-markdown":zr,"no-duplicated-tag-names":jo,"nullable-type-sibling":OE,"spec-no-invalid-tag-parents":ME,"spec-no-invalid-encoding-combinations":LE,"spec-discriminator-defaultMapping":DE,"spec-example-values":qE,"spec-querystring-parameters":VE,"spec-ref-siblings":zE},UE={},BE=()=>{const 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:s,location:i}){if(["Schema","ContentDescriptor","Example","Link","ErrorObject","ExamplePairing","Tag"].includes(n.name)){const c=o(r);if(!c.location)return;e.set(c.location.absolutePointer,{used:!0,name:s.toString(),location:i})}},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())}}}},KE=()=>({Method:{leave(e,{report:t,resolve:r,location:n}){if(!e.params||!Array.isArray(e.params))return;const o=new Set;e.params.forEach((s,i)=>{const c=r(s);if(!c.node)return;const a=c.node,p=a.name;p&&(o.has(p)&&t({message:`Parameter names must be unique. Duplicate parameter name '${a.name}' found.`,location:n.child([i,"name"]),reference:"https://redocly.com/docs/cli/rules/openrpc/spec-no-duplicated-method-params"}),o.add(p))})}}}),GE=()=>({Method:{leave(e,{report:t,resolve:r,location:n}){if(!e.params||!Array.isArray(e.params))return;let o=!1;e.params.forEach((s,i)=>{const c=r(s);if(!c.node)return;const a=c.node;a.name&&(a.required===!0?o&&t({message:`Required parameter '${a.name}' must be positioned before optional parameters.`,location:n.child([i,"name"]),reference:"https://redocly.com/docs/cli/rules/openrpc/spec-no-required-params-after-optional"}):o=!0)})}}}),YE={struct:Ct,"no-unresolved-refs":Vt,assertions:Ut,"info-license":ui,"no-unused-components":BE,"info-contact":hr,"spec-no-duplicated-method-params":KE,"spec-no-required-params-after-optional":GE,"spec-ref-siblings":Ro},WE={},HE={"info-contact":hr,struct:Ct,"no-unresolved-refs":Vt,assertions:Ut},QE={},JE={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-ref-siblings":"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-ref-siblings":"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-ref-siblings":"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-ref-siblings":"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","spec-ref-siblings":"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","spec-ref-siblings":"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","spec-ref-siblings":"error"},graphqlRules:{"no-unused-types":"error","type-description":"error"}},XE={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-ref-siblings":"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-ref-siblings":"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-ref-siblings":"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-ref-siblings":"off","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","spec-ref-siblings":"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","spec-ref-siblings":"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","spec-ref-siblings":"off"}},ZE={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-ref-siblings":"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-ref-siblings":"error","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-ref-siblings":"error","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-ref-siblings":"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","spec-ref-siblings":"error"},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","spec-ref-siblings":"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":"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","spec-ref-siblings":"error"},graphqlRules:{"no-unused-types":"error","type-description":"off"}},e1={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-ref-siblings":"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-ref-siblings":"warn","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-ref-siblings":"warn","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-ref-siblings":"warn","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","spec-ref-siblings":"warn"},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","spec-ref-siblings":"warn"},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","spec-ref-siblings":"warn"},graphqlRules:{"no-unused-types":"warn","type-description":"off"}},t1={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-ref-siblings":"error","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-ref-siblings":"error","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-ref-siblings":"error","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-ref-siblings":"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","spec-ref-siblings":"error"},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","spec-ref-siblings":"error"},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","spec-ref-siblings":"error"},graphqlRules:{"no-unused-types":"off","type-description":"off"}},r1={recommended:e1,"recommended-strict":ZE,minimal:XE,all:JE,spec:t1},n1={id:"",rules:{oas3:FE,oas2:dE,async2:h0,async3:T0,arazzo1:p0,overlay1:HE,openrpc1:YE,graphql:w$},preprocessors:{oas3:UE,oas2:fE,async2:y0,async3:_0,arazzo1:l0,overlay1:QE,openrpc1:WE},decorators:{oas3:Pb,oas2:Tb,async2:wb,async3:$b,arazzo1:bb,overlay1:kb,openrpc1:Sb},configs:r1},Re=(e,t)=>{if(t)for(const r of Object.keys(t))Ee(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r]};function De(e,t){if(t)for(const r of Object.keys(t))e.hasOwnProperty(r)&&(Ee(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r])}function o1(e){if(e.indexOf("/")>-1){const[t,r]=e.split("/");return{pluginId:t,configName:r}}else return{pluginId:"",configName:e}}function Be(e,t){if(!t)return e;const r={};for(const n of Object.keys(e))r[`${t}/${n}`]=e[n];return r}function vd(e){const 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(const r of e){if(Ee(r)&&"extends"in r&&r.extends!==void 0)throw new Error(`'extends' is not supported in shared configs yet:
|
|
75
|
+
${JSON.stringify(r,null,2)}`);Re(t.rules,r.rules),Re(t.oas2Rules,r.oas2Rules),De(t.oas2Rules,r.rules),Re(t.oas3_0Rules,r.oas3_0Rules),De(t.oas3_0Rules,r.rules),Re(t.oas3_1Rules,r.oas3_1Rules),De(t.oas3_1Rules,r.rules),Re(t.oas3_2Rules,r.oas3_2Rules),De(t.oas3_2Rules,r.rules),Re(t.async2Rules,r.async2Rules),De(t.async2Rules,r.rules),Re(t.async3Rules,r.async3Rules),De(t.async3Rules,r.rules),Re(t.arazzo1Rules,r.arazzo1Rules),De(t.arazzo1Rules,r.rules),Re(t.arazzo1_1Rules,r.arazzo1_1Rules),De(t.arazzo1_1Rules,r.rules),Re(t.overlay1Rules,r.overlay1Rules),De(t.overlay1Rules,r.rules),Re(t.openrpc1Rules,r.openrpc1Rules),De(t.openrpc1Rules,r.rules),Re(t.graphqlRules,r.graphqlRules),De(t.graphqlRules,r.rules),Re(t.preprocessors,r.preprocessors),Re(t.oas2Preprocessors,r.oas2Preprocessors),De(t.oas2Preprocessors,r.preprocessors),Re(t.oas3_0Preprocessors,r.oas3_0Preprocessors),De(t.oas3_0Preprocessors,r.preprocessors),Re(t.oas3_1Preprocessors,r.oas3_1Preprocessors),De(t.oas3_1Preprocessors,r.preprocessors),Re(t.oas3_2Preprocessors,r.oas3_2Preprocessors),De(t.oas3_2Preprocessors,r.preprocessors),Re(t.async2Preprocessors,r.async2Preprocessors),De(t.async2Preprocessors,r.preprocessors),Re(t.async3Preprocessors,r.async3Preprocessors),De(t.async3Preprocessors,r.preprocessors),Re(t.arazzo1Preprocessors,r.arazzo1Preprocessors),De(t.arazzo1Preprocessors,r.preprocessors),Re(t.arazzo1_1Preprocessors,r.arazzo1_1Preprocessors),De(t.arazzo1_1Preprocessors,r.preprocessors),Re(t.overlay1Preprocessors,r.overlay1Preprocessors),De(t.overlay1Preprocessors,r.preprocessors),Re(t.openrpc1Preprocessors,r.openrpc1Preprocessors),De(t.openrpc1Preprocessors,r.preprocessors),Re(t.decorators,r.decorators),Re(t.oas2Decorators,r.oas2Decorators),De(t.oas2Decorators,r.decorators),Re(t.oas3_0Decorators,r.oas3_0Decorators),De(t.oas3_0Decorators,r.decorators),Re(t.oas3_1Decorators,r.oas3_1Decorators),De(t.oas3_1Decorators,r.decorators),Re(t.oas3_2Decorators,r.oas3_2Decorators),De(t.oas3_2Decorators,r.decorators),Re(t.async2Decorators,r.async2Decorators),De(t.async2Decorators,r.decorators),Re(t.async3Decorators,r.async3Decorators),De(t.async3Decorators,r.decorators),Re(t.arazzo1Decorators,r.arazzo1Decorators),De(t.arazzo1Decorators,r.decorators),Re(t.arazzo1_1Decorators,r.arazzo1_1Decorators),De(t.arazzo1_1Decorators,r.decorators),Re(t.overlay1Decorators,r.overlay1Decorators),De(t.overlay1Decorators,r.decorators),Re(t.openrpc1Decorators,r.openrpc1Decorators),De(t.openrpc1Decorators,r.decorators)}return t}class s1 extends Error{}function i1(e){return new Map(JSON.parse(JSON.stringify([...e])))}function bd(e){return Ee(e)&&"id"in e}function a1(e){return typeof e=="function"}function wd({node:e,ctx:t,plugins:r}){if(!e.extends)return e;const n=(e.extends||[]).filter(tn).map(o=>{if(!tt(o)&&!Zi.extname(o))return I1(o,r);const s=t.resolve({$ref:o});return s.location&&s.node!==void 0?s.node:null}).filter(tn);return vd([...n.map(o=>wd({node:o,ctx:t,plugins:r})),{...e,extends:void 0}])}function es(e,t){if(Ee(e)&&Array.isArray(e.plugins)){const{plugins:r,rootConfigDir:n}=t.getVisitorData();r.push(...e.plugins.map(o=>xi(o,t.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}Tr([{severity:"error",ruleId:Pf,visitor:{ref:{},ConfigGovernance:{leave(e,t){es(e,t)}},ConfigApisProperties:{leave(e,t){es(e,t)}},[rt.ScorecardClassicLevel]:{leave(e,t){es(e,t)}},ConfigRoot:{leave(e,t){es(e,t)}}}}],Eo);function ts(e,t){if(Ee(e)&&e.extends){const{plugins:r,skipPluginEval:n}=t.getVisitorData();if(n)return;const o=wd({node:e,ctx:t,plugins:r});Object.assign(e,o),delete e.extends}}const c1=Tr([{severity:"error",ruleId:na,visitor:{ref:{leave(e,t,r){_f(e,r,t)}},ConfigGovernance:{leave(e,t){ts(e,t)}},ConfigApisProperties:{leave(e,t){ts(e,t)}},[rt.ScorecardClassicLevel]:{leave(e,t){ts(e,t)}},ConfigRoot:{leave(e,t){ts(e,t)}}}}],Eo);function p1(e,t,r,n=!1){const o={plugins:r,skipPluginEval:n},s={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[na]:o}};return nn({document:e,rootType:Eo.ConfigRoot,normalizedVisitors:c1,resolvedRefMap:t,ctx:s}),e.parsed??{}}async function l1(e){const{ref:t,doc:r,externalRefResolver:n=new Yt(e.config.resolve),base:o=null}=e;if(!(t||r))throw new Error(`Document or reference is required.
|
|
76
|
+
`);const s=r===void 0?await n.resolveDocument(o,t,!0):r;if(s instanceof Error)throw s;return e.collectSpecData?.(s),oa({document:s,...e,externalRefResolver:n,types:en(rn(s.parsed))})}async function u1(e){const{source:t,absoluteRef:r,externalRefResolver:n=new Yt(e.config.resolve)}=e,o=us(t,r||"/");return oa({document:o,...e,externalRefResolver:n,types:en(rn(o.parsed))})}function $i(e){return!Ot(e)}const Wr=new Map,rs="v";let Ei=0,$d=!1;function d1(){on.registerHooks({resolve(e,t,r){const n=r(e,t);if(!n.url.startsWith("file:")||!t.parentURL)return n;const o=new URL(t.parentURL).searchParams.get(rs);if(!o)return n;const s=new URL(n.url);return s.pathname.includes("/node_modules/")||s.searchParams.has(rs)?n:(s.searchParams.set(rs,o),{...n,url:s.href})}})}function f1(){if(!$d){if($d=!0,typeof on.registerHooks!="function"){Se.warn(`Redocly plugin reload requires Node.js >= 22.15 (current: ${process.version}). ESM plugins will not pick up edits until the process restarts.
|
|
77
|
+
`);return}d1()}}function m1(e){return Wr.has(e)}function h1(e){return Wr.get(e)}function y1(e,t){Wr.set(e,t)}function g1(){return Ei}function v1(e){const t=on.createRequire(e),r=new Set,n=o=>{if(r.has(o))return;r.add(o);const s=t.cache[o];if(s){for(const i of s.children)/[/\\]node_modules[/\\]/.test(i.id)||n(i.id);delete t.cache[o]}};n(e)}const b1=()=>{const e=[...Wr.keys()];for(const t of e)v1(t);Wr.clear(),Ei+=1,f1()};async function w1(e){const t=(void 0)(e);return t.searchParams.set(rs,String(Ei)),import(t.href)}async function Ed({rawConfigDocument:e,configPath:t,externalRefResolver:r,customExtends:n,skipPluginEval:o}){const s=e===void 0?Sf:e.parsed;if(n!==void 0&&Ee(s)&&(s.extends=n),Ee(s)&&(s?.extends?.some($i)||s?.scorecardClassic?.levels?.some(m=>m?.extends?.some($i))||s?.scorecard?.levels?.some(m=>m?.extends?.some($i))))throw new Error("Configuration format not detected in extends: values must be strings.");const i=e??{source:new kf(t??"",JSON.stringify(s)),parsed:s},c=await sn({rootDocument:i,rootType:Eo.ConfigRoot,externalRefResolver:r??new Yt(Of(s?.resolve))});let a=[],p,l="";p=[...(s?.plugins||[]).filter(m=>!Ot(m)),n1];const d=p1(i,i1(c),p,o);d.apis&&!o&&(d.apis=Object.fromEntries(Object.entries(d.apis).map(([m,h])=>{const $=vd([d,h]);return[m,{...h,...$}]})));const y=a.length?a.map(m=>E1(m)&&m.isModule?m.rawPath:m.absolutePath&&Ke.relative(l,m.absolutePath)).filter(Mt):void 0;return{resolvedConfig:{...d,plugins:y},resolvedRefMap:c,plugins:p}}function $1(e){for(const t of Nf)(void 0)(Ke.resolve(e,t))}function E1(e){return"isModule"in e}const xi=(e,t,r)=>{if(!Ot(e))return e;(void 0)(Ke.resolve(Ke.dirname(t),e));try{return{absolutePath:on.createRequire(import.meta.url??__dirname).resolve(e,{paths:[r,import.meta.url?Ke.dirname((void 0)(import.meta.url)):__dirname]}),isModule:!0,rawPath:e}}catch{throw new Error(`Plugin "${e}" not found.`)}};async function x1(e,t,r=!1){if(!e)return[];const n=async c=>{if(!Ot(c))return c;try{const a=Ke.isAbsolute(c)?c:xi(c,Ke.join(t,sa),t).absolutePath;if(!m1(a)){const p=await w1(a),l=p.default||p,d={contentDir:t},y=Array.isArray(l)?l:[l];for(const $ of y)$?.id&&bd($)&&Se.info(`Deprecated plugin format detected: ${$.id}
|
|
78
|
+
`);const m=bd(l)?l:a1(l)?await l(d):await l?.default?.(d),h=Array.isArray(m)?m:[m];m&&y1(a,h.map($=>({...$,path:c,absolutePath:a})))}return h1(a)}catch(a){throw new Error(`Failed to load plugin "${c}": ${a.message}
|
|
79
|
+
|
|
80
|
+
${a.stack}`)}},o=new Map,s=$1(t);s&&e.push(s);const i=new Set;if(r){const c=[];for(const a of e){if(!Ot(a)){c.push(a);continue}const p=Ke.isAbsolute(a)?a:xi(a,Ke.join(t,sa),t).absolutePath;i.has(p)||(i.add(p),c.push({absolutePath:p}))}return c}return(await Promise.all(e.map(async c=>{if(Ot(c)){if(tt(c))throw new Error(Ae.red("We don't support remote plugins yet."));if(i.has(c))return;i.add(c)}const a=await n(c);if(!a)return;const p=Array.isArray(a)?a:[a];return(await Promise.all(p.map(async l=>{if(!l)return;const d=l.id;if(typeof d!="string")throw new Error(Ae.red(`Plugin must define \`id\` property in ${Ae.blue(c.toString())}.`));const y=l.absolutePath??c.toString(),m=o.get(d);if(m){if(y!==m)throw new Error(Ae.red(`Plugin "id" must be unique. Plugin ${Ae.blue(y)} uses id "${Ae.blue(d)}" already seen in ${Ae.blue(y)}`));return}o.set(d,y);const h={id:d,...l.configs?{configs:l.configs}:{},...l.typeExtension?{typeExtension:l.typeExtension}:{}};if(l.rules){if(!l.rules.oas3&&!l.rules.oas2&&!l.rules.async2&&!l.rules.async3&&!l.rules.arazzo1&&!l.rules.overlay1&&!l.rules.openrpc1&&!l.rules.graphql)throw new Error(`Plugin rules must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo\`, \`overlay1\`, \`openrpc1\`, or \`graphql\` rules "${c}.`);h.rules={},l.rules.oas3&&(h.rules.oas3=Be(l.rules.oas3,d)),l.rules.oas2&&(h.rules.oas2=Be(l.rules.oas2,d)),l.rules.async2&&(h.rules.async2=Be(l.rules.async2,d)),l.rules.async3&&(h.rules.async3=Be(l.rules.async3,d)),l.rules.arazzo1&&(h.rules.arazzo1=Be(l.rules.arazzo1,d)),l.rules.overlay1&&(h.rules.overlay1=Be(l.rules.overlay1,d)),l.rules.openrpc1&&(h.rules.openrpc1=Be(l.rules.openrpc1,d)),l.rules.graphql&&(h.rules.graphql=Be(l.rules.graphql,d))}if(l.preprocessors){if(!l.preprocessors.oas3&&!l.preprocessors.oas2&&!l.preprocessors.async2&&!l.preprocessors.async3&&!l.preprocessors.arazzo1&&!l.preprocessors.overlay1&&!l.preprocessors.openrpc1)throw new Error(`Plugin \`preprocessors\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` preprocessors "${c}.`);h.preprocessors={},l.preprocessors.oas3&&(h.preprocessors.oas3=Be(l.preprocessors.oas3,d)),l.preprocessors.oas2&&(h.preprocessors.oas2=Be(l.preprocessors.oas2,d)),l.preprocessors.async2&&(h.preprocessors.async2=Be(l.preprocessors.async2,d)),l.preprocessors.async3&&(h.preprocessors.async3=Be(l.preprocessors.async3,d)),l.preprocessors.arazzo1&&(h.preprocessors.arazzo1=Be(l.preprocessors.arazzo1,d)),l.preprocessors.overlay1&&(h.preprocessors.overlay1=Be(l.preprocessors.overlay1,d)),l.preprocessors.openrpc1&&(h.preprocessors.openrpc1=Be(l.preprocessors.openrpc1,d))}if(l.decorators){if(!l.decorators.oas3&&!l.decorators.oas2&&!l.decorators.async2&&!l.decorators.async3&&!l.decorators.arazzo1&&!l.decorators.overlay1&&!l.decorators.openrpc1)throw new Error(`Plugin \`decorators\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` decorators "${c}.`);h.decorators={},l.decorators.oas3&&(h.decorators.oas3=Be(l.decorators.oas3,d)),l.decorators.oas2&&(h.decorators.oas2=Be(l.decorators.oas2,d)),l.decorators.async2&&(h.decorators.async2=Be(l.decorators.async2,d)),l.decorators.async3&&(h.decorators.async3=Be(l.decorators.async3,d)),l.decorators.arazzo1&&(h.decorators.arazzo1=Be(l.decorators.arazzo1,d)),l.decorators.overlay1&&(h.decorators.overlay1=Be(l.decorators.overlay1,d)),l.decorators.openrpc1&&(h.decorators.openrpc1=Be(l.decorators.openrpc1,d))}return l.assertions&&(h.assertions=l.assertions),{...l,...h}}))).filter(Mt)}))).filter(Mt).flat()}function I1(e,t){const{pluginId:r,configName:n}=o1(e),o=t.find(i=>i.id===r);if(!o)throw new Error(`Invalid config ${Ae.red(e)}: plugin ${r} is not included.`);const s=o.configs?.[n];if(!s)throw new Error(r?`Invalid config ${Ae.red(e)}: plugin ${r} doesn't export config with name ${n}.`:`Invalid config ${Ae.red(e)}: there is no such built-in config.`);return s}function T1(e,t){const r=Object.create(null);for(const n of Object.keys(e)){const o=e[n],s=tt(n)?n:aa(t,n);r[s]=Object.create(null);for(const i of Object.keys(o))r[s][i]=new Set(o[i])}return r}async function xd(e,t){const r=e?jf(e):"",n=r?aa(r,ca):ca,o=await t.resolveDocument(null,n,!0);return o instanceof Error||!o.parsed?{}:T1(o.parsed||{},r)}async function _1(e={}){const{configPath:t=void 0,customExtends:r,externalRefResolver:n,skipPluginEval:o}=e,s=n??new Yt,i=t?await s.resolveDocument(null,t,!0):void 0;if(i instanceof Error)throw i;const{resolvedConfig:c,resolvedRefMap:a,plugins:p}=await Ed({rawConfigDocument:i?Id(i):void 0,customExtends:r,configPath:t,externalRefResolver:n,skipPluginEval:o}),l=await xd(t,s);return new ia(c,{configPath:t,document:i,resolvedRefMap:a,plugins:p,ignore:l})}function P1(e){}async function S1(e,{configPath:t,externalRefResolver:r,ignore:n}={}){const o=us(typeof e=="string"?e:"",t??"");typeof e!="string"&&e&&(o.parsed=e);const{resolvedConfig:s,resolvedRefMap:i,plugins:c}=await Ed({rawConfigDocument:Id(o),configPath:t,externalRefResolver:r});return new ia(s,{configPath:t,document:o,resolvedRefMap:i,plugins:c,ignore:n})}function Id(e){if(!e.parsed)return e;const{plugins:t,resolve:r,...n}=e.parsed,o={...structuredClone(n),plugins:t?.slice(),...r&&{resolve:{...r}}};return{...e,parsed:o}}var Td={},It={},_d={},Pd;function ns(){return Pd||(Pd=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t;(function(a){a[a.SCALAR=0]="SCALAR",a[a.MAPPING=1]="MAPPING",a[a.MAP=2]="MAP",a[a.SEQ=3]="SEQ",a[a.ANCHOR_REF=4]="ANCHOR_REF",a[a.INCLUDE_REF=5]="INCLUDE_REF"})(t=e.Kind||(e.Kind={}));function r(a,p){var l=p?p.endPosition:a.endPosition+1,d={key:a,value:p,startPosition:a.startPosition,endPosition:l,kind:t.MAPPING,parent:null,errors:[]};return d}e.newMapping=r;function n(a,p,l,d){return{errors:[],referencesAnchor:a,value:d,startPosition:p,endPosition:l,kind:t.ANCHOR_REF,parent:null}}e.newAnchorRef=n;function o(a){a===void 0&&(a="");var p={errors:[],startPosition:-1,endPosition:-1,value:""+a,kind:t.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+a};return typeof a!="string"&&(p.valueObject=a),p}e.newScalar=o;function s(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:t.SEQ,parent:null}}e.newItems=s;function i(){return s()}e.newSeq=i;function c(a){return{errors:[],startPosition:-1,endPosition:-1,mappings:a||[],kind:t.MAP,parent:null}}e.newMap=c})(_d)),_d}var Lt={},Sd;function $r(){if(Sd)return Lt;Sd=1,Object.defineProperty(Lt,"__esModule",{value:!0});function e(i){return typeof i>"u"||i===null}Lt.isNothing=e;function t(i){return typeof i=="object"&&i!==null}Lt.isObject=t;function r(i){return Array.isArray(i)?i:e(i)?[]:[i]}Lt.toArray=r;function n(i,c){var a,p,l,d;if(c)for(d=Object.keys(c),a=0,p=d.length;a<p;a+=1)l=d[a],i[l]=c[l];return i}Lt.extend=n;function o(i,c){var a="",p;for(p=0;p<c;p+=1)a+=i;return a}Lt.repeat=o;function s(i){return i===0&&Number.NEGATIVE_INFINITY===1/i}return Lt.isNegativeZero=s,Lt}var Ii,kd;function Hr(){if(kd)return Ii;kd=1;var e=(function(){function t(r,n,o){n===void 0&&(n=null),o===void 0&&(o=!1),this.name="YAMLException",this.reason=r,this.mark=n,this.message=this.toString(!1),this.isWarning=o}return t.isInstance=function(r){if(r!=null&&r.getClassIdentifier&&typeof r.getClassIdentifier=="function")for(var n=0,o=r.getClassIdentifier();n<o.length;n++){var s=o[n];if(s==t.CLASS_IDENTIFIER)return!0}return!1},t.prototype.getClassIdentifier=function(){var r=[];return r.concat(t.CLASS_IDENTIFIER)},t.prototype.toString=function(r){r===void 0&&(r=!1);var n;return n="JS-YAML: "+(this.reason||"(unknown reason)"),!r&&this.mark&&(n+=" "+this.mark.toString()),n},t.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException",t})();return Ii=e,Ii}var Ti,Od;function k1(){if(Od)return Ti;Od=1;var e=$r(),t=(function(){function r(n,o,s,i,c){this.name=n,this.buffer=o,this.position=s,this.line=i,this.column=c}return r.prototype.getSnippet=function(n,o){n===void 0&&(n=0),o===void 0&&(o=75);var s,i,c,a,p;if(!this.buffer)return null;for(n=n||4,o=o||75,s="",i=this.position;i>0&&`\0\r
|
|
81
|
+
\x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>o/2-1){s=" ... ",i+=5;break}for(c="",a=this.position;a<this.buffer.length&&`\0\r
|
|
82
|
+
\x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>o/2-1){c=" ... ",a-=5;break}return p=this.buffer.slice(i,a),e.repeat(" ",n)+s+p+c+`
|
|
83
|
+
`+e.repeat(" ",n+this.position-i+s.length)+"^"},r.prototype.toString=function(n){n===void 0&&(n=!0);var o,s="";return this.name&&(s+='in "'+this.name+'" '),s+="at line "+(this.line+1)+", column "+(this.column+1),n||(o=this.getSnippet(),o&&(s+=`:
|
|
84
|
+
`+o)),s},r})();return Ti=t,Ti}var os={},ss={},Nd;function et(){if(Nd)return ss;Nd=1,Object.defineProperty(ss,"__esModule",{value:!0});var e=Hr(),t=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];function n(s){var i={};return s!==null&&Object.keys(s).forEach(function(c){s[c].forEach(function(a){i[String(a)]=c})}),i}var o=(function(){function s(i,c){if(c=c||{},Object.keys(c).forEach(function(a){if(t.indexOf(a)===-1)throw new e('Unknown option "'+a+'" is met in definition of "'+i+'" YAML type.')}),this.tag=i,this.kind=c.kind||null,this.resolve=c.resolve||function(){return!0},this.construct=c.construct||function(a){return a},this.instanceOf=c.instanceOf||null,this.predicate=c.predicate||null,this.represent=c.represent||null,this.defaultStyle=c.defaultStyle||null,this.styleAliases=n(c.styleAliases||null),r.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+i+'" YAML type.')}return s})();return ss.Type=o,ss}var jd;function Qr(){if(jd)return os;jd=1,Object.defineProperty(os,"__esModule",{value:!0});var e=$r(),t=Hr(),r=et();function n(i,c,a){var p=[];return i.include.forEach(function(l){a=n(l,c,a)}),i[c].forEach(function(l){a.forEach(function(d,y){d.tag===l.tag&&p.push(y)}),a.push(l)}),a.filter(function(l,d){return p.indexOf(d)===-1})}function o(){var i={},c,a;function p(l){i[l.tag]=l}for(c=0,a=arguments.length;c<a;c+=1)arguments[c].forEach(p);return i}var s=(function(){function i(c){this.include=c.include||[],this.implicit=c.implicit||[],this.explicit=c.explicit||[],this.implicit.forEach(function(a){if(a.loadKind&&a.loadKind!=="scalar")throw new t("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=n(this,"implicit",[]),this.compiledExplicit=n(this,"explicit",[]),this.compiledTypeMap=o(this.compiledImplicit,this.compiledExplicit)}return i.DEFAULT=null,i.create=function(){var c,a;switch(arguments.length){case 1:c=i.DEFAULT,a=arguments[0];break;case 2:c=arguments[0],a=arguments[1];break;default:throw new t("Wrong number of arguments for Schema.create function")}if(c=e.toArray(c),a=e.toArray(a),!c.every(function(p){return p instanceof i}))throw new t("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!a.every(function(p){return p instanceof r.Type}))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new i({include:c,explicit:a})},i})();return os.Schema=s,os}var _i,Ad;function O1(){if(Ad)return _i;Ad=1;var e=et();return _i=new e.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),_i}var Pi,Rd;function N1(){if(Rd)return Pi;Rd=1;var e=et();return Pi=new e.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Pi}var Si,Cd;function j1(){if(Cd)return Si;Cd=1;var e=et();return Si=new e.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Si}var ki,Dd;function A1(){if(Dd)return ki;Dd=1;var e=Qr();return ki=new e.Schema({explicit:[O1(),N1(),j1()]}),ki}var Oi,qd;function R1(){if(qd)return Oi;qd=1;var e=et();function t(o){if(o===null)return!0;var s=o.length;return s===1&&o==="~"||s===4&&(o==="null"||o==="Null"||o==="NULL")}function r(){return null}function n(o){return o===null}return Oi=new e.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:t,construct:r,predicate:n,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),Oi}var Ni,Ld;function C1(){if(Ld)return Ni;Ld=1;var e=et();function t(o){if(o===null)return!1;var s=o.length;return s===4&&(o==="true"||o==="True"||o==="TRUE")||s===5&&(o==="false"||o==="False"||o==="FALSE")}function r(o){return o==="true"||o==="True"||o==="TRUE"}function n(o){return Object.prototype.toString.call(o)==="[object Boolean]"}return Ni=new e.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:t,construct:r,predicate:n,represent:{lowercase:function(o){return o?"true":"false"},uppercase:function(o){return o?"TRUE":"FALSE"},camelcase:function(o){return o?"True":"False"}},defaultStyle:"lowercase"}),Ni}var ji,Md;function D1(){if(Md)return ji;Md=1;var e=$r(),t=et();function r(a){return 48<=a&&a<=57||65<=a&&a<=70||97<=a&&a<=102}function n(a){return 48<=a&&a<=55}function o(a){return 48<=a&&a<=57}function s(a){if(a===null)return!1;var p=a.length,l=0,d=!1,y;if(!p)return!1;if(y=a[l],(y==="-"||y==="+")&&(y=a[++l]),y==="0"){if(l+1===p)return!0;if(y=a[++l],y==="b"){for(l++;l<p;l++)if(y=a[l],y!=="_"){if(y!=="0"&&y!=="1")return!1;d=!0}return d}if(y==="x"){for(l++;l<p;l++)if(y=a[l],y!=="_"){if(!r(a.charCodeAt(l)))return!1;d=!0}return d}for(;l<p;l++)if(y=a[l],y!=="_"){if(!n(a.charCodeAt(l)))return!1;d=!0}return d}for(;l<p;l++)if(y=a[l],y!=="_"){if(y===":")break;if(!o(a.charCodeAt(l)))return!1;d=!0}return d?y!==":"?!0:/^(:[0-5]?[0-9])+$/.test(a.slice(l)):!1}function i(a){var p=a,l=1,d,y,m=[];return p.indexOf("_")!==-1&&(p=p.replace(/_/g,"")),d=p[0],(d==="-"||d==="+")&&(d==="-"&&(l=-1),p=p.slice(1),d=p[0]),p==="0"?0:d==="0"?p[1]==="b"?l*parseInt(p.slice(2),2):p[1]==="x"?l*parseInt(p,16):l*parseInt(p,8):p.indexOf(":")!==-1?(p.split(":").forEach(function(h){m.unshift(parseInt(h,10))}),p=0,y=1,m.forEach(function(h){p+=h*y,y*=60}),l*p):l*parseInt(p,10)}function c(a){return Object.prototype.toString.call(a)==="[object Number]"&&a%1===0&&!e.isNegativeZero(a)}return ji=new t.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:s,construct:i,predicate:c,represent:{binary:function(a){return"0b"+a.toString(2)},octal:function(a){return"0"+a.toString(8)},decimal:function(a){return a.toString(10)},hexadecimal:function(a){return"0x"+a.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ji}var Ai,Vd;function q1(){if(Vd)return Ai;Vd=1;var e=$r(),t=et(),r=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 n(c){return!(c===null||!r.test(c))}function o(c){var a,p,l,d;return a=c.replace(/_/g,"").toLowerCase(),p=a[0]==="-"?-1:1,d=[],0<="+-".indexOf(a[0])&&(a=a.slice(1)),a===".inf"?p===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:a===".nan"?NaN:0<=a.indexOf(":")?(a.split(":").forEach(function(y){d.unshift(parseFloat(y,10))}),a=0,l=1,d.forEach(function(y){a+=y*l,l*=60}),p*a):p*parseFloat(a,10)}function s(c,a){if(isNaN(c))switch(a){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===c)switch(a){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===c)switch(a){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(c))return"-0.0";return c.toString(10)}function i(c){return Object.prototype.toString.call(c)==="[object Number]"&&(c%1!==0||e.isNegativeZero(c))}return Ai=new t.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:n,construct:o,predicate:i,represent:s,defaultStyle:"lowercase"}),Ai}var Ri,zd;function L1(){if(zd)return Ri;zd=1;var e=Qr();return Ri=new e.Schema({include:[A1()],implicit:[R1(),C1(),D1(),q1()]}),Ri}var Ci,Fd;function M1(){if(Fd)return Ci;Fd=1;var e=Qr();return Ci=new e.Schema({include:[L1()]}),Ci}var Di,Ud;function V1(){if(Ud)return Di;Ud=1;var e=et(),t=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 r(s){if(s===null)return!1;var i;return i=t.exec(s),i!==null}function n(s){var i,c,a,p,l,d,y,m=0,h=null,$,b,E;if(i=t.exec(s),i===null)throw new Error("Date resolve error");if(c=+i[1],a=+i[2]-1,p=+i[3],!i[4])return new Date(Date.UTC(c,a,p));if(l=+i[4],d=+i[5],y=+i[6],i[7]){for(m=i[7].slice(0,3);m.length<3;)m=m+"0";m=+m}return i[9]&&($=+i[10],b=+(i[11]||0),h=($*60+b)*6e4,i[9]==="-"&&(h=-h)),E=new Date(Date.UTC(c,a,p,l,d,y,m)),h&&E.setTime(E.getTime()-h),E}function o(s){return s.toISOString()}return Di=new e.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:r,construct:n,instanceOf:Date,represent:o}),Di}var qi,Bd;function z1(){if(Bd)return qi;Bd=1;var e=et();function t(r){return r==="<<"||r===null}return qi=new e.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),qi}var Li,Kd;function F1(){if(Kd)return Li;Kd=1;var e=Af().Buffer,t=et(),r=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
85
|
+
\r`;function n(c){if(c===null)return!1;var a,p,l=0,d=c.length,y=r;for(p=0;p<d;p++)if(a=y.indexOf(c.charAt(p)),!(a>64)){if(a<0)return!1;l+=6}return l%8===0}function o(c){var a,p,l=c.replace(/[\r\n=]/g,""),d=l.length,y=r,m=0,h=[];for(a=0;a<d;a++)a%4===0&&a&&(h.push(m>>16&255),h.push(m>>8&255),h.push(m&255)),m=m<<6|y.indexOf(l.charAt(a));return p=d%4*6,p===0?(h.push(m>>16&255),h.push(m>>8&255),h.push(m&255)):p===18?(h.push(m>>10&255),h.push(m>>2&255)):p===12&&h.push(m>>4&255),e?new e(h):h}function s(c){var a="",p=0,l,d,y=c.length,m=r;for(l=0;l<y;l++)l%3===0&&l&&(a+=m[p>>18&63],a+=m[p>>12&63],a+=m[p>>6&63],a+=m[p&63]),p=(p<<8)+c[l];return d=y%3,d===0?(a+=m[p>>18&63],a+=m[p>>12&63],a+=m[p>>6&63],a+=m[p&63]):d===2?(a+=m[p>>10&63],a+=m[p>>4&63],a+=m[p<<2&63],a+=m[64]):d===1&&(a+=m[p>>2&63],a+=m[p<<4&63],a+=m[64],a+=m[64]),a}function i(c){return e&&e.isBuffer(c)}return Li=new t.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:n,construct:o,predicate:i,represent:s}),Li}var Mi,Gd;function U1(){if(Gd)return Mi;Gd=1;var e=et(),t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function n(s){if(s===null)return!0;var i=[],c,a,p,l,d,y=s;for(c=0,a=y.length;c<a;c+=1){if(p=y[c],d=!1,r.call(p)!=="[object Object]")return!1;for(l in p)if(t.call(p,l))if(!d)d=!0;else return!1;if(!d)return!1;if(i.indexOf(l)===-1)i.push(l);else return!1}return!0}function o(s){return s!==null?s:[]}return Mi=new e.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:n,construct:o}),Mi}var Vi,Yd;function B1(){if(Yd)return Vi;Yd=1;var e=et(),t=ns(),r=Object.prototype.toString;function n(s){if(s===null)return!0;if(s.kind!=t.Kind.SEQ)return!1;var i,c,a,p=s.items;for(i=0,c=p.length;i<c;i+=1)if(a=p[i],r.call(a)!=="[object Object]"||!Array.isArray(a.mappings)||a.mappings.length!==1)return!1;return!0}function o(s){if(s===null||!Array.isArray(s.items))return[];var i,c,a,p=s.items;for(a=t.newItems(),a.parent=s.parent,a.startPosition=s.startPosition,a.endPosition=s.endPosition,i=0,c=p.length;i<c;i+=1){var l=p[i],d=l.mappings[0],y=t.newItems();y.parent=a,y.startPosition=d.key.startPosition,y.endPosition=d.value.startPosition,d.key.parent=y,d.value.parent=y,y.items=[d.key,d.value],a.items.push(y)}return a}return Vi=new e.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:n,construct:o}),Vi}var zi,Wd;function K1(){if(Wd)return zi;Wd=1;var e=et(),t=ns();function r(o){return o===null?!0:o.kind==t.Kind.MAP}function n(o){return o!==null?o:{}}return zi=new e.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:n}),zi}var Fi,Hd;function Ui(){if(Hd)return Fi;Hd=1;var e=Qr(),t=new e.Schema({include:[M1()],implicit:[V1(),z1()],explicit:[F1(),U1(),B1(),K1()]});return Fi=t,Fi}var Bi,Qd;function G1(){if(Qd)return Bi;Qd=1;var e=et();function t(){return!0}function r(){}function n(){return""}function o(s){return typeof s>"u"}return Bi=new e.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:t,construct:r,predicate:o,represent:n}),Bi}var Ki,Jd;function Y1(){if(Jd)return Ki;Jd=1;var e=et();function t(s){if(s===null||s.length===0)return!1;var i=s,c=/\/([gim]*)$/.exec(s),a="";if(i[0]==="/"){if(c&&(a=c[1]),a.length>3||i[i.length-a.length-1]!=="/")return!1;i=i.slice(1,i.length-a.length-1)}try{return!0}catch{return!1}}function r(s){var i=s,c=/\/([gim]*)$/.exec(s),a="";return i[0]==="/"&&(c&&(a=c[1]),i=i.slice(1,i.length-a.length-1)),new RegExp(i,a)}function n(s){var i="/"+s.source+"/";return s.global&&(i+="g"),s.multiline&&(i+="m"),s.ignoreCase&&(i+="i"),i}function o(s){return Object.prototype.toString.call(s)==="[object RegExp]"}return Ki=new e.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:t,construct:r,predicate:o,represent:n}),Ki}var Gi,Xd;function Zd(){if(Xd)return Gi;Xd=1;var e=Qr(),t=new e.Schema({include:[Ui()],explicit:[G1(),Y1()]});return e.Schema.DEFAULT=t,Gi=t,Gi}var ef;function W1(){if(ef)return It;ef=1,Object.defineProperty(It,"__esModule",{value:!0});var e=ns(),t=$r(),r=Hr(),n=k1(),o=Ui(),s=Zd(),i=Object.prototype.hasOwnProperty,c=1,a=2,p=3,l=4,d=1,y=2,m=3,h=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,$=/[\x85\u2028\u2029]/,b=/[,\[\]\{\}]/,E=/^(?:!|!!|![a-z\-]+!)$/i,w=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function f(u){return u===10||u===13}function I(u){return u===9||u===32}function g(u){return u===9||u===32||u===10||u===13}function v(u){return u===44||u===91||u===93||u===123||u===125}function x(u){var U;return 48<=u&&u<=57?u-48:(U=u|32,97<=U&&U<=102?U-97+10:-1)}function N(u){return u===120?2:u===117?4:u===85?8:0}function K(u){return 48<=u&&u<=57?u-48:-1}function R(u){return u===48?"\0":u===97?"\x07":u===98?"\b":u===116||u===9?" ":u===110?`
|
|
86
|
+
`:u===118?"\v":u===102?"\f":u===114?"\r":u===101?"\x1B":u===32?" ":u===34?'"':u===47?"/":u===92?"\\":u===78?"\x85":u===95?"\xA0":u===76?"\u2028":u===80?"\u2029":""}function C(u){return u<=65535?String.fromCharCode(u):String.fromCharCode((u-65536>>10)+55296,(u-65536&1023)+56320)}for(var F=new Array(256),O=new Array(256),z=new Array(256),me=new Array(256),we=0;we<256;we++)me[we]=O[we]=R(we),F[we]=O[we]?1:0,z[we]=1,F[we]||(me[we]="\\"+String.fromCharCode(we));var Te=(function(){function u(U,M){this.errorMap={},this.errors=[],this.lines=[],this.input=U,this.filename=M.filename||null,this.schema=M.schema||s,this.onWarning=M.onWarning||null,this.legacy=M.legacy||!1,this.allowAnyEscape=M.allowAnyEscape||!1,this.ignoreDuplicateKeys=M.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=U.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}return u})();function ve(u,U,M){return M===void 0&&(M=!1),new r(U,new n(u.filename,u.input,u.position,u.line,u.position-u.lineStart),M)}function je(u,U,M,G,X){G===void 0&&(G=!1),X===void 0&&(X=!1);var Q=_(u,U);if(Q){var ee=M+U;if(!u.errorMap[ee]){var le=new n(u.filename,u.input,U,Q.line,U-Q.start);X&&(le.toLineEnd=!0);var ue=new r(M,le,G);u.errors.push(ue)}}}function q(u,U){var M=ve(u,U),G=M.message+M.mark.position;if(!u.errorMap[G]){u.errors.push(M),u.errorMap[G]=1;for(var X=u.position;;){if(u.position>=u.input.length-1)return;var Q=u.input.charAt(u.position);if(Q==`
|
|
87
|
+
`){u.position--,u.position==X&&(u.position+=1);return}if(Q=="\r"){u.position--,u.position==X&&(u.position+=1);return}u.position++}}}function A(u,U){var M=ve(u,U);u.onWarning&&u.onWarning.call(null,M)}var H={YAML:function(u,U,M){var G,X,Q;u.version!==null&&q(u,"duplication of %YAML directive"),M.length!==1&&q(u,"YAML directive accepts exactly one argument"),G=/^([0-9]+)\.([0-9]+)$/.exec(M[0]),G===null&&q(u,"ill-formed argument of the YAML directive"),X=parseInt(G[1],10),Q=parseInt(G[2],10),X!==1&&q(u,"found incompatible YAML document (version 1.2 is required)"),u.version=M[0],u.checkLineBreaks=Q<2,Q!==2&&q(u,"found incompatible YAML document (version 1.2 is required)")},TAG:function(u,U,M){var G,X;M.length!==2&&q(u,"TAG directive accepts exactly two arguments"),G=M[0],X=M[1],E.test(G)||q(u,"ill-formed tag handle (first argument) of the TAG directive"),i.call(u.tagMap,G)&&q(u,'there is a previously declared suffix for "'+G+'" tag handle'),w.test(X)||q(u,"ill-formed tag prefix (second argument) of the TAG directive"),u.tagMap[G]=X}};function D(u,U,M,G){var X,Q,ee,le,ue=u.result;if(ue.startPosition==-1&&(ue.startPosition=U),U<=M){if(le=u.input.slice(U,M),G)for(X=0,Q=le.length;X<Q;X+=1)ee=le.charCodeAt(X),ee===9||32<=ee&&ee<=1114111||q(u,"expected valid JSON character");else h.test(le)&&q(u,"the stream contains non-printable characters");ue.value+=le,ue.endPosition=M}}function T(u,U,M,G,X){if(G!=null){U===null&&(U={startPosition:G.startPosition,endPosition:X.endPosition,parent:null,errors:[],mappings:[],kind:e.Kind.MAP});var Q=e.newMapping(G,X);return Q.parent=U,G.parent=Q,X!=null&&(X.parent=Q),!u.ignoreDuplicateKeys&&U.mappings.forEach(function(ee){ee.key&&ee.key.value===(Q.key&&Q.key.value)&&(je(u,Q.key.startPosition,"duplicate key"),je(u,ee.key.startPosition,"duplicate key"))}),U.mappings.push(Q),U.endPosition=X?X.endPosition:G.endPosition+1,U}}function S(u){var U;U=u.input.charCodeAt(u.position),U===10?u.position++:U===13?(u.position++,u.input.charCodeAt(u.position)===10&&u.position++):q(u,"a line break is expected"),u.line+=1,u.lineStart=u.position,u.lines.push({start:u.lineStart,line:u.line})}function _(u,U){for(var M,G=0;G<u.lines.length&&!(u.lines[G].start>U);G++)M=u.lines[G];return M||{start:0,line:0}}function L(u,U,M){for(var G=0,X=u.input.charCodeAt(u.position);X!==0;){for(;I(X);)X===9&&u.errors.push(ve(u,"Using tabs can lead to unpredictable results",!0)),X=u.input.charCodeAt(++u.position);if(U&&X===35)do X=u.input.charCodeAt(++u.position);while(X!==10&&X!==13&&X!==0);if(f(X))for(S(u),X=u.input.charCodeAt(u.position),G++,u.lineIndent=0;X===32;)u.lineIndent++,X=u.input.charCodeAt(++u.position);else break}return M!==-1&&G!==0&&u.lineIndent<M&&A(u,"deficient indentation"),G}function V(u){var U=u.position,M;return M=u.input.charCodeAt(U),!!((M===45||M===46)&&u.input.charCodeAt(U+1)===M&&u.input.charCodeAt(U+2)===M&&(U+=3,M=u.input.charCodeAt(U),M===0||g(M)))}function J(u,U,M){M===1?U.value+=" ":M>1&&(U.value+=t.repeat(`
|
|
88
|
+
`,M-1))}function ie(u,U,M){var G,X,Q,ee,le,ue,qe,de,_e=u.kind,Ce=u.result,be,Oe=e.newScalar();if(Oe.plainScalar=!0,u.result=Oe,be=u.input.charCodeAt(u.position),g(be)||v(be)||be===35||be===38||be===42||be===33||be===124||be===62||be===39||be===34||be===37||be===64||be===96||(be===63||be===45)&&(X=u.input.charCodeAt(u.position+1),g(X)||M&&v(X)))return!1;for(u.kind="scalar",Q=ee=u.position,le=!1;be!==0;){if(be===58){if(X=u.input.charCodeAt(u.position+1),g(X)||M&&v(X))break}else if(be===35){if(G=u.input.charCodeAt(u.position-1),g(G))break}else{if(u.position===u.lineStart&&V(u)||M&&v(be))break;if(f(be))if(ue=u.line,qe=u.lineStart,de=u.lineIndent,L(u,!1,-1),u.lineIndent>=U){le=!0,be=u.input.charCodeAt(u.position);continue}else{u.position=ee,u.line=ue,u.lineStart=qe,u.lineIndent=de;break}}if(le&&(D(u,Q,ee,!1),J(u,Oe,u.line-ue),Q=ee=u.position,le=!1),I(be)||(ee=u.position+1),be=u.input.charCodeAt(++u.position),u.position>=u.input.length)return!1}return D(u,Q,ee,!1),u.result.startPosition!=-1?(Oe.rawValue=u.input.substring(Oe.startPosition,Oe.endPosition),!0):(u.kind=_e,u.result=Ce,!1)}function k(u,U){var M,G,X;if(M=u.input.charCodeAt(u.position),M!==39)return!1;var Q=e.newScalar();for(Q.singleQuoted=!0,u.kind="scalar",u.result=Q,Q.startPosition=u.position,u.position++,G=X=u.position;(M=u.input.charCodeAt(u.position))!==0;)if(M===39)if(D(u,G,u.position,!0),M=u.input.charCodeAt(++u.position),Q.endPosition=u.position,M===39)G=X=u.position,u.position++;else return!0;else f(M)?(D(u,G,X,!0),J(u,Q,L(u,!1,U)),G=X=u.position):u.position===u.lineStart&&V(u)?q(u,"unexpected end of the document within a single quoted scalar"):(u.position++,X=u.position,Q.endPosition=u.position);q(u,"unexpected end of the stream within a single quoted scalar")}function j(u,U){var M,G,X,Q,ee,le;if(le=u.input.charCodeAt(u.position),le!==34)return!1;u.kind="scalar";var ue=e.newScalar();for(ue.doubleQuoted=!0,u.result=ue,ue.startPosition=u.position,u.position++,M=G=u.position;(le=u.input.charCodeAt(u.position))!==0;){if(le===34)return D(u,M,u.position,!0),u.position++,ue.endPosition=u.position,ue.rawValue=u.input.substring(ue.startPosition,ue.endPosition),!0;if(le===92){if(D(u,M,u.position,!0),le=u.input.charCodeAt(++u.position),f(le))L(u,!1,U);else if(le<256&&(u.allowAnyEscape?z[le]:F[le]))ue.value+=u.allowAnyEscape?me[le]:O[le],u.position++;else if((ee=N(le))>0){for(X=ee,Q=0;X>0;X--)le=u.input.charCodeAt(++u.position),(ee=x(le))>=0?Q=(Q<<4)+ee:q(u,"expected hexadecimal character");ue.value+=C(Q),u.position++}else q(u,"unknown escape sequence");M=G=u.position}else f(le)?(D(u,M,G,!0),J(u,ue,L(u,!1,U)),M=G=u.position):u.position===u.lineStart&&V(u)?q(u,"unexpected end of the document within a double quoted scalar"):(u.position++,G=u.position)}q(u,"unexpected end of the stream within a double quoted scalar")}function Y(u,U){var M=!0,G,X=u.tag,Q,ee=u.anchor,le,ue,qe,de,_e,Ce,be,Oe,We;if(We=u.input.charCodeAt(u.position),We===91)ue=93,_e=!1,Q=e.newItems(),Q.startPosition=u.position;else if(We===123)ue=125,_e=!0,Q=e.newMap(),Q.startPosition=u.position;else return!1;for(u.anchor!==null&&(Q.anchorId=u.anchor,u.anchorMap[u.anchor]=Q),We=u.input.charCodeAt(++u.position);We!==0;){if(L(u,!0,U),We=u.input.charCodeAt(u.position),We===ue)return u.position++,u.tag=X,u.anchor=ee,u.kind=_e?"mapping":"sequence",u.result=Q,Q.endPosition=u.position,!0;if(!M){var cs=u.position;q(u,"missed comma between flow collection entries"),u.position=cs+1}if(be=Ce=Oe=null,qe=de=!1,We===63&&(le=u.input.charCodeAt(u.position+1),g(le)&&(qe=de=!0,u.position++,L(u,!0,U))),G=u.line,Z(u,U,c,!1,!0),be=u.tag,Ce=u.result,L(u,!0,U),We=u.input.charCodeAt(u.position),(de||u.line===G)&&We===58&&(qe=!0,We=u.input.charCodeAt(++u.position),L(u,!0,U),Z(u,U,c,!1,!0),Oe=u.result),_e)T(u,Q,be,Ce,Oe);else if(qe){var Zr=T(u,null,be,Ce,Oe);Zr.parent=Q,Q.items.push(Zr)}else Ce&&(Ce.parent=Q),Q.items.push(Ce);Q.endPosition=u.position+1,L(u,!0,U),We=u.input.charCodeAt(u.position),We===44?(M=!0,We=u.input.charCodeAt(++u.position)):M=!1}q(u,"unexpected end of the stream within a flow collection")}function te(u,U){var M,G,X=d,Q=!1,ee=U,le=0,ue=!1,qe,de;if(de=u.input.charCodeAt(u.position),de===124)G=!1;else if(de===62)G=!0;else return!1;var _e=e.newScalar();for(u.kind="scalar",u.result=_e,_e.startPosition=u.position;de!==0;)if(de=u.input.charCodeAt(++u.position),de===43||de===45)d===X?X=de===43?m:y:q(u,"repeat of a chomping mode identifier");else if((qe=K(de))>=0)qe===0?q(u,"bad explicit indentation width of a block scalar; it cannot be less than one"):Q?q(u,"repeat of an indentation width identifier"):(ee=U+qe-1,Q=!0);else break;if(I(de)){do de=u.input.charCodeAt(++u.position);while(I(de));if(de===35)do de=u.input.charCodeAt(++u.position);while(!f(de)&&de!==0)}for(;de!==0;){for(S(u),u.lineIndent=0,de=u.input.charCodeAt(u.position);(!Q||u.lineIndent<ee)&&de===32;)u.lineIndent++,de=u.input.charCodeAt(++u.position);if(!Q&&u.lineIndent>ee&&(ee=u.lineIndent),f(de)){le++;continue}if(u.lineIndent<ee){X===m?_e.value+=t.repeat(`
|
|
89
|
+
`,le):X===d&&Q&&(_e.value+=`
|
|
90
|
+
`);break}for(G?I(de)?(ue=!0,_e.value+=t.repeat(`
|
|
91
|
+
`,le+1)):ue?(ue=!1,_e.value+=t.repeat(`
|
|
92
|
+
`,le+1)):le===0?Q&&(_e.value+=" "):_e.value+=t.repeat(`
|
|
93
|
+
`,le):Q&&(_e.value+=t.repeat(`
|
|
94
|
+
`,le+1)),Q=!0,le=0,M=u.position;!f(de)&&de!==0;)de=u.input.charCodeAt(++u.position);D(u,M,u.position,!1)}_e.endPosition=u.position;for(var Ce=u.position-1;;){var be=u.input[Ce];if(be=="\r"||be==`
|
|
95
|
+
`||be!=" "&&be!=" ")break;Ce--}return _e.endPosition=Ce,_e.rawValue=u.input.substring(_e.startPosition,_e.endPosition),!0}function ce(u,U){var M,G=u.tag,X=u.anchor,Q=e.newItems(),ee,le=!1,ue;for(u.anchor!==null&&(Q.anchorId=u.anchor,u.anchorMap[u.anchor]=Q),Q.startPosition=u.position,ue=u.input.charCodeAt(u.position);ue!==0&&!(ue!==45||(ee=u.input.charCodeAt(u.position+1),!g(ee)));){if(le=!0,u.position++,L(u,!0,-1)&&u.lineIndent<=U){Q.items.push(null),ue=u.input.charCodeAt(u.position);continue}if(M=u.line,Z(u,U,p,!1,!0),u.result&&(u.result.parent=Q,Q.items.push(u.result)),L(u,!0,-1),ue=u.input.charCodeAt(u.position),(u.line===M||u.lineIndent>U)&&ue!==0)q(u,"bad indentation of a sequence entry");else if(u.lineIndent<U)break}return Q.endPosition=u.position,le?(u.tag=G,u.anchor=X,u.kind="sequence",u.result=Q,Q.endPosition=u.position,!0):!1}function ye(u,U,M){var G,X,Q,ee=u.tag,le=u.anchor,ue=e.newMap(),qe=null,de=null,_e=null,Ce=!1,be=!1,Oe;for(ue.startPosition=u.position,u.anchor!==null&&(ue.anchorId=u.anchor,u.anchorMap[u.anchor]=ue),Oe=u.input.charCodeAt(u.position);Oe!==0;){if(G=u.input.charCodeAt(u.position+1),Q=u.line,(Oe===63||Oe===58)&&g(G))Oe===63?(Ce&&(T(u,ue,qe,de,null),qe=de=_e=null),be=!0,Ce=!0,X=!0):Ce?(Ce=!1,X=!0):q(u,"incomplete explicit mapping pair; a key node is missed"),u.position+=1,Oe=G;else if(Z(u,M,a,!1,!0))if(u.line===Q){for(Oe=u.input.charCodeAt(u.position);I(Oe);)Oe=u.input.charCodeAt(++u.position);if(Oe===58)Oe=u.input.charCodeAt(++u.position),g(Oe)||q(u,"a whitespace character is expected after the key-value separator within a block mapping"),Ce&&(T(u,ue,qe,de,null),qe=de=_e=null),be=!0,Ce=!1,X=!1,qe=u.tag,de=u.result;else{if(u.position==u.lineStart&&V(u))break;if(be)q(u,"can not read an implicit mapping pair; a colon is missed");else return u.tag=ee,u.anchor=le,!0}}else if(be){for(q(u,"can not read a block mapping entry; a multiline key may not be an implicit key");u.position>0;)if(Oe=u.input.charCodeAt(--u.position),f(Oe)){u.position++;break}}else return u.tag=ee,u.anchor=le,!0;else break;if((u.line===Q||u.lineIndent>U)&&(Z(u,U,l,!0,X)&&(Ce?de=u.result:_e=u.result),Ce||(T(u,ue,qe,de,_e),qe=de=_e=null),L(u,!0,-1),Oe=u.input.charCodeAt(u.position)),u.lineIndent>U&&Oe!==0)q(u,"bad indentation of a mapping entry");else if(u.lineIndent<U)break}return Ce&&T(u,ue,qe,de,null),be&&(u.tag=ee,u.anchor=le,u.kind="mapping",u.result=ue),be}function P(u){var U,M=!1,G=!1,X,Q,ee;if(ee=u.input.charCodeAt(u.position),ee!==33)return!1;if(u.tag!==null&&q(u,"duplication of a tag property"),ee=u.input.charCodeAt(++u.position),ee===60?(M=!0,ee=u.input.charCodeAt(++u.position)):ee===33?(G=!0,X="!!",ee=u.input.charCodeAt(++u.position)):X="!",U=u.position,M){do ee=u.input.charCodeAt(++u.position);while(ee!==0&&ee!==62);u.position<u.length?(Q=u.input.slice(U,u.position),ee=u.input.charCodeAt(++u.position)):q(u,"unexpected end of the stream within a verbatim tag")}else{for(;ee!==0&&!g(ee);)ee===33&&(G?q(u,"tag suffix cannot contain exclamation marks"):(X=u.input.slice(U-1,u.position+1),E.test(X)||q(u,"named tag handle cannot contain such characters"),G=!0,U=u.position+1)),ee=u.input.charCodeAt(++u.position);Q=u.input.slice(U,u.position),b.test(Q)&&q(u,"tag suffix cannot contain flow indicator characters")}return Q&&!w.test(Q)&&q(u,"tag name cannot contain such characters: "+Q),M?u.tag=Q:i.call(u.tagMap,X)?u.tag=u.tagMap[X]+Q:X==="!"?u.tag="!"+Q:X==="!!"?u.tag="tag:yaml.org,2002:"+Q:q(u,'undeclared tag handle "'+X+'"'),!0}function W(u){var U,M;if(M=u.input.charCodeAt(u.position),M!==38)return!1;for(u.anchor!==null&&q(u,"duplication of an anchor property"),M=u.input.charCodeAt(++u.position),U=u.position;M!==0&&!g(M)&&!v(M);)M=u.input.charCodeAt(++u.position);return u.position===U&&q(u,"name of an anchor node must contain at least one character"),u.anchor=u.input.slice(U,u.position),!0}function ne(u){var U,M,G;if(G=u.input.charCodeAt(u.position),G!==42)return!1;for(G=u.input.charCodeAt(++u.position),U=u.position;G!==0&&!g(G)&&!v(G);)G=u.input.charCodeAt(++u.position);return u.position<=U&&(q(u,"name of an alias node must contain at least one character"),u.position=U+1),M=u.input.slice(U,u.position),u.anchorMap.hasOwnProperty(M)||(q(u,'unidentified alias "'+M+'"'),u.position<=U&&(u.position=U+1)),u.result=e.newAnchorRef(M,U,u.position,u.anchorMap[M]),L(u,!0,-1),!0}function Z(u,U,M,G,X){var Q,ee,le,ue=1,qe=!1,de=!1,_e,Ce,be,Oe,We;u.tag=null,u.anchor=null,u.kind=null,u.result=null,Q=ee=le=l===M||p===M,G&&L(u,!0,-1)&&(qe=!0,u.lineIndent>U?ue=1:u.lineIndent===U?ue=0:u.lineIndent<U&&(ue=-1));var cs=u.position;if(ue===1)for(;P(u)||W(u);)L(u,!0,-1)?(qe=!0,le=Q,u.lineIndent>U?ue=1:u.lineIndent===U?ue=0:u.lineIndent<U&&(ue=-1)):le=!1;if(le&&(le=qe||X),(ue===1||l===M)&&(c===M||a===M?Oe=U:Oe=U+1,We=u.position-u.lineStart,ue===1?le&&(ce(u,We)||ye(u,We,Oe))||Y(u,Oe)?de=!0:(ee&&te(u,Oe)||k(u,Oe)||j(u,Oe)?de=!0:ne(u)?(de=!0,(u.tag!==null||u.anchor!==null)&&q(u,"alias node should not have any properties")):ie(u,Oe,c===M)&&(de=!0,u.tag===null&&(u.tag="?")),u.anchor!==null&&(u.anchorMap[u.anchor]=u.result,u.result.anchorId=u.anchor)):ue===0&&(de=le&&ce(u,We))),u.tag!==null&&u.tag!=="!")if(u.tag=="!include")u.result||(u.result=e.newScalar(),u.result.startPosition=u.position,u.result.endPosition=u.position,q(u,"!include without value")),u.result.kind=e.Kind.INCLUDE_REF;else if(u.tag==="?")for(_e=0,Ce=u.implicitTypes.length;_e<Ce;_e+=1){be=u.implicitTypes[_e];var Zr=u.result.value;if(be.resolve(Zr)){u.result.valueObject=be.construct(u.result.value),u.tag=be.tag,u.anchor!==null&&(u.result.anchorId=u.anchor,u.anchorMap[u.anchor]=u.result);break}}else i.call(u.typeMap,u.tag)?(be=u.typeMap[u.tag],u.result!==null&&be.kind!==u.kind&&q(u,"unacceptable node kind for !<"+u.tag+'> tag; it should be "'+be.kind+'", not "'+u.kind+'"'),be.resolve(u.result)?(u.result=be.construct(u.result),u.anchor!==null&&(u.result.anchorId=u.anchor,u.anchorMap[u.anchor]=u.result)):q(u,"cannot resolve a node with !<"+u.tag+"> explicit tag")):je(u,cs,"unknown tag <"+u.tag+">",!1,!0);return u.tag!==null||u.anchor!==null||de}function re(u){var U=u.position,M,G,X,Q=!1,ee;for(u.version=null,u.checkLineBreaks=u.legacy,u.tagMap={},u.anchorMap={};(ee=u.input.charCodeAt(u.position))!==0&&(L(u,!0,-1),ee=u.input.charCodeAt(u.position),!(u.lineIndent>0||ee!==37));){for(Q=!0,ee=u.input.charCodeAt(++u.position),M=u.position;ee!==0&&!g(ee);)ee=u.input.charCodeAt(++u.position);for(G=u.input.slice(M,u.position),X=[],G.length<1&&q(u,"directive name must not be less than one character in length");ee!==0;){for(;I(ee);)ee=u.input.charCodeAt(++u.position);if(ee===35){do ee=u.input.charCodeAt(++u.position);while(ee!==0&&!f(ee));break}if(f(ee))break;for(M=u.position;ee!==0&&!g(ee);)ee=u.input.charCodeAt(++u.position);X.push(u.input.slice(M,u.position))}ee!==0&&S(u),i.call(H,G)?H[G](u,G,X):(A(u,'unknown document directive "'+G+'"'),u.position++)}if(L(u,!0,-1),u.lineIndent===0&&u.input.charCodeAt(u.position)===45&&u.input.charCodeAt(u.position+1)===45&&u.input.charCodeAt(u.position+2)===45?(u.position+=3,L(u,!0,-1)):Q&&q(u,"directives end mark is expected"),Z(u,u.lineIndent-1,l,!1,!0),L(u,!0,-1),u.checkLineBreaks&&$.test(u.input.slice(U,u.position))&&A(u,"non-ASCII line breaks are interpreted as content"),u.documents.push(u.result),u.position===u.lineStart&&V(u)){u.input.charCodeAt(u.position)===46&&(u.position+=3,L(u,!0,-1));return}if(u.position<u.length-1)q(u,"end of the stream or a document separator is expected");else return}function pe(u,U){u=String(u),U=U||{};var M=u.length;M!==0&&(u.charCodeAt(M-1)!==10&&u.charCodeAt(M-1)!==13&&(u+=`
|
|
96
|
+
`),u.charCodeAt(0)===65279&&(u=u.slice(1)));var G=new Te(u,U);for(G.input+="\0";G.input.charCodeAt(G.position)===32;)G.lineIndent+=1,G.position+=1;for(;G.position<G.length-1;){var X=G.position;if(re(G),G.position<=X)for(;G.position<G.length-1;G.position++){var Q=G.input.charAt(G.position);if(Q==`
|
|
97
|
+
`)break}}var ee=G.documents,le=ee.length;le>0&&(ee[le-1].endPosition=M);for(var ue=0,qe=ee;ue<qe.length;ue++){var de=qe[ue];de.errors=G.errors,de.startPosition>de.endPosition&&(de.startPosition=de.endPosition)}return ee}function oe(u,U,M){M===void 0&&(M={});var G=pe(u,M),X,Q;for(X=0,Q=G.length;X<Q;X+=1)U(G[X])}It.loadAll=oe;function ae(u,U){U===void 0&&(U={});var M=pe(u,U);if(M.length!==0){if(M.length===1)return M[0];var G=new r("expected a single document in the stream, but found more");return G.mark=new n("","",0,0,0),G.mark.position=M[0].endPosition,M[0].errors.push(G),M[0]}}It.load=ae;function xe(u,U,M){M===void 0&&(M={}),oe(u,U,t.extend({schema:o},M))}It.safeLoadAll=xe;function Fe(u,U){return U===void 0&&(U={}),ae(u,t.extend({schema:o},U))}return It.safeLoad=Fe,It.loadAll=oe,It.load=ae,It.safeLoadAll=xe,It.safeLoad=Fe,It}var Jr={},tf;function H1(){if(tf)return Jr;tf=1,Object.defineProperty(Jr,"__esModule",{value:!0});var e=$r(),t=Hr(),r=Zd(),n=Ui(),o=Object.prototype.toString,s=Object.prototype.hasOwnProperty,i=9,c=10,a=13,p=32,l=33,d=34,y=35,m=37,h=38,$=39,b=42,E=44,w=45,f=58,I=62,g=63,v=64,x=91,N=93,K=96,R=123,C=124,F=125,O={};O[0]="\\0",O[7]="\\a",O[8]="\\b",O[9]="\\t",O[10]="\\n",O[11]="\\v",O[12]="\\f",O[13]="\\r",O[27]="\\e",O[34]='\\"',O[92]="\\\\",O[133]="\\N",O[160]="\\_",O[8232]="\\L",O[8233]="\\P";var z=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function me(P,W){var ne,Z,re,pe,oe,ae,xe;if(W===null)return{};for(ne={},Z=Object.keys(W),re=0,pe=Z.length;re<pe;re+=1)oe=Z[re],ae=String(W[oe]),oe.slice(0,2)==="!!"&&(oe="tag:yaml.org,2002:"+oe.slice(2)),xe=P.compiledTypeMap[oe],xe&&s.call(xe.styleAliases,ae)&&(ae=xe.styleAliases[ae]),ne[oe]=ae;return ne}function we(P){var W,ne,Z;if(W=P.toString(16).toUpperCase(),P<=255)ne="x",Z=2;else if(P<=65535)ne="u",Z=4;else if(P<=4294967295)ne="U",Z=8;else throw new t("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+ne+e.repeat("0",Z-W.length)+W}function Te(P){this.schema=P.schema||r,this.indent=Math.max(1,P.indent||2),this.skipInvalid=P.skipInvalid||!1,this.flowLevel=e.isNothing(P.flowLevel)?-1:P.flowLevel,this.styleMap=me(this.schema,P.styles||null),this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function ve(P,W){for(var ne=e.repeat(" ",W),Z=0,re=-1,pe="",oe,ae=P.length;Z<ae;)re=P.indexOf(`
|
|
98
|
+
`,Z),re===-1?(oe=P.slice(Z),Z=ae):(oe=P.slice(Z,re+1),Z=re+1),oe.length&&oe!==`
|
|
99
|
+
`&&(pe+=ne),pe+=oe;return pe}function je(P,W){return`
|
|
100
|
+
`+e.repeat(" ",P.indent*W)}function q(P,W){var ne,Z,re;for(ne=0,Z=P.implicitTypes.length;ne<Z;ne+=1)if(re=P.implicitTypes[ne],re.resolve(W))return!0;return!1}function A(P){this.source=P,this.result="",this.checkpoint=0}A.prototype.takeUpTo=function(P){var W;if(P<this.checkpoint)throw W=new Error("position should be > checkpoint"),W.position=P,W.checkpoint=this.checkpoint,W;return this.result+=this.source.slice(this.checkpoint,P),this.checkpoint=P,this},A.prototype.escapeChar=function(){var P,W;return P=this.source.charCodeAt(this.checkpoint),W=O[P]||we(P),this.result+=W,this.checkpoint+=1,this},A.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function H(P,W,ne){var Z,re,pe,oe,ae,xe,Fe,u,U,M,G,X,Q,ee,le,ue,qe,de,_e,Ce,be;if(W.length===0){P.dump="''";return}if(W.indexOf("!include")==0){P.dump=""+W;return}if(W.indexOf("!$$$novalue")==0){P.dump="";return}if(z.indexOf(W)!==-1){P.dump="'"+W+"'";return}for(Z=!0,re=W.length?W.charCodeAt(0):0,pe=p===re||p===W.charCodeAt(W.length-1),(w===re||g===re||v===re||K===re)&&(Z=!1),pe?(Z=!1,oe=!1,ae=!1):(oe=!0,ae=!0),xe=!0,Fe=new A(W),u=!1,U=0,M=0,G=P.indent*ne,X=80,G<40?X-=G:X=40,ee=0;ee<W.length;ee++){if(Q=W.charCodeAt(ee),Z)if(!S(Q))Z=!1;else continue;xe&&Q===$&&(xe=!1),le=O[Q],ue=_(Q),!(!le&&!ue)&&(Q!==c&&Q!==d&&Q!==$?(oe=!1,ae=!1):Q===c&&(u=!0,xe=!1,ee>0&&(qe=W.charCodeAt(ee-1),qe===p&&(ae=!1,oe=!1)),oe&&(de=ee-U,U=ee,de>M&&(M=de))),Q!==d&&(xe=!1),Fe.takeUpTo(ee),Fe.escapeChar())}if(Z&&q(P,W)&&(Z=!1),_e="",(oe||ae)&&(Ce=0,W.charCodeAt(W.length-1)===c&&(Ce+=1,W.charCodeAt(W.length-2)===c&&(Ce+=1)),Ce===0?_e="-":Ce===2&&(_e="+")),ae&&M<X&&(oe=!1),u||(ae=!1),Z)P.dump=W;else if(xe)P.dump="'"+W+"'";else if(oe)be=D(W,X),P.dump=">"+_e+`
|
|
101
|
+
`+ve(be,G);else if(ae)_e||(W=W.replace(/\n$/,"")),P.dump="|"+_e+`
|
|
102
|
+
`+ve(W,G);else if(Fe)Fe.finish(),P.dump='"'+Fe.result+'"';else throw new Error("Failed to dump scalar value")}function D(P,W){var ne="",Z=0,re=P.length,pe=/\n+$/.exec(P),oe;for(pe&&(re=pe.index+1);Z<re;)oe=P.indexOf(`
|
|
103
|
+
`,Z),oe>re||oe===-1?(ne&&(ne+=`
|
|
104
|
+
|
|
105
|
+
`),ne+=T(P.slice(Z,re),W),Z=re):(ne&&(ne+=`
|
|
106
|
+
|
|
107
|
+
`),ne+=T(P.slice(Z,oe),W),Z=oe+1);return pe&&pe[0]!==`
|
|
108
|
+
`&&(ne+=pe[0]),ne}function T(P,W){if(P==="")return P;for(var ne=/[^\s] [^\s]/g,Z="",re=0,pe=0,oe=ne.exec(P),ae,xe,Fe;oe;)ae=oe.index,ae-pe>W&&(re!==pe?xe=re:xe=ae,Z&&(Z+=`
|
|
109
|
+
`),Fe=P.slice(pe,xe),Z+=Fe,pe=xe+1),re=ae+1,oe=ne.exec(P);return Z&&(Z+=`
|
|
110
|
+
`),pe!==re&&P.length-pe>W?Z+=P.slice(pe,re)+`
|
|
111
|
+
`+P.slice(re+1):Z+=P.slice(pe),Z}function S(P){return i!==P&&c!==P&&a!==P&&E!==P&&x!==P&&N!==P&&R!==P&&F!==P&&y!==P&&h!==P&&b!==P&&l!==P&&C!==P&&I!==P&&$!==P&&d!==P&&m!==P&&f!==P&&!O[P]&&!_(P)}function _(P){return!(32<=P&&P<=126||P===133||160<=P&&P<=55295||57344<=P&&P<=65533||65536<=P&&P<=1114111)}function L(P,W,ne){var Z="",re=P.tag,pe,oe;for(pe=0,oe=ne.length;pe<oe;pe+=1)j(P,W,ne[pe],!1,!1)&&(pe!==0&&(Z+=", "),Z+=P.dump);P.tag=re,P.dump="["+Z+"]"}function V(P,W,ne,Z){var re="",pe=P.tag,oe,ae;for(oe=0,ae=ne.length;oe<ae;oe+=1)j(P,W+1,ne[oe],!0,!0)&&((!Z||oe!==0)&&(re+=je(P,W)),re+="- "+P.dump);P.tag=pe,P.dump=re||"[]"}function J(P,W,ne){var Z="",re=P.tag,pe=Object.keys(ne),oe,ae,xe,Fe,u;for(oe=0,ae=pe.length;oe<ae;oe+=1)u="",oe!==0&&(u+=", "),xe=pe[oe],Fe=ne[xe],j(P,W,xe,!1,!1)&&(P.dump.length>1024&&(u+="? "),u+=P.dump+": ",j(P,W,Fe,!1,!1)&&(u+=P.dump,Z+=u));P.tag=re,P.dump="{"+Z+"}"}function ie(P,W,ne,Z){var re="",pe=P.tag,oe=Object.keys(ne),ae,xe,Fe,u,U,M;for(ae=0,xe=oe.length;ae<xe;ae+=1)M="",(!Z||ae!==0)&&(M+=je(P,W)),Fe=oe[ae],u=ne[Fe],j(P,W+1,Fe,!0,!0)&&(U=P.tag!==null&&P.tag!=="?"||P.dump&&P.dump.length>1024,U&&(P.dump&&c===P.dump.charCodeAt(0)?M+="?":M+="? "),M+=P.dump,U&&(M+=je(P,W)),j(P,W+1,u,!0,U)&&(P.dump&&c===P.dump.charCodeAt(0)?M+=":":M+=": ",M+=P.dump,re+=M));P.tag=pe,P.dump=re||"{}"}function k(P,W,ne){var Z,re,pe,oe,ae,xe;for(re=ne?P.explicitTypes:P.implicitTypes,pe=0,oe=re.length;pe<oe;pe+=1)if(ae=re[pe],(ae.instanceOf||ae.predicate)&&(!ae.instanceOf||typeof W=="object"&&W instanceof ae.instanceOf)&&(!ae.predicate||ae.predicate(W))){if(P.tag=ne?ae.tag:"?",ae.represent){if(xe=P.styleMap[ae.tag]||ae.defaultStyle,o.call(ae.represent)==="[object Function]")Z=ae.represent(W,xe);else if(s.call(ae.represent,xe))Z=ae.represent[xe](W,xe);else throw new t("!<"+ae.tag+'> tag resolver accepts not "'+xe+'" style');P.dump=Z}return!0}return!1}function j(P,W,ne,Z,re){P.tag=null,P.dump=ne,k(P,ne,!1)||k(P,ne,!0);var pe=o.call(P.dump);Z&&(Z=0>P.flowLevel||P.flowLevel>W),(P.tag!==null&&P.tag!=="?"||P.indent!==2&&W>0)&&(re=!1);var oe=pe==="[object Object]"||pe==="[object Array]",ae,xe;if(oe&&(ae=P.duplicates.indexOf(ne),xe=ae!==-1),xe&&P.usedDuplicates[ae])P.dump="*ref_"+ae;else{if(oe&&xe&&!P.usedDuplicates[ae]&&(P.usedDuplicates[ae]=!0),pe==="[object Object]")Z&&Object.keys(P.dump).length!==0?(ie(P,W,P.dump,re),xe&&(P.dump="&ref_"+ae+(W===0?`
|
|
112
|
+
`:"")+P.dump)):(J(P,W,P.dump),xe&&(P.dump="&ref_"+ae+" "+P.dump));else if(pe==="[object Array]")Z&&P.dump.length!==0?(V(P,W,P.dump,re),xe&&(P.dump="&ref_"+ae+(W===0?`
|
|
113
|
+
`:"")+P.dump)):(L(P,W,P.dump),xe&&(P.dump="&ref_"+ae+" "+P.dump));else if(pe==="[object String]")P.tag!=="?"&&H(P,P.dump,W);else{if(P.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+pe)}P.tag!==null&&P.tag!=="?"&&(P.dump="!<"+P.tag+"> "+P.dump)}return!0}function Y(P,W){var ne=[],Z=[],re,pe;for(te(P,ne,Z),re=0,pe=Z.length;re<pe;re+=1)W.duplicates.push(ne[Z[re]]);W.usedDuplicates=new Array(pe)}function te(P,W,ne){o.call(P);var Z,re,pe;if(P!==null&&typeof P=="object")if(re=W.indexOf(P),re!==-1)ne.indexOf(re)===-1&&ne.push(re);else if(W.push(P),Array.isArray(P))for(re=0,pe=P.length;re<pe;re+=1)te(P[re],W,ne);else for(Z=Object.keys(P),re=0,pe=Z.length;re<pe;re+=1)te(P[Z[re]],W,ne)}function ce(P,W){W=W||{};var ne=new Te(W);return Y(P,ne),j(ne,0,P,!0,!0)?ne.dump+`
|
|
114
|
+
`:""}Jr.dump=ce;function ye(P,W){return ce(P,e.extend({schema:n},W))}return Jr.safeDump=ye,Jr}var rf={},nf;function Q1(){return nf||(nf=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c){if(["true","True","TRUE"].lastIndexOf(c)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(c)>=0)return!1;throw'Invalid boolean "'+c+'"'}e.parseYamlBoolean=t;function r(c){return c.lastIndexOf("0o",0)===0?parseInt(c.substring(2),8):parseInt(c)}function n(c){var a=r(c);if(isNaN(a))throw'Invalid integer "'+c+'"';return a}e.parseYamlInteger=n;function o(c){if([".nan",".NaN",".NAN"].lastIndexOf(c)>=0)return NaN;var a=/^([-+])?(?:\.inf|\.Inf|\.INF)$/,p=a.exec(c);if(p)return p[1]==="-"?-1/0:1/0;var l=parseFloat(c);if(!isNaN(l))return l;throw'Invalid float "'+c+'"'}e.parseYamlFloat=o;var s;(function(c){c[c.null=0]="null",c[c.bool=1]="bool",c[c.int=2]="int",c[c.float=3]="float",c[c.string=4]="string"})(s=e.ScalarType||(e.ScalarType={}));function i(c){if(c===void 0)return s.null;if(c.doubleQuoted||!c.plainScalar||c.singleQuoted)return s.string;var a=c.value;if(["null","Null","NULL","~",""].indexOf(a)>=0||a==null)return s.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(a)>=0)return s.bool;var p=/^[-+]?[0-9]+$/,l=/^0o[0-7]+$/,d=/^0x[0-9a-fA-F]+$/;if(p.test(a)||l.test(a)||d.test(a))return s.int;var y=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,m=/^[-+]?(\.inf|\.Inf|\.INF)$/;return y.test(a)||m.test(a)||[".nan",".NaN",".NAN"].indexOf(a)>=0?s.float:s.string}e.determineScalarType=i})(rf)),rf}var of;function J1(){return of||(of=1,(function(e){function t(o){for(var s in o)e.hasOwnProperty(s)||(e[s]=o[s])}Object.defineProperty(e,"__esModule",{value:!0});var r=W1();e.load=r.load,e.loadAll=r.loadAll,e.safeLoad=r.safeLoad,e.safeLoadAll=r.safeLoadAll;var n=H1();e.dump=n.dump,e.safeDump=n.safeDump,e.YAMLException=Hr(),t(ns()),t(Q1())})(Td)),Td}var Xr=J1();const X1=150,Z1=3;function Yi(e,t){Ds.enabled=t;const{start:r,end:n={line:r.line,col:r.col+1},source:o}=e,s=o.getLines(),i=r.line,c=Math.max(Math.min(n.line,s.length),r.line);let a=Math.max(c-i-Z1+1,0);a<2&&(a=0);const p=[];let l=0;for(let y=i;y<=c&&!(a>0&&y>=c-a);y++){const m=s[y-1]||"";m!==""&&(l=is(m));const h=y===i?r.col-1:l,$=y===c?n.col-1:m.length;p.push([`${y}`,d(m,h,$,Ae.red)]),t||p.push(["",sf(m,h,$)])}return a>0&&(p.push(["\u2026",`${Wi(l)}${Ae.gray(`< ${a} more lines >`)}`]),p.push([`${c}`,d(s[c-1],-1,n.col-1,Ae.red)]),t||p.push(["",sf(s[c-1],-1,n.col-1)])),ex([[`${i-2}`,d(s[i-1-2])],[`${i-1}`,d(s[i-1-1])],...p,[`${c+1}`,d(s[c-1+1])],[`${c+2}`,d(s[c-1+2])]]);function d(y,m=-1,h=1/0,$=Ae.gray){return!t||!y?y:(m===-1&&(m=is(y)),h=Math.min(h,y.length),y.substr(0,m)+$(y.substring(m,h))+y.substr(h))}}function ex(e){const t=e.filter(([o,s])=>s!==void 0),r=Math.max(...t.map(([o])=>o.length)),n=Math.min(...t.map(([o,s])=>s===""?1/0:is(s)));return t.map(([o,s])=>Ae.gray(rx(r,o)+" |")+(s?" "+tx(s.substring(n)):"")).join(`
|
|
115
|
+
`)}function tx(e,t=X1){const r=e.length-t;if(r>0){const n=Ae.gray(`...<${r} chars>`);return e.substring(0,t-n.length)+n}else return e}function sf(e,t=-1,r=1/0){return t===-1&&(t=is(e)),r=Math.min(r,e.length),Wi(t)+"^".repeat(Math.max(r-t,1))}function Wi(e){return" ".repeat(e)}function rx(e,t){return Wi(e-t.length)+t}function is(e){for(let t=0;t<e.length;t++)if(e[t]!==" ")return t;return e.length}function Gt(e){if(e.pointer===void 0)return e;const{source:t,pointer:r,reportOnKey:n}=e,o=t.getAst(Xr.safeLoad),s=af(o,r,!!n);return{...e,pointer:void 0,...nx(t.body,s?.startPosition??1,s?.endPosition??1)}}function nx(e,t,r){let n=1,o=1,s={line:1,col:1};for(let c=0;c<r-1;c++){if(c===t-1&&(s={line:n,col:o+1}),e[c]===`
|
|
116
|
+
`){n++,o=1,c===t-1&&(s={line:n,col:o}),e[c+1]==="\r"&&c++;continue}o++}const i=t===r?{...s}:{line:n,col:o+1};return{start:s,end:i}}function af(e,t,r){const n=Rf(t.substr(2));if(e===void 0)return;let o=e;for(const s of n)if(o.kind===Xr.Kind.MAP){const i=o.mappings.find(c=>c.key.value===s);if(!i||(o=i,!i?.value))break;o=i.value}else if(o.kind===Xr.Kind.SEQ){const i=o.items[parseInt(s,10)];if(!i)break;o=i}if(r){const s=o.parent;return!s||s.kind===Xr.Kind.SEQ?o:s.kind===Xr.Kind.MAPPING?s.key:o}else return o}const ox={INVALID_SEVERITY_LEVEL:"Invalid severity level; accepted values: error or warn"},cf={warn:e=>Ae.bgYellow(Ae.black(e)),error:Ae.bgRed},pf={warn:Ae.yellow,error:Ae.red},Er={warn:"Warning",error:"Error"},sx={error:"critical",warn:"minor"},ix=+(pa.REDOCLY_CLI_LINT_MAX_SUGGESTIONS??5);function as(e){return e==="error"?1:2}function lf(e){let t=0,r=0,n=0;for(const o of e){if(o.ignored){n++;continue}o.severity==="error"&&t++,o.severity==="warn"&&r++}return{errors:t,warnings:r,ignored:n}}function ax(e,t){const{maxProblems:r=100,cwd:n="",format:o="codeframe",color:s=Ds.enabled,totals:i=lf(e),version:c="2.0",command:a}=t;Ds.enabled=s;const p=e.length;e=e.filter(f=>!f.ignored);const l=p-e.length;if(e=e.sort((f,I)=>as(f.severity)-as(I.severity)).slice(0,r),!p&&o!=="json"&&o!=="junit")return;switch(o){case"json":y();break;case"codeframe":for(let f=0;f<e.length;f++){const I=e[f];a==="bundle"?Se.info(`${h(I,f)}
|
|
117
|
+
`):Se.output(`${h(I,f)}
|
|
118
|
+
`)}break;case"stylish":{const f=Hi(e);for(const[I,{ruleIdPad:g,locationPad:v,fileProblems:x}]of Object.entries(f)){Se.output(`${Ae.blue(tt(I)?I:Ke.relative(n,I))}:
|
|
119
|
+
`);for(let N=0;N<x.length;N++){const K=x[N];Se.output(`${$(K,v,g)}
|
|
120
|
+
`)}Se.output(`
|
|
121
|
+
`)}break}case"markdown":{const f=Hi(e);for(const[I,{fileProblems:g}]of Object.entries(f)){Se.output(`## Lint: ${tt(I)?I:Ke.relative(n,I)}
|
|
122
|
+
|
|
123
|
+
`),Se.output(`| Severity | Location | Problem | Message |
|
|
124
|
+
`),Se.output(`|---|---|---|---|
|
|
125
|
+
`);for(let v=0;v<g.length;v++){const x=g[v];Se.output(`${b(x)}
|
|
126
|
+
`)}Se.output(`
|
|
127
|
+
`),i.errors>0?Se.output(`Validation failed
|
|
128
|
+
Errors: ${i.errors}
|
|
129
|
+
`):Se.output(`Validation successful
|
|
130
|
+
`),i.warnings>0&&Se.output(`Warnings: ${i.warnings}
|
|
131
|
+
`),Se.output(`
|
|
132
|
+
`)}break}case"checkstyle":{const f=Hi(e);Se.output(`<?xml version="1.0" encoding="UTF-8"?>
|
|
133
|
+
`),Se.output(`<checkstyle version="4.3">
|
|
134
|
+
`);for(const[I,{fileProblems:g}]of Object.entries(f))Se.output(`<file name="${Tt(tt(I)?I:Ke.relative(n,I))}">
|
|
135
|
+
`),g.forEach(E),Se.output(`</file>
|
|
136
|
+
`);Se.output(`</checkstyle>
|
|
137
|
+
`);break}case"junit":{const f=e.filter(v=>v.severity==="error").length,I=e.filter(v=>v.severity==="warn").length,g={};for(const v of e){const x=v.location[0].source.absoluteRef;g[x]||(g[x]=[]),g[x].push(v)}Se.output(`<?xml version="1.0" encoding="UTF-8"?>
|
|
138
|
+
`),Se.output(`<testsuites name="redocly lint" tests="${e.length}" errors="${f}" failures="${I}" skipped="0">
|
|
139
|
+
`);for(const[v,x]of Object.entries(g)){const N=tt(v)?v:Ke.relative(n,v),K=x.filter(C=>C.severity==="error").length,R=x.filter(C=>C.severity==="warn").length;Se.output(`<testsuite name="${Tt(N)}" tests="${x.length}" errors="${K}" failures="${R}">
|
|
140
|
+
`),x.forEach(C=>w(C,N)),Se.output(`</testsuite>
|
|
141
|
+
`)}Se.output(`</testsuites>
|
|
142
|
+
`);break}case"codeclimate":d();break;case"summary":cx(e);break;case"github-actions":lx(e,n)}p-l>r&&Se.info(`< ... ${p-r} more problems hidden > ${Ae.gray("increase with `--max-problems N`")}
|
|
143
|
+
`);function d(){const f=e.map(I=>{const g=I.location[0],v=Gt(g);return{description:I.message,location:{path:tt(g.source.absoluteRef)?g.source.absoluteRef:Ke.relative(n,g.source.absoluteRef),lines:{begin:v.start.line}},severity:sx[I.severity],fingerprint:`${I.ruleId}${I.location.length>0?"-"+I.location[0].pointer:""}`}});Se.output(JSON.stringify(f,null,2))}function y(){const f={totals:i,version:c,problems:e.map(I=>{const g={...I,location:I.location.map(v=>({...v,source:{ref:tt(v.source.absoluteRef)?v.source.absoluteRef:Ke.relative(n,v.source.absoluteRef)}})),from:I.from?{...I.from,source:{ref:tt(I.from?.source.absoluteRef)?I.from?.source.absoluteRef:Ke.relative(n,I.from?.source.absoluteRef||n)}}:void 0};if(pa.FORMAT_JSON_WITH_CODEFRAMES){const v=I.location[0],x=Gt(v);g.codeframe=Yi(x,s)}return g})};Se.output(JSON.stringify(f,null,2))}function m(f){const{severity:I}=f;if(!cf[I])throw new Error(ox.INVALID_SEVERITY_LEVEL);return cf[I]}function h(f,I){const g=m(f),v=f.location[0],x=tt(v.source.absoluteRef)?v.source.absoluteRef:Ke.relative(n,v.source.absoluteRef),N=Gt(v),K=v.pointer?Ae.gray(`at ${v.pointer}`):"",R=`${x}:${N.start.line}:${N.start.col}`;return`[${I+1}] ${g(R)} ${K}
|
|
144
|
+
|
|
145
|
+
${f.message}
|
|
146
|
+
|
|
147
|
+
`+uf(f)+Yi(N,s)+`
|
|
148
|
+
|
|
149
|
+
`+px(n,f.from)+`${Er[f.severity]} was generated by the ${Ae.blue(f.ruleId)} rule.
|
|
150
|
+
|
|
151
|
+
`+(f.reference?`Reference: ${Ae.blue(f.reference)}
|
|
152
|
+
|
|
153
|
+
`:"")}function $(f,I,g){const v=pf[f.severity];if(!Er[f.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";const x=v(Er[f.severity].toLowerCase().padEnd(7)),{start:N}=f.location[0];return` ${`${N.line}:${N.col}`.padEnd(I)} ${x} ${f.ruleId.padEnd(g)} ${f.message}`}function b(f){if(!Er[f.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";const I=Er[f.severity].toLowerCase(),{start:g}=f.location[0];return`| ${I} | line ${`${g.line}:${g.col}`} | [${f.ruleId}](https://redocly.com/docs/cli/rules/${f.ruleId}/) | ${f.message.replaceAll(`
|
|
154
|
+
`,"<br>")} |`}function E(f){const{line:I,col:g}=f.location[0].start,v=f.severity=="warn"?"warning":"error",x=Tt(f.message),N=Tt(f.ruleId);Se.output(`<error line="${I}" column="${g}" severity="${v}" message="${x}" source="${N}" />
|
|
155
|
+
`)}function w(f,I){const g=f.location[0],{start:v}=Gt(g),x=f.severity==="error"?"error":"failure",N=Tt(f.ruleId),K=Tt(f.message),R=[`Rule: ${N}`,`Severity: ${Tt(f.severity)}`,`File: ${Tt(I)}`,`Line: ${v.line}`,`Column: ${v.col}`];g.pointer&&R.push(`Pointer: ${Tt(g.pointer)}`),R.push(`Message: ${K}`),Se.output(`<testcase classname="${N}" name="${N}" file="${Tt(I)}" line="${v.line}">
|
|
156
|
+
`),Se.output(`<${x} message="${K}" type="${N}">${R.join(`
|
|
157
|
+
`)}</${x}>
|
|
158
|
+
`),Se.output(`</testcase>
|
|
159
|
+
`)}}function cx(e){const t={};for(const n of e)t[n.ruleId]=t[n.ruleId]||{count:0,severity:n.severity},t[n.ruleId].count++;const r=Object.entries(t).sort(([,n],[,o])=>as(n.severity)-as(o.severity)||o.count-n.count);for(const[n,o]of r){const s=pf[o.severity],i=s(Er[o.severity].toLowerCase().padEnd(7));Se.output(`${i} ${n}: ${o.count}
|
|
160
|
+
`)}Se.output(`
|
|
161
|
+
`)}function px(e,t){if(!t)return"";const r=Ke.relative(e,t.source.absoluteRef),n=Gt(t),o=`${r}:${n.start.line}:${n.start.col}`,s=t.pointer?Ae.gray(`at ${t.pointer}`):"";return`referenced from ${Ae.blue(o)} ${s}
|
|
162
|
+
|
|
163
|
+
`}function uf(e){return e.suggest.length===0?"":e.suggest.length===1?`Did you mean: ${e.suggest[0]} ?
|
|
164
|
+
|
|
165
|
+
`:`Did you mean:
|
|
166
|
+
- ${e.suggest.slice(0,ix).join(`
|
|
167
|
+
- `)}
|
|
168
|
+
|
|
169
|
+
`}const Hi=e=>{const t={};for(const r of e){const n=r.location[0].source.absoluteRef;t[n]=t[n]||{fileProblems:[],ruleIdPad:0,locationPad:0};const o={...r,location:r.location.map(Gt)};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(s=>`${s.start.line}:${s.start.col}`.length)),t[n].locationPad)}return t};function Tt(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 lx(e,t){for(const i of e)for(const c of i.location.map(Gt)){let a;switch(i.severity){case"error":a="error";break;case"warn":a="warning";break}const p=uf(i),l=i.reference?`Reference: ${i.reference}
|
|
170
|
+
|
|
171
|
+
`:"",d=i.message+(p!==""||l!==""?`
|
|
172
|
+
|
|
173
|
+
`:"")+p+l,y={title:i.ruleId,file:tt(c.source.absoluteRef)?c.source.absoluteRef:Ke.relative(t,c.source.absoluteRef),line:c.start.line,col:c.start.col,endLine:c.end?.line,endColumn:c.end?.col};Se.output(`::${a} ${r(y)}::${o(d)}
|
|
174
|
+
`)}function r(i){return Object.entries(i).filter(([,c])=>c!=null).map(([c,a])=>`${c}=${s(a)}`).join(",")}function n(i){return i==null?"":typeof i=="string"||i instanceof String?i:JSON.stringify(i)}function o(i){return n(i).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function s(i){return n(i).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}const{theme:vx,...ux}=vn.properties,dx={...vn,properties:ux};async function fx(e){const{ref:t,externalRefResolver:r=new Yt(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),Qi({document:n,...e,externalRefResolver:r})}async function mx(e){const{source:t,absoluteRef:r,externalRefResolver:n=new Yt(e.config.resolve)}=e,o=us(t,r||"/");return Qi({document:o,...e,externalRefResolver:n})}async function Qi(e){const{document:t,customTypes:r,externalRefResolver:n,config:o}=e;if(Cf(t.source.absoluteRef)){const{lintGraphqlDocument:m}=await import("./redocly-openapi-docs.min.lint-graphql-BLIlXit9.js");return m({document:t,config:o})}const s=rn(t.parsed),i=o.getRulesForSpecVersion(Df(s)),c=ps(o.extendTypes(r??en(s),s),o),a={problems:[],specVersion:s,config:o,visitorsData:{}},p=la(i,o,"preprocessors",s),l=la(i,o,"rules",s);let d=await sn({rootDocument:t,rootType:c.Root,externalRefResolver:n});p.length>0&&(nn({document:t,rootType:c.Root,normalizedVisitors:Tr(p,c),resolvedRefMap:d,ctx:a}),d=await sn({rootDocument:t,rootType:c.Root,externalRefResolver:n}));const y=Tr(l,c);return nn({document:t,rootType:c.Root,normalizedVisitors:y,resolvedRefMap:d,ctx:a}),a.problems.map(m=>o.addProblemToIgnore(m))}async function hx(e){const{severity:t,externalRefResolver:r=new Yt,config:n}=e;if(!n.document)throw new Error("Config document is not set.");const o={problems:[],specVersion:"config",config:n,visitorsData:{}},s=ps(e.externalConfigTypes||Rs(dx,n)),i=[{severity:t||"error",ruleId:"configuration struct",visitor:Ct()},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:Vt()}],c=Tr(i,s),a=n.resolvedRefMap||await sn({rootDocument:n.document,rootType:s.ConfigRoot,externalRefResolver:r});return nn({document:n.document,rootType:s.ConfigRoot,normalizedVisitors:c,resolvedRefMap:a,ctx:o}),o.problems}export{Ut as A,x1 as B,hy as C,Tt as D,As as E,Ll as F,fe as G,Vl as H,z0 as I,zl as J,Ve as K,ge as L,vt as M,B as N,lt as O,he as P,L0 as Q,yy as R,Ct as S,M0 as T,qo as U,Ys as V,Kl as W,el as a,s1 as b,S1 as c,l1 as d,u1 as e,b1 as f,Qp as g,Rs as h,P1 as i,ax as j,af as k,Qi as l,Yi as m,Gt as n,g1 as o,lf as p,_r as q,ds as r,fx as s,Ge as t,hx as u,mx as v,_1 as w,xd as x,Se as y,zf as z};
|