@redocly/openapi-docs 3.24.0-next.6 → 3.24.0-next.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/redocly-openapi-docs.min.AiChatProvider-D8o94qvX.js +32 -0
- package/dist/{redocly-openapi-docs.min.AiChatSqliteDBStorage-C5E-x8f4.js → redocly-openapi-docs.min.AiChatSqliteDBStorage-BLTom3F-.js} +1 -1
- package/dist/redocly-openapi-docs.min.AiPanel-DloIzPy9.js +773 -0
- package/dist/{redocly-openapi-docs.min.SqliteDBStorage-B6uym4Oj.js → redocly-openapi-docs.min.SqliteDBStorage-CksbFVf-.js} +1 -1
- package/dist/{redocly-openapi-docs.min.ai-chat-mappers-y6k4QA37.js → redocly-openapi-docs.min.ai-chat-mappers-Dza6UMVG.js} +1 -1
- package/dist/redocly-openapi-docs.min.external-resolver-Cm8qMSH6.js +2 -0
- package/dist/redocly-openapi-docs.min.index-CVScN5cj.js +7586 -0
- package/dist/{redocly-openapi-docs.min.index-D5tgmAoY.js → redocly-openapi-docs.min.index-DQKkHTdL.js} +1 -1
- package/dist/redocly-openapi-docs.min.index-DWPYSZX6.js +1 -0
- package/dist/redocly-openapi-docs.min.index-qqKTpI_q.js +1 -0
- package/dist/redocly-openapi-docs.min.js +1 -1
- package/dist/redocly-openapi-docs.min.lint-B0W-5WwE.js +181 -0
- package/dist/{redocly-openapi-docs.min.lint-graphql-CAO-eUMC.js → redocly-openapi-docs.min.lint-graphql-y6yM0_Y_.js} +1 -1
- package/dist/redocly-openapi-docs.min.respect-run-C77Wul9G.js +78 -0
- package/dist/{redocly-openapi-docs.min.standalone-C6JXws-S.js → redocly-openapi-docs.min.standalone-BFWv5fnd.js} +1088 -1063
- package/dist/redocly-openapi-docs.min.tauri-path-Dc9-nUUG.js +1 -0
- package/dist/{redocly-openapi-docs.min.useAiChatQueries-CYikEfuU.js → redocly-openapi-docs.min.useAiChatQueries-B9Y_hT0w.js} +131 -108
- package/lib/components/Replay/Replay.js +1 -1
- package/lib/services/config-options/normalizeOptions.js +1 -1
- package/lib/utils/dom.js +1 -1
- package/package.json +5 -5
- package/dist/redocly-openapi-docs.min.AiChatProvider-C_OmERaa.js +0 -32
- package/dist/redocly-openapi-docs.min.AiPanel-Z2Zw-OOK.js +0 -754
- package/dist/redocly-openapi-docs.min.external-resolver-6xHVd9y7.js +0 -2
- package/dist/redocly-openapi-docs.min.index-B2kW1MJX.js +0 -1
- package/dist/redocly-openapi-docs.min.index-DHNqz_Gi.js +0 -7694
- package/dist/redocly-openapi-docs.min.index-DkqHu0CX.js +0 -1
- package/dist/redocly-openapi-docs.min.lint-CmpdR_qH.js +0 -181
- package/dist/redocly-openapi-docs.min.respect-run-DjAvzRiR.js +0 -78
- package/dist/redocly-openapi-docs.min.tauri-path-DySEV5MH.js +0 -1
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import{c as Mr,bp as vn,x as Te,bq as Ch,b8 as bn,br as Ah,b9 as st,ap as Xi,bs as Rh,bt as Dh,aD as fa,bc as pt,aB as Qi,aA as Xe,bh as qh,bu as Lh,bv as Mh,bw as Vh,bd as Xt,bj as Fh,bf as wn,bx as vr,by as Zi,bz as ec,bA as ma,bB as Qt,bC as Vr,bD as zh,bE as Uh,aJ as Zt,b4 as $n,b5 as Bh,be as Gh,bF as Kh,aE as Fr,aO as tc,bG as Jh,a$ as Yh,aG as cr,b3 as rc,aI as ha,aH as En,bH as _n,aR as Wh,b1 as Hh,aF as Pn,bI as Xh,aS as Qh,aP as Zh,aQ as nc,b6 as ey,bk as oc,aU as sc,bJ as ty,bK as ry,bL as ac,bM as ny,b7 as oy,bN as ic}from"./redocly-openapi-docs.min.standalone-C6JXws-S.js";function sy(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 ya(e){return Array.isArray(e)&&e.length>0}function ga(e){return e?Object.keys(e):[]}var va={exports:{}},ay=va.exports,cc;function iy(){return cc||(cc=1,(function(e,t){(function(r,n){typeof sy=="function"?e.exports=n():r.pluralize=n()})(ay,function(){var r=[],n=[],o={},s={},a={};function c(x){return typeof x=="string"?new RegExp("^"+x+"$","i"):x}function i(x,b){return x===b?b:x===x.toLowerCase()?b.toLowerCase():x===x.toUpperCase()?b.toUpperCase():x[0]===x[0].toUpperCase()?b.charAt(0).toUpperCase()+b.substr(1).toLowerCase():b.toLowerCase()}function l(x,b){return x.replace(/\$(\d{1,2})/g,function(w,y){return b[y]||""})}function p(x,b){return x.replace(b[0],function(w,y){var d=l(b[1],arguments);return i(w===""?x[y-1]:w,d)})}function f(x,b,w){if(!x.length||o.hasOwnProperty(x))return b;for(var y=w.length;y--;){var d=w[y];if(d[0].test(b))return p(b,d)}return b}function $(x,b,w){return function(y){var d=y.toLowerCase();return b.hasOwnProperty(d)?i(y,d):x.hasOwnProperty(d)?i(y,x[d]):f(d,y,w)}}function m(x,b,w,y){return function(d){var P=d.toLowerCase();return b.hasOwnProperty(P)?!0:x.hasOwnProperty(P)?!1:f(P,P,w)===P}}function _(x,b,w){var y=b===1?_.singular(x):_.plural(x);return(w?b+" ":"")+y}return _.plural=$(a,s,r),_.isPlural=m(a,s,r),_.singular=$(s,a,n),_.isSingular=m(s,a,n),_.addPluralRule=function(x,b){r.push([c(x),b])},_.addSingularRule=function(x,b){n.push([c(x),b])},_.addUncountableRule=function(x){if(typeof x=="string"){o[x.toLowerCase()]=!0;return}_.addPluralRule(x,"$0"),_.addSingularRule(x,"$0")},_.addIrregularRule=function(x,b){b=b.toLowerCase(),x=x.toLowerCase(),a[x]=b,s[b]=x},[["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(x){return _.addIrregularRule(x[0],x[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(x){return _.addPluralRule(x[0],x[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(x){return _.addSingularRule(x[0],x[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(_.addUncountableRule),_})})(va)),va.exports}var cy=iy();const lc=Mr(cy);function ly(e,t,r){return e.split(" ").map(n=>lc(n,t,r)).join(" ")}var pc={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},zr={type:"object",properties:pc,additionalProperties:!1},py={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Ur={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:{...pc,like:zr,dislike:zr,satisfied:zr,neutral:zr,dissatisfied:zr},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:py},additionalProperties:!1}},additionalProperties:!1},uy={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},ba={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},uc={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Ur,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ba,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:uy,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},dy={type:"object",properties:{name:{type:"string"},items:br,queries:br,mutations:br,subscriptions:br,types:br,directives:br},required:["name"],additionalProperties:!1},fy={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:dy},otherItemsGroupName:{type:"string"}}},my={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},hy={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},yy={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:my,license:hy},additionalProperties:!1},xn={type:"object",properties:{menu:{type:"object",properties:{...fy.properties},additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:ba,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:Ur,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},info:yy},additionalProperties:!1},gy={type:"object",properties:{downloadUrls:ba,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:Ur,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},vy={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"]},by={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"}}},dc={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},wy={type:"object",properties:{beforeInfo:{type:"array",items:dc},end:{type:"array",items:dc}}},lr={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Sn={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},$y={type:"object",properties:Nn(lr.properties,["light","dark"])},Ey={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"}}},_y={type:"object",properties:{error:Sn,info:Sn,redirect:Sn,success:Sn}},Py={type:"object",properties:wr(lr.properties,["dark"])},xy={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Sy={type:"object",properties:{accent:lr,border:$y,error:lr,http:Ey,primary:lr,responses:_y,secondary:Py,success:lr,text:xy,tonalOffset:{type:"number"},warning:lr}},In={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Iy={type:"object",properties:{small:In,medium:In,large:In,xlarge:In}},Dt={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Ty={type:"object",properties:{...wr(Dt.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Iy}},fc={type:"object",properties:Nn(Dt.properties,["fontSize","lineHeight"])},ky={type:"object",properties:{medium:fc,small:fc}},Ny={type:"object",properties:{...wr(Dt.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:ky}},Oy={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},jy={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},mc={type:"object",properties:{fullWidth:{type:"boolean"}}},Cy={type:"object",properties:{buttons:Ty,httpBadges:Ny,layoutControls:Oy,panels:jy,tryItButton:mc,tryItSendButton:mc}},Tn={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Ay={type:"object",properties:{maxWidth:Tn}},Ry={type:"object",properties:{maxWidth:Tn,middlePanelMaxWidth:Tn}},Dy={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Ay,"three-panel":Ry}},hc={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},qy={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:hc,defaultDetailsWidth:{type:"string"},examples:hc,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},yc={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},Ly={type:"object",properties:Nn(yc.properties,["textTransform"])},My={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Vy={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:yc,level1items:Ly,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:My,textColor:{type:"string"},width:{type:"string"}}},kn={type:"object",properties:{...Dt.properties,color:{type:"string"},transform:{type:"string"}}},Fy={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"}}},zy={type:"object",properties:wr(Dt.properties,["fontSize"])},Uy={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},By={type:"object",properties:{code:Fy,fieldName:Dt,...Nn(Dt.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:kn,heading2:kn,heading3:kn,headings:zy,lineHeight:{type:"string"},links:Uy,optimizeSpeed:{type:"boolean"},rightPanelHeading:kn,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},Gy={type:"object",properties:{color:{type:"string"},...wr(Dt.properties,["fontWeight"])}},Ky={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:Gy}},Jy={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},Yy={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},gc={type:"object",properties:{custom:{type:"string"}}},Wy={type:"object",properties:{DownloadButton:gc,NextSectionButton:gc}},Hy={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},Xy={type:"object",properties:{borderRadius:{type:"string"}}},Qy={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},Zy={type:"object",properties:{breakpoints:Tn,codeBlock:Ky,colors:Sy,components:Cy,layout:Dy,logo:Jy,fab:Yy,overrides:Wy,rightPanel:Hy,schema:qy,shape:Xy,sidebar:Vy,spacing:Qy,typography:By,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},eg={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:vy}},required:["languages"]},tg={properties:{theme:Zy,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:eg,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:by,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:wy,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 Nn(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"},rg={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},ng={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},og={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},sg={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"},On={...rg,...og,...ng,extends:sg},vc=e=>e,at=vc({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),Qe={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},bc={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},wa={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}}},$a={type:"array",items:{...wa,properties:{...wa.properties,items:{type:"array",items:wa}}}},ag={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},ig={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},cg={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}},lg={type:"object",properties:{facets:cg,...Qe.properties},additionalProperties:!1},pg={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},wc={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},$c={type:"object",properties:{items:$a,...Qe.properties},additionalProperties:!1},Ec={type:"object",additionalProperties:ag},_c={type:"object",properties:{items:$a,copyrightText:{type:"string"},logo:Qe,...Qe.properties},additionalProperties:!1},Pc={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...Qe.properties},additionalProperties:!1},xc={type:"object",properties:{head:{type:"array",items:bc},body:{type:"array",items:bc}},additionalProperties:!1},Sc={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}},Ic={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:ig,filters:lg,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:pg},...Qe.properties},additionalProperties:!1},Tc={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},kc={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...Qe.properties},additionalProperties:!1},Nc={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},ug={type:"object",properties:{...Qe.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},Oc={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...Qe.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...Qe.properties},additionalProperties:!1},actions:ug},additionalProperties:!1},jc={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...Qe.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...Qe.properties},additionalProperties:!1},expand:{type:"object",properties:{...Qe.properties},additionalProperties:!1},collapse:{type:"object",properties:{...Qe.properties},additionalProperties:!1}},additionalProperties:!1},Cc={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"},...Qe.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...Qe.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...Qe.properties},additionalProperties:!1},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},jn={...uc,properties:{...uc.properties,...tg.properties}},dg={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},fg={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"]},mg={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},hg={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},yg={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"]},gg={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},vg={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"]},bg={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"]},wg={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:bg}},additionalProperties:!1,required:["trackingId"]},Ac={type:"object",properties:{adobe:dg,amplitude:fg,fullstory:mg,heap:hg,rudderstack:yg,segment:gg,gtm:vg,ga:wg}},Rc={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"},...Qe.properties},additionalProperties:!1},Dc={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},qc={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},$g={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"}}}},Eg={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:$g},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:$a,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Cn={type:"object",patternProperties:{".*":Eg}},An={nodeTypeName:at.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:at.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:at.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:at.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...On},additionalProperties:!1}},targets:{nodeTypeName:at.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:at.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:at.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:at.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},_g={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},Pg={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},xg={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},Vt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:Pg},excludes:{type:"array",items:_g},filters:{type:"array",items:xg},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},Sg={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},Ig={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:Sg},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},Tg={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:Ig,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},kg={type:"object",additionalProperties:Tg},Lc={type:"object",properties:{show:{type:"boolean"},entityTypes:kg,catalogs:{type:"object",properties:{all:Vt,services:Vt,domains:Vt,teams:Vt,users:Vt,apiDescriptions:Vt,dataSchemas:Vt,apiOperations:Vt},additionalProperties:Vt}},additionalProperties:!1},Mc={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},Ea={type:"string",enum:["and","or"]},_a={type:"object",properties:{field:{type:"string"},operator:Mc,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Mc,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},Ng={type:"object",properties:{operator:Ea,conditions:{type:"array",items:_a}},required:["operator","conditions"],additionalProperties:!1},Vc={type:"array",items:{oneOf:[_a,{type:"object",properties:{operator:Ea,conditions:{type:"array",items:{oneOf:[_a,Ng]}}},required:["operator","conditions"],additionalProperties:!1}]}},Fc={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},Og={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:Fc},required:["subject","assertions"],additionalProperties:!1}},jg={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:Fc,where:Og,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},Cg={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},jg]}},Ag={type:"object",properties:{name:{type:"string"},extends:On.extends,rules:Cg},required:["name"],additionalProperties:!1},zc={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},Rg={oneOf:[zc,{type:"array",items:zc}]},Dg={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[Vc,{type:"object",properties:{operator:Ea,conditions:Vc},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:Ag,minItems:1},trigger:Rg},required:["name","key","entities","levels"],additionalProperties:!1},Uc={type:"array",items:Dg},qg={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:wc,navbar:$c,products:Ec,footer:_c,sidebar:Pc,scripts:xc,links:Sc,feedback:Ur,search:Ic,aiAssistant:Tc,colorMode:kc,palette:Nc,navigation:Oc,codeSnippet:jc,markdown:Cc,openapi:jn,asyncapi:gy,graphql:xn,analytics:Ac,userMenu:Rc,versionPicker:Dc,breadcrumbs:qc,catalog:Cn,entitiesCatalog:Lc,catalogClassic:Cn,scorecard:An,scorecardClassic:An,scorecards:Uc},additionalProperties:!0},Lg=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(Lg||{}),Mg=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(Mg||{}),Vg=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(Vg||{}),Fg="^[a-z0-9]+(?:-[a-z0-9]+)*$",Bc="redocly",zg=[Bc,"corporate","guest"],Gc=["REDOCLY","CORPORATE","GUEST"],Ug={type:"object",additionalProperties:{type:"string"}},Bg={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Rn={type:"string",enum:["error","warn","off"]},Gg={type:"object",additionalProperties:!1,properties:{schemaCheck:Rn,statusCodeCheck:Rn,contentTypeCheck:Rn,successCriteriaCheck:Rn}},Kg={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},Jg={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},Yg={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Wg={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:[Kg,Jg]},inputs:Ug,servers:Bg,severity:Gg,slo:Yg},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},Hg={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},Xg={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:Hg,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},Qg={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"]},Zg={oneOf:[Xg,Qg],discriminator:{propertyName:"type"}},ev={type:"object",additionalProperties:Zg},Kc={oneOf:[{type:"array",items:{type:"string",enum:Gc},uniqueItems:!0},{type:"string",enum:Gc}]},Jc={type:"string",pattern:Fg,not:{enum:zg.filter(e=>e!==Bc)}},Yc={oneOf:[{type:"array",items:Jc,uniqueItems:!0},Jc]},Wc={type:"boolean"},Hc={type:"string",pattern:"^https?://.*"},Xc={type:"string",pattern:"^https?://.*"},tv={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:at.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},rv={type:"object",additionalProperties:tv,nodeTypeName:at.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"},nv={type:"string",enum:["info","success","warning","error"]},ze={type:"object",additionalProperties:{type:"string"}},ov={type:"object",properties:{trackingId:{type:"string"},content:{type:"string"},dismissible:{type:"boolean"},target:{type:"string"},color:nv,rbac:ze,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},sv={type:"array",items:ov},av={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:ze,openapi:jn,graphql:xn,theme:{type:"object",properties:{openapi:jn,graphql:xn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...On},required:["root"]},iv={type:"object",additionalProperties:!0},cv={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},lv={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},pv={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:lv},additionalProperties:!1},uv={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},dv={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},Qc={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},additionalProperties:!1},content:{type:"object",properties:{"**":ze},additionalProperties:ze},entitiesCatalog:dv},additionalProperties:ze},fv={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},mv={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},hv={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[fv,mv]}},additionalProperties:!1,required:["type","apiBaseUrl"]},yv={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},gv={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Pa={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:[yv,gv],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},vv={...Pa,properties:{...Pa.properties,type:{type:"string",const:"APIGEE_EDGE"}}},bv={type:"object",oneOf:[Pa,vv,hv],discriminator:{propertyName:"type"}},wv={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:bv}}},Zc={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"]},$v={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},Ev={type:"object",properties:{hide:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}}},additionalProperties:!1},gateway:{type:"object",properties:{hide:{type:"boolean"},allowedHosts:{type:"array",items:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1},_v={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},Pv={type:"object",properties:{requiresLogin:Wc,logoutReturnUrl:Hc,residency:Xc,sso:Kc,idps:Yc,rbac:Qc},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},xa={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:rv,seo:pv,rbac:Qc,apiFunctions:uv,requiresLogin:Wc,responseHeaders:{type:"object",additionalProperties:{type:"array",items:$v}},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:av},...On,ssoDirect:ev,sso:Kc,idps:Yc,residency:Xc,logoutReturnUrl:Hc,access:Pv,developerOnboarding:wv,removeAttribution:{type:"boolean"},i18n:Zc,l10n:Zc,metadata:iv,metadataGlobs:cv,ignore:{type:"array",items:{type:"string"}},theme:qg,reunite:Wg,logo:wc,navbar:$c,products:Ec,footer:_c,sidebar:Pc,scripts:xc,links:Sc,feedback:Ur,search:Ic,aiAssistant:Tc,colorMode:kc,palette:Nc,navigation:Oc,codeSnippet:jc,markdown:Cc,openapi:jn,graphql:xn,analytics:Ac,userMenu:Rc,versionPicker:Dc,breadcrumbs:qc,catalog:Cn,entitiesCatalog:Lc,catalogClassic:Cn,scorecard:An,scorecardClassic:An,scorecards:Uc,mcp:Ev,skills:_v,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:sv},not:{required:["sso","idps"]},additionalProperties:!0},xv={...xa,additionalProperties:!1},Dn={$id:"root-redocly-config",...xa,properties:{plugins:{type:"array",items:{type:"string"}},...xa.properties,env:{type:"object",additionalProperties:xv}},additionalProperties:!1},Sv=["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"],Ye=vc({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"}),Iv={type:"object",nodeTypeName:Ye.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},Tv={type:"object",nodeTypeName:Ye.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},kv={type:"object",nodeTypeName:Ye.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},Nv={type:"object",nodeTypeName:Ye.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},Ov={type:"object",properties:{},nodeTypeName:Ye.EntityMetadata,additionalProperties:!0},jv={type:"object",nodeTypeName:Ye.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},Cv={type:"object",nodeTypeName:Ye.EntitySlackContact,properties:{channels:{type:"array",items:jv}},required:["channels"],additionalProperties:!1},Av={type:"object",nodeTypeName:Ye.EntityContact,properties:{slack:Cv},additionalProperties:!1},Rv={type:"object",nodeTypeName:Ye.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},Dv={type:"object",nodeTypeName:Ye.EntityRelation,properties:{type:{type:"string",enum:Sv},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:Av,links:{type:"array",nodeTypeName:Ye.EntityLinkList,items:Rv},relations:{type:"array",nodeTypeName:Ye.EntityRelationList,items:Dv},metadata:Ov},qv={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...er,type:{type:"string",const:"user"},metadata:Iv},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:Ye.UserEntity},{type:"object",nodeTypeName:Ye.ApiOperationEntity,properties:{...er,type:{type:"string",const:"api-operation"},metadata:kv},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ye.DataSchemaEntity,properties:{...er,type:{type:"string",const:"data-schema"},metadata:Nv},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ye.ApiDescriptionEntity,properties:{...er,type:{type:"string",const:"api-description"},metadata:Tv},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ye.ServiceEntity,properties:{...er,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ye.DomainEntity,properties:{...er,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ye.TeamEntity,properties:{...er,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},Lv={type:"object",nodeTypeName:Ye.Entity,properties:{...er},required:["key","title","type"],additionalProperties:!1};const Mv=["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 Sa(e){return e.includes("/")}var Ia={exports:{}},el={},Ft={},pr={},tl={},rl={},nl={},ol;function qn(){return ol||(ol=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(w,...y){const d=[w[0]];let P=0;for(;P<y.length;)c(d,y[P]),d.push(w[++P]);return new n(d)}e._=o;const s=new n("+");function a(w,...y){const d=[m(w[0])];let P=0;for(;P<y.length;)d.push(s),c(d,y[P]),d.push(s,m(w[++P]));return i(d),new n(d)}e.str=a;function c(w,y){y instanceof n?w.push(...y._items):y instanceof r?w.push(y):w.push(f(y))}e.addCodeArg=c;function i(w){let y=1;for(;y<w.length-1;){if(w[y]===s){const d=l(w[y-1],w[y+1]);if(d!==void 0){w.splice(y-1,3,d);continue}w[y++]="+"}y++}}function l(w,y){if(y==='""')return w;if(w==='""')return y;if(typeof w=="string")return y instanceof r||w[w.length-1]!=='"'?void 0:typeof y!="string"?`${w.slice(0,-1)}${y}"`:y[0]==='"'?w.slice(0,-1)+y.slice(1):void 0;if(typeof y=="string"&&y[0]==='"'&&!(w instanceof r))return`"${w}${y.slice(1)}`}function p(w,y){return y.emptyStr()?w:w.emptyStr()?y:a`${w}${y}`}e.strConcat=p;function f(w){return typeof w=="number"||typeof w=="boolean"||w===null?w:m(Array.isArray(w)?w.join(","):w)}function $(w){return new n(m(w))}e.stringify=$;function m(w){return JSON.stringify(w).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=m;function _(w){return typeof w=="string"&&e.IDENTIFIER.test(w)?new n(`.${w}`):o`[${w}]`}e.getProperty=_;function x(w){if(typeof w=="string"&&e.IDENTIFIER.test(w))return new n(`${w}`);throw new Error(`CodeGen: invalid export name: ${w}, use explicit $id name mapping`)}e.getEsmExportName=x;function b(w){return new n(w.toString())}e.regexpCode=b})(nl)),nl}var sl={},al;function il(){return al||(al=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=qn();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:p}={}){this._names={},this._prefixes=l,this._parent=p}toName(l){return l instanceof t.Name?l:this.name(l)}name(l){return new t.Name(this._newName(l))}_newName(l){const p=this._names[l]||this._nameGroup(l);return`${l}${p.index++}`}_nameGroup(l){var p,f;if(!((f=(p=this._parent)===null||p===void 0?void 0:p._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,p){super(p),this.prefix=l}setValue(l,{property:p,itemIndex:f}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(p)}[${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,p){var f;if(p.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const $=this.toName(l),{prefix:m}=$,_=(f=p.key)!==null&&f!==void 0?f:p.ref;let x=this._values[m];if(x){const y=x.get(_);if(y)return y}else x=this._values[m]=new Map;x.set(_,$);const b=this._scope[m]||(this._scope[m]=[]),w=b.length;return b[w]=p.ref,$.setValue(p,{property:m,itemIndex:w}),$}getValue(l,p){const f=this._values[l];if(f)return f.get(p)}scopeRefs(l,p=this._values){return this._reduceValues(p,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,p,f){return this._reduceValues(l,$=>{if($.value===void 0)throw new Error(`CodeGen: name "${$}" has no value`);return $.value.code},p,f)}_reduceValues(l,p,f={},$){let m=t.nil;for(const _ in l){const x=l[_];if(!x)continue;const b=f[_]=f[_]||new Map;x.forEach(w=>{if(b.has(w))return;b.set(w,n.Started);let y=p(w);if(y){const d=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${d} ${w} = ${y};${this.opts._n}`}else if(y=$?.(w))m=(0,t._)`${m}${y}${this.opts._n}`;else throw new r(w);b.set(w,n.Completed)})}return m}}e.ValueScope=c})(sl)),sl}var cl;function _e(){return cl||(cl=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=qn(),r=il();var n=qn();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=il();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,S){return this}}class a extends s{constructor(v,S,T){super(),this.varKind=v,this.name=S,this.rhs=T}render({es5:v,_n:S}){const T=v?r.varKinds.var:this.varKind,M=this.rhs===void 0?"":` = ${this.rhs}`;return`${T} ${this.name}${M};`+S}optimizeNames(v,S){if(v[this.name.str])return this.rhs&&(this.rhs=K(this.rhs,v,S)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends s{constructor(v,S,T){super(),this.lhs=v,this.rhs=S,this.sideEffects=T}render({_n:v}){return`${this.lhs} = ${this.rhs};`+v}optimizeNames(v,S){if(!(this.lhs instanceof t.Name&&!v[this.lhs.str]&&!this.sideEffects))return this.rhs=K(this.rhs,v,S),this}get names(){const v=this.lhs instanceof t.Name?{}:{...this.lhs.names};return L(v,this.rhs)}}class i extends c{constructor(v,S,T,M){super(v,T,M),this.op=S}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 p 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,S){return this.code=K(this.code,v,S),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((S,T)=>S+T.render(v),"")}optimizeNodes(){const{nodes:v}=this;let S=v.length;for(;S--;){const T=v[S].optimizeNodes();Array.isArray(T)?v.splice(S,1,...T):T?v[S]=T:v.splice(S,1)}return v.length>0?this:void 0}optimizeNames(v,S){const{nodes:T}=this;let M=T.length;for(;M--;){const U=T[M];U.optimizeNames(v,S)||(le(v,U.names),T.splice(M,1))}return T.length>0?this:void 0}get names(){return this.nodes.reduce((v,S)=>F(v,S.names),{})}}class _ extends m{render(v){return"{"+v._n+super.render(v)+"}"+v._n}}class x extends m{}class b extends _{}b.kind="else";class w extends _{constructor(v,S){super(S),this.condition=v}render(v){let S=`if(${this.condition})`+super.render(v);return this.else&&(S+="else "+this.else.render(v)),S}optimizeNodes(){super.optimizeNodes();const v=this.condition;if(v===!0)return this.nodes;let S=this.else;if(S){const T=S.optimizeNodes();S=this.else=Array.isArray(T)?new b(T):T}if(S)return v===!1?S instanceof w?S:S.nodes:this.nodes.length?this:new w(ue(v),S instanceof w?[S]:S.nodes);if(!(v===!1||!this.nodes.length))return this}optimizeNames(v,S){var T;if(this.else=(T=this.else)===null||T===void 0?void 0:T.optimizeNames(v,S),!!(super.optimizeNames(v,S)||this.else))return this.condition=K(this.condition,v,S),this}get names(){const v=super.names;return L(v,this.condition),this.else&&F(v,this.else.names),v}}w.kind="if";class y extends _{}y.kind="for";class d extends y{constructor(v){super(),this.iteration=v}render(v){return`for(${this.iteration})`+super.render(v)}optimizeNames(v,S){if(super.optimizeNames(v,S))return this.iteration=K(this.iteration,v,S),this}get names(){return F(super.names,this.iteration.names)}}class P extends y{constructor(v,S,T,M){super(),this.varKind=v,this.name=S,this.from=T,this.to=M}render(v){const S=v.es5?r.varKinds.var:this.varKind,{name:T,from:M,to:U}=this;return`for(${S} ${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,S,T,M){super(),this.loop=v,this.varKind=S,this.name=T,this.iterable=M}render(v){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(v)}optimizeNames(v,S){if(super.optimizeNames(v,S))return this.iterable=K(this.iterable,v,S),this}get names(){return F(super.names,this.iterable.names)}}class g extends _{constructor(v,S,T){super(),this.name=v,this.args=S,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 _{render(v){let S="try"+super.render(v);return this.catch&&(S+=this.catch.render(v)),this.finally&&(S+=this.finally.render(v)),S}optimizeNodes(){var v,S;return super.optimizeNodes(),(v=this.catch)===null||v===void 0||v.optimizeNodes(),(S=this.finally)===null||S===void 0||S.optimizeNodes(),this}optimizeNames(v,S){var T,M;return super.optimizeNames(v,S),(T=this.catch)===null||T===void 0||T.optimizeNames(v,S),(M=this.finally)===null||M===void 0||M.optimizeNames(v,S),this}get names(){const v=super.names;return this.catch&&F(v,this.catch.names),this.finally&&F(v,this.finally.names),v}}class C extends _{constructor(v){super(),this.error=v}render(v){return`catch(${this.error})`+super.render(v)}}C.kind="catch";class q extends _{render(v){return"finally"+super.render(v)}}q.kind="finally";class z{constructor(v,S={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...S,_n:S.lines?`
|
|
2
|
-
`:""},this._extScope=v,this._scope=new r.Scope({parent:v}),this._nodes=[new x]}toString(){return this._root.render(this.opts)}name(v){return this._scope.name(v)}scopeName(v){return this._extScope.name(v)}scopeValue(v,S){const T=this._extScope.value(v,S);return(this._values[T.prefix]||(this._values[T.prefix]=new Set)).add(T),T}getScopeValue(v,S){return this._extScope.getValue(v,S)}scopeRefs(v){return this._extScope.scopeRefs(v,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(v,S,T,M){const U=this._scope.toName(S);return T!==void 0&&M&&(this._constants[U.str]=T),this._leafNode(new a(v,U,T)),U}const(v,S,T){return this._def(r.varKinds.const,v,S,T)}let(v,S,T){return this._def(r.varKinds.let,v,S,T)}var(v,S,T){return this._def(r.varKinds.var,v,S,T)}assign(v,S,T){return this._leafNode(new c(v,S,T))}add(v,S){return this._leafNode(new i(v,e.operators.ADD,S))}code(v){return typeof v=="function"?v():v!==t.nil&&this._leafNode(new $(v)),this}object(...v){const S=["{"];for(const[T,M]of v)S.length>1&&S.push(","),S.push(T),(T!==M||this.opts.es5)&&(S.push(":"),(0,t.addCodeArg)(S,M));return S.push("}"),new t._Code(S)}if(v,S,T){if(this._blockNode(new w(v)),S&&T)this.code(S).else().code(T).endIf();else if(S)this.code(S).endIf();else if(T)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(v){return this._elseNode(new w(v))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(w,b)}_for(v,S){return this._blockNode(v),S&&this.code(S).endFor(),this}for(v,S){return this._for(new d(v),S)}forRange(v,S,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,S,T),()=>M(J))}forOf(v,S,T,M=r.varKinds.const){const U=this._scope.toName(v);if(this.opts.es5){const J=S instanceof t.Name?S:this.var("_arr",S);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,S),()=>T(U))}forIn(v,S,T,M=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(v,(0,t._)`Object.keys(${S})`,T);const U=this._scope.toName(v);return this._for(new h("in",M,U,S),()=>T(U))}endFor(){return this._endBlockNode(y)}label(v){return this._leafNode(new l(v))}break(v){return this._leafNode(new p(v))}return(v){const S=new E;if(this._blockNode(S),this.code(v),S.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(v,S,T){if(!S&&!T)throw new Error('CodeGen: "try" without "catch" and "finally"');const M=new O;if(this._blockNode(M),this.code(v),S){const U=this.name("e");this._currNode=M.catch=new C(U),S(U)}return T&&(this._currNode=M.finally=new q,this.code(T)),this._endBlockNode(C,q)}throw(v){return this._leafNode(new f(v))}block(v,S){return this._blockStarts.push(this._nodes.length),v&&this.code(v).endBlock(S),this}endBlock(v){const S=this._blockStarts.pop();if(S===void 0)throw new Error("CodeGen: not in self-balancing block");const T=this._nodes.length-S;if(T<0||v!==void 0&&T!==v)throw new Error(`CodeGen: wrong number of nodes: ${T} vs ${v} expected`);return this._nodes.length=S,this}func(v,S=t.nil,T,M){return this._blockNode(new g(v,S,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,S){const T=this._currNode;if(T instanceof v||S&&T instanceof S)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${S?`${v.kind}/${S.kind}`:v.kind}"`)}_elseNode(v){const S=this._currNode;if(!(S instanceof w))throw new Error('CodeGen: "else" without "if"');return this._currNode=S.else=v,this}get _root(){return this._nodes[0]}get _currNode(){const v=this._nodes;return v[v.length-1]}set _currNode(v){const S=this._nodes;S[S.length-1]=v}}e.CodeGen=z;function F(j,v){for(const S in v)j[S]=(j[S]||0)+(v[S]||0);return j}function L(j,v){return v instanceof t._CodeOrName?F(j,v.names):j}function K(j,v,S){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=S[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&&S[J.str]!==void 0)}}function le(j,v){for(const S in v)j[S]=(j[S]||0)-(v[S]||0)}function ue(j){return typeof j=="boolean"||typeof j=="number"||j===null?!j:(0,t._)`!${V(j)}`}e.not=ue;const xe=N(e.operators.AND);function ce(...j){return j.reduce(xe)}e.and=ce;const Ee=N(e.operators.OR);function R(...j){return j.reduce(Ee)}e.or=R;function N(j){return(v,S)=>v===t.nil?S:S===t.nil?v:(0,t._)`${V(v)} ${j} ${V(S)}`}function V(j){return j instanceof t.Name?j:(0,t._)`(${j})`}})(rl)),rl}var ke={},ll;function Ae(){if(ll)return ke;ll=1,Object.defineProperty(ke,"__esModule",{value:!0}),ke.checkStrictMode=ke.getErrorPath=ke.Type=ke.useFunc=ke.setEvaluated=ke.evaluatedPropsToName=ke.mergeEvaluated=ke.eachItem=ke.unescapeJsonPointer=ke.escapeJsonPointer=ke.escapeFragment=ke.unescapeFragment=ke.schemaRefOrVal=ke.schemaHasRulesButRef=ke.schemaHasRules=ke.checkUnknownRules=ke.alwaysValidSchema=ke.toHash=void 0;const e=_e(),t=qn();function r(h){const g={};for(const E of h)g[E]=!0;return g}ke.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))}ke.alwaysValidSchema=n;function o(h,g=h.schema){const{opts:E,self:O}=h;if(!E.strictSchema||typeof g=="boolean")return;const C=O.RULES.keywords;for(const q in g)C[q]||P(h,`unknown keyword: "${q}"`)}ke.checkUnknownRules=o;function s(h,g){if(typeof h=="boolean")return!h;for(const E in h)if(g[E])return!0;return!1}ke.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}ke.schemaHasRulesButRef=a;function c({topSchemaRef:h,schemaPath:g},E,O,C){if(!C){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)}`}ke.schemaRefOrVal=c;function i(h){return f(decodeURIComponent(h))}ke.unescapeFragment=i;function l(h){return encodeURIComponent(p(h))}ke.escapeFragment=l;function p(h){return typeof h=="number"?`${h}`:h.replace(/~/g,"~0").replace(/\//g,"~1")}ke.escapeJsonPointer=p;function f(h){return h.replace(/~1/g,"/").replace(/~0/g,"~")}ke.unescapeJsonPointer=f;function $(h,g){if(Array.isArray(h))for(const E of h)g(E);else g(h)}ke.eachItem=$;function m({mergeNames:h,mergeToName:g,mergeValues:E,resultToName:O}){return(C,q,z,F)=>{const L=z===void 0?q:z instanceof e.Name?(q instanceof e.Name?h(C,q,z):g(C,q,z),z):q instanceof e.Name?(g(C,z,q),q):E(q,z);return F===e.Name&&!(L instanceof e.Name)?O(C,L):L}}ke.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} || {}`),x(h,E,g))}),mergeValues:(h,g)=>h===!0?!0:{...h,...g},resultToName:_}),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 _(h,g){if(g===!0)return h.var("props",!0);const E=h.var("props",(0,e._)`{}`);return g!==void 0&&x(h,E,g),E}ke.evaluatedPropsToName=_;function x(h,g,E){Object.keys(E).forEach(O=>h.assign((0,e._)`${g}${(0,e.getProperty)(O)}`,!0))}ke.setEvaluated=x;const b={};function w(h,g){return h.scopeValue("func",{ref:g,code:b[g.code]||(b[g.code]=new t._Code(g.code))})}ke.useFunc=w;var y;(function(h){h[h.Num=0]="Num",h[h.Str=1]="Str"})(y||(ke.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():"/"+p(h)}ke.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 ke.checkStrictMode=P,ke}var Ln={},pl;function ut(){if(pl)return Ln;pl=1,Object.defineProperty(Ln,"__esModule",{value:!0});const e=_e(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),isAllOfVariant:new e.Name("isAllOfVariant"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return Ln.default=t,Ln}var ul;function Mn(){return ul||(ul=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=_e(),r=Ae(),n=ut();e.keywordError={message:({keyword:b})=>(0,t.str)`must pass "${b}" keyword validation`},e.keyword$DataError={message:({keyword:b,schemaType:w})=>w?(0,t.str)`"${b}" keyword must be ${w} ($data)`:(0,t.str)`"${b}" keyword is invalid ($data)`};function o(b,w=e.keywordError,y,d){const{it:P}=b,{gen:h,compositeRule:g,allErrors:E}=P,O=f(b,w,y);d??(g||E)?i(h,O):l(P,(0,t._)`[${O}]`)}e.reportError=o;function s(b,w=e.keywordError,y){const{it:d}=b,{gen:P,compositeRule:h,allErrors:g}=d,E=f(b,w,y);i(P,E),h||g||l(d,n.default.vErrors)}e.reportExtraError=s;function a(b,w){b.assign(n.default.errors,w),b.if((0,t._)`${n.default.vErrors} !== null`,()=>b.if(w,()=>b.assign((0,t._)`${n.default.vErrors}.length`,w),()=>b.assign(n.default.vErrors,null)))}e.resetErrorsCount=a;function c({gen:b,keyword:w,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}/${w}`),h.opts.verbose&&(b.assign((0,t._)`${g}.schema`,y),b.assign((0,t._)`${g}.data`,d))})}e.extendErrors=c;function i(b,w){const y=b.const("err",w);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,w){const{gen:y,validateName:d,schemaEnv:P}=b;P.$async?y.throw((0,t._)`new ${b.ValidationError}(${w})`):(y.assign((0,t._)`${d}.errors`,w),y.return(!1))}const p={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,w,y){const{createErrors:d}=b.it;return d===!1?(0,t._)`{}`:$(b,w,y)}function $(b,w,y={}){const{gen:d,it:P}=b,h=[m(P,y),_(b,y)];return x(b,w,h),d.object(...h)}function m({errorPath:b},{instancePath:w}){const y=w?(0,t.str)`${b}${(0,r.getErrorPath)(w,r.Type.Str)}`:b;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,y)]}function _({keyword:b,it:{errSchemaPath:w}},{schemaPath:y,parentSchema:d}){let P=d?w:(0,t.str)`${w}/${b}`;return y&&(P=(0,t.str)`${P}${(0,r.getErrorPath)(y,r.Type.Str)}`),[p.schemaPath,P]}function x(b,{params:w,message:y},d){const{keyword:P,data:h,schemaValue:g,it:E}=b,{opts:O,propertyName:C,topSchemaRef:q,schemaPath:z}=E;d.push([p.keyword,P],[p.params,typeof w=="function"?w(b):w||(0,t._)`{}`]),O.messages&&d.push([p.message,typeof y=="function"?y(b):y]),O.verbose&&d.push([p.schema,g],[p.parentSchema,(0,t._)`${q}${z}`],[n.default.data,h]),C&&d.push([p.propertyName,C])}})(tl)),tl}var dl;function Vv(){if(dl)return pr;dl=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.boolOrEmptySchema=pr.topBoolOrEmptySchema=void 0;const e=Mn(),t=_e(),r=ut(),n={message:"boolean schema is false"};function o(c){const{gen:i,schema:l,validateName:p}=c;l===!1?a(c,!1):typeof l=="object"&&l.$async===!0?i.return(r.default.data):(i.assign((0,t._)`${p}.errors`,null),i.return(!0))}pr.topBoolOrEmptySchema=o;function s(c,i){const{gen:l,schema:p}=c;p===!1?(l.var(i,!1),a(c)):l.var(i,!0)}pr.boolOrEmptySchema=s;function a(c,i){const{gen:l,data:p}=c,f={gen:l,keyword:"false schema",data:p,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:c};(0,e.reportError)(f,n,void 0,i)}return pr}var et={},ur={},fl;function ml(){if(fl)return ur;fl=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 zt={},hl;function yl(){if(hl)return zt;hl=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.shouldUseRule=zt.shouldUseGroup=zt.schemaHasRulesForType=void 0;function e({schema:n,self:o},s){const a=o.RULES.types[s];return a&&a!==!0&&t(n,a)}zt.schemaHasRulesForType=e;function t(n,o){return o.rules.some(s=>r(n,s))}zt.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 zt.shouldUseRule=r,zt}var gl;function Vn(){if(gl)return et;gl=1,Object.defineProperty(et,"__esModule",{value:!0}),et.reportTypeError=et.checkDataTypes=et.checkDataType=et.coerceAndCheckDataType=et.getJSONTypes=et.getSchemaTypes=et.DataType=void 0;const e=ml(),t=yl(),r=Mn(),n=_e(),o=Ae();var s;(function(y){y[y.Correct=0]="Correct",y[y.Wrong=1]="Wrong"})(s||(et.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}et.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(","))}et.getJSONTypes=c;function i(y,d){const{gen:P,data:h,opts:g}=y,E=p(d,g.coerceTypes),O=d.length>0&&!(E.length===0&&d.length===1&&(0,t.schemaHasRulesForType)(y,d[0]));if(O){const C=_(d,h,g.strictNumbers,s.Wrong);P.if(C,()=>{E.length?f(y,d,E):b(y)})}return O}et.coerceAndCheckDataType=i;const l=new Set(["string","number","integer","boolean","null"]);function p(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}`),C=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(_(d,g,E.strictNumbers),()=>h.assign(C,g))),h.if((0,n._)`${C} !== 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._)`${C} !== undefined`,()=>{h.assign(g,C),$(y,C)});function q(z){switch(z){case"string":h.elseIf((0,n._)`${O} == "number" || ${O} == "boolean"`).assign(C,(0,n._)`"" + ${g}`).elseIf((0,n._)`${g} === null`).assign(C,(0,n._)`""`);return;case"number":h.elseIf((0,n._)`${O} == "boolean" || ${g} === null
|
|
3
|
-
|| (${O} == "string" && ${g} && ${g} == +${g})`).assign(C,(0,n._)`+${g}`);return;case"integer":h.elseIf((0,n._)`${O} === "boolean" || ${g} === null
|
|
4
|
-
|| (${O} === "string" && ${g} && ${g} == +${g} && !(${g} % 1))`).assign(C,(0,n._)`+${g}`);return;case"boolean":h.elseIf((0,n._)`${g} === "false" || ${g} === 0 || ${g} === null`).assign(C,!1).elseIf((0,n._)`${g} === "true" || ${g} === 1`).assign(C,!0);return;case"null":h.elseIf((0,n._)`${g} === "" || ${g} === 0 || ${g} === false`),h.assign(C,null);return;case"array":h.elseIf((0,n._)`${O} === "string" || ${O} === "number"
|
|
5
|
-
|| ${O} === "boolean" || ${g} === null`).assign(C,(0,n._)`[${g}]`)}}}function $({gen:y,parentData:d,parentDataProperty:P},h){y.if((0,n._)`${d} !== undefined`,()=>y.assign((0,n._)`${d}[${P}]`,h))}function m(y,d,P,h=s.Correct){const g=h===s.Correct?n.operators.EQ:n.operators.NEQ;let E;switch(y){case"null":return(0,n._)`${d} ${g} null`;case"array":E=(0,n._)`Array.isArray(${d})`;break;case"object":E=(0,n._)`${d} && typeof ${d} == "object" && !Array.isArray(${d})`;break;case"integer":E=O((0,n._)`!(${d} % 1) && !isNaN(${d})`);break;case"number":E=O();break;default:return(0,n._)`typeof ${d} ${g} ${y}`}return h===s.Correct?E:(0,n.not)(E);function O(C=n.nil){return(0,n.and)((0,n._)`typeof ${d} == "number"`,C,P?(0,n._)`isFinite(${d})`:n.nil)}}et.checkDataType=m;function _(y,d,P,h){if(y.length===1)return m(y[0],d,P,h);let g;const E=(0,o.toHash)(y);if(E.array&&E.object){const O=(0,n._)`typeof ${d} != "object"`;g=E.null?O:(0,n._)`!${d} || ${O}`,delete E.null,delete E.array,delete E.object}else g=n.nil;E.number&&delete E.integer;for(const O in E)g=(0,n.and)(g,m(O,d,P,h));return g}et.checkDataTypes=_;const x={message:({schema:y})=>`must be ${y}`,params:({schema:y,schemaValue:d})=>typeof y=="string"?(0,n._)`{type: ${y}}`:(0,n._)`{type: ${d}}`};function b(y){const d=w(y);(0,r.reportError)(d,x)}et.reportTypeError=b;function w(y){const{gen:d,data:P,schema:h}=y,g=(0,o.schemaRefOrVal)(y,h,"type");return{gen:d,keyword:"type",data:P,schema:h.type,schemaCode:g,schemaValue:g,parentSchema:h,params:{},it:y}}return et}var Br={},vl;function Fv(){if(vl)return Br;vl=1,Object.defineProperty(Br,"__esModule",{value:!0}),Br.assignDefaults=void 0;const e=_e(),t=Ae();function r(o,s){const{properties:a,items:c}=o.schema;if(s==="object"&&a)for(const i in a)n(o,i,a[i].default);else s==="array"&&Array.isArray(c)&&c.forEach((i,l)=>n(o,l,i.default))}Br.assignDefaults=r;function n(o,s,a){const{gen:c,compositeRule:i,data:l,opts:p}=o;if(a===void 0)return;const f=(0,e._)`${l}${(0,e.getProperty)(s)}`;if(i){(0,t.checkStrictMode)(o,`default is ignored for: ${f}`);return}let $=(0,e._)`${f} === undefined`;p.useDefaults==="empty"&&($=(0,e._)`${$} || ${f} === null || ${f} === ""`),c.if($,(0,e._)`${f} = ${(0,e.stringify)(a)}`)}return Br}var Et={},Ue={},Gr={},bl;function wl(){if(bl)return Gr;bl=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.getSkipCondition=void 0;const e=_e(),t=ut();function r(n,o){var s;const a=(s=n.properties)===null||s===void 0?void 0:s[o];if(!a)return;const c=a.readOnly===!0,i=a.writeOnly===!0;if(!c&&!i)return;const l=[],p=(0,e._)`typeof ${t.default.this} == "object" && ${t.default.this} && ${t.default.this}.apiContext`;return c&&l.push((0,e._)`${p} === "request"`),i&&l.push((0,e._)`${p} === "response"`),(0,e.or)(...l)}return Gr.getSkipCondition=r,Gr}var $l;function _t(){if($l)return Ue;$l=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.validateUnion=Ue.validateArray=Ue.usePattern=Ue.callValidateCode=Ue.schemaProperties=Ue.allSchemaProperties=Ue.noPropertyInData=Ue.propertyInData=Ue.isOwnProperty=Ue.hasPropFunc=Ue.reportMissingProp=Ue.checkMissingProp=Ue.checkReportMissingProp=void 0;const e=_e(),t=Ae(),r=ut(),n=Ae(),o=wl();function s(d,P){const{gen:h,data:g,it:E}=d;h.if(f(h,g,P,E.opts.ownProperties),()=>{d.setParams({missingProperty:(0,e._)`${P}`},!0),d.error()})}Ue.checkReportMissingProp=s;function a({gen:d,data:P,it:{opts:h},parentSchema:g},E,O){return(0,e.or)(...E.map(C=>{var q;return(0,e.and)((0,e.not)((q=(0,o.getSkipCondition)(g,C))!==null&&q!==void 0?q:(0,e._)`false`),f(d,P,C,h.ownProperties),(0,e._)`${O} = ${C}`)}))}Ue.checkMissingProp=a;function c(d,P){d.setParams({missingProperty:P},!0),d.error()}Ue.reportMissingProp=c;function i(d){return d.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Ue.hasPropFunc=i;function l(d,P,h){return(0,e._)`${i(d)}.call(${P}, ${h})`}Ue.isOwnProperty=l;function p(d,P,h,g){const E=(0,e._)`${P}${(0,e.getProperty)(h)} !== undefined`;return g?(0,e._)`${E} && ${l(d,P,h)}`:E}Ue.propertyInData=p;function f(d,P,h,g){const E=(0,e._)`${P}${(0,e.getProperty)(h)} === undefined`;return g?(0,e.or)(E,(0,e.not)(l(d,P,h))):E}Ue.noPropertyInData=f;function $(d){return d?Object.keys(d).filter(P=>P!=="__proto__"):[]}Ue.allSchemaProperties=$;function m(d,P){return $(P).filter(h=>!(0,t.alwaysValidSchema)(d,P[h]))}Ue.schemaProperties=m;function _({schemaCode:d,data:P,it:{gen:h,topSchemaRef:g,schemaPath:E,errorPath:O},it:C},q,z,F){const L=F?(0,e._)`${d}, ${P}, ${g}${E}`:P,K=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,O)],[r.default.parentData,C.parentData],[r.default.parentDataProperty,C.parentDataProperty],[r.default.rootData,r.default.rootData],[r.default.isAllOfVariant,C.isAllOfVariant?1:0]];C.opts.dynamicRef&&K.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const le=(0,e._)`${L}, ${h.object(...K)}`;return z!==e.nil?(0,e._)`${q}.call(${z}, ${le})`:(0,e._)`${q}(${le})`}Ue.callValidateCode=_;const x=(0,e._)`new RegExp`;function b({gen:d,it:{opts:P}},h){const g=P.unicodeRegExp?"u":"",{regExp:E}=P.code,O=E(h,g);return d.scopeValue("pattern",{key:O.toString(),ref:O,code:(0,e._)`${E.code==="new RegExp"?x:(0,n.useFunc)(d,E)}(${h}, ${g})`})}Ue.usePattern=b;function w(d){const{gen:P,data:h,keyword:g,it:E}=d,O=P.name("valid");if(E.allErrors){const q=P.let("valid",!0);return C(()=>P.assign(q,!1)),q}return P.var(O,!0),C(()=>P.break()),O;function C(q){const z=P.const("len",(0,e._)`${h}.length`);P.forRange("i",0,z,F=>{d.subschema({keyword:g,dataProp:F,dataPropType:t.Type.Num},O),P.if((0,e.not)(O),q)})}}Ue.validateArray=w;function y(d){const{gen:P,schema:h,keyword:g,parentSchema:E,it:O}=d;if(!Array.isArray(h))throw new Error("ajv implementation error");if(O.opts.discriminator&&E.discriminator||h.some(z=>(0,t.alwaysValidSchema)(O,z))&&!O.opts.unevaluated)return;const C=P.let("valid",!1),q=P.name("_valid");P.block(()=>h.forEach((z,F)=>{const L=d.subschema({keyword:g,schemaProp:F,compositeRule:!0},q);P.assign(C,(0,e._)`${C} || ${q}`),d.mergeValidEvaluated(L,q)||P.if((0,e.not)(C))})),d.result(C,()=>d.reset(),()=>d.error(!0))}return Ue.validateUnion=y,Ue}var El;function zv(){if(El)return Et;El=1,Object.defineProperty(Et,"__esModule",{value:!0}),Et.validateKeywordUsage=Et.validSchemaType=Et.funcKeywordCode=Et.macroKeywordCode=void 0;const e=_e(),t=ut(),r=_t(),n=Mn();function o($,m){const{gen:_,keyword:x,schema:b,parentSchema:w,it:y}=$,d=m.macro.call(y.self,b,w,y),P=l(_,x,d);y.opts.validateSchema!==!1&&y.self.validateSchema(d,!0);const h=_.name("valid");$.subschema({schema:d,schemaPath:e.nil,errSchemaPath:`${y.errSchemaPath}/${x}`,topSchemaRef:P,compositeRule:!0},h),$.pass(h,()=>$.error(!0))}Et.macroKeywordCode=o;function s($,m){var _;const{gen:x,keyword:b,schema:w,parentSchema:y,$data:d,it:P}=$;i(P,m);const h=!d&&m.compile?m.compile.call(P.self,w,y,P):m.validate,g=l(x,b,h),E=x.let("valid");$.block$data(E,O),$.ok((_=m.valid)!==null&&_!==void 0?_:E);function O(){if(m.errors===!1)z(),m.modifying&&a($),F(()=>$.error());else{const L=m.async?C():q();m.modifying&&a($),F(()=>c($,L))}}function C(){const L=x.let("ruleErrs",null);return x.try(()=>z((0,e._)`await `),K=>x.assign(E,!1).if((0,e._)`${K} instanceof ${P.ValidationError}`,()=>x.assign(L,(0,e._)`${K}.errors`),()=>x.throw(K))),L}function q(){const L=(0,e._)`${g}.errors`;return x.assign(L,null),z(e.nil),L}function z(L=m.async?(0,e._)`await `:e.nil){const K=P.opts.passContext?t.default.this:t.default.self,le=!("compile"in m&&!d||m.schema===!1);x.assign(E,(0,e._)`${L}${(0,r.callValidateCode)($,g,K,le)}`,m.modifying)}function F(L){var K;x.if((0,e.not)((K=m.valid)!==null&&K!==void 0?K:E),L)}}Et.funcKeywordCode=s;function a($){const{gen:m,data:_,it:x}=$;m.if(x.parentData,()=>m.assign(_,(0,e._)`${x.parentData}[${x.parentDataProperty}]`))}function c($,m){const{gen:_}=$;_.if((0,e._)`Array.isArray(${m})`,()=>{_.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${m} : ${t.default.vErrors}.concat(${m})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)($)},()=>$.error())}function i({schemaEnv:$},m){if(m.async&&!$.$async)throw new Error("async keyword in sync schema")}function l($,m,_){if(_===void 0)throw new Error(`keyword "${m}" failed to compile`);return $.scopeValue("keyword",typeof _=="function"?{ref:_}:{ref:_,code:(0,e.stringify)(_)})}function p($,m,_=!1){return!m.length||m.some(x=>x==="array"?Array.isArray($):x==="object"?$&&typeof $=="object"&&!Array.isArray($):typeof $==x||_&&typeof $>"u")}Et.validSchemaType=p;function f({schema:$,opts:m,self:_,errSchemaPath:x},b,w){if(Array.isArray(b.keyword)?!b.keyword.includes(w):b.keyword!==w)throw new Error("ajv implementation error");const y=b.dependencies;if(y?.some(d=>!Object.prototype.hasOwnProperty.call($,d)))throw new Error(`parent schema must have dependencies of ${w}: ${y.join(",")}`);if(b.validateSchema&&!b.validateSchema($[w])){const d=`keyword "${w}" value is invalid at path "${x}": `+_.errorsText(b.validateSchema.errors);if(m.validateSchema==="log")_.logger.error(d);else throw new Error(d)}}return Et.validateKeywordUsage=f,Et}var Ut={},_l;function Uv(){if(_l)return Ut;_l=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.extendSubschemaMode=Ut.extendSubschemaData=Ut.getSubschema=void 0;const e=_e(),t=Ae();function r(s,{keyword:a,schemaProp:c,schema:i,schemaPath:l,errSchemaPath:p,topSchemaRef:f}){if(a!==void 0&&i!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(a!==void 0){const $=s.schema[a];return c===void 0?{schema:$,schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(a)}`,errSchemaPath:`${s.errSchemaPath}/${a}`}:{schema:$[c],schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(a)}${(0,e.getProperty)(c)}`,errSchemaPath:`${s.errSchemaPath}/${a}/${(0,t.escapeFragment)(c)}`}}if(i!==void 0){if(l===void 0||p===void 0||f===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:l,topSchemaRef:f,errSchemaPath:p}}throw new Error('either "keyword" or "schema" must be passed')}Ut.getSubschema=r;function n(s,a,{dataProp:c,dataPropType:i,data:l,dataTypes:p,propertyName:f}){if(l!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:$}=a;if(c!==void 0){const{errorPath:_,dataPathArr:x,opts:b}=a,w=$.let("data",(0,e._)`${a.data}${(0,e.getProperty)(c)}`,!0);m(w),s.errorPath=(0,e.str)`${_}${(0,t.getErrorPath)(c,i,b.jsPropertySyntax)}`,s.parentDataProperty=(0,e._)`${c}`,s.dataPathArr=[...x,s.parentDataProperty]}if(l!==void 0){const _=l instanceof e.Name?l:$.let("data",l,!0);m(_),f!==void 0&&(s.propertyName=f)}p&&(s.dataTypes=p);function m(_){s.data=_,s.dataLevel=a.dataLevel+1,s.dataTypes=[],a.definedProperties=new Set,s.parentData=a.data,s.dataNames=[...a.dataNames,_]}}Ut.extendSubschemaData=n;function o(s,{jtdDiscriminator:a,jtdMetadata:c,compositeRule:i,createErrors:l,allErrors:p}){i!==void 0&&(s.compositeRule=i),l!==void 0&&(s.createErrors=l),p!==void 0&&(s.allErrors=p),s.jtdDiscriminator=a,s.jtdMetadata=c}return Ut.extendSubschemaMode=o,Ut}var it={},Ta={exports:{}},Pl;function xl(){if(Pl)return Ta.exports;Pl=1;var e=Ta.exports=function(n,o,s){typeof o=="function"&&(s=o,o={}),s=o.cb||s;var a=typeof s=="function"?s:s.pre||function(){},c=s.post||function(){};t(o,a,c,n,"",n)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(n,o,s,a,c,i,l,p,f,$){if(a&&typeof a=="object"&&!Array.isArray(a)){o(a,c,i,l,p,f,$);for(var m in a){var _=a[m];if(Array.isArray(_)){if(m in e.arrayKeywords)for(var x=0;x<_.length;x++)t(n,o,s,_[x],c+"/"+m+"/"+x,i,c,m,a,x)}else if(m in e.propsKeywords){if(_&&typeof _=="object")for(var b in _)t(n,o,s,_[b],c+"/"+m+"/"+r(b),i,c,m,a,b)}else(m in e.keywords||n.allKeys&&!(m in e.skipKeywords))&&t(n,o,s,_,c+"/"+m,i,c,m,a)}s(a,c,i,l,p,f,$)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return Ta.exports}var Sl;function Fn(){if(Sl)return it;Sl=1,Object.defineProperty(it,"__esModule",{value:!0}),it.getSchemaRefs=it.resolveUrl=it.normalizeId=it._getFullPath=it.getFullPath=it.inlineRef=void 0;const e=Ae(),t=vn(),r=xl(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function o(x,b=!0){return typeof x=="boolean"?!0:b===!0?!a(x):b?c(x)<=b:!1}it.inlineRef=o;const s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function a(x){for(const b in x){if(s.has(b))return!0;const w=x[b];if(Array.isArray(w)&&w.some(a)||typeof w=="object"&&a(w))return!0}return!1}function c(x){let b=0;for(const w in x)if(w==="$ref"||(b++,!n.has(w)&&(typeof x[w]=="object"&&(0,e.eachItem)(x[w],y=>b+=c(y)),b===1/0)))return 1/0;return b}function i(x,b="",w){w!==!1&&(b=f(b));const y=x.parse(b);return l(x,y)}it.getFullPath=i;function l(x,b){return x.serialize(b).split("#")[0]+"#"}it._getFullPath=l;const p=/#\/?$/;function f(x){return x?x.replace(p,""):""}it.normalizeId=f;function $(x,b,w){return w=f(w),x.resolve(b,w)}it.resolveUrl=$;const m=/^[a-z_][-a-z0-9._]*$/i;function _(x,b){if(typeof x=="boolean")return{};const{schemaId:w,uriResolver:y}=this.opts,d=f(x[w]||b),P={"":d},h=i(y,d,!1),g={},E=new Set;return r(x,{allKeys:!0},(q,z,F,L)=>{if(L===void 0)return;const K=h+z;let le=P[L];typeof q[w]=="string"&&(le=ue.call(this,q[w])),xe.call(this,q.$anchor),xe.call(this,q.$dynamicAnchor),P[z]=le;function ue(ce){const Ee=this.opts.uriResolver.resolve;if(ce=f(le?Ee(le,ce):ce),E.has(ce))throw C(ce);E.add(ce);let R=this.refs[ce];return typeof R=="string"&&(R=this.refs[R]),typeof R=="object"?O(q,R.schema,ce):ce!==f(K)&&(ce[0]==="#"?(O(q,g[ce],ce),g[ce]=q):this.refs[ce]=K),ce}function xe(ce){if(typeof ce=="string"){if(!m.test(ce))throw new Error(`invalid anchor "${ce}"`);ue.call(this,`#${ce}`)}}}),g;function O(q,z,F){if(z!==void 0&&!t(q,z))throw C(F)}function C(q){return new Error(`reference "${q}" resolves to more than one schema`)}}return it.getSchemaRefs=_,it}var Il;function Kr(){if(Il)return Ft;Il=1,Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.getData=Ft.KeywordCxt=Ft.validateFunctionCode=void 0;const e=Vv(),t=Vn(),r=yl(),n=Vn(),o=Fv(),s=zv(),a=Uv(),c=_e(),i=ut(),l=Fn(),p=Ae(),f=Mn();function $(I){if(h(I)&&(E(I),P(I))){b(I);return}m(I,()=>(0,e.topBoolOrEmptySchema)(I))}Ft.validateFunctionCode=$;function m({gen:I,validateName:k,schema:D,schemaEnv:B,opts:H},oe){H.code.es5?I.func(k,(0,c._)`${i.default.data}, ${i.default.valCxt}`,B.$async,()=>{I.code((0,c._)`"use strict"; ${y(D,H)}`),x(I,H),I.code(oe)}):I.func(k,(0,c._)`${i.default.data}, ${_(H)}`,B.$async,()=>I.code(y(D,H)).code(oe))}function _(I){return(0,c._)`{${i.default.instancePath}="", ${i.default.parentData}, ${i.default.parentDataProperty}, ${i.default.rootData}=${i.default.data}${I.dynamicRef?(0,c._)`, ${i.default.dynamicAnchors}={}`:c.nil}, ${i.default.isAllOfVariant} = 0}={}`}function x(I,k){I.if(i.default.valCxt,()=>{I.var(i.default.instancePath,(0,c._)`${i.default.valCxt}.${i.default.instancePath}`),I.var(i.default.parentData,(0,c._)`${i.default.valCxt}.${i.default.parentData}`),I.var(i.default.parentDataProperty,(0,c._)`${i.default.valCxt}.${i.default.parentDataProperty}`),I.var(i.default.rootData,(0,c._)`${i.default.valCxt}.${i.default.rootData}`),I.var(i.default.isAllOfVariant,(0,c._)`${i.default.valCxt}.${i.default.isAllOfVariant}`),k.dynamicRef&&I.var(i.default.dynamicAnchors,(0,c._)`${i.default.valCxt}.${i.default.dynamicAnchors}`)},()=>{I.var(i.default.instancePath,(0,c._)`""`),I.var(i.default.parentData,(0,c._)`undefined`),I.var(i.default.parentDataProperty,(0,c._)`undefined`),I.var(i.default.rootData,i.default.data),I.var(i.default.isAllOfVariant,(0,c._)`0`),k.dynamicRef&&I.var(i.default.dynamicAnchors,(0,c._)`{}`)})}function b(I){const{schema:k,opts:D,gen:B}=I;m(I,()=>{D.$comment&&k.$comment&&L(I),q(I),B.let(i.default.vErrors,null),B.let(i.default.errors,0),D.unevaluated&&w(I),O(I),K(I)})}function w(I){const{gen:k,validateName:D}=I;I.evaluated=k.const("evaluated",(0,c._)`${D}.evaluated`),k.if((0,c._)`${I.evaluated}.dynamicProps`,()=>k.assign((0,c._)`${I.evaluated}.props`,(0,c._)`undefined`)),k.if((0,c._)`${I.evaluated}.dynamicItems`,()=>k.assign((0,c._)`${I.evaluated}.items`,(0,c._)`undefined`))}function y(I,k){const D=typeof I=="object"&&I[k.schemaId];return D&&(k.code.source||k.code.process)?(0,c._)`/*# sourceURL=${D} */`:c.nil}function d(I,k){if(h(I)&&(E(I),P(I))){g(I,k);return}(0,e.boolOrEmptySchema)(I,k)}function P({schema:I,self:k}){if(typeof I=="boolean")return!I;for(const D in I)if(k.RULES.all[D])return!0;return!1}function h(I){return typeof I.schema!="boolean"}function g(I,k){const{schema:D,gen:B,opts:H}=I;H.$comment&&D.$comment&&L(I),z(I),F(I);const oe=B.const("_errs",i.default.errors);O(I,oe),B.var(k,(0,c._)`${oe} === ${i.default.errors}`)}function E(I){(0,p.checkUnknownRules)(I),C(I)}function O(I,k){if(I.opts.jtd)return ue(I,[],!1,k);const D=(0,t.getSchemaTypes)(I.schema),B=(0,t.coerceAndCheckDataType)(I,D);ue(I,D,!B,k)}function C(I){const{schema:k,errSchemaPath:D,opts:B,self:H}=I;k.$ref&&B.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(k,H.RULES)&&H.logger.warn(`$ref: keywords ignored in schema at path "${D}"`)}function q(I){const{schema:k,opts:D}=I;k.default!==void 0&&D.useDefaults&&D.strictSchema&&(0,p.checkStrictMode)(I,"default is ignored in the schema root")}function z(I){const k=I.schema[I.opts.schemaId];k&&(I.baseId=(0,l.resolveUrl)(I.opts.uriResolver,I.baseId,k))}function F(I){if(I.schema.$async&&!I.schemaEnv.$async)throw new Error("async schema in sync schema")}function L({gen:I,schemaEnv:k,schema:D,errSchemaPath:B,opts:H}){const oe=D.$comment;if(H.$comment===!0)I.code((0,c._)`${i.default.self}.logger.log(${oe})`);else if(typeof H.$comment=="function"){const A=(0,c.str)`${B}/$comment`,X=I.scopeValue("root",{ref:k.root});I.code((0,c._)`${i.default.self}.opts.$comment(${oe}, ${A}, ${X}.schema)`)}}function K(I){const{gen:k,schemaEnv:D,validateName:B,ValidationError:H,opts:oe}=I;D.$async?k.if((0,c._)`${i.default.errors} === 0`,()=>k.return(i.default.data),()=>k.throw((0,c._)`new ${H}(${i.default.vErrors})`)):(k.assign((0,c._)`${B}.errors`,i.default.vErrors),oe.unevaluated&&le(I),k.return((0,c._)`${i.default.errors} === 0`))}function le({gen:I,evaluated:k,props:D,items:B}){D instanceof c.Name&&I.assign((0,c._)`${k}.props`,D),B instanceof c.Name&&I.assign((0,c._)`${k}.items`,B)}function ue(I,k,D,B){const{gen:H,schema:oe,data:A,allErrors:X,opts:se,self:ee}=I,{RULES:te}=ee;if(oe.$ref&&(se.ignoreKeywordsWithRef||!(0,p.schemaHasRulesButRef)(oe,te))){H.block(()=>M(I,"$ref",te.all.$ref.definition));return}se.jtd||ce(I,k),H.block(()=>{for(const ie of te.rules)pe(ie);pe(te.post)});function pe(ie){(0,r.shouldUseGroup)(oe,ie)&&(ie.type?(H.if((0,n.checkDataType)(ie.type,A,se.strictNumbers)),xe(I,ie),k.length===1&&k[0]===ie.type&&D&&(H.else(),(0,n.reportTypeError)(I)),H.endIf()):xe(I,ie),X||H.if((0,c._)`${i.default.errors} === ${B||0}`))}}function xe(I,k){const{gen:D,schema:B,opts:{useDefaults:H}}=I;H&&(0,o.assignDefaults)(I,k.type),D.block(()=>{for(const A of k.rules)((0,r.shouldUseRule)(B,A)||oe(B,A))&&M(I,A.keyword,A.definition,k.type)});function oe(A,X){return!!(X.keyword==="unevaluatedProperties"&&(A.properties||A.patternProperties)&&!I.isAllOfVariant&&I.opts.defaultUnevaluatedProperties===!1)}}function ce(I,k){I.schemaEnv.meta||!I.opts.strictTypes||(Ee(I,k),I.opts.allowUnionTypes||R(I,k),N(I,I.dataTypes))}function Ee(I,k){if(k.length){if(!I.dataTypes.length){I.dataTypes=k;return}k.forEach(D=>{j(I.dataTypes,D)||S(I,`type "${D}" not allowed by context "${I.dataTypes.join(",")}"`)}),v(I,k)}}function R(I,k){k.length>1&&!(k.length===2&&k.includes("null"))&&S(I,"use allowUnionTypes to allow union type keyword")}function N(I,k){const D=I.self.RULES.all;for(const B in D){const H=D[B];if(typeof H=="object"&&(0,r.shouldUseRule)(I.schema,H)){const{type:oe}=H.definition;oe.length&&!oe.some(A=>V(k,A))&&S(I,`missing type "${oe.join(",")}" for keyword "${B}"`)}}}function V(I,k){return I.includes(k)||k==="number"&&I.includes("integer")}function j(I,k){return I.includes(k)||k==="integer"&&I.includes("number")}function v(I,k){const D=[];for(const B of I.dataTypes)j(k,B)?D.push(B):k.includes("integer")&&B==="number"&&D.push("integer");I.dataTypes=D}function S(I,k){const D=I.schemaEnv.baseId+I.errSchemaPath;k+=` at "${D}" (strictTypes)`,(0,p.checkStrictMode)(I,k,I.opts.strictTypes)}class T{constructor(k,D,B){if((0,s.validateKeywordUsage)(k,D,B),this.gen=k.gen,this.allErrors=k.allErrors,this.keyword=B,this.data=k.data,this.schema=k.schema[B],this.$data=D.$data&&k.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,p.schemaRefOrVal)(k,this.schema,B,this.$data),this.schemaType=D.schemaType,this.parentSchema=k.schema,this.params={},this.it=k,this.def=D,this.$data)this.schemaCode=k.gen.const("vSchema",re(this.$data,k));else if(this.schemaCode=this.schemaValue,!(0,s.validSchemaType)(this.schema,D.schemaType,D.allowUndefined))throw new Error(`${B} value must be ${JSON.stringify(D.schemaType)}`);("code"in D?D.trackErrors:D.errors!==!1)&&(this.errsCount=k.gen.const("_errs",i.default.errors))}result(k,D,B){this.failResult((0,c.not)(k),D,B)}failResult(k,D,B){this.gen.if(k),B?B():this.error(),D?(this.gen.else(),D(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(k,D){this.failResult((0,c.not)(k),void 0,D)}fail(k){if(k===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(k),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(k){if(!this.$data)return this.fail(k);const{schemaCode:D}=this;this.fail((0,c._)`${D} !== undefined && (${(0,c.or)(this.invalid$data(),k)})`)}error(k,D,B){if(D){this.setParams(D),this._error(k,B),this.setParams({});return}this._error(k,B)}_error(k,D){(k?f.reportExtraError:f.reportError)(this,this.def.error,D)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(k){this.allErrors||this.gen.if(k)}setParams(k,D){D?Object.assign(this.params,k):this.params=k}block$data(k,D,B=c.nil){this.gen.block(()=>{this.check$data(k,B),D()})}check$data(k=c.nil,D=c.nil){if(!this.$data)return;const{gen:B,schemaCode:H,schemaType:oe,def:A}=this;B.if((0,c.or)((0,c._)`${H} === undefined`,D)),k!==c.nil&&B.assign(k,!0),(oe.length||A.validateSchema)&&(B.elseIf(this.invalid$data()),this.$dataError(),k!==c.nil&&B.assign(k,!1)),B.else()}invalid$data(){const{gen:k,schemaCode:D,schemaType:B,def:H,it:oe}=this;return(0,c.or)(A(),X());function A(){if(B.length){if(!(D instanceof c.Name))throw new Error("ajv implementation error");const se=Array.isArray(B)?B:[B];return(0,c._)`${(0,n.checkDataTypes)(se,D,oe.opts.strictNumbers,n.DataType.Wrong)}`}return c.nil}function X(){if(H.validateSchema){const se=k.scopeValue("validate$data",{ref:H.validateSchema});return(0,c._)`!${se}(${D})`}return c.nil}}subschema(k,D,B){const H=(0,a.getSubschema)(this.it,k);(0,a.extendSubschemaData)(H,this.it,k),(0,a.extendSubschemaMode)(H,k);const oe={...this.it,...H,items:void 0,props:void 0,isAllOfVariant:B};return d(oe,D),oe}mergeEvaluated(k,D){const{it:B,gen:H}=this;B.opts.unevaluated&&(B.props!==!0&&k.props!==void 0&&(B.props=p.mergeEvaluated.props(H,k.props,B.props,D)),B.items!==!0&&k.items!==void 0&&(B.items=p.mergeEvaluated.items(H,k.items,B.items,D)))}mergeValidEvaluated(k,D){const{it:B,gen:H}=this;if(B.opts.unevaluated&&(B.props!==!0||B.items!==!0))return H.if(D,()=>this.mergeEvaluated(k,c.Name)),!0}}Ft.KeywordCxt=T;function M(I,k,D,B){const H=new T(I,D,k);"code"in D?D.code(H,B):H.$data&&D.validate?(0,s.funcKeywordCode)(H,D):"macro"in D?(0,s.macroKeywordCode)(H,D):(D.compile||D.validate)&&(0,s.funcKeywordCode)(H,D)}const U=/^\/(?:[^~]|~0|~1)*$/,J=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function re(I,{dataLevel:k,dataNames:D,dataPathArr:B}){let H,oe;if(I==="")return i.default.rootData;if(I[0]==="/"){if(!U.test(I))throw new Error(`Invalid JSON-pointer: ${I}`);H=I,oe=i.default.rootData}else{const ee=J.exec(I);if(!ee)throw new Error(`Invalid JSON-pointer: ${I}`);const te=+ee[1];if(H=ee[2],H==="#"){if(te>=k)throw new Error(se("property/index",te));return B[k-te]}if(te>k)throw new Error(se("data",te));if(oe=D[k-te],!H)return oe}let A=oe;const X=H.split("/");for(const ee of X)ee&&(oe=(0,c._)`${oe}${(0,c.getProperty)((0,p.unescapeJsonPointer)(ee))}`,A=(0,c._)`${A} && ${oe}`);return A;function se(ee,te){return`Cannot access ${ee} ${te} levels up, current level is ${k}`}}return Ft.getData=re,Ft}var zn={},Tl;function Un(){if(Tl)return zn;Tl=1,Object.defineProperty(zn,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return zn.default=e,zn}var Bn={},kl;function Jr(){if(kl)return Bn;kl=1,Object.defineProperty(Bn,"__esModule",{value:!0});const e=Fn();class t extends Error{constructor(n,o,s,a){super(a||`can't resolve reference ${s} from id ${o}`),this.missingRef=(0,e.resolveUrl)(n,o,s),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(n,this.missingRef))}}return Bn.default=t,Bn}var ft={},Nl;function Gn(){if(Nl)return ft;Nl=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.resolveSchema=ft.getCompilingSchema=ft.resolveRef=ft.compileSchema=ft.SchemaEnv=void 0;const e=_e(),t=Un(),r=ut(),n=Fn(),o=Ae(),s=Kr();class a{constructor(w){var y;this.refs={},this.dynamicAnchors={};let d;typeof w.schema=="object"&&(d=w.schema),this.schema=w.schema,this.schemaId=w.schemaId,this.root=w.root||this,this.baseId=(y=w.baseId)!==null&&y!==void 0?y:(0,n.normalizeId)(d?.[w.schemaId||"$id"]),this.schemaPath=w.schemaPath,this.localRefs=w.localRefs,this.meta=w.meta,this.$async=d?.$async,this.refs={}}}ft.SchemaEnv=a;function c(b){const w=p.call(this,b);if(w)return w;const y=(0,n.getFullPath)(this.opts.uriResolver,b.root.baseId),{es5:d,lines:P}=this.opts.code,{ownProperties:h}=this.opts,g=new e.CodeGen(this.scope,{es5:d,lines:P,ownProperties:h});let E;b.$async&&(E=g.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const O=g.scopeName("validate");b.validateName=O;const C={gen:g,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:g.scopeValue("schema",this.opts.code.source===!0?{ref:b.schema,code:(0,e.stringify)(b.schema)}:{ref:b.schema}),validateName:O,ValidationError:E,schema:b.schema,schemaEnv:b,rootId:y,baseId:b.baseId||y,schemaPath:e.nil,errSchemaPath:b.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let q;try{this._compilations.add(b),(0,s.validateFunctionCode)(C),g.optimize(this.opts.code.optimize);const z=g.toString();q=`const visitedNodesForRef = new WeakMap(); ${g.scopeRefs(r.default.scope)}return ${z}`,this.opts.code.process&&(q=this.opts.code.process(q,b));const F=new Function(`${r.default.self}`,`${r.default.scope}`,q)(this,this.scope.get());if(this.scope.value(O,{ref:F}),F.errors=null,F.schema=b.schema,F.schemaEnv=b,b.$async&&(F.$async=!0),this.opts.code.source===!0&&(F.source={validateName:O,validateCode:z,scopeValues:g._values}),this.opts.unevaluated){const{props:L,items:K}=C;F.evaluated={props:L instanceof e.Name?void 0:L,items:K instanceof e.Name?void 0:K,dynamicProps:L instanceof e.Name,dynamicItems:K instanceof e.Name},F.source&&(F.source.evaluated=(0,e.stringify)(F.evaluated))}return b.validate=F,b}catch(z){throw delete b.validate,delete b.validateName,q&&this.logger.error("Error compiling schema, function code:",q),z}finally{this._compilations.delete(b)}}ft.compileSchema=c;function i(b,w,y){var d;const P=(0,n.resolveUrl)(this.opts.uriResolver,w,y),h=b.refs[P];if(h)return h;let g=$.call(this,b,P);if(g===void 0){const E=(d=b.localRefs)===null||d===void 0?void 0:d[P],{schemaId:O}=this.opts;E&&(g=new a({schema:E,schemaId:O,root:b,baseId:w}))}if(g===void 0&&this.opts.loadSchemaSync){const E=this.opts.loadSchemaSync(w,y,P);E&&!(this.refs[P]||this.schemas[P])&&(this.addSchema(E,P,void 0),g=$.call(this,b,P))}if(g!==void 0)return b.refs[P]=l.call(this,g)}ft.resolveRef=i;function l(b){return(0,n.inlineRef)(b.schema,this.opts.inlineRefs)?b.schema:b.validate?b:c.call(this,b)}function p(b){for(const w of this._compilations)if(f(w,b))return w}ft.getCompilingSchema=p;function f(b,w){return b.schema===w.schema&&b.root===w.root&&b.baseId===w.baseId}function $(b,w){let y;for(;typeof(y=this.refs[w])=="string";)w=y;return y||this.schemas[w]||m.call(this,b,w)}function m(b,w){const y=this.opts.uriResolver.parse(w),d=(0,n._getFullPath)(this.opts.uriResolver,y);let P=(0,n.getFullPath)(this.opts.uriResolver,b.baseId,void 0);if(Object.keys(b.schema).length>0&&d===P)return x.call(this,y,b);const h=(0,n.normalizeId)(d),g=this.refs[h]||this.schemas[h];if(typeof g=="string"){const E=m.call(this,b,g);return typeof E?.schema!="object"?void 0:x.call(this,y,E)}if(typeof g?.schema=="object"){if(g.validate||c.call(this,g),h===(0,n.normalizeId)(w)){const{schema:E}=g,{schemaId:O}=this.opts,C=E[O];return C&&(P=(0,n.resolveUrl)(this.opts.uriResolver,P,C)),new a({schema:E,schemaId:O,root:b,baseId:P})}return x.call(this,y,g)}}ft.resolveSchema=m;const _=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function x(b,{baseId:w,schema:y,root:d}){var P;if(((P=b.fragment)===null||P===void 0?void 0:P[0])!=="/")return;for(const E of b.fragment.slice(1).split("/")){if(typeof y=="boolean")return;const O=y[(0,o.unescapeFragment)(E)];if(O===void 0)return;y=O;const C=typeof y=="object"&&y[this.opts.schemaId];!_.has(E)&&C&&(w=(0,n.resolveUrl)(this.opts.uriResolver,w,C))}let h;if(typeof y!="boolean"&&y.$ref&&!(0,o.schemaHasRulesButRef)(y,this.RULES)){const E=(0,n.resolveUrl)(this.opts.uriResolver,w,y.$ref);h=m.call(this,d,E)}const{schemaId:g}=this.opts;if(h=h||new a({schema:y,schemaId:g,root:d,baseId:w}),h.schema!==h.root.schema)return h}return ft}const Bv="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Gv="Meta-schema for $data reference (JSON AnySchema extension proposal)",Kv="object",Jv=["$data"],Yv={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Wv=!1,Hv={$id:Bv,description:Gv,type:Kv,required:Jv,properties:Yv,additionalProperties:Wv};var Kn={},Yr={exports:{}},ka,Ol;function jl(){if(Ol)return ka;Ol=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),r=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),n=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),o=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function s(h){let g="",E=0,O=0;for(O=0;O<h.length;O++)if(E=h[O].charCodeAt(0),E!==48){if(!(E>=48&&E<=57||E>=65&&E<=70||E>=97&&E<=102))return"";g+=h[O];break}for(O+=1;O<h.length;O++){if(E=h[O].charCodeAt(0),!(E>=48&&E<=57||E>=65&&E<=70||E>=97&&E<=102))return"";g+=h[O]}return g}const a=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function c(h){return h.length=0,!0}function i(h,g,E){if(h.length){const O=s(h);if(O!=="")g.push(O);else return E.error=!0,!1;h.length=0}return!0}function l(h){let g=0;const E={error:!1,address:"",zone:""},O=[],C=[];let q=!1,z=!1,F=i;for(let L=0;L<h.length;L++){const K=h[L];if(!(K==="["||K==="]"))if(K===":"){if(q===!0&&(z=!0),!F(C,O,E))break;if(++g>7){E.error=!0;break}L>0&&h[L-1]===":"&&(q=!0),O.push(":");continue}else if(K==="%"){if(!F(C,O,E))break;F=c}else{C.push(K);continue}}return C.length&&(F===c?E.zone=C.join(""):z?O.push(C.join("")):O.push(s(C))),E.address=O.join(""),E}function p(h){if(f(h,":")<2)return{host:h,isIPV6:!1};const g=l(h);if(g.error)return{host:h,isIPV6:!1};{let E=g.address,O=g.address;return g.zone&&(E+="%"+g.zone,O+="%25"+g.zone),{host:E,isIPV6:!0,escapedHost:O}}}function f(h,g){let E=0;for(let O=0;O<h.length;O++)h[O]===g&&E++;return E}function $(h){let g=h;const E=[];let O=-1,C=0;for(;C=g.length;){if(C===1){if(g===".")break;if(g==="/"){E.push("/");break}else{E.push(g);break}}else if(C===2){if(g[0]==="."){if(g[1]===".")break;if(g[1]==="/"){g=g.slice(2);continue}}else if(g[0]==="/"&&(g[1]==="."||g[1]==="/")){E.push("/");break}}else if(C===3&&g==="/.."){E.length!==0&&E.pop(),E.push("/");break}if(g[0]==="."){if(g[1]==="."){if(g[2]==="/"){g=g.slice(3);continue}}else if(g[1]==="/"){g=g.slice(2);continue}}else if(g[0]==="/"&&g[1]==="."){if(g[2]==="/"){g=g.slice(2);continue}else if(g[2]==="."&&g[3]==="/"){g=g.slice(3),E.length!==0&&E.pop();continue}}if((O=g.indexOf("/",1))===-1){E.push(g);break}else E.push(g.slice(0,O)),g=g.slice(O)}return E.join("")}const m={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},_=/[@/?#:]/g,x=/[@/?#]/g;function b(h,g){const E=g?x:_;return E.lastIndex=0,h.replace(E,O=>m[O])}function w(h,g=!1){if(h.indexOf("%")===-1)return h;let E="";for(let O=0;O<h.length;O++){if(h[O]==="%"&&O+2<h.length){const C=h.slice(O+1,O+3);if(r(C)){const q=C.toUpperCase(),z=String.fromCharCode(parseInt(q,16));g&&n(z)?E+=z:E+="%"+q,O+=2;continue}}E+=h[O]}return E}function y(h){let g="";for(let E=0;E<h.length;E++){if(h[E]==="%"&&E+2<h.length){const O=h.slice(E+1,E+3);if(r(O)){const C=O.toUpperCase(),q=String.fromCharCode(parseInt(C,16));q!=="."&&n(q)?g+=q:g+="%"+C,E+=2;continue}}o(h[E])?g+=h[E]:g+=escape(h[E])}return g}function d(h){let g="";for(let E=0;E<h.length;E++){if(h[E]==="%"&&E+2<h.length){const O=h.slice(E+1,E+3);if(r(O)){g+="%"+O.toUpperCase(),E+=2;continue}}g+=escape(h[E])}return g}function P(h){const g=[];if(h.userinfo!==void 0&&(g.push(h.userinfo),g.push("@")),h.host!==void 0){let E=unescape(h.host);if(!t(E)){const O=p(E);O.isIPV6===!0?E=`[${O.escapedHost}]`:E=b(E,!1)}g.push(E)}return(typeof h.port=="number"||typeof h.port=="string")&&(g.push(":"),g.push(String(h.port))),g.length?g.join(""):void 0}return ka={nonSimpleDomain:a,recomposeAuthority:P,reescapeHostDelimiters:b,normalizePercentEncoding:w,normalizePathEncoding:y,escapePreservingEscapes:d,removeDotSegments:$,isIPv4:t,isUUID:e,normalizeIPv6:p,stringArrayToHexStripped:s},ka}var Na,Cl;function Xv(){if(Cl)return Na;Cl=1;const{isUUID:e}=jl(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function n(d){return r.indexOf(d)!==-1}function o(d){return d.secure===!0?!0:d.secure===!1?!1:d.scheme?d.scheme.length===3&&(d.scheme[0]==="w"||d.scheme[0]==="W")&&(d.scheme[1]==="s"||d.scheme[1]==="S")&&(d.scheme[2]==="s"||d.scheme[2]==="S"):!1}function s(d){return d.host||(d.error=d.error||"HTTP URIs must have a host."),d}function a(d){const P=String(d.scheme).toLowerCase()==="https";return(d.port===(P?443:80)||d.port==="")&&(d.port=void 0),d.path||(d.path="/"),d}function c(d){return d.secure=o(d),d.resourceName=(d.path||"/")+(d.query?"?"+d.query:""),d.path=void 0,d.query=void 0,d}function i(d){if((d.port===(o(d)?443:80)||d.port==="")&&(d.port=void 0),typeof d.secure=="boolean"&&(d.scheme=d.secure?"wss":"ws",d.secure=void 0),d.resourceName){const[P,h]=d.resourceName.split("?");d.path=P&&P!=="/"?P:void 0,d.query=h,d.resourceName=void 0}return d.fragment=void 0,d}function l(d,P){if(!d.path)return d.error="URN can not be parsed",d;const h=d.path.match(t);if(h){const g=P.scheme||d.scheme||"urn";d.nid=h[1].toLowerCase(),d.nss=h[2];const E=`${g}:${P.nid||d.nid}`,O=y(E);d.path=void 0,O&&(d=O.parse(d,P))}else d.error=d.error||"URN can not be parsed.";return d}function p(d,P){if(d.nid===void 0)throw new Error("URN without nid cannot be serialized");const h=P.scheme||d.scheme||"urn",g=d.nid.toLowerCase(),E=`${h}:${P.nid||g}`,O=y(E);O&&(d=O.serialize(d,P));const C=d,q=d.nss;return C.path=`${g||P.nid}:${q}`,P.skipEscape=!0,C}function f(d,P){const h=d;return h.uuid=h.nss,h.nss=void 0,!P.tolerant&&(!h.uuid||!e(h.uuid))&&(h.error=h.error||"UUID is not valid."),h}function $(d){const P=d;return P.nss=(d.uuid||"").toLowerCase(),P}const m={scheme:"http",domainHost:!0,parse:s,serialize:a},_={scheme:"https",domainHost:m.domainHost,parse:s,serialize:a},x={scheme:"ws",domainHost:!0,parse:c,serialize:i},b={scheme:"wss",domainHost:x.domainHost,parse:x.parse,serialize:x.serialize},w={http:m,https:_,ws:x,wss:b,urn:{scheme:"urn",parse:l,serialize:p,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:$,skipNormalize:!0}};Object.setPrototypeOf(w,null);function y(d){return d&&(w[d]||w[d.toLowerCase()])||void 0}return Na={wsIsSecure:o,SCHEMES:w,isValidSchemeName:n,getSchemeHandler:y},Na}var Al;function Rl(){if(Al)return Yr.exports;Al=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:n,normalizePathEncoding:o,escapePreservingEscapes:s,reescapeHostDelimiters:a,isIPv4:c,nonSimpleDomain:i}=jl(),{SCHEMES:l,getSchemeHandler:p}=Xv();function f(C,q){return typeof C=="string"?C=h(C,q):typeof C=="object"&&(C=P(x(C,q),q)),C}function $(C,q,z){const F=z?Object.assign({scheme:"null"},z):{scheme:"null"},L=m(P(C,F),P(q,F),F,!0);return F.skipEscape=!0,x(L,F)}function m(C,q,z,F){const L={};return F||(C=P(x(C,z),z),q=P(x(q,z),z)),z=z||{},!z.tolerant&&q.scheme?(L.scheme=q.scheme,L.userinfo=q.userinfo,L.host=q.host,L.port=q.port,L.path=t(q.path||""),L.query=q.query):(q.userinfo!==void 0||q.host!==void 0||q.port!==void 0?(L.userinfo=q.userinfo,L.host=q.host,L.port=q.port,L.path=t(q.path||""),L.query=q.query):(q.path?(q.path[0]==="/"?L.path=t(q.path):((C.userinfo!==void 0||C.host!==void 0||C.port!==void 0)&&!C.path?L.path="/"+q.path:C.path?L.path=C.path.slice(0,C.path.lastIndexOf("/")+1)+q.path:L.path=q.path,L.path=t(L.path)),L.query=q.query):(L.path=C.path,q.query!==void 0?L.query=q.query:L.query=C.query),L.userinfo=C.userinfo,L.host=C.host,L.port=C.port),L.scheme=C.scheme),L.fragment=q.fragment,L}function _(C,q,z){const F=E(C,z),L=E(q,z);return F!==void 0&&L!==void 0&&F.toLowerCase()===L.toLowerCase()}function x(C,q){const z={host:C.host,scheme:C.scheme,userinfo:C.userinfo,port:C.port,path:C.path,query:C.query,nid:C.nid,nss:C.nss,uuid:C.uuid,fragment:C.fragment,reference:C.reference,resourceName:C.resourceName,secure:C.secure,error:""},F=Object.assign({},q),L=[],K=p(F.scheme||z.scheme);K&&K.serialize&&K.serialize(z,F),z.path!==void 0&&(F.skipEscape?z.path=n(z.path):(z.path=s(z.path),z.scheme!==void 0&&(z.path=z.path.split("%3A").join(":")))),F.reference!=="suffix"&&z.scheme&&L.push(z.scheme,":");const le=r(z);if(le!==void 0&&(F.reference!=="suffix"&&L.push("//"),L.push(le),z.path&&z.path[0]!=="/"&&L.push("/")),z.path!==void 0){let ue=z.path;!F.absolutePath&&(!K||!K.absolutePath)&&(ue=t(ue)),le===void 0&&ue[0]==="/"&&ue[1]==="/"&&(ue="/%2F"+ue.slice(2)),L.push(ue)}return z.query!==void 0&&L.push("?",z.query),z.fragment!==void 0&&L.push("#",z.fragment),L.join("")}const b=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,w=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/;function y(C,q){if(q[2]!==void 0&&C.path&&C.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof C.port=="number"&&(C.port<0||C.port>65535))return"URI port is malformed."}function d(C,q){const z=Object.assign({},q),F={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let L=!1,K=!1;z.reference==="suffix"&&(z.scheme?C=z.scheme+":"+C:C="//"+C);const le=C.match(w);le!==null&&le[1].indexOf("\\")!==-1&&(F.error="URI authority must not contain a literal backslash.",L=!0);const ue=C.match(b);if(ue){F.scheme=ue[1],F.userinfo=ue[3],F.host=ue[4],F.port=parseInt(ue[5],10),F.path=ue[6]||"",F.query=ue[7],F.fragment=ue[8],isNaN(F.port)&&(F.port=ue[5]);const xe=y(F,ue);if(xe!==void 0&&(F.error=F.error||xe,L=!0),F.host)if(c(F.host)===!1){const Ee=e(F.host);F.host=Ee.host.toLowerCase(),K=Ee.isIPV6}else K=!0;F.scheme===void 0&&F.userinfo===void 0&&F.host===void 0&&F.port===void 0&&F.query===void 0&&!F.path?F.reference="same-document":F.scheme===void 0?F.reference="relative":F.fragment===void 0?F.reference="absolute":F.reference="uri",z.reference&&z.reference!=="suffix"&&z.reference!==F.reference&&(F.error=F.error||"URI is not a "+z.reference+" reference.");const ce=p(z.scheme||F.scheme);if(!z.unicodeSupport&&(!ce||!ce.unicodeSupport)&&F.host&&(z.domainHost||ce&&ce.domainHost)&&K===!1&&i(F.host))try{F.host=new URL("http://"+F.host).hostname}catch(Ee){F.error=F.error||"Host's domain name can not be converted to ASCII: "+Ee}if((!ce||ce&&!ce.skipNormalize)&&(C.indexOf("%")!==-1&&(F.scheme!==void 0&&(F.scheme=unescape(F.scheme)),F.host!==void 0&&(F.host=a(unescape(F.host),K))),F.path&&(F.path=o(F.path)),F.fragment))try{F.fragment=encodeURI(decodeURIComponent(F.fragment))}catch{F.error=F.error||"URI malformed"}ce&&ce.parse&&ce.parse(F,z)}else F.error=F.error||"URI can not be parsed.";return{parsed:F,malformedAuthorityOrPort:L}}function P(C,q){return d(C,q).parsed}function h(C,q){return g(C,q).normalized}function g(C,q){const{parsed:z,malformedAuthorityOrPort:F}=d(C,q);return{normalized:F?C:x(z,q),malformedAuthorityOrPort:F}}function E(C,q){if(typeof C=="string"){const{normalized:z,malformedAuthorityOrPort:F}=g(C,q);return F?void 0:z}if(typeof C=="object")return x(C,q)}const O={SCHEMES:l,normalize:f,resolve:$,resolveComponent:m,equal:_,serialize:x,parse:P};return Yr.exports=O,Yr.exports.default=O,Yr.exports.fastUri=O,Yr.exports}var Dl;function Qv(){if(Dl)return Kn;Dl=1,Object.defineProperty(Kn,"__esModule",{value:!0});const e=Rl();return e.code='require("ajv/dist/runtime/uri").default',Kn.default=e,Kn}var ql;function Ll(){return ql||(ql=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Kr();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=_e();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=Un(),o=Jr(),s=ml(),a=Gn(),c=_e(),i=Fn(),l=Vn(),p=Ae(),f=Hv,$=Qv(),m=(R,N)=>new RegExp(R,N);m.code="new RegExp";const _=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],x=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),b={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},w={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function d(R){var N,V,j,v,S,T,M,U,J,re,I,k,D,B,H,oe,A,X,se,ee,te,pe,ie,de,$e;const Me=R.strict,u=(N=R.code)===null||N===void 0?void 0:N.optimize,Y=u===!0||u===void 0?1:u||0,G=(j=(V=R.code)===null||V===void 0?void 0:V.regExp)!==null&&j!==void 0?j:m,Q=(v=R.uriResolver)!==null&&v!==void 0?v:$.default;return{strictSchema:(T=(S=R.strictSchema)!==null&&S!==void 0?S:Me)!==null&&T!==void 0?T:!0,strictNumbers:(U=(M=R.strictNumbers)!==null&&M!==void 0?M:Me)!==null&&U!==void 0?U:!0,strictTypes:(re=(J=R.strictTypes)!==null&&J!==void 0?J:Me)!==null&&re!==void 0?re:"log",strictTuples:(k=(I=R.strictTuples)!==null&&I!==void 0?I:Me)!==null&&k!==void 0?k:"log",strictRequired:(B=(D=R.strictRequired)!==null&&D!==void 0?D:Me)!==null&&B!==void 0?B:!1,code:R.code?{...R.code,optimize:Y,regExp:G}:{optimize:Y,regExp:G},loopRequired:(H=R.loopRequired)!==null&&H!==void 0?H:y,loopEnum:(oe=R.loopEnum)!==null&&oe!==void 0?oe:y,meta:(A=R.meta)!==null&&A!==void 0?A:!0,messages:(X=R.messages)!==null&&X!==void 0?X:!0,inlineRefs:(se=R.inlineRefs)!==null&&se!==void 0?se:!0,schemaId:(ee=R.schemaId)!==null&&ee!==void 0?ee:"$id",addUsedSchema:(te=R.addUsedSchema)!==null&&te!==void 0?te:!0,validateSchema:(pe=R.validateSchema)!==null&&pe!==void 0?pe:!0,validateFormats:(ie=R.validateFormats)!==null&&ie!==void 0?ie:!0,unicodeRegExp:(de=R.unicodeRegExp)!==null&&de!==void 0?de:!0,int32range:($e=R.int32range)!==null&&$e!==void 0?$e:!0,uriResolver:Q}}class P{constructor(N={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,N=this.opts={...N,...d(N)};const{es5:V,lines:j}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:x,es5:V,lines:j}),this.logger=F(N.logger);const v=N.validateFormats;N.validateFormats=!1,this.RULES=(0,s.getRules)(),h.call(this,b,N,"NOT SUPPORTED"),h.call(this,w,N,"DEPRECATED","warn"),this._metaOpts=q.call(this),N.formats&&O.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),N.keywords&&C.call(this,N.keywords),typeof N.meta=="object"&&this.addMetaSchema(N.meta),E.call(this),N.validateFormats=v}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:N,meta:V,schemaId:j}=this.opts;let v=f;j==="id"&&(v={...f},v.id=v.$id,delete v.$id),V&&N&&this.addMetaSchema(v,v[j],!1)}defaultMeta(){const{meta:N,schemaId:V}=this.opts;return this.opts.defaultMeta=typeof N=="object"?N[V]||N:void 0}setDefaultUnevaluatedProperties(N){this.opts.defaultUnevaluatedProperties=N}validate(N,V){let j;if(typeof N=="string"){if(j=this.getSchema(N),!j)throw new Error(`no schema with key or ref "${N}"`)}else j=this.compile(N);const v=j(V);return"$async"in j||(this.errors=j.errors),v}compile(N,V){const j=this._addSchema(N,V);return j.validate||this._compileSchemaEnv(j)}compileAsync(N,V){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:j}=this.opts;return v.call(this,N,V);async function v(re,I){await S.call(this,re.$schema);const k=this._addSchema(re,I);return k.validate||T.call(this,k)}async function S(re){re&&!this.getSchema(re)&&await v.call(this,{$ref:re},!0)}async function T(re){try{return this._compileSchemaEnv(re)}catch(I){if(!(I instanceof o.default))throw I;return M.call(this,I),await U.call(this,I.missingSchema),T.call(this,re)}}function M({missingSchema:re,missingRef:I}){if(this.refs[re])throw new Error(`AnySchema ${re} is loaded but ${I} cannot be resolved`)}async function U(re){const I=await J.call(this,re);this.refs[re]||await S.call(this,I.$schema),this.refs[re]||this.addSchema(I,re,V)}async function J(re){const I=this._loading[re];if(I)return I;try{return await(this._loading[re]=j(re))}finally{delete this._loading[re]}}}addSchema(N,V,j,v=this.opts.validateSchema){if(Array.isArray(N)){for(const T of N)this.addSchema(T,void 0,j,v);return this}let S;if(typeof N=="object"){const{schemaId:T}=this.opts;if(S=N[T],S!==void 0&&typeof S!="string")throw new Error(`schema ${T} must be string`)}return V=(0,i.normalizeId)(V||S),this._checkUnique(V),this.schemas[V]=this._addSchema(N,j,V,v,!0),this}addMetaSchema(N,V,j=this.opts.validateSchema){return this.addSchema(N,V,!0,j),this}validateSchema(N,V){if(typeof N=="boolean")return!0;let j;if(j=N.$schema,j!==void 0&&typeof j!="string")throw new Error("$schema must be a string");if(j=j||this.opts.defaultMeta||this.defaultMeta(),!j)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const v=this.validate(j,N);if(!v&&V){const S="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(S);else throw new Error(S)}return v}getSchema(N){let V;for(;typeof(V=g.call(this,N))=="string";)N=V;if(V===void 0){const{schemaId:j}=this.opts,v=new a.SchemaEnv({schema:{},schemaId:j});if(V=a.resolveSchema.call(this,v,N),!V)return;this.refs[N]=V}return V.validate||this._compileSchemaEnv(V)}removeSchema(N){if(N instanceof RegExp)return this._removeAllSchemas(this.schemas,N),this._removeAllSchemas(this.refs,N),this;switch(typeof N){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const V=g.call(this,N);return typeof V=="object"&&this._cache.delete(V.schema),delete this.schemas[N],delete this.refs[N],this}case"object":{const V=N;this._cache.delete(V);let j=N[this.opts.schemaId];return j&&(j=(0,i.normalizeId)(j),delete this.schemas[j],delete this.refs[j]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(N){for(const V of N)this.addKeyword(V);return this}addKeyword(N,V){let j;if(typeof N=="string")j=N,typeof V=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),V.keyword=j);else if(typeof N=="object"&&V===void 0){if(V=N,j=V.keyword,Array.isArray(j)&&!j.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(K.call(this,j,V),!V)return(0,p.eachItem)(j,S=>le.call(this,S)),this;xe.call(this,V);const v={...V,type:(0,l.getJSONTypes)(V.type),schemaType:(0,l.getJSONTypes)(V.schemaType)};return(0,p.eachItem)(j,v.type.length===0?S=>le.call(this,S,v):S=>v.type.forEach(T=>le.call(this,S,v,T))),this}getKeyword(N){const V=this.RULES.all[N];return typeof V=="object"?V.definition:!!V}removeKeyword(N){const{RULES:V}=this;delete V.keywords[N],delete V.all[N];for(const j of V.rules){const v=j.rules.findIndex(S=>S.keyword===N);v>=0&&j.rules.splice(v,1)}return this}addFormat(N,V){return typeof V=="string"&&(V=new RegExp(V)),this.formats[N]=V,this}errorsText(N=this.errors,{separator:V=", ",dataVar:j="data"}={}){return!N||N.length===0?"No errors":N.map(v=>`${j}${v.instancePath} ${v.message}`).reduce((v,S)=>v+V+S)}$dataMetaSchema(N,V){const j=this.RULES.all;N=JSON.parse(JSON.stringify(N));for(const v of V){const S=v.split("/").slice(1);let T=N;for(const M of S)T=T[M];for(const M in j){const U=j[M];if(typeof U!="object")continue;const{$data:J}=U.definition,re=T[M];J&&re&&(T[M]=Ee(re))}}return N}_removeAllSchemas(N,V){for(const j in N){const v=N[j];(!V||V.test(j))&&(typeof v=="string"?delete N[j]:v&&!v.meta&&(this._cache.delete(v.schema),delete N[j]))}}_addSchema(N,V,j,v=this.opts.validateSchema,S=this.opts.addUsedSchema){let T;const{schemaId:M}=this.opts;if(typeof N=="object")T=N[M];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof N!="boolean")throw new Error("schema must be object or boolean")}let U=this._cache.get(N);if(U!==void 0)return U;j=(0,i.normalizeId)(T||j);const J=i.getSchemaRefs.call(this,N,j);return U=new a.SchemaEnv({schema:N,schemaId:M,meta:V,baseId:j,localRefs:J}),this._cache.set(U.schema,U),S&&!j.startsWith("#")&&(j&&this._checkUnique(j),this.refs[j]=U),v&&this.validateSchema(N,!0),U}_checkUnique(N){if(this.schemas[N]||this.refs[N])throw new Error(`schema with key or id "${N}" already exists`)}_compileSchemaEnv(N){if(N.meta?this._compileMetaSchema(N):a.compileSchema.call(this,N),!N.validate)throw new Error("ajv implementation error");return N.validate}_compileMetaSchema(N){const V=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,N)}finally{this.opts=V}}}P.ValidationError=n.default,P.MissingRefError=o.default,e.default=P;function h(R,N,V,j="error"){for(const v in R){const S=v;S in N&&this.logger[j](`${V}: option ${v}. ${R[S]}`)}}function g(R){return R=(0,i.normalizeId)(R),this.schemas[R]||this.refs[R]}function E(){const R=this.opts.schemas;if(R)if(Array.isArray(R))this.addSchema(R);else for(const N in R)this.addSchema(R[N],N)}function O(){for(const R in this.opts.formats){const N=this.opts.formats[R];N&&this.addFormat(R,N)}}function C(R){if(Array.isArray(R)){this.addVocabulary(R);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const N in R){const V=R[N];V.keyword||(V.keyword=N),this.addKeyword(V)}}function q(){const R={...this.opts};for(const N of _)delete R[N];return R}const z={log(){},warn(){},error(){}};function F(R){if(R===!1)return z;if(R===void 0)return console;if(R.log&&R.warn&&R.error)return R;throw new Error("logger must implement log, warn and error methods")}const L=/^[a-z_$][a-z0-9_$:-]*$/i;function K(R,N){const{RULES:V}=this;if((0,p.eachItem)(R,j=>{if(V.keywords[j])throw new Error(`Keyword ${j} is already defined`);if(!L.test(j))throw new Error(`Keyword ${j} has invalid name`)}),!!N&&N.$data&&!("code"in N||"validate"in N))throw new Error('$data keyword must have "code" or "validate" function')}function le(R,N,V){var j;const v=N?.post;if(V&&v)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:S}=this;let T=v?S.post:S.rules.find(({type:U})=>U===V);if(T||(T={type:V,rules:[]},S.rules.push(T)),S.keywords[R]=!0,!N)return;const M={keyword:R,definition:{...N,type:(0,l.getJSONTypes)(N.type),schemaType:(0,l.getJSONTypes)(N.schemaType)}};N.before?ue.call(this,T,M,N.before):T.rules.push(M),S.all[R]=M,(j=N.implements)===null||j===void 0||j.forEach(U=>this.addKeyword(U))}function ue(R,N,V){const j=R.rules.findIndex(v=>v.keyword===V);j>=0?R.rules.splice(j,0,N):(R.rules.push(N),this.logger.warn(`rule ${V} is not defined`))}function xe(R){let{metaSchema:N}=R;N!==void 0&&(R.$data&&this.opts.$data&&(N=Ee(N)),R.validateSchema=this.compile(N,!0))}const ce={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Ee(R){return{anyOf:[R,ce]}}})(el)),el}var Jn={},Yn={},Wn={},Ml;function Zv(){if(Ml)return Wn;Ml=1,Object.defineProperty(Wn,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Wn.default=e,Wn}var tr={},Vl;function Hn(){if(Vl)return tr;Vl=1,Object.defineProperty(tr,"__esModule",{value:!0}),tr.callRef=tr.getValidate=void 0;const e=Jr(),t=_t(),r=_e(),n=ut(),o=Gn(),s=Ae(),a={keyword:"$ref",schemaType:"string",code(l){const{gen:p,schema:f,it:$}=l,{baseId:m,schemaEnv:_,validateName:x,opts:b,self:w}=$,{root:y}=_;if((f==="#"||f==="#/")&&m===y.baseId)return P();const d=o.resolveRef.call(w,y,m,f);if(d===void 0)throw new e.default($.opts.uriResolver,m,f);if(d instanceof o.SchemaEnv)return h(d);return g(d);function P(){if(_===y)return i(l,x,_,_.$async);const E=p.scopeValue("root",{ref:y});return i(l,(0,r._)`${E}.validate`,y,y.$async)}function h(E){const O=c(l,E);i(l,O,E,E.$async)}function g(E){const O=p.scopeValue("schema",b.code.source===!0?{ref:E,code:(0,r.stringify)(E)}:{ref:E}),C=p.name("valid"),q=l.subschema({schema:E,dataTypes:[],schemaPath:r.nil,topSchemaRef:O,errSchemaPath:f},C,$.isAllOfVariant);l.mergeEvaluated(q),l.ok(C)}}};function c(l,p){const{gen:f}=l;return p.validate?f.scopeValue("validate",{ref:p.validate}):(0,r._)`${f.scopeValue("wrapper",{ref:p})}.validate`}tr.getValidate=c;function i(l,p,f,$){const{gen:m,it:_}=l,{allErrors:x,schemaEnv:b,opts:w}=_,y=w.passContext?n.default.this:r.nil;$?d():P();function d(){if(!b.$async)throw new Error("async schema referenced by sync schema");const E=m.let("valid");m.try(()=>{m.code((0,r._)`await ${(0,t.callValidateCode)(l,p,y)}`),g(p),x||m.assign(E,!0)},O=>{m.if((0,r._)`!(${O} instanceof ${_.ValidationError})`,()=>m.throw(O)),h(O),x||m.assign(E,!1)}),l.ok(E)}function P(){const E=m.name("visitedNodes");m.code((0,r._)`const ${E} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${p}) || new Set()`),m.if((0,r._)`!${E}.has(${l.data})`,()=>{m.code((0,r._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${p}, ${E})`),m.code((0,r._)`const dataNode = ${l.data}`),m.code((0,r._)`if (typeof dataNode === "object" && dataNode !== null) ${E}.add(dataNode)`);const O=l.result((0,t.callValidateCode)(l,p,y),()=>g(p),()=>h(p));return m.code((0,r._)`${E}.delete(dataNode)`),O})}function h(E){const O=(0,r._)`${E}.errors`;m.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${O} : ${n.default.vErrors}.concat(${O})`),m.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function g(E){var O;if(!_.opts.unevaluated)return;const C=(O=f?.validate)===null||O===void 0?void 0:O.evaluated;if(_.props!==!0)if(C&&!C.dynamicProps)C.props!==void 0&&(_.props=s.mergeEvaluated.props(m,C.props,_.props));else{const q=m.var("props",(0,r._)`${E}.evaluated.props`);_.props=s.mergeEvaluated.props(m,q,_.props,r.Name)}if(_.items!==!0)if(C&&!C.dynamicItems)C.items!==void 0&&(_.items=s.mergeEvaluated.items(m,C.items,_.items));else{const q=m.var("items",(0,r._)`${E}.evaluated.items`);_.items=s.mergeEvaluated.items(m,q,_.items,r.Name)}}}return tr.callRef=i,tr.default=a,tr}var Fl;function e0(){if(Fl)return Yn;Fl=1,Object.defineProperty(Yn,"__esModule",{value:!0});const e=Zv(),t=Hn(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Yn.default=r,Yn}var Xn={},Qn={},zl;function t0(){if(zl)return Qn;zl=1,Object.defineProperty(Qn,"__esModule",{value:!0});const e=_e(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},n={message:({keyword:s,schemaCode:a})=>(0,e.str)`must be ${r[s].okStr} ${a}`,params:({keyword:s,schemaCode:a})=>(0,e._)`{comparison: ${r[s].okStr}, limit: ${a}}`},o={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(s){const{keyword:a,data:c,schemaCode:i}=s;s.fail$data((0,e._)`${c} ${r[a].fail} ${i} || isNaN(${c})`)}};return Qn.default=o,Qn}var Zn={},Ul;function r0(){if(Ul)return Zn;Ul=1,Object.defineProperty(Zn,"__esModule",{value:!0});const e=_e(),t={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must be multiple of ${r}`,params:({schemaCode:r})=>(0,e._)`{multipleOf: ${r}}`},code(r){const{gen:n,data:o,schemaCode:s,it:a}=r,c=a.opts.multipleOfPrecision,i=n.let("res"),l=c?(0,e._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${c}`:(0,e._)`${i} !== parseInt(${i})`;r.fail$data((0,e._)`(${s} === 0 || (${i} = ${o}/${s}, ${l}))`)}};return Zn.default=t,Zn}var eo={},to={},Bl;function n0(){if(Bl)return to;Bl=1,Object.defineProperty(to,"__esModule",{value:!0});function e(t){const r=t.length;let n=0,o=0,s;for(;o<r;)n++,s=t.charCodeAt(o++),s>=55296&&s<=56319&&o<r&&(s=t.charCodeAt(o),(s&64512)===56320&&o++);return n}return to.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',to}var Gl;function o0(){if(Gl)return eo;Gl=1,Object.defineProperty(eo,"__esModule",{value:!0});const e=_e(),t=Ae(),r=n0(),n={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:s}){const a=o==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${s} characters`},params:({schemaCode:o})=>(0,e._)`{limit: ${o}}`},code(o){const{keyword:s,data:a,schemaCode:c,it:i}=o,l=s==="maxLength"?e.operators.GT:e.operators.LT,p=i.opts.unicode===!1?(0,e._)`${a}.length`:(0,e._)`${(0,t.useFunc)(o.gen,r.default)}(${a})`;o.fail$data((0,e._)`${p} ${l} ${c}`)}};return eo.default=n,eo}var ro={},Kl;function s0(){if(Kl)return ro;Kl=1,Object.defineProperty(ro,"__esModule",{value:!0});const e=_t(),t=Ae(),r=_e(),n={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:o})=>(0,r.str)`must match pattern "${o}"`,params:({schemaCode:o})=>(0,r._)`{pattern: ${o}}`},code(o){const{gen:s,data:a,$data:c,schema:i,schemaCode:l,it:p}=o,f=p.opts.unicodeRegExp?"u":"";if(c){const{regExp:$}=p.opts.code,m=$.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(s,$),_=s.let("valid");s.try(()=>s.assign(_,(0,r._)`${m}(${l}, ${f}).test(${a})`),()=>s.assign(_,!1)),o.fail$data((0,r._)`!${_}`)}else{const $=(0,e.usePattern)(o,i);o.fail$data((0,r._)`!${$}.test(${a})`)}}};return ro.default=n,ro}var no={},Jl;function a0(){if(Jl)return no;Jl=1,Object.defineProperty(no,"__esModule",{value:!0});const e=_e(),t={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:n}){const o=r==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${n} properties`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:n,data:o,schemaCode:s}=r,a=n==="maxProperties"?e.operators.GT:e.operators.LT;r.fail$data((0,e._)`Object.keys(${o}).length ${a} ${s}`)}};return no.default=t,no}var oo={},Yl;function i0(){if(Yl)return oo;Yl=1,Object.defineProperty(oo,"__esModule",{value:!0});const e=_t(),t=wl(),r=_e(),n=Ae(),o={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:s}})=>(0,r.str)`must have required property '${s}'`,params:({params:{missingProperty:s}})=>(0,r._)`{missingProperty: ${s}}`},code(s){const{gen:a,schema:c,schemaCode:i,data:l,$data:p,it:f}=s,{opts:$}=f;if(!p&&c.length===0)return;const m=c.length>=$.loopRequired;if(f.allErrors?_():x(),$.strictRequired){const y=s.parentSchema.properties,{definedProperties:d}=s.it;for(const P of c)if(y?.[P]===void 0&&!d.has(P)){const h=f.schemaEnv.baseId+f.errSchemaPath,g=`required property "${P}" is not defined at "${h}" (strictRequired)`;(0,n.checkStrictMode)(f,g,f.opts.strictRequired)}}function _(){var y;if(m||p)s.block$data(r.nil,b);else for(const d of c){const P=(y=(0,t.getSkipCondition)(s.parentSchema,d))!==null&&y!==void 0?y:(0,r._)`false`;a.if((0,r.not)(P),()=>(0,e.checkReportMissingProp)(s,d))}}function x(){const y=a.let("missing");if(m||p){const d=a.let("valid",!0);s.block$data(d,()=>w(y,d)),s.ok(d)}else a.if((0,e.checkMissingProp)(s,c,y)),(0,e.reportMissingProp)(s,y),a.else()}function b(){a.forOf("prop",i,y=>{s.setParams({missingProperty:y}),a.if((0,e.noPropertyInData)(a,l,y,$.ownProperties),()=>s.error())})}function w(y,d){s.setParams({missingProperty:y}),a.forOf(y,i,()=>{a.assign(d,(0,e.propertyInData)(a,l,y,$.ownProperties)),a.if((0,r.not)(d),()=>{s.error(),a.break()})},r.nil)}}};return oo.default=o,oo}var so={},Wl;function c0(){if(Wl)return so;Wl=1,Object.defineProperty(so,"__esModule",{value:!0});const e=_e(),t=ut(),r={keyword:"readOnly",schemaType:"boolean",error:{message:()=>(0,e.str)`must NOT be present in request context`},code(n){if(n.schema!==!0)return;const o=(0,e._)`(${t.default.this} && ${t.default.this}.apiContext)`;n.fail((0,e._)`${o} === "request"`)}};return so.default=r,so}var ao={},Hl;function l0(){if(Hl)return ao;Hl=1,Object.defineProperty(ao,"__esModule",{value:!0});const e=_e(),t=ut(),r={keyword:"writeOnly",schemaType:"boolean",error:{message:()=>(0,e.str)`must NOT be present in response context`},code(n){if(n.schema!==!0)return;const o=(0,e._)`(${t.default.this} && ${t.default.this}.apiContext)`;n.fail((0,e._)`${o} === "response"`)}};return ao.default=r,ao}var io={},Xl;function p0(){if(Xl)return io;Xl=1,Object.defineProperty(io,"__esModule",{value:!0});const e=_e(),t={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:n}){const o=r==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${n} items`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:n,data:o,schemaCode:s}=r,a=n==="maxItems"?e.operators.GT:e.operators.LT;r.fail$data((0,e._)`${o}.length ${a} ${s}`)}};return io.default=t,io}var co={},lo={},Ql;function Oa(){if(Ql)return lo;Ql=1,Object.defineProperty(lo,"__esModule",{value:!0});const e=vn();return e.code='require("ajv/dist/runtime/equal").default',lo.default=e,lo}var Zl;function u0(){if(Zl)return co;Zl=1,Object.defineProperty(co,"__esModule",{value:!0});const e=Vn(),t=_e(),r=Ae(),n=Oa(),o={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:s,j:a}})=>(0,t.str)`must NOT have duplicate items (items ## ${a} and ${s} are identical)`,params:({params:{i:s,j:a}})=>(0,t._)`{i: ${s}, j: ${a}}`},code(s){const{gen:a,data:c,$data:i,schema:l,parentSchema:p,schemaCode:f,it:$}=s;if(!i&&!l)return;const m=a.let("valid"),_=p.items?(0,e.getSchemaTypes)(p.items):[];s.block$data(m,x,(0,t._)`${f} === false`),s.ok(m);function x(){const d=a.let("i",(0,t._)`${c}.length`),P=a.let("j");s.setParams({i:d,j:P}),a.assign(m,!0),a.if((0,t._)`${d} > 1`,()=>(b()?w:y)(d,P))}function b(){return _.length>0&&!_.some(d=>d==="object"||d==="array")}function w(d,P){const h=a.name("item"),g=(0,e.checkDataTypes)(_,h,$.opts.strictNumbers,e.DataType.Wrong),E=a.const("indices",(0,t._)`{}`);a.for((0,t._)`;${d}--;`,()=>{a.let(h,(0,t._)`${c}[${d}]`),a.if(g,(0,t._)`continue`),_.length>1&&a.if((0,t._)`typeof ${h} == "string"`,(0,t._)`${h} += "_"`),a.if((0,t._)`typeof ${E}[${h}] == "number"`,()=>{a.assign(P,(0,t._)`${E}[${h}]`),s.error(),a.assign(m,!1).break()}).code((0,t._)`${E}[${h}] = ${d}`)})}function y(d,P){const h=(0,r.useFunc)(a,n.default),g=a.name("outer");a.label(g).for((0,t._)`;${d}--;`,()=>a.for((0,t._)`${P} = ${d}; ${P}--;`,()=>a.if((0,t._)`${h}(${c}[${d}], ${c}[${P}])`,()=>{s.error(),a.assign(m,!1).break(g)})))}}};return co.default=o,co}var po={},ep;function d0(){if(ep)return po;ep=1,Object.defineProperty(po,"__esModule",{value:!0});const e=_e(),t=Ae(),r=Oa(),n={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:o})=>(0,e._)`{allowedValue: ${o}}`},code(o){const{gen:s,data:a,$data:c,schemaCode:i,schema:l}=o;c||l&&typeof l=="object"?o.fail$data((0,e._)`!${(0,t.useFunc)(s,r.default)}(${a}, ${i})`):o.fail((0,e._)`${l} !== ${a}`)}};return po.default=n,po}var uo={},tp;function f0(){if(tp)return uo;tp=1,Object.defineProperty(uo,"__esModule",{value:!0});const e=_e(),t=Ae(),r=Oa(),n={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:o})=>(0,e._)`{allowedValues: ${o}}`},code(o){const{gen:s,data:a,$data:c,schema:i,schemaCode:l,it:p}=o;if(!c&&i.length===0)throw new Error("enum must have non-empty array");const f=i.length>=p.opts.loopEnum;let $;const m=()=>$??($=(0,t.useFunc)(s,r.default));let _;if(f||c)_=s.let("valid"),o.block$data(_,x);else{if(!Array.isArray(i))throw new Error("ajv implementation error");const w=s.const("vSchema",l);_=(0,e.or)(...i.map((y,d)=>b(w,d)))}o.pass(_);function x(){s.assign(_,!1),s.forOf("v",l,w=>s.if((0,e._)`${m()}(${a}, ${w})`,()=>s.assign(_,!0).break()))}function b(w,y){const d=i[y];return typeof d=="object"&&d!==null?(0,e._)`${m()}(${a}, ${w}[${y}])`:(0,e._)`${a} === ${d}`}}};return uo.default=n,uo}var rp;function np(){if(rp)return Xn;rp=1,Object.defineProperty(Xn,"__esModule",{value:!0});const e=t0(),t=r0(),r=o0(),n=s0(),o=a0(),s=i0(),a=c0(),c=l0(),i=p0(),l=u0(),p=d0(),f=f0(),$=[e.default,t.default,r.default,n.default,o.default,s.default,a.default,c.default,i.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},p.default,f.default];return Xn.default=$,Xn}var fo={},$r={},op;function sp(){if(op)return $r;op=1,Object.defineProperty($r,"__esModule",{value:!0}),$r.validateAdditionalItems=void 0;const e=_e(),t=Ae(),r={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:o}})=>(0,e.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,e._)`{limit: ${o}}`},code(o){const{parentSchema:s,it:a}=o,{items:c}=s;if(!Array.isArray(c)){(0,t.checkStrictMode)(a,'"additionalItems" is ignored when "items" is not an array of schemas');return}n(o,c)}};function n(o,s){const{gen:a,schema:c,data:i,keyword:l,it:p}=o;p.items=!0;const f=a.const("len",(0,e._)`${i}.length`);if(c===!1)o.setParams({len:s.length}),o.pass((0,e._)`${f} <= ${s.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(p,c)){const m=a.var("valid",(0,e._)`${f} <= ${s.length}`);a.if((0,e.not)(m),()=>$(m)),o.ok(m)}function $(m){a.forRange("i",s.length,f,_=>{o.subschema({keyword:l,dataProp:_,dataPropType:t.Type.Num},m),p.allErrors||a.if((0,e.not)(m),()=>a.break())})}}return $r.validateAdditionalItems=n,$r.default=r,$r}var mo={},Er={},ap;function ip(){if(ap)return Er;ap=1,Object.defineProperty(Er,"__esModule",{value:!0}),Er.validateTuple=void 0;const e=_e(),t=Ae(),r=_t(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(s){const{schema:a,it:c}=s;if(Array.isArray(a))return o(s,"additionalItems",a);c.items=!0,!(0,t.alwaysValidSchema)(c,a)&&s.ok((0,r.validateArray)(s))}};function o(s,a,c=s.schema){const{gen:i,parentSchema:l,data:p,keyword:f,it:$}=s;x(l),$.opts.unevaluated&&c.length&&$.items!==!0&&($.items=t.mergeEvaluated.items(i,c.length,$.items));const m=i.name("valid"),_=i.const("len",(0,e._)`${p}.length`);c.forEach((b,w)=>{(0,t.alwaysValidSchema)($,b)||(i.if((0,e._)`${_} > ${w}`,()=>s.subschema({keyword:f,schemaProp:w,dataProp:w},m)),s.ok(m))});function x(b){const{opts:w,errSchemaPath:y}=$,d=c.length,P=d===b.minItems&&(d===b.maxItems||b[a]===!1);if(w.strictTuples&&!P){const h=`"${f}" is ${d}-tuple, but minItems or maxItems/${a} are not specified or different at path "${y}"`;(0,t.checkStrictMode)($,h,w.strictTuples)}}}return Er.validateTuple=o,Er.default=n,Er}var cp;function m0(){if(cp)return mo;cp=1,Object.defineProperty(mo,"__esModule",{value:!0});const e=ip(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return mo.default=t,mo}var ho={},lp;function h0(){if(lp)return ho;lp=1,Object.defineProperty(ho,"__esModule",{value:!0});const e=_e(),t=Ae(),r=_t(),n=sp(),o={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,e.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,e._)`{limit: ${s}}`},code(s){const{schema:a,parentSchema:c,it:i}=s,{prefixItems:l}=c;i.items=!0,!(0,t.alwaysValidSchema)(i,a)&&(l?(0,n.validateAdditionalItems)(s,l):s.ok((0,r.validateArray)(s)))}};return ho.default=o,ho}var yo={},pp;function y0(){if(pp)return yo;pp=1,Object.defineProperty(yo,"__esModule",{value:!0});const e=_e(),t=Ae(),r={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:n,max:o}})=>o===void 0?(0,e.str)`must contain at least ${n} valid item(s)`:(0,e.str)`must contain at least ${n} and no more than ${o} valid item(s)`,params:({params:{min:n,max:o}})=>o===void 0?(0,e._)`{minContains: ${n}}`:(0,e._)`{minContains: ${n}, maxContains: ${o}}`},code(n){const{gen:o,schema:s,parentSchema:a,data:c,it:i}=n;let l,p;const{minContains:f,maxContains:$}=a;i.opts.next?(l=f===void 0?1:f,p=$):l=1;const m=o.const("len",(0,e._)`${c}.length`);if(n.setParams({min:l,max:p}),p===void 0&&l===0){(0,t.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(p!==void 0&&l>p){(0,t.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),n.fail();return}if((0,t.alwaysValidSchema)(i,s)){let y=(0,e._)`${m} >= ${l}`;p!==void 0&&(y=(0,e._)`${y} && ${m} <= ${p}`),n.pass(y);return}i.items=!0;const _=o.name("valid");p===void 0&&l===1?b(_,()=>o.if(_,()=>o.break())):l===0?(o.let(_,!0),p!==void 0&&o.if((0,e._)`${c}.length > 0`,x)):(o.let(_,!1),x()),n.result(_,()=>n.reset());function x(){const y=o.name("_valid"),d=o.let("count",0);b(y,()=>o.if(y,()=>w(d)))}function b(y,d){o.forRange("i",0,m,P=>{n.subschema({keyword:"contains",dataProp:P,dataPropType:t.Type.Num,compositeRule:!0},y),d()})}function w(y){o.code((0,e._)`${y}++`),p===void 0?o.if((0,e._)`${y} >= ${l}`,()=>o.assign(_,!0).break()):(o.if((0,e._)`${y} > ${p}`,()=>o.assign(_,!1).break()),l===1?o.assign(_,!0):o.if((0,e._)`${y} >= ${l}`,()=>o.assign(_,!0)))}}};return yo.default=r,yo}var up={},dp;function ja(){return dp||(dp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=_e(),r=Ae(),n=_t();e.error={message:({params:{property:i,depsCount:l,deps:p}})=>{const f=l===1?"property":"properties";return(0,t.str)`must have ${f} ${p} when property ${i} is present`},params:({params:{property:i,depsCount:l,deps:p,missingProperty:f}})=>(0,t._)`{property: ${i},
|
|
6
|
-
missingProperty: ${f},
|
|
7
|
-
depsCount: ${l},
|
|
8
|
-
deps: ${p}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(i){const[l,p]=s(i);a(i,l),c(i,p)}};function s({schema:i}){const l={},p={};for(const f in i){if(f==="__proto__")continue;const $=Array.isArray(i[f])?l:p;$[f]=i[f]}return[l,p]}function a(i,l=i.schema){const{gen:p,data:f,it:$}=i;if(Object.keys(l).length===0)return;const m=p.let("missing");for(const _ in l){const x=l[_];if(x.length===0)continue;const b=(0,n.propertyInData)(p,f,_,$.opts.ownProperties);i.setParams({property:_,depsCount:x.length,deps:x.join(", ")}),$.allErrors?p.if(b,()=>{for(const w of x)(0,n.checkReportMissingProp)(i,w)}):(p.if((0,t._)`${b} && (${(0,n.checkMissingProp)(i,x,m)})`),(0,n.reportMissingProp)(i,m),p.else())}}e.validatePropertyDeps=a;function c(i,l=i.schema){const{gen:p,data:f,keyword:$,it:m}=i,_=p.name("valid");for(const x in l)(0,r.alwaysValidSchema)(m,l[x])||(p.if((0,n.propertyInData)(p,f,x,m.opts.ownProperties),()=>{const b=i.subschema({keyword:$,schemaProp:x},_);i.mergeValidEvaluated(b,_)},()=>p.var(_,!0)),i.ok(_))}e.validateSchemaDeps=c,e.default=o})(up)),up}var go={},fp;function g0(){if(fp)return go;fp=1,Object.defineProperty(go,"__esModule",{value:!0});const e=_e(),t=Ae(),r={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:n})=>(0,e._)`{propertyName: ${n.propertyName}}`},code(n){const{gen:o,schema:s,data:a,it:c}=n;if((0,t.alwaysValidSchema)(c,s))return;const i=o.name("valid");o.forIn("key",a,l=>{n.setParams({propertyName:l}),n.subschema({keyword:"propertyNames",data:l,dataTypes:["string"],propertyName:l,compositeRule:!0},i),o.if((0,e.not)(i),()=>{n.error(!0),c.allErrors||o.break()})}),n.ok(i)}};return go.default=r,go}var vo={},mp;function hp(){if(mp)return vo;mp=1,Object.defineProperty(vo,"__esModule",{value:!0});const e=_t(),t=_e(),r=ut(),n=Ae(),o={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,t._)`{additionalProperty: ${s.additionalProperty}}`},code(s){const{gen:a,parentSchema:c,data:i,errsCount:l,it:p}=s,{schema:f=p.opts.defaultAdditionalProperties}=s;if(!l)throw new Error("ajv implementation error");const{allErrors:$,opts:m}=p;if(p.props=!0,m.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(p,f))return;const _=(0,e.allSchemaProperties)(c.properties),x=(0,e.allSchemaProperties)(c.patternProperties);b(),s.ok((0,t._)`${l} === ${r.default.errors}`);function b(){a.forIn("key",i,h=>{!_.length&&!x.length?d(h):a.if(w(h),()=>d(h))})}function w(h){let g;if(_.length>8){const E=(0,n.schemaRefOrVal)(p,c.properties,"properties");g=(0,e.isOwnProperty)(a,E,h)}else _.length?g=(0,t.or)(..._.map(E=>(0,t._)`${h} === ${E}`)):g=t.nil;return x.length&&(g=(0,t.or)(g,...x.map(E=>(0,t._)`${(0,e.usePattern)(s,E)}.test(${h})`))),(0,t.not)(g)}function y(h){a.code((0,t._)`delete ${i}[${h}]`)}function d(h){if(m.removeAdditional==="all"||m.removeAdditional&&f===!1){y(h);return}if(f===!1){s.setParams({additionalProperty:h}),s.error(),$||a.break();return}if(typeof f=="object"&&!(0,n.alwaysValidSchema)(p,f)){const g=a.name("valid");m.removeAdditional==="failing"?(P(h,g,!1),a.if((0,t.not)(g),()=>{s.reset(),y(h)})):(P(h,g),$||a.if((0,t.not)(g),()=>a.break()))}}function P(h,g,E){const O={keyword:"additionalProperties",dataProp:h,dataPropType:n.Type.Str};E===!1&&Object.assign(O,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(O,g)}}};return vo.default=o,vo}var bo={},yp;function v0(){if(yp)return bo;yp=1,Object.defineProperty(bo,"__esModule",{value:!0});const e=Kr(),t=_t(),r=Ae(),n=hp(),o={keyword:"properties",type:"object",schemaType:"object",code(s){const{gen:a,schema:c,parentSchema:i,data:l,it:p}=s;(p.opts.removeAdditional==="all"&&i.additionalProperties===void 0||p.opts.defaultAdditionalProperties===!1)&&n.default.code(new e.KeywordCxt(p,n.default,"additionalProperties"));const f=(0,t.allSchemaProperties)(c);for(const b of f)p.definedProperties.add(b);p.opts.unevaluated&&f.length&&p.props!==!0&&(p.props=r.mergeEvaluated.props(a,(0,r.toHash)(f),p.props));const $=f.filter(b=>!(0,r.alwaysValidSchema)(p,c[b]));if($.length===0)return;const m=a.name("valid");for(const b of $)_(b)?x(b):(a.if((0,t.propertyInData)(a,l,b,p.opts.ownProperties)),x(b),p.allErrors||a.else().var(m,!0),a.endIf()),s.it.definedProperties.add(b),s.ok(m);function _(b){return p.opts.useDefaults&&!p.compositeRule&&c[b].default!==void 0}function x(b){s.subschema({keyword:"properties",schemaProp:b,dataProp:b},m)}}};return bo.default=o,bo}var wo={},gp;function b0(){if(gp)return wo;gp=1,Object.defineProperty(wo,"__esModule",{value:!0});const e=_t(),t=_e(),r=Ae(),n=Ae(),o={keyword:"patternProperties",type:"object",schemaType:"object",code(s){const{gen:a,schema:c,data:i,parentSchema:l,it:p}=s,{opts:f}=p,$=(0,e.allSchemaProperties)(c),m=$.filter(P=>(0,r.alwaysValidSchema)(p,c[P]));if($.length===0||m.length===$.length&&(!p.opts.unevaluated||p.props===!0))return;const _=f.strictSchema&&!f.allowMatchingProperties&&l.properties,x=a.name("valid");p.props!==!0&&!(p.props instanceof t.Name)&&(p.props=(0,n.evaluatedPropsToName)(a,p.props));const{props:b}=p;w();function w(){for(const P of $)_&&y(P),p.allErrors?d(P):(a.var(x,!0),d(P),a.if(x))}function y(P){for(const h in _)new RegExp(P).test(h)&&(0,r.checkStrictMode)(p,`property ${h} matches pattern ${P} (use allowMatchingProperties)`)}function d(P){a.forIn("key",i,h=>{a.if((0,t._)`${(0,e.usePattern)(s,P)}.test(${h})`,()=>{const g=m.includes(P);g||s.subschema({keyword:"patternProperties",schemaProp:P,dataProp:h,dataPropType:n.Type.Str},x),p.opts.unevaluated&&b!==!0?a.assign((0,t._)`${b}[${h}]`,!0):!g&&!p.allErrors&&a.if((0,t.not)(x),()=>a.break())})})}}};return wo.default=o,wo}var $o={},vp;function w0(){if(vp)return $o;vp=1,Object.defineProperty($o,"__esModule",{value:!0});const e=Ae(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:o,it:s}=r;if((0,e.alwaysValidSchema)(s,o)){r.fail();return}const a=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),r.failResult(a,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return $o.default=t,$o}var Eo={},bp;function $0(){if(bp)return Eo;bp=1,Object.defineProperty(Eo,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:_t().validateUnion,error:{message:"must match a schema in anyOf"}};return Eo.default=e,Eo}var _o={},wp;function E0(){if(wp)return _o;wp=1,Object.defineProperty(_o,"__esModule",{value:!0});const e=_e(),t=Ae(),r={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:n})=>(0,e._)`{passingSchemas: ${n.passing}}`},code(n){const{gen:o,schema:s,parentSchema:a,it:c}=n;if(!Array.isArray(s))throw new Error("ajv implementation error");if(c.opts.discriminator&&a.discriminator)return;const i=s,l=o.let("valid",!1),p=o.let("passing",null),f=o.name("_valid");n.setParams({passing:p}),o.block($),n.result(l,()=>n.reset(),()=>n.error(!0));function $(){i.forEach((m,_)=>{let x;(0,t.alwaysValidSchema)(c,m)?o.var(f,!0):x=n.subschema({keyword:"oneOf",schemaProp:_,compositeRule:!0},f),_>0&&o.if((0,e._)`${f} && ${l}`).assign(l,!1).assign(p,(0,e._)`[${p}, ${_}]`).else(),o.if(f,()=>{o.assign(l,!0),o.assign(p,_),x&&n.mergeEvaluated(x,e.Name)})})}}};return _o.default=r,_o}var Po={},$p;function _0(){if($p)return Po;$p=1,Object.defineProperty(Po,"__esModule",{value:!0});const e=Ae(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:o,it:s}=r;if(!Array.isArray(o))throw new Error("ajv implementation error");const a=n.name("valid");o.forEach((c,i)=>{if((0,e.alwaysValidSchema)(s,c))return;const l=r.subschema({keyword:"allOf",schemaProp:i},a,!0);r.ok(a),r.mergeEvaluated(l)})}};return Po.default=t,Po}var xo={},Ep;function P0(){if(Ep)return xo;Ep=1,Object.defineProperty(xo,"__esModule",{value:!0});const e=_e(),t=Ae(),r={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:o})=>(0,e.str)`must match "${o.ifClause}" schema`,params:({params:o})=>(0,e._)`{failingKeyword: ${o.ifClause}}`},code(o){const{gen:s,parentSchema:a,it:c}=o;a.then===void 0&&a.else===void 0&&(0,t.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const i=n(c,"then"),l=n(c,"else");if(!i&&!l)return;const p=s.let("valid",!0),f=s.name("_valid");if($(),o.reset(),i&&l){const _=s.let("ifClause");o.setParams({ifClause:_}),s.if(f,m("then",_),m("else",_))}else i?s.if(f,m("then")):s.if((0,e.not)(f),m("else"));o.pass(p,()=>o.error(!0));function $(){const _=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);o.mergeEvaluated(_)}function m(_,x){return()=>{const b=o.subschema({keyword:_},f);s.assign(p,f),o.mergeValidEvaluated(b,p),x?s.assign(x,(0,e._)`${_}`):o.setParams({ifClause:_})}}}};function n(o,s){const a=o.schema[s];return a!==void 0&&!(0,t.alwaysValidSchema)(o,a)}return xo.default=r,xo}var So={},_p;function x0(){if(_p)return So;_p=1,Object.defineProperty(So,"__esModule",{value:!0});const e=Ae(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:o}){n.if===void 0&&(0,e.checkStrictMode)(o,`"${r}" without "if" is ignored`)}};return So.default=t,So}var Pp;function xp(){if(Pp)return fo;Pp=1,Object.defineProperty(fo,"__esModule",{value:!0});const e=sp(),t=m0(),r=ip(),n=h0(),o=y0(),s=ja(),a=g0(),c=hp(),i=v0(),l=b0(),p=w0(),f=$0(),$=E0(),m=_0(),_=P0(),x=x0();function b(w=!1){const y=[p.default,f.default,$.default,m.default,_.default,x.default,a.default,c.default,s.default,i.default,l.default];return w?y.push(t.default,n.default):y.push(e.default,r.default),y.push(o.default),y}return fo.default=b,fo}var Io={},_r={},Sp;function Ip(){if(Sp)return _r;Sp=1,Object.defineProperty(_r,"__esModule",{value:!0}),_r.dynamicAnchor=void 0;const e=_e(),t=ut(),r=Gn(),n=Hn(),o={keyword:"$dynamicAnchor",schemaType:"string",code:c=>s(c,c.schema)};function s(c,i){const{gen:l,it:p}=c;p.schemaEnv.root.dynamicAnchors[i]=!0;const f=(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(i)}`,$=p.errSchemaPath==="#"?p.validateName:a(c);l.if((0,e._)`!${f}`,()=>l.assign(f,$))}_r.dynamicAnchor=s;function a(c){const{schemaEnv:i,schema:l,self:p}=c.it,{root:f,baseId:$,localRefs:m,meta:_}=i.root,{schemaId:x}=p.opts,b=new r.SchemaEnv({schema:l,schemaId:x,root:f,baseId:$,localRefs:m,meta:_});return r.compileSchema.call(p,b),(0,n.getValidate)(c,b)}return _r.default=o,_r}var Pr={},Tp;function kp(){if(Tp)return Pr;Tp=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.dynamicRef=void 0;const e=_e(),t=ut(),r=Hn(),n={keyword:"$dynamicRef",schemaType:"string",code:s=>o(s,s.schema)};function o(s,a){const{gen:c,keyword:i,it:l}=s;if(a[0]!=="#")throw new Error(`"${i}" only supports hash fragment reference`);const p=a.slice(1);if(l.allErrors)f();else{const m=c.let("valid",!1);f(m),s.ok(m)}function f(m){if(l.schemaEnv.root.dynamicAnchors[p]){const _=c.let("_v",(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(p)}`);c.if(_,$(_,m),$(l.validateName,m))}else $(l.validateName,m)()}function $(m,_){return _?()=>c.block(()=>{(0,r.callRef)(s,m),c.let(_,!0)}):()=>(0,r.callRef)(s,m)}}return Pr.dynamicRef=o,Pr.default=n,Pr}var To={},Np;function S0(){if(Np)return To;Np=1,Object.defineProperty(To,"__esModule",{value:!0});const e=Ip(),t=Ae(),r={keyword:"$recursiveAnchor",schemaType:"boolean",code(n){n.schema?(0,e.dynamicAnchor)(n,""):(0,t.checkStrictMode)(n.it,"$recursiveAnchor: false is ignored")}};return To.default=r,To}var ko={},Op;function I0(){if(Op)return ko;Op=1,Object.defineProperty(ko,"__esModule",{value:!0});const e=kp(),t={keyword:"$recursiveRef",schemaType:"string",code:r=>(0,e.dynamicRef)(r,r.schema)};return ko.default=t,ko}var jp;function T0(){if(jp)return Io;jp=1,Object.defineProperty(Io,"__esModule",{value:!0});const e=Ip(),t=kp(),r=S0(),n=I0(),o=[e.default,t.default,r.default,n.default];return Io.default=o,Io}var No={},Oo={},Cp;function k0(){if(Cp)return Oo;Cp=1,Object.defineProperty(Oo,"__esModule",{value:!0});const e=ja(),t={keyword:"dependentRequired",type:"object",schemaType:"object",error:e.error,code:r=>(0,e.validatePropertyDeps)(r)};return Oo.default=t,Oo}var jo={},Ap;function N0(){if(Ap)return jo;Ap=1,Object.defineProperty(jo,"__esModule",{value:!0});const e=ja(),t={keyword:"dependentSchemas",type:"object",schemaType:"object",code:r=>(0,e.validateSchemaDeps)(r)};return jo.default=t,jo}var Co={},Rp;function O0(){if(Rp)return Co;Rp=1,Object.defineProperty(Co,"__esModule",{value:!0});const e=Ae(),t={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:r,parentSchema:n,it:o}){n.contains===void 0&&(0,e.checkStrictMode)(o,`"${r}" without "contains" is ignored`)}};return Co.default=t,Co}var Dp;function j0(){if(Dp)return No;Dp=1,Object.defineProperty(No,"__esModule",{value:!0});const e=k0(),t=N0(),r=O0(),n=[e.default,t.default,r.default];return No.default=n,No}var Ao={},Ro={},qp;function C0(){if(qp)return Ro;qp=1,Object.defineProperty(Ro,"__esModule",{value:!0});const e=_e(),t=Ae(),r=ut(),n={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have unevaluated properties",params:({params:o})=>(0,e._)`{unevaluatedProperty: ${o.unevaluatedProperty}}`},code(o){const{gen:s,schema:a=o.it.opts.defaultUnevaluatedProperties,data:c,errsCount:i,it:l}=o,p=o.schema===void 0&&o.it.opts.defaultUnevaluatedProperties===!1;if(!i)throw new Error("ajv implementation error");const{allErrors:f,props:$}=l;if($ instanceof e.Name)s.if((0,e._)`${$} !== true`,()=>s.forIn("key",c,b=>s.if(_($,b),()=>m(b))));else if($!==!0){const b=()=>s.forIn("key",c,w=>$===void 0?m(w):s.if(x($,w),()=>m(w)));p&&l.errorPath.emptyStr()&&!l.compositeRule?s.if((0,e._)`${r.default.isAllOfVariant} === 0`,b):(!l.compositeRule||o.schema!==void 0)&&b()}p||(l.props=!0),o.ok((0,e._)`${i} === ${r.default.errors}`);function m(b){if(a===!1){o.setParams({unevaluatedProperty:b}),o.error(),f||s.break();return}if(!(0,t.alwaysValidSchema)(l,a)){const w=s.name("valid");o.subschema({keyword:"unevaluatedProperties",dataProp:b,dataPropType:t.Type.Str},w),f||s.if((0,e.not)(w),()=>s.break())}}function _(b,w){return(0,e._)`!${b} || !${b}[${w}]`}function x(b,w){const y=[];for(const d in b)b[d]===!0&&y.push((0,e._)`${w} !== ${d}`);return(0,e.and)(...y)}}};return Ro.default=n,Ro}var Do={},Lp;function A0(){if(Lp)return Do;Lp=1,Object.defineProperty(Do,"__esModule",{value:!0});const e=_e(),t=Ae(),r={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:n}})=>(0,e.str)`must NOT have more than ${n} items`,params:({params:{len:n}})=>(0,e._)`{limit: ${n}}`},code(n){const{gen:o,schema:s,data:a,it:c}=n,i=c.items||0;if(i===!0)return;const l=o.const("len",(0,e._)`${a}.length`);if(s===!1)n.setParams({len:i}),n.fail((0,e._)`${l} > ${i}`);else if(typeof s=="object"&&!(0,t.alwaysValidSchema)(c,s)){const f=o.var("valid",(0,e._)`${l} <= ${i}`);o.if((0,e.not)(f),()=>p(f,i)),n.ok(f)}c.items=!0;function p(f,$){o.forRange("i",$,l,m=>{n.subschema({keyword:"unevaluatedItems",dataProp:m,dataPropType:t.Type.Num},f),c.allErrors||o.if((0,e.not)(f),()=>o.break())})}}};return Do.default=r,Do}var Mp;function Vp(){if(Mp)return Ao;Mp=1,Object.defineProperty(Ao,"__esModule",{value:!0});const e=C0(),t=A0(),r=[e.default,t.default];return Ao.default=r,Ao}var qo={},Lo={},Fp;function R0(){if(Fp)return Lo;Fp=1,Object.defineProperty(Lo,"__esModule",{value:!0});const e=_e(),t={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,e._)`{format: ${r}}`},code(r,n){const{gen:o,data:s,$data:a,schema:c,schemaCode:i,it:l}=r,{opts:p,errSchemaPath:f,schemaEnv:$,self:m}=l;if(!p.validateFormats)return;a?_():x();function _(){const b=o.scopeValue("formats",{ref:m.formats,code:p.code.formats}),w=o.const("fDef",(0,e._)`${b}[${i}]`),y=o.let("fType"),d=o.let("format");o.if((0,e._)`typeof ${w} == "object" && !(${w} instanceof RegExp)`,()=>o.assign(y,(0,e._)`${w}.type || "string"`).assign(d,(0,e._)`${w}.validate`),()=>o.assign(y,(0,e._)`"string"`).assign(d,w)),r.fail$data((0,e.or)(P(),h()));function P(){return p.strictSchema===!1?e.nil:(0,e._)`${i} && !${d}`}function h(){const g=$.$async?(0,e._)`(${w}.async ? await ${d}(${s}) : ${d}(${s}))`:(0,e._)`${d}(${s})`,E=(0,e._)`(typeof ${d} == "function" ? ${g} : ${d}.test(${s}))`;return(0,e._)`${d} && ${d} !== true && ${y} === ${n} && !${E}`}}function x(){const b=m.formats[c];if(!b){P();return}if(b===!0)return;const[w,y,d]=h(b);w===n&&r.pass(g());function P(){if(p.strictSchema===!1){m.logger.warn(E());return}throw new Error(E());function E(){return`unknown format "${c}" ignored in schema at path "${f}"`}}function h(E){const O=E instanceof RegExp?(0,e.regexpCode)(E):p.code.formats?(0,e._)`${p.code.formats}${(0,e.getProperty)(c)}`:void 0,C=o.scopeValue("formats",{key:c,ref:E,code:O});return typeof E=="object"&&!(E instanceof RegExp)?[E.type||"string",E.validate,(0,e._)`${C}.validate`]:["string",E,C]}function g(){if(typeof b=="object"&&!(b instanceof RegExp)&&b.async){if(!$.$async)throw new Error("async format in sync schema");return(0,e._)`await ${d}(${s})`}return typeof y=="function"?(0,e._)`${d}(${s})`:(0,e._)`${d}.test(${s})`}}}};return Lo.default=t,Lo}var zp;function Up(){if(zp)return qo;zp=1,Object.defineProperty(qo,"__esModule",{value:!0});const e=[R0().default];return qo.default=e,qo}var xr={},Bp;function D0(){return Bp||(Bp=1,Object.defineProperty(xr,"__esModule",{value:!0}),xr.contentVocabulary=xr.metadataVocabulary=void 0,xr.metadataVocabulary=["title","description","default","deprecated","examples"],xr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),xr}var Gp;function q0(){if(Gp)return Jn;Gp=1,Object.defineProperty(Jn,"__esModule",{value:!0});const e=e0(),t=np(),r=xp(),n=T0(),o=j0(),s=Vp(),a=Up(),c=D0(),i=[n.default,e.default,t.default,(0,r.default)(!0),a.default,c.metadataVocabulary,c.contentVocabulary,o.default,s.default];return Jn.default=i,Jn}var Mo={},Wr={},Kp;function L0(){if(Kp)return Wr;Kp=1,Object.defineProperty(Wr,"__esModule",{value:!0}),Wr.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Wr.DiscrError=e={})),Wr}var Jp;function Yp(){if(Jp)return Mo;Jp=1,Object.defineProperty(Mo,"__esModule",{value:!0});const e=_e(),t=L0(),r=Gn(),n=Jr(),o=Ae(),s={message:({params:{discrError:i,tagName:l}})=>i===t.DiscrError.Tag?`tag "${l}" must be string`:`value of tag "${l}" must be in oneOf or anyOf`,params:({params:{discrError:i,tag:l,tagName:p}})=>(0,e._)`{error: ${i}, tag: ${p}, tagValue: ${l}}`};function a(i,l){var p;if(!(!i.allOf||!Array.isArray(i.allOf))){for(const f of i.allOf)if(!((p=f?.properties)===null||p===void 0)&&p[l])return f.properties[l]}}const c={keyword:"discriminator",type:"object",schemaType:"object",error:s,code(i){const{gen:l,data:p,schema:f,parentSchema:$,it:m}=i,_=$.oneOf?"oneOf":$.anyOf?"anyOf":void 0;if(!m.opts.discriminator)throw new Error("discriminator: requires discriminator option");const x=f.propertyName;if(typeof x!="string")throw new Error("discriminator: requires propertyName");if(!_)throw new Error("discriminator: requires oneOf or anyOf composite keyword");const b=$[_],w=l.let("valid",!1),y=l.const("tag",(0,e._)`${p}${(0,e.getProperty)(x)}`);l.if((0,e._)`typeof ${y} == "string"`,()=>d(),()=>i.error(!1,{discrError:t.DiscrError.Tag,tag:y,tagName:x})),i.ok(w);function d(){const g=h();l.if(!1);for(const E in g)l.elseIf((0,e._)`${y} === ${E}`),l.assign(w,P(g[E]));l.else(),i.error(!1,{discrError:t.DiscrError.Mapping,tag:y,tagName:x}),l.endIf()}function P(g){const E=l.name("valid"),O=i.subschema({keyword:_,schemaProp:g},E);return i.mergeEvaluated(O,e.Name),E}function h(){var g;const E={},O=q($);let C=!0;for(let L=0;L<b.length;L++){let K=b[L];const le=K?.$ref;if(le&&f.mapping){const{mapping:xe}=f,ce=Object.keys(xe).filter(Ee=>xe[Ee]===K.$ref);if(ce.length){for(const Ee of ce)F(Ee,L);continue}}if(le&&!(0,o.schemaHasRulesButRef)(K,m.self.RULES)&&(K=r.resolveRef.call(m.self,m.schemaEnv.root,m.baseId,le),K instanceof r.SchemaEnv&&(K=K.schema),K===void 0))throw new n.default(m.opts.uriResolver,m.baseId,le);let ue=(g=K?.properties)===null||g===void 0?void 0:g[x];if(!ue&&K?.allOf&&(ue=a(K,x)),typeof ue!="object")throw new Error(`discriminator: ${_} subschemas (or referenced schemas) must have "properties/${x}" or match mapping`);C=C&&(O||q(K)),z(ue,L)}if(!C)throw new Error(`discriminator: "${x}" must be required`);return E;function q(L){if(Array.isArray(L.required)&&L.required.includes(x))return!0;if(L.allOf&&Array.isArray(L.allOf))for(const K of L.allOf){const le=K;if(Array.isArray(le.required)&&le.required.includes(x))return!0}return!1}function z(L,K){if(L.const)F(L.const,K);else if(L.enum)for(const le of L.enum)F(le,K);else throw new Error(`discriminator: "properties/${x}" must have "const" or "enum"`)}function F(L,K){if(typeof L!="string"||L in E)throw new Error(`discriminator: "${x}" values must be unique strings`);E[L]=K}}}};return Mo.default=c,Mo}var Vo={};const M0="https://json-schema.org/draft/2020-12/schema",V0="https://json-schema.org/draft/2020-12/schema",F0={"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},z0="meta",U0="Core and Validation specifications meta-schema",B0=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],G0=["object","boolean"],K0="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",J0={definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}},Y0={$schema:M0,$id:V0,$vocabulary:F0,$dynamicAnchor:z0,title:U0,allOf:B0,type:G0,$comment:K0,properties:J0},W0="https://json-schema.org/draft/2020-12/schema",H0="https://json-schema.org/draft/2020-12/meta/applicator",X0={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},Q0="meta",Z0="Applicator vocabulary meta-schema",eb=["object","boolean"],tb={prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},rb={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},nb={$schema:W0,$id:H0,$vocabulary:X0,$dynamicAnchor:Q0,title:Z0,type:eb,properties:tb,$defs:rb},ob="https://json-schema.org/draft/2020-12/schema",sb="https://json-schema.org/draft/2020-12/meta/unevaluated",ab={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},ib="meta",cb="Unevaluated applicator vocabulary meta-schema",lb=["object","boolean"],pb={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},ub={$schema:ob,$id:sb,$vocabulary:ab,$dynamicAnchor:ib,title:cb,type:lb,properties:pb},db="https://json-schema.org/draft/2020-12/schema",fb="https://json-schema.org/draft/2020-12/meta/content",mb={"https://json-schema.org/draft/2020-12/vocab/content":!0},hb="meta",yb="Content vocabulary meta-schema",gb=["object","boolean"],vb={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},bb={$schema:db,$id:fb,$vocabulary:mb,$dynamicAnchor:hb,title:yb,type:gb,properties:vb},wb="https://json-schema.org/draft/2020-12/schema",$b="https://json-schema.org/draft/2020-12/meta/core",Eb={"https://json-schema.org/draft/2020-12/vocab/core":!0},_b="meta",Pb="Core vocabulary meta-schema",xb=["object","boolean"],Sb={$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},Ib={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},Tb={$schema:wb,$id:$b,$vocabulary:Eb,$dynamicAnchor:_b,title:Pb,type:xb,properties:Sb,$defs:Ib},kb="https://json-schema.org/draft/2020-12/schema",Nb="https://json-schema.org/draft/2020-12/meta/format-annotation",Ob={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},jb="meta",Cb="Format vocabulary meta-schema for annotation results",Ab=["object","boolean"],Rb={format:{type:"string"}},Db={$schema:kb,$id:Nb,$vocabulary:Ob,$dynamicAnchor:jb,title:Cb,type:Ab,properties:Rb},qb="https://json-schema.org/draft/2020-12/schema",Lb="https://json-schema.org/draft/2020-12/meta/meta-data",Mb={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},Vb="meta",Fb="Meta-data vocabulary meta-schema",zb=["object","boolean"],Ub={title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}},Bb={$schema:qb,$id:Lb,$vocabulary:Mb,$dynamicAnchor:Vb,title:Fb,type:zb,properties:Ub},Gb="https://json-schema.org/draft/2020-12/schema",Kb="https://json-schema.org/draft/2020-12/meta/validation",Jb={"https://json-schema.org/draft/2020-12/vocab/validation":!0},Yb="meta",Wb="Validation vocabulary meta-schema",Hb=["object","boolean"],Xb={type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},Qb={nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},Zb={$schema:Gb,$id:Kb,$vocabulary:Jb,$dynamicAnchor:Yb,title:Wb,type:Hb,properties:Xb,$defs:Qb};var Wp;function ew(){if(Wp)return Vo;Wp=1,Object.defineProperty(Vo,"__esModule",{value:!0});const e=Y0,t=nb,r=ub,n=bb,o=Tb,s=Db,a=Bb,c=Zb,i=["/properties"];function l(p){return[e,t,r,n,o,f(this,s),a,f(this,c)].forEach($=>this.addMetaSchema($,void 0,!1)),this;function f($,m){return p?$.$dataMetaSchema(m,i):m}}return Vo.default=l,Vo}var Hp;function tw(){return Hp||(Hp=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv2020=void 0;const r=Ll(),n=q0(),o=Yp(),s=ew(),a="https://json-schema.org/draft/2020-12/schema";class c extends r.default{constructor(m={}){super({...m,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(m=>this.addVocabulary(m)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:m,meta:_}=this.opts;_&&(s.default.call(this,m),this.refs["http://json-schema.org/schema"]=a)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}t.Ajv2020=c,e.exports=t=c,e.exports.Ajv2020=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var i=Kr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return i.KeywordCxt}});var l=_e();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var p=Un();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return p.default}});var f=Jr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(Ia,Ia.exports)),Ia.exports}var rw=tw();const Ca=Mr(rw),nw=new Ca({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0});function Xp(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(o=>nw.validate(o,r));return n===-1&&(n=0),t[n]}}function Sr(e,t,r){if(!t||typeof t=="boolean")throw new Error(`Unexpected schema in ${e}.`);if(t instanceof Array)throw new Error(`Unexpected array schema in ${e}. Try using oneOf instead.`);if(t.type==="null")throw new Error(`Unexpected null schema type in ${e} schema.`);if(t.type instanceof Array)throw new Error(`Unexpected array schema type in ${e} schema. Try using oneOf instead.`);if(t.type==="string"||t.type==="number"||t.type==="integer"||t.type==="boolean"){const{default:n,format:o,...s}=t;return s}if(t.type==="object"&&!t.properties&&!t.oneOf){if(t.additionalProperties===void 0||t.additionalProperties===!0)return{type:"object"};if(t.additionalProperties===!1)return{type:"object",properties:{}}}if(t.allOf)throw new Error(`Unexpected allOf in ${e}.`);if(t.anyOf)throw new Error(`Unexpected anyOf in ${e}.`);if(Te(t.properties)||Te(t.additionalProperties)||Te(t.items)&&(Te(t.items.properties)||Te(t.items.additionalProperties)||t.items.oneOf))return ow(e,t,r);if(t.oneOf)if(t.discriminator){const n=t.discriminator?.propertyName;if(!n)throw new Error(`Unexpected discriminator without a propertyName in ${e}.`);const o={},s=t.oneOf.map((a,c)=>{if(typeof a=="boolean")throw new Error(`Unexpected boolean schema in ${e} at position ${c} in oneOf.`);const i=a?.properties?.[n];if(!i||typeof i=="boolean")throw new Error(`Unexpected property '${i}' schema in ${e} at position ${c} in oneOf.`);const l=i.const,p=Sr(l,a,r);return typeof p=="string"&&(o[l]=p),p});return(a,c)=>{if(Te(a)){const i=a[n];if(typeof i=="string"){const l=o[i];if(l&&r[l])return l}}return Xp(t.oneOf,s)(a,c)}}else{const n=t.oneOf.map((o,s)=>Sr(e+"_"+s,o,r));return Xp(t.oneOf,n)}return t}function ow(e,t,r){if(!t||typeof t=="boolean")throw new Error(`Unexpected schema in ${e}.`);if(t instanceof Array)throw new Error(`Unexpected array schema in ${e}. Try using oneOf instead.`);if(t.type==="null")throw new Error(`Unexpected null schema type in ${e} schema.`);if(t.type instanceof Array)throw new Error(`Unexpected array schema type in ${e} schema. Try using oneOf instead.`);const n=t.nodeTypeName??e,o={};for(const[i,l]of Object.entries(t.properties||{}))o[i]=Sr(n+"."+i,l,r);let s;Te(t.additionalProperties)&&(s=Sr(e+"_additionalProperties",t.additionalProperties,r)),t.additionalProperties===!0&&(s={});let a;Te(t.items)&&(Te(t.items.properties)||Te(t.items.additionalProperties)||t.items.oneOf)&&(a=Sr(e+"_items",t.items,r));let c=t.required;return t.oneOf&&t.oneOf.every(i=>!!i.required)&&(c=i=>{const l=t.oneOf.map(f=>[...t.required||[],...f.required]);let p=l.findIndex(f=>f.every($=>i[$]!==void 0));return p===-1&&(p=0),l[p]}),r[n]={properties:o,additionalProperties:s,items:a,required:c,description:t.description,documentationLink:t.documentationLink},n}function Qp(e,t){const r={},n=Sr(e,t,r);return{ctx:r,discriminatorResolver:typeof n=="function"?n:void 0}}const sw=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-enum-type-mismatch","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","spec-strict-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","request-mime-type","response-contains-property","response-mime-type","no-duplicated-tag-names"],aw=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-enum-type-mismatch","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","spec-strict-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","component-name-unique","no-empty-servers","no-example-value-and-externalValue","no-invalid-media-type-examples","no-server-example.com","no-server-trailing-slash","no-server-variables-empty-enum","no-undefined-server-variable","no-unused-components","no-mixed-number-range-constraints","operation-4xx-problem-details-rfc7807","request-mime-type","response-contains-property","response-mime-type","spec-components-invalid-map-name","array-parameter-serialization","no-duplicated-tag-names","nullable-type-sibling","spec-no-invalid-tag-parents","spec-no-invalid-encoding-combinations","spec-discriminator-defaultMapping","spec-example-values","spec-querystring-parameters"],iw=["info-contact","info-license-strict","operation-operationId","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-enum-type-mismatch","no-mixed-number-range-constraints","no-schema-type-mismatch"],cw=["info-contact","info-license-strict","operation-operationId","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-enum-type-mismatch","no-mixed-number-range-constraints","no-schema-type-mismatch"],lw=["sourceDescription-type","workflowId-unique","stepId-unique","sourceDescription-name-unique","sourceDescriptions-not-empty","spec-step-mutually-exclusive-fields","workflow-dependsOn","outputs-defined","parameters-unique","step-onSuccess-unique","step-onFailure-unique","requestBody-replacements-unique","no-criteria-xpath","criteria-unique","no-x-security-scheme-name-without-openapi","x-security-scheme-required-values","no-x-security-both-scheme-and-scheme-name","no-required-schema-properties-undefined","no-enum-type-mismatch","no-mixed-number-range-constraints","no-schema-type-mismatch","x-security-scheme-name-reference"],pw=["info-contact"],uw=["info-contact","info-license","no-unused-components","spec-no-duplicated-method-params","spec-no-required-params-after-optional"],dw=["no-unused-types","type-description"],fw=["struct","no-unresolved-refs"],mw=[...sw,...aw,...iw,...cw,...lw,...pw,...uw,...dw,...fw],hw=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","remove-unused-components"],yw=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","media-type-examples-override","remove-unused-components"],Zp=[...yw,...hw],eu={extends:{name:"Extends",properties:{},items:e=>typeof e=="string"&&!st(e)&&!Xi.extname(e)?{type:"string"}:{...Hr,directResolveAs:{name:"ConfigGovernance",...Hr}},description:"Use extends to inherit rules and their configurations from other rulesets.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/extends#extends"},plugins:{type:"array",items:{type:"string"}},rules:"Rules",oas2Rules:"Rules",oas3_0Rules:"Rules",oas3_1Rules:"Rules",oas3_2Rules:"Rules",async2Rules:"Rules",async3Rules:"Rules",arazzo1Rules:"Rules",arazzo1_1Rules:"Rules",overlay1Rules:"Rules",openrpc1Rules:"Rules",graphqlRules:"Rules",preprocessors:"Preprocessors",oas2Preprocessors:"Preprocessors",oas3_0Preprocessors:"Preprocessors",oas3_1Preprocessors:"Preprocessors",oas3_2Preprocessors:"Preprocessors",async2Preprocessors:"Preprocessors",async3Preprocessors:"Preprocessors",arazzo1Preprocessors:"Preprocessors",arazzo1_1Preprocessors:"Preprocessors",overlay1Preprocessors:"Preprocessors",openrpc1Preprocessors:"Preprocessors",decorators:"Decorators",oas2Decorators:"Decorators",oas3_0Decorators:"Decorators",oas3_1Decorators:"Decorators",oas3_2Decorators:"Decorators",async2Decorators:"Decorators",async3Decorators:"Decorators",arazzo1Decorators:"Decorators",arazzo1_1Decorators:"Decorators",overlay1Decorators:"Decorators",openrpc1Decorators:"Decorators"},Hr={properties:eu},gw=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...Hr.properties,apis:"ConfigApis",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),vw={properties:{},additionalProperties:"ConfigApisProperties",description:"The `apis` configuration section is used when a project contains multiple API descriptions to set up different rules and settings for individual APIs. It allows defining specific configurations for each API, which must be identified by a unique name.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/apis"},bw=e=>({...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...e["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,...Dh(Hr.properties,["plugins"])}}),ww={properties:{headers:{type:"array",items:{type:"string"}}}},$w={properties:{},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules",additionalProperties:(e,t)=>{if(t.startsWith("rule/"))return typeof e=="string"?{enum:["error","warn","off"]}:"ConfigurableRule";if(mw.includes(t))return typeof e=="string"?{enum:["error","warn","off"]}:"BuiltinRule";if(Sa(t))return typeof e=="string"?{enum:["error","warn","off"]}:"CustomRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},Ew={properties:{severity:{enum:["error","warn","off"]}},additionalProperties:{},required:["severity"],description:"Built-in rules are the default linting rules included with Redocly CLI. They enforce widely accepted API design standards and best practices. Each built-in rule has a default severity of error, but you can change the severity or turn off any built-in rule in your configuration file.",documentationLink:"https://redocly.com/docs/cli/rules/built-in-rules"},_w={properties:{severity:{enum:["error","warn","off"]}},additionalProperties:{},required:["severity"],description:"Custom rules are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-rules"},Pw={properties:{},description:"Decorators define transformations that can be applied to the API document during the bundle step.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/decorators",additionalProperties:(e,t)=>{if(Zp.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinDecorator";if(Sa(t))return typeof e=="string"?{type:"string"}:"CustomDecorator"}},xw={properties:{},additionalProperties:{},description:"Built-in decorators are the default decorators included with Redocly CLI.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},Sw={properties:{},additionalProperties:{},description:"Custom decorators are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},Iw={properties:{},description:"Preprocessors define transformations that can be applied to the API document before bundling.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/preprocessors",additionalProperties:(e,t)=>{if(Zp.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinPreprocessor";if(Sa(t))return typeof e=="string"?{type:"string"}:"CustomPreprocessor"}},Tw={properties:{},additionalProperties:{},description:"Built-in preprocessors are the default preprocessors included with Redocly CLI. The available options are the same for decorators and preprocessors.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},kw={properties:{},additionalProperties:{},description:"Custom preprocessors are defined by users via plugins. The available options are the same for decorators and preprocessors.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},Nw={properties:{properties:Ah("Schema")},additionalProperties:{}};function Ow(e){return{properties:{type:{enum:[...new Set(["any",...e,"SpecExtension"])],description:"REQUIRED. Locates the API node type that the lint command evaluates.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#subject-object"},property:t=>Array.isArray(t)?{type:"array",items:{type:"string"},description:"Property name corresponding to the API node type. If a list of properties is provided, assertions evaluate against each property in the sequence. If not provided (or null), assertions evaluate against the key names for the subject node type.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#property-example"}:t===null?null:{type:"string",description:"Property name corresponding to the API node type. If a list of properties is provided, assertions evaluate against each property in the sequence. If not provided (or null), assertions evaluate against the key names for the subject node type.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#property-example"},filterInParentKeys:{type:"array",items:{type:"string"},description:"The name of the subject's parent key that locates where assertions run. An example value given the subject Operation could be filterInParentKeys: [get, put] means that only GET and PUT operations are evaluated for the assertions.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyrequired-example"},filterOutParentKeys:{type:"array",items:{type:"string"},description:"The name of the subject's parent key that excludes where assertions run. An example value given the subject Operation could be filterOutParentKeys: [delete] means that all operations except DELETE operations are evaluated for the assertions."},matchParentKeys:{type:"string",description:"Applies a regex pattern to the subject's parent keys to determine where assertions run. An example value given the subject Operation could be matchParentKeys: /^p/ means that POST, PUT, and PATCH operations are evaluated for the assertions."}},required:["type"],description:"REQUIRED. Narrows the subject further by specifying its type, and optionally property, filterParentKeys, etc.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#subject-object"}}function jw(e){return{...e[at.ScorecardClassicLevel],properties:{...e[at.ScorecardClassicLevel]?.properties,...eu}}}const Cw={properties:{enum:{type:"array",items:{type:"string"},description:"Asserts a value is within a predefined list of values. Providing a single value in a list is an equality check.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#enum-example"},pattern:{type:"string",description:"Asserts a value matches a regex pattern.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#pattern-example"},notPattern:{type:"string",description:"Asserts a value doesn't match a regex pattern.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#notpattern-example"},casing:{enum:["camelCase","kebab-case","snake_case","PascalCase","MACRO_CASE","COBOL-CASE","flatcase"],description:"Asserts a casing style. Supported styles are: camelCase, kebab-case, snake_case, PascalCase, MACRO_CASE, COBOL-CASE, flatcase.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#casing-example"},mutuallyExclusive:{type:"array",items:{type:"string"},description:"Asserts that listed properties (key names only) are mutually exclusive.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyexclusive-example"},mutuallyRequired:{type:"array",items:{type:"string"},description:"Asserts that listed properties (key names only) are mutually required.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyrequired-example"},required:{type:"array",items:{type:"string"},description:"Asserts all listed values are defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#required-example"},requireAny:{type:"array",items:{type:"string"},description:"Asserts that at least one of the listed properties (key names only) is defined. ",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#requireany-example"},contains:{type:"array",items:{type:"string"},description:"Asserts that all listed strings are included in the value array.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#contains-example"},disallowed:{type:"array",items:{type:"string"},description:"Asserts all listed values are not defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#disallowed-example"},defined:{type:"boolean",description:"Asserts a property is defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#defined-example"},nonEmpty:{type:"boolean",description:"Asserts a property is not empty.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#nonempty-example"},minLength:{type:"integer",description:"Asserts a minimum length (inclusive) of a string or list (array).",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#minlength-example"},maxLength:{type:"integer",description:"Asserts a maximum length (inclusive) of a string or list (array).",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#maxlength-example"},ref:e=>typeof e=="string"?{type:"string",description:"Asserts a reference object presence in object's property. A boolean value of true means the property has a $ref defined. A boolean value of false means the property has not defined a $ref (it has an in-place value). A string value means that the $ref is defined and the unresolved value must match the pattern (for example, '/paths/.*.yaml$/').",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#ref-example"}:{type:"boolean",description:"Asserts a reference object presence in object's property. A boolean value of true means the property has a $ref defined. A boolean value of false means the property has not defined a $ref (it has an in-place value). A string value means that the $ref is defined and the unresolved value must match the pattern (for example, '/paths/.*.yaml$/').",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#ref-example"},const:e=>{if(typeof e=="string")return{type:"string",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"};if(typeof e=="number")return{type:"number",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"};if(typeof e=="boolean")return{type:"boolean",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"}}},additionalProperties:(e,t)=>{if(/^\w+\/\w+$/.test(t))return{}},description:"A minimum of one assertion property is required to be defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#assertion-object"},Aw={properties:{subject:"Subject",assertions:"Assertions"},required:["subject","assertions"],description:"The where object is part of a where list which must be defined in order from the root node. Each node can only be used in one where object for each assertion. Each subsequent node must be a descendant of the previous one. Rules that use multiple where objects must target each one on a different node. However, the same node could be used in the last where object and in the root subject object. Nodes may be skipped in between the subject node types of the where list and those defined in the root subject type.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#where-object"},Rw={properties:{subject:"Subject",assertions:"Assertions",where:Rh("Where"),message:{type:"string"},suggest:{type:"array",items:{type:"string"}},reference:{type:"string"},severity:{enum:["error","warn","off"]}},required:["subject","assertions"],description:"Configurable rule definitions enforce your custom API design standards. Add or edit your configurable rules in the configuration file. A configurable rule is a rule that starts with a rule/ prefix followed by a unique rule name. Rule names display in the lint log if the assertions fail. More than one configurable rule may be defined, and any configurable rule may have multiple assertions.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#configurable-rule-object"};function Aa(e,t){const r=Ch.flatMap(o=>{const s=bn(o),a=t?t.extendTypes(s,o):s;return Object.keys(a)}),{ctx:n}=Qp("rootRedoclyConfigSchema",e);return{...Dw,ConfigRoot:gw(n),ConfigApisProperties:bw(n),Subject:Ow([...r,...Mv]),...n,[at.ScorecardClassicLevel]:jw(n)}}const Dw={ConfigurableRule:Rw,ConfigApis:vw,ConfigGovernance:Hr,ConfigHTTP:ww,Where:Aw,BuiltinRule:Ew,CustomRule:_w,BuiltinDecorator:xw,CustomDecorator:Sw,BuiltinPreprocessor:Tw,CustomPreprocessor:kw,Schema:Nw,Rules:$w,Decorators:Pw,Preprocessors:Iw,Assertions:Cw},{theme:ES,...qw}=Dn.properties,Lw={...Dn,properties:qw},tu=Aa(Lw),Fo=fa(tu),Mw={},Vw={},Fw={};function ru(e){return Array.isArray(e)&&e.length===0}function nu(e,t,r){const{parent:n,key:o}=t;let s=!1;if(Array.isArray(e))for(let a=0;a<e.length;a++){if(pt(e[a])){const c=t.resolve(e[a]);r(c.node)&&(e.splice(a,1),s=!0,a--)}r(e[a])&&(e.splice(a,1),s=!0,a--)}else if(Te(e))for(const a of Object.keys(e)){if(pt(e[a])){const c=t.resolve(e[a]);r(c.node)&&(delete e[a],s=!0)}r(e[a])&&(delete e[a],s=!0)}s&&(Qi(e)||ru(e))&&delete n[o]}function Ir(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=ou(t),e=ou(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function ou(e){return Array.isArray(e)?e:[e]}const zw="any",su=({property:e,value:t,matchStrategy:r,applyTo:n})=>{const o=r||zw;if(n!==void 0){if(n==="Operation"){const a=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(c,i){for(const l of a){const p=pt(c[l])?i.resolve(c[l]).node:c[l];if(Te(p)){const f=p[e];Ir(f,t,o)||delete c[l]}}a.some(l=>c[l])||c.additionalOperations||delete i.parent[i.key]}}}}if(n==="PathItem")return{PathItem:{enter(a,c){const i=a[e];Ir(i,t,o)||delete c.parent[c.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}const s=a=>a?.[e]&&!Ir(a?.[e],t,o);return{any:{enter:(a,c)=>{nu(a,c,s)}}}},Uw="any",au=({property:e,value:t,matchStrategy:r,applyTo:n})=>{const o=r||Uw;if(n!==void 0){if(n==="Operation"){const a=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(c,i){for(const l of a){const p=pt(c[l])?i.resolve(c[l]).node:c[l];if(Te(p)){const f=p[e];Ir(f,t,o)&&delete c[l]}}a.some(l=>c[l])||c.additionalOperations||delete i.parent[i.key]}}}}if(n==="PathItem")return{PathItem:{enter(a,c){const i=a[e];Ir(i,t,o)&&delete c.parent[c.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}const s=a=>Ir(a?.[e],t,o);return{any:{enter:(a,c)=>{nu(a,c,s)}}}};function iu(e){const t=(void 0)(e,"utf-8");return qh(t)}function Xr(e,t){return st(e)||t===void 0?e:Xe.resolve(Xe.dirname(t),e)}function Ra(e){return(void 0)(e,"utf-8")}const cu=({filePath:e})=>({Info:{leave(t,{report:r,location:n,config:o}){if(!e)throw new Error('Parameter "filePath" is not provided for "info-description-override" rule');try{t.description=Ra(Xr(e,o?.configPath))}catch(s){r({message:`Failed to read markdown override file for "info.description".
|
|
9
|
-
${s.message}`,location:n.child("description")})}}}}),lu=e=>({Info:{leave(t){if(!Te(e))throw new Error('"info-override" decorator should be called with an object');const{severity:r,...n}=e;Object.assign(t,n)}}}),pu=({operationIds:e})=>({Operation:{leave(t,{report:r,location:n,config:o}){if(!t.operationId)return;if(!e)throw new Error('Parameter "operationIds" is not provided for "operation-description-override" rule');const s=t.operationId;if(e[s])try{const a=e[s];t.description=Ra(Xr(a,o?.configPath))}catch(a){r({message:`Failed to read markdown override file for operation "${s}".
|
|
10
|
-
${a.message}`,location:n.child("operationId").key()})}}}}),Bw="x-internal",uu=({internalFlagProperty:e=Bw})=>{function t(n,o,s){const{parent:a,key:c}=o;let i=!1;if(Array.isArray(n))for(let l=0;l<n.length;l++){if(pt(n[l])&&o.resolve(n[l]).node?.[e]){if(Te(a.discriminator?.mapping))for(const p in a.discriminator.mapping)s?.[p]===n[l].$ref&&delete a.discriminator.mapping[p];n.splice(l,1),i=!0,l--}n[l]?.[e]&&(n.splice(l,1),i=!0,l--)}else if(Te(n))for(const l of Object.keys(n)){if(pt(n[l])){const p=o.resolve(n[l]);Te(p.node)&&p.node?.[e]&&(delete n[l],i=!0)}Te(n[l])&&n[l]?.[e]&&(delete n[l],i=!0)}i&&(Qi(n)||ru(n))&&delete a[c]}let r={};return{DiscriminatorMapping:{enter:n=>{r=JSON.parse(JSON.stringify(n))}},any:{enter:(n,o)=>{t(n,o,r)}}}},du=({tagNames:e})=>({Tag:{leave(t,{report:r,config:n}){if(!e)throw new Error('Parameter "tagNames" is not provided for "tag-description-override" rule');const o=e[t.name];if(o)try{t.description=Ra(Xr(o,n?.configPath))}catch(s){r({message:`Failed to read markdown override file for tag "${t.name}".
|
|
11
|
-
${s.message}`})}}}}),Gw={"operation-description-override":pu,"tag-description-override":du,"info-description-override":cu,"info-override":lu,"remove-x-internal":uu,"filter-in":su,"filter-out":au,"remove-unused-components":Lh},Kw=({operationIds:e})=>({Operation:{enter(t,r){const n=t.operationId;if(!n)return;const o=e[n];if(o){if(o.responses&&t.responses)for(const s of Object.keys(o.responses)){const a=fu(t.responses[s],r.resolve);a&&(a.content=a.content?a.content:{},Object.keys(o.responses[s]).forEach(c=>{const i=o.responses[s][c];a.content[c]={...a.content[c],examples:iu(Xr(i,r.config?.configPath))}}),t.responses[s]=a)}if(o.request&&t.requestBody){const s=fu(t.requestBody,r.resolve);if(!s)return;s.content=s.content?s.content:{},Object.keys(o.request).forEach(a=>{const c=o.request[a];s.content[a]={...s.content[a],examples:iu(Xr(c,r.config?.configPath))}}),t.requestBody=s}}}}});function fu(e,t){if(!pt(e))return e;const r=t(e);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}const Jw={"operation-description-override":pu,"tag-description-override":du,"info-description-override":cu,"info-override":lu,"remove-x-internal":uu,"filter-in":su,"filter-out":au,"media-type-examples-override":Kw,"remove-unused-components":Mh},Yw={},Ww={},Hw=()=>({SourceDescriptions:{enter(e,{report:t,location:r,specVersion:n}){if(!e.length)return;const o=n==="arazzo1"?["openapi","arazzo"]:["openapi","arazzo","asyncapi"];for(const s of e)o.includes(s?.type)||t({message:`The \`type\` property of the \`sourceDescription\` object must be either ${o.map(a=>`\`${a}\``).join(" or ")}.`,location:r.child([e.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/sourcedescription-type"})}}});function Xw(e){return e}const Da=void 0,Re=new Proxy(Vh,{get(e,t){return Xw}});class Qw{info(t){return console.info(t)}warn(t){return console.warn(t)}error(t){return console.error(t)}output(t){return console.log(t)}printNewLine(){console.log(`
|
|
12
|
-
`)}printSeparator(t){const r=null.columns||80,n=t.repeat(Math.ceil(r/t.length)).slice(0,r);return console.log(n)}indent(t,r){return t.split(`
|
|
13
|
-
`).map(n=>" ".repeat(r)+n).join(`
|
|
14
|
-
`)}}const Oe=new Qw,qa={problems:"{{problems}}",assertionName:"{{assertionName}}",nodeType:"{{nodeType}}",key:"{{key}}",property:"{{property}}",file:"{{file}}",pointer:"{{pointer}}"};function mu(e){const{filterInParentKeys:t,filterOutParentKeys:r,matchParentKeys:n}=e,o=n&&Fh(n),s=o&&(i=>o.test(i.toString())),a=Array.isArray(t)&&(i=>t.includes(i.toString())),c=Array.isArray(r)&&(i=>!r.includes(i.toString()));return[s,a,c].filter(wn)}function hu(e){const t=ga(vr).filter(o=>e.assertions[o]!==void 0).map(o=>({name:o,conditions:e.assertions[o],runsOnKeys:ec.has(o),runsOnValues:Zi.has(o)})),r=t.find(o=>o.runsOnKeys&&!o.runsOnValues),n=t.find(o=>o.runsOnValues&&!o.runsOnKeys);if(n&&!e.subject.property)throw new Error(`The '${n.name}' assertion can't be used on all keys. Please provide a single property.`);if(r&&e.subject.property)throw new Error(`The '${r.name}' assertion can't be used on properties. Please remove the 'property' key.`);return t}function yu({subject:e}){return(Array.isArray(e.property)?e.property:[e?.property]).filter(Boolean)}function gu(e,t,r){const n=yu(e),o=[];for(const s of t)if(n.length)for(const a of n)o.push($u({assert:s,ctx:r,assertionProperty:a}));else o.push($u({assert:s,ctx:r}));return o.flat()}function Zw(e,t){const r=mu(e.subject),n=r.length?(i,l)=>!r.every(p=>p(l)):void 0,o={[e.subject.type]:{enter:t,...n&&{skip:n}}};if(!Array.isArray(e.where))return o;let s={};const a=s,c=e.where;for(let i=0;i<c.length;i++){const l=c[i];if(!Xt(l.subject?.type))throw new Error(`${e.assertionId} -> where -> [${i}]: 'type' (String) is required`);const p=mu(l.subject),f=hu(l),$=(_,x,b)=>!p.every(w=>w(x))||!!gu(l,f,{...b,node:_}).length,m={...(p.length||f.length)&&{skip:$}};l.subject.type===e.subject.type&&i===c.length-1?o[e.subject.type]={enter:t,...m.skip&&{skip:m.skip}||n&&{skip:(_,x,b)=>!!(m.skip?.(_,x,b)||n?.(_,x))}}:s=s[l.subject?.type]=m}return s[e.subject.type]=o[e.subject.type],a}function e$(e,t){return(r,n)=>{const o=yu(t),s=`${Re.blue(e)} failed because the ${Re.blue(t.subject.type)} ${Re.blue(o.join(", "))} didn't meet the assertions: ${qa.problems}`.replace(/ +/g," "),a=gu(t,hu(t),{...n,node:r});if(a.length)for(const c of t$(a)){const i=t.message||s,l={problems:vu(c),assertionName:e,nodeType:t.subject.type,property:o.join(", "),key:String(n.key),pointer:n.location.pointer,file:bu(n.location.source.absoluteRef)};n.report({message:wu(i,l),location:r$(c)||n.location,forceSeverity:t.severity||"error",suggest:t.suggest||[],...t.reference&&{reference:t.reference},ruleId:e})}}}function t$(e){const t={};for(const r of e){if(!r.location)continue;const n=r.location.pointer;t[n]=t[n]||[],t[n].push(r)}return Object.values(t)}function r$(e){return e.length?e[0].location:void 0}function vu(e){return e.length===1?e[0].message??"":e.map(t=>`
|
|
15
|
-
- ${t.message??""}`).join("")}function bu(e){return st(e)?e.split("/").at(-1)||e:e.split(/[/\\]/).at(-1)||e}function wu(e,t){let r=e;for(const n of Object.keys(qa)){const o=qa[n],s=t[n];o&&(r=r.split(o).join(s))}return r}function $u({assert:e,ctx:t,assertionProperty:r}){const n=e.name==="ref"?t.rawLocation:t.location;if(r){const o=pt(t.node[r])?t.resolve(t.node[r])?.node:t.node[r],s=t.rawNode[r],a=n.child(r);return vr[e.name](o,e.conditions,{...t,baseLocation:a,rawValue:s})}else{const o=Array.isArray(t.node)?t.node:Object.keys(t.node);return vr[e.name](o,e.conditions,{...t,rawValue:t.rawNode,baseLocation:n})}}const rr=e=>{const t=[],r=Object.values(e).filter(n=>Te(n));for(const[n,o]of r.entries()){if(!Xt(o.subject.type))throw new Error(`${o.assertionId}: 'type' (String) is required`);const s=e$(o.assertionId,o),a=Zw(o,s);t.push(a)}return t};var Eu,_u;function n$(){return _u||(_u=1,Eu=(function(){function e(t,r,n,o,s){return t<r||n<r?t>n?n+1:t+1:o===s?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var o=t.length,s=r.length;o>0&&t.charCodeAt(o-1)===r.charCodeAt(s-1);)o--,s--;for(var a=0;a<o&&t.charCodeAt(a)===r.charCodeAt(a);)a++;if(o-=a,s-=a,o===0||s<3)return s;var c=0,i,l,p,f,$,m,_,x,b,w,y,d,P=[];for(i=0;i<o;i++)P.push(i+1),P.push(t.charCodeAt(a+i));for(var h=P.length-1;c<s-3;)for(b=r.charCodeAt(a+(l=c)),w=r.charCodeAt(a+(p=c+1)),y=r.charCodeAt(a+(f=c+2)),d=r.charCodeAt(a+($=c+3)),m=c+=4,i=0;i<h;i+=2)_=P[i],x=P[i+1],l=e(_,l,p,b,x),p=e(l,p,f,w,x),f=e(p,f,$,y,x),m=e(f,$,m,d,x),P[i]=m,$=f,f=p,p=l,l=_;for(;c<s;)for(b=r.charCodeAt(a+(l=c)),m=++c,i=0;i<h;i+=2)_=P[i],P[i]=m=e(_,l,m,b,P[i+1]),l=_;return m}})()),Eu}var o$=n$();const s$=Mr(o$),La=(e,t,r)=>{if(pt(e)){const n=t.resolve(e,r);return n?{schema:n.node,location:n.location?.source.absoluteRef}:{schema:void 0,location:r}}return{schema:e,location:r}};function zo(e){return Array.isArray(e)?"array":e===null?"null":Number.isInteger(e)?"integer":typeof e}function Uo(e,t,r){if(r&&e===null)return!0;switch(t){case"array":return Array.isArray(e);case"object":return Te(e);case"null":return e===null;case"integer":return Number.isInteger(e);default:return typeof e===t}}function Ma(e,t){return`${e} object should contain \`${t}\` field.`}function a$(e,t){return`${e} object should contain one of the fields: ${t.map(r=>`\`${r}\``).join(", ")}.`}function Pu(e,t){return`${e} object \`${t}\` must be non-empty string.`}function nr({fieldName:e,value:t,ctx:r,reference:n}){Te(t)&&(t[e]===void 0?r.report({message:Ma(r.type.name,e),location:r.location.child([e]).key(),reference:n}):t[e]||r.report({message:Pu(r.type.name,e),location:r.location.child([e]).key(),reference:n}))}function i$({fieldNames:e,value:t,ctx:r,reference:n}){if(Te(t)){e.some(o=>t.hasOwnProperty(o))||r.report({message:a$(r.type.name,e),location:r.location.key(),reference:n});for(const o of e)t.hasOwnProperty(o)&&!t[o]&&r.report({message:Pu(r.type.name,o),location:r.location.child([o]).key(),reference:n})}}function xu(e,t){if(e===null)return t;if(typeof e!="string"||!t.length)return[];const r=[];for(let n=0;n<t.length;n++){const o=s$(e,t[n]);o<4&&r.push({distance:o,variant:t[n]})}return r.sort((n,o)=>n.distance-o.distance),r.map(n=>n.variant)}function Su(e){if(Te(e)){if(Qt(e.dataValue))return{value:e.dataValue,field:"dataValue"};if(Qt(e.value))return{value:e.value,field:"value"}}}function Qr({example:e,schema:t,options:r,reference:n}){const{location:o,ctx:s,validator:a,allowAdditionalProperties:c,ajvContext:i}=r,{resolve:l,location:p,report:f,specVersion:$}=s;try{const{valid:m,errors:_}=a.validate(e,t,{schemaLoc:p.child("schema"),instancePath:o.pointer,resolve:l,allowAdditionalProperties:c,ajvContext:i,specVersion:$});if(!m)for(const x of _)f({message:`Example value must conform to the schema: ${x.message}.`,location:{...new ma(o.source,x.instancePath),reportOnKey:x.keyword==="unevaluatedProperties"||x.keyword==="additionalProperties"},from:p,suggest:x.suggest,reference:n})}catch(m){if(m.message==="discriminator: requires oneOf or anyOf composite keyword")return;f({message:`Example validation errored: ${m.message}.`,location:p.child("schema"),from:p,reference:n})}}const c$=10;function Iu(e,t,r,n,{report:o,location:s},a){if(e&&!e.includes(t)){const c=e.length>c$?`\`${r}\` "${t}" is not a valid value.${a?` See the supported values: ${a}.`:""}`:`\`${r}\` can be one of the following only: ${e.map(i=>`"${i}"`).join(", ")}.`;o({location:s,message:c,from:n,suggest:xu(t,e)})}}function Bo({responseCodes:e,codeRange:t,report:r,reference:n}){const o=new RegExp(`^${t[0]}[0-9Xx]{2}$`);e.some(s=>t==="2XX"&&s==="default"||o.test(s))||r({message:`Operation must have at least one \`${t}\` response.`,location:{reportOnKey:!0},reference:n})}function Va(e,t){return t?e.name.toLowerCase():e.name}const Zr=()=>({Schema(e,{report:t,location:r}){if(!(e.enum&&!Array.isArray(e.enum))){if(e.enum&&e.type&&!Array.isArray(e.type)){const n=e.enum.filter(o=>!Uo(o,e.type,e.nullable));for(const o of n)t({message:`All values of \`enum\` field must be of the same type as the \`type\` field: expected "${e.type}" but received "${zo(o)}".`,location:r.child(["enum",e.enum.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}if(e.enum&&e.type&&Array.isArray(e.type)){const n={};for(const o of e.enum){n[o]=[];for(const s of e.type)Uo(o,s,e.nullable)||n[o].push(s);n[o].length!==e.type.length&&delete n[o]}for(const o of Object.keys(n))t({message:`Enum value \`${o}\` must be of allowed types: \`${e.type}\`.`,location:r.child(["enum",e.enum.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}}}}),Go=()=>({Schema(e,{report:t,location:r}){typeof e.maximum=="number"&&typeof e.exclusiveMaximum=="number"&&t({message:"Schema should not have both `maximum` and `exclusiveMaximum`. Use one or the other.",location:r.child(["exclusiveMaximum"]).key(),reference:"https://redocly.com/docs/cli/rules/common/no-mixed-number-range-constraints"}),typeof e.minimum=="number"&&typeof e.exclusiveMinimum=="number"&&t({message:"Schema should not have both `minimum` and `exclusiveMinimum`. Use one or the other.",location:r.child(["exclusiveMinimum"]).key(),reference:"https://redocly.com/docs/cli/rules/common/no-mixed-number-range-constraints"})}}),en=()=>{const e=[];return{Schema:{leave(t){e.pop()},enter(t,r){if(e.push(t),!t.required)return;const n=(c,i,l,p)=>{const{schema:f,location:$}=La(c,r,p);return!f||l.has(f)?!1:(l.add(f),!!(f.properties&&Vr(f.properties,i)!==void 0||f.allOf?.some(m=>n(m,i,l,$))||ya(f.anyOf)&&f.anyOf.every(m=>n(m,i,new Set(l),$))||ya(f.oneOf)&&f.oneOf.every(m=>n(m,i,new Set(l),$))))},o=(c,i)=>{const l=p=>La(p,r).schema===i;return!!(c.allOf?.some(l)||c.anyOf?.some(l)||c.oneOf?.some(l))},s=(c,i)=>{if(c<0)return;const l=e[c];return o(l,i)?s(c-1,l)??l:void 0},a=s(e.length-2,t);for(const[c,i]of t.required.entries())!n(t,i,new Set)&&!n(a,i,new Set)&&r.report({message:`Required property '${i}' is not defined.`,location:r.location.child(["required",c]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})}}}},tn=()=>({Schema(e,{report:t,location:r}){e.type==="object"&&e.items&&t({message:"Schema type mismatch: 'object' type should not contain 'items' field.",location:r.child("items"),reference:"https://redocly.com/docs/cli/rules/common/no-schema-type-mismatch"}),e.type==="array"&&e.properties&&t({message:"Schema type mismatch: 'array' type should not contain 'properties' field.",location:r.child("properties"),reference:"https://redocly.com/docs/cli/rules/common/no-schema-type-mismatch"})}}),Bt=()=>({any(e,{report:t,type:r,location:n,rawLocation:o,key:s,resolve:a,ignoreNextVisitorsOnNode:c}){const i=zo(e),l=o!==n?o:void 0;if(r.items){i!=="array"&&(t({message:`Expected type \`${r.name}\` (array) but got \`${i}\``,from:l}),c());return}else if(i!=="object"){r!==zh&&t({message:`Expected type \`${r.name}\` (object) but got \`${i}\``,from:l}),c();return}const p=typeof r.required=="function"?r.required(e,s):r.required;for(const m of p||[])e.hasOwnProperty(m)||t({message:`The field \`${m}\` must be present on this level.`,from:l,location:[{reportOnKey:!0}]});const f=r.allowed?.(e);if(f&&Te(e))for(const m in e)f.includes(m)||r.extensionsPrefix&&m.startsWith(r.extensionsPrefix)||!Object.keys(r.properties).includes(m)||t({message:`The field \`${m}\` is not allowed here.`,from:l,location:n.child([m]).key()});const $=r.requiredOneOf||null;if($){let m=!1;for(const _ of $||[])e.hasOwnProperty(_)&&(m=!0);m||t({message:`Must contain at least one of the following fields: ${r.requiredOneOf?.join(", ")}.`,from:l,location:[{reportOnKey:!0}]})}for(const m of Object.keys(e)){const _=n.child([m]);let x=e[m],b=Vr(r.properties,m);if(b===void 0&&(b=r.additionalProperties),typeof b=="function"&&(b=b(x,m)),Uh(b))continue;const w=b,y=zo(x);if(w===void 0){if(m.startsWith("x-"))continue;t({message:`Property \`${m}\` is not expected here.`,suggest:xu(m,Object.keys(r.properties)),from:l,location:_.key()});continue}if(w!==null){if(w.resolvable!==!1&&pt(x)&&(x=a(x).node),w.items&&w.items?.enum&&Array.isArray(x))for(let d=0;d<x.length;d++)Iu(w.items?.enum,x[d],m,l,{report:t,location:n.child([m,d])},w.items?.documentationLink);if(w.enum)Iu(w.enum,x,m,l,{report:t,location:n.child([m])},w.documentationLink);else if(w.type&&!Uo(x,w.type,!1))t({message:`Expected type \`${w.type}\` but got \`${y}\`.`,from:l,location:_}),c();else if(y==="array"&&w.items?.type){const d=w.items?.type;for(let P=0;P<x.length;P++){const h=x[P];Uo(h,d,!1)||t({message:`Expected type \`${d}\` but got \`${zo(h)}\`.`,from:l,location:_.child([P])})}}typeof w.minimum=="number"&&w.minimum>e[m]&&t({message:`The value of the ${m} field must be greater than or equal to ${w.minimum}`,from:l,location:n.child([m])})}}}}),l$=()=>({CriterionObject:{enter(e,{report:t,location:r}){e.type&&(e.type==="xpath"||Te(e.type)&&e.type.type==="xpath")&&t({message:"The `xpath` type criteria is not supported by Respect.",location:r.child(["type"]),reference:"https://redocly.com/docs/cli/rules/respect/no-criteria-xpath"})}}}),p$=()=>{function e(t,{report:r,location:n}){if(Array.isArray(t))for(const o of t){const s=Vr(o,"scheme"),a=Vr(o,"schemeName");s&&a&&r({message:"`x-security` item must not contain both `scheme` and `schemeName`.",location:n.child(["x-security",t.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/respect/no-x-security-both-scheme-and-scheme-name"})}}return{Workflow:{enter(t,r){e(t?.["x-security"],r)}},Step:{enter(t,r){e(t?.["x-security"],r)}}}},u$=()=>({Step:{enter(e,{report:t,location:r}){if(!e?.["x-operation"])return;const n=e?.["x-security"];if(n)for(const o of n)"schemeName"in o&&t({message:"The `schemeName` can be only used in Step with OpenAPI operation, please use `scheme` instead.",location:r.child(["x-security",n.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/respect/no-x-security-scheme-name-without-openapi"})}}}),d$=()=>{let e=0;return{SourceDescriptions:{enter(t){e=Array.isArray(t)?t.length:0}},Workflow:{leave(t,{report:r,location:n}){const o=t?.["x-security"];if(!(!o||e<=1)){for(const s of o)if("schemeName"in s){const a=s.schemeName;typeof a=="string"&&a.startsWith("$sourceDescriptions.")||r({message:"When multiple `sourceDescriptions` exist, `workflow.x-security.schemeName` must be a reference to a source description (e.g. `$sourceDescriptions.{name}.{schemeName}`)",location:n.child(["x-security",o.indexOf(s),"schemeName"]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-name-reference"})}}}}}},f$={apiKey:["apiKey"],basic:["username","password"],digest:["username","password"],bearer:["token"],oauth2:["accessToken"],openIdConnect:["accessToken"],mutualTLS:[]};function Tu(e,{report:t,location:r}){if(e)for(const n of e){if("schemeName"in n)continue;const{scheme:o,values:s}=n,a=o?.type==="http"?o.scheme:o?.type;if(a==="mutualTLS"){Oe.warn("Please use CLI option to provide mutualTLS certificates for mutualTls authentication security schema.");continue}const c=f$[a];if(c)for(const i of c)(!s||!(i in s))&&t({message:`The \`${i}\` is required when using the ${a} authentication security schema.`,location:r.child(["x-security",e.indexOf(n)]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-required-values"});else t({message:`The \`${a}\` authentication security schema is not supported.`,location:r.child(["x-security",e.indexOf(n)]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-required-values"})}}const m$=()=>({Step:{enter(e,t){Tu(e?.["x-security"],t)}},Workflow:{enter(e,t){Tu(e?.["x-security"],t)}}}),h$=()=>({FailureActionObject:{enter(e,{report:t,location:r}){const n=e?.criteria;if(!Array.isArray(n))return;const o=new Set;for(const s of n){const a=JSON.stringify(s);o.has(a)?t({message:"The FailureAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):o.add(a)}}},SuccessActionObject:{enter(e,{report:t,location:r}){const n=e?.criteria;if(!Array.isArray(n))return;const o=new Set;for(const s of n){const a=JSON.stringify(s);o.has(a)?t({message:"The SuccessAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):o.add(a)}}},Step:{enter(e,{report:t,location:r}){const n=e?.successCriteria;if(!Array.isArray(n))return;const o=new Set;for(const s of n){const a=JSON.stringify(s);o.has(a)?t({message:"The Step SuccessCriteria items must be unique.",location:r.child(["successCriteria",n.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):o.add(a)}}}}),y$=()=>{const e=new Map,t=new Map,r=[];function n({value:a,report:c,location:i,path:l,definedWorkflowOutputs:p}){const f=/\$workflows\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g;let $;for(;($=f.exec(a))!==null;){const[m,_,x]=$,b=p.get(_);b?b.includes(x)||c({message:`Output key "${x}" is not defined in workflow "${_}". Available outputs: [ ${b.join(", ")} ].`,location:i.child(l)}):c({message:`Workflow "${_}" referenced in runtime expression "${m}" is not defined or has no outputs.`,location:i.child(l)})}}function o({value:a,report:c,location:i,path:l,definedStepOutputs:p}){const f=/\$steps\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g;let $;for(;($=f.exec(a))!==null;){const[m,_,x]=$,b=p.get(_);b?b.includes(x)||c({message:`Output key "${x}" is not defined in step "${_}". Available outputs: [ ${b.join(", ")} ].`,location:i.child(l)}):c({message:`Step "${_}" referenced in runtime expression "${m}" is not defined or has no outputs.`,location:i.child(l)})}}function s(a,c,i=[]){if(typeof a=="string")n({value:a,report:c.report,location:c.location,path:i,definedWorkflowOutputs:e}),o({value:a,report:c.report,location:c.location,path:i,definedStepOutputs:t});else if(Te(a)||Array.isArray(a))for(const[l,p]of Object.entries(a))s(p,c,[...i,l])}return{Step:{enter(a,{report:c,location:i}){a.outputs&&t.set(a.stepId,Object.keys(a.outputs))}},Workflow:{enter(a,{report:c,location:i}){a.outputs&&e.set(a.workflowId,Object.keys(a.outputs))}},Parameters:{enter(a,c){r.push(()=>{s(a,c)})}},RequestBody:{enter(a,c){r.push(()=>{s(a,c)})}},CriterionObject:{enter(a,c){r.push(()=>{s(a.condition,c)})}},Outputs:{enter(a,c){r.push(()=>{s(a,c)})}},ExtendedSecurity:{enter(a,c){r.push(()=>{s(a,c)})}},ExtendedOperation:{enter(a,c){r.push(()=>{s(a,c)})}},Root:{leave(){for(const a of r)a()}}}},g$=()=>({Parameters:{enter(e,{report:t,location:r}){if(!e)return;const n=new Set;for(const o of e)n.has(o?.name)&&t({message:"The parameter `name` must be unique amongst listed parameters.",location:r.child([e.indexOf(o)])}),n.has(o?.reference)&&t({message:"The parameter `reference` must be unique amongst listed parameters.",location:r.child([e.indexOf(o)])}),n.add(o?.name??o?.reference)}}}),v$=()=>{const e=new Set;return{Step:{leave(){e.clear()},RequestBody:{enter(t,{report:r,location:n}){if(t.replacements)for(const o of t.replacements)e.has(o.target)&&r({message:"Every `replacement` in `requestBody` must be unique.",location:n.child(["replacements",t.replacements.indexOf(o),"target"]),reference:"https://redocly.com/docs/cli/rules/arazzo/requestbody-replacements-unique"}),e.add(o.target)}}}}},b$=()=>{const e=new Set;return{SourceDescriptions:{enter(t,{report:r,location:n}){if(t.length)for(const o of t)e.has(o.name)&&r({message:"The `name` must be unique amongst all SourceDescriptions.",location:n.child([t.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/sourcedescription-name-unique"}),e.add(o.name)}}}},w$=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){e?.length||t({message:"The `sourceDescriptions` list must have at least one entry.",location:r})}}}),$$=["x-operation","operationId","operationPath","channelPath","workflowId"],E$=()=>({Step:{enter(e,{report:t,location:r}){const n=$$.filter(o=>Object.hasOwn(e,o));n.length>1&&t({message:`A step can only use one of the following mutually exclusive fields: ${n.map(o=>`\`${o}\``).join(", ")}.`,location:n.map(o=>r.child([o]).key()),reference:"https://redocly.com/docs/cli/rules/arazzo/spec-step-mutually-exclusive-fields"})}}}),_$=()=>({OnFailureActionList:{enter(e,{report:t,location:r}){if(!e)return;const n=new Set;for(const o of e)n.has(o?.name)&&t({message:"The action `name` must be unique amongst listed `onFailure` actions.",location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onfailure-unique"}),n.has(o?.reference)&&t({message:"The action `reference` must be unique amongst listed `onFailure` actions.",location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onfailure-unique"}),n.add(o.name??o.reference)}}}),P$=()=>({OnSuccessActionList:{enter(e,{report:t,location:r}){if(!e)return;const n=new Set;for(const o of e)n.has(o?.name)&&t({message:"The action `name` must be unique amongst listed `onSuccess` actions.",location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onsuccess-unique"}),n.has(o?.reference)&&t({message:"The action `reference` must be unique amongst listed `onSuccess` actions.",location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onsuccess-unique"}),n.add(o?.name??o?.reference)}}}),x$=()=>({Workflow:{enter(e,{report:t,location:r}){if(!e.steps)return;const n=new Set;for(const o of e.steps){if(!o.stepId)return;n.has(o.stepId)&&t({message:"The `stepId` must be unique amongst all steps described in the workflow.",location:r.child(["steps",e.steps.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/stepid-unique"}),n.add(o.stepId)}}}}),S$=()=>{const e=new Set,t=new Set,r=new Set;return{SourceDescriptions:{enter(n){for(const o of n)t.add(o.name)}},Workflows:{enter(n){for(const o of n)r.add(o.workflowId)}},Workflow:{leave(n,{report:o,location:s}){if(n.dependsOn)for(const a of n.dependsOn){if(a.startsWith("$sourceDescriptions.")){const c=a.split(".")[1];t.has(c)||o({message:`SourceDescription ${c} must be defined in sourceDescriptions.`,location:s.child(["dependsOn",n.dependsOn.indexOf(a)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"})}!a.startsWith("$sourceDescriptions")&&!r.has(a)&&o({message:`Workflow ${a} must be defined in workflows.`,location:s.child(["dependsOn",n.dependsOn.indexOf(a)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),e.has(a)&&o({message:"Every workflow in dependsOn must be unique.",location:s.child(["dependsOn"]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),e.add(a)}}}}},I$=()=>{const e=new Set;return{Workflow:{enter(t,{report:r,location:n}){t.workflowId&&(e.has(t.workflowId)&&r({message:"Every workflow must have a unique `workflowId`.",location:n.child([t.workflowId]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflowid-unique"}),e.add(t.workflowId))}}}},T$={assertions:rr,"criteria-unique":h$,"no-criteria-xpath":l$,"no-enum-type-mismatch":Zr,"no-mixed-number-range-constraints":Go,"no-required-schema-properties-undefined":en,"no-schema-type-mismatch":tn,"no-unresolved-refs":Zt,"no-x-security-both-scheme-and-scheme-name":p$,"no-x-security-scheme-name-without-openapi":u$,"outputs-defined":y$,"parameters-unique":g$,"requestBody-replacements-unique":v$,"sourceDescription-name-unique":b$,"sourceDescription-type":Hw,"sourceDescriptions-not-empty":w$,"spec-step-mutually-exclusive-fields":E$,"step-onFailure-unique":_$,"step-onSuccess-unique":P$,"stepId-unique":x$,struct:Bt,"workflow-dependsOn":S$,"workflowId-unique":I$,"x-security-scheme-name-reference":d$,"x-security-scheme-required-values":m$},k$={},Tr=()=>({Info(e,{report:t,location:r}){e.contact||t({message:Ma("Info","contact"),location:r.child("contact").key(),reference:"https://redocly.com/docs/cli/rules/oas/info-contact"})}}),Ko=()=>{let e;return{Root:{enter(t){e=$n(t)},License:{leave(t,r){e==="oas3_1"||e==="oas3_2"?i$({fieldNames:["url","identifier"],value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"}):nr({fieldName:"url",value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"})}}}}},Jo=({ignoreCase:e=!1})=>{const t=new Set;return{Tag:{leave(r,n){const o=Va(r,e);t.has(o)?n.report({message:`Duplicate tag name found: '${r.name}'.`,location:n.location}):t.add(o)}}}},Yo=()=>({Root:{PathItem:{Operation(e,t){nr({fieldName:"operationId",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId"})}}}}),Wo=()=>({Tag(e,t){nr({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/tag-description"})}}),Ho=({ignoreCase:e=!1})=>({Root(t,{report:r,location:n}){if(t.tags)for(let o=0;o<t.tags.length-1;o++)Va(t.tags[o],e)>Va(t.tags[o+1],e)&&r({message:"The `tags` array should be in alphabetical order.",location:n.child(["tags",o]),reference:"https://redocly.com/docs/cli/rules/oas/tags-alphabetical"})}}),N$=()=>({Channel(e,{report:t,key:r}){r.split(/[/.:]/).filter(n=>n!=="").every(n=>/^{.+}$/.test(n)||/^[a-z0-9-.]+$/.test(n))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/async/channels-kebab-case"})}}),O$=()=>({Channel(e,{report:t,key:r,location:n}){r.endsWith("/")&&r!=="/"&&t({message:`\`${r}\` should not have a trailing slash.`,location:n.key(),reference:"https://redocly.com/docs/cli/rules/async/no-channel-trailing-slash"})}}),j$={struct:Bt,"no-unresolved-refs":Zt,assertions:rr,"info-contact":Tr,"info-license-strict":Ko,"operation-operationId":Yo,"channels-kebab-case":N$,"no-channel-trailing-slash":O$,"tag-description":Wo,"tags-alphabetical":Ho,"no-duplicated-tag-names":Jo,"no-required-schema-properties-undefined":en,"no-enum-type-mismatch":Zr,"no-mixed-number-range-constraints":Go,"no-schema-type-mismatch":tn},C$={},A$=()=>({Channel(e,{report:t}){(e.address||"").split(/[/.:]/).filter(r=>r!=="").every(r=>/^{.+}$/.test(r)||/^[a-z0-9-.]+$/.test(r))||t({message:`\`${e.address}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/async/channels-kebab-case"})}}),R$=()=>({Channel(e,{report:t,location:r}){e?.address?.endsWith("/")&&e?.address!=="/"&&t({message:`\`${e.address}\` should not have a trailing slash.`,location:r.key(),reference:"https://redocly.com/docs/cli/rules/async/no-channel-trailing-slash"})}}),D$={struct:Bt,"no-unresolved-refs":Zt,assertions:rr,"info-contact":Tr,"info-license-strict":Ko,"operation-operationId":Yo,"channels-kebab-case":A$,"no-channel-trailing-slash":R$,"tag-description":Wo,"tags-alphabetical":Ho,"no-duplicated-tag-names":Jo,"no-required-schema-properties-undefined":en,"no-enum-type-mismatch":Zr,"no-mixed-number-range-constraints":Go,"no-schema-type-mismatch":tn},q$={};function ku(e){return ga(vr).filter(t=>e.assertions[t]!==void 0).map(t=>({name:t,conditions:e.assertions[t],runsOnKeys:ec.has(t),runsOnValues:Zi.has(t)}))}const L$=e=>{const t=Object.values(e).filter(Te),r=[];for(const n of t){if(n.severity==="off")continue;const o=n.subject?.type;if(!o)continue;const s=ku(n),a=M$(n);r.push({[o]:(c,i)=>{V$(c,i,a)&&F$(c,i,n,s)}})}return r};function M$(e){return Array.isArray(e.where)?e.where.map((t,r)=>{if(!Xt(t.subject?.type))throw new Error(`${e.assertionId} -> where -> [${r}]: 'type' (String) is required`);return{kind:t.subject.type,definition:t,assertsToApply:ku(t)}}):[]}function V$(e,t,r){let n=r;const o=r.at(-1);if(o&&o.kind===e.kind){if(!Nu(e,o,t))return!1;n=r.slice(0,-1)}let s=0;for(const a of n){let c=!1;for(;s<t.ancestors.length;){const i=t.ancestors[s++];if(i.kind===a.kind&&Nu(i,a,t)){c=!0;break}}if(!c)return!1}return!0}function Nu(e,t,r){const{value:n}=Ou(e,t.definition.subject.property),o=new ma(r.source,"#/");return t.assertsToApply.every(s=>vr[s.name](n,s.conditions,{baseLocation:o,rawValue:n}).length===0)}function F$(e,t,r,n){const o=ju(r.subject.property),{value:s,locNode:a}=Ou(e,r.subject.property),c=new ma(t.source,"#/"),i=n.flatMap(p=>vr[p.name](s,p.conditions,{baseLocation:c,rawValue:s}));if(!i.length)return;const l=`${Re.blue(r.assertionId)} failed because the ${Re.blue(r.subject.type)} ${Re.blue(o??"")} didn't meet the assertions: {{problems}}`.replace(/ +/g," ");t.report({message:wu(r.message??l,{problems:vu(i),assertionName:r.assertionId,nodeType:r.subject.type,property:o??"",key:"",pointer:"",file:bu(t.source.absoluteRef)}),node:a,suggest:r.suggest,ruleId:r.assertionId,severity:r.severity})}function Fa(e){return e?.name?.value!==void 0?{value:e.name.value,locNode:e.name}:e?.value!==void 0?{value:e.value,locNode:e}:{value:e,locNode:e}}function Ou(e,t){const r=ju(t);if(r===void 0)return Fa(e);const n=e[r];if(Array.isArray(n))return{value:n.map(s=>Fa(s).value),locNode:e};const o=Fa(n);return{value:o.value,locNode:z$(o.locNode)?o.locNode:e}}function z$(e){return Te(e)&&"kind"in e}function ju(e){return Array.isArray(e)?e[0]:e}const U$=["Query","Mutation","Subscription"];function B$(e){let t=e;for(;t.kind==="ListType"||t.kind==="NonNullType";)t=t.type;return t.name.value}const G$=()=>{const e=new Map,t=new Set,r=new Set;let n=!1;const o=p=>t.add(B$(p)),s=p=>e.set(p.name.value,p.name),a=p=>{for(const f of p.interfaces??[])o(f);for(const f of p.fields??[]){o(f.type);for(const $ of f.arguments??[])o($.type)}},c=p=>{for(const f of p.types??[])o(f)},i=p=>{for(const f of p.fields??[])o(f.type)},l=p=>{for(const f of p.operationTypes??[])r.add(f.type.name.value)};return{SchemaDefinition:p=>{n=!0,l(p)},SchemaExtension:l,DirectiveDefinition:p=>{for(const f of p.arguments??[])o(f.type)},ObjectTypeDefinition:p=>{s(p),a(p)},ObjectTypeExtension:a,InterfaceTypeDefinition:p=>{s(p),a(p)},InterfaceTypeExtension:a,UnionTypeDefinition:p=>{s(p),c(p)},UnionTypeExtension:c,InputObjectTypeDefinition:p=>{s(p),i(p)},InputObjectTypeExtension:i,EnumTypeDefinition:s,ScalarTypeDefinition:s,Document:{leave:(p,f)=>{if(!n)for(const $ of U$)e.has($)&&r.add($);if(r.size!==0)for(const[$,m]of e)t.has($)||r.has($)||f.report({message:`Type \`${$}\` is declared but never used.`,node:m})}}}};function Be(e,t){if(!e)throw new Error(t)}function dr(e){return typeof e=="object"&&e!==null}function Pt(e,t){if(!e)throw new Error(t??"Unexpected invariant triggered.")}const K$=/\r\n|[\n\r]/g;function Xo(e,t){let r=0,n=1;for(const o of e.body.matchAll(K$)){if(typeof o.index=="number"||Pt(!1),o.index>=t)break;r=o.index+o[0].length,n+=1}return{line:n,column:t+1-r}}function J$(e){return Cu(e.source,Xo(e.source,e.start))}function Cu(e,t){const r=e.locationOffset.column-1,n="".padStart(r)+e.body,o=t.line-1,s=e.locationOffset.line-1,a=t.line+s,c=t.line===1?r:0,i=t.column+c,l=`${e.name}:${a}:${i}
|
|
16
|
-
`,p=n.split(/\r\n|[\n\r]/g),f=p[o];if(f.length>120){const $=Math.floor(i/80),m=i%80,_=[];for(let x=0;x<f.length;x+=80)_.push(f.slice(x,x+80));return l+Au([[`${a} |`,_[0]],..._.slice(1,$+1).map(x=>["|",x]),["|","^".padStart(m)],["|",_[$+1]]])}return l+Au([[`${a-1} |`,p[o-1]],[`${a} |`,f],["|","^".padStart(i)],[`${a+1} |`,p[o+1]]])}function Au(e){const t=e.filter(([n,o])=>o!==void 0),r=Math.max(...t.map(([n])=>n.length));return t.map(([n,o])=>n.padStart(r)+(o?" "+o:"")).join(`
|
|
17
|
-
`)}function Y$(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class ge extends Error{constructor(t,...r){var n,o,s;const{nodes:a,source:c,positions:i,path:l,originalError:p,extensions:f}=Y$(r);super(t),this.name="GraphQLError",this.path=l??void 0,this.originalError=p??void 0,this.nodes=Ru(Array.isArray(a)?a:a?[a]:void 0);const $=Ru((n=this.nodes)===null||n===void 0?void 0:n.map(_=>_.loc).filter(_=>_!=null));this.source=c??($==null||(o=$[0])===null||o===void 0?void 0:o.source),this.positions=i??$?.map(_=>_.start),this.locations=i&&c?i.map(_=>Xo(c,_)):$?.map(_=>Xo(_.source,_.start));const m=dr(p?.extensions)?p?.extensions:void 0;this.extensions=(s=f??m)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),p!=null&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,ge):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const r of this.nodes)r.loc&&(t+=`
|
|
18
|
-
|
|
19
|
-
`+J$(r.loc));else if(this.source&&this.locations)for(const r of this.locations)t+=`
|
|
20
|
-
|
|
21
|
-
`+Cu(this.source,r);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function Ru(e){return e===void 0||e.length===0?void 0:e}class W${constructor(t,r,n){this.start=t.start,this.end=r.end,this.startToken=t,this.endToken=r,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class H${constructor(t,r,n,o,s,a){this.kind=t,this.start=r,this.end=n,this.line=o,this.column=s,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const za={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},X$=new Set(Object.keys(za));function Du(e){const t=e?.kind;return typeof t=="string"&&X$.has(t)}var gt;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(gt||(gt={}));var ve;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",e.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION"})(ve||(ve={}));var W;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.DIRECTIVE_EXTENSION="DirectiveExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(W||(W={}));function Ua(e){return e===9||e===32}function qu(e){return e>=48&&e<=57}function Lu(e){return e>=97&&e<=122||e>=65&&e<=90}function Mu(e){return Lu(e)||e===95}function Vu(e){return Lu(e)||qu(e)||e===95}function Q$(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,o=-1;for(let a=0;a<e.length;++a){var s;const c=e[a],i=Z$(c);i!==c.length&&(n=(s=n)!==null&&s!==void 0?s:a,o=a,a!==0&&i<r&&(r=i))}return e.map((a,c)=>c===0?a:a.slice(r)).slice((t=n)!==null&&t!==void 0?t:0,o+1)}function Z$(e){let t=0;for(;t<e.length&&Ua(e.charCodeAt(t));)++t;return t}function eE(e,t){const r=e.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),o=n.length===1,s=n.length>1&&n.slice(1).every(m=>m.length===0||Ua(m.charCodeAt(0))),a=r.endsWith('\\"""'),c=e.endsWith('"')&&!a,i=e.endsWith("\\"),l=c||i,p=!o||e.length>70||l||s||a;let f="";const $=o&&Ua(e.charCodeAt(0));return(p&&!$||s)&&(f+=`
|
|
22
|
-
`),f+=r,(p||l)&&(f+=`
|
|
23
|
-
`),'"""'+f+'"""'}const tE=10,Fu=2;function be(e){return Qo(e,[])}function Qo(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return rE(e,t);default:return String(e)}}function rE(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(nE(e)){const n=e.toJSON();if(n!==e)return typeof n=="string"?n:Qo(n,r)}else if(Array.isArray(e))return sE(e,r);return oE(e,r)}function nE(e){return typeof e.toJSON=="function"}function oE(e,t){const r=Object.entries(e);return r.length===0?"{}":t.length>Fu?"["+aE(e)+"]":"{ "+r.map(([n,o])=>n+": "+Qo(o,t)).join(", ")+" }"}function sE(e,t){if(e.length===0)return"[]";if(t.length>Fu)return"[Array]";const r=Math.min(tE,e.length),n=e.length-r,o=[];for(let s=0;s<r;++s)o.push(Qo(e[s],t));return n===1?o.push("... 1 more item"):n>1&&o.push(`... ${n} more items`),"["+o.join(", ")+"]"}function aE(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const r=e.constructor.name;if(typeof r=="string"&&r!=="")return r}return t}const iE=globalThis.process&&!0,xt=iE?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if(typeof e=="object"&&e!==null){var r;const n=t.prototype[Symbol.toStringTag],o=Symbol.toStringTag in e?e[Symbol.toStringTag]:(r=e.constructor)===null||r===void 0?void 0:r.name;if(n===o){const s=be(e);throw new Error(`Cannot use ${n} "${s}" from another module or realm.
|
|
24
|
-
|
|
25
|
-
Ensure that there is only one instance of "graphql" in the node_modules
|
|
26
|
-
directory. If different versions of "graphql" are the dependencies of other
|
|
27
|
-
relied on modules, use "resolutions" to ensure only one version is installed.
|
|
28
|
-
|
|
29
|
-
https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
30
|
-
|
|
31
|
-
Duplicate "graphql" modules cannot be used at the same time since different
|
|
32
|
-
versions may have different capabilities and behavior. The data from one
|
|
33
|
-
version used in the function from another could produce confusing and
|
|
34
|
-
spurious results.`)}}return!1},cE=5;function Zo(e,t){const[r,n]=t?[e,t]:[void 0,e];let o=" Did you mean ";r&&(o+=r+" ");const s=n.map(i=>`"${i}"`);switch(s.length){case 0:return"";case 1:return o+s[0]+"?";case 2:return o+s[0]+" or "+s[1]+"?"}const a=s.slice(0,cE),c=a.pop();return o+a.join(", ")+", or "+c+"?"}function zu(e){return e}function kr(e,t){const r=Object.create(null);for(const n of e)r[t(n)]=n;return r}function Ba(e,t,r){const n=Object.create(null);for(const o of e)n[t(o)]=r(o);return n}function qt(e,t){const r=Object.create(null);for(const n of Object.keys(e))r[n]=t(e[n],n);return r}function lE(e,t){let r=0,n=0;for(;r<e.length&&n<t.length;){let o=e.charCodeAt(r),s=t.charCodeAt(n);if(es(o)&&es(s)){let a=0;do++r,a=a*10+o-Ga,o=e.charCodeAt(r);while(es(o)&&a>0);let c=0;do++n,c=c*10+s-Ga,s=t.charCodeAt(n);while(es(s)&&c>0);if(a<c)return-1;if(a>c)return 1}else{if(o<s)return-1;if(o>s)return 1;++r,++n}}return e.length-t.length}const Ga=48,pE=57;function es(e){return!isNaN(e)&&Ga<=e&&e<=pE}function ts(e,t){const r=Object.create(null),n=new uE(e),o=Math.floor(e.length*.4)+1;for(const s of t){const a=n.measure(s,o);a!==void 0&&(r[s]=a)}return Object.keys(r).sort((s,a)=>{const c=r[s]-r[a];return c!==0?c:lE(s,a)})}class uE{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=Uu(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,r){if(this._input===t)return 0;const n=t.toLowerCase();if(this._inputLowerCase===n)return 1;let o=Uu(n),s=this._inputArray;if(o.length<s.length){const p=o;o=s,s=p}const a=o.length,c=s.length;if(a-c>r)return;const i=this._rows;for(let p=0;p<=c;p++)i[0][p]=p;for(let p=1;p<=a;p++){const f=i[(p-1)%3],$=i[p%3];let m=$[0]=p;for(let _=1;_<=c;_++){const x=o[p-1]===s[_-1]?0:1;let b=Math.min(f[_]+1,$[_-1]+1,f[_-1]+x);if(p>1&&_>1&&o[p-1]===s[_-2]&&o[p-2]===s[_-1]){const w=i[(p-2)%3][_-2];b=Math.min(b,w+1)}b<m&&(m=b),$[_]=b}if(m>r)return}const l=i[a%3][c];return l<=r?l:void 0}}function Uu(e){const t=e.length,r=new Array(t);for(let n=0;n<t;++n)r[n]=e.charCodeAt(n);return r}function vt(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;const t=Object.create(null);for(const[r,n]of Object.entries(e))t[r]=n;return t}function dE(e){return`"${e.replace(fE,mE)}"`}const fE=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function mE(e){return hE[e.charCodeAt(0)]}const hE=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],rn=Object.freeze({});function Ka(e,t,r=za){const n=new Map;for(const w of Object.values(W))n.set(w,Gu(t,w));let o,s=Array.isArray(e),a=[e],c=-1,i=[],l=e,p,f;const $=[],m=[];do{c++;const w=c===a.length,y=w&&i.length!==0;if(w){if(p=m.length===0?void 0:$[$.length-1],l=f,f=m.pop(),y)if(s){l=l.slice();let P=0;for(const[h,g]of i){const E=h-P;g===null?(l.splice(E,1),P++):l[E]=g}}else{l={...l};for(const[P,h]of i)l[P]=h}c=o.index,a=o.keys,i=o.edits,s=o.inArray,o=o.prev}else if(f){if(p=s?c:a[c],l=f[p],l==null)continue;$.push(p)}let d;if(!Array.isArray(l)){var _,x;if(Du(l)||Be(!1,`Invalid AST Node: ${be(l)}.`),d=(w?(_=n.get(l.kind))===null||_===void 0?void 0:_.leave:(x=n.get(l.kind))===null||x===void 0?void 0:x.enter)?.call(t,l,p,f,$,m),d===rn)break;if(d===!1){if(!w){$.pop();continue}}else if(d!==void 0&&(i.push([p,d]),!w))if(Du(d))l=d;else{$.pop();continue}}if(d===void 0&&y&&i.push([p,l]),w)$.pop();else{var b;o={inArray:s,index:c,keys:a,edits:i,prev:o},s=Array.isArray(l),a=s?l:(b=r[l.kind])!==null&&b!==void 0?b:[],c=-1,i=[],f&&m.push(f),f=l}}while(o!==void 0);return i.length!==0?i[i.length-1][1]:e}function Bu(e){const t=new Array(e.length).fill(null),r=Object.create(null);for(const n of Object.values(W)){let o=!1;const s=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let i=0;i<e.length;++i){const{enter:l,leave:p}=Gu(e[i],n);o||(o=l!=null||p!=null),s[i]=l,a[i]=p}if(!o)continue;const c={enter(...i){const l=i[0];for(let f=0;f<e.length;f++)if(t[f]===null){var p;const $=(p=s[f])===null||p===void 0?void 0:p.apply(e[f],i);if($===!1)t[f]=l;else if($===rn)t[f]=rn;else if($!==void 0)return $}},leave(...i){const l=i[0];for(let f=0;f<e.length;f++)if(t[f]===null){var p;const $=(p=a[f])===null||p===void 0?void 0:p.apply(e[f],i);if($===rn)t[f]=rn;else if($!==void 0&&$!==!1)return $}else t[f]===l&&(t[f]=null)}};r[n]=c}return r}function Gu(e,t){const r=e[t];return typeof r=="object"?r:typeof r=="function"?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}function Lt(e){return Ka(e,gE)}const yE=80,gE={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>fe(e.definitions,`
|
|
35
|
-
|
|
36
|
-
`)},OperationDefinition:{leave(e){const t=Ja(e.variableDefinitions)?Pe(`(
|
|
37
|
-
`,fe(e.variableDefinitions,`
|
|
38
|
-
`),`
|
|
39
|
-
)`):Pe("(",fe(e.variableDefinitions,", "),")"),r=Pe("",e.description,`
|
|
40
|
-
`)+fe([e.operation,fe([e.name,t]),fe(e.directives," ")]," ");return(r==="query"?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n,description:o})=>Pe("",o,`
|
|
41
|
-
`)+e+": "+t+Pe(" = ",r)+Pe(" ",fe(n," "))},SelectionSet:{leave:({selections:e})=>St(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:o}){const s=Pe("",e,": ")+t;let a=s+Pe("(",fe(r,", "),")");return a.length>yE&&(a=s+Pe(`(
|
|
42
|
-
`,rs(fe(r,`
|
|
43
|
-
`)),`
|
|
44
|
-
)`)),fe([a,fe(n," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Pe(" ",fe(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>fe(["...",Pe("on ",e),fe(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:o,description:s})=>Pe("",s,`
|
|
45
|
-
`)+`fragment ${e}${Pe("(",fe(r,", "),")")} on ${t} ${Pe("",fe(n," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?eE(e):dE(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+fe(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+fe(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Pe("(",fe(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>Pe("",e,`
|
|
46
|
-
`)+fe(["schema",fe(t," "),St(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>Pe("",e,`
|
|
47
|
-
`)+fe(["scalar",t,fe(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:o})=>Pe("",e,`
|
|
48
|
-
`)+fe(["type",t,Pe("implements ",fe(r," & ")),fe(n," "),St(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:o})=>Pe("",e,`
|
|
49
|
-
`)+t+(Ja(r)?Pe(`(
|
|
50
|
-
`,rs(fe(r,`
|
|
51
|
-
`)),`
|
|
52
|
-
)`):Pe("(",fe(r,", "),")"))+": "+n+Pe(" ",fe(o," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:o})=>Pe("",e,`
|
|
53
|
-
`)+fe([t+": "+r,Pe("= ",n),fe(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:o})=>Pe("",e,`
|
|
54
|
-
`)+fe(["interface",t,Pe("implements ",fe(r," & ")),fe(n," "),St(o)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>Pe("",e,`
|
|
55
|
-
`)+fe(["union",t,fe(r," "),Pe("= ",fe(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>Pe("",e,`
|
|
56
|
-
`)+fe(["enum",t,fe(r," "),St(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>Pe("",e,`
|
|
57
|
-
`)+fe([t,fe(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>Pe("",e,`
|
|
58
|
-
`)+fe(["input",t,fe(r," "),St(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,directives:n,repeatable:o,locations:s})=>Pe("",e,`
|
|
59
|
-
`)+"directive @"+t+(Ja(r)?Pe(`(
|
|
60
|
-
`,rs(fe(r,`
|
|
61
|
-
`)),`
|
|
62
|
-
)`):Pe("(",fe(r,", "),")"))+Pe(" ",fe(n," "))+(o?" repeatable":"")+" on "+fe(s," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>fe(["extend schema",fe(e," "),St(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>fe(["extend scalar",e,fe(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>fe(["extend type",e,Pe("implements ",fe(t," & ")),fe(r," "),St(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>fe(["extend interface",e,Pe("implements ",fe(t," & ")),fe(r," "),St(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>fe(["extend union",e,fe(t," "),Pe("= ",fe(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>fe(["extend enum",e,fe(t," "),St(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>fe(["extend input",e,fe(t," "),St(r)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>fe(["extend directive @"+e,fe(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>fe([e,Pe(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>fe([e,Pe(".",t),Pe("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>fe(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>fe(["@",e,Pe("(",t,":)")])}};function fe(e,t=""){var r;return(r=e?.filter(n=>n).join(t))!==null&&r!==void 0?r:""}function St(e){return Pe(`{
|
|
63
|
-
`,rs(fe(e,`
|
|
64
|
-
`)),`
|
|
65
|
-
}`)}function Pe(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function rs(e){return Pe(" ",e.replace(/\n/g,`
|
|
66
|
-
`))}function Ja(e){var t;return(t=e?.some(r=>r.includes(`
|
|
67
|
-
`)))!==null&&t!==void 0?t:!1}function Ya(e,t){switch(e.kind){case W.NULL:return null;case W.INT:return parseInt(e.value,10);case W.FLOAT:return parseFloat(e.value);case W.STRING:case W.ENUM:case W.BOOLEAN:return e.value;case W.LIST:return e.values.map(r=>Ya(r,t));case W.OBJECT:return Ba(e.fields,r=>r.name.value,r=>Ya(r.value,t));case W.VARIABLE:return t?.[e.name.value]}}function It(e){if(e!=null||Be(!1,"Must provide name."),typeof e=="string"||Be(!1,"Expected name to be a string."),e.length===0)throw new ge("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!Vu(e.charCodeAt(t)))throw new ge(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!Mu(e.charCodeAt(0)))throw new ge(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function vE(e){if(e==="true"||e==="false"||e==="null")throw new ge(`Enum values cannot be named: ${e}`);return It(e)}function Wa(e){return or(e)||tt(e)||rt(e)||Tt(e)||bt(e)||dt(e)||kt(e)||We(e)}function or(e){return xt(e,sr)}function tt(e){return xt(e,Gt)}function rt(e){return xt(e,Xa)}function Tt(e){return xt(e,Qa)}function bt(e){return xt(e,nn)}function dt(e){return xt(e,Za)}function kt(e){return xt(e,mt)}function We(e){return xt(e,je)}function ns(e){return or(e)||bt(e)||dt(e)||Ha(e)&&ns(e.ofType)}function Ku(e){return or(e)||tt(e)||rt(e)||Tt(e)||bt(e)||Ha(e)&&Ku(e.ofType)}function Ju(e){return or(e)||bt(e)}function Yu(e){return rt(e)||Tt(e)}class mt{constructor(t){Wa(t)||Be(!1,`Expected ${be(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class je{constructor(t){bE(t)||Be(!1,`Expected ${be(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function Ha(e){return kt(e)||We(e)}function bE(e){return Wa(e)&&!We(e)}function wE(e){return or(e)||tt(e)||rt(e)||Tt(e)||bt(e)||dt(e)}function $E(e){if(e){let t=e;for(;Ha(t);)t=t.ofType;return t}}function Wu(e){return typeof e=="function"?e():e}function Hu(e){return typeof e=="function"?e():e}class sr{constructor(t){var r,n,o,s;const a=(r=t.parseValue)!==null&&r!==void 0?r:zu;this.name=It(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(n=t.serialize)!==null&&n!==void 0?n:zu,this.parseValue=a,this.parseLiteral=(o=t.parseLiteral)!==null&&o!==void 0?o:(c,i)=>a(Ya(c,i)),this.extensions=vt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(s=t.extensionASTNodes)!==null&&s!==void 0?s:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||Be(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${be(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||Be(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||Be(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Gt{constructor(t){var r;this.name=It(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=vt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=()=>Qu(t),this._interfaces=()=>Xu(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||Be(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${be(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:ed(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Xu(e){var t;const r=Wu((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(r)||Be(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),r}function Qu(e){const t=Hu(e.fields);return Nr(t)||Be(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),qt(t,(r,n)=>{var o;Nr(r)||Be(!1,`${e.name}.${n} field config must be an object.`),r.resolve==null||typeof r.resolve=="function"||Be(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${be(r.resolve)}.`);const s=(o=r.args)!==null&&o!==void 0?o:{};return Nr(s)||Be(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:It(n),description:r.description,type:r.type,args:Zu(s),resolve:r.resolve,subscribe:r.subscribe,deprecationReason:r.deprecationReason,extensions:vt(r.extensions),astNode:r.astNode}})}function Zu(e){return Object.entries(e).map(([t,r])=>({name:It(t),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:vt(r.extensions),astNode:r.astNode}))}function Nr(e){return dr(e)&&!Array.isArray(e)}function ed(e){return qt(e,t=>({description:t.description,type:t.type,args:td(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function td(e){return Ba(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function os(e){return We(e.type)&&e.defaultValue===void 0}class Xa{constructor(t){var r;this.name=It(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=vt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=Qu.bind(void 0,t),this._interfaces=Xu.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||Be(!1,`${this.name} must provide "resolveType" as a function, but got: ${be(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:ed(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Qa{constructor(t){var r;this.name=It(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=vt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._types=EE.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||Be(!1,`${this.name} must provide "resolveType" as a function, but got: ${be(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function EE(e){const t=Wu(e.types);return Array.isArray(t)||Be(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class nn{constructor(t){var r;this.name=It(t.name),this.description=t.description,this.extensions=vt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._values=typeof t.values=="function"?t.values:rd(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=rd(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=kr(this.getValues(),r=>r.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(n=>[n.value,n])));const r=this._valueLookup.get(t);if(r===void 0)throw new ge(`Enum "${this.name}" cannot represent value: ${be(t)}`);return r.name}parseValue(t){if(typeof t!="string"){const n=be(t);throw new ge(`Enum "${this.name}" cannot represent non-string value: ${n}.`+ss(this,n))}const r=this.getValue(t);if(r==null)throw new ge(`Value "${t}" does not exist in "${this.name}" enum.`+ss(this,t));return r.value}parseLiteral(t,r){if(t.kind!==W.ENUM){const o=Lt(t);throw new ge(`Enum "${this.name}" cannot represent non-enum value: ${o}.`+ss(this,o),{nodes:t})}const n=this.getValue(t.value);if(n==null){const o=Lt(t);throw new ge(`Value "${o}" does not exist in "${this.name}" enum.`+ss(this,o),{nodes:t})}return n.value}toConfig(){const t=Ba(this.getValues(),r=>r.name,r=>({description:r.description,value:r.value,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ss(e,t){const r=e.getValues().map(o=>o.name),n=ts(t,r);return Zo("the enum value",n)}function rd(e,t){return Nr(t)||Be(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([r,n])=>(Nr(n)||Be(!1,`${e}.${r} must refer to an object with a "value" key representing an internal value but got: ${be(n)}.`),{name:vE(r),description:n.description,value:n.value!==void 0?n.value:r,deprecationReason:n.deprecationReason,extensions:vt(n.extensions),astNode:n.astNode}))}class Za{constructor(t){var r,n;this.name=It(t.name),this.description=t.description,this.extensions=vt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this.isOneOf=(n=t.isOneOf)!==null&&n!==void 0?n:!1,this._fields=_E.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){const t=qt(this.getFields(),r=>({description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function _E(e){const t=Hu(e.fields);return Nr(t)||Be(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),qt(t,(r,n)=>(!("resolve"in r)||Be(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:It(n),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:vt(r.extensions),astNode:r.astNode}))}function PE(e){return We(e.type)&&e.defaultValue===void 0}function nd(e,t){return e===t?!0:We(e)&&We(t)||kt(e)&&kt(t)?nd(e.ofType,t.ofType):!1}function as(e,t,r){return t===r?!0:We(r)?We(t)?as(e,t.ofType,r.ofType):!1:We(t)?as(e,t.ofType,r):kt(r)?kt(t)?as(e,t.ofType,r.ofType):!1:kt(t)?!1:Yu(r)&&(rt(t)||tt(t))&&e.isSubType(r,t)}const ei=2147483647,ti=-2147483648,xE=new sr({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=on(e);if(typeof t=="boolean")return t?1:0;let r=t;if(typeof t=="string"&&t!==""&&(r=Number(t)),typeof r!="number"||!Number.isInteger(r))throw new ge(`Int cannot represent non-integer value: ${be(t)}`);if(r>ei||r<ti)throw new ge("Int cannot represent non 32-bit signed integer value: "+be(t));return r},parseValue(e){if(typeof e!="number"||!Number.isInteger(e))throw new ge(`Int cannot represent non-integer value: ${be(e)}`);if(e>ei||e<ti)throw new ge(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==W.INT)throw new ge(`Int cannot represent non-integer value: ${Lt(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>ei||t<ti)throw new ge(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),SE=new sr({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=on(e);if(typeof t=="boolean")return t?1:0;let r=t;if(typeof t=="string"&&t!==""&&(r=Number(t)),typeof r!="number"||!Number.isFinite(r))throw new ge(`Float cannot represent non numeric value: ${be(t)}`);return r},parseValue(e){if(typeof e!="number"||!Number.isFinite(e))throw new ge(`Float cannot represent non numeric value: ${be(e)}`);return e},parseLiteral(e){if(e.kind!==W.FLOAT&&e.kind!==W.INT)throw new ge(`Float cannot represent non numeric value: ${Lt(e)}`,e);return parseFloat(e.value)}}),Ke=new sr({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=on(e);if(typeof t=="string")return t;if(typeof t=="boolean")return t?"true":"false";if(typeof t=="number"&&Number.isFinite(t))return t.toString();throw new ge(`String cannot represent value: ${be(e)}`)},parseValue(e){if(typeof e!="string")throw new ge(`String cannot represent a non string value: ${be(e)}`);return e},parseLiteral(e){if(e.kind!==W.STRING)throw new ge(`String cannot represent a non string value: ${Lt(e)}`,{nodes:e});return e.value}}),ct=new sr({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=on(e);if(typeof t=="boolean")return t;if(Number.isFinite(t))return t!==0;throw new ge(`Boolean cannot represent a non boolean value: ${be(t)}`)},parseValue(e){if(typeof e!="boolean")throw new ge(`Boolean cannot represent a non boolean value: ${be(e)}`);return e},parseLiteral(e){if(e.kind!==W.BOOLEAN)throw new ge(`Boolean cannot represent a non boolean value: ${Lt(e)}`,{nodes:e});return e.value}}),od=new sr({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=on(e);if(typeof t=="string")return t;if(Number.isInteger(t))return String(t);throw new ge(`ID cannot represent value: ${be(e)}`)},parseValue(e){if(typeof e=="string")return e;if(typeof e=="number"&&Number.isInteger(e))return e.toString();throw new ge(`ID cannot represent value: ${be(e)}`)},parseLiteral(e){if(e.kind!==W.STRING&&e.kind!==W.INT)throw new ge("ID cannot represent a non-string and non-integer value: "+Lt(e),{nodes:e});return e.value}}),ri=Object.freeze([Ke,xE,SE,ct,od]);function IE(e){return ri.some(({name:t})=>e.name===t)}function on(e){if(dr(e)){if(typeof e.valueOf=="function"){const t=e.valueOf();if(!dr(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}function sd(e){return xt(e,Kt)}class Kt{constructor(t){var r,n,o;this.name=It(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(r=t.isRepeatable)!==null&&r!==void 0?r:!1,this.deprecationReason=t.deprecationReason,this.extensions=vt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],Array.isArray(t.locations)||Be(!1,`@${t.name} locations must be an Array.`);const s=(o=t.args)!==null&&o!==void 0?o:{};dr(s)&&!Array.isArray(s)||Be(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=Zu(s)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:td(this.args),isRepeatable:this.isRepeatable,deprecationReason:this.deprecationReason,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const TE=new Kt({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[ve.FIELD,ve.FRAGMENT_SPREAD,ve.INLINE_FRAGMENT],args:{if:{type:new je(ct),description:"Included when true."}}}),kE=new Kt({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[ve.FIELD,ve.FRAGMENT_SPREAD,ve.INLINE_FRAGMENT],args:{if:{type:new je(ct),description:"Skipped when true."}}}),NE="No longer supported",ni=new Kt({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[ve.FIELD_DEFINITION,ve.ARGUMENT_DEFINITION,ve.INPUT_FIELD_DEFINITION,ve.ENUM_VALUE,ve.DIRECTIVE_DEFINITION],args:{reason:{type:Ke,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:NE}}}),ad=new Kt({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[ve.SCALAR],args:{url:{type:new je(Ke),description:"The URL that specifies the behavior of this scalar."}}}),id=new Kt({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[ve.INPUT_OBJECT],args:{}}),Or=Object.freeze([TE,kE,ni,ad,id]);function OE(e){return typeof e=="object"&&typeof e?.[Symbol.iterator]=="function"}function sn(e,t){if(We(t)){const r=sn(e,t.ofType);return r?.kind===W.NULL?null:r}if(e===null)return{kind:W.NULL};if(e===void 0)return null;if(kt(t)){const r=t.ofType;if(OE(e)){const n=[];for(const o of e){const s=sn(o,r);s!=null&&n.push(s)}return{kind:W.LIST,values:n}}return sn(e,r)}if(dt(t)){if(!dr(e))return null;const r=[];for(const n of Object.values(t.getFields())){const o=sn(e[n.name],n.type);o&&r.push({kind:W.OBJECT_FIELD,name:{kind:W.NAME,value:n.name},value:o})}return{kind:W.OBJECT,fields:r}}if(Ju(t)){const r=t.serialize(e);if(r==null)return null;if(typeof r=="boolean")return{kind:W.BOOLEAN,value:r};if(typeof r=="number"&&Number.isFinite(r)){const n=String(r);return cd.test(n)?{kind:W.INT,value:n}:{kind:W.FLOAT,value:n}}if(typeof r=="string")return bt(t)?{kind:W.ENUM,value:r}:t===od&&cd.test(r)?{kind:W.INT,value:r}:{kind:W.STRING,value:r};throw new TypeError(`Cannot convert value to AST: ${be(r)}.`)}Pt(!1,"Unexpected input type: "+be(t))}const cd=/^-?(?:0|[1-9][0-9]*)$/,oi=new Gt({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:Ke,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new je(new mt(new je(Mt))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new je(Mt),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Mt,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Mt,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new je(new mt(new je(ld))),args:{includeDeprecated:{type:new je(ct),defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.getDirectives():e.getDirectives().filter(r=>r.deprecationReason==null)}})}),ld=new Gt({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
|
68
|
-
|
|
69
|
-
In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new je(Ke),resolve:e=>e.name},description:{type:Ke,resolve:e=>e.description},isRepeatable:{type:new je(ct),resolve:e=>e.isRepeatable},locations:{type:new je(new mt(new je(pd))),resolve:e=>e.locations},args:{type:new je(new mt(new je(is))),args:{includeDeprecated:{type:ct,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(r=>r.deprecationReason==null)}},isDeprecated:{type:new je(ct),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ke,resolve:e=>e.deprecationReason}})}),pd=new nn({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:ve.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:ve.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:ve.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:ve.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:ve.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:ve.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:ve.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:ve.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:ve.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:ve.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:ve.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:ve.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:ve.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:ve.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:ve.UNION,description:"Location adjacent to a union definition."},ENUM:{value:ve.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:ve.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:ve.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:ve.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."},DIRECTIVE_DEFINITION:{value:ve.DIRECTIVE_DEFINITION,description:"Location adjacent to a directive definition."}}}),Mt=new Gt({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new je(fd),resolve(e){if(or(e))return Ze.SCALAR;if(tt(e))return Ze.OBJECT;if(rt(e))return Ze.INTERFACE;if(Tt(e))return Ze.UNION;if(bt(e))return Ze.ENUM;if(dt(e))return Ze.INPUT_OBJECT;if(kt(e))return Ze.LIST;if(We(e))return Ze.NON_NULL;Pt(!1,`Unexpected type: "${be(e)}".`)}},name:{type:Ke,resolve:e=>"name"in e?e.name:void 0},description:{type:Ke,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Ke,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new mt(new je(ud)),args:{includeDeprecated:{type:ct,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(tt(e)||rt(e)){const r=Object.values(e.getFields());return t?r:r.filter(n=>n.deprecationReason==null)}}},interfaces:{type:new mt(new je(Mt)),resolve(e){if(tt(e)||rt(e))return e.getInterfaces()}},possibleTypes:{type:new mt(new je(Mt)),resolve(e,t,r,{schema:n}){if(Yu(e))return n.getPossibleTypes(e)}},enumValues:{type:new mt(new je(dd)),args:{includeDeprecated:{type:ct,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(bt(e)){const r=e.getValues();return t?r:r.filter(n=>n.deprecationReason==null)}}},inputFields:{type:new mt(new je(is)),args:{includeDeprecated:{type:ct,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(dt(e)){const r=Object.values(e.getFields());return t?r:r.filter(n=>n.deprecationReason==null)}}},ofType:{type:Mt,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:ct,resolve:e=>{if(dt(e))return e.isOneOf}}})}),ud=new Gt({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new je(Ke),resolve:e=>e.name},description:{type:Ke,resolve:e=>e.description},args:{type:new je(new mt(new je(is))),args:{includeDeprecated:{type:ct,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(r=>r.deprecationReason==null)}},type:{type:new je(Mt),resolve:e=>e.type},isDeprecated:{type:new je(ct),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ke,resolve:e=>e.deprecationReason}})}),is=new Gt({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new je(Ke),resolve:e=>e.name},description:{type:Ke,resolve:e=>e.description},type:{type:new je(Mt),resolve:e=>e.type},defaultValue:{type:Ke,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:r}=e,n=sn(r,t);return n?Lt(n):null}},isDeprecated:{type:new je(ct),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ke,resolve:e=>e.deprecationReason}})}),dd=new Gt({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new je(Ke),resolve:e=>e.name},description:{type:Ke,resolve:e=>e.description},isDeprecated:{type:new je(ct),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ke,resolve:e=>e.deprecationReason}})});var Ze;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(Ze||(Ze={}));const fd=new nn({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Ze.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Ze.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Ze.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Ze.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Ze.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Ze.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Ze.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Ze.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});new je(oi),new je(Ke),new je(Ke);const si=Object.freeze([oi,ld,pd,Mt,ud,is,dd,fd]);function md(e){return si.some(({name:t})=>e.name===t)}function jE(e){return xt(e,hd)}function CE(e){if(!jE(e))throw new Error(`Expected ${be(e)} to be a GraphQL schema.`);return e}class hd{constructor(t){var r,n;this.__validationErrors=t.assumeValid===!0?[]:void 0,dr(t)||Be(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||Be(!1,`"types" must be Array if provided but got: ${be(t.types)}.`),!t.directives||Array.isArray(t.directives)||Be(!1,`"directives" must be Array if provided but got: ${be(t.directives)}.`),this.description=t.description,this.extensions=vt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(n=t.directives)!==null&&n!==void 0?n:Or;const o=new Set(t.types);if(t.types!=null)for(const s of t.types)o.delete(s),Nt(s,o);this._queryType!=null&&Nt(this._queryType,o),this._mutationType!=null&&Nt(this._mutationType,o),this._subscriptionType!=null&&Nt(this._subscriptionType,o);for(const s of this._directives)if(sd(s))for(const a of s.args)Nt(a.type,o);Nt(oi,o),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const s of o){if(s==null)continue;const a=s.name;if(a||Be(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[a]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${a}".`);if(this._typeMap[a]=s,rt(s)){for(const c of s.getInterfaces())if(rt(c)){let i=this._implementationsMap[c.name];i===void 0&&(i=this._implementationsMap[c.name]={objects:[],interfaces:[]}),i.interfaces.push(s)}}else if(tt(s)){for(const c of s.getInterfaces())if(rt(c)){let i=this._implementationsMap[c.name];i===void 0&&(i=this._implementationsMap[c.name]={objects:[],interfaces:[]}),i.objects.push(s)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case gt.QUERY:return this.getQueryType();case gt.MUTATION:return this.getMutationType();case gt.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return Tt(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){return this._implementationsMap[t.name]??{objects:[],interfaces:[]}}isSubType(t,r){let n=this._subTypeMap[t.name];if(n===void 0){if(n=Object.create(null),Tt(t))for(const o of t.getTypes())n[o.name]=!0;else{const o=this.getImplementations(t);for(const s of o.objects)n[s.name]=!0;for(const s of o.interfaces)n[s.name]=!0}this._subTypeMap[t.name]=n}return n[r.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(r=>r.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}}function Nt(e,t){const r=$E(e);if(!t.has(r)){if(t.add(r),Tt(r))for(const n of r.getTypes())Nt(n,t);else if(tt(r)||rt(r)){for(const n of r.getInterfaces())Nt(n,t);for(const n of Object.values(r.getFields())){Nt(n.type,t);for(const o of n.args)Nt(o.type,t)}}else if(dt(r))for(const n of Object.values(r.getFields()))Nt(n.type,t)}return t}function AE(e){if(CE(e),e.__validationErrors)return e.__validationErrors;const t=new RE(e);DE(t),qE(t),LE(t);const r=t.getErrors();return e.__validationErrors=r,r}class RE{constructor(t){this._errors=[],this.schema=t}reportError(t,r){const n=Array.isArray(r)?r.filter(Boolean):r;this._errors.push(new ge(t,{nodes:n}))}getErrors(){return this._errors}}function DE(e){const t=e.schema,r=t.getQueryType();if(!r)e.reportError("Query root type must be provided.",t.astNode);else if(!tt(r)){var n;e.reportError(`Query root type must be Object type, it cannot be ${be(r)}.`,(n=ai(t,gt.QUERY))!==null&&n!==void 0?n:r.astNode)}const o=t.getMutationType();if(o&&!tt(o)){var s;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${be(o)}.`,(s=ai(t,gt.MUTATION))!==null&&s!==void 0?s:o.astNode)}const a=t.getSubscriptionType();if(a&&!tt(a)){var c;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${be(a)}.`,(c=ai(t,gt.SUBSCRIPTION))!==null&&c!==void 0?c:a.astNode)}}function ai(e,t){var r;return(r=[e.astNode,...e.extensionASTNodes].flatMap(n=>{var o;return(o=n?.operationTypes)!==null&&o!==void 0?o:[]}).find(n=>n.operation===t))===null||r===void 0?void 0:r.type}function qE(e){for(const r of e.schema.getDirectives()){if(!sd(r)){e.reportError(`Expected directive but got: ${be(r)}.`,r?.astNode);continue}fr(e,r),r.locations.length===0&&e.reportError(`Directive @${r.name} must include 1 or more locations.`,r.astNode);for(const n of r.args)if(fr(e,n),ns(n.type)||e.reportError(`The type of @${r.name}(${n.name}:) must be Input Type but got: ${be(n.type)}.`,n.astNode),os(n)&&n.deprecationReason!=null){var t;e.reportError(`Required argument @${r.name}(${n.name}:) cannot be deprecated.`,[ii(n.astNode),(t=n.astNode)===null||t===void 0?void 0:t.type])}}}function fr(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function LE(e){const t=JE(e),r=e.schema.getTypeMap();for(const n of Object.values(r)){if(!wE(n)){e.reportError(`Expected GraphQL named type but got: ${be(n)}.`,n.astNode);continue}md(n)||fr(e,n),tt(n)||rt(n)?(ME(e,n),VE(e,n)):Tt(n)?UE(e,n):bt(n)?BE(e,n):dt(n)&&(GE(e,n),t(n))}}function ME(e,t){const r=Object.values(t.getFields());r.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const a of r){if(fr(e,a),!Ku(a.type)){var n;e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${be(a.type)}.`,(n=a.astNode)===null||n===void 0?void 0:n.type)}for(const c of a.args){const i=c.name;if(fr(e,c),!ns(c.type)){var o;e.reportError(`The type of ${t.name}.${a.name}(${i}:) must be Input Type but got: ${be(c.type)}.`,(o=c.astNode)===null||o===void 0?void 0:o.type)}if(os(c)&&c.deprecationReason!=null){var s;e.reportError(`Required argument ${t.name}.${a.name}(${i}:) cannot be deprecated.`,[ii(c.astNode),(s=c.astNode)===null||s===void 0?void 0:s.type])}}}}function VE(e,t){const r=Object.create(null);for(const n of t.getInterfaces()){if(!rt(n)){e.reportError(`Type ${be(t)} must only implement Interface types, it cannot implement ${be(n)}.`,an(t,n));continue}if(t===n){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,an(t,n));continue}if(r[n.name]){e.reportError(`Type ${t.name} can only implement ${n.name} once.`,an(t,n));continue}r[n.name]=!0,zE(e,t,n),FE(e,t,n)}}function FE(e,t,r){const n=t.getFields();for(const i of Object.values(r.getFields())){const l=i.name,p=n[l];if(!p){e.reportError(`Interface field ${r.name}.${l} expected but ${t.name} does not provide it.`,[i.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!as(e.schema,p.type,i.type)){var o,s;e.reportError(`Interface field ${r.name}.${l} expects type ${be(i.type)} but ${t.name}.${l} is type ${be(p.type)}.`,[(o=i.astNode)===null||o===void 0?void 0:o.type,(s=p.astNode)===null||s===void 0?void 0:s.type])}for(const f of i.args){const $=f.name,m=p.args.find(_=>_.name===$);if(!m){e.reportError(`Interface field argument ${r.name}.${l}(${$}:) expected but ${t.name}.${l} does not provide it.`,[f.astNode,p.astNode]);continue}if(!nd(f.type,m.type)){var a,c;e.reportError(`Interface field argument ${r.name}.${l}(${$}:) expects type ${be(f.type)} but ${t.name}.${l}(${$}:) is type ${be(m.type)}.`,[(a=f.astNode)===null||a===void 0?void 0:a.type,(c=m.astNode)===null||c===void 0?void 0:c.type])}}for(const f of p.args){const $=f.name;!i.args.find(m=>m.name===$)&&os(f)&&e.reportError(`Object field ${t.name}.${l} includes required argument ${$} that is missing from the Interface field ${r.name}.${l}.`,[f.astNode,i.astNode])}}}function zE(e,t,r){const n=t.getInterfaces();for(const o of r.getInterfaces())n.includes(o)||e.reportError(o===t?`Type ${t.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${t.name} must implement ${o.name} because it is implemented by ${r.name}.`,[...an(r,o),...an(t,r)])}function UE(e,t){const r=t.getTypes();r.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const n=Object.create(null);for(const o of r){if(n[o.name]){e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,yd(t,o.name));continue}n[o.name]=!0,tt(o)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${be(o)}.`,yd(t,String(o)))}}function BE(e,t){const r=t.getValues();r.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const n of r)fr(e,n)}function GE(e,t){const r=Object.values(t.getFields());r.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const s of r){if(fr(e,s),!ns(s.type)){var n;e.reportError(`The type of ${t.name}.${s.name} must be Input Type but got: ${be(s.type)}.`,(n=s.astNode)===null||n===void 0?void 0:n.type)}if(PE(s)&&s.deprecationReason!=null){var o;e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[ii(s.astNode),(o=s.astNode)===null||o===void 0?void 0:o.type])}t.isOneOf&&KE(t,s,e)}}function KE(e,t,r){if(We(t.type)){var n;r.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(n=t.astNode)===null||n===void 0?void 0:n.type)}t.defaultValue!==void 0&&r.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function JE(e){const t=Object.create(null),r=[],n=Object.create(null);return o;function o(s){if(t[s.name])return;t[s.name]=!0,n[s.name]=r.length;const a=Object.values(s.getFields());for(const c of a)if(We(c.type)&&dt(c.type.ofType)){const i=c.type.ofType,l=n[i.name];if(r.push(c),l===void 0)o(i);else{const p=r.slice(l),f=p.map($=>$.name).join(".");e.reportError(`Cannot reference Input Object "${i.name}" within itself through a series of non-null fields: "${f}".`,p.map($=>$.astNode))}r.pop()}n[s.name]=void 0}}function an(e,t){const{astNode:r,extensionASTNodes:n}=e;return(r!=null?[r,...n]:n).flatMap(o=>{var s;return(s=o.interfaces)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===t.name)}function yd(e,t){const{astNode:r,extensionASTNodes:n}=e;return(r!=null?[r,...n]:n).flatMap(o=>{var s;return(s=o.types)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===t)}function ii(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(r=>r.name.value===ni.name)}function YE(e){return e.kind===W.SCHEMA_DEFINITION||cn(e)||e.kind===W.DIRECTIVE_DEFINITION}function cn(e){return e.kind===W.SCALAR_TYPE_DEFINITION||e.kind===W.OBJECT_TYPE_DEFINITION||e.kind===W.INTERFACE_TYPE_DEFINITION||e.kind===W.UNION_TYPE_DEFINITION||e.kind===W.ENUM_TYPE_DEFINITION||e.kind===W.INPUT_OBJECT_TYPE_DEFINITION}function WE(e){return e.kind===W.SCHEMA_EXTENSION||e.kind===W.DIRECTIVE_EXTENSION||ci(e)}function ci(e){return e.kind===W.SCALAR_TYPE_EXTENSION||e.kind===W.OBJECT_TYPE_EXTENSION||e.kind===W.INTERFACE_TYPE_EXTENSION||e.kind===W.UNION_TYPE_EXTENSION||e.kind===W.ENUM_TYPE_EXTENSION||e.kind===W.INPUT_OBJECT_TYPE_EXTENSION}function HE(e){const t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():Or;for(const a of n)t[a.name]=a.args.map(c=>c.name);const o=e.getDocument().definitions;for(const a of o)if(a.kind===W.DIRECTIVE_DEFINITION){var s;const c=(s=a.arguments)!==null&&s!==void 0?s:[];t[a.name.value]=c.map(i=>i.name.value)}return{Directive(a){const c=a.name.value,i=t[c];if(a.arguments&&i)for(const l of a.arguments){const p=l.name.value;if(!i.includes(p)){const f=ts(p,i);e.reportError(new ge(`Unknown argument "${p}" on directive "@${c}".`+Zo(f),{nodes:l}))}}return!1}}}function XE(e){const t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():Or;for(const s of n)t[s.name]=s.locations;const o=e.getDocument().definitions;for(const s of o)s.kind===W.DIRECTIVE_DEFINITION&&(t[s.name.value]=s.locations.map(a=>a.value));return{Directive(s,a,c,i,l){const p=s.name.value,f=t[p];if(!f){e.reportError(new ge(`Unknown directive "@${p}".`,{nodes:s}));return}const $=QE(l);$&&!f.includes($)&&e.reportError(new ge(`Directive "@${p}" may not be used on ${$}.`,{nodes:s}))}}}function QE(e){const t=e[e.length-1];switch("kind"in t||Pt(!1),t.kind){case W.OPERATION_DEFINITION:return ZE(t.operation);case W.FIELD:return ve.FIELD;case W.FRAGMENT_SPREAD:return ve.FRAGMENT_SPREAD;case W.INLINE_FRAGMENT:return ve.INLINE_FRAGMENT;case W.FRAGMENT_DEFINITION:return ve.FRAGMENT_DEFINITION;case W.VARIABLE_DEFINITION:return ve.VARIABLE_DEFINITION;case W.SCHEMA_DEFINITION:case W.SCHEMA_EXTENSION:return ve.SCHEMA;case W.SCALAR_TYPE_DEFINITION:case W.SCALAR_TYPE_EXTENSION:return ve.SCALAR;case W.OBJECT_TYPE_DEFINITION:case W.OBJECT_TYPE_EXTENSION:return ve.OBJECT;case W.FIELD_DEFINITION:return ve.FIELD_DEFINITION;case W.INTERFACE_TYPE_DEFINITION:case W.INTERFACE_TYPE_EXTENSION:return ve.INTERFACE;case W.UNION_TYPE_DEFINITION:case W.UNION_TYPE_EXTENSION:return ve.UNION;case W.ENUM_TYPE_DEFINITION:case W.ENUM_TYPE_EXTENSION:return ve.ENUM;case W.ENUM_VALUE_DEFINITION:return ve.ENUM_VALUE;case W.INPUT_OBJECT_TYPE_DEFINITION:case W.INPUT_OBJECT_TYPE_EXTENSION:return ve.INPUT_OBJECT;case W.INPUT_VALUE_DEFINITION:{const r=e[e.length-3];return"kind"in r||Pt(!1),r.kind===W.INPUT_OBJECT_TYPE_DEFINITION?ve.INPUT_FIELD_DEFINITION:ve.ARGUMENT_DEFINITION}case W.DIRECTIVE_DEFINITION:case W.DIRECTIVE_EXTENSION:return ve.DIRECTIVE_DEFINITION;default:Pt(!1,"Unexpected kind: "+be(t.kind))}}function ZE(e){switch(e){case gt.QUERY:return ve.QUERY;case gt.MUTATION:return ve.MUTATION;case gt.SUBSCRIPTION:return ve.SUBSCRIPTION}}function e_(e){const t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);for(const s of e.getDocument().definitions)cn(s)&&(n[s.name.value]=!0);const o=[...Object.keys(r),...Object.keys(n)];return{NamedType(s,a,c,i,l){const p=s.name.value;if(!r[p]&&!n[p]){var f;const $=(f=l[2])!==null&&f!==void 0?f:c,m=$!=null&&t_($);if(m&&gd.includes(p))return;const _=ts(p,m?gd.concat(o):o);e.reportError(new ge(`Unknown type "${p}".`+Zo(_),{nodes:s}))}}}}const gd=[...ri,...si].map(e=>e.name);function t_(e){return"kind"in e&&(YE(e)||WE(e))}function r_(e){var t,r,n;const o=e.getSchema(),s=(t=(r=(n=o?.astNode)!==null&&n!==void 0?n:o?.getQueryType())!==null&&r!==void 0?r:o?.getMutationType())!==null&&t!==void 0?t:o?.getSubscriptionType();let a=0;return{SchemaDefinition(c){if(s){e.reportError(new ge("Cannot define a new schema within a schema extension.",{nodes:c}));return}a>0&&e.reportError(new ge("Must provide only one schema definition.",{nodes:c})),++a}}}function n_(e){const t=e.getSchema(),r=Object.create(null);for(const o of e.getDocument().definitions)cn(o)&&(r[o.name.value]=o);return{ScalarTypeExtension:n,ObjectTypeExtension:n,InterfaceTypeExtension:n,UnionTypeExtension:n,EnumTypeExtension:n,InputObjectTypeExtension:n};function n(o){const s=o.name.value,a=r[s],c=t?.getType(s);let i;if(a?i=o_[a.kind]:c&&(i=s_(c)),i){if(i!==o.kind){const l=a_(o.kind);e.reportError(new ge(`Cannot extend non-${l} type "${s}".`,{nodes:a?[a,o]:o}))}}else{const l=Object.keys({...r,...t?.getTypeMap()}),p=ts(s,l);e.reportError(new ge(`Cannot extend type "${s}" because it is not defined.`+Zo(p),{nodes:o.name}))}}}const o_={[W.SCALAR_TYPE_DEFINITION]:W.SCALAR_TYPE_EXTENSION,[W.OBJECT_TYPE_DEFINITION]:W.OBJECT_TYPE_EXTENSION,[W.INTERFACE_TYPE_DEFINITION]:W.INTERFACE_TYPE_EXTENSION,[W.UNION_TYPE_DEFINITION]:W.UNION_TYPE_EXTENSION,[W.ENUM_TYPE_DEFINITION]:W.ENUM_TYPE_EXTENSION,[W.INPUT_OBJECT_TYPE_DEFINITION]:W.INPUT_OBJECT_TYPE_EXTENSION};function s_(e){if(or(e))return W.SCALAR_TYPE_EXTENSION;if(tt(e))return W.OBJECT_TYPE_EXTENSION;if(rt(e))return W.INTERFACE_TYPE_EXTENSION;if(Tt(e))return W.UNION_TYPE_EXTENSION;if(bt(e))return W.ENUM_TYPE_EXTENSION;if(dt(e))return W.INPUT_OBJECT_TYPE_EXTENSION;Pt(!1,"Unexpected type: "+be(e))}function a_(e){switch(e){case W.SCALAR_TYPE_EXTENSION:return"scalar";case W.OBJECT_TYPE_EXTENSION:return"object";case W.INTERFACE_TYPE_EXTENSION:return"interface";case W.UNION_TYPE_EXTENSION:return"union";case W.ENUM_TYPE_EXTENSION:return"enum";case W.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:Pt(!1,"Unexpected kind: "+be(e))}}function i_(e){var t;const r=Object.create(null),n=e.getSchema(),o=(t=n?.getDirectives())!==null&&t!==void 0?t:Or;for(const c of o)r[c.name]=kr(c.args.filter(os),i=>i.name);const s=e.getDocument().definitions;for(const c of s)if(c.kind===W.DIRECTIVE_DEFINITION){var a;const i=(a=c.arguments)!==null&&a!==void 0?a:[];r[c.name.value]=kr(i.filter(c_),l=>l.name.value)}return{Directive:{leave(c){const i=c.name.value,l=r[i];if(l){var p;const f=(p=c.arguments)!==null&&p!==void 0?p:[],$=new Set(f.map(m=>m.name.value));for(const[m,_]of Object.entries(l))if(!$.has(m)){const x=Wa(_.type)?be(_.type):Lt(_.type);e.reportError(new ge(`Directive "@${i}" argument "${m}" of type "${x}" is required, but it was not provided.`,{nodes:c}))}}}}}}function c_(e){return e.type.kind===W.NON_NULL_TYPE&&e.defaultValue==null}function mr(e,t,r){if(e&&e.kind!==W.VARIABLE){if(We(t))return e.kind===W.NULL?void 0:mr(e,t.ofType,r);if(e.kind===W.NULL)return null;if(kt(t)){const n=t.ofType;if(e.kind===W.LIST){const s=[];for(const a of e.values)if(vd(a,r)){if(We(n))return;s.push(null)}else{const c=mr(a,n,r);if(c===void 0)return;s.push(c)}return s}const o=mr(e,n,r);return o===void 0?void 0:[o]}if(dt(t)){if(e.kind!==W.OBJECT)return;const n=Object.create(null),o=kr(e.fields,s=>s.name.value);for(const s of Object.values(t.getFields())){const a=o[s.name];if(!a||vd(a.value,r)){if(s.defaultValue!==void 0)n[s.name]=s.defaultValue;else if(We(s.type))return;continue}const c=mr(a.value,s.type,r);if(c===void 0)return;n[s.name]=c}if(t.isOneOf){const s=Object.keys(n);if(s.length!==1||n[s[0]]===null)return}return n}if(Ju(t)){let n;try{n=t.parseLiteral(e,r)}catch{return}return n===void 0?void 0:n}Pt(!1,"Unexpected input type: "+be(t))}}function vd(e,t){return e.kind===W.VARIABLE&&t==null}function l_(e,t,r){var n;const o=Object.create(null),s=(n=t.arguments)!==null&&n!==void 0?n:[],a=kr(s,c=>c.name.value);for(const c of e.args){const i=c.name,l=c.type,p=a[i];if(!p){if(c.defaultValue!==void 0)o[i]=c.defaultValue;else if(We(l))throw new ge(`Argument "${i}" of required type "${be(l)}" was not provided.`,{nodes:t});continue}const f=p.value;let $=f.kind===W.NULL;if(f.kind===W.VARIABLE){const _=f.name.value;{if(c.defaultValue!==void 0)o[i]=c.defaultValue;else if(We(l))throw new ge(`Argument "${i}" of required type "${be(l)}" was provided the variable "$${_}" which was not provided a runtime value.`,{nodes:f});continue}}if($&&We(l))throw new ge(`Argument "${i}" of non-null type "${be(l)}" must not be null.`,{nodes:f});const m=mr(f,l,r);if(m===void 0)throw new ge(`Argument "${i}" has invalid value ${Lt(f)}.`,{nodes:f});o[i]=m}return{...o}}function li(e,t,r){var n;const o=(n=t.directives)===null||n===void 0?void 0:n.find(s=>s.name.value===e.name);if(o)return l_(e,o,r)}function bd(e,t){const r=new Map;for(const n of e){const o=t(n),s=r.get(o);s===void 0?r.set(o,[n]):s.push(n)}return r}function p_(e){return{DirectiveDefinition(n){var o;const s=(o=n.arguments)!==null&&o!==void 0?o:[];return r(`@${n.name.value}`,s)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(n){var o;const s=n.name.value,a=(o=n.fields)!==null&&o!==void 0?o:[];for(const i of a){var c;const l=i.name.value,p=(c=i.arguments)!==null&&c!==void 0?c:[];r(`${s}.${l}`,p)}return!1}function r(n,o){const s=bd(o,a=>a.name.value);for(const[a,c]of s)c.length>1&&e.reportError(new ge(`Argument "${n}(${a}:)" can only be defined once.`,{nodes:c.map(i=>i.name)}));return!1}}function u_(e){return{Field:t,Directive:t};function t(r){var n;const o=(n=r.arguments)!==null&&n!==void 0?n:[],s=bd(o,a=>a.name.value);for(const[a,c]of s)c.length>1&&e.reportError(new ge(`There can be only one argument named "${a}".`,{nodes:c.map(i=>i.name)}))}}function d_(e){const t=Object.create(null),r=e.getSchema();return{DirectiveDefinition(n){const o=n.name.value;if(r!=null&&r.getDirective(o)){e.reportError(new ge(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:n.name}));return}return t[o]?e.reportError(new ge(`There can be only one directive named "@${o}".`,{nodes:[t[o],n.name]})):t[o]=n.name,!1}}}function f_(e){const t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():Or;for(const i of n)t[i.name]=!i.isRepeatable;const o=e.getDocument().definitions;for(const i of o)i.kind===W.DIRECTIVE_DEFINITION&&(t[i.name.value]=!i.repeatable);const s=Object.create(null),a=Object.create(null),c=Object.create(null);return{enter(i){if(!("directives"in i)||!i.directives)return;let l;if(i.kind===W.SCHEMA_DEFINITION||i.kind===W.SCHEMA_EXTENSION)l=s;else if(cn(i)||ci(i)){const p=i.name.value;l=a[p],l===void 0&&(a[p]=l=Object.create(null))}else if(i.kind===W.DIRECTIVE_DEFINITION||i.kind===W.DIRECTIVE_EXTENSION){const p=i.name.value;l=c[p],l===void 0&&(c[p]=l=Object.create(null))}else l=Object.create(null);for(const p of i.directives){const f=p.name.value;t[f]&&(l[f]?e.reportError(new ge(`The directive "@${f}" can only be used once at this location.`,{nodes:[l[f],p]})):l[f]=p)}}}}function m_(e){const t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{EnumTypeDefinition:o,EnumTypeExtension:o};function o(s){var a;const c=s.name.value;n[c]||(n[c]=Object.create(null));const i=(a=s.values)!==null&&a!==void 0?a:[],l=n[c];for(const p of i){const f=p.name.value,$=r[c];bt($)&&$.getValue(f)?e.reportError(new ge(`Enum value "${c}.${f}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):l[f]?e.reportError(new ge(`Enum value "${c}.${f}" can only be defined once.`,{nodes:[l[f],p.name]})):l[f]=p.name}return!1}}function h_(e){const t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{InputObjectTypeDefinition:o,InputObjectTypeExtension:o,InterfaceTypeDefinition:o,InterfaceTypeExtension:o,ObjectTypeDefinition:o,ObjectTypeExtension:o};function o(s){var a;const c=s.name.value;n[c]||(n[c]=Object.create(null));const i=(a=s.fields)!==null&&a!==void 0?a:[],l=n[c];for(const p of i){const f=p.name.value;y_(r[c],f)?e.reportError(new ge(`Field "${c}.${f}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):l[f]?e.reportError(new ge(`Field "${c}.${f}" can only be defined once.`,{nodes:[l[f],p.name]})):l[f]=p.name}return!1}}function y_(e,t){return tt(e)||rt(e)||dt(e)?e.getFields()[t]!=null:!1}function g_(e){const t=[];let r=Object.create(null);return{ObjectValue:{enter(){t.push(r),r=Object.create(null)},leave(){const n=t.pop();n||Pt(!1),r=n}},ObjectField(n){const o=n.name.value;r[o]?e.reportError(new ge(`There can be only one input field named "${o}".`,{nodes:[r[o],n.name]})):r[o]=n.name}}}function v_(e){const t=e.getSchema(),r=Object.create(null),n=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:o,SchemaExtension:o};function o(s){var a;const c=(a=s.operationTypes)!==null&&a!==void 0?a:[];for(const i of c){const l=i.operation,p=r[l];n[l]?e.reportError(new ge(`Type for ${l} already defined in the schema. It cannot be redefined.`,{nodes:i})):p?e.reportError(new ge(`There can be only one ${l} type in schema.`,{nodes:[p,i]})):r[l]=i}return!1}}function b_(e){const t=Object.create(null),r=e.getSchema();return{ScalarTypeDefinition:n,ObjectTypeDefinition:n,InterfaceTypeDefinition:n,UnionTypeDefinition:n,EnumTypeDefinition:n,InputObjectTypeDefinition:n};function n(o){const s=o.name.value;if(r!=null&&r.getType(s)){e.reportError(new ge(`Type "${s}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:o.name}));return}return t[s]?e.reportError(new ge(`There can be only one type named "${s}".`,{nodes:[t[s],o.name]})):t[s]=o.name,!1}}const w_=Object.freeze([r_,v_,b_,m_,h_,p_,d_,e_,XE,f_,n_,HE,u_,g_,i_]);class $_{constructor(t,r){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=r}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let r;if(this._fragments)r=this._fragments;else{r=Object.create(null);for(const n of this.getDocument().definitions)n.kind===W.FRAGMENT_DEFINITION&&(r[n.name.value]=n);this._fragments=r}return r[t]}getFragmentSpreads(t){let r=this._fragmentSpreads.get(t);if(!r){r=[];const n=[t];let o;for(;o=n.pop();)for(const s of o.selections)s.kind===W.FRAGMENT_SPREAD?r.push(s):s.selectionSet&&n.push(s.selectionSet);this._fragmentSpreads.set(t,r)}return r}getRecursivelyReferencedFragments(t){let r=this._recursivelyReferencedFragments.get(t);if(!r){r=[];const n=Object.create(null),o=[t.selectionSet];let s;for(;s=o.pop();)for(const a of this.getFragmentSpreads(s)){const c=a.name.value;if(n[c]!==!0){n[c]=!0;const i=this.getFragment(c);i&&(r.push(i),o.push(i.selectionSet))}}this._recursivelyReferencedFragments.set(t,r)}return r}}class E_ extends $_{constructor(t,r,n){super(t,n),this._schema=r}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}qt(za,e=>e.filter(t=>t!=="description"));function __(e,t,r=w_){const n=[],o=new E_(e,t,a=>{n.push(a)}),s=r.map(a=>a(o));return Ka(e,Bu(s)),n}function P_(e){const t=__(e);if(t.length!==0)throw new Error(t.map(r=>r.message).join(`
|
|
70
|
-
|
|
71
|
-
`))}function x_(e,t,r){var n,o,s,a;const c=[],i=Object.create(null),l=Object.create(null),p=[];let f;const $=[];for(const T of t.definitions)if(T.kind===W.SCHEMA_DEFINITION)f=T;else if(T.kind===W.SCHEMA_EXTENSION)$.push(T);else if(cn(T))c.push(T);else if(ci(T)){const M=T.name.value,U=i[M];i[M]=U?U.concat([T]):[T]}else if(T.kind===W.DIRECTIVE_DEFINITION)p.push(T);else if(T.kind===W.DIRECTIVE_EXTENSION){const M=T.name.value,U=l[M];l[M]=U?U.concat([T]):[T]}if(Object.keys(i).length===0&&c.length===0&&Object.keys(l).length===0&&p.length===0&&$.length===0&&f==null)return e;const m=Object.create(null);for(const T of e.types)m[T.name]=h(T);for(const T of c){var _;const M=T.name.value;m[M]=(_=wd[M])!==null&&_!==void 0?_:S(T)}const x=Object.create(null);for(const T of e.directives)x[T.name]=le(T);const b={query:e.query&&d(e.query),mutation:e.mutation&&d(e.mutation),subscription:e.subscription&&d(e.subscription),...f&&K([f]),...K($)},w=Object.values(x);return{description:(n=f)===null||n===void 0||(o=n.description)===null||o===void 0?void 0:o.value,...b,types:Object.values(m),directives:[...w.map(P),...p.map(ce)],extensions:Object.create(null),astNode:(s=f)!==null&&s!==void 0?s:e.astNode,extensionASTNodes:e.extensionASTNodes.concat($),assumeValid:(a=r?.assumeValid)!==null&&a!==void 0?a:!1};function y(T){return kt(T)?new mt(y(T.ofType)):We(T)?new je(y(T.ofType)):d(T)}function d(T){return m[T.name]}function P(T){const M=T.toConfig();return new Kt({...M,args:qt(M.args,L)})}function h(T){if(md(T)||IE(T))return T;if(or(T))return O(T);if(tt(T))return C(T);if(rt(T))return q(T);if(Tt(T))return z(T);if(bt(T))return E(T);if(dt(T))return g(T);Pt(!1,"Unexpected type: "+be(T))}function g(T){var M;const U=T.toConfig(),J=(M=i[U.name])!==null&&M!==void 0?M:[];return new Za({...U,fields:()=>({...qt(U.fields,re=>({...re,type:y(re.type)})),...N(J)}),extensionASTNodes:U.extensionASTNodes.concat(J)})}function E(T){var M;const U=T.toConfig(),J=(M=i[T.name])!==null&&M!==void 0?M:[];return new nn({...U,values:{...U.values,...V(J)},extensionASTNodes:U.extensionASTNodes.concat(J)})}function O(T){var M;const U=T.toConfig(),J=(M=i[U.name])!==null&&M!==void 0?M:[];let re=U.specifiedByURL;for(const k of J){var I;re=(I=$d(k))!==null&&I!==void 0?I:re}return new sr({...U,specifiedByURL:re,extensionASTNodes:U.extensionASTNodes.concat(J)})}function C(T){var M;const U=T.toConfig(),J=(M=i[U.name])!==null&&M!==void 0?M:[];return new Gt({...U,interfaces:()=>[...T.getInterfaces().map(d),...j(J)],fields:()=>({...qt(U.fields,F),...Ee(J)}),extensionASTNodes:U.extensionASTNodes.concat(J)})}function q(T){var M;const U=T.toConfig(),J=(M=i[U.name])!==null&&M!==void 0?M:[];return new Xa({...U,interfaces:()=>[...T.getInterfaces().map(d),...j(J)],fields:()=>({...qt(U.fields,F),...Ee(J)}),extensionASTNodes:U.extensionASTNodes.concat(J)})}function z(T){var M;const U=T.toConfig(),J=(M=i[U.name])!==null&&M!==void 0?M:[];return new Qa({...U,types:()=>[...T.getTypes().map(d),...v(J)],extensionASTNodes:U.extensionASTNodes.concat(J)})}function F(T){return{...T,type:y(T.type),args:T.args&&qt(T.args,L)}}function L(T){return{...T,type:y(T.type)}}function K(T){const M={};for(const J of T){var U;const re=(U=J.operationTypes)!==null&&U!==void 0?U:[];for(const I of re)M[I.operation]=ue(I.type)}return M}function le(T){var M,U;const J=T.toConfig(),re=(M=l[J.name])!==null&&M!==void 0?M:[],I=(U=J.deprecationReason)!==null&&U!==void 0?U:re.map(k=>hr(k)).find(k=>k!=null);return new Kt({...J,deprecationReason:I,extensionASTNodes:J.extensionASTNodes.concat(re)})}function ue(T){var M;const U=T.name.value,J=(M=wd[U])!==null&&M!==void 0?M:m[U];if(J===void 0)throw new Error(`Unknown type: "${U}".`);return J}function xe(T){return T.kind===W.LIST_TYPE?new mt(xe(T.type)):T.kind===W.NON_NULL_TYPE?new je(xe(T.type)):ue(T)}function ce(T){var M,U,J;const re=(M=l[T.name.value])!==null&&M!==void 0?M:[],I=(U=hr(T))!==null&&U!==void 0?U:re.map(k=>hr(k)).find(k=>k!=null);return new Kt({name:T.name.value,description:(J=T.description)===null||J===void 0?void 0:J.value,locations:T.locations.map(({value:k})=>k),isRepeatable:T.repeatable,args:R(T.arguments),deprecationReason:I,astNode:T,extensionASTNodes:re})}function Ee(T){const M=Object.create(null);for(const re of T){var U;const I=(U=re.fields)!==null&&U!==void 0?U:[];for(const k of I){var J;M[k.name.value]={type:xe(k.type),description:(J=k.description)===null||J===void 0?void 0:J.value,args:R(k.arguments),deprecationReason:hr(k),astNode:k}}}return M}function R(T){const M=T??[],U=Object.create(null);for(const re of M){var J;const I=xe(re.type);U[re.name.value]={type:I,description:(J=re.description)===null||J===void 0?void 0:J.value,defaultValue:mr(re.defaultValue,I),deprecationReason:hr(re),astNode:re}}return U}function N(T){const M=Object.create(null);for(const re of T){var U;const I=(U=re.fields)!==null&&U!==void 0?U:[];for(const k of I){var J;const D=xe(k.type);M[k.name.value]={type:D,description:(J=k.description)===null||J===void 0?void 0:J.value,defaultValue:mr(k.defaultValue,D),deprecationReason:hr(k),astNode:k}}}return M}function V(T){const M=Object.create(null);for(const re of T){var U;const I=(U=re.values)!==null&&U!==void 0?U:[];for(const k of I){var J;M[k.name.value]={description:(J=k.description)===null||J===void 0?void 0:J.value,deprecationReason:hr(k),astNode:k}}}return M}function j(T){return T.flatMap(M=>{var U,J;return(U=(J=M.interfaces)===null||J===void 0?void 0:J.map(ue))!==null&&U!==void 0?U:[]})}function v(T){return T.flatMap(M=>{var U,J;return(U=(J=M.types)===null||J===void 0?void 0:J.map(ue))!==null&&U!==void 0?U:[]})}function S(T){var M;const U=T.name.value,J=(M=i[U])!==null&&M!==void 0?M:[];switch(T.kind){case W.OBJECT_TYPE_DEFINITION:{var re;const oe=[T,...J];return new Gt({name:U,description:(re=T.description)===null||re===void 0?void 0:re.value,interfaces:()=>j(oe),fields:()=>Ee(oe),astNode:T,extensionASTNodes:J})}case W.INTERFACE_TYPE_DEFINITION:{var I;const oe=[T,...J];return new Xa({name:U,description:(I=T.description)===null||I===void 0?void 0:I.value,interfaces:()=>j(oe),fields:()=>Ee(oe),astNode:T,extensionASTNodes:J})}case W.ENUM_TYPE_DEFINITION:{var k;const oe=[T,...J];return new nn({name:U,description:(k=T.description)===null||k===void 0?void 0:k.value,values:V(oe),astNode:T,extensionASTNodes:J})}case W.UNION_TYPE_DEFINITION:{var D;const oe=[T,...J];return new Qa({name:U,description:(D=T.description)===null||D===void 0?void 0:D.value,types:()=>v(oe),astNode:T,extensionASTNodes:J})}case W.SCALAR_TYPE_DEFINITION:{var B;return new sr({name:U,description:(B=T.description)===null||B===void 0?void 0:B.value,specifiedByURL:$d(T),astNode:T,extensionASTNodes:J})}case W.INPUT_OBJECT_TYPE_DEFINITION:{var H;const oe=[T,...J];return new Za({name:U,description:(H=T.description)===null||H===void 0?void 0:H.value,fields:()=>N(oe),astNode:T,extensionASTNodes:J,isOneOf:S_(T)})}}}}const wd=kr([...ri,...si],e=>e.name);function hr(e){return li(ni,e)?.reason}function $d(e){return li(ad,e)?.url}function S_(e){return!!li(id,e)}function I_(e,t){e!=null&&e.kind===W.DOCUMENT||Be(!1,"Must provide valid Document AST."),t?.assumeValid!==!0&&t?.assumeValidSDL!==!0&&P_(e);const r=x_({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(r.astNode==null)for(const o of r.types)switch(o.name){case"Query":r.query=o;break;case"Mutation":r.mutation=o;break;case"Subscription":r.subscription=o;break}const n=[...r.directives,...Or.filter(o=>r.directives.every(s=>s.name!==o.name))];return new hd({...r,directives:n})}const T_=()=>({Document:{enter:(e,t)=>{let r;try{r=I_(e,{assumeValidSDL:!1})}catch(n){k_(n,t);return}for(const n of AE(r))Ed(n,t)}}});function k_(e,t){if(e instanceof ge)Ed(e,t);else if(e instanceof Error)t.report({message:e.message});else throw e}function Ed(e,t){const r=e.locations?.[0];t.report({message:e.message,node:e.nodes?.[0],loc:r?{start:{line:r.line,col:r.column}}:void 0})}const N_=()=>{const e=(t,r)=>{(!t.description||t.description.value.trim()==="")&&r.report({message:`Type \`${t.name.value}\` should have a non-empty description.`,node:t.name})};return{ObjectTypeDefinition:e,InterfaceTypeDefinition:e,EnumTypeDefinition:e,InputObjectTypeDefinition:e,UnionTypeDefinition:e,ScalarTypeDefinition:e}},O_={struct:T_,assertions:L$,"no-unused-types":G$,"type-description":N_},pi=()=>({Info(e,{report:t}){e.license||t({message:Ma("Info","license"),location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/info-license"})}}),_d=()=>({Paths(e,{report:t,location:r}){const n=[];for(const o of Object.keys(e)){const s=n.find(a=>j_(a,o));s&&t({message:`Paths should resolve unambiguously. Found two ambiguous paths: \`${s}\` and \`${o}\`.`,location:r.child([o]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-ambiguous-paths"}),n.push(o)}}});function j_(e,t){const r=e.split("/"),n=t.split("/");if(r.length!==n.length)return!1;let o=0,s=0,a=!0;for(let c=0;c<r.length;c++){const i=r[c].match(/^{.+?}$/),l=n[c].match(/^{.+?}$/);if(i||l){i&&o++,l&&s++;continue}else r[c]!==n[c]&&(a=!1)}return a&&o===s}function Pd(e){return e.startsWith("{")&&e.endsWith("}")}function C_(e){const t=e.split(/(?:[-._])|([A-Z][a-z]+)/).filter(wn).map(n=>n.toLocaleLowerCase()),r=e.split(/([A-Z]{2,})/).filter(n=>n&&n===n.toUpperCase()).map(n=>n.toLocaleLowerCase());return new Set([...t,...r])}const A_=["get","head","post","put","patch","delete","options","trace"],xd=({splitIntoWords:e,excludedPaths:t})=>({PathItem(r,{key:n,report:o,location:s}){const a=n.toString();if(!a.startsWith("/")||t?.some(i=>a===i))return;const c=a.split("/");for(const i of c){if(!i||Pd(i))continue;const l=p=>e?C_(i).has(p):i.toLocaleLowerCase().includes(p);for(const p of A_)l(p)&&o({message:`path \`${a}\` should not contain http verb ${p}`,location:s.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-http-verbs-in-paths"})}}}),Sd=()=>({Paths(e,{report:t,location:r}){const n=new Map;for(const o of Object.keys(e)){const s=o.replace(/{.+?}/g,"{VARIABLE}"),a=n.get(s);a?t({message:`The path already exists which differs only by path parameter name(s): \`${a}\` and \`${o}\`.`,location:r.child([o]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-identical-paths"}):n.set(s,o)}}});var ui={exports:{}},cs={},ls={},Id;function R_(){if(Id)return ls;Id=1,Object.defineProperty(ls,"__esModule",{value:!0});const e=_e(),t=e.operators,r={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:t.LTE,fail:t.GT},{okStr:"<",ok:t.LT,fail:t.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:t.GTE,fail:t.LT},{okStr:">",ok:t.GT,fail:t.LTE}]}},n={message:a=>(0,e.str)`must be ${s(a).okStr} ${a.schemaCode}`,params:a=>(0,e._)`{comparison: ${s(a).okStr}, limit: ${a.schemaCode}}`},o={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(a){const{data:c,schemaCode:i}=a;a.fail$data((0,e._)`${c} ${s(a).fail} ${i} || isNaN(${c})`)}};function s(a){var c;const i=a.keyword,l=!((c=a.parentSchema)===null||c===void 0)&&c[r[i].exclusive]?1:0;return r[i].ops[l]}return ls.default=o,ls}var ps={},Td;function D_(){if(Td)return ps;Td=1,Object.defineProperty(ps,"__esModule",{value:!0});const e={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},t={keyword:Object.keys(e),type:"number",schemaType:"boolean",code({keyword:r,parentSchema:n}){const o=e[r];if(n[o]===void 0)throw new Error(`${r} can only be used with ${o}`)}};return ps.default=t,ps}var kd;function q_(){if(kd)return cs;kd=1,Object.defineProperty(cs,"__esModule",{value:!0});const e=Hn(),t=xp(),r=Vp(),n=Up(),o=np(),s=R_(),a=D_(),c=["title","description","default"],i=["$schema","id","$defs",{keyword:"$comment"},"definitions",e.default],l=[...o.default.slice(1),s.default,a.default],p=[i,l,(0,t.default)(),n.default,c,r.default];return cs.default=p,cs}const L_="http://json-schema.org/draft-04/schema#",M_="http://json-schema.org/draft-04/schema#",V_="Core schema meta-schema",F_={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},z_="object",U_={id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},B_={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},G_={id:L_,$schema:M_,description:V_,definitions:F_,type:z_,properties:U_,dependencies:B_,default:{}};var Nd;function K_(){return Nd||(Nd=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=Ll(),n=q_(),o=Yp(),s=G_,a=["/properties"],c="http://json-schema.org/draft-04/schema";class i extends r.default{constructor(_={}){super({..._,schemaId:"id",dynamicRef:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(_=>this.addVocabulary(_)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const _=this.opts.$data?this.$dataMetaSchema(s,a):s;this.addMetaSchema(_,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=i,e.exports=t=i,Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var l=Kr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var p=_e();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return p._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return p.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return p.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return p.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return p.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return p.CodeGen}});var f=Un();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var $=Jr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return $.default}})})(ui,ui.exports)),ui.exports}var J_=K_();const Y_=Mr(J_);var di={exports:{}},Od={},jd;function W_(){return jd||(jd=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(z,F){return{validate:z,compare:F}}e.fullFormats={date:t(s,a),time:t(i(!0),l),"date-time":t($(!0),m),"iso-time":t(i(),p),"iso-date-time":t($(),_),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:w,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:q,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:d,int32:{type:"number",validate:g},int64:{type:"number",validate:E},float:{type:"number",validate:O},double:{type:"number",validate:O},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,a),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,l),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,m),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,p),"iso-date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,_),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function r(z){return z%4===0&&(z%100!==0||z%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(z){const F=n.exec(z);if(!F)return!1;const L=+F[1],K=+F[2],le=+F[3];return K>=1&&K<=12&&le>=1&&le<=(K===2&&r(L)?29:o[K])}function a(z,F){if(z&&F)return z>F?1:z<F?-1:0}const c=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function i(z){return function(F){const L=c.exec(F);if(!L)return!1;const K=+L[1],le=+L[2],ue=+L[3],xe=L[4],ce=L[5]==="-"?-1:1,Ee=+(L[6]||0),R=+(L[7]||0);if(Ee>23||R>59||z&&!xe)return!1;if(K<=23&&le<=59&&ue<60)return!0;const N=le-R*ce,V=K-Ee*ce-(N<0?1:0);return(V===23||V===-1)&&(N===59||N===-1)&&ue<61}}function l(z,F){if(!(z&&F))return;const L=new Date("2020-01-01T"+z).valueOf(),K=new Date("2020-01-01T"+F).valueOf();if(L&&K)return L-K}function p(z,F){if(!(z&&F))return;const L=c.exec(z),K=c.exec(F);if(L&&K)return z=L[1]+L[2]+L[3],F=K[1]+K[2]+K[3],z>F?1:z<F?-1:0}const f=/t|\s/i;function $(z){const F=i(z);return function(L){const K=L.split(f);return K.length===2&&s(K[0])&&F(K[1])}}function m(z,F){if(!(z&&F))return;const L=new Date(z).valueOf(),K=new Date(F).valueOf();if(L&&K)return L-K}function _(z,F){if(!(z&&F))return;const[L,K]=z.split(f),[le,ue]=F.split(f),xe=a(L,le);if(xe!==void 0)return xe||l(K,ue)}const x=/\/|:/,b=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function w(z){return x.test(z)&&b.test(z)}const y=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function d(z){return y.lastIndex=0,y.test(z)}const P=-2147483648,h=2**31-1;function g(z){return Number.isInteger(z)&&z<=h&&z>=P}function E(z){return Number.isInteger(z)}function O(){return!0}const C=/[^\\]\\Z/;function q(z){if(C.test(z))return!1;try{return!0}catch{return!1}}})(Od)),Od}var Cd={},fi={exports:{}},Ad={},Jt={},yr={},Rd={},Dd={},qd={},Ld;function us(){return Ld||(Ld=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(w,...y){const d=[w[0]];let P=0;for(;P<y.length;)c(d,y[P]),d.push(w[++P]);return new n(d)}e._=o;const s=new n("+");function a(w,...y){const d=[m(w[0])];let P=0;for(;P<y.length;)d.push(s),c(d,y[P]),d.push(s,m(w[++P]));return i(d),new n(d)}e.str=a;function c(w,y){y instanceof n?w.push(...y._items):y instanceof r?w.push(y):w.push(f(y))}e.addCodeArg=c;function i(w){let y=1;for(;y<w.length-1;){if(w[y]===s){const d=l(w[y-1],w[y+1]);if(d!==void 0){w.splice(y-1,3,d);continue}w[y++]="+"}y++}}function l(w,y){if(y==='""')return w;if(w==='""')return y;if(typeof w=="string")return y instanceof r||w[w.length-1]!=='"'?void 0:typeof y!="string"?`${w.slice(0,-1)}${y}"`:y[0]==='"'?w.slice(0,-1)+y.slice(1):void 0;if(typeof y=="string"&&y[0]==='"'&&!(w instanceof r))return`"${w}${y.slice(1)}`}function p(w,y){return y.emptyStr()?w:w.emptyStr()?y:a`${w}${y}`}e.strConcat=p;function f(w){return typeof w=="number"||typeof w=="boolean"||w===null?w:m(Array.isArray(w)?w.join(","):w)}function $(w){return new n(m(w))}e.stringify=$;function m(w){return JSON.stringify(w).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=m;function _(w){return typeof w=="string"&&e.IDENTIFIER.test(w)?new n(`.${w}`):o`[${w}]`}e.getProperty=_;function x(w){if(typeof w=="string"&&e.IDENTIFIER.test(w))return new n(`${w}`);throw new Error(`CodeGen: invalid export name: ${w}, use explicit $id name mapping`)}e.getEsmExportName=x;function b(w){return new n(w.toString())}e.regexpCode=b})(qd)),qd}var Md={},Vd;function Fd(){return Vd||(Vd=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=us();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:p}={}){this._names={},this._prefixes=l,this._parent=p}toName(l){return l instanceof t.Name?l:this.name(l)}name(l){return new t.Name(this._newName(l))}_newName(l){const p=this._names[l]||this._nameGroup(l);return`${l}${p.index++}`}_nameGroup(l){var p,f;if(!((f=(p=this._parent)===null||p===void 0?void 0:p._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,p){super(p),this.prefix=l}setValue(l,{property:p,itemIndex:f}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(p)}[${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,p){var f;if(p.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const $=this.toName(l),{prefix:m}=$,_=(f=p.key)!==null&&f!==void 0?f:p.ref;let x=this._values[m];if(x){const y=x.get(_);if(y)return y}else x=this._values[m]=new Map;x.set(_,$);const b=this._scope[m]||(this._scope[m]=[]),w=b.length;return b[w]=p.ref,$.setValue(p,{property:m,itemIndex:w}),$}getValue(l,p){const f=this._values[l];if(f)return f.get(p)}scopeRefs(l,p=this._values){return this._reduceValues(p,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,p,f){return this._reduceValues(l,$=>{if($.value===void 0)throw new Error(`CodeGen: name "${$}" has no value`);return $.value.code},p,f)}_reduceValues(l,p,f={},$){let m=t.nil;for(const _ in l){const x=l[_];if(!x)continue;const b=f[_]=f[_]||new Map;x.forEach(w=>{if(b.has(w))return;b.set(w,n.Started);let y=p(w);if(y){const d=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${d} ${w} = ${y};${this.opts._n}`}else if(y=$?.(w))m=(0,t._)`${m}${y}${this.opts._n}`;else throw new r(w);b.set(w,n.Completed)})}return m}}e.ValueScope=c})(Md)),Md}var zd;function Se(){return zd||(zd=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=us(),r=Fd();var n=us();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=Fd();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,S){return this}}class a extends s{constructor(v,S,T){super(),this.varKind=v,this.name=S,this.rhs=T}render({es5:v,_n:S}){const T=v?r.varKinds.var:this.varKind,M=this.rhs===void 0?"":` = ${this.rhs}`;return`${T} ${this.name}${M};`+S}optimizeNames(v,S){if(v[this.name.str])return this.rhs&&(this.rhs=K(this.rhs,v,S)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends s{constructor(v,S,T){super(),this.lhs=v,this.rhs=S,this.sideEffects=T}render({_n:v}){return`${this.lhs} = ${this.rhs};`+v}optimizeNames(v,S){if(!(this.lhs instanceof t.Name&&!v[this.lhs.str]&&!this.sideEffects))return this.rhs=K(this.rhs,v,S),this}get names(){const v=this.lhs instanceof t.Name?{}:{...this.lhs.names};return L(v,this.rhs)}}class i extends c{constructor(v,S,T,M){super(v,T,M),this.op=S}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 p 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,S){return this.code=K(this.code,v,S),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((S,T)=>S+T.render(v),"")}optimizeNodes(){const{nodes:v}=this;let S=v.length;for(;S--;){const T=v[S].optimizeNodes();Array.isArray(T)?v.splice(S,1,...T):T?v[S]=T:v.splice(S,1)}return v.length>0?this:void 0}optimizeNames(v,S){const{nodes:T}=this;let M=T.length;for(;M--;){const U=T[M];U.optimizeNames(v,S)||(le(v,U.names),T.splice(M,1))}return T.length>0?this:void 0}get names(){return this.nodes.reduce((v,S)=>F(v,S.names),{})}}class _ extends m{render(v){return"{"+v._n+super.render(v)+"}"+v._n}}class x extends m{}class b extends _{}b.kind="else";class w extends _{constructor(v,S){super(S),this.condition=v}render(v){let S=`if(${this.condition})`+super.render(v);return this.else&&(S+="else "+this.else.render(v)),S}optimizeNodes(){super.optimizeNodes();const v=this.condition;if(v===!0)return this.nodes;let S=this.else;if(S){const T=S.optimizeNodes();S=this.else=Array.isArray(T)?new b(T):T}if(S)return v===!1?S instanceof w?S:S.nodes:this.nodes.length?this:new w(ue(v),S instanceof w?[S]:S.nodes);if(!(v===!1||!this.nodes.length))return this}optimizeNames(v,S){var T;if(this.else=(T=this.else)===null||T===void 0?void 0:T.optimizeNames(v,S),!!(super.optimizeNames(v,S)||this.else))return this.condition=K(this.condition,v,S),this}get names(){const v=super.names;return L(v,this.condition),this.else&&F(v,this.else.names),v}}w.kind="if";class y extends _{}y.kind="for";class d extends y{constructor(v){super(),this.iteration=v}render(v){return`for(${this.iteration})`+super.render(v)}optimizeNames(v,S){if(super.optimizeNames(v,S))return this.iteration=K(this.iteration,v,S),this}get names(){return F(super.names,this.iteration.names)}}class P extends y{constructor(v,S,T,M){super(),this.varKind=v,this.name=S,this.from=T,this.to=M}render(v){const S=v.es5?r.varKinds.var:this.varKind,{name:T,from:M,to:U}=this;return`for(${S} ${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,S,T,M){super(),this.loop=v,this.varKind=S,this.name=T,this.iterable=M}render(v){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(v)}optimizeNames(v,S){if(super.optimizeNames(v,S))return this.iterable=K(this.iterable,v,S),this}get names(){return F(super.names,this.iterable.names)}}class g extends _{constructor(v,S,T){super(),this.name=v,this.args=S,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 _{render(v){let S="try"+super.render(v);return this.catch&&(S+=this.catch.render(v)),this.finally&&(S+=this.finally.render(v)),S}optimizeNodes(){var v,S;return super.optimizeNodes(),(v=this.catch)===null||v===void 0||v.optimizeNodes(),(S=this.finally)===null||S===void 0||S.optimizeNodes(),this}optimizeNames(v,S){var T,M;return super.optimizeNames(v,S),(T=this.catch)===null||T===void 0||T.optimizeNames(v,S),(M=this.finally)===null||M===void 0||M.optimizeNames(v,S),this}get names(){const v=super.names;return this.catch&&F(v,this.catch.names),this.finally&&F(v,this.finally.names),v}}class C extends _{constructor(v){super(),this.error=v}render(v){return`catch(${this.error})`+super.render(v)}}C.kind="catch";class q extends _{render(v){return"finally"+super.render(v)}}q.kind="finally";class z{constructor(v,S={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...S,_n:S.lines?`
|
|
72
|
-
`:""},this._extScope=v,this._scope=new r.Scope({parent:v}),this._nodes=[new x]}toString(){return this._root.render(this.opts)}name(v){return this._scope.name(v)}scopeName(v){return this._extScope.name(v)}scopeValue(v,S){const T=this._extScope.value(v,S);return(this._values[T.prefix]||(this._values[T.prefix]=new Set)).add(T),T}getScopeValue(v,S){return this._extScope.getValue(v,S)}scopeRefs(v){return this._extScope.scopeRefs(v,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(v,S,T,M){const U=this._scope.toName(S);return T!==void 0&&M&&(this._constants[U.str]=T),this._leafNode(new a(v,U,T)),U}const(v,S,T){return this._def(r.varKinds.const,v,S,T)}let(v,S,T){return this._def(r.varKinds.let,v,S,T)}var(v,S,T){return this._def(r.varKinds.var,v,S,T)}assign(v,S,T){return this._leafNode(new c(v,S,T))}add(v,S){return this._leafNode(new i(v,e.operators.ADD,S))}code(v){return typeof v=="function"?v():v!==t.nil&&this._leafNode(new $(v)),this}object(...v){const S=["{"];for(const[T,M]of v)S.length>1&&S.push(","),S.push(T),(T!==M||this.opts.es5)&&(S.push(":"),(0,t.addCodeArg)(S,M));return S.push("}"),new t._Code(S)}if(v,S,T){if(this._blockNode(new w(v)),S&&T)this.code(S).else().code(T).endIf();else if(S)this.code(S).endIf();else if(T)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(v){return this._elseNode(new w(v))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(w,b)}_for(v,S){return this._blockNode(v),S&&this.code(S).endFor(),this}for(v,S){return this._for(new d(v),S)}forRange(v,S,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,S,T),()=>M(J))}forOf(v,S,T,M=r.varKinds.const){const U=this._scope.toName(v);if(this.opts.es5){const J=S instanceof t.Name?S:this.var("_arr",S);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,S),()=>T(U))}forIn(v,S,T,M=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(v,(0,t._)`Object.keys(${S})`,T);const U=this._scope.toName(v);return this._for(new h("in",M,U,S),()=>T(U))}endFor(){return this._endBlockNode(y)}label(v){return this._leafNode(new l(v))}break(v){return this._leafNode(new p(v))}return(v){const S=new E;if(this._blockNode(S),this.code(v),S.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(v,S,T){if(!S&&!T)throw new Error('CodeGen: "try" without "catch" and "finally"');const M=new O;if(this._blockNode(M),this.code(v),S){const U=this.name("e");this._currNode=M.catch=new C(U),S(U)}return T&&(this._currNode=M.finally=new q,this.code(T)),this._endBlockNode(C,q)}throw(v){return this._leafNode(new f(v))}block(v,S){return this._blockStarts.push(this._nodes.length),v&&this.code(v).endBlock(S),this}endBlock(v){const S=this._blockStarts.pop();if(S===void 0)throw new Error("CodeGen: not in self-balancing block");const T=this._nodes.length-S;if(T<0||v!==void 0&&T!==v)throw new Error(`CodeGen: wrong number of nodes: ${T} vs ${v} expected`);return this._nodes.length=S,this}func(v,S=t.nil,T,M){return this._blockNode(new g(v,S,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,S){const T=this._currNode;if(T instanceof v||S&&T instanceof S)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${S?`${v.kind}/${S.kind}`:v.kind}"`)}_elseNode(v){const S=this._currNode;if(!(S instanceof w))throw new Error('CodeGen: "else" without "if"');return this._currNode=S.else=v,this}get _root(){return this._nodes[0]}get _currNode(){const v=this._nodes;return v[v.length-1]}set _currNode(v){const S=this._nodes;S[S.length-1]=v}}e.CodeGen=z;function F(j,v){for(const S in v)j[S]=(j[S]||0)+(v[S]||0);return j}function L(j,v){return v instanceof t._CodeOrName?F(j,v.names):j}function K(j,v,S){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=S[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&&S[J.str]!==void 0)}}function le(j,v){for(const S in v)j[S]=(j[S]||0)-(v[S]||0)}function ue(j){return typeof j=="boolean"||typeof j=="number"||j===null?!j:(0,t._)`!${V(j)}`}e.not=ue;const xe=N(e.operators.AND);function ce(...j){return j.reduce(xe)}e.and=ce;const Ee=N(e.operators.OR);function R(...j){return j.reduce(Ee)}e.or=R;function N(j){return(v,S)=>v===t.nil?S:S===t.nil?v:(0,t._)`${V(v)} ${j} ${V(S)}`}function V(j){return j instanceof t.Name?j:(0,t._)`(${j})`}})(Dd)),Dd}var Ne={},Ud;function qe(){if(Ud)return Ne;Ud=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=Se(),t=us();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 C=O.RULES.keywords;for(const q in g)C[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,C){if(!C){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(p(h))}Ne.escapeFragment=l;function p(h){return typeof h=="number"?`${h}`:h.replace(/~/g,"~0").replace(/\//g,"~1")}Ne.escapeJsonPointer=p;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(C,q,z,F)=>{const L=z===void 0?q:z instanceof e.Name?(q instanceof e.Name?h(C,q,z):g(C,q,z),z):q instanceof e.Name?(g(C,z,q),q):E(q,z);return F===e.Name&&!(L instanceof e.Name)?O(C,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} || {}`),x(h,E,g))}),mergeValues:(h,g)=>h===!0?!0:{...h,...g},resultToName:_}),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 _(h,g){if(g===!0)return h.var("props",!0);const E=h.var("props",(0,e._)`{}`);return g!==void 0&&x(h,E,g),E}Ne.evaluatedPropsToName=_;function x(h,g,E){Object.keys(E).forEach(O=>h.assign((0,e._)`${g}${(0,e.getProperty)(O)}`,!0))}Ne.setEvaluated=x;const b={};function w(h,g){return h.scopeValue("func",{ref:g,code:b[g.code]||(b[g.code]=new t._Code(g.code))})}Ne.useFunc=w;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():"/"+p(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 ds={},Bd;function Ot(){if(Bd)return ds;Bd=1,Object.defineProperty(ds,"__esModule",{value:!0});const e=Se(),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 ds.default=t,ds}var Gd;function fs(){return Gd||(Gd=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=Se(),r=qe(),n=Ot();e.keywordError={message:({keyword:b})=>(0,t.str)`must pass "${b}" keyword validation`},e.keyword$DataError={message:({keyword:b,schemaType:w})=>w?(0,t.str)`"${b}" keyword must be ${w} ($data)`:(0,t.str)`"${b}" keyword is invalid ($data)`};function o(b,w=e.keywordError,y,d){const{it:P}=b,{gen:h,compositeRule:g,allErrors:E}=P,O=f(b,w,y);d??(g||E)?i(h,O):l(P,(0,t._)`[${O}]`)}e.reportError=o;function s(b,w=e.keywordError,y){const{it:d}=b,{gen:P,compositeRule:h,allErrors:g}=d,E=f(b,w,y);i(P,E),h||g||l(d,n.default.vErrors)}e.reportExtraError=s;function a(b,w){b.assign(n.default.errors,w),b.if((0,t._)`${n.default.vErrors} !== null`,()=>b.if(w,()=>b.assign((0,t._)`${n.default.vErrors}.length`,w),()=>b.assign(n.default.vErrors,null)))}e.resetErrorsCount=a;function c({gen:b,keyword:w,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}/${w}`),h.opts.verbose&&(b.assign((0,t._)`${g}.schema`,y),b.assign((0,t._)`${g}.data`,d))})}e.extendErrors=c;function i(b,w){const y=b.const("err",w);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,w){const{gen:y,validateName:d,schemaEnv:P}=b;P.$async?y.throw((0,t._)`new ${b.ValidationError}(${w})`):(y.assign((0,t._)`${d}.errors`,w),y.return(!1))}const p={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,w,y){const{createErrors:d}=b.it;return d===!1?(0,t._)`{}`:$(b,w,y)}function $(b,w,y={}){const{gen:d,it:P}=b,h=[m(P,y),_(b,y)];return x(b,w,h),d.object(...h)}function m({errorPath:b},{instancePath:w}){const y=w?(0,t.str)`${b}${(0,r.getErrorPath)(w,r.Type.Str)}`:b;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,y)]}function _({keyword:b,it:{errSchemaPath:w}},{schemaPath:y,parentSchema:d}){let P=d?w:(0,t.str)`${w}/${b}`;return y&&(P=(0,t.str)`${P}${(0,r.getErrorPath)(y,r.Type.Str)}`),[p.schemaPath,P]}function x(b,{params:w,message:y},d){const{keyword:P,data:h,schemaValue:g,it:E}=b,{opts:O,propertyName:C,topSchemaRef:q,schemaPath:z}=E;d.push([p.keyword,P],[p.params,typeof w=="function"?w(b):w||(0,t._)`{}`]),O.messages&&d.push([p.message,typeof y=="function"?y(b):y]),O.verbose&&d.push([p.schema,g],[p.parentSchema,(0,t._)`${q}${z}`],[n.default.data,h]),C&&d.push([p.propertyName,C])}})(Rd)),Rd}var Kd;function H_(){if(Kd)return yr;Kd=1,Object.defineProperty(yr,"__esModule",{value:!0}),yr.boolOrEmptySchema=yr.topBoolOrEmptySchema=void 0;const e=fs(),t=Se(),r=Ot(),n={message:"boolean schema is false"};function o(c){const{gen:i,schema:l,validateName:p}=c;l===!1?a(c,!1):typeof l=="object"&&l.$async===!0?i.return(r.default.data):(i.assign((0,t._)`${p}.errors`,null),i.return(!0))}yr.topBoolOrEmptySchema=o;function s(c,i){const{gen:l,schema:p}=c;p===!1?(l.var(i,!1),a(c)):l.var(i,!0)}yr.boolOrEmptySchema=s;function a(c,i){const{gen:l,data:p}=c,f={gen:l,keyword:"false schema",data:p,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:c};(0,e.reportError)(f,n,void 0,i)}return yr}var nt={},gr={},Jd;function Yd(){if(Jd)return gr;Jd=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.getRules=gr.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)}gr.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 gr.getRules=n,gr}var Yt={},Wd;function Hd(){if(Wd)return Yt;Wd=1,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.shouldUseRule=Yt.shouldUseGroup=Yt.schemaHasRulesForType=void 0;function e({schema:n,self:o},s){const a=o.RULES.types[s];return a&&a!==!0&&t(n,a)}Yt.schemaHasRulesForType=e;function t(n,o){return o.rules.some(s=>r(n,s))}Yt.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 Yt.shouldUseRule=r,Yt}var Xd;function ms(){if(Xd)return nt;Xd=1,Object.defineProperty(nt,"__esModule",{value:!0}),nt.reportTypeError=nt.checkDataTypes=nt.checkDataType=nt.coerceAndCheckDataType=nt.getJSONTypes=nt.getSchemaTypes=nt.DataType=void 0;const e=Yd(),t=Hd(),r=fs(),n=Se(),o=qe();var s;(function(y){y[y.Correct=0]="Correct",y[y.Wrong=1]="Wrong"})(s||(nt.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}nt.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(","))}nt.getJSONTypes=c;function i(y,d){const{gen:P,data:h,opts:g}=y,E=p(d,g.coerceTypes),O=d.length>0&&!(E.length===0&&d.length===1&&(0,t.schemaHasRulesForType)(y,d[0]));if(O){const C=_(d,h,g.strictNumbers,s.Wrong);P.if(C,()=>{E.length?f(y,d,E):b(y)})}return O}nt.coerceAndCheckDataType=i;const l=new Set(["string","number","integer","boolean","null"]);function p(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}`),C=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(_(d,g,E.strictNumbers),()=>h.assign(C,g))),h.if((0,n._)`${C} !== 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._)`${C} !== undefined`,()=>{h.assign(g,C),$(y,C)});function q(z){switch(z){case"string":h.elseIf((0,n._)`${O} == "number" || ${O} == "boolean"`).assign(C,(0,n._)`"" + ${g}`).elseIf((0,n._)`${g} === null`).assign(C,(0,n._)`""`);return;case"number":h.elseIf((0,n._)`${O} == "boolean" || ${g} === null
|
|
73
|
-
|| (${O} == "string" && ${g} && ${g} == +${g})`).assign(C,(0,n._)`+${g}`);return;case"integer":h.elseIf((0,n._)`${O} === "boolean" || ${g} === null
|
|
74
|
-
|| (${O} === "string" && ${g} && ${g} == +${g} && !(${g} % 1))`).assign(C,(0,n._)`+${g}`);return;case"boolean":h.elseIf((0,n._)`${g} === "false" || ${g} === 0 || ${g} === null`).assign(C,!1).elseIf((0,n._)`${g} === "true" || ${g} === 1`).assign(C,!0);return;case"null":h.elseIf((0,n._)`${g} === "" || ${g} === 0 || ${g} === false`),h.assign(C,null);return;case"array":h.elseIf((0,n._)`${O} === "string" || ${O} === "number"
|
|
75
|
-
|| ${O} === "boolean" || ${g} === null`).assign(C,(0,n._)`[${g}]`)}}}function $({gen:y,parentData:d,parentDataProperty:P},h){y.if((0,n._)`${d} !== undefined`,()=>y.assign((0,n._)`${d}[${P}]`,h))}function m(y,d,P,h=s.Correct){const g=h===s.Correct?n.operators.EQ:n.operators.NEQ;let E;switch(y){case"null":return(0,n._)`${d} ${g} null`;case"array":E=(0,n._)`Array.isArray(${d})`;break;case"object":E=(0,n._)`${d} && typeof ${d} == "object" && !Array.isArray(${d})`;break;case"integer":E=O((0,n._)`!(${d} % 1) && !isNaN(${d})`);break;case"number":E=O();break;default:return(0,n._)`typeof ${d} ${g} ${y}`}return h===s.Correct?E:(0,n.not)(E);function O(C=n.nil){return(0,n.and)((0,n._)`typeof ${d} == "number"`,C,P?(0,n._)`isFinite(${d})`:n.nil)}}nt.checkDataType=m;function _(y,d,P,h){if(y.length===1)return m(y[0],d,P,h);let g;const E=(0,o.toHash)(y);if(E.array&&E.object){const O=(0,n._)`typeof ${d} != "object"`;g=E.null?O:(0,n._)`!${d} || ${O}`,delete E.null,delete E.array,delete E.object}else g=n.nil;E.number&&delete E.integer;for(const O in E)g=(0,n.and)(g,m(O,d,P,h));return g}nt.checkDataTypes=_;const x={message:({schema:y})=>`must be ${y}`,params:({schema:y,schemaValue:d})=>typeof y=="string"?(0,n._)`{type: ${y}}`:(0,n._)`{type: ${d}}`};function b(y){const d=w(y);(0,r.reportError)(d,x)}nt.reportTypeError=b;function w(y){const{gen:d,data:P,schema:h}=y,g=(0,o.schemaRefOrVal)(y,h,"type");return{gen:d,keyword:"type",data:P,schema:h.type,schemaCode:g,schemaValue:g,parentSchema:h,params:{},it:y}}return nt}var ln={},Qd;function X_(){if(Qd)return ln;Qd=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.assignDefaults=void 0;const e=Se(),t=qe();function r(o,s){const{properties:a,items:c}=o.schema;if(s==="object"&&a)for(const i in a)n(o,i,a[i].default);else s==="array"&&Array.isArray(c)&&c.forEach((i,l)=>n(o,l,i.default))}ln.assignDefaults=r;function n(o,s,a){const{gen:c,compositeRule:i,data:l,opts:p}=o;if(a===void 0)return;const f=(0,e._)`${l}${(0,e.getProperty)(s)}`;if(i){(0,t.checkStrictMode)(o,`default is ignored for: ${f}`);return}let $=(0,e._)`${f} === undefined`;p.useDefaults==="empty"&&($=(0,e._)`${$} || ${f} === null || ${f} === ""`),c.if($,(0,e._)`${f} = ${(0,e.stringify)(a)}`)}return ln}var jt={},Ge={},pn={},Zd;function ef(){if(Zd)return pn;Zd=1,Object.defineProperty(pn,"__esModule",{value:!0}),pn.getSkipCondition=void 0;const e=Se(),t=Ot();function r(n,o){var s;const a=(s=n.properties)===null||s===void 0?void 0:s[o];if(!a)return;const c=a.readOnly===!0,i=a.writeOnly===!0;if(!c&&!i)return;const l=[],p=(0,e._)`typeof ${t.default.this} == "object" && ${t.default.this} && ${t.default.this}.apiContext`;return c&&l.push((0,e._)`${p} === "request"`),i&&l.push((0,e._)`${p} === "response"`),(0,e.or)(...l)}return pn.getSkipCondition=r,pn}var tf;function Ct(){if(tf)return Ge;tf=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.validateUnion=Ge.validateArray=Ge.usePattern=Ge.callValidateCode=Ge.schemaProperties=Ge.allSchemaProperties=Ge.noPropertyInData=Ge.propertyInData=Ge.isOwnProperty=Ge.hasPropFunc=Ge.reportMissingProp=Ge.checkMissingProp=Ge.checkReportMissingProp=void 0;const e=Se(),t=qe(),r=Ot(),n=qe(),o=ef();function s(d,P){const{gen:h,data:g,it:E}=d;h.if(f(h,g,P,E.opts.ownProperties),()=>{d.setParams({missingProperty:(0,e._)`${P}`},!0),d.error()})}Ge.checkReportMissingProp=s;function a({gen:d,data:P,it:{opts:h},parentSchema:g},E,O){return(0,e.or)(...E.map(C=>{var q;return(0,e.and)((0,e.not)((q=(0,o.getSkipCondition)(g,C))!==null&&q!==void 0?q:(0,e._)`false`),f(d,P,C,h.ownProperties),(0,e._)`${O} = ${C}`)}))}Ge.checkMissingProp=a;function c(d,P){d.setParams({missingProperty:P},!0),d.error()}Ge.reportMissingProp=c;function i(d){return d.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Ge.hasPropFunc=i;function l(d,P,h){return(0,e._)`${i(d)}.call(${P}, ${h})`}Ge.isOwnProperty=l;function p(d,P,h,g){const E=(0,e._)`${P}${(0,e.getProperty)(h)} !== undefined`;return g?(0,e._)`${E} && ${l(d,P,h)}`:E}Ge.propertyInData=p;function f(d,P,h,g){const E=(0,e._)`${P}${(0,e.getProperty)(h)} === undefined`;return g?(0,e.or)(E,(0,e.not)(l(d,P,h))):E}Ge.noPropertyInData=f;function $(d){return d?Object.keys(d).filter(P=>P!=="__proto__"):[]}Ge.allSchemaProperties=$;function m(d,P){return $(P).filter(h=>!(0,t.alwaysValidSchema)(d,P[h]))}Ge.schemaProperties=m;function _({schemaCode:d,data:P,it:{gen:h,topSchemaRef:g,schemaPath:E,errorPath:O},it:C},q,z,F){const L=F?(0,e._)`${d}, ${P}, ${g}${E}`:P,K=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,O)],[r.default.parentData,C.parentData],[r.default.parentDataProperty,C.parentDataProperty],[r.default.rootData,r.default.rootData],[r.default.isAllOfVariant,C.isAllOfVariant?1:0]];C.opts.dynamicRef&&K.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const le=(0,e._)`${L}, ${h.object(...K)}`;return z!==e.nil?(0,e._)`${q}.call(${z}, ${le})`:(0,e._)`${q}(${le})`}Ge.callValidateCode=_;const x=(0,e._)`new RegExp`;function b({gen:d,it:{opts:P}},h){const g=P.unicodeRegExp?"u":"",{regExp:E}=P.code,O=E(h,g);return d.scopeValue("pattern",{key:O.toString(),ref:O,code:(0,e._)`${E.code==="new RegExp"?x:(0,n.useFunc)(d,E)}(${h}, ${g})`})}Ge.usePattern=b;function w(d){const{gen:P,data:h,keyword:g,it:E}=d,O=P.name("valid");if(E.allErrors){const q=P.let("valid",!0);return C(()=>P.assign(q,!1)),q}return P.var(O,!0),C(()=>P.break()),O;function C(q){const z=P.const("len",(0,e._)`${h}.length`);P.forRange("i",0,z,F=>{d.subschema({keyword:g,dataProp:F,dataPropType:t.Type.Num},O),P.if((0,e.not)(O),q)})}}Ge.validateArray=w;function y(d){const{gen:P,schema:h,keyword:g,parentSchema:E,it:O}=d;if(!Array.isArray(h))throw new Error("ajv implementation error");if(O.opts.discriminator&&E.discriminator||h.some(z=>(0,t.alwaysValidSchema)(O,z))&&!O.opts.unevaluated)return;const C=P.let("valid",!1),q=P.name("_valid");P.block(()=>h.forEach((z,F)=>{const L=d.subschema({keyword:g,schemaProp:F,compositeRule:!0},q);P.assign(C,(0,e._)`${C} || ${q}`),d.mergeValidEvaluated(L,q)||P.if((0,e.not)(C))})),d.result(C,()=>d.reset(),()=>d.error(!0))}return Ge.validateUnion=y,Ge}var rf;function Q_(){if(rf)return jt;rf=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.validateKeywordUsage=jt.validSchemaType=jt.funcKeywordCode=jt.macroKeywordCode=void 0;const e=Se(),t=Ot(),r=Ct(),n=fs();function o($,m){const{gen:_,keyword:x,schema:b,parentSchema:w,it:y}=$,d=m.macro.call(y.self,b,w,y),P=l(_,x,d);y.opts.validateSchema!==!1&&y.self.validateSchema(d,!0);const h=_.name("valid");$.subschema({schema:d,schemaPath:e.nil,errSchemaPath:`${y.errSchemaPath}/${x}`,topSchemaRef:P,compositeRule:!0},h),$.pass(h,()=>$.error(!0))}jt.macroKeywordCode=o;function s($,m){var _;const{gen:x,keyword:b,schema:w,parentSchema:y,$data:d,it:P}=$;i(P,m);const h=!d&&m.compile?m.compile.call(P.self,w,y,P):m.validate,g=l(x,b,h),E=x.let("valid");$.block$data(E,O),$.ok((_=m.valid)!==null&&_!==void 0?_:E);function O(){if(m.errors===!1)z(),m.modifying&&a($),F(()=>$.error());else{const L=m.async?C():q();m.modifying&&a($),F(()=>c($,L))}}function C(){const L=x.let("ruleErrs",null);return x.try(()=>z((0,e._)`await `),K=>x.assign(E,!1).if((0,e._)`${K} instanceof ${P.ValidationError}`,()=>x.assign(L,(0,e._)`${K}.errors`),()=>x.throw(K))),L}function q(){const L=(0,e._)`${g}.errors`;return x.assign(L,null),z(e.nil),L}function z(L=m.async?(0,e._)`await `:e.nil){const K=P.opts.passContext?t.default.this:t.default.self,le=!("compile"in m&&!d||m.schema===!1);x.assign(E,(0,e._)`${L}${(0,r.callValidateCode)($,g,K,le)}`,m.modifying)}function F(L){var K;x.if((0,e.not)((K=m.valid)!==null&&K!==void 0?K:E),L)}}jt.funcKeywordCode=s;function a($){const{gen:m,data:_,it:x}=$;m.if(x.parentData,()=>m.assign(_,(0,e._)`${x.parentData}[${x.parentDataProperty}]`))}function c($,m){const{gen:_}=$;_.if((0,e._)`Array.isArray(${m})`,()=>{_.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${m} : ${t.default.vErrors}.concat(${m})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)($)},()=>$.error())}function i({schemaEnv:$},m){if(m.async&&!$.$async)throw new Error("async keyword in sync schema")}function l($,m,_){if(_===void 0)throw new Error(`keyword "${m}" failed to compile`);return $.scopeValue("keyword",typeof _=="function"?{ref:_}:{ref:_,code:(0,e.stringify)(_)})}function p($,m,_=!1){return!m.length||m.some(x=>x==="array"?Array.isArray($):x==="object"?$&&typeof $=="object"&&!Array.isArray($):typeof $==x||_&&typeof $>"u")}jt.validSchemaType=p;function f({schema:$,opts:m,self:_,errSchemaPath:x},b,w){if(Array.isArray(b.keyword)?!b.keyword.includes(w):b.keyword!==w)throw new Error("ajv implementation error");const y=b.dependencies;if(y?.some(d=>!Object.prototype.hasOwnProperty.call($,d)))throw new Error(`parent schema must have dependencies of ${w}: ${y.join(",")}`);if(b.validateSchema&&!b.validateSchema($[w])){const d=`keyword "${w}" value is invalid at path "${x}": `+_.errorsText(b.validateSchema.errors);if(m.validateSchema==="log")_.logger.error(d);else throw new Error(d)}}return jt.validateKeywordUsage=f,jt}var Wt={},nf;function Z_(){if(nf)return Wt;nf=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.extendSubschemaMode=Wt.extendSubschemaData=Wt.getSubschema=void 0;const e=Se(),t=qe();function r(s,{keyword:a,schemaProp:c,schema:i,schemaPath:l,errSchemaPath:p,topSchemaRef:f}){if(a!==void 0&&i!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(a!==void 0){const $=s.schema[a];return c===void 0?{schema:$,schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(a)}`,errSchemaPath:`${s.errSchemaPath}/${a}`}:{schema:$[c],schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(a)}${(0,e.getProperty)(c)}`,errSchemaPath:`${s.errSchemaPath}/${a}/${(0,t.escapeFragment)(c)}`}}if(i!==void 0){if(l===void 0||p===void 0||f===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:l,topSchemaRef:f,errSchemaPath:p}}throw new Error('either "keyword" or "schema" must be passed')}Wt.getSubschema=r;function n(s,a,{dataProp:c,dataPropType:i,data:l,dataTypes:p,propertyName:f}){if(l!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:$}=a;if(c!==void 0){const{errorPath:_,dataPathArr:x,opts:b}=a,w=$.let("data",(0,e._)`${a.data}${(0,e.getProperty)(c)}`,!0);m(w),s.errorPath=(0,e.str)`${_}${(0,t.getErrorPath)(c,i,b.jsPropertySyntax)}`,s.parentDataProperty=(0,e._)`${c}`,s.dataPathArr=[...x,s.parentDataProperty]}if(l!==void 0){const _=l instanceof e.Name?l:$.let("data",l,!0);m(_),f!==void 0&&(s.propertyName=f)}p&&(s.dataTypes=p);function m(_){s.data=_,s.dataLevel=a.dataLevel+1,s.dataTypes=[],a.definedProperties=new Set,s.parentData=a.data,s.dataNames=[...a.dataNames,_]}}Wt.extendSubschemaData=n;function o(s,{jtdDiscriminator:a,jtdMetadata:c,compositeRule:i,createErrors:l,allErrors:p}){i!==void 0&&(s.compositeRule=i),l!==void 0&&(s.createErrors=l),p!==void 0&&(s.allErrors=p),s.jtdDiscriminator=a,s.jtdMetadata=c}return Wt.extendSubschemaMode=o,Wt}var lt={},of;function hs(){if(of)return lt;of=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.getSchemaRefs=lt.resolveUrl=lt.normalizeId=lt._getFullPath=lt.getFullPath=lt.inlineRef=void 0;const e=qe(),t=vn(),r=xl(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function o(x,b=!0){return typeof x=="boolean"?!0:b===!0?!a(x):b?c(x)<=b:!1}lt.inlineRef=o;const s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function a(x){for(const b in x){if(s.has(b))return!0;const w=x[b];if(Array.isArray(w)&&w.some(a)||typeof w=="object"&&a(w))return!0}return!1}function c(x){let b=0;for(const w in x)if(w==="$ref"||(b++,!n.has(w)&&(typeof x[w]=="object"&&(0,e.eachItem)(x[w],y=>b+=c(y)),b===1/0)))return 1/0;return b}function i(x,b="",w){w!==!1&&(b=f(b));const y=x.parse(b);return l(x,y)}lt.getFullPath=i;function l(x,b){return x.serialize(b).split("#")[0]+"#"}lt._getFullPath=l;const p=/#\/?$/;function f(x){return x?x.replace(p,""):""}lt.normalizeId=f;function $(x,b,w){return w=f(w),x.resolve(b,w)}lt.resolveUrl=$;const m=/^[a-z_][-a-z0-9._]*$/i;function _(x,b){if(typeof x=="boolean")return{};const{schemaId:w,uriResolver:y}=this.opts,d=f(x[w]||b),P={"":d},h=i(y,d,!1),g={},E=new Set;return r(x,{allKeys:!0},(q,z,F,L)=>{if(L===void 0)return;const K=h+z;let le=P[L];typeof q[w]=="string"&&(le=ue.call(this,q[w])),xe.call(this,q.$anchor),xe.call(this,q.$dynamicAnchor),P[z]=le;function ue(ce){const Ee=this.opts.uriResolver.resolve;if(ce=f(le?Ee(le,ce):ce),E.has(ce))throw C(ce);E.add(ce);let R=this.refs[ce];return typeof R=="string"&&(R=this.refs[R]),typeof R=="object"?O(q,R.schema,ce):ce!==f(K)&&(ce[0]==="#"?(O(q,g[ce],ce),g[ce]=q):this.refs[ce]=K),ce}function xe(ce){if(typeof ce=="string"){if(!m.test(ce))throw new Error(`invalid anchor "${ce}"`);ue.call(this,`#${ce}`)}}}),g;function O(q,z,F){if(z!==void 0&&!t(q,z))throw C(F)}function C(q){return new Error(`reference "${q}" resolves to more than one schema`)}}return lt.getSchemaRefs=_,lt}var sf;function ys(){if(sf)return Jt;sf=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.getData=Jt.KeywordCxt=Jt.validateFunctionCode=void 0;const e=H_(),t=ms(),r=Hd(),n=ms(),o=X_(),s=Q_(),a=Z_(),c=Se(),i=Ot(),l=hs(),p=qe(),f=fs();function $(I){if(h(I)&&(E(I),P(I))){b(I);return}m(I,()=>(0,e.topBoolOrEmptySchema)(I))}Jt.validateFunctionCode=$;function m({gen:I,validateName:k,schema:D,schemaEnv:B,opts:H},oe){H.code.es5?I.func(k,(0,c._)`${i.default.data}, ${i.default.valCxt}`,B.$async,()=>{I.code((0,c._)`"use strict"; ${y(D,H)}`),x(I,H),I.code(oe)}):I.func(k,(0,c._)`${i.default.data}, ${_(H)}`,B.$async,()=>I.code(y(D,H)).code(oe))}function _(I){return(0,c._)`{${i.default.instancePath}="", ${i.default.parentData}, ${i.default.parentDataProperty}, ${i.default.rootData}=${i.default.data}${I.dynamicRef?(0,c._)`, ${i.default.dynamicAnchors}={}`:c.nil}, ${i.default.isAllOfVariant} = 0}={}`}function x(I,k){I.if(i.default.valCxt,()=>{I.var(i.default.instancePath,(0,c._)`${i.default.valCxt}.${i.default.instancePath}`),I.var(i.default.parentData,(0,c._)`${i.default.valCxt}.${i.default.parentData}`),I.var(i.default.parentDataProperty,(0,c._)`${i.default.valCxt}.${i.default.parentDataProperty}`),I.var(i.default.rootData,(0,c._)`${i.default.valCxt}.${i.default.rootData}`),I.var(i.default.isAllOfVariant,(0,c._)`${i.default.valCxt}.${i.default.isAllOfVariant}`),k.dynamicRef&&I.var(i.default.dynamicAnchors,(0,c._)`${i.default.valCxt}.${i.default.dynamicAnchors}`)},()=>{I.var(i.default.instancePath,(0,c._)`""`),I.var(i.default.parentData,(0,c._)`undefined`),I.var(i.default.parentDataProperty,(0,c._)`undefined`),I.var(i.default.rootData,i.default.data),I.var(i.default.isAllOfVariant,(0,c._)`0`),k.dynamicRef&&I.var(i.default.dynamicAnchors,(0,c._)`{}`)})}function b(I){const{schema:k,opts:D,gen:B}=I;m(I,()=>{D.$comment&&k.$comment&&L(I),q(I),B.let(i.default.vErrors,null),B.let(i.default.errors,0),D.unevaluated&&w(I),O(I),K(I)})}function w(I){const{gen:k,validateName:D}=I;I.evaluated=k.const("evaluated",(0,c._)`${D}.evaluated`),k.if((0,c._)`${I.evaluated}.dynamicProps`,()=>k.assign((0,c._)`${I.evaluated}.props`,(0,c._)`undefined`)),k.if((0,c._)`${I.evaluated}.dynamicItems`,()=>k.assign((0,c._)`${I.evaluated}.items`,(0,c._)`undefined`))}function y(I,k){const D=typeof I=="object"&&I[k.schemaId];return D&&(k.code.source||k.code.process)?(0,c._)`/*# sourceURL=${D} */`:c.nil}function d(I,k){if(h(I)&&(E(I),P(I))){g(I,k);return}(0,e.boolOrEmptySchema)(I,k)}function P({schema:I,self:k}){if(typeof I=="boolean")return!I;for(const D in I)if(k.RULES.all[D])return!0;return!1}function h(I){return typeof I.schema!="boolean"}function g(I,k){const{schema:D,gen:B,opts:H}=I;H.$comment&&D.$comment&&L(I),z(I),F(I);const oe=B.const("_errs",i.default.errors);O(I,oe),B.var(k,(0,c._)`${oe} === ${i.default.errors}`)}function E(I){(0,p.checkUnknownRules)(I),C(I)}function O(I,k){if(I.opts.jtd)return ue(I,[],!1,k);const D=(0,t.getSchemaTypes)(I.schema),B=(0,t.coerceAndCheckDataType)(I,D);ue(I,D,!B,k)}function C(I){const{schema:k,errSchemaPath:D,opts:B,self:H}=I;k.$ref&&B.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(k,H.RULES)&&H.logger.warn(`$ref: keywords ignored in schema at path "${D}"`)}function q(I){const{schema:k,opts:D}=I;k.default!==void 0&&D.useDefaults&&D.strictSchema&&(0,p.checkStrictMode)(I,"default is ignored in the schema root")}function z(I){const k=I.schema[I.opts.schemaId];k&&(I.baseId=(0,l.resolveUrl)(I.opts.uriResolver,I.baseId,k))}function F(I){if(I.schema.$async&&!I.schemaEnv.$async)throw new Error("async schema in sync schema")}function L({gen:I,schemaEnv:k,schema:D,errSchemaPath:B,opts:H}){const oe=D.$comment;if(H.$comment===!0)I.code((0,c._)`${i.default.self}.logger.log(${oe})`);else if(typeof H.$comment=="function"){const A=(0,c.str)`${B}/$comment`,X=I.scopeValue("root",{ref:k.root});I.code((0,c._)`${i.default.self}.opts.$comment(${oe}, ${A}, ${X}.schema)`)}}function K(I){const{gen:k,schemaEnv:D,validateName:B,ValidationError:H,opts:oe}=I;D.$async?k.if((0,c._)`${i.default.errors} === 0`,()=>k.return(i.default.data),()=>k.throw((0,c._)`new ${H}(${i.default.vErrors})`)):(k.assign((0,c._)`${B}.errors`,i.default.vErrors),oe.unevaluated&&le(I),k.return((0,c._)`${i.default.errors} === 0`))}function le({gen:I,evaluated:k,props:D,items:B}){D instanceof c.Name&&I.assign((0,c._)`${k}.props`,D),B instanceof c.Name&&I.assign((0,c._)`${k}.items`,B)}function ue(I,k,D,B){const{gen:H,schema:oe,data:A,allErrors:X,opts:se,self:ee}=I,{RULES:te}=ee;if(oe.$ref&&(se.ignoreKeywordsWithRef||!(0,p.schemaHasRulesButRef)(oe,te))){H.block(()=>M(I,"$ref",te.all.$ref.definition));return}se.jtd||ce(I,k),H.block(()=>{for(const ie of te.rules)pe(ie);pe(te.post)});function pe(ie){(0,r.shouldUseGroup)(oe,ie)&&(ie.type?(H.if((0,n.checkDataType)(ie.type,A,se.strictNumbers)),xe(I,ie),k.length===1&&k[0]===ie.type&&D&&(H.else(),(0,n.reportTypeError)(I)),H.endIf()):xe(I,ie),X||H.if((0,c._)`${i.default.errors} === ${B||0}`))}}function xe(I,k){const{gen:D,schema:B,opts:{useDefaults:H}}=I;H&&(0,o.assignDefaults)(I,k.type),D.block(()=>{for(const A of k.rules)((0,r.shouldUseRule)(B,A)||oe(B,A))&&M(I,A.keyword,A.definition,k.type)});function oe(A,X){return!!(X.keyword==="unevaluatedProperties"&&(A.properties||A.patternProperties)&&!I.isAllOfVariant&&I.opts.defaultUnevaluatedProperties===!1)}}function ce(I,k){I.schemaEnv.meta||!I.opts.strictTypes||(Ee(I,k),I.opts.allowUnionTypes||R(I,k),N(I,I.dataTypes))}function Ee(I,k){if(k.length){if(!I.dataTypes.length){I.dataTypes=k;return}k.forEach(D=>{j(I.dataTypes,D)||S(I,`type "${D}" not allowed by context "${I.dataTypes.join(",")}"`)}),v(I,k)}}function R(I,k){k.length>1&&!(k.length===2&&k.includes("null"))&&S(I,"use allowUnionTypes to allow union type keyword")}function N(I,k){const D=I.self.RULES.all;for(const B in D){const H=D[B];if(typeof H=="object"&&(0,r.shouldUseRule)(I.schema,H)){const{type:oe}=H.definition;oe.length&&!oe.some(A=>V(k,A))&&S(I,`missing type "${oe.join(",")}" for keyword "${B}"`)}}}function V(I,k){return I.includes(k)||k==="number"&&I.includes("integer")}function j(I,k){return I.includes(k)||k==="integer"&&I.includes("number")}function v(I,k){const D=[];for(const B of I.dataTypes)j(k,B)?D.push(B):k.includes("integer")&&B==="number"&&D.push("integer");I.dataTypes=D}function S(I,k){const D=I.schemaEnv.baseId+I.errSchemaPath;k+=` at "${D}" (strictTypes)`,(0,p.checkStrictMode)(I,k,I.opts.strictTypes)}class T{constructor(k,D,B){if((0,s.validateKeywordUsage)(k,D,B),this.gen=k.gen,this.allErrors=k.allErrors,this.keyword=B,this.data=k.data,this.schema=k.schema[B],this.$data=D.$data&&k.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,p.schemaRefOrVal)(k,this.schema,B,this.$data),this.schemaType=D.schemaType,this.parentSchema=k.schema,this.params={},this.it=k,this.def=D,this.$data)this.schemaCode=k.gen.const("vSchema",re(this.$data,k));else if(this.schemaCode=this.schemaValue,!(0,s.validSchemaType)(this.schema,D.schemaType,D.allowUndefined))throw new Error(`${B} value must be ${JSON.stringify(D.schemaType)}`);("code"in D?D.trackErrors:D.errors!==!1)&&(this.errsCount=k.gen.const("_errs",i.default.errors))}result(k,D,B){this.failResult((0,c.not)(k),D,B)}failResult(k,D,B){this.gen.if(k),B?B():this.error(),D?(this.gen.else(),D(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(k,D){this.failResult((0,c.not)(k),void 0,D)}fail(k){if(k===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(k),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(k){if(!this.$data)return this.fail(k);const{schemaCode:D}=this;this.fail((0,c._)`${D} !== undefined && (${(0,c.or)(this.invalid$data(),k)})`)}error(k,D,B){if(D){this.setParams(D),this._error(k,B),this.setParams({});return}this._error(k,B)}_error(k,D){(k?f.reportExtraError:f.reportError)(this,this.def.error,D)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(k){this.allErrors||this.gen.if(k)}setParams(k,D){D?Object.assign(this.params,k):this.params=k}block$data(k,D,B=c.nil){this.gen.block(()=>{this.check$data(k,B),D()})}check$data(k=c.nil,D=c.nil){if(!this.$data)return;const{gen:B,schemaCode:H,schemaType:oe,def:A}=this;B.if((0,c.or)((0,c._)`${H} === undefined`,D)),k!==c.nil&&B.assign(k,!0),(oe.length||A.validateSchema)&&(B.elseIf(this.invalid$data()),this.$dataError(),k!==c.nil&&B.assign(k,!1)),B.else()}invalid$data(){const{gen:k,schemaCode:D,schemaType:B,def:H,it:oe}=this;return(0,c.or)(A(),X());function A(){if(B.length){if(!(D instanceof c.Name))throw new Error("ajv implementation error");const se=Array.isArray(B)?B:[B];return(0,c._)`${(0,n.checkDataTypes)(se,D,oe.opts.strictNumbers,n.DataType.Wrong)}`}return c.nil}function X(){if(H.validateSchema){const se=k.scopeValue("validate$data",{ref:H.validateSchema});return(0,c._)`!${se}(${D})`}return c.nil}}subschema(k,D,B){const H=(0,a.getSubschema)(this.it,k);(0,a.extendSubschemaData)(H,this.it,k),(0,a.extendSubschemaMode)(H,k);const oe={...this.it,...H,items:void 0,props:void 0,isAllOfVariant:B};return d(oe,D),oe}mergeEvaluated(k,D){const{it:B,gen:H}=this;B.opts.unevaluated&&(B.props!==!0&&k.props!==void 0&&(B.props=p.mergeEvaluated.props(H,k.props,B.props,D)),B.items!==!0&&k.items!==void 0&&(B.items=p.mergeEvaluated.items(H,k.items,B.items,D)))}mergeValidEvaluated(k,D){const{it:B,gen:H}=this;if(B.opts.unevaluated&&(B.props!==!0||B.items!==!0))return H.if(D,()=>this.mergeEvaluated(k,c.Name)),!0}}Jt.KeywordCxt=T;function M(I,k,D,B){const H=new T(I,D,k);"code"in D?D.code(H,B):H.$data&&D.validate?(0,s.funcKeywordCode)(H,D):"macro"in D?(0,s.macroKeywordCode)(H,D):(D.compile||D.validate)&&(0,s.funcKeywordCode)(H,D)}const U=/^\/(?:[^~]|~0|~1)*$/,J=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function re(I,{dataLevel:k,dataNames:D,dataPathArr:B}){let H,oe;if(I==="")return i.default.rootData;if(I[0]==="/"){if(!U.test(I))throw new Error(`Invalid JSON-pointer: ${I}`);H=I,oe=i.default.rootData}else{const ee=J.exec(I);if(!ee)throw new Error(`Invalid JSON-pointer: ${I}`);const te=+ee[1];if(H=ee[2],H==="#"){if(te>=k)throw new Error(se("property/index",te));return B[k-te]}if(te>k)throw new Error(se("data",te));if(oe=D[k-te],!H)return oe}let A=oe;const X=H.split("/");for(const ee of X)ee&&(oe=(0,c._)`${oe}${(0,c.getProperty)((0,p.unescapeJsonPointer)(ee))}`,A=(0,c._)`${A} && ${oe}`);return A;function se(ee,te){return`Cannot access ${ee} ${te} levels up, current level is ${k}`}}return Jt.getData=re,Jt}var gs={},af;function mi(){if(af)return gs;af=1,Object.defineProperty(gs,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return gs.default=e,gs}var vs={},cf;function bs(){if(cf)return vs;cf=1,Object.defineProperty(vs,"__esModule",{value:!0});const e=hs();class t extends Error{constructor(n,o,s,a){super(a||`can't resolve reference ${s} from id ${o}`),this.missingRef=(0,e.resolveUrl)(n,o,s),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(n,this.missingRef))}}return vs.default=t,vs}var ht={},lf;function hi(){if(lf)return ht;lf=1,Object.defineProperty(ht,"__esModule",{value:!0}),ht.resolveSchema=ht.getCompilingSchema=ht.resolveRef=ht.compileSchema=ht.SchemaEnv=void 0;const e=Se(),t=mi(),r=Ot(),n=hs(),o=qe(),s=ys();class a{constructor(w){var y;this.refs={},this.dynamicAnchors={};let d;typeof w.schema=="object"&&(d=w.schema),this.schema=w.schema,this.schemaId=w.schemaId,this.root=w.root||this,this.baseId=(y=w.baseId)!==null&&y!==void 0?y:(0,n.normalizeId)(d?.[w.schemaId||"$id"]),this.schemaPath=w.schemaPath,this.localRefs=w.localRefs,this.meta=w.meta,this.$async=d?.$async,this.refs={}}}ht.SchemaEnv=a;function c(b){const w=p.call(this,b);if(w)return w;const y=(0,n.getFullPath)(this.opts.uriResolver,b.root.baseId),{es5:d,lines:P}=this.opts.code,{ownProperties:h}=this.opts,g=new e.CodeGen(this.scope,{es5:d,lines:P,ownProperties:h});let E;b.$async&&(E=g.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const O=g.scopeName("validate");b.validateName=O;const C={gen:g,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:g.scopeValue("schema",this.opts.code.source===!0?{ref:b.schema,code:(0,e.stringify)(b.schema)}:{ref:b.schema}),validateName:O,ValidationError:E,schema:b.schema,schemaEnv:b,rootId:y,baseId:b.baseId||y,schemaPath:e.nil,errSchemaPath:b.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let q;try{this._compilations.add(b),(0,s.validateFunctionCode)(C),g.optimize(this.opts.code.optimize);const z=g.toString();q=`const visitedNodesForRef = new WeakMap(); ${g.scopeRefs(r.default.scope)}return ${z}`,this.opts.code.process&&(q=this.opts.code.process(q,b));const F=new Function(`${r.default.self}`,`${r.default.scope}`,q)(this,this.scope.get());if(this.scope.value(O,{ref:F}),F.errors=null,F.schema=b.schema,F.schemaEnv=b,b.$async&&(F.$async=!0),this.opts.code.source===!0&&(F.source={validateName:O,validateCode:z,scopeValues:g._values}),this.opts.unevaluated){const{props:L,items:K}=C;F.evaluated={props:L instanceof e.Name?void 0:L,items:K instanceof e.Name?void 0:K,dynamicProps:L instanceof e.Name,dynamicItems:K instanceof e.Name},F.source&&(F.source.evaluated=(0,e.stringify)(F.evaluated))}return b.validate=F,b}catch(z){throw delete b.validate,delete b.validateName,q&&this.logger.error("Error compiling schema, function code:",q),z}finally{this._compilations.delete(b)}}ht.compileSchema=c;function i(b,w,y){var d;const P=(0,n.resolveUrl)(this.opts.uriResolver,w,y),h=b.refs[P];if(h)return h;let g=$.call(this,b,P);if(g===void 0){const E=(d=b.localRefs)===null||d===void 0?void 0:d[P],{schemaId:O}=this.opts;E&&(g=new a({schema:E,schemaId:O,root:b,baseId:w}))}if(g===void 0&&this.opts.loadSchemaSync){const E=this.opts.loadSchemaSync(w,y,P);E&&!(this.refs[P]||this.schemas[P])&&(this.addSchema(E,P,void 0),g=$.call(this,b,P))}if(g!==void 0)return b.refs[P]=l.call(this,g)}ht.resolveRef=i;function l(b){return(0,n.inlineRef)(b.schema,this.opts.inlineRefs)?b.schema:b.validate?b:c.call(this,b)}function p(b){for(const w of this._compilations)if(f(w,b))return w}ht.getCompilingSchema=p;function f(b,w){return b.schema===w.schema&&b.root===w.root&&b.baseId===w.baseId}function $(b,w){let y;for(;typeof(y=this.refs[w])=="string";)w=y;return y||this.schemas[w]||m.call(this,b,w)}function m(b,w){const y=this.opts.uriResolver.parse(w),d=(0,n._getFullPath)(this.opts.uriResolver,y);let P=(0,n.getFullPath)(this.opts.uriResolver,b.baseId,void 0);if(Object.keys(b.schema).length>0&&d===P)return x.call(this,y,b);const h=(0,n.normalizeId)(d),g=this.refs[h]||this.schemas[h];if(typeof g=="string"){const E=m.call(this,b,g);return typeof E?.schema!="object"?void 0:x.call(this,y,E)}if(typeof g?.schema=="object"){if(g.validate||c.call(this,g),h===(0,n.normalizeId)(w)){const{schema:E}=g,{schemaId:O}=this.opts,C=E[O];return C&&(P=(0,n.resolveUrl)(this.opts.uriResolver,P,C)),new a({schema:E,schemaId:O,root:b,baseId:P})}return x.call(this,y,g)}}ht.resolveSchema=m;const _=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function x(b,{baseId:w,schema:y,root:d}){var P;if(((P=b.fragment)===null||P===void 0?void 0:P[0])!=="/")return;for(const E of b.fragment.slice(1).split("/")){if(typeof y=="boolean")return;const O=y[(0,o.unescapeFragment)(E)];if(O===void 0)return;y=O;const C=typeof y=="object"&&y[this.opts.schemaId];!_.has(E)&&C&&(w=(0,n.resolveUrl)(this.opts.uriResolver,w,C))}let h;if(typeof y!="boolean"&&y.$ref&&!(0,o.schemaHasRulesButRef)(y,this.RULES)){const E=(0,n.resolveUrl)(this.opts.uriResolver,w,y.$ref);h=m.call(this,d,E)}const{schemaId:g}=this.opts;if(h=h||new a({schema:y,schemaId:g,root:d,baseId:w}),h.schema!==h.root.schema)return h}return ht}const e1="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",t1="Meta-schema for $data reference (JSON AnySchema extension proposal)",r1="object",n1=["$data"],o1={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},s1=!1,a1={$id:e1,description:t1,type:r1,required:n1,properties:o1,additionalProperties:s1};var ws={},pf;function i1(){if(pf)return ws;pf=1,Object.defineProperty(ws,"__esModule",{value:!0});const e=Rl();return e.code='require("ajv/dist/runtime/uri").default',ws.default=e,ws}var uf;function c1(){return uf||(uf=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=ys();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Se();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=mi(),o=bs(),s=Yd(),a=hi(),c=Se(),i=hs(),l=ms(),p=qe(),f=a1,$=i1(),m=(R,N)=>new RegExp(R,N);m.code="new RegExp";const _=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],x=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),b={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},w={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},y=200;function d(R){var N,V,j,v,S,T,M,U,J,re,I,k,D,B,H,oe,A,X,se,ee,te,pe,ie,de,$e;const Me=R.strict,u=(N=R.code)===null||N===void 0?void 0:N.optimize,Y=u===!0||u===void 0?1:u||0,G=(j=(V=R.code)===null||V===void 0?void 0:V.regExp)!==null&&j!==void 0?j:m,Q=(v=R.uriResolver)!==null&&v!==void 0?v:$.default;return{strictSchema:(T=(S=R.strictSchema)!==null&&S!==void 0?S:Me)!==null&&T!==void 0?T:!0,strictNumbers:(U=(M=R.strictNumbers)!==null&&M!==void 0?M:Me)!==null&&U!==void 0?U:!0,strictTypes:(re=(J=R.strictTypes)!==null&&J!==void 0?J:Me)!==null&&re!==void 0?re:"log",strictTuples:(k=(I=R.strictTuples)!==null&&I!==void 0?I:Me)!==null&&k!==void 0?k:"log",strictRequired:(B=(D=R.strictRequired)!==null&&D!==void 0?D:Me)!==null&&B!==void 0?B:!1,code:R.code?{...R.code,optimize:Y,regExp:G}:{optimize:Y,regExp:G},loopRequired:(H=R.loopRequired)!==null&&H!==void 0?H:y,loopEnum:(oe=R.loopEnum)!==null&&oe!==void 0?oe:y,meta:(A=R.meta)!==null&&A!==void 0?A:!0,messages:(X=R.messages)!==null&&X!==void 0?X:!0,inlineRefs:(se=R.inlineRefs)!==null&&se!==void 0?se:!0,schemaId:(ee=R.schemaId)!==null&&ee!==void 0?ee:"$id",addUsedSchema:(te=R.addUsedSchema)!==null&&te!==void 0?te:!0,validateSchema:(pe=R.validateSchema)!==null&&pe!==void 0?pe:!0,validateFormats:(ie=R.validateFormats)!==null&&ie!==void 0?ie:!0,unicodeRegExp:(de=R.unicodeRegExp)!==null&&de!==void 0?de:!0,int32range:($e=R.int32range)!==null&&$e!==void 0?$e:!0,uriResolver:Q}}class P{constructor(N={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,N=this.opts={...N,...d(N)};const{es5:V,lines:j}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:x,es5:V,lines:j}),this.logger=F(N.logger);const v=N.validateFormats;N.validateFormats=!1,this.RULES=(0,s.getRules)(),h.call(this,b,N,"NOT SUPPORTED"),h.call(this,w,N,"DEPRECATED","warn"),this._metaOpts=q.call(this),N.formats&&O.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),N.keywords&&C.call(this,N.keywords),typeof N.meta=="object"&&this.addMetaSchema(N.meta),E.call(this),N.validateFormats=v}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:N,meta:V,schemaId:j}=this.opts;let v=f;j==="id"&&(v={...f},v.id=v.$id,delete v.$id),V&&N&&this.addMetaSchema(v,v[j],!1)}defaultMeta(){const{meta:N,schemaId:V}=this.opts;return this.opts.defaultMeta=typeof N=="object"?N[V]||N:void 0}setDefaultUnevaluatedProperties(N){this.opts.defaultUnevaluatedProperties=N}validate(N,V){let j;if(typeof N=="string"){if(j=this.getSchema(N),!j)throw new Error(`no schema with key or ref "${N}"`)}else j=this.compile(N);const v=j(V);return"$async"in j||(this.errors=j.errors),v}compile(N,V){const j=this._addSchema(N,V);return j.validate||this._compileSchemaEnv(j)}compileAsync(N,V){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:j}=this.opts;return v.call(this,N,V);async function v(re,I){await S.call(this,re.$schema);const k=this._addSchema(re,I);return k.validate||T.call(this,k)}async function S(re){re&&!this.getSchema(re)&&await v.call(this,{$ref:re},!0)}async function T(re){try{return this._compileSchemaEnv(re)}catch(I){if(!(I instanceof o.default))throw I;return M.call(this,I),await U.call(this,I.missingSchema),T.call(this,re)}}function M({missingSchema:re,missingRef:I}){if(this.refs[re])throw new Error(`AnySchema ${re} is loaded but ${I} cannot be resolved`)}async function U(re){const I=await J.call(this,re);this.refs[re]||await S.call(this,I.$schema),this.refs[re]||this.addSchema(I,re,V)}async function J(re){const I=this._loading[re];if(I)return I;try{return await(this._loading[re]=j(re))}finally{delete this._loading[re]}}}addSchema(N,V,j,v=this.opts.validateSchema){if(Array.isArray(N)){for(const T of N)this.addSchema(T,void 0,j,v);return this}let S;if(typeof N=="object"){const{schemaId:T}=this.opts;if(S=N[T],S!==void 0&&typeof S!="string")throw new Error(`schema ${T} must be string`)}return V=(0,i.normalizeId)(V||S),this._checkUnique(V),this.schemas[V]=this._addSchema(N,j,V,v,!0),this}addMetaSchema(N,V,j=this.opts.validateSchema){return this.addSchema(N,V,!0,j),this}validateSchema(N,V){if(typeof N=="boolean")return!0;let j;if(j=N.$schema,j!==void 0&&typeof j!="string")throw new Error("$schema must be a string");if(j=j||this.opts.defaultMeta||this.defaultMeta(),!j)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const v=this.validate(j,N);if(!v&&V){const S="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(S);else throw new Error(S)}return v}getSchema(N){let V;for(;typeof(V=g.call(this,N))=="string";)N=V;if(V===void 0){const{schemaId:j}=this.opts,v=new a.SchemaEnv({schema:{},schemaId:j});if(V=a.resolveSchema.call(this,v,N),!V)return;this.refs[N]=V}return V.validate||this._compileSchemaEnv(V)}removeSchema(N){if(N instanceof RegExp)return this._removeAllSchemas(this.schemas,N),this._removeAllSchemas(this.refs,N),this;switch(typeof N){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const V=g.call(this,N);return typeof V=="object"&&this._cache.delete(V.schema),delete this.schemas[N],delete this.refs[N],this}case"object":{const V=N;this._cache.delete(V);let j=N[this.opts.schemaId];return j&&(j=(0,i.normalizeId)(j),delete this.schemas[j],delete this.refs[j]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(N){for(const V of N)this.addKeyword(V);return this}addKeyword(N,V){let j;if(typeof N=="string")j=N,typeof V=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),V.keyword=j);else if(typeof N=="object"&&V===void 0){if(V=N,j=V.keyword,Array.isArray(j)&&!j.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(K.call(this,j,V),!V)return(0,p.eachItem)(j,S=>le.call(this,S)),this;xe.call(this,V);const v={...V,type:(0,l.getJSONTypes)(V.type),schemaType:(0,l.getJSONTypes)(V.schemaType)};return(0,p.eachItem)(j,v.type.length===0?S=>le.call(this,S,v):S=>v.type.forEach(T=>le.call(this,S,v,T))),this}getKeyword(N){const V=this.RULES.all[N];return typeof V=="object"?V.definition:!!V}removeKeyword(N){const{RULES:V}=this;delete V.keywords[N],delete V.all[N];for(const j of V.rules){const v=j.rules.findIndex(S=>S.keyword===N);v>=0&&j.rules.splice(v,1)}return this}addFormat(N,V){return typeof V=="string"&&(V=new RegExp(V)),this.formats[N]=V,this}errorsText(N=this.errors,{separator:V=", ",dataVar:j="data"}={}){return!N||N.length===0?"No errors":N.map(v=>`${j}${v.instancePath} ${v.message}`).reduce((v,S)=>v+V+S)}$dataMetaSchema(N,V){const j=this.RULES.all;N=JSON.parse(JSON.stringify(N));for(const v of V){const S=v.split("/").slice(1);let T=N;for(const M of S)T=T[M];for(const M in j){const U=j[M];if(typeof U!="object")continue;const{$data:J}=U.definition,re=T[M];J&&re&&(T[M]=Ee(re))}}return N}_removeAllSchemas(N,V){for(const j in N){const v=N[j];(!V||V.test(j))&&(typeof v=="string"?delete N[j]:v&&!v.meta&&(this._cache.delete(v.schema),delete N[j]))}}_addSchema(N,V,j,v=this.opts.validateSchema,S=this.opts.addUsedSchema){let T;const{schemaId:M}=this.opts;if(typeof N=="object")T=N[M];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof N!="boolean")throw new Error("schema must be object or boolean")}let U=this._cache.get(N);if(U!==void 0)return U;j=(0,i.normalizeId)(T||j);const J=i.getSchemaRefs.call(this,N,j);return U=new a.SchemaEnv({schema:N,schemaId:M,meta:V,baseId:j,localRefs:J}),this._cache.set(U.schema,U),S&&!j.startsWith("#")&&(j&&this._checkUnique(j),this.refs[j]=U),v&&this.validateSchema(N,!0),U}_checkUnique(N){if(this.schemas[N]||this.refs[N])throw new Error(`schema with key or id "${N}" already exists`)}_compileSchemaEnv(N){if(N.meta?this._compileMetaSchema(N):a.compileSchema.call(this,N),!N.validate)throw new Error("ajv implementation error");return N.validate}_compileMetaSchema(N){const V=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,N)}finally{this.opts=V}}}P.ValidationError=n.default,P.MissingRefError=o.default,e.default=P;function h(R,N,V,j="error"){for(const v in R){const S=v;S in N&&this.logger[j](`${V}: option ${v}. ${R[S]}`)}}function g(R){return R=(0,i.normalizeId)(R),this.schemas[R]||this.refs[R]}function E(){const R=this.opts.schemas;if(R)if(Array.isArray(R))this.addSchema(R);else for(const N in R)this.addSchema(R[N],N)}function O(){for(const R in this.opts.formats){const N=this.opts.formats[R];N&&this.addFormat(R,N)}}function C(R){if(Array.isArray(R)){this.addVocabulary(R);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const N in R){const V=R[N];V.keyword||(V.keyword=N),this.addKeyword(V)}}function q(){const R={...this.opts};for(const N of _)delete R[N];return R}const z={log(){},warn(){},error(){}};function F(R){if(R===!1)return z;if(R===void 0)return console;if(R.log&&R.warn&&R.error)return R;throw new Error("logger must implement log, warn and error methods")}const L=/^[a-z_$][a-z0-9_$:-]*$/i;function K(R,N){const{RULES:V}=this;if((0,p.eachItem)(R,j=>{if(V.keywords[j])throw new Error(`Keyword ${j} is already defined`);if(!L.test(j))throw new Error(`Keyword ${j} has invalid name`)}),!!N&&N.$data&&!("code"in N||"validate"in N))throw new Error('$data keyword must have "code" or "validate" function')}function le(R,N,V){var j;const v=N?.post;if(V&&v)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:S}=this;let T=v?S.post:S.rules.find(({type:U})=>U===V);if(T||(T={type:V,rules:[]},S.rules.push(T)),S.keywords[R]=!0,!N)return;const M={keyword:R,definition:{...N,type:(0,l.getJSONTypes)(N.type),schemaType:(0,l.getJSONTypes)(N.schemaType)}};N.before?ue.call(this,T,M,N.before):T.rules.push(M),S.all[R]=M,(j=N.implements)===null||j===void 0||j.forEach(U=>this.addKeyword(U))}function ue(R,N,V){const j=R.rules.findIndex(v=>v.keyword===V);j>=0?R.rules.splice(j,0,N):(R.rules.push(N),this.logger.warn(`rule ${V} is not defined`))}function xe(R){let{metaSchema:N}=R;N!==void 0&&(R.$data&&this.opts.$data&&(N=Ee(N)),R.validateSchema=this.compile(N,!0))}const ce={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Ee(R){return{anyOf:[R,ce]}}})(Ad)),Ad}var $s={},Es={},_s={},df;function l1(){if(df)return _s;df=1,Object.defineProperty(_s,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return _s.default=e,_s}var ar={},ff;function p1(){if(ff)return ar;ff=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.callRef=ar.getValidate=void 0;const e=bs(),t=Ct(),r=Se(),n=Ot(),o=hi(),s=qe(),a={keyword:"$ref",schemaType:"string",code(l){const{gen:p,schema:f,it:$}=l,{baseId:m,schemaEnv:_,validateName:x,opts:b,self:w}=$,{root:y}=_;if((f==="#"||f==="#/")&&m===y.baseId)return P();const d=o.resolveRef.call(w,y,m,f);if(d===void 0)throw new e.default($.opts.uriResolver,m,f);if(d instanceof o.SchemaEnv)return h(d);return g(d);function P(){if(_===y)return i(l,x,_,_.$async);const E=p.scopeValue("root",{ref:y});return i(l,(0,r._)`${E}.validate`,y,y.$async)}function h(E){const O=c(l,E);i(l,O,E,E.$async)}function g(E){const O=p.scopeValue("schema",b.code.source===!0?{ref:E,code:(0,r.stringify)(E)}:{ref:E}),C=p.name("valid"),q=l.subschema({schema:E,dataTypes:[],schemaPath:r.nil,topSchemaRef:O,errSchemaPath:f},C,$.isAllOfVariant);l.mergeEvaluated(q),l.ok(C)}}};function c(l,p){const{gen:f}=l;return p.validate?f.scopeValue("validate",{ref:p.validate}):(0,r._)`${f.scopeValue("wrapper",{ref:p})}.validate`}ar.getValidate=c;function i(l,p,f,$){const{gen:m,it:_}=l,{allErrors:x,schemaEnv:b,opts:w}=_,y=w.passContext?n.default.this:r.nil;$?d():P();function d(){if(!b.$async)throw new Error("async schema referenced by sync schema");const E=m.let("valid");m.try(()=>{m.code((0,r._)`await ${(0,t.callValidateCode)(l,p,y)}`),g(p),x||m.assign(E,!0)},O=>{m.if((0,r._)`!(${O} instanceof ${_.ValidationError})`,()=>m.throw(O)),h(O),x||m.assign(E,!1)}),l.ok(E)}function P(){const E=m.name("visitedNodes");m.code((0,r._)`const ${E} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${p}) || new Set()`),m.if((0,r._)`!${E}.has(${l.data})`,()=>{m.code((0,r._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${p}, ${E})`),m.code((0,r._)`const dataNode = ${l.data}`),m.code((0,r._)`if (typeof dataNode === "object" && dataNode !== null) ${E}.add(dataNode)`);const O=l.result((0,t.callValidateCode)(l,p,y),()=>g(p),()=>h(p));return m.code((0,r._)`${E}.delete(dataNode)`),O})}function h(E){const O=(0,r._)`${E}.errors`;m.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${O} : ${n.default.vErrors}.concat(${O})`),m.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function g(E){var O;if(!_.opts.unevaluated)return;const C=(O=f?.validate)===null||O===void 0?void 0:O.evaluated;if(_.props!==!0)if(C&&!C.dynamicProps)C.props!==void 0&&(_.props=s.mergeEvaluated.props(m,C.props,_.props));else{const q=m.var("props",(0,r._)`${E}.evaluated.props`);_.props=s.mergeEvaluated.props(m,q,_.props,r.Name)}if(_.items!==!0)if(C&&!C.dynamicItems)C.items!==void 0&&(_.items=s.mergeEvaluated.items(m,C.items,_.items));else{const q=m.var("items",(0,r._)`${E}.evaluated.items`);_.items=s.mergeEvaluated.items(m,q,_.items,r.Name)}}}return ar.callRef=i,ar.default=a,ar}var mf;function u1(){if(mf)return Es;mf=1,Object.defineProperty(Es,"__esModule",{value:!0});const e=l1(),t=p1(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Es.default=r,Es}var Ps={},xs={},hf;function d1(){if(hf)return xs;hf=1,Object.defineProperty(xs,"__esModule",{value:!0});const e=Se(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},n={message:({keyword:s,schemaCode:a})=>(0,e.str)`must be ${r[s].okStr} ${a}`,params:({keyword:s,schemaCode:a})=>(0,e._)`{comparison: ${r[s].okStr}, limit: ${a}}`},o={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(s){const{keyword:a,data:c,schemaCode:i}=s;s.fail$data((0,e._)`${c} ${r[a].fail} ${i} || isNaN(${c})`)}};return xs.default=o,xs}var Ss={},yf;function f1(){if(yf)return Ss;yf=1,Object.defineProperty(Ss,"__esModule",{value:!0});const e=Se(),t={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must be multiple of ${r}`,params:({schemaCode:r})=>(0,e._)`{multipleOf: ${r}}`},code(r){const{gen:n,data:o,schemaCode:s,it:a}=r,c=a.opts.multipleOfPrecision,i=n.let("res"),l=c?(0,e._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${c}`:(0,e._)`${i} !== parseInt(${i})`;r.fail$data((0,e._)`(${s} === 0 || (${i} = ${o}/${s}, ${l}))`)}};return Ss.default=t,Ss}var Is={},Ts={},gf;function m1(){if(gf)return Ts;gf=1,Object.defineProperty(Ts,"__esModule",{value:!0});function e(t){const r=t.length;let n=0,o=0,s;for(;o<r;)n++,s=t.charCodeAt(o++),s>=55296&&s<=56319&&o<r&&(s=t.charCodeAt(o),(s&64512)===56320&&o++);return n}return Ts.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Ts}var vf;function h1(){if(vf)return Is;vf=1,Object.defineProperty(Is,"__esModule",{value:!0});const e=Se(),t=qe(),r=m1(),n={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:s}){const a=o==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${s} characters`},params:({schemaCode:o})=>(0,e._)`{limit: ${o}}`},code(o){const{keyword:s,data:a,schemaCode:c,it:i}=o,l=s==="maxLength"?e.operators.GT:e.operators.LT,p=i.opts.unicode===!1?(0,e._)`${a}.length`:(0,e._)`${(0,t.useFunc)(o.gen,r.default)}(${a})`;o.fail$data((0,e._)`${p} ${l} ${c}`)}};return Is.default=n,Is}var ks={},bf;function y1(){if(bf)return ks;bf=1,Object.defineProperty(ks,"__esModule",{value:!0});const e=Ct(),t=qe(),r=Se(),n={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:o})=>(0,r.str)`must match pattern "${o}"`,params:({schemaCode:o})=>(0,r._)`{pattern: ${o}}`},code(o){const{gen:s,data:a,$data:c,schema:i,schemaCode:l,it:p}=o,f=p.opts.unicodeRegExp?"u":"";if(c){const{regExp:$}=p.opts.code,m=$.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(s,$),_=s.let("valid");s.try(()=>s.assign(_,(0,r._)`${m}(${l}, ${f}).test(${a})`),()=>s.assign(_,!1)),o.fail$data((0,r._)`!${_}`)}else{const $=(0,e.usePattern)(o,i);o.fail$data((0,r._)`!${$}.test(${a})`)}}};return ks.default=n,ks}var Ns={},wf;function g1(){if(wf)return Ns;wf=1,Object.defineProperty(Ns,"__esModule",{value:!0});const e=Se(),t={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:n}){const o=r==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${n} properties`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:n,data:o,schemaCode:s}=r,a=n==="maxProperties"?e.operators.GT:e.operators.LT;r.fail$data((0,e._)`Object.keys(${o}).length ${a} ${s}`)}};return Ns.default=t,Ns}var Os={},$f;function v1(){if($f)return Os;$f=1,Object.defineProperty(Os,"__esModule",{value:!0});const e=Ct(),t=ef(),r=Se(),n=qe(),o={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:s}})=>(0,r.str)`must have required property '${s}'`,params:({params:{missingProperty:s}})=>(0,r._)`{missingProperty: ${s}}`},code(s){const{gen:a,schema:c,schemaCode:i,data:l,$data:p,it:f}=s,{opts:$}=f;if(!p&&c.length===0)return;const m=c.length>=$.loopRequired;if(f.allErrors?_():x(),$.strictRequired){const y=s.parentSchema.properties,{definedProperties:d}=s.it;for(const P of c)if(y?.[P]===void 0&&!d.has(P)){const h=f.schemaEnv.baseId+f.errSchemaPath,g=`required property "${P}" is not defined at "${h}" (strictRequired)`;(0,n.checkStrictMode)(f,g,f.opts.strictRequired)}}function _(){var y;if(m||p)s.block$data(r.nil,b);else for(const d of c){const P=(y=(0,t.getSkipCondition)(s.parentSchema,d))!==null&&y!==void 0?y:(0,r._)`false`;a.if((0,r.not)(P),()=>(0,e.checkReportMissingProp)(s,d))}}function x(){const y=a.let("missing");if(m||p){const d=a.let("valid",!0);s.block$data(d,()=>w(y,d)),s.ok(d)}else a.if((0,e.checkMissingProp)(s,c,y)),(0,e.reportMissingProp)(s,y),a.else()}function b(){a.forOf("prop",i,y=>{s.setParams({missingProperty:y}),a.if((0,e.noPropertyInData)(a,l,y,$.ownProperties),()=>s.error())})}function w(y,d){s.setParams({missingProperty:y}),a.forOf(y,i,()=>{a.assign(d,(0,e.propertyInData)(a,l,y,$.ownProperties)),a.if((0,r.not)(d),()=>{s.error(),a.break()})},r.nil)}}};return Os.default=o,Os}var js={},Ef;function b1(){if(Ef)return js;Ef=1,Object.defineProperty(js,"__esModule",{value:!0});const e=Se(),t=Ot(),r={keyword:"readOnly",schemaType:"boolean",error:{message:()=>(0,e.str)`must NOT be present in request context`},code(n){if(n.schema!==!0)return;const o=(0,e._)`(${t.default.this} && ${t.default.this}.apiContext)`;n.fail((0,e._)`${o} === "request"`)}};return js.default=r,js}var Cs={},_f;function w1(){if(_f)return Cs;_f=1,Object.defineProperty(Cs,"__esModule",{value:!0});const e=Se(),t=Ot(),r={keyword:"writeOnly",schemaType:"boolean",error:{message:()=>(0,e.str)`must NOT be present in response context`},code(n){if(n.schema!==!0)return;const o=(0,e._)`(${t.default.this} && ${t.default.this}.apiContext)`;n.fail((0,e._)`${o} === "response"`)}};return Cs.default=r,Cs}var As={},Pf;function $1(){if(Pf)return As;Pf=1,Object.defineProperty(As,"__esModule",{value:!0});const e=Se(),t={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:n}){const o=r==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${n} items`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:n,data:o,schemaCode:s}=r,a=n==="maxItems"?e.operators.GT:e.operators.LT;r.fail$data((0,e._)`${o}.length ${a} ${s}`)}};return As.default=t,As}var Rs={},Ds={},xf;function yi(){if(xf)return Ds;xf=1,Object.defineProperty(Ds,"__esModule",{value:!0});const e=vn();return e.code='require("ajv/dist/runtime/equal").default',Ds.default=e,Ds}var Sf;function E1(){if(Sf)return Rs;Sf=1,Object.defineProperty(Rs,"__esModule",{value:!0});const e=ms(),t=Se(),r=qe(),n=yi(),o={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:s,j:a}})=>(0,t.str)`must NOT have duplicate items (items ## ${a} and ${s} are identical)`,params:({params:{i:s,j:a}})=>(0,t._)`{i: ${s}, j: ${a}}`},code(s){const{gen:a,data:c,$data:i,schema:l,parentSchema:p,schemaCode:f,it:$}=s;if(!i&&!l)return;const m=a.let("valid"),_=p.items?(0,e.getSchemaTypes)(p.items):[];s.block$data(m,x,(0,t._)`${f} === false`),s.ok(m);function x(){const d=a.let("i",(0,t._)`${c}.length`),P=a.let("j");s.setParams({i:d,j:P}),a.assign(m,!0),a.if((0,t._)`${d} > 1`,()=>(b()?w:y)(d,P))}function b(){return _.length>0&&!_.some(d=>d==="object"||d==="array")}function w(d,P){const h=a.name("item"),g=(0,e.checkDataTypes)(_,h,$.opts.strictNumbers,e.DataType.Wrong),E=a.const("indices",(0,t._)`{}`);a.for((0,t._)`;${d}--;`,()=>{a.let(h,(0,t._)`${c}[${d}]`),a.if(g,(0,t._)`continue`),_.length>1&&a.if((0,t._)`typeof ${h} == "string"`,(0,t._)`${h} += "_"`),a.if((0,t._)`typeof ${E}[${h}] == "number"`,()=>{a.assign(P,(0,t._)`${E}[${h}]`),s.error(),a.assign(m,!1).break()}).code((0,t._)`${E}[${h}] = ${d}`)})}function y(d,P){const h=(0,r.useFunc)(a,n.default),g=a.name("outer");a.label(g).for((0,t._)`;${d}--;`,()=>a.for((0,t._)`${P} = ${d}; ${P}--;`,()=>a.if((0,t._)`${h}(${c}[${d}], ${c}[${P}])`,()=>{s.error(),a.assign(m,!1).break(g)})))}}};return Rs.default=o,Rs}var qs={},If;function _1(){if(If)return qs;If=1,Object.defineProperty(qs,"__esModule",{value:!0});const e=Se(),t=qe(),r=yi(),n={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:o})=>(0,e._)`{allowedValue: ${o}}`},code(o){const{gen:s,data:a,$data:c,schemaCode:i,schema:l}=o;c||l&&typeof l=="object"?o.fail$data((0,e._)`!${(0,t.useFunc)(s,r.default)}(${a}, ${i})`):o.fail((0,e._)`${l} !== ${a}`)}};return qs.default=n,qs}var Ls={},Tf;function P1(){if(Tf)return Ls;Tf=1,Object.defineProperty(Ls,"__esModule",{value:!0});const e=Se(),t=qe(),r=yi(),n={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:o})=>(0,e._)`{allowedValues: ${o}}`},code(o){const{gen:s,data:a,$data:c,schema:i,schemaCode:l,it:p}=o;if(!c&&i.length===0)throw new Error("enum must have non-empty array");const f=i.length>=p.opts.loopEnum;let $;const m=()=>$??($=(0,t.useFunc)(s,r.default));let _;if(f||c)_=s.let("valid"),o.block$data(_,x);else{if(!Array.isArray(i))throw new Error("ajv implementation error");const w=s.const("vSchema",l);_=(0,e.or)(...i.map((y,d)=>b(w,d)))}o.pass(_);function x(){s.assign(_,!1),s.forOf("v",l,w=>s.if((0,e._)`${m()}(${a}, ${w})`,()=>s.assign(_,!0).break()))}function b(w,y){const d=i[y];return typeof d=="object"&&d!==null?(0,e._)`${m()}(${a}, ${w}[${y}])`:(0,e._)`${a} === ${d}`}}};return Ls.default=n,Ls}var kf;function x1(){if(kf)return Ps;kf=1,Object.defineProperty(Ps,"__esModule",{value:!0});const e=d1(),t=f1(),r=h1(),n=y1(),o=g1(),s=v1(),a=b1(),c=w1(),i=$1(),l=E1(),p=_1(),f=P1(),$=[e.default,t.default,r.default,n.default,o.default,s.default,a.default,c.default,i.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},p.default,f.default];return Ps.default=$,Ps}var Ms={},jr={},Nf;function Of(){if(Nf)return jr;Nf=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.validateAdditionalItems=void 0;const e=Se(),t=qe(),r={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:o}})=>(0,e.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,e._)`{limit: ${o}}`},code(o){const{parentSchema:s,it:a}=o,{items:c}=s;if(!Array.isArray(c)){(0,t.checkStrictMode)(a,'"additionalItems" is ignored when "items" is not an array of schemas');return}n(o,c)}};function n(o,s){const{gen:a,schema:c,data:i,keyword:l,it:p}=o;p.items=!0;const f=a.const("len",(0,e._)`${i}.length`);if(c===!1)o.setParams({len:s.length}),o.pass((0,e._)`${f} <= ${s.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(p,c)){const m=a.var("valid",(0,e._)`${f} <= ${s.length}`);a.if((0,e.not)(m),()=>$(m)),o.ok(m)}function $(m){a.forRange("i",s.length,f,_=>{o.subschema({keyword:l,dataProp:_,dataPropType:t.Type.Num},m),p.allErrors||a.if((0,e.not)(m),()=>a.break())})}}return jr.validateAdditionalItems=n,jr.default=r,jr}var Vs={},Cr={},jf;function Cf(){if(jf)return Cr;jf=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.validateTuple=void 0;const e=Se(),t=qe(),r=Ct(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(s){const{schema:a,it:c}=s;if(Array.isArray(a))return o(s,"additionalItems",a);c.items=!0,!(0,t.alwaysValidSchema)(c,a)&&s.ok((0,r.validateArray)(s))}};function o(s,a,c=s.schema){const{gen:i,parentSchema:l,data:p,keyword:f,it:$}=s;x(l),$.opts.unevaluated&&c.length&&$.items!==!0&&($.items=t.mergeEvaluated.items(i,c.length,$.items));const m=i.name("valid"),_=i.const("len",(0,e._)`${p}.length`);c.forEach((b,w)=>{(0,t.alwaysValidSchema)($,b)||(i.if((0,e._)`${_} > ${w}`,()=>s.subschema({keyword:f,schemaProp:w,dataProp:w},m)),s.ok(m))});function x(b){const{opts:w,errSchemaPath:y}=$,d=c.length,P=d===b.minItems&&(d===b.maxItems||b[a]===!1);if(w.strictTuples&&!P){const h=`"${f}" is ${d}-tuple, but minItems or maxItems/${a} are not specified or different at path "${y}"`;(0,t.checkStrictMode)($,h,w.strictTuples)}}}return Cr.validateTuple=o,Cr.default=n,Cr}var Af;function S1(){if(Af)return Vs;Af=1,Object.defineProperty(Vs,"__esModule",{value:!0});const e=Cf(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return Vs.default=t,Vs}var Fs={},Rf;function I1(){if(Rf)return Fs;Rf=1,Object.defineProperty(Fs,"__esModule",{value:!0});const e=Se(),t=qe(),r=Ct(),n=Of(),o={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,e.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,e._)`{limit: ${s}}`},code(s){const{schema:a,parentSchema:c,it:i}=s,{prefixItems:l}=c;i.items=!0,!(0,t.alwaysValidSchema)(i,a)&&(l?(0,n.validateAdditionalItems)(s,l):s.ok((0,r.validateArray)(s)))}};return Fs.default=o,Fs}var zs={},Df;function T1(){if(Df)return zs;Df=1,Object.defineProperty(zs,"__esModule",{value:!0});const e=Se(),t=qe(),r={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:n,max:o}})=>o===void 0?(0,e.str)`must contain at least ${n} valid item(s)`:(0,e.str)`must contain at least ${n} and no more than ${o} valid item(s)`,params:({params:{min:n,max:o}})=>o===void 0?(0,e._)`{minContains: ${n}}`:(0,e._)`{minContains: ${n}, maxContains: ${o}}`},code(n){const{gen:o,schema:s,parentSchema:a,data:c,it:i}=n;let l,p;const{minContains:f,maxContains:$}=a;i.opts.next?(l=f===void 0?1:f,p=$):l=1;const m=o.const("len",(0,e._)`${c}.length`);if(n.setParams({min:l,max:p}),p===void 0&&l===0){(0,t.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(p!==void 0&&l>p){(0,t.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),n.fail();return}if((0,t.alwaysValidSchema)(i,s)){let y=(0,e._)`${m} >= ${l}`;p!==void 0&&(y=(0,e._)`${y} && ${m} <= ${p}`),n.pass(y);return}i.items=!0;const _=o.name("valid");p===void 0&&l===1?b(_,()=>o.if(_,()=>o.break())):l===0?(o.let(_,!0),p!==void 0&&o.if((0,e._)`${c}.length > 0`,x)):(o.let(_,!1),x()),n.result(_,()=>n.reset());function x(){const y=o.name("_valid"),d=o.let("count",0);b(y,()=>o.if(y,()=>w(d)))}function b(y,d){o.forRange("i",0,m,P=>{n.subschema({keyword:"contains",dataProp:P,dataPropType:t.Type.Num,compositeRule:!0},y),d()})}function w(y){o.code((0,e._)`${y}++`),p===void 0?o.if((0,e._)`${y} >= ${l}`,()=>o.assign(_,!0).break()):(o.if((0,e._)`${y} > ${p}`,()=>o.assign(_,!1).break()),l===1?o.assign(_,!0):o.if((0,e._)`${y} >= ${l}`,()=>o.assign(_,!0)))}}};return zs.default=r,zs}var qf={},Lf;function k1(){return Lf||(Lf=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Se(),r=qe(),n=Ct();e.error={message:({params:{property:i,depsCount:l,deps:p}})=>{const f=l===1?"property":"properties";return(0,t.str)`must have ${f} ${p} when property ${i} is present`},params:({params:{property:i,depsCount:l,deps:p,missingProperty:f}})=>(0,t._)`{property: ${i},
|
|
76
|
-
missingProperty: ${f},
|
|
77
|
-
depsCount: ${l},
|
|
78
|
-
deps: ${p}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(i){const[l,p]=s(i);a(i,l),c(i,p)}};function s({schema:i}){const l={},p={};for(const f in i){if(f==="__proto__")continue;const $=Array.isArray(i[f])?l:p;$[f]=i[f]}return[l,p]}function a(i,l=i.schema){const{gen:p,data:f,it:$}=i;if(Object.keys(l).length===0)return;const m=p.let("missing");for(const _ in l){const x=l[_];if(x.length===0)continue;const b=(0,n.propertyInData)(p,f,_,$.opts.ownProperties);i.setParams({property:_,depsCount:x.length,deps:x.join(", ")}),$.allErrors?p.if(b,()=>{for(const w of x)(0,n.checkReportMissingProp)(i,w)}):(p.if((0,t._)`${b} && (${(0,n.checkMissingProp)(i,x,m)})`),(0,n.reportMissingProp)(i,m),p.else())}}e.validatePropertyDeps=a;function c(i,l=i.schema){const{gen:p,data:f,keyword:$,it:m}=i,_=p.name("valid");for(const x in l)(0,r.alwaysValidSchema)(m,l[x])||(p.if((0,n.propertyInData)(p,f,x,m.opts.ownProperties),()=>{const b=i.subschema({keyword:$,schemaProp:x},_);i.mergeValidEvaluated(b,_)},()=>p.var(_,!0)),i.ok(_))}e.validateSchemaDeps=c,e.default=o})(qf)),qf}var Us={},Mf;function N1(){if(Mf)return Us;Mf=1,Object.defineProperty(Us,"__esModule",{value:!0});const e=Se(),t=qe(),r={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:n})=>(0,e._)`{propertyName: ${n.propertyName}}`},code(n){const{gen:o,schema:s,data:a,it:c}=n;if((0,t.alwaysValidSchema)(c,s))return;const i=o.name("valid");o.forIn("key",a,l=>{n.setParams({propertyName:l}),n.subschema({keyword:"propertyNames",data:l,dataTypes:["string"],propertyName:l,compositeRule:!0},i),o.if((0,e.not)(i),()=>{n.error(!0),c.allErrors||o.break()})}),n.ok(i)}};return Us.default=r,Us}var Bs={},Vf;function Ff(){if(Vf)return Bs;Vf=1,Object.defineProperty(Bs,"__esModule",{value:!0});const e=Ct(),t=Se(),r=Ot(),n=qe(),o={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,t._)`{additionalProperty: ${s.additionalProperty}}`},code(s){const{gen:a,parentSchema:c,data:i,errsCount:l,it:p}=s,{schema:f=p.opts.defaultAdditionalProperties}=s;if(!l)throw new Error("ajv implementation error");const{allErrors:$,opts:m}=p;if(p.props=!0,m.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(p,f))return;const _=(0,e.allSchemaProperties)(c.properties),x=(0,e.allSchemaProperties)(c.patternProperties);b(),s.ok((0,t._)`${l} === ${r.default.errors}`);function b(){a.forIn("key",i,h=>{!_.length&&!x.length?d(h):a.if(w(h),()=>d(h))})}function w(h){let g;if(_.length>8){const E=(0,n.schemaRefOrVal)(p,c.properties,"properties");g=(0,e.isOwnProperty)(a,E,h)}else _.length?g=(0,t.or)(..._.map(E=>(0,t._)`${h} === ${E}`)):g=t.nil;return x.length&&(g=(0,t.or)(g,...x.map(E=>(0,t._)`${(0,e.usePattern)(s,E)}.test(${h})`))),(0,t.not)(g)}function y(h){a.code((0,t._)`delete ${i}[${h}]`)}function d(h){if(m.removeAdditional==="all"||m.removeAdditional&&f===!1){y(h);return}if(f===!1){s.setParams({additionalProperty:h}),s.error(),$||a.break();return}if(typeof f=="object"&&!(0,n.alwaysValidSchema)(p,f)){const g=a.name("valid");m.removeAdditional==="failing"?(P(h,g,!1),a.if((0,t.not)(g),()=>{s.reset(),y(h)})):(P(h,g),$||a.if((0,t.not)(g),()=>a.break()))}}function P(h,g,E){const O={keyword:"additionalProperties",dataProp:h,dataPropType:n.Type.Str};E===!1&&Object.assign(O,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(O,g)}}};return Bs.default=o,Bs}var Gs={},zf;function O1(){if(zf)return Gs;zf=1,Object.defineProperty(Gs,"__esModule",{value:!0});const e=ys(),t=Ct(),r=qe(),n=Ff(),o={keyword:"properties",type:"object",schemaType:"object",code(s){const{gen:a,schema:c,parentSchema:i,data:l,it:p}=s;(p.opts.removeAdditional==="all"&&i.additionalProperties===void 0||p.opts.defaultAdditionalProperties===!1)&&n.default.code(new e.KeywordCxt(p,n.default,"additionalProperties"));const f=(0,t.allSchemaProperties)(c);for(const b of f)p.definedProperties.add(b);p.opts.unevaluated&&f.length&&p.props!==!0&&(p.props=r.mergeEvaluated.props(a,(0,r.toHash)(f),p.props));const $=f.filter(b=>!(0,r.alwaysValidSchema)(p,c[b]));if($.length===0)return;const m=a.name("valid");for(const b of $)_(b)?x(b):(a.if((0,t.propertyInData)(a,l,b,p.opts.ownProperties)),x(b),p.allErrors||a.else().var(m,!0),a.endIf()),s.it.definedProperties.add(b),s.ok(m);function _(b){return p.opts.useDefaults&&!p.compositeRule&&c[b].default!==void 0}function x(b){s.subschema({keyword:"properties",schemaProp:b,dataProp:b},m)}}};return Gs.default=o,Gs}var Ks={},Uf;function j1(){if(Uf)return Ks;Uf=1,Object.defineProperty(Ks,"__esModule",{value:!0});const e=Ct(),t=Se(),r=qe(),n=qe(),o={keyword:"patternProperties",type:"object",schemaType:"object",code(s){const{gen:a,schema:c,data:i,parentSchema:l,it:p}=s,{opts:f}=p,$=(0,e.allSchemaProperties)(c),m=$.filter(P=>(0,r.alwaysValidSchema)(p,c[P]));if($.length===0||m.length===$.length&&(!p.opts.unevaluated||p.props===!0))return;const _=f.strictSchema&&!f.allowMatchingProperties&&l.properties,x=a.name("valid");p.props!==!0&&!(p.props instanceof t.Name)&&(p.props=(0,n.evaluatedPropsToName)(a,p.props));const{props:b}=p;w();function w(){for(const P of $)_&&y(P),p.allErrors?d(P):(a.var(x,!0),d(P),a.if(x))}function y(P){for(const h in _)new RegExp(P).test(h)&&(0,r.checkStrictMode)(p,`property ${h} matches pattern ${P} (use allowMatchingProperties)`)}function d(P){a.forIn("key",i,h=>{a.if((0,t._)`${(0,e.usePattern)(s,P)}.test(${h})`,()=>{const g=m.includes(P);g||s.subschema({keyword:"patternProperties",schemaProp:P,dataProp:h,dataPropType:n.Type.Str},x),p.opts.unevaluated&&b!==!0?a.assign((0,t._)`${b}[${h}]`,!0):!g&&!p.allErrors&&a.if((0,t.not)(x),()=>a.break())})})}}};return Ks.default=o,Ks}var Js={},Bf;function C1(){if(Bf)return Js;Bf=1,Object.defineProperty(Js,"__esModule",{value:!0});const e=qe(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:o,it:s}=r;if((0,e.alwaysValidSchema)(s,o)){r.fail();return}const a=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),r.failResult(a,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return Js.default=t,Js}var Ys={},Gf;function A1(){if(Gf)return Ys;Gf=1,Object.defineProperty(Ys,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Ct().validateUnion,error:{message:"must match a schema in anyOf"}};return Ys.default=e,Ys}var Ws={},Kf;function R1(){if(Kf)return Ws;Kf=1,Object.defineProperty(Ws,"__esModule",{value:!0});const e=Se(),t=qe(),r={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:n})=>(0,e._)`{passingSchemas: ${n.passing}}`},code(n){const{gen:o,schema:s,parentSchema:a,it:c}=n;if(!Array.isArray(s))throw new Error("ajv implementation error");if(c.opts.discriminator&&a.discriminator)return;const i=s,l=o.let("valid",!1),p=o.let("passing",null),f=o.name("_valid");n.setParams({passing:p}),o.block($),n.result(l,()=>n.reset(),()=>n.error(!0));function $(){i.forEach((m,_)=>{let x;(0,t.alwaysValidSchema)(c,m)?o.var(f,!0):x=n.subschema({keyword:"oneOf",schemaProp:_,compositeRule:!0},f),_>0&&o.if((0,e._)`${f} && ${l}`).assign(l,!1).assign(p,(0,e._)`[${p}, ${_}]`).else(),o.if(f,()=>{o.assign(l,!0),o.assign(p,_),x&&n.mergeEvaluated(x,e.Name)})})}}};return Ws.default=r,Ws}var Hs={},Jf;function D1(){if(Jf)return Hs;Jf=1,Object.defineProperty(Hs,"__esModule",{value:!0});const e=qe(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:o,it:s}=r;if(!Array.isArray(o))throw new Error("ajv implementation error");const a=n.name("valid");o.forEach((c,i)=>{if((0,e.alwaysValidSchema)(s,c))return;const l=r.subschema({keyword:"allOf",schemaProp:i},a,!0);r.ok(a),r.mergeEvaluated(l)})}};return Hs.default=t,Hs}var Xs={},Yf;function q1(){if(Yf)return Xs;Yf=1,Object.defineProperty(Xs,"__esModule",{value:!0});const e=Se(),t=qe(),r={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:o})=>(0,e.str)`must match "${o.ifClause}" schema`,params:({params:o})=>(0,e._)`{failingKeyword: ${o.ifClause}}`},code(o){const{gen:s,parentSchema:a,it:c}=o;a.then===void 0&&a.else===void 0&&(0,t.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const i=n(c,"then"),l=n(c,"else");if(!i&&!l)return;const p=s.let("valid",!0),f=s.name("_valid");if($(),o.reset(),i&&l){const _=s.let("ifClause");o.setParams({ifClause:_}),s.if(f,m("then",_),m("else",_))}else i?s.if(f,m("then")):s.if((0,e.not)(f),m("else"));o.pass(p,()=>o.error(!0));function $(){const _=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);o.mergeEvaluated(_)}function m(_,x){return()=>{const b=o.subschema({keyword:_},f);s.assign(p,f),o.mergeValidEvaluated(b,p),x?s.assign(x,(0,e._)`${_}`):o.setParams({ifClause:_})}}}};function n(o,s){const a=o.schema[s];return a!==void 0&&!(0,t.alwaysValidSchema)(o,a)}return Xs.default=r,Xs}var Qs={},Wf;function L1(){if(Wf)return Qs;Wf=1,Object.defineProperty(Qs,"__esModule",{value:!0});const e=qe(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:o}){n.if===void 0&&(0,e.checkStrictMode)(o,`"${r}" without "if" is ignored`)}};return Qs.default=t,Qs}var Hf;function M1(){if(Hf)return Ms;Hf=1,Object.defineProperty(Ms,"__esModule",{value:!0});const e=Of(),t=S1(),r=Cf(),n=I1(),o=T1(),s=k1(),a=N1(),c=Ff(),i=O1(),l=j1(),p=C1(),f=A1(),$=R1(),m=D1(),_=q1(),x=L1();function b(w=!1){const y=[p.default,f.default,$.default,m.default,_.default,x.default,a.default,c.default,s.default,i.default,l.default];return w?y.push(t.default,n.default):y.push(e.default,r.default),y.push(o.default),y}return Ms.default=b,Ms}var Zs={},ea={},Xf;function V1(){if(Xf)return ea;Xf=1,Object.defineProperty(ea,"__esModule",{value:!0});const e=Se(),t={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,e._)`{format: ${r}}`},code(r,n){const{gen:o,data:s,$data:a,schema:c,schemaCode:i,it:l}=r,{opts:p,errSchemaPath:f,schemaEnv:$,self:m}=l;if(!p.validateFormats)return;a?_():x();function _(){const b=o.scopeValue("formats",{ref:m.formats,code:p.code.formats}),w=o.const("fDef",(0,e._)`${b}[${i}]`),y=o.let("fType"),d=o.let("format");o.if((0,e._)`typeof ${w} == "object" && !(${w} instanceof RegExp)`,()=>o.assign(y,(0,e._)`${w}.type || "string"`).assign(d,(0,e._)`${w}.validate`),()=>o.assign(y,(0,e._)`"string"`).assign(d,w)),r.fail$data((0,e.or)(P(),h()));function P(){return p.strictSchema===!1?e.nil:(0,e._)`${i} && !${d}`}function h(){const g=$.$async?(0,e._)`(${w}.async ? await ${d}(${s}) : ${d}(${s}))`:(0,e._)`${d}(${s})`,E=(0,e._)`(typeof ${d} == "function" ? ${g} : ${d}.test(${s}))`;return(0,e._)`${d} && ${d} !== true && ${y} === ${n} && !${E}`}}function x(){const b=m.formats[c];if(!b){P();return}if(b===!0)return;const[w,y,d]=h(b);w===n&&r.pass(g());function P(){if(p.strictSchema===!1){m.logger.warn(E());return}throw new Error(E());function E(){return`unknown format "${c}" ignored in schema at path "${f}"`}}function h(E){const O=E instanceof RegExp?(0,e.regexpCode)(E):p.code.formats?(0,e._)`${p.code.formats}${(0,e.getProperty)(c)}`:void 0,C=o.scopeValue("formats",{key:c,ref:E,code:O});return typeof E=="object"&&!(E instanceof RegExp)?[E.type||"string",E.validate,(0,e._)`${C}.validate`]:["string",E,C]}function g(){if(typeof b=="object"&&!(b instanceof RegExp)&&b.async){if(!$.$async)throw new Error("async format in sync schema");return(0,e._)`await ${d}(${s})`}return typeof y=="function"?(0,e._)`${d}(${s})`:(0,e._)`${d}.test(${s})`}}}};return ea.default=t,ea}var Qf;function F1(){if(Qf)return Zs;Qf=1,Object.defineProperty(Zs,"__esModule",{value:!0});const e=[V1().default];return Zs.default=e,Zs}var Ar={},Zf;function z1(){return Zf||(Zf=1,Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.contentVocabulary=Ar.metadataVocabulary=void 0,Ar.metadataVocabulary=["title","description","default","deprecated","examples"],Ar.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Ar}var em;function U1(){if(em)return $s;em=1,Object.defineProperty($s,"__esModule",{value:!0});const e=u1(),t=x1(),r=M1(),n=F1(),o=z1(),s=[e.default,t.default,(0,r.default)(),n.default,o.metadataVocabulary,o.contentVocabulary];return $s.default=s,$s}var ta={},un={},tm;function B1(){if(tm)return un;tm=1,Object.defineProperty(un,"__esModule",{value:!0}),un.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(un.DiscrError=e={})),un}var rm;function G1(){if(rm)return ta;rm=1,Object.defineProperty(ta,"__esModule",{value:!0});const e=Se(),t=B1(),r=hi(),n=bs(),o=qe(),s={message:({params:{discrError:i,tagName:l}})=>i===t.DiscrError.Tag?`tag "${l}" must be string`:`value of tag "${l}" must be in oneOf or anyOf`,params:({params:{discrError:i,tag:l,tagName:p}})=>(0,e._)`{error: ${i}, tag: ${p}, tagValue: ${l}}`};function a(i,l){var p;if(!(!i.allOf||!Array.isArray(i.allOf))){for(const f of i.allOf)if(!((p=f?.properties)===null||p===void 0)&&p[l])return f.properties[l]}}const c={keyword:"discriminator",type:"object",schemaType:"object",error:s,code(i){const{gen:l,data:p,schema:f,parentSchema:$,it:m}=i,_=$.oneOf?"oneOf":$.anyOf?"anyOf":void 0;if(!m.opts.discriminator)throw new Error("discriminator: requires discriminator option");const x=f.propertyName;if(typeof x!="string")throw new Error("discriminator: requires propertyName");if(!_)throw new Error("discriminator: requires oneOf or anyOf composite keyword");const b=$[_],w=l.let("valid",!1),y=l.const("tag",(0,e._)`${p}${(0,e.getProperty)(x)}`);l.if((0,e._)`typeof ${y} == "string"`,()=>d(),()=>i.error(!1,{discrError:t.DiscrError.Tag,tag:y,tagName:x})),i.ok(w);function d(){const g=h();l.if(!1);for(const E in g)l.elseIf((0,e._)`${y} === ${E}`),l.assign(w,P(g[E]));l.else(),i.error(!1,{discrError:t.DiscrError.Mapping,tag:y,tagName:x}),l.endIf()}function P(g){const E=l.name("valid"),O=i.subschema({keyword:_,schemaProp:g},E);return i.mergeEvaluated(O,e.Name),E}function h(){var g;const E={},O=q($);let C=!0;for(let L=0;L<b.length;L++){let K=b[L];const le=K?.$ref;if(le&&f.mapping){const{mapping:xe}=f,ce=Object.keys(xe).filter(Ee=>xe[Ee]===K.$ref);if(ce.length){for(const Ee of ce)F(Ee,L);continue}}if(le&&!(0,o.schemaHasRulesButRef)(K,m.self.RULES)&&(K=r.resolveRef.call(m.self,m.schemaEnv.root,m.baseId,le),K instanceof r.SchemaEnv&&(K=K.schema),K===void 0))throw new n.default(m.opts.uriResolver,m.baseId,le);let ue=(g=K?.properties)===null||g===void 0?void 0:g[x];if(!ue&&K?.allOf&&(ue=a(K,x)),typeof ue!="object")throw new Error(`discriminator: ${_} subschemas (or referenced schemas) must have "properties/${x}" or match mapping`);C=C&&(O||q(K)),z(ue,L)}if(!C)throw new Error(`discriminator: "${x}" must be required`);return E;function q(L){if(Array.isArray(L.required)&&L.required.includes(x))return!0;if(L.allOf&&Array.isArray(L.allOf))for(const K of L.allOf){const le=K;if(Array.isArray(le.required)&&le.required.includes(x))return!0}return!1}function z(L,K){if(L.const)F(L.const,K);else if(L.enum)for(const le of L.enum)F(le,K);else throw new Error(`discriminator: "properties/${x}" must have "const" or "enum"`)}function F(L,K){if(typeof L!="string"||L in E)throw new Error(`discriminator: "${x}" values must be unique strings`);E[L]=K}}}};return ta.default=c,ta}const K1="http://json-schema.org/draft-07/schema#",J1="http://json-schema.org/draft-07/schema#",Y1="Core schema meta-schema",W1={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},H1=["object","boolean"],X1={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},Q1={$schema:K1,$id:J1,title:Y1,definitions:W1,type:H1,properties:X1,default:!0};var nm;function Z1(){return nm||(nm=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=c1(),n=U1(),o=G1(),s=Q1,a=["/properties"],c="http://json-schema.org/draft-07/schema";class i extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(_=>this.addVocabulary(_)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const _=this.opts.$data?this.$dataMetaSchema(s,a):s;this.addMetaSchema(_,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=i,e.exports=t=i,e.exports.Ajv=i,Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var l=ys();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var p=Se();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return p._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return p.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return p.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return p.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return p.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return p.CodeGen}});var f=mi();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var $=bs();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return $.default}})})(fi,fi.exports)),fi.exports}var om;function eP(){return om||(om=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Z1(),r=Se(),n=r.operators,o={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},s={message:({keyword:c,schemaCode:i})=>(0,r.str)`should be ${o[c].okStr} ${i}`,params:({keyword:c,schemaCode:i})=>(0,r._)`{comparison: ${o[c].okStr}, limit: ${i}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:s,code(c){const{gen:i,data:l,schemaCode:p,keyword:f,it:$}=c,{opts:m,self:_}=$;if(!m.validateFormats)return;const x=new t.KeywordCxt($,_.RULES.all.format.definition,"format");x.$data?b():w();function b(){const d=i.scopeValue("formats",{ref:_.formats,code:m.code.formats}),P=i.const("fmt",(0,r._)`${d}[${x.schemaCode}]`);c.fail$data((0,r.or)((0,r._)`typeof ${P} != "object"`,(0,r._)`${P} instanceof RegExp`,(0,r._)`typeof ${P}.compare != "function"`,y(P)))}function w(){const d=x.schema,P=_.formats[d];if(!P||P===!0)return;if(typeof P!="object"||P instanceof RegExp||typeof P.compare!="function")throw new Error(`"${f}": format "${d}" does not define "compare" function`);const h=i.scopeValue("formats",{key:d,ref:P,code:m.code.formats?(0,r._)`${m.code.formats}${(0,r.getProperty)(d)}`:void 0});c.fail$data(y(h))}function y(d){return(0,r._)`${d}.compare(${l}, ${p}) ${o[f].fail} 0`}},dependencies:["format"]};const a=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=a})(Cd)),Cd}var sm;function tP(){return sm||(sm=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=W_(),n=eP(),o=Se(),s=new o.Name("fullFormats"),a=new o.Name("fastFormats"),c=(l,p={keywords:!0})=>{if(Array.isArray(p))return i(l,p,r.fullFormats,s),l;const[f,$]=p.mode==="fast"?[r.fastFormats,a]:[r.fullFormats,s],m=p.formats||r.formatNames;return i(l,m,f,$),p.keywords&&(0,n.default)(l),l};c.get=(l,p="full")=>{const f=(p==="fast"?r.fastFormats:r.fullFormats)[l];if(!f)throw new Error(`Unknown format "${l}"`);return f};function i(l,p,f,$){var m,_;(m=(_=l.opts.code).formats)!==null&&m!==void 0||(_.formats=(0,o._)`require("ajv-formats/dist/formats").${$}`);for(const x of p)l.addFormat(x,f[x])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(di,di.exports)),di.exports}var rP=tP();const nP=Mr(rP);function am(e){return e==="draft4"?"id":"$id"}function oP(e){return e==="oas2"||e==="oas3_0"?"draft4":"2020"}class gi{instances={};validate(t,r,n){const{schemaLoc:o,instancePath:s,resolve:a,allowAdditionalProperties:c,ajvContext:i,specVersion:l}=n,p=oP(l),f=this.getValidator(r,o,a,c,p);if(!f)return{valid:!0,errors:[]};const $={instancePath:s,parentData:{fake:{}},parentDataProperty:"fake",rootData:{},dynamicAnchors:{}};return{valid:!!f.call(i??{},t,$),errors:(f.errors||[]).map(m)};function m(_){let x=_.message;const b=_.keyword==="enum"?_.params.allowedValues:void 0;b&&(x+=` ${b.map(d=>`"${d}"`).join(", ")}`),_.keyword==="type"&&(x=`type ${x}`);const w=_.instancePath.substring(s.length+1),y=w.substring(w.lastIndexOf("/")+1);if(y&&(x=`\`${y}\` property ${x}`),_.keyword==="additionalProperties"||_.keyword==="unevaluatedProperties"){const d=_.params.additionalProperty||_.params.unevaluatedProperty;x=`${x} \`${d}\``,_.instancePath+="/"+Bh(d)}return{..._,message:x,suggest:b}}}getAjv(t,r){if(!this.instances[r]){const n=am(r),o={schemaId:n,meta:!0,allErrors:!0,strictSchema:!1,inlineRefs:!1,validateSchema:!1,discriminator:!0,allowUnionTypes:!0,validateFormats:!0,passContext:!0,logger:!1,loadSchemaSync(s,a,c){const i=decodeURI(s.split("#")[0]),l=t({$ref:a},i);return!l||!l.location?!1:{[n]:encodeURI(l.location.source.absoluteRef)+"#"+c,...l.node}}};this.instances[r]=r==="2020"?new Ca(o):new Y_(o),nP(this.instances[r])}return this.instances[r]}getValidator(t,r,n,o,s){const a=this.getAjv(n,s),c=encodeURI(r.absolutePointer),i=am(s);return a.getSchema(c)||(a.setDefaultUnevaluatedProperties(o),a.addSchema({[i]:c,...t},c)),a.getSchema(c)}}const im=e=>{const t=new gi;return{Parameter:{leave(r,n){if(Qt(r.example)&&Qr({example:r.example,schema:r.schema,options:{location:n.location.child("example"),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:{apiContext:"request"}},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-parameter-examples"}),Te(r.examples))for(const[o,s]of Object.entries(r.examples)){const a=Su(s);a&&Qr({example:a.value,schema:r.schema,options:{location:n.location.child(["examples",o,a.field]),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:{apiContext:"request"}},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-parameter-examples"})}}}}},cm=e=>{const t=new gi;return{Schema:{leave(r,n){const o=r.examples;if(Array.isArray(o))for(const s of o)Qr({example:s,schema:r,options:{location:n.location.child(["examples",o.indexOf(s)]),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-schema-examples"});if(Qt(r.example)){if(r.nullable===!0&&r.example===null&&r.type!==void 0)return;Qr({example:r.example,schema:r,options:{location:n.location.child("example"),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-schema-examples"})}}}}},lm=()=>({PathItem(e,{report:t,key:r,rawLocation:n}){r.endsWith("/")&&r!=="/"&&t({message:`\`${r}\` should not have a trailing slash.`,location:n.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-path-trailing-slash"})}}),pm=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){const n=Object.keys(t||{});Bo({responseCodes:n,codeRange:"2XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response"})}},WebhooksMap:{Responses(t,{report:r}){if(!e)return;const n=Object.keys(t||{});Bo({responseCodes:n,codeRange:"2XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response"})}}}),um=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){const n=Object.keys(t||{});Bo({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}},WebhooksMap:{Responses(t,{report:r}){if(!e)return;const n=Object.keys(t||{});Bo({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}}}),dm=()=>({Operation(e,t){nr({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-description"})}}),fm=()=>{const e=new Set;return{Operation(t,{report:r,location:n}){t.operationId&&(e.has(t.operationId)&&r({message:"Every operation must have a unique `operationId`.",location:n.child([t.operationId]),reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId-unique"}),e.add(t.operationId))}}},sP=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/,mm=()=>({Operation(e,{report:t,location:r}){e.operationId&&!sP.test(e.operationId)&&t({message:"Operation `operationId` should not have URL invalid characters.",location:r.child(["operationId"]),reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId-url-safe"})}}),hm=()=>{let e,t;return{PathItem:{enter(){e=new Set},Parameter(r,{report:n,key:o,parentLocations:s}){const a=`${r.in}___${r.name}`;e.has(a)&&n({message:`Paths must have unique \`name\` + \`in\` parameters.
|
|
79
|
-
Repeats of \`in:${r.in}\` + \`name:${r.name}\`.`,location:s.PathItem.child(["parameters",o]),reference:"https://redocly.com/docs/cli/rules/oas/operation-parameters-unique"}),e.add(`${r.in}___${r.name}`)},Operation:{enter(){t=new Set},Parameter(r,{report:n,key:o,parentLocations:s}){const a=`${r.in}___${r.name}`;t.has(a)&&n({message:`Operations must have unique \`name\` + \`in\` parameters. Repeats of \`in:${r.in}\` + \`name:${r.name}\`.`,location:s.Operation.child(["parameters",o]),reference:"https://redocly.com/docs/cli/rules/oas/operation-parameters-unique"}),t.add(a)}}}}},ym=()=>({Operation(e,{report:t,location:r}){e.tags&&e.tags.length>1&&t({message:"Operation `tags` object should have only one tag.",location:r.child(["tags"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/operation-singular-tag"})}}),gm=()=>({Operation(e,t){nr({fieldName:"summary",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-summary"})}}),vm=()=>{let e;return{Root(t){e=new Set((t.tags??[]).map(r=>r.name))},Operation(t,{report:r,location:n}){if(t?.tags)for(let o=0;o<t.tags.length;o++)e.has(t.tags[o])||r({message:"Operation tags should be defined in global tags.",location:n.child(["tags",o]),reference:"https://redocly.com/docs/cli/rules/oas/operation-tag-defined"});else r({message:"Operation tags should be defined",location:n.key(),reference:"https://redocly.com/docs/cli/rules/oas/operation-tag-defined"})}}},bm=()=>({Parameter(e,{report:t,location:r}){e.description===void 0?t({message:"Parameter object description must be present.",location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/parameter-description"}):e.description||t({message:"Parameter object description must be non-empty string.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/oas/parameter-description"})}}),wm=()=>({PathItem(e,{report:t,key:r}){r.indexOf("{}")!==-1&&t({message:"Path parameter declarations must be non-empty. `{}` is invalid.",location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/path-declaration-must-exist"})}}),aP=["get","head","post","put","patch","delete","options","query","trace"],$m=e=>{const t=e&&e.order||aP;if(!Array.isArray(t))throw new Error("path-http-verbs-order `order` option must be an array");return{PathItem(r,{report:n,location:o}){const s=Object.keys(r).filter(a=>t.includes(a));for(let a=0;a<s.length-1;a++){const c=t.indexOf(s[a]);t.indexOf(s[a+1])<c&&n({message:"Operation http verbs must be ordered.",location:{reportOnKey:!0,...o.child(s[a+1])},reference:"https://redocly.com/docs/cli/rules/oas/path-http-verbs-order"})}}}},Em=()=>({Paths:{PathItem(e,{report:t,key:r}){r.toString().includes("?")&&t({message:"Don't put query string items in the path, they belong in parameters with `in: query`.",location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/path-not-include-query"})}}}),iP=/\{([a-zA-Z0-9_.-]+)\}+/g,cP=2,ra=()=>{const e={current:null};return{PathItem:{enter(t,{key:r}){_m(e,r)},leave(){lP(e)},Parameter(t,{report:r,location:n,rawLocation:o}){Pm({parameter:t,pathContext:e,report:r,location:n,rawLocation:o})},Operation:xm(e,new Set)}}},_m=(e,t)=>{e.current={path:t,templateParams:pP(t),definedParams:new Set}},lP=e=>{e.current=null},Pm=({parameter:e,pathContext:t,report:r,location:n,rawLocation:o})=>{e.in==="path"&&e.name&&t.current&&(t.current.definedParams.add(e.name),Sm({paramName:e.name,templateParams:t.current.templateParams,path:t.current.path,report:r,location:n,rawLocation:o}))},xm=(e,t,r=0)=>{const n=(s,a,c)=>{s({message:`Maximum callback nesting depth (${c}) reached. Path parameter validation is limited beyond this depth to prevent infinite recursion.`,location:a,reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})};if(r>=cP)return{enter:()=>{},leave:(s,{report:a,location:c})=>{n(a,c,r)},Parameter:()=>{},Callback:void 0};const o=()=>{let s=null;return{enter(a,{key:c}){s=e.current,_m(e,c)},leave(){e.current=s},Parameter(a,{report:c,location:i,rawLocation:l}){Pm({parameter:a,pathContext:e,report:c,location:i,rawLocation:l})},get Operation(){return xm(e,t,r+1)}}};return{enter(){t=new Set},leave(s,{report:a,location:c}){!e.current||!t||dP({templateParams:e.current.templateParams,definedOperationParams:t,definedPathParams:e.current.definedParams,path:e.current.path,report:a,location:c})},Parameter(s,{report:a,location:c,rawLocation:i}){uP(s,t),s.in==="path"&&s.name&&e.current&&(t.add(s.name),Sm({paramName:s.name,templateParams:e.current.templateParams,path:e.current.path,report:a,location:c,rawLocation:i}))},Callback:{get PathItem(){return o()}}}},pP=e=>new Set(Array.from(e.matchAll(iP)).map(t=>t[1])),uP=(e,t)=>{Te(e)&&"in"in e&&"name"in e&&e.in==="path"&&e.name&&t.add(e.name)},Sm=({paramName:e,templateParams:t,path:r,report:n,location:o,rawLocation:s})=>{if(!t.has(e)){const a=`Path parameter \`${e}\` is not used in the path \`${r}\`.`,c=s===o?void 0:s;n({message:a,location:o.child(["name"]),from:c,reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})}},dP=({templateParams:e,definedOperationParams:t,definedPathParams:r,path:n,report:o,location:s})=>{const a=new Set([...t,...r]);for(const c of e)a.has(c)||o({message:`The operation does not define the path parameter \`{${c}}\` expected by path \`${n}\`.`,location:s.child(["parameters"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})},Im=e=>{const{ignoreLastPathSegment:t,exceptions:r}=e;return{PathItem:{leave(n,{report:o,key:s,location:a}){const c=s.toString();if(c.startsWith("/")){const i=c.split("/");i.shift(),t&&i.length>0&&i.pop();for(const l of i)r&&r.includes(l)||!Pd(l)&&lc.isSingular(l)&&o({message:`path segment \`${l}\` should be plural.`,location:a.key(),reference:"https://redocly.com/docs/cli/rules/oas/path-segment-plural"})}}}}},Tm=()=>({PathItem(e,{report:t,key:r}){r.substr(1).split("/").filter(n=>n!=="").every(n=>/^{.+}$/.test(n)||/^[a-z0-9-.]+$/.test(n))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/paths-kebab-case"})}}),km=()=>{let e,t;return{Schema:{enter(r){if(!r?.required){e=!0;return}t=new Set(r.required),e=!1},SchemaProperties:{skip(){return e},Schema:{enter(r,{key:n,location:o,report:s}){t.has(n)&&r.type==="string"&&(r?.minLength||s({message:"Property minLength is required.",location:o.key(),reference:"https://redocly.com/docs/cli/rules/oas/required-string-property-missing-min-length"}))}}}}}};function Rr(e){return`${e}`.replace(/^(\d)\d\d$/,(t,r)=>`${r}XX`)}const Nm=e=>{const t=e.names||{};return{Operation:{Response:{enter:(r,{report:n,location:o,key:s})=>{const a=t[s]||t[Rr(s)]||t[Rr(s).toLowerCase()]||[];for(const c of a)(!r?.headers||!Object.keys(r?.headers).some(i=>i.toLowerCase()===c.toLowerCase()))&&n({message:`Response object must contain a "${c}" header.`,location:o.child("headers").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-header"})}}}}},Om=["string","integer","number","boolean","null"],jm=()=>({SchemaProperties(e,{report:t,location:r,specVersion:n,resolve:o}){for(const s of Object.keys(e)){const a=o(Vr(e,s)).node;!a||!fP(a)||a.example===void 0&&a.examples===void 0&&t({message:`Scalar property should have "example"${n==="oas3_1"||n==="oas3_2"?' or "examples"':""} defined.`,location:r.child(s).key(),reference:"https://redocly.com/docs/cli/rules/oas/scalar-property-missing-example"})}}});function fP(e){return!e.type||e.allOf||e.anyOf||e.oneOf||e.format==="binary"?!1:Array.isArray(e.type)?e.type.every(t=>Om.includes(t)):Om.includes(e.type)}const Cm=e=>{const t=new Map,r=[];let n=!0,o;return{Root:{leave(s,{report:a}){for(const[c,i]of t.entries())if(!i.defined)for(const l of i.from)a({message:`There is no \`${c}\` security scheme defined.`,location:l.key(),reference:"https://redocly.com/docs/cli/rules/oas/security-defined"});if(!(s.security||n))for(const c of r)a({message:"Every operation should have security defined on it or on the root level.",location:c.key(),reference:"https://redocly.com/docs/cli/rules/oas/security-defined"})}},SecurityScheme(s,{key:a}){t.set(a.toString(),{defined:!0,from:[]})},SecurityRequirement(s,{location:a}){for(const c of Object.keys(s)){const i=t.get(c),l=a.child([c]);i?i.from.push(l):t.set(c,{from:[l]})}},PathItem:{enter(s,{key:a}){o=a},Operation(s,{location:a,key:c}){const i=e.exceptions?.some(l=>l.path===o&&(!l.methods||l.methods?.some(p=>p.toLowerCase()===c)));!s?.security&&!i&&(n=!1,r.push(a))}}}},Am=()=>{const e=["Schema","Response","Parameter","RequestBody","Example","Header","SecurityScheme","Link","Callback","PathItem"];return{any(t,{report:r,rawNode:n,rawLocation:o,type:s}){!e.includes(s.name)&&pt(n)&&r({message:"Field $ref is not expected here.",location:o.child("$ref").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-strict-refs"})}}},mP=e=>{const t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(s=>`\`${s}\``),o=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter(s,{report:a,location:c}){s.type==="boolean"&&!r.test(s.name)&&a({message:`Boolean parameter \`${s.name}\` should have ${o} prefix.`,location:c.child("name"),reference:"https://redocly.com/docs/cli/rules/oas/boolean-parameter-prefixes"})}}};function na({type:e,value:t,ctx:r,allowedValues:n,reference:o}){const{report:s,location:a}=r,c=e==="consumes"?"request":"response";if(!n)throw new Error(`Parameter "allowedValues" is not provided for "${c}-mime-type" rule`);if(t[e])for(const i of t[e])n.includes(i)||s({message:`Mime type "${i}" is not allowed`,location:a.child(t[e].indexOf(i)).key(),reference:o})}function Dr({type:e,value:t,ctx:r,allowedValues:n,reference:o}){const{report:s,location:a}=r,c=e==="consumes"?"request":"response";if(!n)throw new Error(`Parameter "allowedValues" is not provided for "${c}-mime-type" rule`);if(t.content)for(const i of Object.keys(t.content))n.includes(i)||s({message:`Mime type "${i}" is not allowed`,location:a.child("content").child(i).key(),reference:o})}const hP=({allowedValues:e})=>({Root(t,r){na({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})},Operation:{leave(t,r){na({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}),yP=e=>{const t=e.names||{};let r;return{Operation:{Response:{skip:(n,o)=>`${o}`=="204",enter:(n,o)=>{r=o.key},Schema(n,{report:o,location:s}){if(n.type!=="object")return;const a=t[r]||t[Rr(r)]||t[Rr(r).toLowerCase()]||[];for(const c of a)n.properties?.[c]||o({message:`Response object must contain a top-level "${c}" property.`,location:s.child("properties").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-property"})}}}}},gP=({allowedValues:e})=>({Root(t,r){na({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})},Operation:{leave(t,r){na({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}),vP={struct:Bt,"no-invalid-schema-examples":cm,"no-invalid-parameter-examples":im,"info-contact":Tr,"info-license":pi,"info-license-strict":Ko,"tag-description":Wo,"tags-alphabetical":Ho,"paths-kebab-case":Tm,"no-enum-type-mismatch":Zr,"boolean-parameter-prefixes":mP,"no-path-trailing-slash":lm,"operation-2xx-response":pm,"operation-4xx-response":um,assertions:rr,"operation-operationId-unique":fm,"operation-parameters-unique":hm,"path-parameters-defined":ra,"operation-tag-defined":vm,"path-declaration-must-exist":wm,"operation-operationId-url-safe":mm,"operation-operationId":Yo,"operation-summary":gm,"operation-description":dm,"path-not-include-query":Em,"path-params-defined":ra,"parameter-description":bm,"operation-singular-tag":ym,"security-defined":Cm,"no-unresolved-refs":Zt,"no-identical-paths":Sd,"no-ambiguous-paths":_d,"path-http-verbs-order":$m,"no-http-verbs-in-paths":xd,"request-mime-type":hP,"response-mime-type":gP,"path-segment-plural":Im,"response-contains-header":Nm,"response-contains-property":yP,"scalar-property-missing-example":jm,"required-string-property-missing-min-length":km,"spec-strict-refs":Am,"no-required-schema-properties-undefined":en,"no-schema-type-mismatch":tn,"no-duplicated-tag-names":Jo},bP={},wP=e=>({Parameter:{leave(t,r){if(!t.schema)return;const n=pt(t.schema)?r.resolve(t.schema).node:t.schema;n&&$P(t,n,e)&&r.report({message:`Parameter \`${t.name}\` should have \`style\` and \`explode \` fields`,location:r.location,reference:"https://redocly.com/docs/cli/rules/oas/array-parameter-serialization"})}}});function $P(e,t,r){return(t.type==="array"||t.items||t.prefixItems)&&(e.style===void 0||e.explode===void 0)&&(!r.in||e.in&&r.in?.includes(e.in))}const EP=e=>{const t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(s=>`\`${s}\``),o=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter:{Schema(s,{report:a,parentLocations:c},i){s.type==="boolean"&&!r.test(i.Parameter.name)&&a({message:`Boolean parameter \`${i.Parameter.name}\` should have ${o} prefix.`,location:c.Parameter.child(["name"]),reference:"https://redocly.com/docs/cli/rules/oas/boolean-parameter-prefixes"})}}}},vi="Schema",bi="Parameter",wi="Response",$i="RequestBody",_P={[vi]:"schemas",[bi]:"parameters",[wi]:"responses",[$i]:"requestBodies"},PP=e=>{const t=new Map,r=[];e.schemas!=="off"&&r.push(vi),e.parameters!=="off"&&r.push(bi),e.responses!=="off"&&r.push(wi),e.requestBodies!=="off"&&r.push($i);const n={ref:{leave(c,{type:i,resolve:l}){const p=i.name;if(r.includes(p)){const f=l(c);if(!f.location)return;a(p,f.location)}}},Root:{leave(c,i){t.forEach((l,p,f)=>{if(l.absolutePointers.size>1){const $=IP(p),m=xP($.typeName),_=m?e[m]:null;for(const x of l.locations){const b=Array.from(l.absolutePointers).filter(y=>y!==x.absolutePointer.toString()).map(y=>`- ${y}`).join(`
|
|
80
|
-
`),w={message:`Component '${m}/${$.componentName}' is not unique. It is also defined at:
|
|
81
|
-
${b}`,location:x,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};_&&(w.forceSeverity=_),i.report(w)}}})}}};return e.schemas!="off"&&(n.NamedSchemas={Schema(c,{location:i}){a(vi,i)}}),e.responses!="off"&&(n.NamedResponses={Response(c,{location:i}){a(wi,i)}}),e.parameters!="off"&&(n.NamedParameters={Parameter(c,{location:i}){a(bi,i)}}),e.requestBodies!="off"&&(n.NamedRequestBodies={RequestBody(c,{location:i}){a($i,i)}}),n;function o(c){const i=c.split("/").slice(-1)[0];return Gh(i)?i.slice(0,i.lastIndexOf(".")):i}function s(c,i,l){const p=SP(c,i),f=t.get(p)??{absolutePointers:new Set,locations:[]},$=l.absolutePointer.toString();f.absolutePointers.has($)||(f.absolutePointers.add($),f.locations.push(l)),t.set(p,f)}function a(c,i){const l=o(i.absolutePointer.toString());s(c,l,i)}};function xP(e){return _P[e]??null}function SP(e,t){return`${e}/${t}`}function IP(e){const[t,r]=e.split("/");return{typeName:t,componentName:r}}const TP=()=>({Root(e,{report:t,location:r}){if(!e.hasOwnProperty("servers")){t({message:"Servers must be present.",location:r.child(["openapi"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-empty-servers"});return}(!Array.isArray(e.servers)||e.servers.length===0)&&t({message:"Servers must be a non-empty array.",location:r.child(["servers"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-empty-servers"})}}),kP=()=>({Example(e,{report:t,location:r}){e.value&&e.externalValue&&t({message:"Example object can have either `value` or `externalValue` fields.",location:r.child(["value"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-example-value-and-externalValue"})}}),NP=e=>{const t=new gi,r=o=>o.schema===void 0,n=o=>(s,a)=>{const{location:c,resolve:i}=a;if(Qt(s.example))l(s.example,c.child("example"));else if(Te(s.examples))for(const p of Object.keys(s.examples))l(s.examples[p],c.child(["examples",p]),!0);function l(p,f,$){if(pt(p)){const _=i(p);if(!_.location)return;f=_.location,p=_.node}let m=p;if($){const _=Su(p);if(!_)return;m=_.value,f=f.child(_.field)}Qr({example:m,schema:s.schema,options:{location:f,ctx:a,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:o},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-media-type-examples"})}};return{Parameter:{MediaType:{skip:r,leave:n({apiContext:"request"})}},RequestBody:{MediaType:{skip:r,leave:n({apiContext:"request"})}},Response:{MediaType:{skip:r,leave:n({apiContext:"response"})}}}},OP=()=>({Server(e,{report:t,location:r}){const n=/^(.*[\/.])?(example\.com|localhost)([\/:?].*|$)/;e.url&&n.test(e.url)&&t({message:"Server `url` should not point to example.com or localhost.",location:r.child(["url"]),reference:"https://redocly.com/docs/cli/rules/oas/no-server-example-com"})}}),jP=()=>({Server(e,{report:t,location:r}){e.url&&e.url.endsWith("/")&&e.url!=="/"&&t({message:"Server `url` should not have a trailing slash.",location:r.child(["url"]),reference:"https://redocly.com/docs/cli/rules/oas/no-server-trailing-slash"})}}),CP=()=>({Root(e,{report:t,location:r}){if(!e.servers||e.servers.length===0)return;const n=[];if(Array.isArray(e.servers))for(const o of e.servers){const s=Rm(o);s&&n.push(...s)}else{const o=Rm(e.servers);if(!o)return;n.push(...o)}for(const o of n)o==="empty"&&t({message:"Server variable with `enum` must be a non-empty array.",location:r.child(["servers"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-server-variables-empty-enum"}),o==="invalidDefaultValue"&&t({message:"Server variable define `enum` and `default`. `enum` must include default value",location:r.child(["servers"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-server-variables-empty-enum"})}});function Rm(e){if(e.variables&&Object.keys(e.variables).length===0)return;const t=[];for(const r in e.variables){const n=e.variables[r];if(!n.enum||(Array.isArray(n.enum)&&n.enum?.length===0&&t.push("empty"),!n.default))continue;const o=e.variables[r].default;n.enum&&!n.enum.includes(o)&&t.push("invalidDefaultValue")}if(t.length)return t}const AP=()=>({Server(e,{report:t,location:r}){if(!e?.url)return;const n=e.url.match(/{[^}]+}/g)?.map(s=>s.slice(1,s.length-1))||[],o=e?.variables&&Object.keys(e.variables)||[];for(const s of n)o.includes(s)||t({message:`The \`${s}\` variable is not defined in the \`variables\` objects.`,location:r.child(["url"]),reference:"https://redocly.com/docs/cli/rules/oas/no-undefined-server-variable"});for(const s of o)n.includes(s)||t({message:`The \`${s}\` variable is not used in the server's \`url\` field.`,location:r.child(["variables",s]).key(),from:r.child("url"),reference:"https://redocly.com/docs/cli/rules/oas/no-undefined-server-variable"})}}),RP=()=>{const e=new Map,t=new Map,r=new Set;function n(o,s,a=!1){e.set(o.absolutePointer,{used:e.get(o.absolutePointer)?.used||!1,referencesDiscriminator:a,location:o,name:s})}return{ref(o,{type:s,resolve:a,key:c,location:i}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap"].includes(s.name)){const l=a(o);if(!l.location)return;e.set(l.location.absolutePointer,{used:!0,name:c.toString(),location:i})}},Root:{leave(o,{report:s}){e.forEach(a=>{!a.used&&!a.referencesDiscriminator&&s({message:`Component: "${a.name}" is never used.`,location:a.location.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})}),t.forEach((a,c)=>{r.has(c)||s({message:`Security scheme: "${c}" is never used.`,location:a.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})})}},NamedSchemas:{Schema(o,{location:s,key:a,resolve:c}){const i=o.allOf?.some(l=>pt(l)&&c(l)?.node?.discriminator);n(s,a.toString(),i)}},NamedParameters:{Parameter(o,{location:s,key:a}){n(s,a.toString())}},NamedResponses:{Response(o,{location:s,key:a}){n(s,a.toString())}},NamedExamples:{Example(o,{location:s,key:a}){n(s,a.toString())}},NamedRequestBodies:{RequestBody(o,{location:s,key:a}){n(s,a.toString())}},NamedHeaders:{Header(o,{location:s,key:a}){n(s,a.toString())}},NamedMediaTypes:{MediaTypesMap(o,{location:s,key:a}){n(s,a.toString())}},NamedSecuritySchemes:{SecurityScheme(o,{rawLocation:s,key:a}){t.set(a.toString(),s)}},SecurityRequirement(o){for(const s of Object.keys(o))r.add(s)}}},DP=()=>({Schema:{leave(e,t){"nullable"in e&&!("type"in e)&&t.report({message:"The `type` field must be defined when the `nullable` field is used.",location:t.location.child(["nullable"]),reference:"https://redocly.com/docs/cli/rules/oas/nullable-type-sibling"})}}}),qP=()=>({Response:{skip(e,t){return!/4[Xx0-9]{2}/.test(`${t}`)},enter(e,{report:t,location:r}){(!e.content||!e.content["application/problem+json"])&&t({message:"Response `4xx` must have content-type `application/problem+json`.",location:r.key(),reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807"})},MediaType:{skip(e,t){return t!=="application/problem+json"},enter(e,t){nr({fieldName:"schema",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807"})},SchemaProperties(e,t){nr({fieldName:"type",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807"}),nr({fieldName:"title",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807"})}}}}),LP=({allowedValues:e})=>({Paths:{RequestBody:{leave(t,r){Dr({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}},Callback:{RequestBody(){},Response:{leave(t,r){Dr({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}},WebhooksMap:{Response:{leave(t,r){Dr({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}}),MP=e=>{const t=e.names||{};let r;return{Operation:{Response:{skip:(n,o)=>`${o}`=="204",enter:(n,o)=>{r=o.key},MediaType:{Schema(n,{report:o,location:s}){if(n.type!=="object")return;const a=t[r]||t[Rr(r)]||t[Rr(r).toLowerCase()]||[];for(const c of a)n.properties?.[c]||o({message:`Response object must contain a top-level "${c}" property.`,location:s.child("properties").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-property"})}}}}}},VP=({allowedValues:e})=>({Paths:{Response:{leave(t,r){Dr({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}},Callback:{Response(){},RequestBody:{leave(t,r){Dr({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}},WebhooksMap:{RequestBody:{leave(t,r){Dr({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}}),FP=()=>{const e=`^[${Kh}]+$`;function t(r,n,o,s){new RegExp(e).test(r)||n({message:`The map key in ${s} "${r}" does not match the regular expression "${e}"`,location:o.key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-components-invalid-map-name"})}return{NamedSchemas:{Schema(r,{key:n,report:o,location:s}){t(n,o,s,"schemas")}},NamedParameters:{Parameter(r,{key:n,report:o,location:s}){t(n,o,s,"parameters")}},NamedResponses:{Response(r,{key:n,report:o,location:s}){t(n,o,s,"responses")}},NamedExamples:{Example(r,{key:n,report:o,location:s}){t(n,o,s,"examples")}},NamedRequestBodies:{RequestBody(r,{key:n,report:o,location:s}){t(n,o,s,"requestBodies")}},NamedHeaders:{Header(r,{key:n,report:o,location:s}){t(n,o,s,"headers")}},NamedSecuritySchemes:{SecurityScheme(r,{key:n,report:o,location:s}){t(n,o,s,"securitySchemes")}},NamedLinks:{Link(r,{key:n,report:o,location:s}){t(n,o,s,"links")}},NamedCallbacks:{Callback(r,{key:n,report:o,location:s}){t(n,o,s,"callbacks")}}}},zP=()=>{let e=[];return{Root:{enter(t){e=Object.keys(t.components?.schemas||{})}},Schema:{leave(t,r){const n=t.discriminator?.propertyName;if(!n)return;const o=t.discriminator?.defaultMapping;if(o===void 0){const s=new Set,a=(c,i)=>{const l=La(c,r,i);return!!(!l.schema||s.has(l.schema)||(s.add(l.schema),l.schema.required?.includes(n)||l.schema.allOf?.some(p=>a(p,l.location))||l.schema.oneOf?.every(p=>a(p,l.location))||l.schema.anyOf?.every(p=>a(p,l.location))))};a(t)||r.report({message:`Discriminator with optional property '${n}' must include a defaultMapping field.`,location:r.location.child("discriminator"),reference:"https://redocly.com/docs/cli/rules/oas/spec-discriminator-defaultMapping"})}else r.resolve({$ref:o}).node===void 0&&!e.includes(o)&&r.report({message:`defaultMapping value '${o}' does not point to an existing schema component.`,location:r.location.child(["discriminator","defaultMapping"]),reference:"https://redocly.com/docs/cli/rules/oas/spec-discriminator-defaultMapping"})}}}},UP=()=>({Example({value:e,externalValue:t,dataValue:r,serializedValue:n},{report:o,location:s}){e!==void 0&&t!==void 0&&o({message:"The 'value' and 'externalValue' fields of an example object are mutually exclusive.",location:s,reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),n!==void 0&&t!==void 0&&o({message:"The 'serializedValue' and 'externalValue' fields of an example object are mutually exclusive.",location:s,reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),e!==void 0&&r!==void 0&&o({message:"The 'value' filed must be absent if 'dataValue' is present in an example object.",location:s.child("value").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),e!==void 0&&n!==void 0&&o({message:"The 'value' filed must be absent if 'serializedValue' is present in an example object.",location:s.child("value").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"})}}),BP=()=>({MediaType:{leave(e,t){("prefixEncoding"in e&&"encoding"in e||"itemEncoding"in e&&"encoding"in e)&&t.report({message:"The 'encoding' field cannot be used together with 'prefixEncoding' or 'itemEncoding'.",location:t.location.child("encoding").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-no-invalid-encoding-combinations"})}}}),GP=()=>{let e;return{Root:{enter(t){e=t.tags??[]}},Tag:{leave(t,{report:r,location:n}){if(t?.parent===void 0)return;if(!e.find(a=>a.name===t.parent)){r({message:`Tag parent '${t.parent}' is not defined in the API description.`,location:n.child("parent"),reference:"https://redocly.com/docs/cli/rules/oas/spec-no-invalid-tag-parents"});return}const o=new Set(t.name);let s=t.parent;for(;s!==void 0;){if(o.has(s)){r({message:`Circular reference detected in tag parent hierarchy for tag '${t.name}'.`,location:n.child("parent"),reference:"https://redocly.com/docs/cli/rules/oas/spec-no-invalid-tag-parents"});return}o.add(s),s=e.find(a=>a.name===s)?.parent}}}}};function Dm(e){return e.filter(t=>!("$ref"in t)&&t.in==="querystring").length}function qm(e,t){const r=t.location.child("parameters");e>1&&t.report({message:"Parameters with `in: querystring` should be defined only once per path/operation parameter set.",location:r,reference:"https://redocly.com/docs/cli/rules/oas/spec-querystring-parameters"})}function Lm(e,t,r,n){if(e.in==="query"){r.querystringLocation&&n.report({message:"Parameters with `in: query` cannot be used together with `in: querystring` in the same operation/path parameter set.",location:t,reference:"https://redocly.com/docs/cli/rules/oas/spec-querystring-parameters"}),r.queryLocation??=t;return}e.in==="querystring"&&(r.queryLocation&&n.report({message:"Parameters with `in: querystring` cannot be used together with `in: query` in the same operation/path parameter set.",location:t,reference:"https://redocly.com/docs/cli/rules/oas/spec-querystring-parameters"}),r.querystringLocation??=t)}const KP=()=>{let e={},t={},r=0;return{PathItem:{enter(n,o){e={},t={},r=0,qm(Dm(n.parameters||[]),o)},Parameter(n,o){Lm(n,o.location,e,o),n.in==="querystring"&&(r+=1)},Operation:{enter(n,o){t={...e};const s=r+Dm(n.parameters||[]);qm(s,o)},Parameter(n,o){Lm(n,o.location,t,o)}}}}},JP={struct:Bt,"info-contact":Tr,"info-license":pi,"info-license-strict":Ko,"operation-2xx-response":pm,"operation-4xx-response":um,"operation-4xx-problem-details-rfc7807":qP,assertions:rr,"operation-operationId-unique":fm,"operation-parameters-unique":hm,"operation-tag-defined":vm,"no-example-value-and-externalValue":kP,"no-mixed-number-range-constraints":Go,"no-enum-type-mismatch":Zr,"no-path-trailing-slash":lm,"no-empty-servers":TP,"path-declaration-must-exist":wm,"operation-operationId-url-safe":mm,"operation-operationId":Yo,"operation-summary":gm,"tags-alphabetical":Ho,"no-server-example.com":OP,"no-server-trailing-slash":jP,"tag-description":Wo,"operation-description":dm,"no-unused-components":RP,"path-not-include-query":Em,"path-parameters-defined":ra,"path-params-defined":ra,"parameter-description":bm,"operation-singular-tag":ym,"security-defined":Cm,"no-unresolved-refs":Zt,"paths-kebab-case":Tm,"boolean-parameter-prefixes":EP,"path-http-verbs-order":$m,"no-invalid-media-type-examples":NP,"no-identical-paths":Sd,"no-ambiguous-paths":_d,"no-undefined-server-variable":AP,"no-server-variables-empty-enum":CP,"no-http-verbs-in-paths":xd,"request-mime-type":LP,"response-mime-type":VP,"path-segment-plural":Im,"no-invalid-schema-examples":cm,"no-invalid-parameter-examples":im,"response-contains-header":Nm,"response-contains-property":MP,"scalar-property-missing-example":jm,"spec-components-invalid-map-name":FP,"required-string-property-missing-min-length":km,"spec-strict-refs":Am,"component-name-unique":PP,"array-parameter-serialization":wP,"no-required-schema-properties-undefined":en,"no-schema-type-mismatch":tn,"no-duplicated-tag-names":Jo,"nullable-type-sibling":DP,"spec-no-invalid-tag-parents":GP,"spec-no-invalid-encoding-combinations":BP,"spec-discriminator-defaultMapping":zP,"spec-example-values":UP,"spec-querystring-parameters":KP},YP={},WP=()=>{const e=new Map;function t(r,n){e.set(r.absolutePointer,{used:e.get(r.absolutePointer)?.used||!1,location:r,name:n})}return{ref(r,{type:n,resolve:o,key:s,location:a}){if(["Schema","ContentDescriptor","Example","Link","ErrorObject","ExamplePairing","Tag"].includes(n.name)){const c=o(r);if(!c.location)return;e.set(c.location.absolutePointer,{used:!0,name:s.toString(),location:a})}},Root:{leave(r,{report:n}){e.forEach(o=>{o.used||n({message:`Component: "${o.name}" is never used.`,location:o.location.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})})}},NamedSchemas:{Schema(r,{location:n,key:o}){t(n,o.toString())}},NamedContentDescriptors:{ContentDescriptor(r,{location:n,key:o}){t(n,o.toString())}},NamedExamples:{Example(r,{location:n,key:o}){t(n,o.toString())}},NamedLinks:{Link(r,{location:n,key:o}){t(n,o.toString())}},NamedErrors:{ErrorObject(r,{location:n,key:o}){t(n,o.toString())}},NamedExamplePairingObjects:{ExamplePairing(r,{location:n,key:o}){t(n,o.toString())}},NamedTags:{Tag(r,{location:n,key:o}){t(n,o.toString())}}}},HP=()=>({Method:{leave(e,{report:t,resolve:r,location:n}){if(!e.params||!Array.isArray(e.params))return;const o=new Set;e.params.forEach((s,a)=>{const c=r(s);if(!c.node)return;const i=c.node,l=i.name;l&&(o.has(l)&&t({message:`Parameter names must be unique. Duplicate parameter name '${i.name}' found.`,location:n.child([a,"name"]),reference:"https://redocly.com/docs/cli/rules/openrpc/spec-no-duplicated-method-params"}),o.add(l))})}}}),XP=()=>({Method:{leave(e,{report:t,resolve:r,location:n}){if(!e.params||!Array.isArray(e.params))return;let o=!1;e.params.forEach((s,a)=>{const c=r(s);if(!c.node)return;const i=c.node;i.name&&(i.required===!0?o&&t({message:`Required parameter '${i.name}' must be positioned before optional parameters.`,location:n.child([a,"name"]),reference:"https://redocly.com/docs/cli/rules/openrpc/spec-no-required-params-after-optional"}):o=!0)})}}}),QP={struct:Bt,"no-unresolved-refs":Zt,assertions:rr,"info-license":pi,"no-unused-components":WP,"info-contact":Tr,"spec-no-duplicated-method-params":HP,"spec-no-required-params-after-optional":XP},ZP={},ex={"info-contact":Tr,struct:Bt,"no-unresolved-refs":Zt,assertions:rr},tx={},rx={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error"},oas3_0Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-invalid-media-type-examples":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","nullable-type-sibling":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-example-values":"error"},oas3_1Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-invalid-media-type-examples":"error","no-mixed-number-range-constraints":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-example-values":"error"},oas3_2Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-invalid-media-type-examples":"error","no-mixed-number-range-constraints":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-no-invalid-tag-parents":"error","spec-no-invalid-encoding-combinations":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error","spec-querystring-parameters":"error"},async2Rules:{"channels-kebab-case":"error","info-contact":"error","info-license-strict":"error","no-channel-trailing-slash":"error","operation-operationId":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-schema-type-mismatch":"error"},async3Rules:{"channels-kebab-case":"error","info-contact":"error","info-license-strict":"error","no-channel-trailing-slash":"error","operation-operationId":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-schema-type-mismatch":"error"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"error"},openrpc1Rules:{"info-contact":"error","info-license":"error","no-unused-components":"error","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"},graphqlRules:{"no-unused-types":"error","type-description":"error"}},nx={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","operation-2xx-response":"warn","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-example-value-and-externalValue":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-invalid-media-type-examples":{severity:"warn",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"warn","no-unused-components":"warn","nullable-type-sibling":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","spec-components-invalid-map-name":"warn","spec-example-values":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-example-value-and-externalValue":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"warn","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","spec-components-invalid-map-name":"warn","spec-example-values":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"warn","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","spec-components-invalid-map-name":"warn","spec-discriminator-defaultMapping":"off","spec-example-values":"off","spec-no-invalid-encoding-combinations":"warn","spec-no-invalid-tag-parents":"warn","spec-querystring-parameters":"error","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","operation-operationId":"warn","tag-description":"warn","tags-alphabetical":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","operation-operationId":"warn","tag-description":"warn","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"off","no-criteria-xpath":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"off","parameters-unique":"off","requestBody-replacements-unique":"off","sourceDescription-name-unique":"off","sourceDescription-type":"off","sourceDescriptions-not-empty":"off","spec-step-mutually-exclusive-fields":"warn","step-onFailure-unique":"off","step-onSuccess-unique":"off","stepId-unique":"error","workflow-dependsOn":"off","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"off","no-criteria-xpath":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"off","parameters-unique":"off","requestBody-replacements-unique":"off","sourceDescription-name-unique":"off","sourceDescription-type":"off","sourceDescriptions-not-empty":"off","spec-step-mutually-exclusive-fields":"warn","step-onFailure-unique":"off","step-onSuccess-unique":"off","stepId-unique":"error","workflow-dependsOn":"off","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},graphqlRules:{"no-unused-types":"off","type-description":"off"},openrpc1Rules:{"info-contact":"off","info-license":"off","no-unused-components":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"}},ox={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":{severity:"error",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unused-components":"error","nullable-type-sibling":"error","operation-2xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"error","no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-mixed-number-range-constraints":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unused-components":"error","operation-2xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"error","no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-mixed-number-range-constraints":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unused-components":"error","operation-2xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","spec-components-invalid-map-name":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error","spec-no-invalid-encoding-combinations":"error","spec-no-invalid-tag-parents":"error","spec-querystring-parameters":"error","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"error","no-channel-trailing-slash":"off","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","operation-operationId":"error","tag-description":"error","tags-alphabetical":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"error","no-channel-trailing-slash":"off","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","operation-operationId":"error","tag-description":"error","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},openrpc1Rules:{"info-contact":"off","info-license":"error","no-unused-components":"error","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"},graphqlRules:{"no-unused-types":"error","type-description":"off"}},sx={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","operation-2xx-response":"warn","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":{severity:"warn",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unused-components":"warn","nullable-type-sibling":"error","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-mixed-number-range-constraints":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-mixed-number-range-constraints":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","spec-components-invalid-map-name":"error","spec-discriminator-defaultMapping":"warn","spec-example-values":"error","spec-no-invalid-encoding-combinations":"error","spec-no-invalid-tag-parents":"error","spec-querystring-parameters":"error","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"warn","no-channel-trailing-slash":"off","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","operation-operationId":"warn","tag-description":"warn","tags-alphabetical":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"warn","no-channel-trailing-slash":"off","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","operation-operationId":"warn","tag-description":"warn","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"warn","no-criteria-xpath":"off","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"warn","parameters-unique":"error","requestBody-replacements-unique":"warn","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"warn","step-onSuccess-unique":"warn","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"warn","no-criteria-xpath":"off","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"warn","parameters-unique":"error","requestBody-replacements-unique":"warn","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"warn","step-onSuccess-unique":"warn","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},openrpc1Rules:{"info-license":"warn","no-unused-components":"warn","info-contact":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"},graphqlRules:{"no-unused-types":"warn","type-description":"off"}},ax={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-tag-names":"error","no-enum-type-mismatch":"off","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","operation-2xx-response":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":{severity:"off",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-server-variables-empty-enum":"off","no-undefined-server-variable":"error","no-unused-components":"off","nullable-type-sibling":"error","operation-2xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"off","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-server-variables-empty-enum":"off","no-undefined-server-variable":"error","no-unused-components":"off","operation-2xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"off","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-server-variables-empty-enum":"off","no-undefined-server-variable":"error","no-unused-components":"off","operation-2xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","spec-components-invalid-map-name":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error","spec-no-invalid-encoding-combinations":"error","spec-no-invalid-tag-parents":"error","spec-querystring-parameters":"error","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","operation-operationId":"off","tag-description":"off","tags-alphabetical":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","operation-operationId":"off","tag-description":"off","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},openrpc1Rules:{"info-contact":"off","info-license":"off","no-unused-components":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"},graphqlRules:{"no-unused-types":"off","type-description":"off"}},ix={recommended:sx,"recommended-strict":ox,minimal:nx,all:rx,spec:ax},cx={id:"",rules:{oas3:JP,oas2:vP,async2:j$,async3:D$,arazzo1:T$,overlay1:ex,openrpc1:QP,graphql:O_},preprocessors:{oas3:YP,oas2:bP,async2:C$,async3:q$,arazzo1:k$,overlay1:tx,openrpc1:ZP},decorators:{oas3:Jw,oas2:Gw,async2:Vw,async3:Fw,arazzo1:Mw,overlay1:Ww,openrpc1:Yw},configs:ix},De=(e,t)=>{if(t)for(const r of Object.keys(t))Te(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r]};function Ve(e,t){if(t)for(const r of Object.keys(t))e.hasOwnProperty(r)&&(Te(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r])}function lx(e){if(e.indexOf("/")>-1){const[t,r]=e.split("/");return{pluginId:t,configName:r}}else return{pluginId:"",configName:e}}function Je(e,t){if(!t)return e;const r={};for(const n of Object.keys(e))r[`${t}/${n}`]=e[n];return r}function Mm(e){const t={rules:{},oas2Rules:{},oas3_0Rules:{},oas3_1Rules:{},oas3_2Rules:{},async2Rules:{},async3Rules:{},arazzo1Rules:{},arazzo1_1Rules:{},overlay1Rules:{},openrpc1Rules:{},graphqlRules:{},preprocessors:{},oas2Preprocessors:{},oas3_0Preprocessors:{},oas3_1Preprocessors:{},oas3_2Preprocessors:{},async2Preprocessors:{},async3Preprocessors:{},arazzo1Preprocessors:{},arazzo1_1Preprocessors:{},overlay1Preprocessors:{},openrpc1Preprocessors:{},decorators:{},oas2Decorators:{},oas3_0Decorators:{},oas3_1Decorators:{},oas3_2Decorators:{},async2Decorators:{},async3Decorators:{},arazzo1Decorators:{},arazzo1_1Decorators:{},overlay1Decorators:{},openrpc1Decorators:{}};for(const r of e){if(Te(r)&&"extends"in r&&r.extends!==void 0)throw new Error(`'extends' is not supported in shared configs yet:
|
|
82
|
-
${JSON.stringify(r,null,2)}`);De(t.rules,r.rules),De(t.oas2Rules,r.oas2Rules),Ve(t.oas2Rules,r.rules),De(t.oas3_0Rules,r.oas3_0Rules),Ve(t.oas3_0Rules,r.rules),De(t.oas3_1Rules,r.oas3_1Rules),Ve(t.oas3_1Rules,r.rules),De(t.oas3_2Rules,r.oas3_2Rules),Ve(t.oas3_2Rules,r.rules),De(t.async2Rules,r.async2Rules),Ve(t.async2Rules,r.rules),De(t.async3Rules,r.async3Rules),Ve(t.async3Rules,r.rules),De(t.arazzo1Rules,r.arazzo1Rules),Ve(t.arazzo1Rules,r.rules),De(t.arazzo1_1Rules,r.arazzo1_1Rules),Ve(t.arazzo1_1Rules,r.rules),De(t.overlay1Rules,r.overlay1Rules),Ve(t.overlay1Rules,r.rules),De(t.openrpc1Rules,r.openrpc1Rules),Ve(t.openrpc1Rules,r.rules),De(t.graphqlRules,r.graphqlRules),Ve(t.graphqlRules,r.rules),De(t.preprocessors,r.preprocessors),De(t.oas2Preprocessors,r.oas2Preprocessors),Ve(t.oas2Preprocessors,r.preprocessors),De(t.oas3_0Preprocessors,r.oas3_0Preprocessors),Ve(t.oas3_0Preprocessors,r.preprocessors),De(t.oas3_1Preprocessors,r.oas3_1Preprocessors),Ve(t.oas3_1Preprocessors,r.preprocessors),De(t.oas3_2Preprocessors,r.oas3_2Preprocessors),Ve(t.oas3_2Preprocessors,r.preprocessors),De(t.async2Preprocessors,r.async2Preprocessors),Ve(t.async2Preprocessors,r.preprocessors),De(t.async3Preprocessors,r.async3Preprocessors),Ve(t.async3Preprocessors,r.preprocessors),De(t.arazzo1Preprocessors,r.arazzo1Preprocessors),Ve(t.arazzo1Preprocessors,r.preprocessors),De(t.arazzo1_1Preprocessors,r.arazzo1_1Preprocessors),Ve(t.arazzo1_1Preprocessors,r.preprocessors),De(t.overlay1Preprocessors,r.overlay1Preprocessors),Ve(t.overlay1Preprocessors,r.preprocessors),De(t.openrpc1Preprocessors,r.openrpc1Preprocessors),Ve(t.openrpc1Preprocessors,r.preprocessors),De(t.decorators,r.decorators),De(t.oas2Decorators,r.oas2Decorators),Ve(t.oas2Decorators,r.decorators),De(t.oas3_0Decorators,r.oas3_0Decorators),Ve(t.oas3_0Decorators,r.decorators),De(t.oas3_1Decorators,r.oas3_1Decorators),Ve(t.oas3_1Decorators,r.decorators),De(t.oas3_2Decorators,r.oas3_2Decorators),Ve(t.oas3_2Decorators,r.decorators),De(t.async2Decorators,r.async2Decorators),Ve(t.async2Decorators,r.decorators),De(t.async3Decorators,r.async3Decorators),Ve(t.async3Decorators,r.decorators),De(t.arazzo1Decorators,r.arazzo1Decorators),Ve(t.arazzo1Decorators,r.decorators),De(t.arazzo1_1Decorators,r.arazzo1_1Decorators),Ve(t.arazzo1_1Decorators,r.decorators),De(t.overlay1Decorators,r.overlay1Decorators),Ve(t.overlay1Decorators,r.decorators),De(t.openrpc1Decorators,r.openrpc1Decorators),Ve(t.openrpc1Decorators,r.decorators)}return t}class px extends Error{}function ux(e){return new Map(JSON.parse(JSON.stringify([...e])))}function Vm(e){return Te(e)&&"id"in e}function dx(e){return typeof e=="function"}function Fm({node:e,ctx:t,plugins:r}){if(!e.extends)return e;const n=(e.extends||[]).filter(wn).map(o=>{if(!st(o)&&!Xi.extname(o))return kx(o,r);const s=t.resolve({$ref:o});return s.location&&s.node!==void 0?s.node:null}).filter(wn);return Mm([...n.map(o=>Fm({node:o,ctx:t,plugins:r})),{...e,extends:void 0}])}function oa(e,t){if(Te(e)&&Array.isArray(e.plugins)){const{plugins:r,rootConfigDir:n}=t.getVisitorData();r.push(...e.plugins.map(o=>Bm(o,t.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}Fr([{severity:"error",ruleId:Yh,visitor:{ref:{},ConfigGovernance:{leave(e,t){oa(e,t)}},ConfigApisProperties:{leave(e,t){oa(e,t)}},[at.ScorecardClassicLevel]:{leave(e,t){oa(e,t)}},ConfigRoot:{leave(e,t){oa(e,t)}}}}],Fo);function sa(e,t){if(Te(e)&&e.extends){const{plugins:r}=t.getVisitorData(),n=Fm({node:e,ctx:t,plugins:r});Object.assign(e,n),delete e.extends}}const fx=Fr([{severity:"error",ruleId:tc,visitor:{ref:{leave(e,t,r){Jh(e,r,t)}},ConfigGovernance:{leave(e,t){sa(e,t)}},ConfigApisProperties:{leave(e,t){sa(e,t)}},[at.ScorecardClassicLevel]:{leave(e,t){sa(e,t)}},ConfigRoot:{leave(e,t){sa(e,t)}}}}],Fo);function mx(e,t,r){const n={plugins:r},o={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[tc]:n}};return En({document:e,rootType:Fo.ConfigRoot,normalizedVisitors:fx,resolvedRefMap:t,ctx:o}),e.parsed??{}}async function hx(e){const{ref:t,doc:r,externalRefResolver:n=new cr(e.config.resolve),base:o=null}=e;if(!(t||r))throw new Error(`Document or reference is required.
|
|
83
|
-
`);const s=r===void 0?await n.resolveDocument(o,t,!0):r;if(s instanceof Error)throw s;return e.collectSpecData?.(s.parsed),rc({document:s,...e,externalRefResolver:n,types:bn($n(s.parsed))})}async function yx(e){const{source:t,absoluteRef:r,externalRefResolver:n=new cr(e.config.resolve)}=e,o=ha(t,r||"/");return rc({document:o,...e,externalRefResolver:n,types:bn($n(o.parsed))})}function Ei(e){return!Xt(e)}const dn=new Map,aa="v";let _i=0,zm=!1;function gx(){_n.registerHooks({resolve(e,t,r){const n=r(e,t);if(!n.url.startsWith("file:")||!t.parentURL)return n;const o=new URL(t.parentURL).searchParams.get(aa);if(!o)return n;const s=new URL(n.url);return s.pathname.includes("/node_modules/")||s.searchParams.has(aa)?n:(s.searchParams.set(aa,o),{...n,url:s.href})}})}function vx(){if(!zm){if(zm=!0,typeof _n.registerHooks!="function"){Oe.warn(`Redocly plugin reload requires Node.js >= 22.15 (current: ${process.version}). ESM plugins will not pick up edits until the process restarts.
|
|
84
|
-
`);return}gx()}}function bx(e){return dn.has(e)}function wx(e){return dn.get(e)}function $x(e,t){dn.set(e,t)}function Ex(){return _i}function _x(e){const t=_n.createRequire(e),r=new Set,n=o=>{if(r.has(o))return;r.add(o);const s=t.cache[o];if(s){for(const a of s.children)/[/\\]node_modules[/\\]/.test(a.id)||n(a.id);delete t.cache[o]}};n(e)}const Px=()=>{const e=[...dn.keys()];for(const t of e)_x(t);dn.clear(),_i+=1,vx()};async function xx(e){const t=(void 0)(e);return t.searchParams.set(aa,String(_i)),import(t.href)}async function Um({rawConfigDocument:e,configPath:t,externalRefResolver:r,customExtends:n}){const o=e===void 0?Wh:e.parsed;if(n!==void 0&&Te(o)&&(o.extends=n),Te(o)&&(o?.extends?.some(Ei)||o?.scorecardClassic?.levels?.some($=>$?.extends?.some(Ei))||o?.scorecard?.levels?.some($=>$?.extends?.some(Ei))))throw new Error("Configuration format not detected in extends: values must be strings.");const s=e??{source:new Hh(t??"",JSON.stringify(o)),parsed:o},a=await Pn({rootDocument:s,rootType:Fo.ConfigRoot,externalRefResolver:r??new cr(Xh(o?.resolve))});let c=[],i,l="";i=[...(o?.plugins||[]).filter($=>!Xt($)),cx];const p=mx(s,ux(a),i);p.apis&&(p.apis=Object.fromEntries(Object.entries(p.apis).map(([$,m])=>{const _=Mm([p,m]);return[$,{...m,..._}]})));const f=c.length?c.map($=>Ix($)&&$.isModule?$.rawPath:$.absolutePath&&Xe.relative(l,$.absolutePath)).filter(Qt):void 0;return{resolvedConfig:{...p,plugins:f},resolvedRefMap:a,plugins:i}}function Sx(e){for(const t of Qh)(void 0)(Xe.resolve(e,t))}function Ix(e){return"isModule"in e}const Bm=(e,t,r)=>{if(!Xt(e))return e;(void 0)(Xe.resolve(Xe.dirname(t),e));try{return{absolutePath:_n.createRequire(import.meta.url??__dirname).resolve(e,{paths:[r,import.meta.url?Xe.dirname((void 0)(import.meta.url)):__dirname]}),isModule:!0,rawPath:e}}catch{throw new Error(`Plugin "${e}" not found.`)}};async function Tx(e,t){if(!e)return[];const r=async a=>{if(!Xt(a))return a;try{const c=Xe.isAbsolute(a)?a:Bm(a,Xe.join(t,Zh),t).absolutePath;if(!bx(c)){const i=await xx(c),l=i.default||i,p={contentDir:t},f=Array.isArray(l)?l:[l];for(const _ of f)_?.id&&Vm(_)&&Oe.info(`Deprecated plugin format detected: ${_.id}
|
|
85
|
-
`);const $=Vm(l)?l:dx(l)?await l(p):await l?.default?.(p),m=Array.isArray($)?$:[$];$&&$x(c,m.map(_=>({..._,path:a,absolutePath:c})))}return wx(c)}catch(c){throw new Error(`Failed to load plugin "${a}": ${c.message}
|
|
86
|
-
|
|
87
|
-
${c.stack}`)}},n=new Map,o=Sx(t);o&&e.push(o);const s=new Set;return(await Promise.all(e.map(async a=>{if(Xt(a)){if(st(a))throw new Error(Re.red("We don't support remote plugins yet."));if(s.has(a))return;s.add(a)}const c=await r(a);if(!c)return;const i=Array.isArray(c)?c:[c];return(await Promise.all(i.map(async l=>{if(!l)return;const p=l.id;if(typeof p!="string")throw new Error(Re.red(`Plugin must define \`id\` property in ${Re.blue(a.toString())}.`));const f=l.absolutePath??a.toString(),$=n.get(p);if($){if(f!==$)throw new Error(Re.red(`Plugin "id" must be unique. Plugin ${Re.blue(f)} uses id "${Re.blue(p)}" already seen in ${Re.blue(f)}`));return}n.set(p,f);const m={id:p,...l.configs?{configs:l.configs}:{},...l.typeExtension?{typeExtension:l.typeExtension}:{}};if(l.rules){if(!l.rules.oas3&&!l.rules.oas2&&!l.rules.async2&&!l.rules.async3&&!l.rules.arazzo1&&!l.rules.overlay1&&!l.rules.openrpc1&&!l.rules.graphql)throw new Error(`Plugin rules must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo\`, \`overlay1\`, \`openrpc1\`, or \`graphql\` rules "${a}.`);m.rules={},l.rules.oas3&&(m.rules.oas3=Je(l.rules.oas3,p)),l.rules.oas2&&(m.rules.oas2=Je(l.rules.oas2,p)),l.rules.async2&&(m.rules.async2=Je(l.rules.async2,p)),l.rules.async3&&(m.rules.async3=Je(l.rules.async3,p)),l.rules.arazzo1&&(m.rules.arazzo1=Je(l.rules.arazzo1,p)),l.rules.overlay1&&(m.rules.overlay1=Je(l.rules.overlay1,p)),l.rules.openrpc1&&(m.rules.openrpc1=Je(l.rules.openrpc1,p)),l.rules.graphql&&(m.rules.graphql=Je(l.rules.graphql,p))}if(l.preprocessors){if(!l.preprocessors.oas3&&!l.preprocessors.oas2&&!l.preprocessors.async2&&!l.preprocessors.async3&&!l.preprocessors.arazzo1&&!l.preprocessors.overlay1&&!l.preprocessors.openrpc1)throw new Error(`Plugin \`preprocessors\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` preprocessors "${a}.`);m.preprocessors={},l.preprocessors.oas3&&(m.preprocessors.oas3=Je(l.preprocessors.oas3,p)),l.preprocessors.oas2&&(m.preprocessors.oas2=Je(l.preprocessors.oas2,p)),l.preprocessors.async2&&(m.preprocessors.async2=Je(l.preprocessors.async2,p)),l.preprocessors.async3&&(m.preprocessors.async3=Je(l.preprocessors.async3,p)),l.preprocessors.arazzo1&&(m.preprocessors.arazzo1=Je(l.preprocessors.arazzo1,p)),l.preprocessors.overlay1&&(m.preprocessors.overlay1=Je(l.preprocessors.overlay1,p)),l.preprocessors.openrpc1&&(m.preprocessors.openrpc1=Je(l.preprocessors.openrpc1,p))}if(l.decorators){if(!l.decorators.oas3&&!l.decorators.oas2&&!l.decorators.async2&&!l.decorators.async3&&!l.decorators.arazzo1&&!l.decorators.overlay1&&!l.decorators.openrpc1)throw new Error(`Plugin \`decorators\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` decorators "${a}.`);m.decorators={},l.decorators.oas3&&(m.decorators.oas3=Je(l.decorators.oas3,p)),l.decorators.oas2&&(m.decorators.oas2=Je(l.decorators.oas2,p)),l.decorators.async2&&(m.decorators.async2=Je(l.decorators.async2,p)),l.decorators.async3&&(m.decorators.async3=Je(l.decorators.async3,p)),l.decorators.arazzo1&&(m.decorators.arazzo1=Je(l.decorators.arazzo1,p)),l.decorators.overlay1&&(m.decorators.overlay1=Je(l.decorators.overlay1,p)),l.decorators.openrpc1&&(m.decorators.openrpc1=Je(l.decorators.openrpc1,p))}return l.assertions&&(m.assertions=l.assertions),{...l,...m}}))).filter(Qt)}))).filter(Qt).flat()}function kx(e,t){const{pluginId:r,configName:n}=lx(e),o=t.find(a=>a.id===r);if(!o)throw new Error(`Invalid config ${Re.red(e)}: plugin ${r} is not included.`);const s=o.configs?.[n];if(!s)throw new Error(r?`Invalid config ${Re.red(e)}: plugin ${r} doesn't export config with name ${n}.`:`Invalid config ${Re.red(e)}: there is no such built-in config.`);return s}function Nx(e,t){const r=Object.create(null);for(const n of Object.keys(e)){const o=e[n],s=st(n)?n:oc(t,n);r[s]=Object.create(null);for(const a of Object.keys(o))r[s][a]=new Set(o[a])}return r}async function Gm(e,t){const r=e?ey(e):"",n=r?oc(r,sc):sc,o=await t.resolveDocument(null,n,!0);return o instanceof Error||!o.parsed?{}:Nx(o.parsed||{},r)}async function Ox(e={}){const{configPath:t=void 0,customExtends:r,externalRefResolver:n}=e,o=n??new cr,s=t?await o.resolveDocument(null,t,!0):void 0;if(s instanceof Error)throw s;const{resolvedConfig:a,resolvedRefMap:c,plugins:i}=await Um({rawConfigDocument:s?Km(s):void 0,customExtends:r,configPath:t,externalRefResolver:n}),l=await Gm(t,o);return new nc(a,{configPath:t,document:s,resolvedRefMap:c,plugins:i,ignore:l})}function jx(e){}async function Cx(e,{configPath:t,externalRefResolver:r,ignore:n}={}){const o=ha(typeof e=="string"?e:"",t??"");typeof e!="string"&&e&&(o.parsed=e);const{resolvedConfig:s,resolvedRefMap:a,plugins:c}=await Um({rawConfigDocument:Km(o),configPath:t,externalRefResolver:r});return new nc(s,{configPath:t,document:o,resolvedRefMap:a,plugins:c,ignore:n})}function Km(e){if(!e.parsed)return e;const{plugins:t,resolve:r,...n}=e.parsed,o={...structuredClone(n),plugins:t?.slice(),...r&&{resolve:{...r}}};return{...e,parsed:o}}var Jm={},At={},Ym={},Wm;function ia(){return Wm||(Wm=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t;(function(i){i[i.SCALAR=0]="SCALAR",i[i.MAPPING=1]="MAPPING",i[i.MAP=2]="MAP",i[i.SEQ=3]="SEQ",i[i.ANCHOR_REF=4]="ANCHOR_REF",i[i.INCLUDE_REF=5]="INCLUDE_REF"})(t=e.Kind||(e.Kind={}));function r(i,l){var p=l?l.endPosition:i.endPosition+1,f={key:i,value:l,startPosition:i.startPosition,endPosition:p,kind:t.MAPPING,parent:null,errors:[]};return f}e.newMapping=r;function n(i,l,p,f){return{errors:[],referencesAnchor:i,value:f,startPosition:l,endPosition:p,kind:t.ANCHOR_REF,parent:null}}e.newAnchorRef=n;function o(i){i===void 0&&(i="");var l={errors:[],startPosition:-1,endPosition:-1,value:""+i,kind:t.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+i};return typeof i!="string"&&(l.valueObject=i),l}e.newScalar=o;function s(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:t.SEQ,parent:null}}e.newItems=s;function a(){return s()}e.newSeq=a;function c(i){return{errors:[],startPosition:-1,endPosition:-1,mappings:i||[],kind:t.MAP,parent:null}}e.newMap=c})(Ym)),Ym}var Ht={},Hm;function qr(){if(Hm)return Ht;Hm=1,Object.defineProperty(Ht,"__esModule",{value:!0});function e(a){return typeof a>"u"||a===null}Ht.isNothing=e;function t(a){return typeof a=="object"&&a!==null}Ht.isObject=t;function r(a){return Array.isArray(a)?a:e(a)?[]:[a]}Ht.toArray=r;function n(a,c){var i,l,p,f;if(c)for(f=Object.keys(c),i=0,l=f.length;i<l;i+=1)p=f[i],a[p]=c[p];return a}Ht.extend=n;function o(a,c){var i="",l;for(l=0;l<c;l+=1)i+=a;return i}Ht.repeat=o;function s(a){return a===0&&Number.NEGATIVE_INFINITY===1/a}return Ht.isNegativeZero=s,Ht}var Pi,Xm;function fn(){if(Xm)return Pi;Xm=1;var e=(function(){function t(r,n,o){n===void 0&&(n=null),o===void 0&&(o=!1),this.name="YAMLException",this.reason=r,this.mark=n,this.message=this.toString(!1),this.isWarning=o}return t.isInstance=function(r){if(r!=null&&r.getClassIdentifier&&typeof r.getClassIdentifier=="function")for(var n=0,o=r.getClassIdentifier();n<o.length;n++){var s=o[n];if(s==t.CLASS_IDENTIFIER)return!0}return!1},t.prototype.getClassIdentifier=function(){var r=[];return r.concat(t.CLASS_IDENTIFIER)},t.prototype.toString=function(r){r===void 0&&(r=!1);var n;return n="JS-YAML: "+(this.reason||"(unknown reason)"),!r&&this.mark&&(n+=" "+this.mark.toString()),n},t.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException",t})();return Pi=e,Pi}var xi,Qm;function Ax(){if(Qm)return xi;Qm=1;var e=qr(),t=(function(){function r(n,o,s,a,c){this.name=n,this.buffer=o,this.position=s,this.line=a,this.column=c}return r.prototype.getSnippet=function(n,o){n===void 0&&(n=0),o===void 0&&(o=75);var s,a,c,i,l;if(!this.buffer)return null;for(n=n||4,o=o||75,s="",a=this.position;a>0&&`\0\r
|
|
88
|
-
\x85\u2028\u2029`.indexOf(this.buffer.charAt(a-1))===-1;)if(a-=1,this.position-a>o/2-1){s=" ... ",a+=5;break}for(c="",i=this.position;i<this.buffer.length&&`\0\r
|
|
89
|
-
\x85\u2028\u2029`.indexOf(this.buffer.charAt(i))===-1;)if(i+=1,i-this.position>o/2-1){c=" ... ",i-=5;break}return l=this.buffer.slice(a,i),e.repeat(" ",n)+s+l+c+`
|
|
90
|
-
`+e.repeat(" ",n+this.position-a+s.length)+"^"},r.prototype.toString=function(n){n===void 0&&(n=!0);var o,s="";return this.name&&(s+='in "'+this.name+'" '),s+="at line "+(this.line+1)+", column "+(this.column+1),n||(o=this.getSnippet(),o&&(s+=`:
|
|
91
|
-
`+o)),s},r})();return xi=t,xi}var ca={},la={},Zm;function ot(){if(Zm)return la;Zm=1,Object.defineProperty(la,"__esModule",{value:!0});var e=fn(),t=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];function n(s){var a={};return s!==null&&Object.keys(s).forEach(function(c){s[c].forEach(function(i){a[String(i)]=c})}),a}var o=(function(){function s(a,c){if(c=c||{},Object.keys(c).forEach(function(i){if(t.indexOf(i)===-1)throw new e('Unknown option "'+i+'" is met in definition of "'+a+'" YAML type.')}),this.tag=a,this.kind=c.kind||null,this.resolve=c.resolve||function(){return!0},this.construct=c.construct||function(i){return i},this.instanceOf=c.instanceOf||null,this.predicate=c.predicate||null,this.represent=c.represent||null,this.defaultStyle=c.defaultStyle||null,this.styleAliases=n(c.styleAliases||null),r.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+a+'" YAML type.')}return s})();return la.Type=o,la}var eh;function mn(){if(eh)return ca;eh=1,Object.defineProperty(ca,"__esModule",{value:!0});var e=qr(),t=fn(),r=ot();function n(a,c,i){var l=[];return a.include.forEach(function(p){i=n(p,c,i)}),a[c].forEach(function(p){i.forEach(function(f,$){f.tag===p.tag&&l.push($)}),i.push(p)}),i.filter(function(p,f){return l.indexOf(f)===-1})}function o(){var a={},c,i;function l(p){a[p.tag]=p}for(c=0,i=arguments.length;c<i;c+=1)arguments[c].forEach(l);return a}var s=(function(){function a(c){this.include=c.include||[],this.implicit=c.implicit||[],this.explicit=c.explicit||[],this.implicit.forEach(function(i){if(i.loadKind&&i.loadKind!=="scalar")throw new t("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=n(this,"implicit",[]),this.compiledExplicit=n(this,"explicit",[]),this.compiledTypeMap=o(this.compiledImplicit,this.compiledExplicit)}return a.DEFAULT=null,a.create=function(){var c,i;switch(arguments.length){case 1:c=a.DEFAULT,i=arguments[0];break;case 2:c=arguments[0],i=arguments[1];break;default:throw new t("Wrong number of arguments for Schema.create function")}if(c=e.toArray(c),i=e.toArray(i),!c.every(function(l){return l instanceof a}))throw new t("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!i.every(function(l){return l instanceof r.Type}))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new a({include:c,explicit:i})},a})();return ca.Schema=s,ca}var Si,th;function Rx(){if(th)return Si;th=1;var e=ot();return Si=new e.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Si}var Ii,rh;function Dx(){if(rh)return Ii;rh=1;var e=ot();return Ii=new e.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Ii}var Ti,nh;function qx(){if(nh)return Ti;nh=1;var e=ot();return Ti=new e.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Ti}var ki,oh;function Lx(){if(oh)return ki;oh=1;var e=mn();return ki=new e.Schema({explicit:[Rx(),Dx(),qx()]}),ki}var Ni,sh;function Mx(){if(sh)return Ni;sh=1;var e=ot();function t(o){if(o===null)return!0;var s=o.length;return s===1&&o==="~"||s===4&&(o==="null"||o==="Null"||o==="NULL")}function r(){return null}function n(o){return o===null}return Ni=new e.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:t,construct:r,predicate:n,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),Ni}var Oi,ah;function Vx(){if(ah)return Oi;ah=1;var e=ot();function t(o){if(o===null)return!1;var s=o.length;return s===4&&(o==="true"||o==="True"||o==="TRUE")||s===5&&(o==="false"||o==="False"||o==="FALSE")}function r(o){return o==="true"||o==="True"||o==="TRUE"}function n(o){return Object.prototype.toString.call(o)==="[object Boolean]"}return Oi=new e.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:t,construct:r,predicate:n,represent:{lowercase:function(o){return o?"true":"false"},uppercase:function(o){return o?"TRUE":"FALSE"},camelcase:function(o){return o?"True":"False"}},defaultStyle:"lowercase"}),Oi}var ji,ih;function Fx(){if(ih)return ji;ih=1;var e=qr(),t=ot();function r(i){return 48<=i&&i<=57||65<=i&&i<=70||97<=i&&i<=102}function n(i){return 48<=i&&i<=55}function o(i){return 48<=i&&i<=57}function s(i){if(i===null)return!1;var l=i.length,p=0,f=!1,$;if(!l)return!1;if($=i[p],($==="-"||$==="+")&&($=i[++p]),$==="0"){if(p+1===l)return!0;if($=i[++p],$==="b"){for(p++;p<l;p++)if($=i[p],$!=="_"){if($!=="0"&&$!=="1")return!1;f=!0}return f}if($==="x"){for(p++;p<l;p++)if($=i[p],$!=="_"){if(!r(i.charCodeAt(p)))return!1;f=!0}return f}for(;p<l;p++)if($=i[p],$!=="_"){if(!n(i.charCodeAt(p)))return!1;f=!0}return f}for(;p<l;p++)if($=i[p],$!=="_"){if($===":")break;if(!o(i.charCodeAt(p)))return!1;f=!0}return f?$!==":"?!0:/^(:[0-5]?[0-9])+$/.test(i.slice(p)):!1}function a(i){var l=i,p=1,f,$,m=[];return l.indexOf("_")!==-1&&(l=l.replace(/_/g,"")),f=l[0],(f==="-"||f==="+")&&(f==="-"&&(p=-1),l=l.slice(1),f=l[0]),l==="0"?0:f==="0"?l[1]==="b"?p*parseInt(l.slice(2),2):l[1]==="x"?p*parseInt(l,16):p*parseInt(l,8):l.indexOf(":")!==-1?(l.split(":").forEach(function(_){m.unshift(parseInt(_,10))}),l=0,$=1,m.forEach(function(_){l+=_*$,$*=60}),p*l):p*parseInt(l,10)}function c(i){return Object.prototype.toString.call(i)==="[object Number]"&&i%1===0&&!e.isNegativeZero(i)}return ji=new t.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:s,construct:a,predicate:c,represent:{binary:function(i){return"0b"+i.toString(2)},octal:function(i){return"0"+i.toString(8)},decimal:function(i){return i.toString(10)},hexadecimal:function(i){return"0x"+i.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ji}var Ci,ch;function zx(){if(ch)return Ci;ch=1;var e=qr(),t=ot(),r=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function n(c){return!(c===null||!r.test(c))}function o(c){var i,l,p,f;return i=c.replace(/_/g,"").toLowerCase(),l=i[0]==="-"?-1:1,f=[],0<="+-".indexOf(i[0])&&(i=i.slice(1)),i===".inf"?l===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:i===".nan"?NaN:0<=i.indexOf(":")?(i.split(":").forEach(function($){f.unshift(parseFloat($,10))}),i=0,p=1,f.forEach(function($){i+=$*p,p*=60}),l*i):l*parseFloat(i,10)}function s(c,i){if(isNaN(c))switch(i){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===c)switch(i){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===c)switch(i){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(c))return"-0.0";return c.toString(10)}function a(c){return Object.prototype.toString.call(c)==="[object Number]"&&(c%1!==0||e.isNegativeZero(c))}return Ci=new t.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:n,construct:o,predicate:a,represent:s,defaultStyle:"lowercase"}),Ci}var Ai,lh;function Ux(){if(lh)return Ai;lh=1;var e=mn();return Ai=new e.Schema({include:[Lx()],implicit:[Mx(),Vx(),Fx(),zx()]}),Ai}var Ri,ph;function Bx(){if(ph)return Ri;ph=1;var e=mn();return Ri=new e.Schema({include:[Ux()]}),Ri}var Di,uh;function Gx(){if(uh)return Di;uh=1;var e=ot(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?)?$");function r(s){if(s===null)return!1;var a;return a=t.exec(s),a!==null}function n(s){var a,c,i,l,p,f,$,m=0,_=null,x,b,w;if(a=t.exec(s),a===null)throw new Error("Date resolve error");if(c=+a[1],i=+a[2]-1,l=+a[3],!a[4])return new Date(Date.UTC(c,i,l));if(p=+a[4],f=+a[5],$=+a[6],a[7]){for(m=a[7].slice(0,3);m.length<3;)m=m+"0";m=+m}return a[9]&&(x=+a[10],b=+(a[11]||0),_=(x*60+b)*6e4,a[9]==="-"&&(_=-_)),w=new Date(Date.UTC(c,i,l,p,f,$,m)),_&&w.setTime(w.getTime()-_),w}function o(s){return s.toISOString()}return Di=new e.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:r,construct:n,instanceOf:Date,represent:o}),Di}var qi,dh;function Kx(){if(dh)return qi;dh=1;var e=ot();function t(r){return r==="<<"||r===null}return qi=new e.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),qi}var Li,fh;function Jx(){if(fh)return Li;fh=1;var e=ty().Buffer,t=ot(),r=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
92
|
-
\r`;function n(c){if(c===null)return!1;var i,l,p=0,f=c.length,$=r;for(l=0;l<f;l++)if(i=$.indexOf(c.charAt(l)),!(i>64)){if(i<0)return!1;p+=6}return p%8===0}function o(c){var i,l,p=c.replace(/[\r\n=]/g,""),f=p.length,$=r,m=0,_=[];for(i=0;i<f;i++)i%4===0&&i&&(_.push(m>>16&255),_.push(m>>8&255),_.push(m&255)),m=m<<6|$.indexOf(p.charAt(i));return l=f%4*6,l===0?(_.push(m>>16&255),_.push(m>>8&255),_.push(m&255)):l===18?(_.push(m>>10&255),_.push(m>>2&255)):l===12&&_.push(m>>4&255),e?new e(_):_}function s(c){var i="",l=0,p,f,$=c.length,m=r;for(p=0;p<$;p++)p%3===0&&p&&(i+=m[l>>18&63],i+=m[l>>12&63],i+=m[l>>6&63],i+=m[l&63]),l=(l<<8)+c[p];return f=$%3,f===0?(i+=m[l>>18&63],i+=m[l>>12&63],i+=m[l>>6&63],i+=m[l&63]):f===2?(i+=m[l>>10&63],i+=m[l>>4&63],i+=m[l<<2&63],i+=m[64]):f===1&&(i+=m[l>>2&63],i+=m[l<<4&63],i+=m[64],i+=m[64]),i}function a(c){return e&&e.isBuffer(c)}return Li=new t.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:n,construct:o,predicate:a,represent:s}),Li}var Mi,mh;function Yx(){if(mh)return Mi;mh=1;var e=ot(),t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function n(s){if(s===null)return!0;var a=[],c,i,l,p,f,$=s;for(c=0,i=$.length;c<i;c+=1){if(l=$[c],f=!1,r.call(l)!=="[object Object]")return!1;for(p in l)if(t.call(l,p))if(!f)f=!0;else return!1;if(!f)return!1;if(a.indexOf(p)===-1)a.push(p);else return!1}return!0}function o(s){return s!==null?s:[]}return Mi=new e.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:n,construct:o}),Mi}var Vi,hh;function Wx(){if(hh)return Vi;hh=1;var e=ot(),t=ia(),r=Object.prototype.toString;function n(s){if(s===null)return!0;if(s.kind!=t.Kind.SEQ)return!1;var a,c,i,l=s.items;for(a=0,c=l.length;a<c;a+=1)if(i=l[a],r.call(i)!=="[object Object]"||!Array.isArray(i.mappings)||i.mappings.length!==1)return!1;return!0}function o(s){if(s===null||!Array.isArray(s.items))return[];var a,c,i,l=s.items;for(i=t.newItems(),i.parent=s.parent,i.startPosition=s.startPosition,i.endPosition=s.endPosition,a=0,c=l.length;a<c;a+=1){var p=l[a],f=p.mappings[0],$=t.newItems();$.parent=i,$.startPosition=f.key.startPosition,$.endPosition=f.value.startPosition,f.key.parent=$,f.value.parent=$,$.items=[f.key,f.value],i.items.push($)}return i}return Vi=new e.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:n,construct:o}),Vi}var Fi,yh;function Hx(){if(yh)return Fi;yh=1;var e=ot(),t=ia();function r(o){return o===null?!0:o.kind==t.Kind.MAP}function n(o){return o!==null?o:{}}return Fi=new e.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:n}),Fi}var zi,gh;function Ui(){if(gh)return zi;gh=1;var e=mn(),t=new e.Schema({include:[Bx()],implicit:[Gx(),Kx()],explicit:[Jx(),Yx(),Wx(),Hx()]});return zi=t,zi}var Bi,vh;function Xx(){if(vh)return Bi;vh=1;var e=ot();function t(){return!0}function r(){}function n(){return""}function o(s){return typeof s>"u"}return Bi=new e.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:t,construct:r,predicate:o,represent:n}),Bi}var Gi,bh;function Qx(){if(bh)return Gi;bh=1;var e=ot();function t(s){if(s===null||s.length===0)return!1;var a=s,c=/\/([gim]*)$/.exec(s),i="";if(a[0]==="/"){if(c&&(i=c[1]),i.length>3||a[a.length-i.length-1]!=="/")return!1;a=a.slice(1,a.length-i.length-1)}try{return!0}catch{return!1}}function r(s){var a=s,c=/\/([gim]*)$/.exec(s),i="";return a[0]==="/"&&(c&&(i=c[1]),a=a.slice(1,a.length-i.length-1)),new RegExp(a,i)}function n(s){var a="/"+s.source+"/";return s.global&&(a+="g"),s.multiline&&(a+="m"),s.ignoreCase&&(a+="i"),a}function o(s){return Object.prototype.toString.call(s)==="[object RegExp]"}return Gi=new e.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:t,construct:r,predicate:o,represent:n}),Gi}var Ki,wh;function $h(){if(wh)return Ki;wh=1;var e=mn(),t=new e.Schema({include:[Ui()],explicit:[Xx(),Qx()]});return e.Schema.DEFAULT=t,Ki=t,Ki}var Eh;function Zx(){if(Eh)return At;Eh=1,Object.defineProperty(At,"__esModule",{value:!0});var e=ia(),t=qr(),r=fn(),n=Ax(),o=Ui(),s=$h(),a=Object.prototype.hasOwnProperty,c=1,i=2,l=3,p=4,f=1,$=2,m=3,_=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,x=/[\x85\u2028\u2029]/,b=/[,\[\]\{\}]/,w=/^(?:!|!!|![a-z\-]+!)$/i,y=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function d(u){return u===10||u===13}function P(u){return u===9||u===32}function h(u){return u===9||u===32||u===10||u===13}function g(u){return u===44||u===91||u===93||u===123||u===125}function E(u){var Y;return 48<=u&&u<=57?u-48:(Y=u|32,97<=Y&&Y<=102?Y-97+10:-1)}function O(u){return u===120?2:u===117?4:u===85?8:0}function C(u){return 48<=u&&u<=57?u-48:-1}function q(u){return u===48?"\0":u===97?"\x07":u===98?"\b":u===116||u===9?" ":u===110?`
|
|
93
|
-
`:u===118?"\v":u===102?"\f":u===114?"\r":u===101?"\x1B":u===32?" ":u===34?'"':u===47?"/":u===92?"\\":u===78?"\x85":u===95?"\xA0":u===76?"\u2028":u===80?"\u2029":""}function z(u){return u<=65535?String.fromCharCode(u):String.fromCharCode((u-65536>>10)+55296,(u-65536&1023)+56320)}for(var F=new Array(256),L=new Array(256),K=new Array(256),le=new Array(256),ue=0;ue<256;ue++)le[ue]=L[ue]=q(ue),F[ue]=L[ue]?1:0,K[ue]=1,F[ue]||(le[ue]="\\"+String.fromCharCode(ue));var xe=(function(){function u(Y,G){this.errorMap={},this.errors=[],this.lines=[],this.input=Y,this.filename=G.filename||null,this.schema=G.schema||s,this.onWarning=G.onWarning||null,this.legacy=G.legacy||!1,this.allowAnyEscape=G.allowAnyEscape||!1,this.ignoreDuplicateKeys=G.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=Y.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}return u})();function ce(u,Y,G){return G===void 0&&(G=!1),new r(Y,new n(u.filename,u.input,u.position,u.line,u.position-u.lineStart),G)}function Ee(u,Y,G,Q,ne){Q===void 0&&(Q=!1),ne===void 0&&(ne=!1);var Z=T(u,Y);if(Z){var ae=G+Y;if(!u.errorMap[ae]){var me=new n(u.filename,u.input,Y,Z.line,Y-Z.start);ne&&(me.toLineEnd=!0);var he=new r(G,me,Q);u.errors.push(he)}}}function R(u,Y){var G=ce(u,Y),Q=G.message+G.mark.position;if(!u.errorMap[Q]){u.errors.push(G),u.errorMap[Q]=1;for(var ne=u.position;;){if(u.position>=u.input.length-1)return;var Z=u.input.charAt(u.position);if(Z==`
|
|
94
|
-
`){u.position--,u.position==ne&&(u.position+=1);return}if(Z=="\r"){u.position--,u.position==ne&&(u.position+=1);return}u.position++}}}function N(u,Y){var G=ce(u,Y);u.onWarning&&u.onWarning.call(null,G)}var V={YAML:function(u,Y,G){var Q,ne,Z;u.version!==null&&R(u,"duplication of %YAML directive"),G.length!==1&&R(u,"YAML directive accepts exactly one argument"),Q=/^([0-9]+)\.([0-9]+)$/.exec(G[0]),Q===null&&R(u,"ill-formed argument of the YAML directive"),ne=parseInt(Q[1],10),Z=parseInt(Q[2],10),ne!==1&&R(u,"found incompatible YAML document (version 1.2 is required)"),u.version=G[0],u.checkLineBreaks=Z<2,Z!==2&&R(u,"found incompatible YAML document (version 1.2 is required)")},TAG:function(u,Y,G){var Q,ne;G.length!==2&&R(u,"TAG directive accepts exactly two arguments"),Q=G[0],ne=G[1],w.test(Q)||R(u,"ill-formed tag handle (first argument) of the TAG directive"),a.call(u.tagMap,Q)&&R(u,'there is a previously declared suffix for "'+Q+'" tag handle'),y.test(ne)||R(u,"ill-formed tag prefix (second argument) of the TAG directive"),u.tagMap[Q]=ne}};function j(u,Y,G,Q){var ne,Z,ae,me,he=u.result;if(he.startPosition==-1&&(he.startPosition=Y),Y<=G){if(me=u.input.slice(Y,G),Q)for(ne=0,Z=me.length;ne<Z;ne+=1)ae=me.charCodeAt(ne),ae===9||32<=ae&&ae<=1114111||R(u,"expected valid JSON character");else _.test(me)&&R(u,"the stream contains non-printable characters");he.value+=me,he.endPosition=G}}function v(u,Y,G,Q,ne){if(Q!=null){Y===null&&(Y={startPosition:Q.startPosition,endPosition:ne.endPosition,parent:null,errors:[],mappings:[],kind:e.Kind.MAP});var Z=e.newMapping(Q,ne);return Z.parent=Y,Q.parent=Z,ne!=null&&(ne.parent=Z),!u.ignoreDuplicateKeys&&Y.mappings.forEach(function(ae){ae.key&&ae.key.value===(Z.key&&Z.key.value)&&(Ee(u,Z.key.startPosition,"duplicate key"),Ee(u,ae.key.startPosition,"duplicate key"))}),Y.mappings.push(Z),Y.endPosition=ne?ne.endPosition:Q.endPosition+1,Y}}function S(u){var Y;Y=u.input.charCodeAt(u.position),Y===10?u.position++:Y===13?(u.position++,u.input.charCodeAt(u.position)===10&&u.position++):R(u,"a line break is expected"),u.line+=1,u.lineStart=u.position,u.lines.push({start:u.lineStart,line:u.line})}function T(u,Y){for(var G,Q=0;Q<u.lines.length&&!(u.lines[Q].start>Y);Q++)G=u.lines[Q];return G||{start:0,line:0}}function M(u,Y,G){for(var Q=0,ne=u.input.charCodeAt(u.position);ne!==0;){for(;P(ne);)ne===9&&u.errors.push(ce(u,"Using tabs can lead to unpredictable results",!0)),ne=u.input.charCodeAt(++u.position);if(Y&&ne===35)do ne=u.input.charCodeAt(++u.position);while(ne!==10&&ne!==13&&ne!==0);if(d(ne))for(S(u),ne=u.input.charCodeAt(u.position),Q++,u.lineIndent=0;ne===32;)u.lineIndent++,ne=u.input.charCodeAt(++u.position);else break}return G!==-1&&Q!==0&&u.lineIndent<G&&N(u,"deficient indentation"),Q}function U(u){var Y=u.position,G;return G=u.input.charCodeAt(Y),!!((G===45||G===46)&&u.input.charCodeAt(Y+1)===G&&u.input.charCodeAt(Y+2)===G&&(Y+=3,G=u.input.charCodeAt(Y),G===0||h(G)))}function J(u,Y,G){G===1?Y.value+=" ":G>1&&(Y.value+=t.repeat(`
|
|
95
|
-
`,G-1))}function re(u,Y,G){var Q,ne,Z,ae,me,he,Fe,ye,Ie=u.kind,Le=u.result,we,Ce=e.newScalar();if(Ce.plainScalar=!0,u.result=Ce,we=u.input.charCodeAt(u.position),h(we)||g(we)||we===35||we===38||we===42||we===33||we===124||we===62||we===39||we===34||we===37||we===64||we===96||(we===63||we===45)&&(ne=u.input.charCodeAt(u.position+1),h(ne)||G&&g(ne)))return!1;for(u.kind="scalar",Z=ae=u.position,me=!1;we!==0;){if(we===58){if(ne=u.input.charCodeAt(u.position+1),h(ne)||G&&g(ne))break}else if(we===35){if(Q=u.input.charCodeAt(u.position-1),h(Q))break}else{if(u.position===u.lineStart&&U(u)||G&&g(we))break;if(d(we))if(he=u.line,Fe=u.lineStart,ye=u.lineIndent,M(u,!1,-1),u.lineIndent>=Y){me=!0,we=u.input.charCodeAt(u.position);continue}else{u.position=ae,u.line=he,u.lineStart=Fe,u.lineIndent=ye;break}}if(me&&(j(u,Z,ae,!1),J(u,Ce,u.line-he),Z=ae=u.position,me=!1),P(we)||(ae=u.position+1),we=u.input.charCodeAt(++u.position),u.position>=u.input.length)return!1}return j(u,Z,ae,!1),u.result.startPosition!=-1?(Ce.rawValue=u.input.substring(Ce.startPosition,Ce.endPosition),!0):(u.kind=Ie,u.result=Le,!1)}function I(u,Y){var G,Q,ne;if(G=u.input.charCodeAt(u.position),G!==39)return!1;var Z=e.newScalar();for(Z.singleQuoted=!0,u.kind="scalar",u.result=Z,Z.startPosition=u.position,u.position++,Q=ne=u.position;(G=u.input.charCodeAt(u.position))!==0;)if(G===39)if(j(u,Q,u.position,!0),G=u.input.charCodeAt(++u.position),Z.endPosition=u.position,G===39)Q=ne=u.position,u.position++;else return!0;else d(G)?(j(u,Q,ne,!0),J(u,Z,M(u,!1,Y)),Q=ne=u.position):u.position===u.lineStart&&U(u)?R(u,"unexpected end of the document within a single quoted scalar"):(u.position++,ne=u.position,Z.endPosition=u.position);R(u,"unexpected end of the stream within a single quoted scalar")}function k(u,Y){var G,Q,ne,Z,ae,me;if(me=u.input.charCodeAt(u.position),me!==34)return!1;u.kind="scalar";var he=e.newScalar();for(he.doubleQuoted=!0,u.result=he,he.startPosition=u.position,u.position++,G=Q=u.position;(me=u.input.charCodeAt(u.position))!==0;){if(me===34)return j(u,G,u.position,!0),u.position++,he.endPosition=u.position,he.rawValue=u.input.substring(he.startPosition,he.endPosition),!0;if(me===92){if(j(u,G,u.position,!0),me=u.input.charCodeAt(++u.position),d(me))M(u,!1,Y);else if(me<256&&(u.allowAnyEscape?K[me]:F[me]))he.value+=u.allowAnyEscape?le[me]:L[me],u.position++;else if((ae=O(me))>0){for(ne=ae,Z=0;ne>0;ne--)me=u.input.charCodeAt(++u.position),(ae=E(me))>=0?Z=(Z<<4)+ae:R(u,"expected hexadecimal character");he.value+=z(Z),u.position++}else R(u,"unknown escape sequence");G=Q=u.position}else d(me)?(j(u,G,Q,!0),J(u,he,M(u,!1,Y)),G=Q=u.position):u.position===u.lineStart&&U(u)?R(u,"unexpected end of the document within a double quoted scalar"):(u.position++,Q=u.position)}R(u,"unexpected end of the stream within a double quoted scalar")}function D(u,Y){var G=!0,Q,ne=u.tag,Z,ae=u.anchor,me,he,Fe,ye,Ie,Le,we,Ce,He;if(He=u.input.charCodeAt(u.position),He===91)he=93,Ie=!1,Z=e.newItems(),Z.startPosition=u.position;else if(He===123)he=125,Ie=!0,Z=e.newMap(),Z.startPosition=u.position;else return!1;for(u.anchor!==null&&(Z.anchorId=u.anchor,u.anchorMap[u.anchor]=Z),He=u.input.charCodeAt(++u.position);He!==0;){if(M(u,!0,Y),He=u.input.charCodeAt(u.position),He===he)return u.position++,u.tag=ne,u.anchor=ae,u.kind=Ie?"mapping":"sequence",u.result=Z,Z.endPosition=u.position,!0;if(!G){var da=u.position;R(u,"missed comma between flow collection entries"),u.position=da+1}if(we=Le=Ce=null,Fe=ye=!1,He===63&&(me=u.input.charCodeAt(u.position+1),h(me)&&(Fe=ye=!0,u.position++,M(u,!0,Y))),Q=u.line,ee(u,Y,c,!1,!0),we=u.tag,Le=u.result,M(u,!0,Y),He=u.input.charCodeAt(u.position),(ye||u.line===Q)&&He===58&&(Fe=!0,He=u.input.charCodeAt(++u.position),M(u,!0,Y),ee(u,Y,c,!1,!0),Ce=u.result),Ie)v(u,Z,we,Le,Ce);else if(Fe){var gn=v(u,null,we,Le,Ce);gn.parent=Z,Z.items.push(gn)}else Le&&(Le.parent=Z),Z.items.push(Le);Z.endPosition=u.position+1,M(u,!0,Y),He=u.input.charCodeAt(u.position),He===44?(G=!0,He=u.input.charCodeAt(++u.position)):G=!1}R(u,"unexpected end of the stream within a flow collection")}function B(u,Y){var G,Q,ne=f,Z=!1,ae=Y,me=0,he=!1,Fe,ye;if(ye=u.input.charCodeAt(u.position),ye===124)Q=!1;else if(ye===62)Q=!0;else return!1;var Ie=e.newScalar();for(u.kind="scalar",u.result=Ie,Ie.startPosition=u.position;ye!==0;)if(ye=u.input.charCodeAt(++u.position),ye===43||ye===45)f===ne?ne=ye===43?m:$:R(u,"repeat of a chomping mode identifier");else if((Fe=C(ye))>=0)Fe===0?R(u,"bad explicit indentation width of a block scalar; it cannot be less than one"):Z?R(u,"repeat of an indentation width identifier"):(ae=Y+Fe-1,Z=!0);else break;if(P(ye)){do ye=u.input.charCodeAt(++u.position);while(P(ye));if(ye===35)do ye=u.input.charCodeAt(++u.position);while(!d(ye)&&ye!==0)}for(;ye!==0;){for(S(u),u.lineIndent=0,ye=u.input.charCodeAt(u.position);(!Z||u.lineIndent<ae)&&ye===32;)u.lineIndent++,ye=u.input.charCodeAt(++u.position);if(!Z&&u.lineIndent>ae&&(ae=u.lineIndent),d(ye)){me++;continue}if(u.lineIndent<ae){ne===m?Ie.value+=t.repeat(`
|
|
96
|
-
`,me):ne===f&&Z&&(Ie.value+=`
|
|
97
|
-
`);break}for(Q?P(ye)?(he=!0,Ie.value+=t.repeat(`
|
|
98
|
-
`,me+1)):he?(he=!1,Ie.value+=t.repeat(`
|
|
99
|
-
`,me+1)):me===0?Z&&(Ie.value+=" "):Ie.value+=t.repeat(`
|
|
100
|
-
`,me):Z&&(Ie.value+=t.repeat(`
|
|
101
|
-
`,me+1)),Z=!0,me=0,G=u.position;!d(ye)&&ye!==0;)ye=u.input.charCodeAt(++u.position);j(u,G,u.position,!1)}Ie.endPosition=u.position;for(var Le=u.position-1;;){var we=u.input[Le];if(we=="\r"||we==`
|
|
102
|
-
`||we!=" "&&we!=" ")break;Le--}return Ie.endPosition=Le,Ie.rawValue=u.input.substring(Ie.startPosition,Ie.endPosition),!0}function H(u,Y){var G,Q=u.tag,ne=u.anchor,Z=e.newItems(),ae,me=!1,he;for(u.anchor!==null&&(Z.anchorId=u.anchor,u.anchorMap[u.anchor]=Z),Z.startPosition=u.position,he=u.input.charCodeAt(u.position);he!==0&&!(he!==45||(ae=u.input.charCodeAt(u.position+1),!h(ae)));){if(me=!0,u.position++,M(u,!0,-1)&&u.lineIndent<=Y){Z.items.push(null),he=u.input.charCodeAt(u.position);continue}if(G=u.line,ee(u,Y,l,!1,!0),u.result&&(u.result.parent=Z,Z.items.push(u.result)),M(u,!0,-1),he=u.input.charCodeAt(u.position),(u.line===G||u.lineIndent>Y)&&he!==0)R(u,"bad indentation of a sequence entry");else if(u.lineIndent<Y)break}return Z.endPosition=u.position,me?(u.tag=Q,u.anchor=ne,u.kind="sequence",u.result=Z,Z.endPosition=u.position,!0):!1}function oe(u,Y,G){var Q,ne,Z,ae=u.tag,me=u.anchor,he=e.newMap(),Fe=null,ye=null,Ie=null,Le=!1,we=!1,Ce;for(he.startPosition=u.position,u.anchor!==null&&(he.anchorId=u.anchor,u.anchorMap[u.anchor]=he),Ce=u.input.charCodeAt(u.position);Ce!==0;){if(Q=u.input.charCodeAt(u.position+1),Z=u.line,(Ce===63||Ce===58)&&h(Q))Ce===63?(Le&&(v(u,he,Fe,ye,null),Fe=ye=Ie=null),we=!0,Le=!0,ne=!0):Le?(Le=!1,ne=!0):R(u,"incomplete explicit mapping pair; a key node is missed"),u.position+=1,Ce=Q;else if(ee(u,G,i,!1,!0))if(u.line===Z){for(Ce=u.input.charCodeAt(u.position);P(Ce);)Ce=u.input.charCodeAt(++u.position);if(Ce===58)Ce=u.input.charCodeAt(++u.position),h(Ce)||R(u,"a whitespace character is expected after the key-value separator within a block mapping"),Le&&(v(u,he,Fe,ye,null),Fe=ye=Ie=null),we=!0,Le=!1,ne=!1,Fe=u.tag,ye=u.result;else{if(u.position==u.lineStart&&U(u))break;if(we)R(u,"can not read an implicit mapping pair; a colon is missed");else return u.tag=ae,u.anchor=me,!0}}else if(we){for(R(u,"can not read a block mapping entry; a multiline key may not be an implicit key");u.position>0;)if(Ce=u.input.charCodeAt(--u.position),d(Ce)){u.position++;break}}else return u.tag=ae,u.anchor=me,!0;else break;if((u.line===Z||u.lineIndent>Y)&&(ee(u,Y,p,!0,ne)&&(Le?ye=u.result:Ie=u.result),Le||(v(u,he,Fe,ye,Ie),Fe=ye=Ie=null),M(u,!0,-1),Ce=u.input.charCodeAt(u.position)),u.lineIndent>Y&&Ce!==0)R(u,"bad indentation of a mapping entry");else if(u.lineIndent<Y)break}return Le&&v(u,he,Fe,ye,null),we&&(u.tag=ae,u.anchor=me,u.kind="mapping",u.result=he),we}function A(u){var Y,G=!1,Q=!1,ne,Z,ae;if(ae=u.input.charCodeAt(u.position),ae!==33)return!1;if(u.tag!==null&&R(u,"duplication of a tag property"),ae=u.input.charCodeAt(++u.position),ae===60?(G=!0,ae=u.input.charCodeAt(++u.position)):ae===33?(Q=!0,ne="!!",ae=u.input.charCodeAt(++u.position)):ne="!",Y=u.position,G){do ae=u.input.charCodeAt(++u.position);while(ae!==0&&ae!==62);u.position<u.length?(Z=u.input.slice(Y,u.position),ae=u.input.charCodeAt(++u.position)):R(u,"unexpected end of the stream within a verbatim tag")}else{for(;ae!==0&&!h(ae);)ae===33&&(Q?R(u,"tag suffix cannot contain exclamation marks"):(ne=u.input.slice(Y-1,u.position+1),w.test(ne)||R(u,"named tag handle cannot contain such characters"),Q=!0,Y=u.position+1)),ae=u.input.charCodeAt(++u.position);Z=u.input.slice(Y,u.position),b.test(Z)&&R(u,"tag suffix cannot contain flow indicator characters")}return Z&&!y.test(Z)&&R(u,"tag name cannot contain such characters: "+Z),G?u.tag=Z:a.call(u.tagMap,ne)?u.tag=u.tagMap[ne]+Z:ne==="!"?u.tag="!"+Z:ne==="!!"?u.tag="tag:yaml.org,2002:"+Z:R(u,'undeclared tag handle "'+ne+'"'),!0}function X(u){var Y,G;if(G=u.input.charCodeAt(u.position),G!==38)return!1;for(u.anchor!==null&&R(u,"duplication of an anchor property"),G=u.input.charCodeAt(++u.position),Y=u.position;G!==0&&!h(G)&&!g(G);)G=u.input.charCodeAt(++u.position);return u.position===Y&&R(u,"name of an anchor node must contain at least one character"),u.anchor=u.input.slice(Y,u.position),!0}function se(u){var Y,G,Q;if(Q=u.input.charCodeAt(u.position),Q!==42)return!1;for(Q=u.input.charCodeAt(++u.position),Y=u.position;Q!==0&&!h(Q)&&!g(Q);)Q=u.input.charCodeAt(++u.position);return u.position<=Y&&(R(u,"name of an alias node must contain at least one character"),u.position=Y+1),G=u.input.slice(Y,u.position),u.anchorMap.hasOwnProperty(G)||(R(u,'unidentified alias "'+G+'"'),u.position<=Y&&(u.position=Y+1)),u.result=e.newAnchorRef(G,Y,u.position,u.anchorMap[G]),M(u,!0,-1),!0}function ee(u,Y,G,Q,ne){var Z,ae,me,he=1,Fe=!1,ye=!1,Ie,Le,we,Ce,He;u.tag=null,u.anchor=null,u.kind=null,u.result=null,Z=ae=me=p===G||l===G,Q&&M(u,!0,-1)&&(Fe=!0,u.lineIndent>Y?he=1:u.lineIndent===Y?he=0:u.lineIndent<Y&&(he=-1));var da=u.position;if(he===1)for(;A(u)||X(u);)M(u,!0,-1)?(Fe=!0,me=Z,u.lineIndent>Y?he=1:u.lineIndent===Y?he=0:u.lineIndent<Y&&(he=-1)):me=!1;if(me&&(me=Fe||ne),(he===1||p===G)&&(c===G||i===G?Ce=Y:Ce=Y+1,He=u.position-u.lineStart,he===1?me&&(H(u,He)||oe(u,He,Ce))||D(u,Ce)?ye=!0:(ae&&B(u,Ce)||I(u,Ce)||k(u,Ce)?ye=!0:se(u)?(ye=!0,(u.tag!==null||u.anchor!==null)&&R(u,"alias node should not have any properties")):re(u,Ce,c===G)&&(ye=!0,u.tag===null&&(u.tag="?")),u.anchor!==null&&(u.anchorMap[u.anchor]=u.result,u.result.anchorId=u.anchor)):he===0&&(ye=me&&H(u,He))),u.tag!==null&&u.tag!=="!")if(u.tag=="!include")u.result||(u.result=e.newScalar(),u.result.startPosition=u.position,u.result.endPosition=u.position,R(u,"!include without value")),u.result.kind=e.Kind.INCLUDE_REF;else if(u.tag==="?")for(Ie=0,Le=u.implicitTypes.length;Ie<Le;Ie+=1){we=u.implicitTypes[Ie];var gn=u.result.value;if(we.resolve(gn)){u.result.valueObject=we.construct(u.result.value),u.tag=we.tag,u.anchor!==null&&(u.result.anchorId=u.anchor,u.anchorMap[u.anchor]=u.result);break}}else a.call(u.typeMap,u.tag)?(we=u.typeMap[u.tag],u.result!==null&&we.kind!==u.kind&&R(u,"unacceptable node kind for !<"+u.tag+'> tag; it should be "'+we.kind+'", not "'+u.kind+'"'),we.resolve(u.result)?(u.result=we.construct(u.result),u.anchor!==null&&(u.result.anchorId=u.anchor,u.anchorMap[u.anchor]=u.result)):R(u,"cannot resolve a node with !<"+u.tag+"> explicit tag")):Ee(u,da,"unknown tag <"+u.tag+">",!1,!0);return u.tag!==null||u.anchor!==null||ye}function te(u){var Y=u.position,G,Q,ne,Z=!1,ae;for(u.version=null,u.checkLineBreaks=u.legacy,u.tagMap={},u.anchorMap={};(ae=u.input.charCodeAt(u.position))!==0&&(M(u,!0,-1),ae=u.input.charCodeAt(u.position),!(u.lineIndent>0||ae!==37));){for(Z=!0,ae=u.input.charCodeAt(++u.position),G=u.position;ae!==0&&!h(ae);)ae=u.input.charCodeAt(++u.position);for(Q=u.input.slice(G,u.position),ne=[],Q.length<1&&R(u,"directive name must not be less than one character in length");ae!==0;){for(;P(ae);)ae=u.input.charCodeAt(++u.position);if(ae===35){do ae=u.input.charCodeAt(++u.position);while(ae!==0&&!d(ae));break}if(d(ae))break;for(G=u.position;ae!==0&&!h(ae);)ae=u.input.charCodeAt(++u.position);ne.push(u.input.slice(G,u.position))}ae!==0&&S(u),a.call(V,Q)?V[Q](u,Q,ne):(N(u,'unknown document directive "'+Q+'"'),u.position++)}if(M(u,!0,-1),u.lineIndent===0&&u.input.charCodeAt(u.position)===45&&u.input.charCodeAt(u.position+1)===45&&u.input.charCodeAt(u.position+2)===45?(u.position+=3,M(u,!0,-1)):Z&&R(u,"directives end mark is expected"),ee(u,u.lineIndent-1,p,!1,!0),M(u,!0,-1),u.checkLineBreaks&&x.test(u.input.slice(Y,u.position))&&N(u,"non-ASCII line breaks are interpreted as content"),u.documents.push(u.result),u.position===u.lineStart&&U(u)){u.input.charCodeAt(u.position)===46&&(u.position+=3,M(u,!0,-1));return}if(u.position<u.length-1)R(u,"end of the stream or a document separator is expected");else return}function pe(u,Y){u=String(u),Y=Y||{};var G=u.length;G!==0&&(u.charCodeAt(G-1)!==10&&u.charCodeAt(G-1)!==13&&(u+=`
|
|
103
|
-
`),u.charCodeAt(0)===65279&&(u=u.slice(1)));var Q=new xe(u,Y);for(Q.input+="\0";Q.input.charCodeAt(Q.position)===32;)Q.lineIndent+=1,Q.position+=1;for(;Q.position<Q.length-1;){var ne=Q.position;if(te(Q),Q.position<=ne)for(;Q.position<Q.length-1;Q.position++){var Z=Q.input.charAt(Q.position);if(Z==`
|
|
104
|
-
`)break}}var ae=Q.documents,me=ae.length;me>0&&(ae[me-1].endPosition=G);for(var he=0,Fe=ae;he<Fe.length;he++){var ye=Fe[he];ye.errors=Q.errors,ye.startPosition>ye.endPosition&&(ye.startPosition=ye.endPosition)}return ae}function ie(u,Y,G){G===void 0&&(G={});var Q=pe(u,G),ne,Z;for(ne=0,Z=Q.length;ne<Z;ne+=1)Y(Q[ne])}At.loadAll=ie;function de(u,Y){Y===void 0&&(Y={});var G=pe(u,Y);if(G.length!==0){if(G.length===1)return G[0];var Q=new r("expected a single document in the stream, but found more");return Q.mark=new n("","",0,0,0),Q.mark.position=G[0].endPosition,G[0].errors.push(Q),G[0]}}At.load=de;function $e(u,Y,G){G===void 0&&(G={}),ie(u,Y,t.extend({schema:o},G))}At.safeLoadAll=$e;function Me(u,Y){return Y===void 0&&(Y={}),de(u,t.extend({schema:o},Y))}return At.safeLoad=Me,At.loadAll=ie,At.load=de,At.safeLoadAll=$e,At.safeLoad=Me,At}var hn={},_h;function eS(){if(_h)return hn;_h=1,Object.defineProperty(hn,"__esModule",{value:!0});var e=qr(),t=fn(),r=$h(),n=Ui(),o=Object.prototype.toString,s=Object.prototype.hasOwnProperty,a=9,c=10,i=13,l=32,p=33,f=34,$=35,m=37,_=38,x=39,b=42,w=44,y=45,d=58,P=62,h=63,g=64,E=91,O=93,C=96,q=123,z=124,F=125,L={};L[0]="\\0",L[7]="\\a",L[8]="\\b",L[9]="\\t",L[10]="\\n",L[11]="\\v",L[12]="\\f",L[13]="\\r",L[27]="\\e",L[34]='\\"',L[92]="\\\\",L[133]="\\N",L[160]="\\_",L[8232]="\\L",L[8233]="\\P";var K=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function le(A,X){var se,ee,te,pe,ie,de,$e;if(X===null)return{};for(se={},ee=Object.keys(X),te=0,pe=ee.length;te<pe;te+=1)ie=ee[te],de=String(X[ie]),ie.slice(0,2)==="!!"&&(ie="tag:yaml.org,2002:"+ie.slice(2)),$e=A.compiledTypeMap[ie],$e&&s.call($e.styleAliases,de)&&(de=$e.styleAliases[de]),se[ie]=de;return se}function ue(A){var X,se,ee;if(X=A.toString(16).toUpperCase(),A<=255)se="x",ee=2;else if(A<=65535)se="u",ee=4;else if(A<=4294967295)se="U",ee=8;else throw new t("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+se+e.repeat("0",ee-X.length)+X}function xe(A){this.schema=A.schema||r,this.indent=Math.max(1,A.indent||2),this.skipInvalid=A.skipInvalid||!1,this.flowLevel=e.isNothing(A.flowLevel)?-1:A.flowLevel,this.styleMap=le(this.schema,A.styles||null),this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function ce(A,X){for(var se=e.repeat(" ",X),ee=0,te=-1,pe="",ie,de=A.length;ee<de;)te=A.indexOf(`
|
|
105
|
-
`,ee),te===-1?(ie=A.slice(ee),ee=de):(ie=A.slice(ee,te+1),ee=te+1),ie.length&&ie!==`
|
|
106
|
-
`&&(pe+=se),pe+=ie;return pe}function Ee(A,X){return`
|
|
107
|
-
`+e.repeat(" ",A.indent*X)}function R(A,X){var se,ee,te;for(se=0,ee=A.implicitTypes.length;se<ee;se+=1)if(te=A.implicitTypes[se],te.resolve(X))return!0;return!1}function N(A){this.source=A,this.result="",this.checkpoint=0}N.prototype.takeUpTo=function(A){var X;if(A<this.checkpoint)throw X=new Error("position should be > checkpoint"),X.position=A,X.checkpoint=this.checkpoint,X;return this.result+=this.source.slice(this.checkpoint,A),this.checkpoint=A,this},N.prototype.escapeChar=function(){var A,X;return A=this.source.charCodeAt(this.checkpoint),X=L[A]||ue(A),this.result+=X,this.checkpoint+=1,this},N.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function V(A,X,se){var ee,te,pe,ie,de,$e,Me,u,Y,G,Q,ne,Z,ae,me,he,Fe,ye,Ie,Le,we;if(X.length===0){A.dump="''";return}if(X.indexOf("!include")==0){A.dump=""+X;return}if(X.indexOf("!$$$novalue")==0){A.dump="";return}if(K.indexOf(X)!==-1){A.dump="'"+X+"'";return}for(ee=!0,te=X.length?X.charCodeAt(0):0,pe=l===te||l===X.charCodeAt(X.length-1),(y===te||h===te||g===te||C===te)&&(ee=!1),pe?(ee=!1,ie=!1,de=!1):(ie=!0,de=!0),$e=!0,Me=new N(X),u=!1,Y=0,G=0,Q=A.indent*se,ne=80,Q<40?ne-=Q:ne=40,ae=0;ae<X.length;ae++){if(Z=X.charCodeAt(ae),ee)if(!S(Z))ee=!1;else continue;$e&&Z===x&&($e=!1),me=L[Z],he=T(Z),!(!me&&!he)&&(Z!==c&&Z!==f&&Z!==x?(ie=!1,de=!1):Z===c&&(u=!0,$e=!1,ae>0&&(Fe=X.charCodeAt(ae-1),Fe===l&&(de=!1,ie=!1)),ie&&(ye=ae-Y,Y=ae,ye>G&&(G=ye))),Z!==f&&($e=!1),Me.takeUpTo(ae),Me.escapeChar())}if(ee&&R(A,X)&&(ee=!1),Ie="",(ie||de)&&(Le=0,X.charCodeAt(X.length-1)===c&&(Le+=1,X.charCodeAt(X.length-2)===c&&(Le+=1)),Le===0?Ie="-":Le===2&&(Ie="+")),de&&G<ne&&(ie=!1),u||(de=!1),ee)A.dump=X;else if($e)A.dump="'"+X+"'";else if(ie)we=j(X,ne),A.dump=">"+Ie+`
|
|
108
|
-
`+ce(we,Q);else if(de)Ie||(X=X.replace(/\n$/,"")),A.dump="|"+Ie+`
|
|
109
|
-
`+ce(X,Q);else if(Me)Me.finish(),A.dump='"'+Me.result+'"';else throw new Error("Failed to dump scalar value")}function j(A,X){var se="",ee=0,te=A.length,pe=/\n+$/.exec(A),ie;for(pe&&(te=pe.index+1);ee<te;)ie=A.indexOf(`
|
|
110
|
-
`,ee),ie>te||ie===-1?(se&&(se+=`
|
|
111
|
-
|
|
112
|
-
`),se+=v(A.slice(ee,te),X),ee=te):(se&&(se+=`
|
|
113
|
-
|
|
114
|
-
`),se+=v(A.slice(ee,ie),X),ee=ie+1);return pe&&pe[0]!==`
|
|
115
|
-
`&&(se+=pe[0]),se}function v(A,X){if(A==="")return A;for(var se=/[^\s] [^\s]/g,ee="",te=0,pe=0,ie=se.exec(A),de,$e,Me;ie;)de=ie.index,de-pe>X&&(te!==pe?$e=te:$e=de,ee&&(ee+=`
|
|
116
|
-
`),Me=A.slice(pe,$e),ee+=Me,pe=$e+1),te=de+1,ie=se.exec(A);return ee&&(ee+=`
|
|
117
|
-
`),pe!==te&&A.length-pe>X?ee+=A.slice(pe,te)+`
|
|
118
|
-
`+A.slice(te+1):ee+=A.slice(pe),ee}function S(A){return a!==A&&c!==A&&i!==A&&w!==A&&E!==A&&O!==A&&q!==A&&F!==A&&$!==A&&_!==A&&b!==A&&p!==A&&z!==A&&P!==A&&x!==A&&f!==A&&m!==A&&d!==A&&!L[A]&&!T(A)}function T(A){return!(32<=A&&A<=126||A===133||160<=A&&A<=55295||57344<=A&&A<=65533||65536<=A&&A<=1114111)}function M(A,X,se){var ee="",te=A.tag,pe,ie;for(pe=0,ie=se.length;pe<ie;pe+=1)k(A,X,se[pe],!1,!1)&&(pe!==0&&(ee+=", "),ee+=A.dump);A.tag=te,A.dump="["+ee+"]"}function U(A,X,se,ee){var te="",pe=A.tag,ie,de;for(ie=0,de=se.length;ie<de;ie+=1)k(A,X+1,se[ie],!0,!0)&&((!ee||ie!==0)&&(te+=Ee(A,X)),te+="- "+A.dump);A.tag=pe,A.dump=te||"[]"}function J(A,X,se){var ee="",te=A.tag,pe=Object.keys(se),ie,de,$e,Me,u;for(ie=0,de=pe.length;ie<de;ie+=1)u="",ie!==0&&(u+=", "),$e=pe[ie],Me=se[$e],k(A,X,$e,!1,!1)&&(A.dump.length>1024&&(u+="? "),u+=A.dump+": ",k(A,X,Me,!1,!1)&&(u+=A.dump,ee+=u));A.tag=te,A.dump="{"+ee+"}"}function re(A,X,se,ee){var te="",pe=A.tag,ie=Object.keys(se),de,$e,Me,u,Y,G;for(de=0,$e=ie.length;de<$e;de+=1)G="",(!ee||de!==0)&&(G+=Ee(A,X)),Me=ie[de],u=se[Me],k(A,X+1,Me,!0,!0)&&(Y=A.tag!==null&&A.tag!=="?"||A.dump&&A.dump.length>1024,Y&&(A.dump&&c===A.dump.charCodeAt(0)?G+="?":G+="? "),G+=A.dump,Y&&(G+=Ee(A,X)),k(A,X+1,u,!0,Y)&&(A.dump&&c===A.dump.charCodeAt(0)?G+=":":G+=": ",G+=A.dump,te+=G));A.tag=pe,A.dump=te||"{}"}function I(A,X,se){var ee,te,pe,ie,de,$e;for(te=se?A.explicitTypes:A.implicitTypes,pe=0,ie=te.length;pe<ie;pe+=1)if(de=te[pe],(de.instanceOf||de.predicate)&&(!de.instanceOf||typeof X=="object"&&X instanceof de.instanceOf)&&(!de.predicate||de.predicate(X))){if(A.tag=se?de.tag:"?",de.represent){if($e=A.styleMap[de.tag]||de.defaultStyle,o.call(de.represent)==="[object Function]")ee=de.represent(X,$e);else if(s.call(de.represent,$e))ee=de.represent[$e](X,$e);else throw new t("!<"+de.tag+'> tag resolver accepts not "'+$e+'" style');A.dump=ee}return!0}return!1}function k(A,X,se,ee,te){A.tag=null,A.dump=se,I(A,se,!1)||I(A,se,!0);var pe=o.call(A.dump);ee&&(ee=0>A.flowLevel||A.flowLevel>X),(A.tag!==null&&A.tag!=="?"||A.indent!==2&&X>0)&&(te=!1);var ie=pe==="[object Object]"||pe==="[object Array]",de,$e;if(ie&&(de=A.duplicates.indexOf(se),$e=de!==-1),$e&&A.usedDuplicates[de])A.dump="*ref_"+de;else{if(ie&&$e&&!A.usedDuplicates[de]&&(A.usedDuplicates[de]=!0),pe==="[object Object]")ee&&Object.keys(A.dump).length!==0?(re(A,X,A.dump,te),$e&&(A.dump="&ref_"+de+(X===0?`
|
|
119
|
-
`:"")+A.dump)):(J(A,X,A.dump),$e&&(A.dump="&ref_"+de+" "+A.dump));else if(pe==="[object Array]")ee&&A.dump.length!==0?(U(A,X,A.dump,te),$e&&(A.dump="&ref_"+de+(X===0?`
|
|
120
|
-
`:"")+A.dump)):(M(A,X,A.dump),$e&&(A.dump="&ref_"+de+" "+A.dump));else if(pe==="[object String]")A.tag!=="?"&&V(A,A.dump,X);else{if(A.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+pe)}A.tag!==null&&A.tag!=="?"&&(A.dump="!<"+A.tag+"> "+A.dump)}return!0}function D(A,X){var se=[],ee=[],te,pe;for(B(A,se,ee),te=0,pe=ee.length;te<pe;te+=1)X.duplicates.push(se[ee[te]]);X.usedDuplicates=new Array(pe)}function B(A,X,se){o.call(A);var ee,te,pe;if(A!==null&&typeof A=="object")if(te=X.indexOf(A),te!==-1)se.indexOf(te)===-1&&se.push(te);else if(X.push(A),Array.isArray(A))for(te=0,pe=A.length;te<pe;te+=1)B(A[te],X,se);else for(ee=Object.keys(A),te=0,pe=ee.length;te<pe;te+=1)B(A[ee[te]],X,se)}function H(A,X){X=X||{};var se=new xe(X);return D(A,se),k(se,0,A,!0,!0)?se.dump+`
|
|
121
|
-
`:""}hn.dump=H;function oe(A,X){return H(A,e.extend({schema:n},X))}return hn.safeDump=oe,hn}var Ph={},xh;function tS(){return xh||(xh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c){if(["true","True","TRUE"].lastIndexOf(c)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(c)>=0)return!1;throw'Invalid boolean "'+c+'"'}e.parseYamlBoolean=t;function r(c){return c.lastIndexOf("0o",0)===0?parseInt(c.substring(2),8):parseInt(c)}function n(c){var i=r(c);if(isNaN(i))throw'Invalid integer "'+c+'"';return i}e.parseYamlInteger=n;function o(c){if([".nan",".NaN",".NAN"].lastIndexOf(c)>=0)return NaN;var i=/^([-+])?(?:\.inf|\.Inf|\.INF)$/,l=i.exec(c);if(l)return l[1]==="-"?-1/0:1/0;var p=parseFloat(c);if(!isNaN(p))return p;throw'Invalid float "'+c+'"'}e.parseYamlFloat=o;var s;(function(c){c[c.null=0]="null",c[c.bool=1]="bool",c[c.int=2]="int",c[c.float=3]="float",c[c.string=4]="string"})(s=e.ScalarType||(e.ScalarType={}));function a(c){if(c===void 0)return s.null;if(c.doubleQuoted||!c.plainScalar||c.singleQuoted)return s.string;var i=c.value;if(["null","Null","NULL","~",""].indexOf(i)>=0||i==null)return s.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(i)>=0)return s.bool;var l=/^[-+]?[0-9]+$/,p=/^0o[0-7]+$/,f=/^0x[0-9a-fA-F]+$/;if(l.test(i)||p.test(i)||f.test(i))return s.int;var $=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,m=/^[-+]?(\.inf|\.Inf|\.INF)$/;return $.test(i)||m.test(i)||[".nan",".NaN",".NAN"].indexOf(i)>=0?s.float:s.string}e.determineScalarType=a})(Ph)),Ph}var Sh;function rS(){return Sh||(Sh=1,(function(e){function t(o){for(var s in o)e.hasOwnProperty(s)||(e[s]=o[s])}Object.defineProperty(e,"__esModule",{value:!0});var r=Zx();e.load=r.load,e.loadAll=r.loadAll,e.safeLoad=r.safeLoad,e.safeLoadAll=r.safeLoadAll;var n=eS();e.dump=n.dump,e.safeDump=n.safeDump,e.YAMLException=fn(),t(ia()),t(tS())})(Jm)),Jm}var yn=rS();const nS=150,oS=3;function Ji(e,t){Da.enabled=t;const{start:r,end:n={line:r.line,col:r.col+1},source:o}=e,s=o.getLines(),a=r.line,c=Math.max(Math.min(n.line,s.length),r.line);let i=Math.max(c-a-oS+1,0);i<2&&(i=0);const l=[];let p=0;for(let $=a;$<=c&&!(i>0&&$>=c-i);$++){const m=s[$-1]||"";m!==""&&(p=pa(m));const _=$===a?r.col-1:p,x=$===c?n.col-1:m.length;l.push([`${$}`,f(m,_,x,Re.red)]),t||l.push(["",Ih(m,_,x)])}return i>0&&(l.push(["\u2026",`${Yi(p)}${Re.gray(`< ${i} more lines >`)}`]),l.push([`${c}`,f(s[c-1],-1,n.col-1,Re.red)]),t||l.push(["",Ih(s[c-1],-1,n.col-1)])),sS([[`${a-2}`,f(s[a-1-2])],[`${a-1}`,f(s[a-1-1])],...l,[`${c+1}`,f(s[c-1+1])],[`${c+2}`,f(s[c-1+2])]]);function f($,m=-1,_=1/0,x=Re.gray){return!t||!$?$:(m===-1&&(m=pa($)),_=Math.min(_,$.length),$.substr(0,m)+x($.substring(m,_))+$.substr(_))}}function sS(e){const t=e.filter(([o,s])=>s!==void 0),r=Math.max(...t.map(([o])=>o.length)),n=Math.min(...t.map(([o,s])=>s===""?1/0:pa(s)));return t.map(([o,s])=>Re.gray(iS(r,o)+" |")+(s?" "+aS(s.substring(n)):"")).join(`
|
|
122
|
-
`)}function aS(e,t=nS){const r=e.length-t;if(r>0){const n=Re.gray(`...<${r} chars>`);return e.substring(0,t-n.length)+n}else return e}function Ih(e,t=-1,r=1/0){return t===-1&&(t=pa(e)),r=Math.min(r,e.length),Yi(t)+"^".repeat(Math.max(r-t,1))}function Yi(e){return" ".repeat(e)}function iS(e,t){return Yi(e-t.length)+t}function pa(e){for(let t=0;t<e.length;t++)if(e[t]!==" ")return t;return e.length}function ir(e){if(e.pointer===void 0)return e;const{source:t,pointer:r,reportOnKey:n}=e,o=t.getAst(yn.safeLoad),s=Th(o,r,!!n);return{...e,pointer:void 0,...cS(t.body,s?.startPosition??1,s?.endPosition??1)}}function cS(e,t,r){let n=1,o=1,s={line:1,col:1};for(let c=0;c<r-1;c++){if(c===t-1&&(s={line:n,col:o+1}),e[c]===`
|
|
123
|
-
`){n++,o=1,c===t-1&&(s={line:n,col:o}),e[c+1]==="\r"&&c++;continue}o++}const a=t===r?{...s}:{line:n,col:o+1};return{start:s,end:a}}function Th(e,t,r){const n=ry(t.substr(2));if(e===void 0)return;let o=e;for(const s of n)if(o.kind===yn.Kind.MAP){const a=o.mappings.find(c=>c.key.value===s);if(!a||(o=a,!a?.value))break;o=a.value}else if(o.kind===yn.Kind.SEQ){const a=o.items[parseInt(s,10)];if(!a)break;o=a}if(r){const s=o.parent;return!s||s.kind===yn.Kind.SEQ?o:s.kind===yn.Kind.MAPPING?s.key:o}else return o}const lS={INVALID_SEVERITY_LEVEL:"Invalid severity level; accepted values: error or warn"},kh={warn:e=>Re.bgYellow(Re.black(e)),error:Re.bgRed},Nh={warn:Re.yellow,error:Re.red},Lr={warn:"Warning",error:"Error"},pS={error:"critical",warn:"minor"},uS=+(ac.REDOCLY_CLI_LINT_MAX_SUGGESTIONS??5);function ua(e){return e==="error"?1:2}function Oh(e){let t=0,r=0,n=0;for(const o of e){if(o.ignored){n++;continue}o.severity==="error"&&t++,o.severity==="warn"&&r++}return{errors:t,warnings:r,ignored:n}}function dS(e,t){const{maxProblems:r=100,cwd:n="",format:o="codeframe",color:s=Da.enabled,totals:a=Oh(e),version:c="2.0",command:i}=t;Da.enabled=s;const l=e.length;e=e.filter(d=>!d.ignored);const p=l-e.length;if(e=e.sort((d,P)=>ua(d.severity)-ua(P.severity)).slice(0,r),!l&&o!=="json"&&o!=="junit")return;switch(o){case"json":$();break;case"codeframe":for(let d=0;d<e.length;d++){const P=e[d];i==="bundle"?Oe.info(`${_(P,d)}
|
|
124
|
-
`):Oe.output(`${_(P,d)}
|
|
125
|
-
`)}break;case"stylish":{const d=Wi(e);for(const[P,{ruleIdPad:h,locationPad:g,fileProblems:E}]of Object.entries(d)){Oe.output(`${Re.blue(st(P)?P:Xe.relative(n,P))}:
|
|
126
|
-
`);for(let O=0;O<E.length;O++){const C=E[O];Oe.output(`${x(C,g,h)}
|
|
127
|
-
`)}Oe.output(`
|
|
128
|
-
`)}break}case"markdown":{const d=Wi(e);for(const[P,{fileProblems:h}]of Object.entries(d)){Oe.output(`## Lint: ${st(P)?P:Xe.relative(n,P)}
|
|
129
|
-
|
|
130
|
-
`),Oe.output(`| Severity | Location | Problem | Message |
|
|
131
|
-
`),Oe.output(`|---|---|---|---|
|
|
132
|
-
`);for(let g=0;g<h.length;g++){const E=h[g];Oe.output(`${b(E)}
|
|
133
|
-
`)}Oe.output(`
|
|
134
|
-
`),a.errors>0?Oe.output(`Validation failed
|
|
135
|
-
Errors: ${a.errors}
|
|
136
|
-
`):Oe.output(`Validation successful
|
|
137
|
-
`),a.warnings>0&&Oe.output(`Warnings: ${a.warnings}
|
|
138
|
-
`),Oe.output(`
|
|
139
|
-
`)}break}case"checkstyle":{const d=Wi(e);Oe.output(`<?xml version="1.0" encoding="UTF-8"?>
|
|
140
|
-
`),Oe.output(`<checkstyle version="4.3">
|
|
141
|
-
`);for(const[P,{fileProblems:h}]of Object.entries(d))Oe.output(`<file name="${Rt(st(P)?P:Xe.relative(n,P))}">
|
|
142
|
-
`),h.forEach(w),Oe.output(`</file>
|
|
143
|
-
`);Oe.output(`</checkstyle>
|
|
144
|
-
`);break}case"junit":{const d=e.filter(g=>g.severity==="error").length,P=e.filter(g=>g.severity==="warn").length,h={};for(const g of e){const E=g.location[0].source.absoluteRef;h[E]||(h[E]=[]),h[E].push(g)}Oe.output(`<?xml version="1.0" encoding="UTF-8"?>
|
|
145
|
-
`),Oe.output(`<testsuites name="redocly lint" tests="${e.length}" errors="${d}" failures="${P}" skipped="0">
|
|
146
|
-
`);for(const[g,E]of Object.entries(h)){const O=st(g)?g:Xe.relative(n,g),C=E.filter(z=>z.severity==="error").length,q=E.filter(z=>z.severity==="warn").length;Oe.output(`<testsuite name="${Rt(O)}" tests="${E.length}" errors="${C}" failures="${q}">
|
|
147
|
-
`),E.forEach(z=>y(z,O)),Oe.output(`</testsuite>
|
|
148
|
-
`)}Oe.output(`</testsuites>
|
|
149
|
-
`);break}case"codeclimate":f();break;case"summary":fS(e);break;case"github-actions":hS(e,n)}l-p>r&&Oe.info(`< ... ${l-r} more problems hidden > ${Re.gray("increase with `--max-problems N`")}
|
|
150
|
-
`);function f(){const d=e.map(P=>{const h=P.location[0],g=ir(h);return{description:P.message,location:{path:st(h.source.absoluteRef)?h.source.absoluteRef:Xe.relative(n,h.source.absoluteRef),lines:{begin:g.start.line}},severity:pS[P.severity],fingerprint:`${P.ruleId}${P.location.length>0?"-"+P.location[0].pointer:""}`}});Oe.output(JSON.stringify(d,null,2))}function $(){const d={totals:a,version:c,problems:e.map(P=>{const h={...P,location:P.location.map(g=>({...g,source:{ref:st(g.source.absoluteRef)?g.source.absoluteRef:Xe.relative(n,g.source.absoluteRef)}})),from:P.from?{...P.from,source:{ref:st(P.from?.source.absoluteRef)?P.from?.source.absoluteRef:Xe.relative(n,P.from?.source.absoluteRef||n)}}:void 0};if(ac.FORMAT_JSON_WITH_CODEFRAMES){const g=P.location[0],E=ir(g);h.codeframe=Ji(E,s)}return h})};Oe.output(JSON.stringify(d,null,2))}function m(d){const{severity:P}=d;if(!kh[P])throw new Error(lS.INVALID_SEVERITY_LEVEL);return kh[P]}function _(d,P){const h=m(d),g=d.location[0],E=st(g.source.absoluteRef)?g.source.absoluteRef:Xe.relative(n,g.source.absoluteRef),O=ir(g),C=g.pointer?Re.gray(`at ${g.pointer}`):"",q=`${E}:${O.start.line}:${O.start.col}`;return`[${P+1}] ${h(q)} ${C}
|
|
151
|
-
|
|
152
|
-
${d.message}
|
|
153
|
-
|
|
154
|
-
`+jh(d)+Ji(O,s)+`
|
|
155
|
-
|
|
156
|
-
`+mS(n,d.from)+`${Lr[d.severity]} was generated by the ${Re.blue(d.ruleId)} rule.
|
|
157
|
-
|
|
158
|
-
`+(d.reference?`Reference: ${Re.blue(d.reference)}
|
|
159
|
-
|
|
160
|
-
`:"")}function x(d,P,h){const g=Nh[d.severity];if(!Lr[d.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";const E=g(Lr[d.severity].toLowerCase().padEnd(7)),{start:O}=d.location[0];return` ${`${O.line}:${O.col}`.padEnd(P)} ${E} ${d.ruleId.padEnd(h)} ${d.message}`}function b(d){if(!Lr[d.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";const P=Lr[d.severity].toLowerCase(),{start:h}=d.location[0];return`| ${P} | line ${`${h.line}:${h.col}`} | [${d.ruleId}](https://redocly.com/docs/cli/rules/${d.ruleId}/) | ${d.message.replaceAll(`
|
|
161
|
-
`,"<br>")} |`}function w(d){const{line:P,col:h}=d.location[0].start,g=d.severity=="warn"?"warning":"error",E=Rt(d.message),O=Rt(d.ruleId);Oe.output(`<error line="${P}" column="${h}" severity="${g}" message="${E}" source="${O}" />
|
|
162
|
-
`)}function y(d,P){const h=d.location[0],{start:g}=ir(h),E=d.severity==="error"?"error":"failure",O=Rt(d.ruleId),C=Rt(d.message),q=[`Rule: ${O}`,`Severity: ${Rt(d.severity)}`,`File: ${Rt(P)}`,`Line: ${g.line}`,`Column: ${g.col}`];h.pointer&&q.push(`Pointer: ${Rt(h.pointer)}`),q.push(`Message: ${C}`),Oe.output(`<testcase classname="${O}" name="${O}" file="${Rt(P)}" line="${g.line}">
|
|
163
|
-
`),Oe.output(`<${E} message="${C}" type="${O}">${q.join(`
|
|
164
|
-
`)}</${E}>
|
|
165
|
-
`),Oe.output(`</testcase>
|
|
166
|
-
`)}}function fS(e){const t={};for(const n of e)t[n.ruleId]=t[n.ruleId]||{count:0,severity:n.severity},t[n.ruleId].count++;const r=Object.entries(t).sort(([,n],[,o])=>ua(n.severity)-ua(o.severity)||o.count-n.count);for(const[n,o]of r){const s=Nh[o.severity],a=s(Lr[o.severity].toLowerCase().padEnd(7));Oe.output(`${a} ${n}: ${o.count}
|
|
167
|
-
`)}Oe.output(`
|
|
168
|
-
`)}function mS(e,t){if(!t)return"";const r=Xe.relative(e,t.source.absoluteRef),n=ir(t),o=`${r}:${n.start.line}:${n.start.col}`,s=t.pointer?Re.gray(`at ${t.pointer}`):"";return`referenced from ${Re.blue(o)} ${s}
|
|
169
|
-
|
|
170
|
-
`}function jh(e){return e.suggest.length===0?"":e.suggest.length===1?`Did you mean: ${e.suggest[0]} ?
|
|
171
|
-
|
|
172
|
-
`:`Did you mean:
|
|
173
|
-
- ${e.suggest.slice(0,uS).join(`
|
|
174
|
-
- `)}
|
|
175
|
-
|
|
176
|
-
`}const Wi=e=>{const t={};for(const r of e){const n=r.location[0].source.absoluteRef;t[n]=t[n]||{fileProblems:[],ruleIdPad:0,locationPad:0};const o={...r,location:r.location.map(ir)};t[n].fileProblems.push(o),t[n].ruleIdPad=Math.max(r.ruleId.length,t[n].ruleIdPad),t[n].locationPad=Math.max(Math.max(...o.location.map(s=>`${s.start.line}:${s.start.col}`.length)),t[n].locationPad)}return t};function Rt(e){return e.replace(/[<>&"'\x00-\x1F\x7F\u0080-\uFFFF]/gu,t=>{switch(t){case"<":return"<";case">":return">";case"&":return"&";case'"':return""";case"'":return"'";default:return`&#${t.charCodeAt(0)};`}})}function hS(e,t){for(const a of e)for(const c of a.location.map(ir)){let i;switch(a.severity){case"error":i="error";break;case"warn":i="warning";break}const l=jh(a),p=a.reference?`Reference: ${a.reference}
|
|
177
|
-
|
|
178
|
-
`:"",f=a.message+(l!==""||p!==""?`
|
|
179
|
-
|
|
180
|
-
`:"")+l+p,$={title:a.ruleId,file:st(c.source.absoluteRef)?c.source.absoluteRef:Xe.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:_S,...yS}=Dn.properties,gS={...Dn,properties:yS};async function vS(e){const{ref:t,externalRefResolver:r=new cr(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n.parsed),Hi({document:n,...e,externalRefResolver:r})}async function bS(e){const{source:t,absoluteRef:r,externalRefResolver:n=new cr(e.config.resolve)}=e,o=ha(t,r||"/");return Hi({document:o,...e,externalRefResolver:n})}async function Hi(e){const{document:t,customTypes:r,externalRefResolver:n,config:o}=e;if(ny(t.source.absoluteRef)){const{lintGraphqlDocument:m}=await import("./redocly-openapi-docs.min.lint-graphql-CAO-eUMC.js");return m({document:t,config:o})}const s=$n(t.parsed),a=o.getRulesForSpecVersion(oy(s)),c=fa(o.extendTypes(r??bn(s),s),o),i={problems:[],specVersion:s,config:o,visitorsData:{}},l=ic(a,o,"preprocessors",s),p=ic(a,o,"rules",s);let f=await Pn({rootDocument:t,rootType:c.Root,externalRefResolver:n});l.length>0&&(En({document:t,rootType:c.Root,normalizedVisitors:Fr(l,c),resolvedRefMap:f,ctx:i}),f=await Pn({rootDocument:t,rootType:c.Root,externalRefResolver:n}));const $=Fr(p,c);return En({document:t,rootType:c.Root,normalizedVisitors:$,resolvedRefMap:f,ctx:i}),i.problems.map(m=>o.addProblemToIgnore(m))}async function wS(e){const{severity:t,externalRefResolver:r=new cr,config:n}=e;if(!n.document)throw new Error("Config document is not set.");const o={problems:[],specVersion:"config",config:n,visitorsData:{}},s=fa(e.externalConfigTypes||Aa(gS,n)),a=[{severity:t||"error",ruleId:"configuration struct",visitor:Bt()},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:Zt()}],c=Fr(a,s),i=n.resolvedRefMap||await Pn({rootDocument:n.document,rootType:s.ConfigRoot,externalRefResolver:r});return En({document:n.document,rootType:s.ConfigRoot,normalizedVisitors:c,resolvedRefMap:i,ctx:o}),o.problems}export{rr as A,ly as B,Lv as C,Tx as D,Rt as E,Ca as F,ge as G,qu as H,Mu as I,Q$ as J,Vu as K,Be as L,be as M,xt as N,W as O,gt as P,ve as Q,W$ as R,Bt as S,H$ as T,Xo as U,Ka as V,Bu as W,tu as a,px as b,Cx as c,hx as d,yx as e,Px as f,Qp as g,Aa as h,jx as i,dS as j,Th as k,Hi as l,Ji as m,ir as n,Ex as o,Oh as p,ya as q,ga as r,vS as s,Ye as t,qv as u,wS as v,bS as w,Ox as x,Gm as y,Oe as z};
|