@redocly/openapi-docs 3.25.0-next.1 → 3.25.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. package/dist/{redocly-openapi-docs.min.AiChatProvider-CDMc3dS6.js → redocly-openapi-docs.min.AiChatProvider-C_KLy-F0.js} +1 -1
  2. package/dist/{redocly-openapi-docs.min.AiChatSqliteDBStorage-BopXqcPv.js → redocly-openapi-docs.min.AiChatSqliteDBStorage-xPx3J3uK.js} +1 -1
  3. package/dist/{redocly-openapi-docs.min.AiPanel-DkXOeLs5.js → redocly-openapi-docs.min.AiPanel-BmK852q6.js} +1 -1
  4. package/dist/{redocly-openapi-docs.min.FileWatcher-DMjNW66W.js → redocly-openapi-docs.min.FileWatcher-BtXjqGQC.js} +1 -1
  5. package/dist/{redocly-openapi-docs.min.SemanticSearchService-DbpnWseN.js → redocly-openapi-docs.min.SemanticSearchService-gLmwyYO3.js} +1 -1
  6. package/dist/{redocly-openapi-docs.min.SqliteDBStorage-ak3Zqgtw.js → redocly-openapi-docs.min.SqliteDBStorage-DfF4kq1F.js} +1 -1
  7. package/dist/{redocly-openapi-docs.min.TauriFileSystemAdapter-Dl2fY3am.js → redocly-openapi-docs.min.TauriFileSystemAdapter-DZLjNpl_.js} +1 -1
  8. package/dist/{redocly-openapi-docs.min.TauriRootStorage-m4plsfqx.js → redocly-openapi-docs.min.TauriRootStorage-DMQv9g_J.js} +1 -1
  9. package/dist/{redocly-openapi-docs.min.ai-chat-mappers-Dg8U8w8r.js → redocly-openapi-docs.min.ai-chat-mappers-O-bg124u.js} +1 -1
  10. package/dist/{redocly-openapi-docs.min.external-resolver-Db7hewsm.js → redocly-openapi-docs.min.external-resolver-D89x3qoA.js} +1 -1
  11. package/dist/{redocly-openapi-docs.min.index-EVRmC_IQ.js → redocly-openapi-docs.min.index-BBNK1d3n.js} +1 -1
  12. package/dist/{redocly-openapi-docs.min.index-B5-R6EGY.js → redocly-openapi-docs.min.index-D4_45rLR.js} +1 -1
  13. package/dist/{redocly-openapi-docs.min.index-DeHk4n2z.js → redocly-openapi-docs.min.index-DQHVHxbB.js} +1 -1
  14. package/dist/{redocly-openapi-docs.min.index-D9U4Tk7n.js → redocly-openapi-docs.min.index-DbxjaOoh.js} +11 -11
  15. package/dist/redocly-openapi-docs.min.js +1 -1
  16. package/dist/{redocly-openapi-docs.min.lint-PvmGrAK3.js → redocly-openapi-docs.min.lint-DLjLNlT2.js} +2 -2
  17. package/dist/{redocly-openapi-docs.min.lint-graphql-CMMhYVr_.js → redocly-openapi-docs.min.lint-graphql-1y6KKl09.js} +1 -1
  18. package/dist/{redocly-openapi-docs.min.respect-run-DgsYdmxw.js → redocly-openapi-docs.min.respect-run-BdIceoa0.js} +1 -1
  19. package/dist/{redocly-openapi-docs.min.standalone-D9becCWS.js → redocly-openapi-docs.min.standalone-crUOAFz-.js} +10 -5
  20. package/dist/{redocly-openapi-docs.min.tauri-path-Bv9A5DVf.js → redocly-openapi-docs.min.tauri-path-BjTOYabX.js} +1 -1
  21. package/dist/{redocly-openapi-docs.min.useAiChatQueries-Cb-1pa0w.js → redocly-openapi-docs.min.useAiChatQueries-Rfa850wl.js} +2 -2
  22. package/package.json +4 -4
@@ -1 +1 @@
1
- import{bO as a,bP as s,bQ as e,bR as t,bS as i,bT as r,bU as b}from"./redocly-openapi-docs.min.standalone-D9becCWS.js";export{a as hydrate,s as init,e as revision,t as setParameterValue,i as setSecurityDetails,r as setSecurityDetailsVariants,b as version};
1
+ import{bO as a,bP as s,bQ as e,bR as t,bS as i,bT as r,bU as b}from"./redocly-openapi-docs.min.standalone-crUOAFz-.js";export{a as hydrate,s as init,e as revision,t as setParameterValue,i as setSecurityDetails,r as setSecurityDetailsVariants,b as version};
@@ -1,4 +1,4 @@
1
- import{d as Vr,bq as _n,l as xe,br as Jh,b8 as En,bs as ic,b9 as at,ao as cc,bt as Yh,bu as Wh,aD as $a,bd as Ke,aB as lc,p as We,bi as Hh,bv as Xh,bw as Qh,bx as Zh,be as Vt,bk as ey,bg as Pn,by as vr,bz as uc,bA as pc,bB as _a,bC as Fr,bD as Qt,bE as ty,bF as ry,aJ as Zt,b4 as Sn,b5 as ny,bf as oy,bG as sy,aE as zr,aO as dc,bH as ay,a$ as iy,aG as ir,b3 as fc,aI as Ea,aH as In,bI as xn,aP as mc,aR as cy,b1 as ly,aF as Tn,bJ as uy,aS as py,aQ as hc,b6 as dy,bl as yc,aU as gc,bK as fy,bL as my,bM as vc,bb as hy,b7 as yy,bN as bc}from"./redocly-openapi-docs.min.standalone-D9becCWS.js";function gy(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 Ur(e){return Array.isArray(e)&&e.length>0}function Pa(e){return e?Object.keys(e):[]}var Sa={exports:{}},vy=Sa.exports,wc;function by(){return wc||(wc=1,(function(e,t){(function(r,n){typeof gy=="function"?e.exports=n():r.pluralize=n()})(vy,function(){var r=[],n=[],o={},s={},a={};function c(S){return typeof S=="string"?new RegExp("^"+S+"$","i"):S}function i(S,b){return S===b?b:S===S.toLowerCase()?b.toLowerCase():S===S.toUpperCase()?b.toUpperCase():S[0]===S[0].toUpperCase()?b.charAt(0).toUpperCase()+b.substr(1).toLowerCase():b.toLowerCase()}function l(S,b){return S.replace(/\$(\d{1,2})/g,function($,y){return b[y]||""})}function u(S,b){return S.replace(b[0],function($,y){var d=l(b[1],arguments);return i($===""?S[y-1]:$,d)})}function f(S,b,$){if(!S.length||o.hasOwnProperty(S))return b;for(var y=$.length;y--;){var d=$[y];if(d[0].test(b))return u(b,d)}return b}function _(S,b,$){return function(y){var d=y.toLowerCase();return b.hasOwnProperty(d)?i(y,d):S.hasOwnProperty(d)?i(y,S[d]):f(d,y,$)}}function m(S,b,$,y){return function(d){var P=d.toLowerCase();return b.hasOwnProperty(P)?!0:S.hasOwnProperty(P)?!1:f(P,P,$)===P}}function w(S,b,$){var y=b===1?w.singular(S):w.plural(S);return($?b+" ":"")+y}return w.plural=_(a,s,r),w.isPlural=m(a,s,r),w.singular=_(s,a,n),w.isSingular=m(s,a,n),w.addPluralRule=function(S,b){r.push([c(S),b])},w.addSingularRule=function(S,b){n.push([c(S),b])},w.addUncountableRule=function(S){if(typeof S=="string"){o[S.toLowerCase()]=!0;return}w.addPluralRule(S,"$0"),w.addSingularRule(S,"$0")},w.addIrregularRule=function(S,b){b=b.toLowerCase(),S=S.toLowerCase(),a[S]=b,s[b]=S},[["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(S){return w.addIrregularRule(S[0],S[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(S){return w.addPluralRule(S[0],S[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(S){return w.addSingularRule(S[0],S[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(w.addUncountableRule),w})})(Sa)),Sa.exports}var wy=by();const $c=Vr(wy);function $y(e,t,r){return e.split(" ").map(n=>$c(n,t,r)).join(" ")}var _c={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Br={type:"object",properties:_c,additionalProperties:!1},_y={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Gr={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:{..._c,like:Br,dislike:Br,satisfied:Br,neutral:Br,dissatisfied:Br},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:_y},additionalProperties:!1}},additionalProperties:!1},Ey={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},Ia={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Ec={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Gr,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:Ia,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:Ey,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},br={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Py={type:"object",properties:{name:{type:"string"},items:br,queries:br,mutations:br,subscriptions:br,types:br,directives:br},required:["name"],additionalProperties:!1},Sy={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Py},otherItemsGroupName:{type:"string"}}},Iy={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},xy={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},Ty={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:Iy,license:xy},additionalProperties:!1},Nn={type:"object",properties:{menu:{type:"object",properties:{...Sy.properties},additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:Ia,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:Gr,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:Ty},additionalProperties:!1},Ny={type:"object",properties:{downloadUrls:Ia,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:Gr,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},ky={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"]},Oy={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"}}},Pc={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},jy={type:"object",properties:{beforeInfo:{type:"array",items:Pc},end:{type:"array",items:Pc}}},cr={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},kn={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Ay={type:"object",properties:Cn(cr.properties,["light","dark"])},Cy={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"}}},Ry={type:"object",properties:{error:kn,info:kn,redirect:kn,success:kn}},Dy={type:"object",properties:wr(cr.properties,["dark"])},qy={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Ly={type:"object",properties:{accent:cr,border:Ay,error:cr,http:Cy,primary:cr,responses:Ry,secondary:Dy,success:cr,text:qy,tonalOffset:{type:"number"},warning:cr}},On={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},My={type:"object",properties:{small:On,medium:On,large:On,xlarge:On}},Dt={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Vy={type:"object",properties:{...wr(Dt.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:My}},Sc={type:"object",properties:Cn(Dt.properties,["fontSize","lineHeight"])},Fy={type:"object",properties:{medium:Sc,small:Sc}},zy={type:"object",properties:{...wr(Dt.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:Fy}},Uy={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},By={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},Ic={type:"object",properties:{fullWidth:{type:"boolean"}}},Gy={type:"object",properties:{buttons:Vy,httpBadges:zy,layoutControls:Uy,panels:By,tryItButton:Ic,tryItSendButton:Ic}},jn={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Ky={type:"object",properties:{maxWidth:jn}},Jy={type:"object",properties:{maxWidth:jn,middlePanelMaxWidth:jn}},Yy={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Ky,"three-panel":Jy}},xc={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},Wy={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:xc,defaultDetailsWidth:{type:"string"},examples:xc,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},Tc={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},Hy={type:"object",properties:Cn(Tc.properties,["textTransform"])},Xy={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Qy={type:"object",properties:{...wr(Dt.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:Tc,level1items:Hy,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:Xy,textColor:{type:"string"},width:{type:"string"}}},An={type:"object",properties:{...Dt.properties,color:{type:"string"},transform:{type:"string"}}},Zy={type:"object",properties:{...Dt.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"}}},eg={type:"object",properties:wr(Dt.properties,["fontSize"])},tg={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},rg={type:"object",properties:{code:Zy,fieldName:Dt,...Cn(Dt.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:An,heading2:An,heading3:An,headings:eg,lineHeight:{type:"string"},links:tg,optimizeSpeed:{type:"boolean"},rightPanelHeading:An,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},ng={type:"object",properties:{color:{type:"string"},...wr(Dt.properties,["fontWeight"])}},og={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:ng}},sg={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},ag={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},Nc={type:"object",properties:{custom:{type:"string"}}},ig={type:"object",properties:{DownloadButton:Nc,NextSectionButton:Nc}},cg={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},lg={type:"object",properties:{borderRadius:{type:"string"}}},ug={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},pg={type:"object",properties:{breakpoints:jn,codeBlock:og,colors:Ly,components:Gy,layout:Yy,logo:sg,fab:ag,overrides:ig,rightPanel:cg,schema:Wy,shape:lg,sidebar:Qy,spacing:ug,typography:rg,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},dg={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:ky}},required:["languages"]},fg={properties:{theme:pg,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:dg,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:Oy,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:jy,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 Cn(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function wr(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var yt={nodeTypeName:void 0,type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules"},mg={rules:yt,oas2Rules:yt,oas3_0Rules:yt,oas3_1Rules:yt,oas3_2Rules:yt,async2Rules:yt,async3Rules:yt,arazzo1Rules:yt,arazzo1_1Rules:yt,overlay1Rules:yt,openrpc1Rules:yt,graphqlRules:yt},wt={nodeTypeName:void 0,type:"object",additionalProperties:!0},hg={preprocessors:wt,oas2Preprocessors:wt,oas3_0Preprocessors:wt,oas3_1Preprocessors:wt,oas3_2Preprocessors:wt,async2Preprocessors:wt,async3Preprocessors:wt,arazzo1Preprocessors:wt,arazzo1_1Preprocessors:wt,overlay1Preprocessors:wt,openrpc1Preprocessors:wt},$t={nodeTypeName:void 0,type:"object",additionalProperties:!0},yg={decorators:$t,oas2Decorators:$t,oas3_0Decorators:$t,oas3_1Decorators:$t,oas3_2Decorators:$t,async2Decorators:$t,async3Decorators:$t,arazzo1Decorators:$t,arazzo1_1Decorators:$t,overlay1Decorators:$t,openrpc1Decorators:$t},gg={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"},Rn={...mg,...yg,...hg,extends:gg},kc=e=>e,it=kc({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),Ze={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Oc={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},xa={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}}},Ta={type:"array",items:{...xa,properties:{...xa.properties,items:{type:"array",items:xa}}}},vg={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},bg={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},wg={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}},$g={type:"object",properties:{facets:wg,...Ze.properties},additionalProperties:!1},_g={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},jc={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Ac={type:"object",properties:{items:Ta,...Ze.properties},additionalProperties:!1},Cc={type:"object",additionalProperties:vg},Rc={type:"object",properties:{items:Ta,copyrightText:{type:"string"},logo:Ze,...Ze.properties},additionalProperties:!1},Dc={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...Ze.properties},additionalProperties:!1},qc={type:"object",properties:{head:{type:"array",items:Oc},body:{type:"array",items:Oc}},additionalProperties:!1},Lc={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}},Mc={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:bg,filters:$g,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:_g},...Ze.properties},additionalProperties:!1},Vc={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},Fc={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...Ze.properties},additionalProperties:!1},zc={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},Eg={type:"object",properties:{...Ze.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},Uc={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...Ze.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...Ze.properties},additionalProperties:!1},actions:Eg},additionalProperties:!1},Bc={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...Ze.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...Ze.properties},additionalProperties:!1},expand:{type:"object",properties:{...Ze.properties},additionalProperties:!1},collapse:{type:"object",properties:{...Ze.properties},additionalProperties:!1}},additionalProperties:!1},Gc={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"},...Ze.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...Ze.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...Ze.properties},additionalProperties:!1},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Dn={...Ec,properties:{...Ec.properties,...fg.properties}},Pg={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},Sg={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"]},Ig={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},xg={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},Tg={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"]},Ng={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},kg={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"]},Og={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"]},jg={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:Og}},additionalProperties:!1,required:["trackingId"]},Kc={type:"object",properties:{adobe:Pg,amplitude:Sg,fullstory:Ig,heap:xg,rudderstack:Tg,segment:Ng,gtm:kg,ga:jg}},Jc={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"},...Ze.properties},additionalProperties:!1},Yc={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Wc={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},Ag={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"}}}},Cg={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:Ag},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:Ta,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},qn={type:"object",patternProperties:{".*":Cg}},Ln={nodeTypeName:it.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:it.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:it.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:it.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...Rn},additionalProperties:!1}},targets:{nodeTypeName:it.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:it.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:it.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:it.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},Rg={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},Dg={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},qg={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},Ft={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:Dg},excludes:{type:"array",items:Rg},filters:{type:"array",items:qg},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},Lg={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},Mg={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:Lg},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},Vg={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:Mg,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},Fg={type:"object",additionalProperties:Vg},Hc={type:"object",properties:{show:{type:"boolean"},entityTypes:Fg,catalogs:{type:"object",properties:{all:Ft,services:Ft,domains:Ft,teams:Ft,users:Ft,apiDescriptions:Ft,dataSchemas:Ft,apiOperations:Ft},additionalProperties:Ft}},additionalProperties:!1},Xc={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},Na={type:"string",enum:["and","or"]},ka={type:"object",properties:{field:{type:"string"},operator:Xc,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Xc,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},zg={type:"object",properties:{operator:Na,conditions:{type:"array",items:ka}},required:["operator","conditions"],additionalProperties:!1},Qc={type:"array",items:{oneOf:[ka,{type:"object",properties:{operator:Na,conditions:{type:"array",items:{oneOf:[ka,zg]}}},required:["operator","conditions"],additionalProperties:!1}]}},Zc={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},Ug={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:Zc},required:["subject","assertions"],additionalProperties:!1}},Bg={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:Zc,where:Ug,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},Gg={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},Bg]}},Kg={type:"object",properties:{name:{type:"string"},extends:Rn.extends,rules:Gg},required:["name"],additionalProperties:!1},el={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},Jg={oneOf:[el,{type:"array",items:el}]},Yg={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[Qc,{type:"object",properties:{operator:Na,conditions:Qc},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:Kg,minItems:1},trigger:Jg},required:["name","key","entities","levels"],additionalProperties:!1},tl={type:"array",items:Yg},Wg={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:jc,navbar:Ac,products:Cc,footer:Rc,sidebar:Dc,scripts:qc,links:Lc,feedback:Gr,search:Mc,aiAssistant:Vc,colorMode:Fc,palette:zc,navigation:Uc,codeSnippet:Bc,markdown:Gc,openapi:Dn,asyncapi:Ny,graphql:Nn,analytics:Kc,userMenu:Jc,versionPicker:Yc,breadcrumbs:Wc,catalog:qn,entitiesCatalog:Hc,catalogClassic:qn,scorecard:Ln,scorecardClassic:Ln,scorecards:tl},additionalProperties:!0},Hg=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(Hg||{}),Xg=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(Xg||{}),Qg=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(Qg||{}),Zg="^[a-z0-9]+(?:-[a-z0-9]+)*$",rl="redocly",ev=[rl,"corporate","guest"],nl=["REDOCLY","CORPORATE","GUEST"],tv={type:"object",additionalProperties:{type:"string"}},rv={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Mn={type:"string",enum:["error","warn","off"]},nv={type:"object",additionalProperties:!1,properties:{schemaCheck:Mn,statusCodeCheck:Mn,contentTypeCheck:Mn,successCriteriaCheck:Mn}},ov={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},sv={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},av={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},iv={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:[ov,sv]},inputs:tv,servers:rv,severity:nv,slo:av},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},cv={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},lv={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:cv,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},uv={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"]},pv={oneOf:[lv,uv],discriminator:{propertyName:"type"}},dv={type:"object",additionalProperties:pv},ol={oneOf:[{type:"array",items:{type:"string",enum:nl},uniqueItems:!0},{type:"string",enum:nl}]},sl={type:"string",pattern:Zg,not:{enum:ev.filter(e=>e!==rl)}},al={oneOf:[{type:"array",items:sl,uniqueItems:!0},sl]},il={type:"boolean"},cl={type:"string",pattern:"^https?://.*"},ll={type:"string",pattern:"^https?://.*"},fv={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:it.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},mv={type:"object",additionalProperties:fv,nodeTypeName:it.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"},hv={type:"string",enum:["info","success","warning","error"]},ze={type:"object",additionalProperties:{type:"string"}},yv={type:"object",properties:{trackingId:{type:"string"},content:{type:"string"},dismissible:{type:"boolean"},target:{type:"string"},color:hv,rbac:ze,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},gv={type:"array",items:yv},vv={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:ze,openapi:Dn,graphql:Nn,theme:{type:"object",properties:{openapi:Dn,graphql:Nn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...Rn},required:["root"]},bv={type:"object",additionalProperties:!0},wv={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},$v={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},_v={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:$v},additionalProperties:!1},Ev={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},Pv={type:"object",properties:{catalogs:{type:"object",properties:{all:ze,services:ze,domains:ze,teams:ze,users:ze,apiDescriptions:ze,dataSchemas:ze,apiOperations:ze},additionalProperties:ze},entitiesTypes:{type:"object",properties:{service:ze,domain:ze,team:ze,user:ze,apiDescription:ze,apiOperation:ze,dataSchema:ze},additionalProperties:ze},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:ze},additionalProperties:!1}},entities:{type:"object",properties:{"**":ze},additionalProperties:ze}},additionalProperties:!1},ul={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:ze,cms:ze,reunite:ze,features:{type:"object",properties:{aiSearch:ze,mcp:ze},additionalProperties:!1},content:{type:"object",properties:{"**":ze},additionalProperties:ze},entitiesCatalog:Pv},additionalProperties:ze},Sv={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},Iv={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},xv={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[Sv,Iv]}},additionalProperties:!1,required:["type","apiBaseUrl"]},Tv={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},Nv={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Oa={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:[Tv,Nv],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},kv={...Oa,properties:{...Oa.properties,type:{type:"string",const:"APIGEE_EDGE"}}},Ov={type:"object",oneOf:[Oa,kv,xv],discriminator:{propertyName:"type"}},jv={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:Ov}}},pl={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"]},Av={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},Cv={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},Rv={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},Dv={type:"object",properties:{requiresLogin:il,logoutReturnUrl:cl,residency:ll,sso:ol,idps:al,rbac:ul},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},ja={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:mv,seo:_v,rbac:ul,apiFunctions:Ev,requiresLogin:il,responseHeaders:{type:"object",additionalProperties:{type:"array",items:Av}},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:vv},...Rn,ssoDirect:dv,sso:ol,idps:al,residency:ll,logoutReturnUrl:cl,access:Dv,developerOnboarding:jv,removeAttribution:{type:"boolean"},i18n:pl,l10n:pl,metadata:bv,metadataGlobs:wv,ignore:{type:"array",items:{type:"string"}},theme:Wg,reunite:iv,logo:jc,navbar:Ac,products:Cc,footer:Rc,sidebar:Dc,scripts:qc,links:Lc,feedback:Gr,search:Mc,aiAssistant:Vc,colorMode:Fc,palette:zc,navigation:Uc,codeSnippet:Bc,markdown:Gc,openapi:Dn,graphql:Nn,analytics:Kc,userMenu:Jc,versionPicker:Yc,breadcrumbs:Wc,catalog:qn,entitiesCatalog:Hc,catalogClassic:qn,scorecard:Ln,scorecardClassic:Ln,scorecards:tl,mcp:Cv,skills:Rv,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:gv},not:{required:["sso","idps"]},additionalProperties:!0},qv={...ja,additionalProperties:!1},Vn={$id:"root-redocly-config",...ja,properties:{plugins:{type:"array",items:{type:"string"}},...ja.properties,env:{type:"object",additionalProperties:qv}},additionalProperties:!1},Lv=["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"],He=kc({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"}),Mv={type:"object",nodeTypeName:He.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},Vv={type:"object",nodeTypeName:He.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},Fv={type:"object",nodeTypeName:He.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},zv={type:"object",nodeTypeName:He.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},Uv={type:"object",properties:{},nodeTypeName:He.EntityMetadata,additionalProperties:!0},Bv={type:"object",nodeTypeName:He.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},Gv={type:"object",nodeTypeName:He.EntitySlackContact,properties:{channels:{type:"array",items:Bv}},required:["channels"],additionalProperties:!1},Kv={type:"object",nodeTypeName:He.EntityContact,properties:{slack:Gv},additionalProperties:!1},Jv={type:"object",nodeTypeName:He.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},Yv={type:"object",nodeTypeName:He.EntityRelation,properties:{type:{type:"string",enum:Lv},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},er={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:Kv,links:{type:"array",nodeTypeName:He.EntityLinkList,items:Jv},relations:{type:"array",nodeTypeName:He.EntityRelationList,items:Yv},metadata:Uv},Wv={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...er,type:{type:"string",const:"user"},metadata:Mv},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:He.UserEntity},{type:"object",nodeTypeName:He.ApiOperationEntity,properties:{...er,type:{type:"string",const:"api-operation"},metadata:Fv},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:He.DataSchemaEntity,properties:{...er,type:{type:"string",const:"data-schema"},metadata:zv},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:He.ApiDescriptionEntity,properties:{...er,type:{type:"string",const:"api-description"},metadata:Vv},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:He.ServiceEntity,properties:{...er,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:He.DomainEntity,properties:{...er,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:He.TeamEntity,properties:{...er,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},Hv={type:"object",nodeTypeName:He.Entity,properties:{...er},required:["key","title","type"],additionalProperties:!1};const Xv=["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 Aa(e){return e.includes("/")}var Ca={exports:{}},dl={},zt={},lr={},fl={},ml={},hl={},yl;function Fn(){return yl||(yl=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(y){if(super(),!e.IDENTIFIER.test(y))throw new Error("CodeGen: name must be a valid identifier");this.str=y}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(y){super(),this._items=typeof y=="string"?[y]:y}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((d,P)=>`${d}${P}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((d,P)=>(P instanceof r&&(d[P.str]=(d[P.str]||0)+1),d),{})}}e._Code=n,e.nil=new n("");function o($,...y){const d=[$[0]];let P=0;for(;P<y.length;)c(d,y[P]),d.push($[++P]);return new n(d)}e._=o;const s=new n("+");function a($,...y){const d=[m($[0])];let P=0;for(;P<y.length;)d.push(s),c(d,y[P]),d.push(s,m($[++P]));return i(d),new n(d)}e.str=a;function c($,y){y instanceof n?$.push(...y._items):y instanceof r?$.push(y):$.push(f(y))}e.addCodeArg=c;function i($){let y=1;for(;y<$.length-1;){if($[y]===s){const d=l($[y-1],$[y+1]);if(d!==void 0){$.splice(y-1,3,d);continue}$[y++]="+"}y++}}function l($,y){if(y==='""')return $;if($==='""')return y;if(typeof $=="string")return y instanceof r||$[$.length-1]!=='"'?void 0:typeof y!="string"?`${$.slice(0,-1)}${y}"`:y[0]==='"'?$.slice(0,-1)+y.slice(1):void 0;if(typeof y=="string"&&y[0]==='"'&&!($ instanceof r))return`"${$}${y.slice(1)}`}function u($,y){return y.emptyStr()?$:$.emptyStr()?y:a`${$}${y}`}e.strConcat=u;function f($){return typeof $=="number"||typeof $=="boolean"||$===null?$:m(Array.isArray($)?$.join(","):$)}function _($){return new n(m($))}e.stringify=_;function m($){return JSON.stringify($).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=m;function w($){return typeof $=="string"&&e.IDENTIFIER.test($)?new n(`.${$}`):o`[${$}]`}e.getProperty=w;function S($){if(typeof $=="string"&&e.IDENTIFIER.test($))return new n(`${$}`);throw new Error(`CodeGen: invalid export name: ${$}, use explicit $id name mapping`)}e.getEsmExportName=S;function b($){return new n($.toString())}e.regexpCode=b})(hl)),hl}var gl={},vl;function bl(){return vl||(vl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Fn();class r extends Error{constructor(l){super(`CodeGen: "code" for ${l} not defined`),this.value=l.value}}var n;(function(i){i[i.Started=0]="Started",i[i.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:l,parent:u}={}){this._names={},this._prefixes=l,this._parent=u}toName(l){return l instanceof t.Name?l:this.name(l)}name(l){return new t.Name(this._newName(l))}_newName(l){const u=this._names[l]||this._nameGroup(l);return`${l}${u.index++}`}_nameGroup(l){var u,f;if(!((f=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||f===void 0)&&f.has(l)||this._prefixes&&!this._prefixes.has(l))throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);return this._names[l]={prefix:l,index:0}}}e.Scope=o;class s extends t.Name{constructor(l,u){super(u),this.prefix=l}setValue(l,{property:u,itemIndex:f}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(u)}[${f}]`}}e.ValueScopeName=s;const a=(0,t._)`\n`;class c extends o{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?a:t.nil}}get(){return this._scope}name(l){return new s(l,this._newName(l))}value(l,u){var f;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const _=this.toName(l),{prefix:m}=_,w=(f=u.key)!==null&&f!==void 0?f:u.ref;let S=this._values[m];if(S){const y=S.get(w);if(y)return y}else S=this._values[m]=new Map;S.set(w,_);const b=this._scope[m]||(this._scope[m]=[]),$=b.length;return b[$]=u.ref,_.setValue(u,{property:m,itemIndex:$}),_}getValue(l,u){const f=this._values[l];if(f)return f.get(u)}scopeRefs(l,u=this._values){return this._reduceValues(u,f=>{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${l}${f.scopePath}`})}scopeCode(l=this._values,u,f){return this._reduceValues(l,_=>{if(_.value===void 0)throw new Error(`CodeGen: name "${_}" has no value`);return _.value.code},u,f)}_reduceValues(l,u,f={},_){let m=t.nil;for(const w in l){const S=l[w];if(!S)continue;const b=f[w]=f[w]||new Map;S.forEach($=>{if(b.has($))return;b.set($,n.Started);let y=u($);if(y){const d=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${d} ${$} = ${y};${this.opts._n}`}else if(y=_?.($))m=(0,t._)`${m}${y}${this.opts._n}`;else throw new r($);b.set($,n.Completed)})}return m}}e.ValueScope=c})(gl)),gl}var wl;function Ee(){return wl||(wl=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=Fn(),r=bl();var n=Fn();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=bl();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(v,I){return this}}class a extends s{constructor(v,I,T){super(),this.varKind=v,this.name=I,this.rhs=T}render({es5:v,_n:I}){const T=v?r.varKinds.var:this.varKind,M=this.rhs===void 0?"":` = ${this.rhs}`;return`${T} ${this.name}${M};`+I}optimizeNames(v,I){if(v[this.name.str])return this.rhs&&(this.rhs=K(this.rhs,v,I)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends s{constructor(v,I,T){super(),this.lhs=v,this.rhs=I,this.sideEffects=T}render({_n:v}){return`${this.lhs} = ${this.rhs};`+v}optimizeNames(v,I){if(!(this.lhs instanceof t.Name&&!v[this.lhs.str]&&!this.sideEffects))return this.rhs=K(this.rhs,v,I),this}get names(){const v=this.lhs instanceof t.Name?{}:{...this.lhs.names};return L(v,this.rhs)}}class i extends c{constructor(v,I,T,M){super(v,T,M),this.op=I}render({_n:v}){return`${this.lhs} ${this.op}= ${this.rhs};`+v}}class l extends s{constructor(v){super(),this.label=v,this.names={}}render({_n:v}){return`${this.label}:`+v}}class u extends s{constructor(v){super(),this.label=v,this.names={}}render({_n:v}){return`break${this.label?` ${this.label}`:""};`+v}}class f extends s{constructor(v){super(),this.error=v}render({_n:v}){return`throw ${this.error};`+v}get names(){return this.error.names}}class _ extends s{constructor(v){super(),this.code=v}render({_n:v}){return`${this.code};`+v}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(v,I){return this.code=K(this.code,v,I),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class m extends s{constructor(v=[]){super(),this.nodes=v}render(v){return this.nodes.reduce((I,T)=>I+T.render(v),"")}optimizeNodes(){const{nodes:v}=this;let I=v.length;for(;I--;){const T=v[I].optimizeNodes();Array.isArray(T)?v.splice(I,1,...T):T?v[I]=T:v.splice(I,1)}return v.length>0?this:void 0}optimizeNames(v,I){const{nodes:T}=this;let M=T.length;for(;M--;){const U=T[M];U.optimizeNames(v,I)||(le(v,U.names),T.splice(M,1))}return T.length>0?this:void 0}get names(){return this.nodes.reduce((v,I)=>F(v,I.names),{})}}class w extends m{render(v){return"{"+v._n+super.render(v)+"}"+v._n}}class S extends m{}class b extends w{}b.kind="else";class $ extends w{constructor(v,I){super(I),this.condition=v}render(v){let I=`if(${this.condition})`+super.render(v);return this.else&&(I+="else "+this.else.render(v)),I}optimizeNodes(){super.optimizeNodes();const v=this.condition;if(v===!0)return this.nodes;let I=this.else;if(I){const T=I.optimizeNodes();I=this.else=Array.isArray(T)?new b(T):T}if(I)return v===!1?I instanceof $?I:I.nodes:this.nodes.length?this:new $(pe(v),I instanceof $?[I]:I.nodes);if(!(v===!1||!this.nodes.length))return this}optimizeNames(v,I){var T;if(this.else=(T=this.else)===null||T===void 0?void 0:T.optimizeNames(v,I),!!(super.optimizeNames(v,I)||this.else))return this.condition=K(this.condition,v,I),this}get names(){const v=super.names;return L(v,this.condition),this.else&&F(v,this.else.names),v}}$.kind="if";class y extends w{}y.kind="for";class d extends y{constructor(v){super(),this.iteration=v}render(v){return`for(${this.iteration})`+super.render(v)}optimizeNames(v,I){if(super.optimizeNames(v,I))return this.iteration=K(this.iteration,v,I),this}get names(){return F(super.names,this.iteration.names)}}class P extends y{constructor(v,I,T,M){super(),this.varKind=v,this.name=I,this.from=T,this.to=M}render(v){const I=v.es5?r.varKinds.var:this.varKind,{name:T,from:M,to:U}=this;return`for(${I} ${T}=${M}; ${T}<${U}; ${T}++)`+super.render(v)}get names(){const v=L(super.names,this.from);return L(v,this.to)}}class h extends y{constructor(v,I,T,M){super(),this.loop=v,this.varKind=I,this.name=T,this.iterable=M}render(v){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(v)}optimizeNames(v,I){if(super.optimizeNames(v,I))return this.iterable=K(this.iterable,v,I),this}get names(){return F(super.names,this.iterable.names)}}class g extends w{constructor(v,I,T){super(),this.name=v,this.args=I,this.async=T}render(v){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(v)}}g.kind="func";class E extends m{render(v){return"return "+super.render(v)}}E.kind="return";class O extends w{render(v){let I="try"+super.render(v);return this.catch&&(I+=this.catch.render(v)),this.finally&&(I+=this.finally.render(v)),I}optimizeNodes(){var v,I;return super.optimizeNodes(),(v=this.catch)===null||v===void 0||v.optimizeNodes(),(I=this.finally)===null||I===void 0||I.optimizeNodes(),this}optimizeNames(v,I){var T,M;return super.optimizeNames(v,I),(T=this.catch)===null||T===void 0||T.optimizeNames(v,I),(M=this.finally)===null||M===void 0||M.optimizeNames(v,I),this}get names(){const v=super.names;return this.catch&&F(v,this.catch.names),this.finally&&F(v,this.finally.names),v}}class A extends w{constructor(v){super(),this.error=v}render(v){return`catch(${this.error})`+super.render(v)}}A.kind="catch";class q extends w{render(v){return"finally"+super.render(v)}}q.kind="finally";class z{constructor(v,I={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...I,_n:I.lines?`
1
+ import{d as Vr,bq as _n,l as xe,br as Jh,b8 as En,bs as ic,b9 as at,ao as cc,bt as Yh,bu as Wh,aD as $a,bd as Ke,aB as lc,p as We,bi as Hh,bv as Xh,bw as Qh,bx as Zh,be as Vt,bk as ey,bg as Pn,by as vr,bz as uc,bA as pc,bB as _a,bC as Fr,bD as Qt,bE as ty,bF as ry,aJ as Zt,b4 as Sn,b5 as ny,bf as oy,bG as sy,aE as zr,aO as dc,bH as ay,a$ as iy,aG as ir,b3 as fc,aI as Ea,aH as In,bI as xn,aP as mc,aR as cy,b1 as ly,aF as Tn,bJ as uy,aS as py,aQ as hc,b6 as dy,bl as yc,aU as gc,bK as fy,bL as my,bM as vc,bb as hy,b7 as yy,bN as bc}from"./redocly-openapi-docs.min.standalone-crUOAFz-.js";function gy(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 Ur(e){return Array.isArray(e)&&e.length>0}function Pa(e){return e?Object.keys(e):[]}var Sa={exports:{}},vy=Sa.exports,wc;function by(){return wc||(wc=1,(function(e,t){(function(r,n){typeof gy=="function"?e.exports=n():r.pluralize=n()})(vy,function(){var r=[],n=[],o={},s={},a={};function c(S){return typeof S=="string"?new RegExp("^"+S+"$","i"):S}function i(S,b){return S===b?b:S===S.toLowerCase()?b.toLowerCase():S===S.toUpperCase()?b.toUpperCase():S[0]===S[0].toUpperCase()?b.charAt(0).toUpperCase()+b.substr(1).toLowerCase():b.toLowerCase()}function l(S,b){return S.replace(/\$(\d{1,2})/g,function($,y){return b[y]||""})}function u(S,b){return S.replace(b[0],function($,y){var d=l(b[1],arguments);return i($===""?S[y-1]:$,d)})}function f(S,b,$){if(!S.length||o.hasOwnProperty(S))return b;for(var y=$.length;y--;){var d=$[y];if(d[0].test(b))return u(b,d)}return b}function _(S,b,$){return function(y){var d=y.toLowerCase();return b.hasOwnProperty(d)?i(y,d):S.hasOwnProperty(d)?i(y,S[d]):f(d,y,$)}}function m(S,b,$,y){return function(d){var P=d.toLowerCase();return b.hasOwnProperty(P)?!0:S.hasOwnProperty(P)?!1:f(P,P,$)===P}}function w(S,b,$){var y=b===1?w.singular(S):w.plural(S);return($?b+" ":"")+y}return w.plural=_(a,s,r),w.isPlural=m(a,s,r),w.singular=_(s,a,n),w.isSingular=m(s,a,n),w.addPluralRule=function(S,b){r.push([c(S),b])},w.addSingularRule=function(S,b){n.push([c(S),b])},w.addUncountableRule=function(S){if(typeof S=="string"){o[S.toLowerCase()]=!0;return}w.addPluralRule(S,"$0"),w.addSingularRule(S,"$0")},w.addIrregularRule=function(S,b){b=b.toLowerCase(),S=S.toLowerCase(),a[S]=b,s[b]=S},[["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(S){return w.addIrregularRule(S[0],S[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(S){return w.addPluralRule(S[0],S[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(S){return w.addSingularRule(S[0],S[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(w.addUncountableRule),w})})(Sa)),Sa.exports}var wy=by();const $c=Vr(wy);function $y(e,t,r){return e.split(" ").map(n=>$c(n,t,r)).join(" ")}var _c={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Br={type:"object",properties:_c,additionalProperties:!1},_y={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Gr={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:{..._c,like:Br,dislike:Br,satisfied:Br,neutral:Br,dissatisfied:Br},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:_y},additionalProperties:!1}},additionalProperties:!1},Ey={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},Ia={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Ec={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Gr,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:Ia,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:Ey,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},br={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Py={type:"object",properties:{name:{type:"string"},items:br,queries:br,mutations:br,subscriptions:br,types:br,directives:br},required:["name"],additionalProperties:!1},Sy={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Py},otherItemsGroupName:{type:"string"}}},Iy={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},xy={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},Ty={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:Iy,license:xy},additionalProperties:!1},Nn={type:"object",properties:{menu:{type:"object",properties:{...Sy.properties},additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:Ia,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:Gr,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:Ty},additionalProperties:!1},Ny={type:"object",properties:{downloadUrls:Ia,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:Gr,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},ky={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"]},Oy={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"}}},Pc={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},jy={type:"object",properties:{beforeInfo:{type:"array",items:Pc},end:{type:"array",items:Pc}}},cr={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},kn={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Ay={type:"object",properties:Cn(cr.properties,["light","dark"])},Cy={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"}}},Ry={type:"object",properties:{error:kn,info:kn,redirect:kn,success:kn}},Dy={type:"object",properties:wr(cr.properties,["dark"])},qy={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Ly={type:"object",properties:{accent:cr,border:Ay,error:cr,http:Cy,primary:cr,responses:Ry,secondary:Dy,success:cr,text:qy,tonalOffset:{type:"number"},warning:cr}},On={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},My={type:"object",properties:{small:On,medium:On,large:On,xlarge:On}},Dt={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Vy={type:"object",properties:{...wr(Dt.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:My}},Sc={type:"object",properties:Cn(Dt.properties,["fontSize","lineHeight"])},Fy={type:"object",properties:{medium:Sc,small:Sc}},zy={type:"object",properties:{...wr(Dt.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:Fy}},Uy={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},By={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},Ic={type:"object",properties:{fullWidth:{type:"boolean"}}},Gy={type:"object",properties:{buttons:Vy,httpBadges:zy,layoutControls:Uy,panels:By,tryItButton:Ic,tryItSendButton:Ic}},jn={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Ky={type:"object",properties:{maxWidth:jn}},Jy={type:"object",properties:{maxWidth:jn,middlePanelMaxWidth:jn}},Yy={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Ky,"three-panel":Jy}},xc={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},Wy={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:xc,defaultDetailsWidth:{type:"string"},examples:xc,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},Tc={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},Hy={type:"object",properties:Cn(Tc.properties,["textTransform"])},Xy={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Qy={type:"object",properties:{...wr(Dt.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:Tc,level1items:Hy,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:Xy,textColor:{type:"string"},width:{type:"string"}}},An={type:"object",properties:{...Dt.properties,color:{type:"string"},transform:{type:"string"}}},Zy={type:"object",properties:{...Dt.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"}}},eg={type:"object",properties:wr(Dt.properties,["fontSize"])},tg={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},rg={type:"object",properties:{code:Zy,fieldName:Dt,...Cn(Dt.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:An,heading2:An,heading3:An,headings:eg,lineHeight:{type:"string"},links:tg,optimizeSpeed:{type:"boolean"},rightPanelHeading:An,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},ng={type:"object",properties:{color:{type:"string"},...wr(Dt.properties,["fontWeight"])}},og={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:ng}},sg={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},ag={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},Nc={type:"object",properties:{custom:{type:"string"}}},ig={type:"object",properties:{DownloadButton:Nc,NextSectionButton:Nc}},cg={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},lg={type:"object",properties:{borderRadius:{type:"string"}}},ug={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},pg={type:"object",properties:{breakpoints:jn,codeBlock:og,colors:Ly,components:Gy,layout:Yy,logo:sg,fab:ag,overrides:ig,rightPanel:cg,schema:Wy,shape:lg,sidebar:Qy,spacing:ug,typography:rg,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},dg={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:ky}},required:["languages"]},fg={properties:{theme:pg,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:dg,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:Oy,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:jy,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 Cn(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function wr(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var yt={nodeTypeName:void 0,type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules"},mg={rules:yt,oas2Rules:yt,oas3_0Rules:yt,oas3_1Rules:yt,oas3_2Rules:yt,async2Rules:yt,async3Rules:yt,arazzo1Rules:yt,arazzo1_1Rules:yt,overlay1Rules:yt,openrpc1Rules:yt,graphqlRules:yt},wt={nodeTypeName:void 0,type:"object",additionalProperties:!0},hg={preprocessors:wt,oas2Preprocessors:wt,oas3_0Preprocessors:wt,oas3_1Preprocessors:wt,oas3_2Preprocessors:wt,async2Preprocessors:wt,async3Preprocessors:wt,arazzo1Preprocessors:wt,arazzo1_1Preprocessors:wt,overlay1Preprocessors:wt,openrpc1Preprocessors:wt},$t={nodeTypeName:void 0,type:"object",additionalProperties:!0},yg={decorators:$t,oas2Decorators:$t,oas3_0Decorators:$t,oas3_1Decorators:$t,oas3_2Decorators:$t,async2Decorators:$t,async3Decorators:$t,arazzo1Decorators:$t,arazzo1_1Decorators:$t,overlay1Decorators:$t,openrpc1Decorators:$t},gg={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"},Rn={...mg,...yg,...hg,extends:gg},kc=e=>e,it=kc({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),Ze={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Oc={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},xa={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}}},Ta={type:"array",items:{...xa,properties:{...xa.properties,items:{type:"array",items:xa}}}},vg={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},bg={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},wg={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}},$g={type:"object",properties:{facets:wg,...Ze.properties},additionalProperties:!1},_g={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},jc={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Ac={type:"object",properties:{items:Ta,...Ze.properties},additionalProperties:!1},Cc={type:"object",additionalProperties:vg},Rc={type:"object",properties:{items:Ta,copyrightText:{type:"string"},logo:Ze,...Ze.properties},additionalProperties:!1},Dc={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...Ze.properties},additionalProperties:!1},qc={type:"object",properties:{head:{type:"array",items:Oc},body:{type:"array",items:Oc}},additionalProperties:!1},Lc={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}},Mc={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:bg,filters:$g,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:_g},...Ze.properties},additionalProperties:!1},Vc={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},Fc={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...Ze.properties},additionalProperties:!1},zc={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},Eg={type:"object",properties:{...Ze.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},Uc={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...Ze.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...Ze.properties},additionalProperties:!1},actions:Eg},additionalProperties:!1},Bc={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...Ze.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...Ze.properties},additionalProperties:!1},expand:{type:"object",properties:{...Ze.properties},additionalProperties:!1},collapse:{type:"object",properties:{...Ze.properties},additionalProperties:!1}},additionalProperties:!1},Gc={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"},...Ze.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...Ze.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...Ze.properties},additionalProperties:!1},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Dn={...Ec,properties:{...Ec.properties,...fg.properties}},Pg={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},Sg={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"]},Ig={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},xg={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},Tg={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"]},Ng={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},kg={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"]},Og={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"]},jg={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:Og}},additionalProperties:!1,required:["trackingId"]},Kc={type:"object",properties:{adobe:Pg,amplitude:Sg,fullstory:Ig,heap:xg,rudderstack:Tg,segment:Ng,gtm:kg,ga:jg}},Jc={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"},...Ze.properties},additionalProperties:!1},Yc={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Wc={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},Ag={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"}}}},Cg={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:Ag},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:Ta,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},qn={type:"object",patternProperties:{".*":Cg}},Ln={nodeTypeName:it.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:it.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:it.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:it.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...Rn},additionalProperties:!1}},targets:{nodeTypeName:it.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:it.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:it.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:it.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},Rg={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},Dg={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},qg={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},Ft={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:Dg},excludes:{type:"array",items:Rg},filters:{type:"array",items:qg},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},Lg={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},Mg={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:Lg},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},Vg={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:Mg,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},Fg={type:"object",additionalProperties:Vg},Hc={type:"object",properties:{show:{type:"boolean"},entityTypes:Fg,catalogs:{type:"object",properties:{all:Ft,services:Ft,domains:Ft,teams:Ft,users:Ft,apiDescriptions:Ft,dataSchemas:Ft,apiOperations:Ft},additionalProperties:Ft}},additionalProperties:!1},Xc={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},Na={type:"string",enum:["and","or"]},ka={type:"object",properties:{field:{type:"string"},operator:Xc,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Xc,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},zg={type:"object",properties:{operator:Na,conditions:{type:"array",items:ka}},required:["operator","conditions"],additionalProperties:!1},Qc={type:"array",items:{oneOf:[ka,{type:"object",properties:{operator:Na,conditions:{type:"array",items:{oneOf:[ka,zg]}}},required:["operator","conditions"],additionalProperties:!1}]}},Zc={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},Ug={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:Zc},required:["subject","assertions"],additionalProperties:!1}},Bg={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:Zc,where:Ug,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},Gg={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},Bg]}},Kg={type:"object",properties:{name:{type:"string"},extends:Rn.extends,rules:Gg},required:["name"],additionalProperties:!1},el={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},Jg={oneOf:[el,{type:"array",items:el}]},Yg={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[Qc,{type:"object",properties:{operator:Na,conditions:Qc},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:Kg,minItems:1},trigger:Jg},required:["name","key","entities","levels"],additionalProperties:!1},tl={type:"array",items:Yg},Wg={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:jc,navbar:Ac,products:Cc,footer:Rc,sidebar:Dc,scripts:qc,links:Lc,feedback:Gr,search:Mc,aiAssistant:Vc,colorMode:Fc,palette:zc,navigation:Uc,codeSnippet:Bc,markdown:Gc,openapi:Dn,asyncapi:Ny,graphql:Nn,analytics:Kc,userMenu:Jc,versionPicker:Yc,breadcrumbs:Wc,catalog:qn,entitiesCatalog:Hc,catalogClassic:qn,scorecard:Ln,scorecardClassic:Ln,scorecards:tl},additionalProperties:!0},Hg=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(Hg||{}),Xg=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(Xg||{}),Qg=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(Qg||{}),Zg="^[a-z0-9]+(?:-[a-z0-9]+)*$",rl="redocly",ev=[rl,"corporate","guest"],nl=["REDOCLY","CORPORATE","GUEST"],tv={type:"object",additionalProperties:{type:"string"}},rv={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Mn={type:"string",enum:["error","warn","off"]},nv={type:"object",additionalProperties:!1,properties:{schemaCheck:Mn,statusCodeCheck:Mn,contentTypeCheck:Mn,successCriteriaCheck:Mn}},ov={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},sv={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},av={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},iv={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:[ov,sv]},inputs:tv,servers:rv,severity:nv,slo:av},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},cv={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},lv={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:cv,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},uv={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"]},pv={oneOf:[lv,uv],discriminator:{propertyName:"type"}},dv={type:"object",additionalProperties:pv},ol={oneOf:[{type:"array",items:{type:"string",enum:nl},uniqueItems:!0},{type:"string",enum:nl}]},sl={type:"string",pattern:Zg,not:{enum:ev.filter(e=>e!==rl)}},al={oneOf:[{type:"array",items:sl,uniqueItems:!0},sl]},il={type:"boolean"},cl={type:"string",pattern:"^https?://.*"},ll={type:"string",pattern:"^https?://.*"},fv={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:it.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},mv={type:"object",additionalProperties:fv,nodeTypeName:it.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"},hv={type:"string",enum:["info","success","warning","error"]},ze={type:"object",additionalProperties:{type:"string"}},yv={type:"object",properties:{trackingId:{type:"string"},content:{type:"string"},dismissible:{type:"boolean"},target:{type:"string"},color:hv,rbac:ze,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},gv={type:"array",items:yv},vv={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:ze,openapi:Dn,graphql:Nn,theme:{type:"object",properties:{openapi:Dn,graphql:Nn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...Rn},required:["root"]},bv={type:"object",additionalProperties:!0},wv={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},$v={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},_v={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:$v},additionalProperties:!1},Ev={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},Pv={type:"object",properties:{catalogs:{type:"object",properties:{all:ze,services:ze,domains:ze,teams:ze,users:ze,apiDescriptions:ze,dataSchemas:ze,apiOperations:ze},additionalProperties:ze},entitiesTypes:{type:"object",properties:{service:ze,domain:ze,team:ze,user:ze,apiDescription:ze,apiOperation:ze,dataSchema:ze},additionalProperties:ze},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:ze},additionalProperties:!1}},entities:{type:"object",properties:{"**":ze},additionalProperties:ze}},additionalProperties:!1},ul={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:ze,cms:ze,reunite:ze,features:{type:"object",properties:{aiSearch:ze,mcp:ze},additionalProperties:!1},content:{type:"object",properties:{"**":ze},additionalProperties:ze},entitiesCatalog:Pv},additionalProperties:ze},Sv={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},Iv={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},xv={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[Sv,Iv]}},additionalProperties:!1,required:["type","apiBaseUrl"]},Tv={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},Nv={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Oa={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:[Tv,Nv],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},kv={...Oa,properties:{...Oa.properties,type:{type:"string",const:"APIGEE_EDGE"}}},Ov={type:"object",oneOf:[Oa,kv,xv],discriminator:{propertyName:"type"}},jv={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:Ov}}},pl={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"]},Av={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},Cv={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},Rv={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},Dv={type:"object",properties:{requiresLogin:il,logoutReturnUrl:cl,residency:ll,sso:ol,idps:al,rbac:ul},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},ja={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:mv,seo:_v,rbac:ul,apiFunctions:Ev,requiresLogin:il,responseHeaders:{type:"object",additionalProperties:{type:"array",items:Av}},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:vv},...Rn,ssoDirect:dv,sso:ol,idps:al,residency:ll,logoutReturnUrl:cl,access:Dv,developerOnboarding:jv,removeAttribution:{type:"boolean"},i18n:pl,l10n:pl,metadata:bv,metadataGlobs:wv,ignore:{type:"array",items:{type:"string"}},theme:Wg,reunite:iv,logo:jc,navbar:Ac,products:Cc,footer:Rc,sidebar:Dc,scripts:qc,links:Lc,feedback:Gr,search:Mc,aiAssistant:Vc,colorMode:Fc,palette:zc,navigation:Uc,codeSnippet:Bc,markdown:Gc,openapi:Dn,graphql:Nn,analytics:Kc,userMenu:Jc,versionPicker:Yc,breadcrumbs:Wc,catalog:qn,entitiesCatalog:Hc,catalogClassic:qn,scorecard:Ln,scorecardClassic:Ln,scorecards:tl,mcp:Cv,skills:Rv,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:gv},not:{required:["sso","idps"]},additionalProperties:!0},qv={...ja,additionalProperties:!1},Vn={$id:"root-redocly-config",...ja,properties:{plugins:{type:"array",items:{type:"string"}},...ja.properties,env:{type:"object",additionalProperties:qv}},additionalProperties:!1},Lv=["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"],He=kc({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"}),Mv={type:"object",nodeTypeName:He.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},Vv={type:"object",nodeTypeName:He.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},Fv={type:"object",nodeTypeName:He.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},zv={type:"object",nodeTypeName:He.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},Uv={type:"object",properties:{},nodeTypeName:He.EntityMetadata,additionalProperties:!0},Bv={type:"object",nodeTypeName:He.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},Gv={type:"object",nodeTypeName:He.EntitySlackContact,properties:{channels:{type:"array",items:Bv}},required:["channels"],additionalProperties:!1},Kv={type:"object",nodeTypeName:He.EntityContact,properties:{slack:Gv},additionalProperties:!1},Jv={type:"object",nodeTypeName:He.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},Yv={type:"object",nodeTypeName:He.EntityRelation,properties:{type:{type:"string",enum:Lv},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},er={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:Kv,links:{type:"array",nodeTypeName:He.EntityLinkList,items:Jv},relations:{type:"array",nodeTypeName:He.EntityRelationList,items:Yv},metadata:Uv},Wv={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...er,type:{type:"string",const:"user"},metadata:Mv},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:He.UserEntity},{type:"object",nodeTypeName:He.ApiOperationEntity,properties:{...er,type:{type:"string",const:"api-operation"},metadata:Fv},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:He.DataSchemaEntity,properties:{...er,type:{type:"string",const:"data-schema"},metadata:zv},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:He.ApiDescriptionEntity,properties:{...er,type:{type:"string",const:"api-description"},metadata:Vv},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:He.ServiceEntity,properties:{...er,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:He.DomainEntity,properties:{...er,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:He.TeamEntity,properties:{...er,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},Hv={type:"object",nodeTypeName:He.Entity,properties:{...er},required:["key","title","type"],additionalProperties:!1};const Xv=["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 Aa(e){return e.includes("/")}var Ca={exports:{}},dl={},zt={},lr={},fl={},ml={},hl={},yl;function Fn(){return yl||(yl=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(y){if(super(),!e.IDENTIFIER.test(y))throw new Error("CodeGen: name must be a valid identifier");this.str=y}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(y){super(),this._items=typeof y=="string"?[y]:y}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const y=this._items[0];return y===""||y==='""'}get str(){var y;return(y=this._str)!==null&&y!==void 0?y:this._str=this._items.reduce((d,P)=>`${d}${P}`,"")}get names(){var y;return(y=this._names)!==null&&y!==void 0?y:this._names=this._items.reduce((d,P)=>(P instanceof r&&(d[P.str]=(d[P.str]||0)+1),d),{})}}e._Code=n,e.nil=new n("");function o($,...y){const d=[$[0]];let P=0;for(;P<y.length;)c(d,y[P]),d.push($[++P]);return new n(d)}e._=o;const s=new n("+");function a($,...y){const d=[m($[0])];let P=0;for(;P<y.length;)d.push(s),c(d,y[P]),d.push(s,m($[++P]));return i(d),new n(d)}e.str=a;function c($,y){y instanceof n?$.push(...y._items):y instanceof r?$.push(y):$.push(f(y))}e.addCodeArg=c;function i($){let y=1;for(;y<$.length-1;){if($[y]===s){const d=l($[y-1],$[y+1]);if(d!==void 0){$.splice(y-1,3,d);continue}$[y++]="+"}y++}}function l($,y){if(y==='""')return $;if($==='""')return y;if(typeof $=="string")return y instanceof r||$[$.length-1]!=='"'?void 0:typeof y!="string"?`${$.slice(0,-1)}${y}"`:y[0]==='"'?$.slice(0,-1)+y.slice(1):void 0;if(typeof y=="string"&&y[0]==='"'&&!($ instanceof r))return`"${$}${y.slice(1)}`}function u($,y){return y.emptyStr()?$:$.emptyStr()?y:a`${$}${y}`}e.strConcat=u;function f($){return typeof $=="number"||typeof $=="boolean"||$===null?$:m(Array.isArray($)?$.join(","):$)}function _($){return new n(m($))}e.stringify=_;function m($){return JSON.stringify($).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=m;function w($){return typeof $=="string"&&e.IDENTIFIER.test($)?new n(`.${$}`):o`[${$}]`}e.getProperty=w;function S($){if(typeof $=="string"&&e.IDENTIFIER.test($))return new n(`${$}`);throw new Error(`CodeGen: invalid export name: ${$}, use explicit $id name mapping`)}e.getEsmExportName=S;function b($){return new n($.toString())}e.regexpCode=b})(hl)),hl}var gl={},vl;function bl(){return vl||(vl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Fn();class r extends Error{constructor(l){super(`CodeGen: "code" for ${l} not defined`),this.value=l.value}}var n;(function(i){i[i.Started=0]="Started",i[i.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:l,parent:u}={}){this._names={},this._prefixes=l,this._parent=u}toName(l){return l instanceof t.Name?l:this.name(l)}name(l){return new t.Name(this._newName(l))}_newName(l){const u=this._names[l]||this._nameGroup(l);return`${l}${u.index++}`}_nameGroup(l){var u,f;if(!((f=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||f===void 0)&&f.has(l)||this._prefixes&&!this._prefixes.has(l))throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);return this._names[l]={prefix:l,index:0}}}e.Scope=o;class s extends t.Name{constructor(l,u){super(u),this.prefix=l}setValue(l,{property:u,itemIndex:f}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(u)}[${f}]`}}e.ValueScopeName=s;const a=(0,t._)`\n`;class c extends o{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?a:t.nil}}get(){return this._scope}name(l){return new s(l,this._newName(l))}value(l,u){var f;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const _=this.toName(l),{prefix:m}=_,w=(f=u.key)!==null&&f!==void 0?f:u.ref;let S=this._values[m];if(S){const y=S.get(w);if(y)return y}else S=this._values[m]=new Map;S.set(w,_);const b=this._scope[m]||(this._scope[m]=[]),$=b.length;return b[$]=u.ref,_.setValue(u,{property:m,itemIndex:$}),_}getValue(l,u){const f=this._values[l];if(f)return f.get(u)}scopeRefs(l,u=this._values){return this._reduceValues(u,f=>{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${l}${f.scopePath}`})}scopeCode(l=this._values,u,f){return this._reduceValues(l,_=>{if(_.value===void 0)throw new Error(`CodeGen: name "${_}" has no value`);return _.value.code},u,f)}_reduceValues(l,u,f={},_){let m=t.nil;for(const w in l){const S=l[w];if(!S)continue;const b=f[w]=f[w]||new Map;S.forEach($=>{if(b.has($))return;b.set($,n.Started);let y=u($);if(y){const d=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${d} ${$} = ${y};${this.opts._n}`}else if(y=_?.($))m=(0,t._)`${m}${y}${this.opts._n}`;else throw new r($);b.set($,n.Completed)})}return m}}e.ValueScope=c})(gl)),gl}var wl;function Ee(){return wl||(wl=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=Fn(),r=bl();var n=Fn();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=bl();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(v,I){return this}}class a extends s{constructor(v,I,T){super(),this.varKind=v,this.name=I,this.rhs=T}render({es5:v,_n:I}){const T=v?r.varKinds.var:this.varKind,M=this.rhs===void 0?"":` = ${this.rhs}`;return`${T} ${this.name}${M};`+I}optimizeNames(v,I){if(v[this.name.str])return this.rhs&&(this.rhs=K(this.rhs,v,I)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends s{constructor(v,I,T){super(),this.lhs=v,this.rhs=I,this.sideEffects=T}render({_n:v}){return`${this.lhs} = ${this.rhs};`+v}optimizeNames(v,I){if(!(this.lhs instanceof t.Name&&!v[this.lhs.str]&&!this.sideEffects))return this.rhs=K(this.rhs,v,I),this}get names(){const v=this.lhs instanceof t.Name?{}:{...this.lhs.names};return L(v,this.rhs)}}class i extends c{constructor(v,I,T,M){super(v,T,M),this.op=I}render({_n:v}){return`${this.lhs} ${this.op}= ${this.rhs};`+v}}class l extends s{constructor(v){super(),this.label=v,this.names={}}render({_n:v}){return`${this.label}:`+v}}class u extends s{constructor(v){super(),this.label=v,this.names={}}render({_n:v}){return`break${this.label?` ${this.label}`:""};`+v}}class f extends s{constructor(v){super(),this.error=v}render({_n:v}){return`throw ${this.error};`+v}get names(){return this.error.names}}class _ extends s{constructor(v){super(),this.code=v}render({_n:v}){return`${this.code};`+v}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(v,I){return this.code=K(this.code,v,I),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class m extends s{constructor(v=[]){super(),this.nodes=v}render(v){return this.nodes.reduce((I,T)=>I+T.render(v),"")}optimizeNodes(){const{nodes:v}=this;let I=v.length;for(;I--;){const T=v[I].optimizeNodes();Array.isArray(T)?v.splice(I,1,...T):T?v[I]=T:v.splice(I,1)}return v.length>0?this:void 0}optimizeNames(v,I){const{nodes:T}=this;let M=T.length;for(;M--;){const U=T[M];U.optimizeNames(v,I)||(le(v,U.names),T.splice(M,1))}return T.length>0?this:void 0}get names(){return this.nodes.reduce((v,I)=>F(v,I.names),{})}}class w extends m{render(v){return"{"+v._n+super.render(v)+"}"+v._n}}class S extends m{}class b extends w{}b.kind="else";class $ extends w{constructor(v,I){super(I),this.condition=v}render(v){let I=`if(${this.condition})`+super.render(v);return this.else&&(I+="else "+this.else.render(v)),I}optimizeNodes(){super.optimizeNodes();const v=this.condition;if(v===!0)return this.nodes;let I=this.else;if(I){const T=I.optimizeNodes();I=this.else=Array.isArray(T)?new b(T):T}if(I)return v===!1?I instanceof $?I:I.nodes:this.nodes.length?this:new $(pe(v),I instanceof $?[I]:I.nodes);if(!(v===!1||!this.nodes.length))return this}optimizeNames(v,I){var T;if(this.else=(T=this.else)===null||T===void 0?void 0:T.optimizeNames(v,I),!!(super.optimizeNames(v,I)||this.else))return this.condition=K(this.condition,v,I),this}get names(){const v=super.names;return L(v,this.condition),this.else&&F(v,this.else.names),v}}$.kind="if";class y extends w{}y.kind="for";class d extends y{constructor(v){super(),this.iteration=v}render(v){return`for(${this.iteration})`+super.render(v)}optimizeNames(v,I){if(super.optimizeNames(v,I))return this.iteration=K(this.iteration,v,I),this}get names(){return F(super.names,this.iteration.names)}}class P extends y{constructor(v,I,T,M){super(),this.varKind=v,this.name=I,this.from=T,this.to=M}render(v){const I=v.es5?r.varKinds.var:this.varKind,{name:T,from:M,to:U}=this;return`for(${I} ${T}=${M}; ${T}<${U}; ${T}++)`+super.render(v)}get names(){const v=L(super.names,this.from);return L(v,this.to)}}class h extends y{constructor(v,I,T,M){super(),this.loop=v,this.varKind=I,this.name=T,this.iterable=M}render(v){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(v)}optimizeNames(v,I){if(super.optimizeNames(v,I))return this.iterable=K(this.iterable,v,I),this}get names(){return F(super.names,this.iterable.names)}}class g extends w{constructor(v,I,T){super(),this.name=v,this.args=I,this.async=T}render(v){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(v)}}g.kind="func";class E extends m{render(v){return"return "+super.render(v)}}E.kind="return";class O extends w{render(v){let I="try"+super.render(v);return this.catch&&(I+=this.catch.render(v)),this.finally&&(I+=this.finally.render(v)),I}optimizeNodes(){var v,I;return super.optimizeNodes(),(v=this.catch)===null||v===void 0||v.optimizeNodes(),(I=this.finally)===null||I===void 0||I.optimizeNodes(),this}optimizeNames(v,I){var T,M;return super.optimizeNames(v,I),(T=this.catch)===null||T===void 0||T.optimizeNames(v,I),(M=this.finally)===null||M===void 0||M.optimizeNames(v,I),this}get names(){const v=super.names;return this.catch&&F(v,this.catch.names),this.finally&&F(v,this.finally.names),v}}class A extends w{constructor(v){super(),this.error=v}render(v){return`catch(${this.error})`+super.render(v)}}A.kind="catch";class q extends w{render(v){return"finally"+super.render(v)}}q.kind="finally";class z{constructor(v,I={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...I,_n:I.lines?`
2
2
  `:""},this._extScope=v,this._scope=new r.Scope({parent:v}),this._nodes=[new S]}toString(){return this._root.render(this.opts)}name(v){return this._scope.name(v)}scopeName(v){return this._extScope.name(v)}scopeValue(v,I){const T=this._extScope.value(v,I);return(this._values[T.prefix]||(this._values[T.prefix]=new Set)).add(T),T}getScopeValue(v,I){return this._extScope.getValue(v,I)}scopeRefs(v){return this._extScope.scopeRefs(v,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(v,I,T,M){const U=this._scope.toName(I);return T!==void 0&&M&&(this._constants[U.str]=T),this._leafNode(new a(v,U,T)),U}const(v,I,T){return this._def(r.varKinds.const,v,I,T)}let(v,I,T){return this._def(r.varKinds.let,v,I,T)}var(v,I,T){return this._def(r.varKinds.var,v,I,T)}assign(v,I,T){return this._leafNode(new c(v,I,T))}add(v,I){return this._leafNode(new i(v,e.operators.ADD,I))}code(v){return typeof v=="function"?v():v!==t.nil&&this._leafNode(new _(v)),this}object(...v){const I=["{"];for(const[T,M]of v)I.length>1&&I.push(","),I.push(T),(T!==M||this.opts.es5)&&(I.push(":"),(0,t.addCodeArg)(I,M));return I.push("}"),new t._Code(I)}if(v,I,T){if(this._blockNode(new $(v)),I&&T)this.code(I).else().code(T).endIf();else if(I)this.code(I).endIf();else if(T)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(v){return this._elseNode(new $(v))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode($,b)}_for(v,I){return this._blockNode(v),I&&this.code(I).endFor(),this}for(v,I){return this._for(new d(v),I)}forRange(v,I,T,M,U=this.opts.es5?r.varKinds.var:r.varKinds.let){const J=this._scope.toName(v);return this._for(new P(U,J,I,T),()=>M(J))}forOf(v,I,T,M=r.varKinds.const){const U=this._scope.toName(v);if(this.opts.es5){const J=I instanceof t.Name?I:this.var("_arr",I);return this.forRange("_i",0,(0,t._)`${J}.length`,re=>{this.var(U,(0,t._)`${J}[${re}]`),T(U)})}return this._for(new h("of",M,U,I),()=>T(U))}forIn(v,I,T,M=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(v,(0,t._)`Object.keys(${I})`,T);const U=this._scope.toName(v);return this._for(new h("in",M,U,I),()=>T(U))}endFor(){return this._endBlockNode(y)}label(v){return this._leafNode(new l(v))}break(v){return this._leafNode(new u(v))}return(v){const I=new E;if(this._blockNode(I),this.code(v),I.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(v,I,T){if(!I&&!T)throw new Error('CodeGen: "try" without "catch" and "finally"');const M=new O;if(this._blockNode(M),this.code(v),I){const U=this.name("e");this._currNode=M.catch=new A(U),I(U)}return T&&(this._currNode=M.finally=new q,this.code(T)),this._endBlockNode(A,q)}throw(v){return this._leafNode(new f(v))}block(v,I){return this._blockStarts.push(this._nodes.length),v&&this.code(v).endBlock(I),this}endBlock(v){const I=this._blockStarts.pop();if(I===void 0)throw new Error("CodeGen: not in self-balancing block");const T=this._nodes.length-I;if(T<0||v!==void 0&&T!==v)throw new Error(`CodeGen: wrong number of nodes: ${T} vs ${v} expected`);return this._nodes.length=I,this}func(v,I=t.nil,T,M){return this._blockNode(new g(v,I,T)),M&&this.code(M).endFunc(),this}endFunc(){return this._endBlockNode(g)}optimize(v=1){for(;v-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(v){return this._currNode.nodes.push(v),this}_blockNode(v){this._currNode.nodes.push(v),this._nodes.push(v)}_endBlockNode(v,I){const T=this._currNode;if(T instanceof v||I&&T instanceof I)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${I?`${v.kind}/${I.kind}`:v.kind}"`)}_elseNode(v){const I=this._currNode;if(!(I instanceof $))throw new Error('CodeGen: "else" without "if"');return this._currNode=I.else=v,this}get _root(){return this._nodes[0]}get _currNode(){const v=this._nodes;return v[v.length-1]}set _currNode(v){const I=this._nodes;I[I.length-1]=v}}e.CodeGen=z;function F(j,v){for(const I in v)j[I]=(j[I]||0)+(v[I]||0);return j}function L(j,v){return v instanceof t._CodeOrName?F(j,v.names):j}function K(j,v,I){if(j instanceof t.Name)return T(j);if(!M(j))return j;return new t._Code(j._items.reduce((U,J)=>(J instanceof t.Name&&(J=T(J)),J instanceof t._Code?U.push(...J._items):U.push(J),U),[]));function T(U){const J=I[U.str];return J===void 0||v[U.str]!==1?U:(delete v[U.str],J)}function M(U){return U instanceof t._Code&&U._items.some(J=>J instanceof t.Name&&v[J.str]===1&&I[J.str]!==void 0)}}function le(j,v){for(const I in v)j[I]=(j[I]||0)-(v[I]||0)}function pe(j){return typeof j=="boolean"||typeof j=="number"||j===null?!j:(0,t._)`!${V(j)}`}e.not=pe;const Se=k(e.operators.AND);function ce(...j){return j.reduce(Se)}e.and=ce;const _e=k(e.operators.OR);function R(...j){return j.reduce(_e)}e.or=R;function k(j){return(v,I)=>v===t.nil?I:I===t.nil?v:(0,t._)`${V(v)} ${j} ${V(I)}`}function V(j){return j instanceof t.Name?j:(0,t._)`(${j})`}})(ml)),ml}var Ne={},$l;function Ce(){if($l)return Ne;$l=1,Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.checkStrictMode=Ne.getErrorPath=Ne.Type=Ne.useFunc=Ne.setEvaluated=Ne.evaluatedPropsToName=Ne.mergeEvaluated=Ne.eachItem=Ne.unescapeJsonPointer=Ne.escapeJsonPointer=Ne.escapeFragment=Ne.unescapeFragment=Ne.schemaRefOrVal=Ne.schemaHasRulesButRef=Ne.schemaHasRules=Ne.checkUnknownRules=Ne.alwaysValidSchema=Ne.toHash=void 0;const e=Ee(),t=Fn();function r(h){const g={};for(const E of h)g[E]=!0;return g}Ne.toHash=r;function n(h,g){return typeof g=="boolean"?g:Object.keys(g).length===0?!0:(o(h,g),!s(g,h.self.RULES.all))}Ne.alwaysValidSchema=n;function o(h,g=h.schema){const{opts:E,self:O}=h;if(!E.strictSchema||typeof g=="boolean")return;const A=O.RULES.keywords;for(const q in g)A[q]||P(h,`unknown keyword: "${q}"`)}Ne.checkUnknownRules=o;function s(h,g){if(typeof h=="boolean")return!h;for(const E in h)if(g[E])return!0;return!1}Ne.schemaHasRules=s;function a(h,g){if(typeof h=="boolean")return!h;for(const E in h)if(E!=="$ref"&&g.all[E])return!0;return!1}Ne.schemaHasRulesButRef=a;function c({topSchemaRef:h,schemaPath:g},E,O,A){if(!A){if(typeof E=="number"||typeof E=="boolean")return E;if(typeof E=="string")return(0,e._)`${E}`}return(0,e._)`${h}${g}${(0,e.getProperty)(O)}`}Ne.schemaRefOrVal=c;function i(h){return f(decodeURIComponent(h))}Ne.unescapeFragment=i;function l(h){return encodeURIComponent(u(h))}Ne.escapeFragment=l;function u(h){return typeof h=="number"?`${h}`:h.replace(/~/g,"~0").replace(/\//g,"~1")}Ne.escapeJsonPointer=u;function f(h){return h.replace(/~1/g,"/").replace(/~0/g,"~")}Ne.unescapeJsonPointer=f;function _(h,g){if(Array.isArray(h))for(const E of h)g(E);else g(h)}Ne.eachItem=_;function m({mergeNames:h,mergeToName:g,mergeValues:E,resultToName:O}){return(A,q,z,F)=>{const L=z===void 0?q:z instanceof e.Name?(q instanceof e.Name?h(A,q,z):g(A,q,z),z):q instanceof e.Name?(g(A,z,q),q):E(q,z);return F===e.Name&&!(L instanceof e.Name)?O(A,L):L}}Ne.mergeEvaluated={props:m({mergeNames:(h,g,E)=>h.if((0,e._)`${E} !== true && ${g} !== undefined`,()=>{h.if((0,e._)`${g} === true`,()=>h.assign(E,!0),()=>h.assign(E,(0,e._)`${E} || {}`).code((0,e._)`Object.assign(${E}, ${g})`))}),mergeToName:(h,g,E)=>h.if((0,e._)`${E} !== true`,()=>{g===!0?h.assign(E,!0):(h.assign(E,(0,e._)`${E} || {}`),S(h,E,g))}),mergeValues:(h,g)=>h===!0?!0:{...h,...g},resultToName:w}),items:m({mergeNames:(h,g,E)=>h.if((0,e._)`${E} !== true && ${g} !== undefined`,()=>h.assign(E,(0,e._)`${g} === true ? true : ${E} > ${g} ? ${E} : ${g}`)),mergeToName:(h,g,E)=>h.if((0,e._)`${E} !== true`,()=>h.assign(E,g===!0?!0:(0,e._)`${E} > ${g} ? ${E} : ${g}`)),mergeValues:(h,g)=>h===!0?!0:Math.max(h,g),resultToName:(h,g)=>h.var("items",g)})};function w(h,g){if(g===!0)return h.var("props",!0);const E=h.var("props",(0,e._)`{}`);return g!==void 0&&S(h,E,g),E}Ne.evaluatedPropsToName=w;function S(h,g,E){Object.keys(E).forEach(O=>h.assign((0,e._)`${g}${(0,e.getProperty)(O)}`,!0))}Ne.setEvaluated=S;const b={};function $(h,g){return h.scopeValue("func",{ref:g,code:b[g.code]||(b[g.code]=new t._Code(g.code))})}Ne.useFunc=$;var y;(function(h){h[h.Num=0]="Num",h[h.Str=1]="Str"})(y||(Ne.Type=y={}));function d(h,g,E){if(h instanceof e.Name){const O=g===y.Num;return E?O?(0,e._)`"[" + ${h} + "]"`:(0,e._)`"['" + ${h} + "']"`:O?(0,e._)`"/" + ${h}`:(0,e._)`"/" + ${h}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return E?(0,e.getProperty)(h).toString():"/"+u(h)}Ne.getErrorPath=d;function P(h,g,E=h.opts.strictSchema){if(E){if(g=`strict mode: ${g}`,E===!0)throw new Error(g);h.self.logger.warn(g)}}return Ne.checkStrictMode=P,Ne}var zn={},_l;function pt(){if(_l)return zn;_l=1,Object.defineProperty(zn,"__esModule",{value:!0});const e=Ee(),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 zn.default=t,zn}var El;function Un(){return El||(El=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=Ee(),r=Ce(),n=pt();e.keywordError={message:({keyword:b})=>(0,t.str)`must pass "${b}" keyword validation`},e.keyword$DataError={message:({keyword:b,schemaType:$})=>$?(0,t.str)`"${b}" keyword must be ${$} ($data)`:(0,t.str)`"${b}" keyword is invalid ($data)`};function o(b,$=e.keywordError,y,d){const{it:P}=b,{gen:h,compositeRule:g,allErrors:E}=P,O=f(b,$,y);d??(g||E)?i(h,O):l(P,(0,t._)`[${O}]`)}e.reportError=o;function s(b,$=e.keywordError,y){const{it:d}=b,{gen:P,compositeRule:h,allErrors:g}=d,E=f(b,$,y);i(P,E),h||g||l(d,n.default.vErrors)}e.reportExtraError=s;function a(b,$){b.assign(n.default.errors,$),b.if((0,t._)`${n.default.vErrors} !== null`,()=>b.if($,()=>b.assign((0,t._)`${n.default.vErrors}.length`,$),()=>b.assign(n.default.vErrors,null)))}e.resetErrorsCount=a;function c({gen:b,keyword:$,schemaValue:y,data:d,errsCount:P,it:h}){if(P===void 0)throw new Error("ajv implementation error");const g=b.name("err");b.forRange("i",P,n.default.errors,E=>{b.const(g,(0,t._)`${n.default.vErrors}[${E}]`),b.if((0,t._)`${g}.instancePath === undefined`,()=>b.assign((0,t._)`${g}.instancePath`,(0,t.strConcat)(n.default.instancePath,h.errorPath))),b.assign((0,t._)`${g}.schemaPath`,(0,t.str)`${h.errSchemaPath}/${$}`),h.opts.verbose&&(b.assign((0,t._)`${g}.schema`,y),b.assign((0,t._)`${g}.data`,d))})}e.extendErrors=c;function i(b,$){const y=b.const("err",$);b.if((0,t._)`${n.default.vErrors} === null`,()=>b.assign(n.default.vErrors,(0,t._)`[${y}]`),(0,t._)`${n.default.vErrors}.push(${y})`),b.code((0,t._)`${n.default.errors}++`)}function l(b,$){const{gen:y,validateName:d,schemaEnv:P}=b;P.$async?y.throw((0,t._)`new ${b.ValidationError}(${$})`):(y.assign((0,t._)`${d}.errors`,$),y.return(!1))}const u={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 f(b,$,y){const{createErrors:d}=b.it;return d===!1?(0,t._)`{}`:_(b,$,y)}function _(b,$,y={}){const{gen:d,it:P}=b,h=[m(P,y),w(b,y)];return S(b,$,h),d.object(...h)}function m({errorPath:b},{instancePath:$}){const y=$?(0,t.str)`${b}${(0,r.getErrorPath)($,r.Type.Str)}`:b;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,y)]}function w({keyword:b,it:{errSchemaPath:$}},{schemaPath:y,parentSchema:d}){let P=d?$:(0,t.str)`${$}/${b}`;return y&&(P=(0,t.str)`${P}${(0,r.getErrorPath)(y,r.Type.Str)}`),[u.schemaPath,P]}function S(b,{params:$,message:y},d){const{keyword:P,data:h,schemaValue:g,it:E}=b,{opts:O,propertyName:A,topSchemaRef:q,schemaPath:z}=E;d.push([u.keyword,P],[u.params,typeof $=="function"?$(b):$||(0,t._)`{}`]),O.messages&&d.push([u.message,typeof y=="function"?y(b):y]),O.verbose&&d.push([u.schema,g],[u.parentSchema,(0,t._)`${q}${z}`],[n.default.data,h]),A&&d.push([u.propertyName,A])}})(fl)),fl}var Pl;function Qv(){if(Pl)return lr;Pl=1,Object.defineProperty(lr,"__esModule",{value:!0}),lr.boolOrEmptySchema=lr.topBoolOrEmptySchema=void 0;const e=Un(),t=Ee(),r=pt(),n={message:"boolean schema is false"};function o(c){const{gen:i,schema:l,validateName:u}=c;l===!1?a(c,!1):typeof l=="object"&&l.$async===!0?i.return(r.default.data):(i.assign((0,t._)`${u}.errors`,null),i.return(!0))}lr.topBoolOrEmptySchema=o;function s(c,i){const{gen:l,schema:u}=c;u===!1?(l.var(i,!1),a(c)):l.var(i,!0)}lr.boolOrEmptySchema=s;function a(c,i){const{gen:l,data:u}=c,f={gen:l,keyword:"false schema",data:u,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:c};(0,e.reportError)(f,n,void 0,i)}return lr}var tt={},ur={},Sl;function Il(){if(Sl)return ur;Sl=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.getRules=ur.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)}ur.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 ur.getRules=n,ur}var Ut={},xl;function Tl(){if(xl)return Ut;xl=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.shouldUseRule=Ut.shouldUseGroup=Ut.schemaHasRulesForType=void 0;function e({schema:n,self:o},s){const a=o.RULES.types[s];return a&&a!==!0&&t(n,a)}Ut.schemaHasRulesForType=e;function t(n,o){return o.rules.some(s=>r(n,s))}Ut.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(a=>n[a]!==void 0))}return Ut.shouldUseRule=r,Ut}var Nl;function Bn(){if(Nl)return tt;Nl=1,Object.defineProperty(tt,"__esModule",{value:!0}),tt.reportTypeError=tt.checkDataTypes=tt.checkDataType=tt.coerceAndCheckDataType=tt.getJSONTypes=tt.getSchemaTypes=tt.DataType=void 0;const e=Il(),t=Tl(),r=Un(),n=Ee(),o=Ce();var s;(function(y){y[y.Correct=0]="Correct",y[y.Wrong=1]="Wrong"})(s||(tt.DataType=s={}));function a(y){const d=c(y.type);if(d.includes("null")){if(y.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!d.length&&y.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');y.nullable===!0&&d.push("null")}return d}tt.getSchemaTypes=a;function c(y){const d=Array.isArray(y)?y:y?[y]:[];if(d.every(e.isJSONType))return d;throw new Error("type must be JSONType or JSONType[]: "+d.join(","))}tt.getJSONTypes=c;function i(y,d){const{gen:P,data:h,opts:g}=y,E=u(d,g.coerceTypes),O=d.length>0&&!(E.length===0&&d.length===1&&(0,t.schemaHasRulesForType)(y,d[0]));if(O){const A=w(d,h,g.strictNumbers,s.Wrong);P.if(A,()=>{E.length?f(y,d,E):b(y)})}return O}tt.coerceAndCheckDataType=i;const l=new Set(["string","number","integer","boolean","null"]);function u(y,d){return d?y.filter(P=>l.has(P)||d==="array"&&P==="array"):[]}function f(y,d,P){const{gen:h,data:g,opts:E}=y,O=h.let("dataType",(0,n._)`typeof ${g}`),A=h.let("coerced",(0,n._)`undefined`);E.coerceTypes==="array"&&h.if((0,n._)`${O} == 'object' && Array.isArray(${g}) && ${g}.length == 1`,()=>h.assign(g,(0,n._)`${g}[0]`).assign(O,(0,n._)`typeof ${g}`).if(w(d,g,E.strictNumbers),()=>h.assign(A,g))),h.if((0,n._)`${A} !== undefined`);for(const z of P)(l.has(z)||z==="array"&&E.coerceTypes==="array")&&q(z);h.else(),b(y),h.endIf(),h.if((0,n._)`${A} !== undefined`,()=>{h.assign(g,A),_(y,A)});function q(z){switch(z){case"string":h.elseIf((0,n._)`${O} == "number" || ${O} == "boolean"`).assign(A,(0,n._)`"" + ${g}`).elseIf((0,n._)`${g} === null`).assign(A,(0,n._)`""`);return;case"number":h.elseIf((0,n._)`${O} == "boolean" || ${g} === null
3
3
  || (${O} == "string" && ${g} && ${g} == +${g})`).assign(A,(0,n._)`+${g}`);return;case"integer":h.elseIf((0,n._)`${O} === "boolean" || ${g} === null
4
4
  || (${O} === "string" && ${g} && ${g} == +${g} && !(${g} % 1))`).assign(A,(0,n._)`+${g}`);return;case"boolean":h.elseIf((0,n._)`${g} === "false" || ${g} === 0 || ${g} === null`).assign(A,!1).elseIf((0,n._)`${g} === "true" || ${g} === 1`).assign(A,!0);return;case"null":h.elseIf((0,n._)`${g} === "" || ${g} === 0 || ${g} === false`),h.assign(A,null);return;case"array":h.elseIf((0,n._)`${O} === "string" || ${O} === "number"
@@ -178,4 +178,4 @@ ${d.message}
178
178
  `:"",f=a.message+(l!==""||u!==""?`
179
179
 
180
180
  `:"")+l+u,_={title:a.ruleId,file:at(c.source.absoluteRef)?c.source.absoluteRef:We.relative(t,c.source.absoluteRef),line:c.start.line,col:c.start.col,endLine:c.end?.line,endColumn:c.end?.col};Oe.output(`::${i} ${r(_)}::${o(f)}
181
- `)}function r(a){return Object.entries(a).filter(([,c])=>c!=null).map(([c,i])=>`${c}=${s(i)}`).join(",")}function n(a){return a==null?"":typeof a=="string"||a instanceof String?a:JSON.stringify(a)}function o(a){return n(a).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function s(a){return n(a).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}const{theme:GI,...LI}=Vn.properties,MI={...Vn,properties:LI};async function VI(e){const{ref:t,externalRefResolver:r=new ir(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),ac({document:n,...e,externalRefResolver:r})}async function FI(e){const{source:t,absoluteRef:r,externalRefResolver:n=new ir(e.config.resolve)}=e,o=Ea(t,r||"/");return ac({document:o,...e,externalRefResolver:n})}async function ac(e){const{document:t,customTypes:r,externalRefResolver:n,config:o}=e;if(hy(t.source.absoluteRef)){const{lintGraphqlDocument:m}=await import("./redocly-openapi-docs.min.lint-graphql-CMMhYVr_.js");return m({document:t,config:o})}const s=Sn(t.parsed),a=o.getRulesForSpecVersion(yy(s)),c=$a(o.extendTypes(r??En(s),s),o),i={problems:[],specVersion:s,config:o,visitorsData:{}},l=bc(a,o,"preprocessors",s),u=bc(a,o,"rules",s);let f=await Tn({rootDocument:t,rootType:c.Root,externalRefResolver:n});l.length>0&&(In({document:t,rootType:c.Root,normalizedVisitors:zr(l,c),resolvedRefMap:f,ctx:i}),f=await Tn({rootDocument:t,rootType:c.Root,externalRefResolver:n}));const _=zr(u,c);return In({document:t,rootType:c.Root,normalizedVisitors:_,resolvedRefMap:f,ctx:i}),i.problems.map(m=>o.addProblemToIgnore(m))}async function zI(e){const{severity:t,externalRefResolver:r=new ir,config:n}=e;if(!n.document)throw new Error("Config document is not set.");const o={problems:[],specVersion:"config",config:n,visitorsData:{}},s=$a(e.externalConfigTypes||Fa(MI,n)),a=[{severity:t||"error",ruleId:"configuration struct",visitor:Gt()},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:Zt()}],c=zr(a,s),i=n.resolvedRefMap||await Tn({rootDocument:n.document,rootType:s.ConfigRoot,externalRefResolver:r});return In({document:n.document,rootType:s.ConfigRoot,normalizedVisitors:c,resolvedRefMap:i,ctx:o}),o.problems}export{rr as A,HS as B,Wv as C,Rt as D,Va as E,Qp as F,ge as G,ed as H,w_ as I,td as J,Be as K,be as L,St as M,W as N,gt as O,ve as P,g_ as Q,Hv as R,Gt as S,v_ as T,ss as U,ei as V,sd as W,mp as a,jS as b,tI as c,qS as d,LS as e,KS as f,up as g,Fa as h,eI as i,CI as j,zh as k,ac as l,nc as m,ar as n,BS as o,Gh as p,Ur as q,Pa as r,VI as s,He as t,zI as u,FI as v,ZS as w,sh as x,Oe as y,$y as z};
181
+ `)}function r(a){return Object.entries(a).filter(([,c])=>c!=null).map(([c,i])=>`${c}=${s(i)}`).join(",")}function n(a){return a==null?"":typeof a=="string"||a instanceof String?a:JSON.stringify(a)}function o(a){return n(a).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function s(a){return n(a).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}const{theme:GI,...LI}=Vn.properties,MI={...Vn,properties:LI};async function VI(e){const{ref:t,externalRefResolver:r=new ir(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),ac({document:n,...e,externalRefResolver:r})}async function FI(e){const{source:t,absoluteRef:r,externalRefResolver:n=new ir(e.config.resolve)}=e,o=Ea(t,r||"/");return ac({document:o,...e,externalRefResolver:n})}async function ac(e){const{document:t,customTypes:r,externalRefResolver:n,config:o}=e;if(hy(t.source.absoluteRef)){const{lintGraphqlDocument:m}=await import("./redocly-openapi-docs.min.lint-graphql-1y6KKl09.js");return m({document:t,config:o})}const s=Sn(t.parsed),a=o.getRulesForSpecVersion(yy(s)),c=$a(o.extendTypes(r??En(s),s),o),i={problems:[],specVersion:s,config:o,visitorsData:{}},l=bc(a,o,"preprocessors",s),u=bc(a,o,"rules",s);let f=await Tn({rootDocument:t,rootType:c.Root,externalRefResolver:n});l.length>0&&(In({document:t,rootType:c.Root,normalizedVisitors:zr(l,c),resolvedRefMap:f,ctx:i}),f=await Tn({rootDocument:t,rootType:c.Root,externalRefResolver:n}));const _=zr(u,c);return In({document:t,rootType:c.Root,normalizedVisitors:_,resolvedRefMap:f,ctx:i}),i.problems.map(m=>o.addProblemToIgnore(m))}async function zI(e){const{severity:t,externalRefResolver:r=new ir,config:n}=e;if(!n.document)throw new Error("Config document is not set.");const o={problems:[],specVersion:"config",config:n,visitorsData:{}},s=$a(e.externalConfigTypes||Fa(MI,n)),a=[{severity:t||"error",ruleId:"configuration struct",visitor:Gt()},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:Zt()}],c=zr(a,s),i=n.resolvedRefMap||await Tn({rootDocument:n.document,rootType:s.ConfigRoot,externalRefResolver:r});return In({document:n.document,rootType:s.ConfigRoot,normalizedVisitors:c,resolvedRefMap:i,ctx:o}),o.problems}export{rr as A,HS as B,Wv as C,Rt as D,Va as E,Qp as F,ge as G,ed as H,w_ as I,td as J,Be as K,be as L,St as M,W as N,gt as O,ve as P,g_ as Q,Hv as R,Gt as S,v_ as T,ss as U,ei as V,sd as W,mp as a,jS as b,tI as c,qS as d,LS as e,KS as f,up as g,Fa as h,eI as i,CI as j,zh as k,ac as l,nc as m,ar as n,BS as o,Gh as p,Ur as q,Pa as r,VI as s,He as t,zI as u,FI as v,ZS as w,sh as x,Oe as y,$y as z};
@@ -1,3 +1,3 @@
1
- import{bN as B}from"./redocly-openapi-docs.min.standalone-D9becCWS.js";import{G as y,T as C,F as x,H as I,I as M,J as K,K as A,L as U,M as V,N as a,O as k,P as G,Q as $,U as R,V as Y,W as j}from"./redocly-openapi-docs.min.lint-PvmGrAK3.js";function u(s,t,e){return new y(`Syntax Error: ${e}`,{source:s,positions:[t]})}var n;(function(s){s.SOF="<SOF>",s.EOF="<EOF>",s.BANG="!",s.DOLLAR="$",s.AMP="&",s.PAREN_L="(",s.PAREN_R=")",s.DOT=".",s.SPREAD="...",s.COLON=":",s.EQUALS="=",s.AT="@",s.BRACKET_L="[",s.BRACKET_R="]",s.BRACE_L="{",s.PIPE="|",s.BRACE_R="}",s.NAME="Name",s.INT="Int",s.FLOAT="Float",s.STRING="String",s.BLOCK_STRING="BlockString",s.COMMENT="Comment"})(n||(n={}));class q{constructor(t){const e=new C(n.SOF,0,0,0,0);this.source=t,this.lastToken=e,this.token=e,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==n.EOF)do if(t.next)t=t.next;else{const e=Q(this,t.end);t.next=e,e.prev=t,t=e}while(t.kind===n.COMMENT);return t}}function z(s){return s===n.BANG||s===n.DOLLAR||s===n.AMP||s===n.PAREN_L||s===n.PAREN_R||s===n.DOT||s===n.SPREAD||s===n.COLON||s===n.EQUALS||s===n.AT||s===n.BRACKET_L||s===n.BRACKET_R||s===n.BRACE_L||s===n.PIPE||s===n.BRACE_R}function m(s){return s>=0&&s<=55295||s>=57344&&s<=1114111}function N(s,t){return L(s.charCodeAt(t))&&g(s.charCodeAt(t+1))}function L(s){return s>=55296&&s<=56319}function g(s){return s>=56320&&s<=57343}function E(s,t){const e=s.source.body.codePointAt(t);if(e===void 0)return n.EOF;if(e>=32&&e<=126){const r=String.fromCodePoint(e);return r==='"'?`'"'`:`"${r}"`}return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}function p(s,t,e,r,i){const o=s.line,c=1+e-s.lineStart;return new C(t,e,r,o,c,i)}function Q(s,t){const e=s.source.body,r=e.length;let i=t;for(;i<r;){const o=e.charCodeAt(i);switch(o){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++s.line,s.lineStart=i;continue;case 13:e.charCodeAt(i+1)===10?i+=2:++i,++s.line,s.lineStart=i;continue;case 35:return X(s,i);case 33:return p(s,n.BANG,i,i+1);case 36:return p(s,n.DOLLAR,i,i+1);case 38:return p(s,n.AMP,i,i+1);case 40:return p(s,n.PAREN_L,i,i+1);case 41:return p(s,n.PAREN_R,i,i+1);case 46:if(e.charCodeAt(i+1)===46&&e.charCodeAt(i+2)===46)return p(s,n.SPREAD,i,i+3);break;case 58:return p(s,n.COLON,i,i+1);case 61:return p(s,n.EQUALS,i,i+1);case 64:return p(s,n.AT,i,i+1);case 91:return p(s,n.BRACKET_L,i,i+1);case 93:return p(s,n.BRACKET_R,i,i+1);case 123:return p(s,n.BRACE_L,i,i+1);case 124:return p(s,n.PIPE,i,i+1);case 125:return p(s,n.BRACE_R,i,i+1);case 34:return e.charCodeAt(i+1)===34&&e.charCodeAt(i+2)===34?te(s,i):H(s,i)}if(x(o)||o===45)return J(s,i,o);if(I(o))return ie(s,i);throw u(s.source,i,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:m(o)||N(e,i)?`Unexpected character: ${E(s,i)}.`:`Invalid character: ${E(s,i)}.`)}return p(s,n.EOF,r,r)}function X(s,t){const e=s.source.body,r=e.length;let i=t+1;for(;i<r;){const o=e.charCodeAt(i);if(o===10||o===13)break;if(m(o))++i;else if(N(e,i))i+=2;else break}return p(s,n.COMMENT,t,i,e.slice(t+1,i))}function J(s,t,e){const r=s.source.body;let i=t,o=e,c=!1;if(o===45&&(o=r.charCodeAt(++i)),o===48){if(o=r.charCodeAt(++i),x(o))throw u(s.source,i,`Invalid number, unexpected digit after 0: ${E(s,i)}.`)}else i=v(s,i,o),o=r.charCodeAt(i);if(o===46&&(c=!0,o=r.charCodeAt(++i),i=v(s,i,o),o=r.charCodeAt(i)),(o===69||o===101)&&(c=!0,o=r.charCodeAt(++i),(o===43||o===45)&&(o=r.charCodeAt(++i)),i=v(s,i,o),o=r.charCodeAt(i)),o===46||I(o))throw u(s.source,i,`Invalid number, expected digit but got: ${E(s,i)}.`);return p(s,c?n.FLOAT:n.INT,t,i,r.slice(t,i))}function v(s,t,e){if(!x(e))throw u(s.source,t,`Invalid number, expected digit but got: ${E(s,t)}.`);const r=s.source.body;let i=t+1;for(;x(r.charCodeAt(i));)++i;return i}function H(s,t){const e=s.source.body,r=e.length;let i=t+1,o=i,c="";for(;i<r;){const h=e.charCodeAt(i);if(h===34)return c+=e.slice(o,i),p(s,n.STRING,t,i+1,c);if(h===92){c+=e.slice(o,i);const d=e.charCodeAt(i+1)===117?e.charCodeAt(i+2)===123?W(s,i):Z(s,i):ee(s,i);c+=d.value,i+=d.size,o=i;continue}if(h===10||h===13)break;if(m(h))++i;else if(N(e,i))i+=2;else throw u(s.source,i,`Invalid character within String: ${E(s,i)}.`)}throw u(s.source,i,"Unterminated string.")}function W(s,t){const e=s.source.body;let r=0,i=3;for(;i<12;){const o=e.charCodeAt(t+i++);if(o===125){if(i<5||!m(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|T(o),r<0)break}throw u(s.source,t,`Invalid Unicode escape sequence: "${e.slice(t,t+i)}".`)}function Z(s,t){const e=s.source.body,r=S(e,t+2);if(m(r))return{value:String.fromCodePoint(r),size:6};if(L(r)&&e.charCodeAt(t+6)===92&&e.charCodeAt(t+7)===117){const i=S(e,t+8);if(g(i))return{value:String.fromCodePoint(r,i),size:12}}throw u(s.source,t,`Invalid Unicode escape sequence: "${e.slice(t,t+6)}".`)}function S(s,t){return T(s.charCodeAt(t))<<12|T(s.charCodeAt(t+1))<<8|T(s.charCodeAt(t+2))<<4|T(s.charCodeAt(t+3))}function T(s){return s>=48&&s<=57?s-48:s>=65&&s<=70?s-55:s>=97&&s<=102?s-87:-1}function ee(s,t){const e=s.source.body;switch(e.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
1
+ import{bN as B}from"./redocly-openapi-docs.min.standalone-crUOAFz-.js";import{G as y,T as C,F as x,H as I,I as M,J as K,K as A,L as U,M as V,N as a,O as k,P as G,Q as $,U as R,V as Y,W as j}from"./redocly-openapi-docs.min.lint-DLjLNlT2.js";function u(s,t,e){return new y(`Syntax Error: ${e}`,{source:s,positions:[t]})}var n;(function(s){s.SOF="<SOF>",s.EOF="<EOF>",s.BANG="!",s.DOLLAR="$",s.AMP="&",s.PAREN_L="(",s.PAREN_R=")",s.DOT=".",s.SPREAD="...",s.COLON=":",s.EQUALS="=",s.AT="@",s.BRACKET_L="[",s.BRACKET_R="]",s.BRACE_L="{",s.PIPE="|",s.BRACE_R="}",s.NAME="Name",s.INT="Int",s.FLOAT="Float",s.STRING="String",s.BLOCK_STRING="BlockString",s.COMMENT="Comment"})(n||(n={}));class q{constructor(t){const e=new C(n.SOF,0,0,0,0);this.source=t,this.lastToken=e,this.token=e,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==n.EOF)do if(t.next)t=t.next;else{const e=Q(this,t.end);t.next=e,e.prev=t,t=e}while(t.kind===n.COMMENT);return t}}function z(s){return s===n.BANG||s===n.DOLLAR||s===n.AMP||s===n.PAREN_L||s===n.PAREN_R||s===n.DOT||s===n.SPREAD||s===n.COLON||s===n.EQUALS||s===n.AT||s===n.BRACKET_L||s===n.BRACKET_R||s===n.BRACE_L||s===n.PIPE||s===n.BRACE_R}function m(s){return s>=0&&s<=55295||s>=57344&&s<=1114111}function N(s,t){return L(s.charCodeAt(t))&&g(s.charCodeAt(t+1))}function L(s){return s>=55296&&s<=56319}function g(s){return s>=56320&&s<=57343}function E(s,t){const e=s.source.body.codePointAt(t);if(e===void 0)return n.EOF;if(e>=32&&e<=126){const r=String.fromCodePoint(e);return r==='"'?`'"'`:`"${r}"`}return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}function p(s,t,e,r,i){const o=s.line,c=1+e-s.lineStart;return new C(t,e,r,o,c,i)}function Q(s,t){const e=s.source.body,r=e.length;let i=t;for(;i<r;){const o=e.charCodeAt(i);switch(o){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++s.line,s.lineStart=i;continue;case 13:e.charCodeAt(i+1)===10?i+=2:++i,++s.line,s.lineStart=i;continue;case 35:return X(s,i);case 33:return p(s,n.BANG,i,i+1);case 36:return p(s,n.DOLLAR,i,i+1);case 38:return p(s,n.AMP,i,i+1);case 40:return p(s,n.PAREN_L,i,i+1);case 41:return p(s,n.PAREN_R,i,i+1);case 46:if(e.charCodeAt(i+1)===46&&e.charCodeAt(i+2)===46)return p(s,n.SPREAD,i,i+3);break;case 58:return p(s,n.COLON,i,i+1);case 61:return p(s,n.EQUALS,i,i+1);case 64:return p(s,n.AT,i,i+1);case 91:return p(s,n.BRACKET_L,i,i+1);case 93:return p(s,n.BRACKET_R,i,i+1);case 123:return p(s,n.BRACE_L,i,i+1);case 124:return p(s,n.PIPE,i,i+1);case 125:return p(s,n.BRACE_R,i,i+1);case 34:return e.charCodeAt(i+1)===34&&e.charCodeAt(i+2)===34?te(s,i):H(s,i)}if(x(o)||o===45)return J(s,i,o);if(I(o))return ie(s,i);throw u(s.source,i,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:m(o)||N(e,i)?`Unexpected character: ${E(s,i)}.`:`Invalid character: ${E(s,i)}.`)}return p(s,n.EOF,r,r)}function X(s,t){const e=s.source.body,r=e.length;let i=t+1;for(;i<r;){const o=e.charCodeAt(i);if(o===10||o===13)break;if(m(o))++i;else if(N(e,i))i+=2;else break}return p(s,n.COMMENT,t,i,e.slice(t+1,i))}function J(s,t,e){const r=s.source.body;let i=t,o=e,c=!1;if(o===45&&(o=r.charCodeAt(++i)),o===48){if(o=r.charCodeAt(++i),x(o))throw u(s.source,i,`Invalid number, unexpected digit after 0: ${E(s,i)}.`)}else i=v(s,i,o),o=r.charCodeAt(i);if(o===46&&(c=!0,o=r.charCodeAt(++i),i=v(s,i,o),o=r.charCodeAt(i)),(o===69||o===101)&&(c=!0,o=r.charCodeAt(++i),(o===43||o===45)&&(o=r.charCodeAt(++i)),i=v(s,i,o),o=r.charCodeAt(i)),o===46||I(o))throw u(s.source,i,`Invalid number, expected digit but got: ${E(s,i)}.`);return p(s,c?n.FLOAT:n.INT,t,i,r.slice(t,i))}function v(s,t,e){if(!x(e))throw u(s.source,t,`Invalid number, expected digit but got: ${E(s,t)}.`);const r=s.source.body;let i=t+1;for(;x(r.charCodeAt(i));)++i;return i}function H(s,t){const e=s.source.body,r=e.length;let i=t+1,o=i,c="";for(;i<r;){const h=e.charCodeAt(i);if(h===34)return c+=e.slice(o,i),p(s,n.STRING,t,i+1,c);if(h===92){c+=e.slice(o,i);const d=e.charCodeAt(i+1)===117?e.charCodeAt(i+2)===123?W(s,i):Z(s,i):ee(s,i);c+=d.value,i+=d.size,o=i;continue}if(h===10||h===13)break;if(m(h))++i;else if(N(e,i))i+=2;else throw u(s.source,i,`Invalid character within String: ${E(s,i)}.`)}throw u(s.source,i,"Unterminated string.")}function W(s,t){const e=s.source.body;let r=0,i=3;for(;i<12;){const o=e.charCodeAt(t+i++);if(o===125){if(i<5||!m(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|T(o),r<0)break}throw u(s.source,t,`Invalid Unicode escape sequence: "${e.slice(t,t+i)}".`)}function Z(s,t){const e=s.source.body,r=S(e,t+2);if(m(r))return{value:String.fromCodePoint(r),size:6};if(L(r)&&e.charCodeAt(t+6)===92&&e.charCodeAt(t+7)===117){const i=S(e,t+8);if(g(i))return{value:String.fromCodePoint(r,i),size:12}}throw u(s.source,t,`Invalid Unicode escape sequence: "${e.slice(t,t+6)}".`)}function S(s,t){return T(s.charCodeAt(t))<<12|T(s.charCodeAt(t+1))<<8|T(s.charCodeAt(t+2))<<4|T(s.charCodeAt(t+3))}function T(s){return s>=48&&s<=57?s-48:s>=65&&s<=70?s-55:s>=97&&s<=102?s-87:-1}function ee(s,t){const e=s.source.body;switch(e.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
2
2
  `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw u(s.source,t,`Invalid character escape sequence: "${e.slice(t,t+2)}".`)}function te(s,t){const e=s.source.body,r=e.length;let i=s.lineStart,o=t+3,c=o,h="";const d=[];for(;o<r;){const f=e.charCodeAt(o);if(f===34&&e.charCodeAt(o+1)===34&&e.charCodeAt(o+2)===34){h+=e.slice(c,o),d.push(h);const l=p(s,n.BLOCK_STRING,t,o+3,M(d).join(`
3
3
  `));return s.line+=d.length-1,s.lineStart=i,l}if(f===92&&e.charCodeAt(o+1)===34&&e.charCodeAt(o+2)===34&&e.charCodeAt(o+3)===34){h+=e.slice(c,o),c=o+1,o+=4;continue}if(f===10||f===13){h+=e.slice(c,o),d.push(h),f===13&&e.charCodeAt(o+1)===10?o+=2:++o,h="",c=o,i=o;continue}if(m(f))++o;else if(N(e,o))o+=2;else throw u(s.source,o,`Invalid character within String: ${E(s,o)}.`)}throw u(s.source,o,"Unterminated string.")}function ie(s,t){const e=s.source.body,r=e.length;let i=t+1;for(;i<r;){const o=e.charCodeAt(i);if(K(o))++i;else break}return p(s,n.NAME,t,i,e.slice(t,i))}class D{constructor(t,e="GraphQL request",r={line:1,column:1}){typeof t=="string"||A(!1,`Body must be a string. Received: ${U(t)}.`),this.body=t,this.name=e,this.locationOffset=r,this.locationOffset.line>0||A(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||A(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function se(s){return V(s,D)}function re(s,t){const e=new ne(s,t),r=e.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:e.tokenCount}),r}class ne{constructor(t,e={}){const{lexer:r,...i}=e;if(r)this._lexer=r;else{const o=se(t)?t:new D(t);this._lexer=new q(o)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(n.NAME);return this.node(t,{kind:a.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:a.DOCUMENT,definitions:this.many(n.SOF,this.parseDefinition,n.EOF)})}parseDefinition(){if(this.peek(n.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),e=t?this._lexer.lookahead():this._lexer.token;if(t&&e.kind===n.BRACE_L)throw u(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(e.kind===n.NAME){switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(e.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(t)throw u(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(e.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(e)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(n.BRACE_L))return this.node(t,{kind:a.OPERATION_DEFINITION,operation:k.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const e=this.parseDescription(),r=this.parseOperationType();let i;return this.peek(n.NAME)&&(i=this.parseName()),this.node(t,{kind:a.OPERATION_DEFINITION,operation:r,description:e,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(n.NAME);switch(t.value){case"query":return k.QUERY;case"mutation":return k.MUTATION;case"subscription":return k.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(n.PAREN_L,this.parseVariableDefinition,n.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:a.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(n.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(n.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(n.DOLLAR),this.node(t,{kind:a.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:a.SELECTION_SET,selections:this.many(n.BRACE_L,this.parseSelection,n.BRACE_R)})}parseSelection(){return this.peek(n.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,e=this.parseName();let r,i;return this.expectOptionalToken(n.COLON)?(r=e,i=this.parseName()):i=e,this.node(t,{kind:a.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(n.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const e=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(n.PAREN_L,e,n.PAREN_R)}parseArgument(t=!1){const e=this._lexer.token,r=this.parseName();return this.expectToken(n.COLON),this.node(e,{kind:a.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(n.SPREAD);const e=this.expectOptionalKeyword("on");return!e&&this.peek(n.NAME)?this.node(t,{kind:a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:a.INLINE_FRAGMENT,typeCondition:e?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token,e=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:a.FRAGMENT_DEFINITION,description:e,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:a.FRAGMENT_DEFINITION,description:e,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const e=this._lexer.token;switch(e.kind){case n.BRACKET_L:return this.parseList(t);case n.BRACE_L:return this.parseObject(t);case n.INT:return this.advanceLexer(),this.node(e,{kind:a.INT,value:e.value});case n.FLOAT:return this.advanceLexer(),this.node(e,{kind:a.FLOAT,value:e.value});case n.STRING:case n.BLOCK_STRING:return this.parseStringLiteral();case n.NAME:switch(this.advanceLexer(),e.value){case"true":return this.node(e,{kind:a.BOOLEAN,value:!0});case"false":return this.node(e,{kind:a.BOOLEAN,value:!1});case"null":return this.node(e,{kind:a.NULL});default:return this.node(e,{kind:a.ENUM,value:e.value})}case n.DOLLAR:if(t)if(this.expectToken(n.DOLLAR),this._lexer.token.kind===n.NAME){const r=this._lexer.token.value;throw u(this._lexer.source,e.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(e);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:a.STRING,value:t.value,block:t.kind===n.BLOCK_STRING})}parseList(t){const e=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:a.LIST,values:this.any(n.BRACKET_L,e,n.BRACKET_R)})}parseObject(t){const e=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:a.OBJECT,fields:this.any(n.BRACE_L,e,n.BRACE_R)})}parseObjectField(t){const e=this._lexer.token,r=this.parseName();return this.expectToken(n.COLON),this.node(e,{kind:a.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const e=[];for(;this.peek(n.AT);)e.push(this.parseDirective(t));return e}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const e=this._lexer.token;return this.expectToken(n.AT),this.node(e,{kind:a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let e;if(this.expectOptionalToken(n.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(n.BRACKET_R),e=this.node(t,{kind:a.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(n.BANG)?this.node(t,{kind:a.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:a.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(n.STRING)||this.peek(n.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),i=this.many(n.BRACE_L,this.parseOperationTypeDefinition,n.BRACE_R);return this.node(t,{kind:a.SCHEMA_DEFINITION,description:e,directives:r,operationTypes:i})}parseOperationTypeDefinition(){const t=this._lexer.token,e=this.parseOperationType();this.expectToken(n.COLON);const r=this.parseNamedType();return this.node(t,{kind:a.OPERATION_TYPE_DEFINITION,operation:e,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:a.SCALAR_TYPE_DEFINITION,description:e,name:r,directives:i})}parseObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),c=this.parseFieldsDefinition();return this.node(t,{kind:a.OBJECT_TYPE_DEFINITION,description:e,name:r,interfaces:i,directives:o,fields:c})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(n.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(n.BRACE_L,this.parseFieldDefinition,n.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(n.COLON);const o=this.parseTypeReference(),c=this.parseConstDirectives();return this.node(t,{kind:a.FIELD_DEFINITION,description:e,name:r,arguments:i,type:o,directives:c})}parseArgumentDefs(){return this.optionalMany(n.PAREN_L,this.parseInputValueDef,n.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseName();this.expectToken(n.COLON);const i=this.parseTypeReference();let o;this.expectOptionalToken(n.EQUALS)&&(o=this.parseConstValueLiteral());const c=this.parseConstDirectives();return this.node(t,{kind:a.INPUT_VALUE_DEFINITION,description:e,name:r,type:i,defaultValue:o,directives:c})}parseInterfaceTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),c=this.parseFieldsDefinition();return this.node(t,{kind:a.INTERFACE_TYPE_DEFINITION,description:e,name:r,interfaces:i,directives:o,fields:c})}parseUnionTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:a.UNION_TYPE_DEFINITION,description:e,name:r,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(n.EQUALS)?this.delimitedMany(n.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:a.ENUM_TYPE_DEFINITION,description:e,name:r,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(n.BRACE_L,this.parseEnumValueDefinition,n.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:a.ENUM_VALUE_DEFINITION,description:e,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw u(this._lexer.source,this._lexer.token.start,`${_(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:a.INPUT_OBJECT_TYPE_DEFINITION,description:e,name:r,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(n.BRACE_L,this.parseInputValueDef,n.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===n.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension();break}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const e=this.parseConstDirectives(),r=this.optionalMany(n.BRACE_L,this.parseOperationTypeDefinition,n.BRACE_R);if(e.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:a.SCHEMA_EXTENSION,directives:e,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const e=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:a.SCALAR_TYPE_EXTENSION,name:e,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const e=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:a.OBJECT_TYPE_EXTENSION,name:e,interfaces:r,directives:i,fields:o})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const e=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:a.INTERFACE_TYPE_EXTENSION,name:e,interfaces:r,directives:i,fields:o})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const e=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:a.UNION_TYPE_EXTENSION,name:e,directives:r,types:i})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const e=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:a.ENUM_TYPE_EXTENSION,name:e,directives:r,values:i})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const e=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:a.INPUT_OBJECT_TYPE_EXTENSION,name:e,directives:r,fields:i})}parseDirectiveDefinitionExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(n.AT);const e=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:a.DIRECTIVE_EXTENSION,name:e,directives:r})}parseDirectiveDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(n.AT);const r=this.parseName(),i=this.parseArgumentDefs(),o=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],c=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const h=this.parseDirectiveLocations();return this.node(t,{kind:a.DIRECTIVE_DEFINITION,description:e,name:r,arguments:i,directives:o,repeatable:c,locations:h})}parseDirectiveLocations(){return this.delimitedMany(n.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,e=this.parseName();if(Object.prototype.hasOwnProperty.call(G,e.value))return e;throw this.unexpected(t)}parseSchemaCoordinate(){const t=this._lexer.token,e=this.expectOptionalToken(n.AT),r=this.parseName();let i;!e&&this.expectOptionalToken(n.DOT)&&(i=this.parseName());let o;return(e||i)&&this.expectOptionalToken(n.PAREN_L)&&(o=this.parseName(),this.expectToken(n.COLON),this.expectToken(n.PAREN_R)),e?o?this.node(t,{kind:a.DIRECTIVE_ARGUMENT_COORDINATE,name:r,argumentName:o}):this.node(t,{kind:a.DIRECTIVE_COORDINATE,name:r}):i?o?this.node(t,{kind:a.ARGUMENT_COORDINATE,name:r,fieldName:i,argumentName:o}):this.node(t,{kind:a.MEMBER_COORDINATE,name:r,memberName:i}):this.node(t,{kind:a.TYPE_COORDINATE,name:r})}node(t,e){return this._options.noLocation!==!0&&(e.loc=new $(t,this._lexer.lastToken,this._lexer.source)),e}peek(t){return this._lexer.token.kind===t}expectToken(t){const e=this._lexer.token;if(e.kind===t)return this.advanceLexer(),e;throw u(this._lexer.source,e.start,`Expected ${w(t)}, found ${_(e)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const e=this._lexer.token;if(e.kind===n.NAME&&e.value===t)this.advanceLexer();else throw u(this._lexer.source,e.start,`Expected "${t}", found ${_(e)}.`)}expectOptionalKeyword(t){const e=this._lexer.token;return e.kind===n.NAME&&e.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const e=t??this._lexer.token;return u(this._lexer.source,e.start,`Unexpected ${_(e)}.`)}any(t,e,r){this.expectToken(t);const i=[];for(;!this.expectOptionalToken(r);)i.push(e.call(this));return i}optionalMany(t,e,r){if(this.expectOptionalToken(t)){const i=[];do i.push(e.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,e,r){this.expectToken(t);const i=[];do i.push(e.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,e){this.expectOptionalToken(t);const r=[];do r.push(e.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){const{maxTokens:t}=this._options,e=this._lexer.advance();if(e.kind!==n.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw u(this._lexer.source,e.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function _(s){const t=s.value;return w(s.kind)+(t!=null?` "${t}"`:"")}function w(s){return z(s)?`"${s}"`:s}function oe(s,t){const e={};for(const r of Object.keys(s)){const i=s[r];if(!i)continue;const o=typeof i=="function"?i:i.enter,c=typeof i=="function"?void 0:i.leave;e[r]={...o?{enter:b(o,t)}:{},...c?{leave:b(c,t)}:{}}}return e}function b(s,t){return(e,r,i,o,c)=>{s(e,ae(e,t,c))}}function ae(s,t,e=[]){const{ruleId:r,severity:i,message:o,source:c,config:h,problems:d}=t,f=e.filter(l=>!Array.isArray(l));return{source:c,config:h,ancestors:f,report(l){const P=l.node??s,O=l.loc??ce(P),F={source:c,pointer:void 0,start:O?.start??{line:1,col:1},end:O?.end};d.push({ruleId:l.ruleId??r,severity:l.severity??i,message:o?o.replace("{{message}}",l.message):l.message,suggest:l.suggest??[],location:[F]})}}}function ce(s){if(!s?.loc)return;const t=R(s.loc.source,s.loc.start),e=R(s.loc.source,s.loc.end);return{start:{line:t.line,col:t.column},end:{line:e.line,col:e.column}}}function he(s){const{document:t,config:e}=s,r=t.source;if(r.body.trim()==="")return[{ruleId:"struct",severity:"error",message:"The GraphQL document is empty. Expected at least one type definition.",suggest:[],location:[{source:r,pointer:void 0,start:{line:1,col:1}}]}];let i;try{i=re(new D(r.body,r.absoluteRef))}catch(h){if(h instanceof y)return[pe(h,r)];throw h}const o=e.getRulesForSpecVersion("graphql")??[],c=B(o,e,"rules","graphql");return ue({ast:i,source:r,config:e,rules:c}).map(h=>e.addProblemToIgnore(h))}function pe(s,t){const e=s.locations?.[0];return{ruleId:"struct",severity:"error",message:s.message,suggest:[],location:[{source:t,pointer:void 0,start:e?{line:e.line,col:e.column}:{line:1,col:1}}]}}function ue(s){const{ast:t,source:e,config:r,rules:i}=s,o=[],c=i.map(({ruleId:h,severity:d,message:f,visitor:l})=>oe(l,{ruleId:h,severity:d,message:f,source:e,config:r,problems:o}));return c.length>0&&Y(t,j(c)),o}export{he as lintGraphqlDocument};