@redocly/replay 0.28.0-next.2 → 0.28.0-next.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/{replay-AiChatProvider-D3tGLym7.js → replay-AiChatProvider-BIplPHOS.js} +6 -6
  2. package/dist/{replay-AiChatProvider-DLZX3ihL.js → replay-AiChatProvider-TF1u9E5L.js} +1 -1
  3. package/dist/{replay-AiChatSqliteDBStorage-ckjqpV-2.js → replay-AiChatSqliteDBStorage-Bay95FHW.js} +1 -1
  4. package/dist/{replay-AiChatSqliteDBStorage-yawoZunX.js → replay-AiChatSqliteDBStorage-C-rkQ3jG.js} +1 -1
  5. package/dist/{replay-AiPanel-CtMW4jHp.js → replay-AiPanel-DU5aVA3q.js} +4 -4
  6. package/dist/{replay-AiPanel-C2dOENPe.js → replay-AiPanel-DzGN1t86.js} +1 -1
  7. package/dist/{replay-FileWatcher-sxKCrDRy.js → replay-FileWatcher-XMkIoDEA.js} +1 -1
  8. package/dist/{replay-FileWatcher-Da7VcNHD.js → replay-FileWatcher-iYbHpwCv.js} +2 -2
  9. package/dist/{replay-SemanticSearchService-d98JHVBr.js → replay-SemanticSearchService-BWwCFW3F.js} +1 -1
  10. package/dist/{replay-SemanticSearchService-Z4oXtg1-.js → replay-SemanticSearchService-Dk4UTm2r.js} +1 -1
  11. package/dist/{replay-SqliteDBStorage-u6WbcK1f.js → replay-SqliteDBStorage-BFdjYsG7.js} +1 -1
  12. package/dist/{replay-SqliteDBStorage-3VBWw1et.js → replay-SqliteDBStorage-DGQjzDy4.js} +1 -1
  13. package/dist/{replay-TauriFileSystemAdapter-CjAHiJt1.js → replay-TauriFileSystemAdapter-C8k9RvT1.js} +1 -1
  14. package/dist/{replay-TauriFileSystemAdapter-ICQ2nRWO.js → replay-TauriFileSystemAdapter-CLzYSck7.js} +1 -1
  15. package/dist/{replay-TauriRootStorage-hW8Tndk0.js → replay-TauriRootStorage-C1MIH5ji.js} +2 -2
  16. package/dist/{replay-TauriRootStorage-CQj8br8Q.js → replay-TauriRootStorage-CiGY8MO6.js} +1 -1
  17. package/dist/{replay-agent-loop-B-IEIGri.js → replay-agent-loop-BoEw65rR.js} +3 -3
  18. package/dist/{replay-agent-loop-B06Jshb3.js → replay-agent-loop-Cm1iS9G2.js} +1 -1
  19. package/dist/{replay-ai-chat-mappers-B5sjJdrE.js → replay-ai-chat-mappers-Csm9vJrG.js} +1 -1
  20. package/dist/{replay-ai-chat-mappers-UGovEa4H.js → replay-ai-chat-mappers-IZNFNXug.js} +1 -1
  21. package/dist/{replay-create-model-lRYWX-0l.js → replay-create-model-BqvD-0wF.js} +3 -3
  22. package/dist/{replay-create-model-B-KPLEJi.js → replay-create-model-Y9UJSztb.js} +3 -3
  23. package/dist/{replay-db-00pWKHyY.js → replay-db-BImXgUGU.js} +1 -1
  24. package/dist/{replay-db-B_wOpXdd.js → replay-db-C7FD3opa.js} +1 -1
  25. package/dist/{replay-external-resolver-D-h0nPH_.js → replay-external-resolver-Bj3sLTnz.js} +2 -2
  26. package/dist/{replay-external-resolver-Ds5-nzcf.js → replay-external-resolver-CjM7Da6t.js} +1 -1
  27. package/dist/{replay-index-C-A7VOiR.js → replay-index-BH8cTSEK.js} +21 -21
  28. package/dist/{replay-index-C8p-US63.js → replay-index-BuYoH96w.js} +11 -11
  29. package/dist/{replay-index-9rbZ-mEz.js → replay-index-CKRKzXMt.js} +1 -1
  30. package/dist/replay-index-Cp06WK82.js +574 -0
  31. package/dist/{replay-index-DenMrfEa.js → replay-index-DJwfdo0s.js} +1 -1
  32. package/dist/{replay-index-lxN84rl9.js → replay-index-DlTloE6S.js} +1 -1
  33. package/dist/replay-index-Dxk-kqkZ.js +1 -0
  34. package/dist/{replay-index-CtSJHuow.js → replay-index-xheWgsnj.js} +2 -2
  35. package/dist/{replay-lint-To3OwiOO.js → replay-lint--iBW-6Vj.js} +9461 -13309
  36. package/dist/replay-lint-BIbkYU09.js +177 -0
  37. package/dist/{replay-lint-graphql-Bm1aR8BO.js → replay-lint-graphql-2b4GIER6.js} +1 -1
  38. package/dist/{replay-lint-graphql-k2xF1Dxd.js → replay-lint-graphql-EXBI8I89.js} +1 -1
  39. package/dist/{replay-resolve-Id-g4Fn5.js → replay-resolve-B5yIfyuT.js} +16 -16
  40. package/dist/{replay-resolve-uDAWE6Oj.js → replay-resolve-D9BUvjqv.js} +357 -355
  41. package/dist/{replay-respect-run-BkDXTsm6.js → replay-respect-run-Bx46aUHi.js} +3 -3
  42. package/dist/{replay-respect-run-B0ZG-ZH7.js → replay-respect-run-DNFoFnJU.js} +1 -1
  43. package/dist/{replay-tauri-path-BfRUQXOx.js → replay-tauri-path-BVoW6En0.js} +2 -2
  44. package/dist/{replay-tauri-path-GCN1liZ4.js → replay-tauri-path-C8GiFO5s.js} +1 -1
  45. package/dist/{replay-useAiChatQueries-CeHqt0jZ.js → replay-useAiChatQueries-BDgjmzz-.js} +1 -1
  46. package/dist/{replay-useAiChatQueries-cuGEM1L6.js → replay-useAiChatQueries-BTuu2xLG.js} +4 -4
  47. package/dist/{replay-validate-key-BismpJXJ.js → replay-validate-key-CjcIElmE.js} +2 -2
  48. package/dist/{replay-validate-key-DYqoWPkp.js → replay-validate-key-D4M7QvCw.js} +1 -1
  49. package/dist/replay.cjs +1 -1
  50. package/dist/replay.js +1 -1
  51. package/package.json +4 -4
  52. package/dist/replay-index-BCtyyb1v.js +0 -504
  53. package/dist/replay-index-DCvqReXK.js +0 -1
  54. package/dist/replay-lint-BJ5AeIt-.js +0 -184
@@ -0,0 +1,177 @@
1
+ "use strict";const ee=require("./replay-index-BuYoH96w.js"),N=require("./replay-resolve-B5yIfyuT.js");var kt=typeof document<"u"?document.currentScript:null;function Qr(e,t){let r,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&Qr(e[n],t[n]););return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&++n&&!Object.prototype.hasOwnProperty.call(t,r)||!(r in t)||!Qr(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function Or(e){return ee.isPlainObject(e)&&Object.keys(e).length===0}function Wr(e){return Array.isArray(e)&&e.length>0}function et(e){return typeof e=="string"}function Xs(e){return e?Object.keys(e):[]}function Dm(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.')}var Li={exports:{}},qm=Li.exports,Ka;function Cm(){return Ka||(Ka=1,(function(e,t){(function(r,n){typeof Dm=="function"?e.exports=n():r.pluralize=n()})(qm,function(){var r=[],n=[],i={},o={},s={};function a(b){return typeof b=="string"?new RegExp("^"+b+"$","i"):b}function c(b,E){return b===E?E:b===b.toLowerCase()?E.toLowerCase():b===b.toUpperCase()?E.toUpperCase():b[0]===b[0].toUpperCase()?E.charAt(0).toUpperCase()+E.substr(1).toLowerCase():E.toLowerCase()}function l(b,E){return b.replace(/\$(\d{1,2})/g,function(P,I){return E[I]||""})}function u(b,E){return b.replace(E[0],function(P,I){var v=l(E[1],arguments);return c(P===""?b[I-1]:P,v)})}function m(b,E,P){if(!b.length||i.hasOwnProperty(b))return E;for(var I=P.length;I--;){var v=P[I];if(v[0].test(E))return u(E,v)}return E}function y(b,E,P){return function(I){var v=I.toLowerCase();return E.hasOwnProperty(v)?c(I,v):b.hasOwnProperty(v)?c(I,b[v]):m(v,I,P)}}function h(b,E,P,I){return function(v){var x=v.toLowerCase();return E.hasOwnProperty(x)?!0:b.hasOwnProperty(x)?!1:m(x,x,P)===x}}function w(b,E,P){var I=E===1?w.singular(b):w.plural(b);return(P?E+" ":"")+I}return w.plural=y(s,o,r),w.isPlural=h(s,o,r),w.singular=y(o,s,n),w.isSingular=h(o,s,n),w.addPluralRule=function(b,E){r.push([a(b),E])},w.addSingularRule=function(b,E){n.push([a(b),E])},w.addUncountableRule=function(b){if(typeof b=="string"){i[b.toLowerCase()]=!0;return}w.addPluralRule(b,"$0"),w.addSingularRule(b,"$0")},w.addIrregularRule=function(b,E){E=E.toLowerCase(),b=b.toLowerCase(),s[b]=E,o[E]=b},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(b){return w.addIrregularRule(b[0],b[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(b){return w.addPluralRule(b[0],b[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(b){return w.addSingularRule(b[0],b[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(w.addUncountableRule),w})})(Li)),Li.exports}var jm=Cm();const du=ee.getDefaultExportFromCjs(jm);function Mm(e,t,r){return e.split(" ").map(n=>du(n,t,r)).join(" ")}function fu(e){return/^\\\\\?\\/.test(e)?e:e.replace(/\\/g,"/")}function Gr(e){const t=e.match(/^\/(.*)\/(.*)|(.*)/);return t&&new RegExp(t[1]||t[3],t[2])}const Lm=/^[0-9][0-9Xx]{2}$/,Um={properties:{swagger:{type:"string"},info:"Info",host:{type:"string"},basePath:{type:"string"},schemes:{type:"array",items:{type:"string"}},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},paths:"Paths",definitions:"NamedSchemas",parameters:"NamedParameters",responses:"NamedResponses",securityDefinitions:"NamedSecuritySchemes",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs","x-servers":"XServerList","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["swagger","paths","info"],extensionsPrefix:"x-"},Fm={properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",version:{type:"string"},"x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},Bm={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}}},zm={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},Vm={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},Km={extensionsPrefix:"x-",properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},Hm={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},Gm={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},parameters:"ParameterList",responses:"Responses",schemes:{type:"array",items:{type:"string"}},deprecated:{type:"boolean"},security:"SecurityRequirementList","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-"},Ym={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},Qm={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},Wm={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},Jm={properties:{name:{type:"string"},in:{type:"string",enum:["query","header","path","formData","body"]},description:{type:"string"},required:{type:"boolean"},schema:"Schema",type:{type:"string",enum:["string","number","integer","boolean","array","file"]},format:{type:"string"},allowEmptyValue:{type:"boolean"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"},"x-example":{},"x-examples":"ExamplesMap"},required(e){return!e||!e.in?["name","in"]:e.in==="body"?["name","in","schema"]:e.type==="array"?["name","in","type","items"]:["name","in","type"]},extensionsPrefix:"x-"},Xm={properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(e){return e&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},Zm={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>Lm.test(t)?"Response":void 0},eh={properties:{description:{type:"string"},schema:"Schema",headers:N.mapOf("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},th={properties:{},additionalProperties:{isExample:!0}},rh={properties:{description:{type:"string"},type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(e){return ee.isPlainObject(e)&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},nh={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},ih={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},oh={properties:{format:{type:"string"},title:{type:"string"},description:{type:"string"},default:null,multipleOf:{type:"number"},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"number"},minLength:{type:"number"},pattern:{type:"string"},maxItems:{type:"number"},minItems:{type:"number"},uniqueItems:{type:"boolean"},maxProperties:{type:"number"},minProperties:{type:"number"},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{type:"string",enum:["object","array","string","number","integer","boolean","null"]},items:e=>Array.isArray(e)?N.listOf("Schema"):"Schema",allOf:N.listOf("Schema"),properties:"SchemaProperties",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",discriminator:{type:"string"},readOnly:{type:"boolean"},xml:"Xml",externalDocs:"ExternalDocs",example:{isExample:!0},"x-tags":{type:"array",items:{type:"string"}},"x-nullable":{type:"boolean"},"x-extendedDiscriminator":{type:"string"},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"},"x-enumDescriptions":"EnumDescriptions"},extensionsPrefix:"x-"},sh={properties:{},additionalProperties:{type:"string"}},ah={properties:{},additionalProperties:"Schema"},ch={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},ph={extensionsPrefix:"x-",properties:{},additionalProperties:{type:"string"}},lh={properties:{type:{enum:["basic","apiKey","oauth2"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header"]},flow:{enum:["implicit","password","application","accessCode"]},authorizationUrl:{type:"string"},tokenUrl:{type:"string"},scopes:"Scopes","x-defaultClientId":{type:"string"}},required(e){switch(e?.type){case"apiKey":return["type","name","in"];case"oauth2":switch(e?.flow){case"implicit":return["type","flow","authorizationUrl","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","scopes"];case"application":case"password":return["type","flow","tokenUrl","scopes"];default:return["type","flow","scopes"]}default:return["type"]}},allowed(e){switch(e?.type){case"basic":return["type","description"];case"apiKey":return["type","name","in","description"];case"oauth2":switch(e?.flow){case"implicit":return["type","flow","authorizationUrl","description","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","description","scopes"];case"application":case"password":return["type","flow","tokenUrl","description","scopes"];default:return["type","flow","tokenUrl","authorizationUrl","description","scopes"]}default:return["type","description"]}},extensionsPrefix:"x-"},uh={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},dh={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},mu={Root:Um,Tag:nh,TagList:N.listOf("Tag"),TagGroups:N.listOf("TagGroup"),TagGroup:ih,ExternalDocs:Wm,Example:dh,ExamplesMap:N.mapOf("Example"),EnumDescriptions:sh,SecurityRequirement:uh,SecurityRequirementList:N.listOf("SecurityRequirement"),Info:Fm,Contact:zm,License:Vm,Logo:Bm,Paths:Km,PathItem:Hm,Parameter:Jm,ParameterItems:Xm,ParameterList:N.listOf("Parameter"),Operation:Gm,Examples:th,Header:rh,Responses:Zm,Response:eh,Schema:oh,Xml:ch,SchemaProperties:ah,NamedSchemas:N.mapOf("Schema"),NamedResponses:N.mapOf("Response"),NamedParameters:N.mapOf("Parameter"),NamedSecuritySchemes:N.mapOf("SecurityScheme"),SecurityScheme:lh,Scopes:ph,XCodeSample:Ym,XCodeSampleList:N.listOf("XCodeSample"),XServerList:N.listOf("XServer"),XServer:Qm},fh=/^[0-9][0-9Xx]{2}$/,mh={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",components:"Components","x-webhooks":"WebhooksMap","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["openapi","paths","info"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/openapi#openapi",description:"REQUIRED. This string MUST be the semantic version number of the OpenAPI Specification version that the OpenAPI document uses. The openapi field SHOULD be used by tooling specifications and clients to interpret the OpenAPI document. This is not related to the API info.version string."},hh={properties:{name:{type:"string",description:"REQUIRED. The name of the tag."},description:{type:"string",description:"A description for the tag."},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-",description:"The Tag Object represents a tag used by the OAS. It is not mandatory to have a tag object per tag used by the OAS but each tag object can contain additional metadata."},yh={properties:{name:{type:"string",description:"The display name for the tag, used in the navigation bar and as a section heading."},tags:{type:"array",description:"List of tags to include in this group.",items:{type:"string"}}},extensionsPrefix:"x-",description:"The x-tagGroups extension is used at the top level of an OpenAPI description.",documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-tag-groups#taggroup-object"},gh={properties:{description:{type:"string",description:"A description of the target documentation. Used as the link anchor text in Redocly. If not provided, the url is used as the link anchor text."},url:{type:"string",description:"REQUIRED. The URL for the target documentation."}},required:["url"],extensionsPrefix:"x-",description:"Additional external documentation for this operation.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/external-docs"},vh={properties:{url:{type:"string",description:"REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the OpenAPI document is being served. Variable substitutions are made when a variable is named in { curly braces }."},description:{type:"string",description:"An optional string describing the host designated by the URL."},variables:"ServerVariablesMap"},required:["url"],extensionsPrefix:"x-",description:"A server object to be used by the target operation."},bh={properties:{enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty. If defined, the array MUST contain the default value."},default:{type:"string",description:"REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. Note this behavior is different than the Schema Object's treatment of default values, because in those cases parameter values are optional. If the enum is defined, the value MUST exist in the enum's values."},description:{type:"string",description:"An optional description for the server variable."}},required:["default"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/server-variables#server-variables",description:"Server variables are used when you need to make a substitution into the server URL such as when the subdomain is unique per tenant."},wh={properties:{},additionalProperties:{type:"array",items:{type:"string"}},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/security#security-requirement-object",description:"A declaration of which security mechanisms can be used across the API. The list of values includes alternative security requirement objects that can be used. Only one of the security requirement objects need to be satisfied to authorize a request. Individual operations can override this definition. To make security optional, an empty security requirement ({}) can be included in the array."},Sh={properties:{title:{type:"string",description:"REQUIRED. The title of the API."},version:{type:"string",description:"REQUIRED. The version of the OpenAPI document (which is distinct from the OpenAPI Specification version or the API implementation version)."},description:{type:"string",description:"RECOMMENDED. A description of the API (Markdown may be used)."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API."},contact:"Contact",license:"License","x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-",description:"REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/info#info"},Eh={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}},documentationLink:"https://redocly.com/docs-legacy/api-reference-docs/specification-extensions/x-logo#x-logo",description:"A commonly used specification extension containing the information about the API logo."},xh={properties:{name:{type:"string",description:"The identifying name of the contact person or organization."},url:{type:"string",description:"The URL pointing to the contact information."},email:{type:"string",description:"The email address of the contact person or organization."}},extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/contact",description:"The contact information for the exposed API."},Th={properties:{name:{type:"string",description:"REQUIRED. The license name used for the API."},url:{type:"string",description:"The URL pointing to the contact information."}},required:["name"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/license#license",description:"The license information for the exposed API."},Ph={extensionsPrefix:"x-",properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0,description:"The Paths Object is a map of a paths to the path item object. A path starts with a /.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/paths#paths-object"},Oh={properties:{},additionalProperties:()=>"PathItem",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/webhooks#types"},Ih={properties:{$ref:{type:"string",description:"Allows for a referenced definition of this path item. The referenced structure MUST be in the form of a Path Item Object. In case a Path Item Object field appears both in the defined object and the referenced object, the behavior is undefined. See the rules for resolving Relative References.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/reference"},servers:"ServerList",parameters:"ParameterList",summary:{type:"string",description:"An optional, string summary, intended to apply to all operations in this path."},description:{type:"string",description:"An optional, string description, intended to apply to all operations in this path."},get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation",trace:"Operation","x-query":"Operation"},extensionsPrefix:"x-",description:"Describes the operations available on a single path. A Path Item MAY be empty, due to ACL constraints. The path itself is still exposed to the documentation viewer but they will not know which operations and parameters are available.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/path-item#path-item-object"},_h={properties:{name:{type:"string",description:"REQUIRED. The name of the parameter. Parameter names are case sensitive."},in:{enum:["query","header","path","cookie"],description:'REQUIRED. The location of the parameter. Possible values are "query", "header", "path", or "cookie".'},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use."},required:{type:"boolean",description:'Determines whether this parameter is mandatory. If the parameter location is "path", this property is REQUIRED and its value MUST be true. Otherwise, the property MAY be included and its default value is false.'},deprecated:{type:"boolean",description:"Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false."},allowEmptyValue:{type:"boolean",description:"Sets the ability to pass empty-valued parameters. This is valid only for query parameters and allows sending a parameter with an empty value. Default value is false. If style is used, and if behavior is n/a (cannot be serialized), the value of allowEmptyValue SHALL be ignored. Use of this property is NOT RECOMMENDED, as it is likely to be removed in a later revision."},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"],description:"Describes how the parameter value will be serialized depending on the type of the parameter value. Default values (based on value of in): for query - form; for path - simple; for header - simple; for cookie - form."},explode:{type:"boolean",description:"When this is true, parameter values of type array or object generate separate parameters for each value of the array or key-value pair of the map. For other types of parameters this property has no effect. When style is form, the default value is true. For all other styles, the default value is false."},allowReserved:{type:"boolean",description:"Determines whether the parameter value SHOULD allow reserved characters, as defined by RFC3986 :/?#[]@!$&'()*+,;= to be included without percent-encoding. This property only applies to parameters with an in value of query. The default value is false."},schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",content:"MediaTypesMap"},required:["name","in"],requiredOneOf:["schema","content"],extensionsPrefix:"x-",description:"Describes a request parameter, which excludes the request body. A unique parameter is defined by a unique combination of the name and in values.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/parameter"},Ah={properties:{tags:{type:"array",items:{type:"string"},description:"A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier."},summary:{type:"string",description:"A short summary of what the operation does.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#summary"},description:{type:"string",description:"A verbose explanation of the operation behavior.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#description"},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#operationid"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-",description:"The Operation Object describes a single API operation on a path, including its parameters, responses, and request body (if applicable). Each path can support more than one operation, but those operations must be unique. A unique operation is a combination of a path and an HTTP method, so two GET or two POST methods for the same path are not allowed.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation"},Rh={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}},documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-code-samples",description:"Code samples are snippets of code shown alongside API operations in reference documentation, giving users a quick way to start to interact with an API from their own code. The x-codeSamples addition to OpenAPI allows you to add or override any existing code samples for a particular language or endpoint."},$h={properties:{description:{type:"string",description:"A brief description of the request body. This could contain examples of use."},required:{type:"boolean",description:"Determines if the request body is required in the request. Defaults to false."},content:"MediaTypesMap"},required:["content"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/request-body",description:"The request body is defined inside of operations (including paths and webhooks). The request body can also be defined inside of the named requestBodies object in components."},Nh={properties:{},additionalProperties:"MediaType",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type#types"},kh={properties:{schema:"Schema",example:{isExample:!0,description:"Example of the media type. The example object SHOULD be in the correct format as specified by the media type. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains an example, the example value SHALL override the example provided by the schema."},examples:"ExamplesMap",encoding:"EncodingMap"},extensionsPrefix:"x-",description:"The Media Type Object is one of the important building blocks of OpenAPI.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type"},Dh={properties:{value:{resolvable:!1,description:"Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON or YAML, use a string value to contain the example, escaping where necessary."},summary:{type:"string"},description:{type:"string",description:"Long description for the example."},externalValue:{type:"string",description:"A URL that points to the literal example. This provides the capability to reference examples that cannot easily be included in JSON or YAML documents. The value field and externalValue field are mutually exclusive."}},extensionsPrefix:"x-",description:"Example of the media type. The example object SHOULD be in the correct format as specified by the media type. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains an example, the example value SHALL override the example provided by the schema.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/example"},qh={properties:{contentType:{type:"string",description:"The Content-Type for encoding a specific property. Default value depends on the property type: for string with format being binary – application/octet-stream; for other primitive types – text/plain; for object - application/json; for array – the default is defined based on the inner type. The value can be a specific media type (e.g. application/json), a wildcard media type (e.g. image/*), or a comma-separated list of the two types."},headers:"HeadersMap",style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"],description:"Describes how a specific property value will be serialized depending on its type. See Parameter Object for details on the style property. The behavior follows the same values as query parameters, including default values. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded."},explode:{type:"boolean",description:"When this is true, property values of type array or object generate separate parameters for each value of the array, or key-value-pair of the map. For other types of properties this property has no effect. When style is form, the default value is true. For all other styles, the default value is false. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded."},allowReserved:{type:"boolean",description:"Determines whether the parameter value SHOULD allow reserved characters, as defined by [RFC3986] Section 2.2 :/?#[]@!$&'()*+,;= to be included without percent-encoding. The default value is false. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded."}},extensionsPrefix:"x-",description:"A single encoding definition applied to a single schema property.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/encoding#types"},Ch={properties:{},additionalProperties:{type:"string"},description:'The enum (short for "enumeration") fields in OpenAPI allow you to restrict the value of a field to a list of allowed values. These values need to be short and machine-readable, but that can make them harder for humans to parse and work with.',documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-enum-descriptions"},jh={properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation."},required:{type:"boolean",description:"Determines whether this parameter is mandatory. Its default value is false."},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean",description:"Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false."},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0,description:"Example of the header's potential value. The example SHOULD match the specified schema and encoding properties if present. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema that contains an example, the example value SHALL override the example provided by the schema. To represent examples of media types that cannot naturally be represented in JSON or YAML, a string value can contain the example with escaping where necessary."},examples:"ExamplesMap",content:"MediaTypesMap"},requiredOneOf:["schema","content"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/header#header-object",description:"The header object is used to describe a response header in the headers map."},Mh={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>fh.test(t)?"Response":void 0,description:"The list of possible responses as they are returned from executing this operation.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/named-responses"},Lh={properties:{description:{type:"string"},headers:"HeadersMap",content:"MediaTypesMap",links:"LinksMap","x-summary":{type:"string",documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-summary#openapi-extension-x-summary",description:"Use x-summary to add a short custom text to describe the response in the API documentation."}},required:["description"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/response",description:"The response object describes a single response in the Responses Map."},Uh={properties:{operationRef:{type:"string",description:"A relative or absolute reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI definition."},operationId:{type:"string",description:"The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually exclusive of the operationRef field."},parameters:null,requestBody:null,description:{type:"string",description:"A description of the link."},server:"Server"},extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/links",description:"The Link object represents a possible design-time link for a response. The presence of a link does not guarantee the caller’s ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations."},Fh={properties:{externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string",description:"Value MUST be a string. Multiple types via an array are not supported."},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string",description:"(This string SHOULD be a valid regular expression, according to the Ecma-262 Edition 5.1 regular expression dialect)"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{enum:["object","array","string","number","integer","boolean"],description:"Value MUST be a string. Multiple types via an array are not supported."},allOf:N.listOf("Schema",{description:"Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema."}),anyOf:N.listOf("Schema",{description:"Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema."}),oneOf:N.listOf("Schema",{description:"Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema."}),not:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?N.listOf("Schema"):"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string",description:"CommonMark syntax MAY be used for rich text representation."},format:{type:"string",description:"See Data Type Formats for further details. While relying on JSON Schema's defined formats, the OAS offers a few additional predefined formats."},default:null,nullable:{type:"boolean"},readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",example:{isExample:!0},deprecated:{type:"boolean"},"x-tags":{type:"array",items:{type:"string"}},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"}},extensionsPrefix:"x-",description:"The schema defining the content of the request, response, or parameter.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/schemas"},Bh={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-",description:"This MAY be used only on properties schemas. It has no effect on root schemas. Adds additional metadata to describe the XML representation of this property."},zh={properties:{},additionalProperties:"Schema"},Vh={properties:{},additionalProperties:e=>typeof e=="string"&&N.isMappingRef(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#types"},Kh={properties:{propertyName:{type:"string",description:"REQUIRED. The name of the property in the payload that will hold the discriminator value."},mapping:"DiscriminatorMapping"},required:["propertyName"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#discriminator-object",description:"When request bodies or response payloads may be one of a number of different schemas, a discriminator object can be used to aid in serialization, deserialization, and validation. The discriminator is a specific object in a schema which is used to inform the consumer of the document of an alternative schema based on the value associated with it."},Hh={properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks"},extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/components#components"},Gh={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Implicit flow."},Yh={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-",description:"Object Configuration for the OAuth Resource Owner Password flow."},Qh={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0."},Wh={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"},"x-usePkce":e=>typeof e=="boolean"?{type:"boolean"}:"XUsePkce"},required:["authorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0."},Jh={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-",description:"Configuration details for a supported OAuth Flow."},Xh={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect"],description:'REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "oauth2", "openIdConnect".'},description:{type:"string",description:"A short description for security scheme."},name:{type:"string",description:"REQUIRED. The name of the header, query or cookie parameter to be used."},in:{type:"string",enum:["query","header","cookie"],description:'REQUIRED. The location of the API key. Valid values are "query", "header" or "cookie".'},scheme:{type:"string",description:"A short description for security scheme."},bearerFormat:{type:"string",description:"A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes."},flows:"OAuth2Flows",openIdConnectUrl:{type:"string",description:"REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of a URL."},"x-defaultClientId":{type:"string"}},required(e){switch(e?.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e?.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-"},Zh={properties:{disableManualConfiguration:{type:"boolean"},hideClientSecretInput:{type:"boolean"}},description:"The x-usePkce allows you to enable Proof Key for Code Exchange (PKCE) for the Oauth2 or OpenID Connect authorization code flow in the Replay.",documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-use-pkce#openapi-extension-x-usepkce"},xt={Root:mh,Tag:hh,TagList:N.listOf("Tag",{documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/tags",description:"A list of tags used by the document with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared. The tags that are not declared MAY be organized randomly or based on the tools' logic. Each tag name in the list MUST be unique."}),TagGroups:N.listOf("TagGroup"),TagGroup:yh,ExternalDocs:gh,Server:vh,ServerList:N.listOf("Server",{description:"A list of servers available to the API.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/servers#servers"}),ServerVariable:bh,ServerVariablesMap:N.mapOf("ServerVariable",{description:"A map between a variable name and its value. The value is used for substitution in the server's URL template."}),SecurityRequirement:wh,SecurityRequirementList:N.listOf("SecurityRequirement"),Info:Sh,Contact:xh,License:Th,Paths:Ph,PathItem:Ih,Parameter:_h,ParameterList:N.listOf("Parameter",{description:"A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item, the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined at the OpenAPI Object’s components/parameters."}),Operation:Ah,Callback:N.mapOf("PathItem",{extensionsPrefix:"x-",description:"https://redocly.com/learn/openapi/openapi-visual-reference/callbacks#callback-object"}),CallbacksMap:N.mapOf("Callback"),RequestBody:$h,MediaTypesMap:Nh,MediaType:kh,Example:Dh,ExamplesMap:N.mapOf("Example"),Encoding:qh,EncodingMap:N.mapOf("Encoding"),EnumDescriptions:Ch,Header:jh,HeadersMap:N.mapOf("Header"),Responses:Mh,Response:Lh,Link:Uh,Logo:Eh,Schema:Fh,Xml:Bh,SchemaProperties:zh,DiscriminatorMapping:Vh,Discriminator:Kh,Components:Hh,LinksMap:N.mapOf("Link"),NamedSchemas:N.mapOf("Schema"),NamedResponses:N.mapOf("Response"),NamedParameters:N.mapOf("Parameter"),NamedExamples:N.mapOf("Example"),NamedRequestBodies:N.mapOf("RequestBody"),NamedHeaders:N.mapOf("Header"),NamedSecuritySchemes:N.mapOf("SecurityScheme"),NamedLinks:N.mapOf("Link"),NamedCallbacks:N.mapOf("Callback"),ImplicitFlow:Gh,PasswordFlow:Yh,ClientCredentials:Qh,AuthorizationCode:Wh,OAuth2Flows:Jh,SecurityScheme:Xh,XCodeSample:Rh,XCodeSampleList:N.listOf("XCodeSample"),XUsePkce:Zh,WebhooksMap:Oh},ey={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",webhooks:"WebhooksMap",components:"Components",jsonSchemaDialect:{type:"string",description:"The default value for the $schema keyword within Schema Objects contained within this OAS document. This MUST be in the form of a URI."}},required:["openapi","info"],requiredOneOf:["paths","components","webhooks"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/openapi#openapi",description:"REQUIRED. This string MUST be the semantic version number of the OpenAPI Specification version that the OpenAPI document uses. The openapi field SHOULD be used by tooling specifications and clients to interpret the OpenAPI document. This is not related to the API info.version string."},ty={...xt.License,properties:{...xt.License.properties,identifier:{type:"string",description:"An [SPDX-Licenses] expression for the API. The identifier field is mutually exclusive of the url field."}}},ry={...xt.Info,properties:{...xt.Info.properties,summary:{type:"string",description:"A short summary of the API. This field MAY be used by tooling as required."}}},ny={...xt.Components,properties:{...xt.Components.properties,pathItems:"NamedPathItems"}},iy={properties:{tags:{type:"array",items:{type:"string"},description:"A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier."},summary:{type:"string",description:"A short summary of what the operation does.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#summary"},description:{type:"string",description:"A verbose explanation of the operation behavior.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#description"},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#operationid"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},extensionsPrefix:"x-",description:"The Operation Object describes a single API operation on a path, including its parameters, responses, and request body (if applicable). Each path can support more than one operation, but those operations must be unique. A unique operation is a combination of a path and an HTTP method, so two GET or two POST methods for the same path are not allowed."},oy={properties:{$id:{type:"string"},$anchor:{type:"string"},id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",$defs:"NamedSchemas",$vocabulary:{type:"string"},externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:e=>Array.isArray(e)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:N.listOf("Schema"),anyOf:N.listOf("Schema"),oneOf:N.listOf("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:N.mapOf("Schema"),dependentRequired:"DependentRequired",prefixItems:N.listOf("Schema"),contains:"Schema",minContains:{type:"integer",minimum:0},maxContains:{type:"integer",minimum:0},patternProperties:"PatternProperties",propertyNames:"Schema",unevaluatedItems:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",unevaluatedProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",summary:{type:"string"},properties:"SchemaProperties",items:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:"Schema",default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},"x-tags":{type:"array",items:{type:"string"}},$dynamicAnchor:{type:"string"},$dynamicRef:{type:"string"}},extensionsPrefix:"x-"},Ha={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},sy={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect","mutualTLS"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"OAuth2Flows",openIdConnectUrl:{type:"string"}},required(e){switch(e?.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e?.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":switch(e?.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes"];case"authorizationCode":return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"]}case"openIdConnect":return["type","openIdConnectUrl","description"];case"mutualTLS":return["type","description"];default:return["type","description"]}},extensionsPrefix:"x-"},ay={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Be={...xt,Info:ry,Root:ey,Schema:oy,SchemaProperties:Ha,PatternProperties:Ha,License:ty,Components:ny,NamedPathItems:N.mapOf("PathItem"),SecurityScheme:sy,Operation:iy,DependentRequired:ay},cy={...Be.Root,properties:{...Be.Root.properties,$self:{type:"string",description:"This string MUST be in the form of a URI reference as defined by [RFC3986] Section 4.1. The $self field provides the self-assigned URI of this document, which also serves as its base URI in accordance with [RFC3986] Section 5.1.1. Implementations MUST support identifying the targets of API description URIs using the URI defined by this field when it is present. See Establishing the Base URI for the base URI behavior when $self is absent or relative, and see Appendix F for examples of using $self to resolve references."}}},py={...Be.Tag,properties:{...Be.Tag.properties,kind:{type:"string",description:"A machine-readable string to categorize what sort of tag it is. Any string value can be used; common uses are nav for Navigation, badge for visible badges, audience for APIs used by different groups. A registry of the most commonly used values is available."},parent:{type:"string",description:"The name of a tag that this tag is nested under. The named tag MUST exist in the API description, and circular references between parent and child tags MUST NOT be used."},summary:{type:"string",description:"A short summary of the tag, used for display purposes."}},description:"Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag defined in the Operation Object instances."},ly={...Be.Server,properties:{...Be.Server.properties,name:{type:"string",description:"An optional unique string to refer to the host designated by the URL."}},description:"An object representing a Server."},uy={...Be.SecurityScheme,properties:{...Be.SecurityScheme.properties,deprecated:{type:"boolean",description:"Declares this security scheme to be deprecated. Consumers SHOULD refrain from usage of the declared scheme. Default value is false."},oauth2MetadataUrl:{type:"string",description:"URL to the OAuth2 authorization server metadata [RFC8414]. TLS is required."}},allowed(e){switch(e?.type){case"apiKey":return["type","name","in","description","deprecated"];case"http":return["type","scheme","bearerFormat","description","deprecated"];case"oauth2":switch(e?.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"authorizationCode":return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"deviceAuthorization":return["type","flows","deviceAuthorizationUrl","tokenUrl"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes","oauth2MetadataUrl","deprecated"]}case"openIdConnect":return["type","openIdConnectUrl","description","deprecated"];case"mutualTLS":return["type","description","deprecated"];default:return["type","description","deprecated"]}},description:"Defines a security scheme that can be used by the operations."},dy={...Be.OAuth2Flows,properties:{...Be.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},fy={properties:{deviceAuthorizationUrl:{type:"string",description:"REQUIRED. The device authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},tokenUrl:{type:"string",description:"REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},refreshUrl:{type:"string",description:"The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},scopes:N.mapOf("string",{description:"REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty."})},required:["deviceAuthorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Device Authorization flow."},my={...xt.PathItem,properties:{...xt.PathItem.properties,query:"Operation",additionalOperations:N.mapOf("Operation")}},hy={...Be.Parameter,properties:{...Be.Parameter.properties,in:{description:'REQUIRED. The location of the parameter. Possible values are "query", "querystring", "header", "path" or "cookie".',enum:["query","header","path","cookie","querystring"]}}},yy={...Be.Response,properties:{...Be.Response.properties,summary:{type:"string",description:"A short summary of the meaning of the response."}}},gy={...Be.MediaType,properties:{...Be.MediaType.properties,itemSchema:"Schema",prefixEncoding:N.listOf("Encoding",{description:"A map between a property name and its encoding information, as defined under Encoding By Name. The encoding field SHALL only apply when the media type is multipart or application/x-www-form-urlencoded. If no Encoding Object is provided for a property, the behavior is determined by the default values documented for the Encoding Object. This field MUST NOT be present if prefixEncoding or itemEncoding are present."}),itemEncoding:"Encoding"}},vy={...Be.Discriminator,properties:{...Be.Discriminator.properties,defaultMapping:e=>{const t="The schema name or URI reference to a schema that is expected to validate the structure of the model when the discriminating property is not present in the payload or contains a value for which there is no explicit or implicit mapping.";return N.isMappingRef(e)?{type:"string",directResolveAs:"Schema",description:t}:{type:"string",description:t}}}},by={extensionsPrefix:"x-",properties:{...Be.Components.properties,mediaTypes:"NamedMediaTypes"}},wy={...Be.Example,properties:{...Be.Example.properties,dataValue:{resolvable:!1,description:"An example of the data structure that MUST be valid according to the relevant Schema Object. If this field is present, value MUST be absent."},serializedValue:{type:"string",description:"An example of the serialized form of the value, including encoding and escaping as described under Validating Examples. If dataValue is present, then this field SHOULD contain the serialization of the given data. Otherwise, it SHOULD be the valid serialization of a data value that itself MUST be valid as described for dataValue. This field SHOULD NOT be used if the serialization format is JSON, as the data form is easier to work with. If this field is present, value, and externalValue MUST be absent."}}},Sy={properties:{nodeType:{type:"string",enum:["element","attribute","text","cdata","none"],description:'One of element, attribute, text, cdata, or none, as explained under XML Node Types. The default value is none if $ref, $dynamicRef, or type: "array" is present in the Schema Object containing the XML Object, and element otherwise.'},name:{type:"string",description:"Sets the name of the element/attribute corresponding to the schema, replacing the name that was inferred as described under XML Node Names. This field SHALL be ignored if the nodeType is text, cdata, or none."},namespace:{type:"string",description:"The IRI ([RFC3987]) of the namespace definition. Value MUST be in the form of a non-relative IRI."},prefix:{type:"string",description:"The prefix to be used for the name."},attribute:{type:"boolean",description:'Declares whether the property definition translates to an attribute instead of an element. Default value is false. If nodeType is present, this field MUST NOT be present.Deprecated: Use nodeType: "attribute" instead of attribute: true.'},wrapped:{type:"boolean",description:'MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being "array" (outside the items). If nodeType is present, this field MUST NOT be present. Deprecated: Use nodeType: "element" instead of wrapped: true.'}},extensionsPrefix:"x-",description:"A metadata object that allows for more fine-tuned XML model definitions. When using a Schema Object with XML, if no XML Object is present, the behavior is determined by the XML Object’s default field values."},Ey={...Be.Schema,properties:{...Be.Schema.properties,xml:"Xml"}},Ze={...Be,Root:cy,Tag:py,Server:ly,SecurityScheme:uy,OAuth2Flows:dy,DeviceAuthorization:fy,PathItem:my,Parameter:hy,Response:yy,MediaType:gy,Discriminator:vy,Example:wy,Xml:Sy,Schema:Ey,Components:by,NamedMediaTypes:N.mapOf("MediaTypesMap")},xy={properties:{},description:"Protocol-specific information for an HTTP channel."},Ty={properties:{},description:"Protocol-specific information for an HTTP server."},Py={properties:{headers:"Schema",statusCode:{type:"number"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP message, i.e., a request or a response."},Oy={properties:{type:{type:"string"},method:{type:"string",enum:["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","CONNECT","TRACE"]},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP operation."},Iy={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a WebSockets channel."},_y={properties:{},description:"Protocol-specific information for a WebSockets server."},Ay={properties:{},description:"Protocol-specific information for a WebSockets message."},Ry={properties:{},description:"Protocol-specific information for a WebSockets operation."},$y={properties:{"cleanup.policy":{type:"array",items:{enum:["delete","compact"]}},"retention.ms":{type:"integer"},"retention.bytes":{type:"integer"},"delete.retention.ms":{type:"integer"},"max.message.bytes":{type:"integer"},"confluent.key.schema.validation":{type:"boolean"},"confluent.key.subject.name.strategy":{type:"string"},"confluent.value.schema.validation":{type:"boolean"},"confluent.value.subject.name.strategy":{type:"string"}}},Ny={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka channel."},ky={properties:{schemaRegistryUrl:{type:"string"},schemaRegistryVendor:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka server."},Dy={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka message."},qy={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka operation."},Cy={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ channel."},jy={properties:{},description:"Protocol-specific information for an Anypoint MQ server."},My={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ message."},Ly={properties:{},description:"Protocol-specific information for an Anypoint MQ operation."},Uy={properties:{name:{type:"string"},type:{type:"string",enum:["topic","direct","fanout","default","headers"]},durable:{type:"boolean"},autoDelete:{type:"boolean"},vhost:{type:"string"}},description:"The AMQP exchange the channel is bound to."},Fy={properties:{name:{type:"string"},durable:{type:"boolean"},exclusive:{type:"boolean"},autoDelete:{type:"boolean"},vhost:{type:"string"}},description:"The AMQP queue the channel is bound to."},By={properties:{is:{type:"string",enum:["queue","routingKey"]},exchange:"AmqpChannelExchange",queue:"AmqpChannelQueue",bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 channel."},zy={properties:{},description:"Protocol-specific information for an AMQP 0-9-1 server."},Vy={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 message."},Ky={properties:{expiration:{type:"integer"},userId:{type:"string"},cc:{type:"array",items:{type:"string"}},priority:{type:"integer"},deliveryMode:{type:"integer"},mandatory:{type:"boolean"},bcc:{type:"array",items:{type:"string"}},replyTo:{type:"string"},timestamp:{type:"boolean"},ack:{type:"boolean"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 operation."},Hy={properties:{},description:"Protocol-specific information for an AMQP 1.0 channel."},Gy={properties:{},description:"Protocol-specific information for an AMQP 1.0 server."},Yy={properties:{},description:"Protocol-specific information for an AMQP 1.0 message."},Qy={properties:{},description:"Protocol-specific information for an AMQP 1.0 operation."},Wy={properties:{},description:"Protocol-specific information for an MQTT channel."},Jy={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},Xy={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},sessionExpiryInterval:e=>ee.isPlainObject(e)?"Schema":{type:"integer"},maximumPacketSize:e=>ee.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT server."},Zy={properties:{payloadFormatIndicator:{type:"integer"},correlationData:"Schema",contentType:{type:"string"},responseTopic:e=>ee.isPlainObject(e)?"Schema":{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT message."},eg={properties:{qos:{type:"integer"},retain:{type:"boolean"},messageExpiryInterval:e=>ee.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT operation."},tg={properties:{},description:"Protocol-specific information for an MQTT 5 channel."},rg={properties:{sessionExpiryInterval:e=>ee.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT 5 server."},ng={properties:{},description:"Protocol-specific information for an MQTT 5 message."},ig={properties:{},description:"Protocol-specific information for an MQTT 5 operation."},og={properties:{},description:"Protocol-specific information for a NATS channel."},sg={properties:{},description:"Protocol-specific information for a NATS server."},ag={properties:{},description:"Protocol-specific information for a NATS message."},cg={properties:{queue:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a NATS operation."},pg={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS channel."},lg={properties:{name:{type:"string"},value:{}},required:["name","value"],description:"A name-value pair to set on the JMS ConnectionFactory implementation."},ug={properties:{jmsConnectionFactory:{type:"string"},properties:N.listOf("JmsServerBindingProperty"),clientID:{type:"string"},bindingVersion:{type:"string"}},required:["jmsConnectionFactory"],description:"Protocol-specific information for a JMS server."},dg={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS message."},fg={properties:{},description:"Protocol-specific information for a JMS operation."},mg={properties:{},description:"Protocol-specific information for a Solace channel."},hg={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"},clientName:{type:"string"}},description:"Protocol-specific information for a Solace server."},yg={properties:{},description:"Protocol-specific information for a Solace message."},gg={properties:{destinationType:{type:"string",enum:["queue","topic"]},deliveryMode:{type:"string",enum:["direct","persistent"]},"queue.name":{type:"string"},"queue.topicSubscriptions":{type:"array",items:{type:"string"}},"queue.accessType":{type:"string",enum:["exclusive","nonexclusive"]},"queue.maxMsgSpoolSize":{type:"string"},"queue.maxMsgSpoolUsage":{type:"string"},"queue.maxTtl":{type:"string"},"topic.topicSubscriptions":{type:"array",items:{type:"string"}}}},vg={properties:{bindingVersion:{type:"string"},destinations:N.listOf("SolaceDestination"),dmqEligible:{type:"boolean"},priority:{type:"integer",minimum:0},timeToLive:{type:"integer"}},description:"Protocol-specific information for a Solace operation."},bg={properties:{url:{type:"string"},email:{type:"string"},phone:{type:"string"},arn:{type:"string"},name:{type:"string"}},description:"Identifies an SNS resource: exactly one of url, email, phone, arn, or name."},wg={properties:{type:{type:"string",enum:["standard","FIFO"]},contentBasedDeduplication:{type:"boolean"}},required:["type"],description:"Defines the ordering and deduplication properties of an SNS topic."},Sg={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SNS access-policy statement."},Eg={properties:{statements:N.listOf("SnsStatement")},required:["statements"],description:"The security policy for an SNS topic."},xg={properties:{name:{type:"string"},ordering:"SnsOrdering",policy:"SnsPolicy",tags:{type:"object"},bindingVersion:{type:"string"}},required:["name"],description:"Protocol-specific information for an SNS channel."},Tg={properties:{deadLetterQueue:"SnsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SNS messages are moved."},Pg={properties:{minDelayTarget:{type:"integer"},maxDelayTarget:{type:"integer"},numRetries:{type:"integer"},numNoDelayRetries:{type:"integer"},numMinDelayRetries:{type:"integer"},numMaxDelayRetries:{type:"integer"},backoffFunction:{type:"string",enum:["arithmetic","exponential","geometric","linear"]},maxReceivesPerSecond:{type:"integer"}},description:"Defines how SNS retries the delivery of messages to a subscription endpoint."},Og={properties:{protocol:{type:"string",enum:["http","https","email","email-json","sms","sqs","application","lambda","firehose"]},endpoint:"SnsIdentifier",filterPolicy:{type:"object"},filterPolicyScope:{type:"string",enum:["MessageAttributes","MessageBody"]},rawMessageDelivery:{type:"boolean"},redrivePolicy:"SnsRedrivePolicy",deliveryPolicy:"SnsDeliveryPolicy",displayName:{type:"string"}},required:["protocol","endpoint","rawMessageDelivery"],description:"Describes an SNS subscription consuming messages from a topic."},Ig={properties:{topic:"SnsIdentifier",consumers:N.listOf("SnsConsumer"),deliveryPolicy:"SnsDeliveryPolicy",bindingVersion:{type:"string"}},required:["consumers"],description:"Protocol-specific information for an SNS operation."},_g={properties:{arn:{type:"string"},name:{type:"string"}},description:"Identifies an SQS queue: exactly one of arn or name."},Ag={properties:{deadLetterQueue:"SqsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SQS messages are moved."},Rg={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SQS access-policy statement."},$g={properties:{statements:N.listOf("SqsStatement")},required:["statements"],description:"The security policy for an SQS queue."},hu={properties:{name:{type:"string"},fifoQueue:{type:"boolean"},deduplicationScope:{type:"string",enum:["queue","messageGroup"]},fifoThroughputLimit:{type:"string",enum:["perQueue","perMessageGroupId"]},deliveryDelay:{type:"integer"},visibilityTimeout:{type:"integer"},receiveMessageWaitTime:{type:"integer"},messageRetentionPeriod:{type:"integer"},redrivePolicy:"SqsRedrivePolicy",policy:"SqsPolicy",tags:{type:"object"}},required:["name","fifoQueue"],description:"Describes an SQS queue (channel-level definition)."},Ng={...hu,required:["name"],description:"Describes an SQS queue (operation-level definition)."},kg={properties:{queue:"SqsQueue",deadLetterQueue:"SqsQueue",bindingVersion:{type:"string"}},required:["queue"],description:"Protocol-specific information for an SQS channel."},Dg={properties:{queues:N.listOf("SqsOperationQueue"),bindingVersion:{type:"string"}},required:["queues"],description:"Protocol-specific information for an SQS operation."},qg={properties:{},description:"Protocol-specific information for a STOMP channel."},Cg={properties:{},description:"Protocol-specific information for a STOMP server."},jg={properties:{},description:"Protocol-specific information for a STOMP message."},Mg={properties:{},description:"Protocol-specific information for a STOMP operation."},Lg={properties:{},description:"Protocol-specific information for a Redis channel."},Ug={properties:{},description:"Protocol-specific information for a Redis server."},Fg={properties:{},description:"Protocol-specific information for a Redis message."},Bg={properties:{},description:"Protocol-specific information for a Redis operation."},zg={properties:{},description:"Protocol-specific information for a Mercure channel."},Vg={properties:{},description:"Protocol-specific information for a Mercure server."},Kg={properties:{},description:"Protocol-specific information for a Mercure message."},Hg={properties:{},description:"Protocol-specific information for a Mercure operation."},Gg={properties:{groupId:{type:"string"},ccdtQueueManagerName:{type:"string"},cipherSpec:{type:"string"},multiEndpointServer:{type:"boolean"},heartBeatInterval:{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an IBM MQ server."},Yg={properties:{objectName:{type:"string"},isPartitioned:{type:"boolean"},exclusive:{type:"boolean"}},required:["objectName"],description:"Defines the properties of an IBM MQ queue."},Qg={properties:{string:{type:"string"},objectName:{type:"string"},durablePermitted:{type:"boolean"},lastMsgRetained:{type:"boolean"}},description:"Defines the properties of an IBM MQ topic."},Wg={properties:{destinationType:{type:"string",enum:["topic","queue"]},queue:"IbmmqChannelQueue",topic:"IbmmqChannelTopic",maxMsgLength:{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an IBM MQ channel."},Jg={properties:{type:{type:"string",enum:["string","jms","binary"]},headers:{type:"string"},description:{type:"string"},expiry:{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an IBM MQ message."},Xg={properties:{allowedPersistenceRegions:{type:"array",items:{type:"string"}}},description:"Policy constraining the regions where Google Cloud Pub/Sub messages are stored."},Zg={properties:{encoding:{type:"string"},firstRevisionId:{type:"string"},lastRevisionId:{type:"string"},name:{type:"string"}},required:["encoding","name"],description:"Settings for validating Google Cloud Pub/Sub messages against a schema."},ev={properties:{labels:{type:"object"},messageRetentionDuration:{type:"string"},messageStoragePolicy:"GooglepubsubMessageStoragePolicy",schemaSettings:"GooglepubsubSchemaSettings",topic:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub channel."},tv={properties:{name:{type:"string"},type:{type:"string"}},required:["name"],description:"Identifies the Google Cloud Pub/Sub schema a message is validated against."},rv={properties:{attributes:{type:"object"},orderingKey:{type:"string"},schema:"GooglepubsubSchema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub message."},nv={properties:{tenant:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Pulsar server."},iv={properties:{time:{type:"integer"},size:{type:"integer"}},description:"The retention policy of a Pulsar topic."},ov={properties:{namespace:{type:"string"},persistence:{type:"string",enum:["persistent","non-persistent"]},compaction:{type:"integer"},"geo-replication":{type:"array",items:{type:"string"}},retention:"PulsarRetention",ttl:{type:"integer"},deduplication:{type:"boolean"},bindingVersion:{type:"string"}},required:["namespace","persistence"],description:"Protocol-specific information for a Pulsar channel."},sv={properties:{rmwImplementation:{type:"string"},domainId:{type:"integer",minimum:0}},description:"Protocol-specific information for a ROS 2 server."},av={properties:{},description:"Protocol-specific information for a ROS 2 channel."},cv={properties:{reliability:{type:"string",enum:["best_effort","reliable"]},history:{type:"string",enum:["keep_last","keep_all","unknown"]},durability:{type:"string",enum:["transient_local","volatile"]},lifespan:{type:"integer"},deadline:{type:"integer"},liveliness:{type:"string",enum:["automatic","manual"]},leaseDuration:{type:"integer"}},description:"Quality of Service settings for a ROS 2 operation."},pv={properties:{role:{type:"string",enum:["publisher","subscriber","service_client","service_server","action_client","action_server"]},node:{type:"string"},qosPolicies:"Ros2QosPolicies",bindingVersion:{type:"string"}},description:"Protocol-specific information for a ROS 2 operation."},lv={properties:{},description:"Protocol-specific information for a ROS 2 message."},uv={extensionsPrefix:"x-",properties:{http:"HttpServerBinding",ws:"WsServerBinding",kafka:"KafkaServerBinding",anypointmq:"AnypointmqServerBinding",amqp:"AmqpServerBinding",amqp1:"Amqp1ServerBinding",mqtt:"MqttServerBinding",mqtt5:"Mqtt5ServerBinding",nats:"NatsServerBinding",jms:"JmsServerBinding",solace:"SolaceServerBinding",stomp:"StompServerBinding",redis:"RedisServerBinding",mercure:"MercureServerBinding",ibmmq:"IbmmqServerBinding",pulsar:"PulsarServerBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for a server."},dv={extensionsPrefix:"x-",properties:{http:"HttpChannelBinding",ws:"WsChannelBinding",kafka:"KafkaChannelBinding",anypointmq:"AnypointmqChannelBinding",amqp:"AmqpChannelBinding",amqp1:"Amqp1ChannelBinding",mqtt:"MqttChannelBinding",mqtt5:"Mqtt5ChannelBinding",nats:"NatsChannelBinding",jms:"JmsChannelBinding",solace:"SolaceChannelBinding",stomp:"StompChannelBinding",redis:"RedisChannelBinding",mercure:"MercureChannelBinding",sns:"SnsChannelBinding",sqs:"SqsChannelBinding",ibmmq:"IbmmqChannelBinding",googlepubsub:"GooglepubsubChannelBinding",pulsar:"PulsarChannelBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for a channel."},fv={extensionsPrefix:"x-",properties:{http:"HttpOperationBinding",ws:"WsOperationBinding",kafka:"KafkaOperationBinding",anypointmq:"AnypointmqOperationBinding",amqp:"AmqpOperationBinding",amqp1:"Amqp1OperationBinding",mqtt:"MqttOperationBinding",mqtt5:"Mqtt5OperationBinding",nats:"NatsOperationBinding",jms:"JmsOperationBinding",solace:"SolaceOperationBinding",stomp:"StompOperationBinding",redis:"RedisOperationBinding",mercure:"MercureOperationBinding",sns:"SnsOperationBinding",sqs:"SqsOperationBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for an operation."},mv={extensionsPrefix:"x-",properties:{http:"HttpMessageBinding",ws:"WsMessageBinding",kafka:"KafkaMessageBinding",anypointmq:"AnypointmqMessageBinding",amqp:"AmqpMessageBinding",amqp1:"Amqp1MessageBinding",mqtt:"MqttMessageBinding",mqtt5:"Mqtt5MessageBinding",nats:"NatsMessageBinding",jms:"JmsMessageBinding",solace:"SolaceMessageBinding",stomp:"StompMessageBinding",redis:"RedisMessageBinding",mercure:"MercureMessageBinding",ibmmq:"IbmmqMessageBinding",googlepubsub:"GooglepubsubMessageBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for a message."},Rt={HttpServerBinding:Ty,HttpChannelBinding:xy,HttpMessageBinding:Py,HttpOperationBinding:Oy,WsServerBinding:_y,WsChannelBinding:Iy,WsMessageBinding:Ay,WsOperationBinding:Ry,KafkaServerBinding:ky,KafkaTopicConfiguration:$y,KafkaChannelBinding:Ny,KafkaMessageBinding:Dy,KafkaOperationBinding:qy,AnypointmqServerBinding:jy,AnypointmqChannelBinding:Cy,AnypointmqMessageBinding:My,AnypointmqOperationBinding:Ly,AmqpServerBinding:zy,AmqpChannelExchange:Uy,AmqpChannelQueue:Fy,AmqpChannelBinding:By,AmqpMessageBinding:Vy,AmqpOperationBinding:Ky,Amqp1ServerBinding:Gy,Amqp1ChannelBinding:Hy,Amqp1MessageBinding:Yy,Amqp1OperationBinding:Qy,MqttServerBindingLastWill:Jy,MqttServerBinding:Xy,MqttChannelBinding:Wy,MqttMessageBinding:Zy,MqttOperationBinding:eg,Mqtt5ServerBinding:rg,Mqtt5ChannelBinding:tg,Mqtt5MessageBinding:ng,Mqtt5OperationBinding:ig,NatsServerBinding:sg,NatsChannelBinding:og,NatsMessageBinding:ag,NatsOperationBinding:cg,JmsServerBindingProperty:lg,JmsServerBinding:ug,JmsChannelBinding:pg,JmsMessageBinding:dg,JmsOperationBinding:fg,SolaceServerBinding:hg,SolaceChannelBinding:mg,SolaceMessageBinding:yg,SolaceDestination:gg,SolaceOperationBinding:vg,StompServerBinding:Cg,StompChannelBinding:qg,StompMessageBinding:jg,StompOperationBinding:Mg,RedisServerBinding:Ug,RedisChannelBinding:Lg,RedisMessageBinding:Fg,RedisOperationBinding:Bg,MercureServerBinding:Vg,MercureChannelBinding:zg,MercureMessageBinding:Kg,MercureOperationBinding:Hg,SnsIdentifier:bg,SnsOrdering:wg,SnsStatement:Sg,SnsPolicy:Eg,SnsChannelBinding:xg,SnsRedrivePolicy:Tg,SnsDeliveryPolicy:Pg,SnsConsumer:Og,SnsOperationBinding:Ig,SqsIdentifier:_g,SqsRedrivePolicy:Ag,SqsStatement:Rg,SqsPolicy:$g,SqsQueue:hu,SqsOperationQueue:Ng,SqsChannelBinding:kg,SqsOperationBinding:Dg,IbmmqServerBinding:Gg,IbmmqChannelQueue:Yg,IbmmqChannelTopic:Qg,IbmmqChannelBinding:Wg,IbmmqMessageBinding:Jg,GooglepubsubMessageStoragePolicy:Xg,GooglepubsubSchemaSettings:Zg,GooglepubsubChannelBinding:ev,GooglepubsubSchema:tv,GooglepubsubMessageBinding:rv,PulsarServerBinding:nv,PulsarRetention:iv,PulsarChannelBinding:ov,ServerBindings:uv,ChannelBindings:dv,MessageBindings:mv,OperationBindings:fv},hv={Ros2ServerBinding:sv,Ros2ChannelBinding:av,Ros2OperationBinding:pv,Ros2QosPolicies:cv,Ros2MessageBinding:lv},Zs={extensionsPrefix:"x-",properties:{$id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:e=>Array.isArray(e)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:N.listOf("Schema"),anyOf:N.listOf("Schema"),oneOf:N.listOf("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?N.listOf("Schema"):"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},additionalItems:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",dependencies:"Dependencies"}},ea={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},ta={properties:{},additionalProperties:e=>Array.isArray(e)?{type:"array",items:{type:"string"}}:"Schema"},ra={properties:{},additionalProperties:e=>typeof e=="string"&&N.isMappingRef(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},na={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]},yv={extensionsPrefix:"x-",properties:{asyncapi:null,info:"Info",id:{type:"string",description:"Identifier of the application the AsyncAPI document is defining."},servers:"ServerMap",channels:"ChannelMap",components:"Components",tags:"TagList",externalDocs:"ExternalDocs",defaultContentType:{type:"string"}},required:["asyncapi","channels","info"]},gv={extensionsPrefix:"x-",properties:{description:{type:"string",description:"An optional description of this channel item. CommonMark syntax can be used for rich text representation."},subscribe:"Operation",publish:"Operation",parameters:"ParametersMap",bindings:"ChannelBindings",servers:{type:"array",items:{type:"string"},description:"The servers on which this channel is available, specified as an optional unordered list of names (string keys) of Server Objects defined in the Servers Object (a map)."}},description:"Describes the operations available on a single channel."},vv={properties:{},additionalProperties:"Channel"},yu={extensionsPrefix:"x-",properties:{name:{type:"string",description:"REQUIRED. The name of the tag."},description:{type:"string",description:"A short description for the tag. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs"},required:["name"],description:"Allows adding meta data to a single tag."},gu={extensionsPrefix:"x-",properties:{description:{type:"string",description:"A short description of the target documentation. CommonMark syntax can be used for rich text representation."},url:{type:"string",description:"REQUIRED. The URL for the target documentation. This MUST be in the form of an absolute URL."}},required:["url"],description:"Allows referencing an external resource for extended documentation."},bv={properties:{},additionalProperties:{type:"array",items:{type:"string"}},description:"Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a security scheme declared in the Security Schemes under the Components Object."},wv={extensionsPrefix:"x-",properties:{url:{type:"string",description:"REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the AsyncAPI document is being served. Variable substitutions will be made when a variable is named in {braces}."},protocol:{type:"string",description:"REQUIRED. The protocol this URL supports for connection. Supported protocol include, but are not limited to: amqp, amqps, http, https, ibmmq, jms, kafka, kafka-secure, anypointmq, mqtt, secure-mqtt, solace, stomp, stomps, ws, wss, mercure, googlepubsub, pulsar."},protocolVersion:{type:"string",description:"The version of the protocol used for connection. For instance: AMQP 0.9.1, HTTP 2.0, Kafka 1.0.0, etc."},description:{type:"string",description:"An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation."},variables:"ServerVariablesMap",security:"SecurityRequirementList",bindings:"ServerBindings",tags:"TagList"},required:["url","protocol"],description:"An object representing a message broker, a server or any other kind of computer program capable of sending and/or receiving data. This object is used to capture details such as URIs, protocols and security configuration. Variable substitution can be used so that some details, for example usernames and passwords, can be injected by code generation tools."},vu={properties:{},additionalProperties:(e,t)=>t.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},bu={extensionsPrefix:"x-",properties:{enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set."},default:{type:"string",description:"The default value to use for substitution, and to send, if an alternate value is not supplied."},description:{type:"string",description:"An optional description for the server variable. CommonMark syntax MAY be used for rich text representation."},examples:{type:"array",items:{type:"string"},description:"An array of examples of the server variable."}},required:[],description:"An object representing a Server Variable for server URL template substitution."},Sv={extensionsPrefix:"x-",properties:{title:{type:"string",description:"REQUIRED. The title of the application."},version:{type:"string",description:"REQUIRED Provides the version of the application API (not to be confused with the specification version)."},description:{type:"string",description:"A short description of the application. CommonMark syntax can be used for rich text representation."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. This MUST be in the form of an absolute URL."},contact:"Contact",license:"License"},required:["title","version"],description:"The object provides metadata about the API. The metadata can be used by the clients if needed."},wu={extensionsPrefix:"x-",properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information. This MUST be in the form of an absolute URL."},email:{type:"string",description:"The email address of the contact person/organization. MUST be in the format of an email address."}},description:"Contact information for the exposed API."},Su={extensionsPrefix:"x-",properties:{name:{type:"string",description:"REQUIRED. The license name used for the API."},url:{type:"string",description:"A URL to the license used for the API. This MUST be in the form of an absolute URL."}},required:["name"],description:"License information for the exposed API."},Ev={extensionsPrefix:"x-",properties:{description:{type:"string",description:"A verbose explanation of the parameter. CommonMark syntax can be used for rich text representation."},schema:"Schema",location:{type:"string",description:"A runtime expression that specifies the location of the parameter value. Even when a definition for the target field exists, it MUST NOT be used to validate this parameter but, instead, the schema property MUST be used."}},description:"Describes a parameter included in a channel name."},Eu={extensionsPrefix:"x-",properties:{description:{type:"string",description:"An optional description of the identifier. CommonMark syntax can be used for rich text representation."},location:{type:"string",description:"REQUIRED. A runtime expression that specifies the location of the correlation ID."}},required:["location"],description:"An object that specifies an identifier at design time that can used for message tracing and correlation."},xv={extensionsPrefix:"x-",properties:{messageId:{type:"string",description:"Unique string used to identify the message. The id MUST be unique among all messages described in the API. The messageId value is case-sensitive. Tools and libraries MAY use the messageId to uniquely identify a message, therefore, it is RECOMMENDED to follow common programming naming conventions."},headers:"Schema",payload:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string",description:"A string containing the name of the schema format used to define the message payload. If omitted, implementations should parse the payload as a Schema object. When the payload is defined using a $ref to a remote file, it is RECOMMENDED the schema format includes the file encoding type to allow implementations to parse the file correctly."},contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A machine-friendly name for the message."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{},description:"Describes a message received on a given channel and operation."},Tv={extensionsPrefix:"x-",properties:{tags:"TagList",summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions."},security:"SecurityRequirementList",bindings:"OperationBindings"},required:[],description:"Describes a trait that MAY be applied to an Operation Object. This object MAY contain any property from the Operation Object, except message and traits."},Pv={extensionsPrefix:"x-",properties:{messageId:{type:"string",description:"Unique string used to identify the message. The id MUST be unique among all messages described in the API. The messageId value is case-sensitive. Tools and libraries MAY use the messageId to uniquely identify a message, therefore, it is RECOMMENDED to follow common programming naming conventions."},headers:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string",description:"A string containing the name of the schema format/language used to define the message payload. If omitted, implementations should parse the payload as a Schema object."},contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{},description:"Describes a trait that MAY be applied to a Message Object. This object MAY contain any property from the Message Object, except payload and traits."},Ov={extensionsPrefix:"x-",properties:{tags:"TagList",summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions."},security:"SecurityRequirementList",bindings:"OperationBindings",traits:"OperationTraitList",message:"Message"},required:[],description:"Describes a publish or a subscribe operation. This provides a place to document how and why messages are sent and received."},xu={extensionsPrefix:"x-",properties:{payload:{isExample:!0,description:"The value of this field MUST validate against the Message Object's payload field."},summary:{type:"string",description:"A short summary of what the example is about."},name:{type:"string",description:"A machine-friendly name."},headers:{type:"object",description:"The value of this field MUST validate against the Message Object's headers field."}},description:"Message Example Object represents an example of a Message Object and MUST contain either headers and/or payload fields."},Iv={extensionsPrefix:"x-",properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"ChannelMap",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"}},_v={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],description:"Configuration for the OAuth Implicit flow."},Av={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],description:"Configuration for the OAuth Password flow."},Rv={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],description:"Configuration for the OAuth Client Credentials flow."},$v={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","scopes"],description:"Configuration for the OAuth Authorization Code flow."},Tu={extensionsPrefix:"x-",properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},Nv={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"]},description:{type:"string",description:"A short description for security scheme. CommonMark syntax MAY be used for rich text representation."},name:{type:"string",description:"REQUIRED. The name of the header, query or cookie parameter to be used."},in:{type:"string",enum:["query","header","cookie","user","password"],description:'REQUIRED. The location of the API key. Valid values are "user" and "password" for apiKey and "query", "header" or "cookie" for httpApiKey.'},scheme:{type:"string",description:"REQUIRED. The name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235."},bearerFormat:{type:"string",description:"A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes."},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string",description:"REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of an absolute URL."}},required(e){switch(e?.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e?.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-",description:"Defines a security scheme that can be used by the operations."},Pu={...Rt,Root:yv,Tag:yu,TagList:N.listOf("Tag"),ServerMap:vu,ExternalDocs:gu,Server:wv,ServerVariable:bu,ServerVariablesMap:N.mapOf("ServerVariable"),SecurityRequirement:bv,SecurityRequirementList:N.listOf("SecurityRequirement"),Info:Sv,Contact:wu,License:Su,ChannelMap:vv,Channel:gv,Parameter:Ev,ParametersMap:N.mapOf("Parameter"),Operation:Ov,Schema:Zs,MessageExample:xu,SchemaProperties:ea,DiscriminatorMapping:ra,Discriminator:na,Components:Iv,NamedSchemas:N.mapOf("Schema"),NamedMessages:N.mapOf("Message"),NamedMessageTraits:N.mapOf("MessageTrait"),NamedOperationTraits:N.mapOf("OperationTrait"),NamedParameters:N.mapOf("Parameter"),NamedSecuritySchemes:N.mapOf("SecurityScheme"),NamedCorrelationIds:N.mapOf("CorrelationId"),ImplicitFlow:_v,PasswordFlow:Av,ClientCredentials:Rv,AuthorizationCode:$v,SecuritySchemeFlows:Tu,SecurityScheme:Nv,Message:xv,OperationTrait:Tv,OperationTraitList:N.listOf("OperationTrait"),MessageTrait:Pv,MessageTraitList:N.listOf("MessageTrait"),MessageExampleList:N.listOf("MessageExample"),CorrelationId:Eu,Dependencies:ta},kv={extensionsPrefix:"x-",properties:{asyncapi:{type:"string",description:"REQUIRED. Specifies the AsyncAPI Specification version being used. It can be used by tooling Specifications and clients to interpret the version. The structure shall be major.minor.patch, where patch versions must be compatible with the existing major.minor tooling. Typically patch versions will be introduced to address errors in the documentation, and tooling should typically be compatible with the corresponding major.minor (1.0.*). Patch versions will correspond to patches of this document."},info:"Info",id:{type:"string",description:"Identifier of the application the AsyncAPI document is defining."},servers:"ServerMap",channels:"NamedChannels",components:"Components",operations:"NamedOperations",defaultContentType:{type:"string",description:"Default content type to use when encoding/decoding a message's payload."}},required:["asyncapi","info"],description:"This is the root document object for the API specification. It combines resource listing and API declaration together into one document."},Dv={extensionsPrefix:"x-",properties:{address:{type:"string",description:`An optional string representation of this channel's address. The address is typically the "topic name", "routing key", "event type", or "path". When null or absent, it MUST be interpreted as unknown. This is useful when the address is generated dynamically at runtime or can't be known upfront. It MAY contain Channel Address Expressions. Query parameters and fragments SHALL NOT be used, instead use bindings to define them.`},messages:"NamedMessages",title:{type:"string",description:"A human-friendly title for the channel."},summary:{type:"string",description:"A short summary of the channel."},description:{type:"string",description:"An optional description of this channel. CommonMark syntax can be used for rich text representation."},servers:"ServerList",parameters:"ParametersMap",bindings:"ChannelBindings",tags:"TagList",externalDocs:"ExternalDocs"},description:"Describes a shared communication channel."},qv={extensionsPrefix:"x-",properties:{host:{type:"string",description:"REQUIRED. The server host name. It MAY include the port. This field supports Server Variables. Variable substitutions will be made when a variable is named in {braces}."},pathname:{type:"string",description:"The path to a resource in the host. This field supports Server Variables. Variable substitutions will be made when a variable is named in {braces}."},protocol:{type:"string",description:"REQUIRED. The protocol this server supports for connection."},protocolVersion:{type:"string",description:"The version of the protocol used for connection. For instance: AMQP 0.9.1, HTTP 2.0, Kafka 1.0.0, etc."},description:{type:"string",description:"An optional string describing the server. CommonMark syntax MAY be used for rich text representation."},variables:"ServerVariablesMap",security:"SecuritySchemeList",bindings:"ServerBindings",externalDocs:"ExternalDocs",tags:"TagList"},required:["host","protocol"],description:"An object representing a message broker, a server or any other kind of computer program capable of sending and/or receiving data. This object is used to capture details such as URIs, protocols and security configuration. Variable substitution can be used so that some details, for example usernames and passwords, can be injected by code generation tools."},Cv={extensionsPrefix:"x-",properties:{title:{type:"string",description:"REQUIRED. The title of the application."},version:{type:"string",description:"REQUIRED Provides the version of the application API (not to be confused with the specification version)."},description:{type:"string",description:"A short description of the application. CommonMark syntax can be used for rich text representation."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. This MUST be in the form of an absolute URL."},contact:"Contact",license:"License",tags:"TagList",externalDocs:"ExternalDocs"},required:["title","version"],description:"The object provides metadata about the API. The metadata can be used by the clients if needed."},jv={extensionsPrefix:"x-",properties:{description:{type:"string",description:"An optional description for the parameter. CommonMark syntax MAY be used for rich text representation."},enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set."},default:{type:"string",description:"The default value to use for substitution, and to send, if an alternate value is not supplied."},examples:{type:"array",items:{type:"string"},description:"An array of examples of the parameter value."},location:{type:"string",description:"A runtime expression that specifies the location of the parameter value."}},description:"Describes a parameter included in a channel address."},Mv={extensionsPrefix:"x-",properties:{headers:"Schema",payload:e=>e&&e?.schemaFormat?{properties:{schema:"Schema",schemaFormat:{type:"string"}},required:["schema","schemaFormat"]}:"Schema",correlationId:"CorrelationId",contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A machine-friendly name for the message."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},description:"Describes a message received on a given channel and operation."},Lv={extensionsPrefix:"x-",properties:{tags:"TagList",title:{type:"string",description:"A human-friendly title for the operation."},summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",security:"SecuritySchemeList",bindings:"OperationBindings"},required:[],description:"Describes a trait that MAY be applied to an Operation Object. This object MAY contain any property from the Operation Object, except the action, channel, messages and traits ones."},Uv={extensionsPrefix:"x-",properties:{headers:e=>typeof e=="function"||ee.isPlainObject(e)?{properties:{schema:"Schema",schemaFormat:{type:"string"}}}:"Schema",correlationId:"CorrelationId",contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A machine-friendly name for the message."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},description:"Describes a trait that MAY be applied to a Message Object. This object MAY contain any property from the Message Object, except payload and traits."},Fv={extensionsPrefix:"x-",properties:{action:{type:"string",enum:["send","receive"],description:"Required. Use send when it's expected that the application will send a message to the given channel, and receive when the application should expect receiving messages from the given channel."},channel:"Channel",title:{type:"string",description:"A human-friendly title for the operation."},tags:"TagList",summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecuritySchemeList",bindings:"OperationBindings",traits:"OperationTraitList",messages:"MessageList",reply:"OperationReply"},required:["action","channel"]},Bv={extensionsPrefix:"x-",properties:{channel:"Channel",messages:"MessageList",address:"OperationReplyAddress"},description:"Describes the reply part that MAY be applied to an Operation Object. If an operation implements the request/reply pattern, the reply object represents the response message."},zv={extensionsPrefix:"x-",properties:{location:{type:"string",description:"REQUIRED. A runtime expression that specifies the location of the reply address."},description:{type:"string",description:"An optional description of the address. CommonMark syntax can be used for rich text representation."}},required:["location"],description:"An object that specifies where an operation has to send the reply."},Vv={extensionsPrefix:"x-",properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",replies:"NamedOperationReplies",replyAddresses:"NamedOperationRelyAddresses",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",tags:"NamedTags",externalDocs:"NamedExternalDocs",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"NamedChannels",operations:"NamedOperations",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"},description:"Holds a set of reusable objects for different aspects of the AsyncAPI specification. All objects defined within the components object will have no effect on the API unless they are explicitly referenced from properties outside the components object."},Kv={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","availableScopes"],description:"Configuration for the OAuth Implicit flow."},Hv={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"],description:"Configuration for the OAuth Resource Owner Protected Credentials flow."},Gv={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"],description:"Configuration for the OAuth Client Credentials flow."},Yv={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","availableScopes"],description:"Configuration for the OAuth Authorization Code flow."},Qv={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"],description:'REQUIRED. The type of the security scheme. Valid values are "userPassword", "apiKey", "X509", "symmetricEncryption", "asymmetricEncryption", "httpApiKey", "http", "oauth2", "openIdConnect", "plain", "scramSha256", "scramSha512", and "gssapi".'},description:{type:"string",description:"A short description for security scheme. CommonMark syntax MAY be used for rich text representation."},name:{type:"string",description:"REQUIRED. The name of the header, query or cookie parameter to be used."},in:{type:"string",enum:["query","header","cookie","user","password"],description:'REQUIRED. The location of the API key. Valid values are "user" and "password" for apiKey and "query", "header" or "cookie" for httpApiKey.'},scheme:{type:"string",description:"REQUIRED. The name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235."},bearerFormat:{type:"string",description:"A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes."},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string",description:"REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of an absolute URL."},scopes:{type:"array",items:{type:"string"},description:"List of the needed scope names. An empty array means no scopes are needed."}},required(e){switch(e?.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e?.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description","scopes"];case"openIdConnect":return["type","openIdConnectUrl","description","scopes"];default:return["type","description"]}},extensionsPrefix:"x-",description:"Defines a security scheme that can be used by the operations."},Wv={...Rt.ServerBindings,properties:{...Rt.ServerBindings.properties,ros2:"Ros2ServerBinding"}},Jv={...Rt.ChannelBindings,properties:{...Rt.ChannelBindings.properties,ros2:"Ros2ChannelBinding"}},Xv={...Rt.OperationBindings,properties:{...Rt.OperationBindings.properties,ros2:"Ros2OperationBinding"}},Zv={...Rt.MessageBindings,properties:{...Rt.MessageBindings.properties,ros2:"Ros2MessageBinding"}},Ou={...Rt,...hv,ServerBindings:Wv,ChannelBindings:Jv,OperationBindings:Xv,MessageBindings:Zv,CorrelationId:Eu,SecuritySchemeFlows:Tu,ServerVariable:bu,Contact:wu,License:Su,MessageExample:xu,Tag:yu,Dependencies:ta,Schema:Zs,Discriminator:na,DiscriminatorMapping:ra,SchemaProperties:ea,ServerMap:vu,ExternalDocs:gu,Root:kv,Channel:Dv,Parameter:jv,Info:Cv,Server:qv,MessageTrait:Uv,Operation:Fv,OperationReply:Bv,OperationReplyAddress:zv,Components:Vv,ImplicitFlow:Kv,PasswordFlow:Hv,ClientCredentials:Gv,AuthorizationCode:Yv,SecurityScheme:Qv,Message:Mv,OperationTrait:Lv,ServerVariablesMap:N.mapOf("ServerVariable"),NamedTags:N.mapOf("Tag"),NamedExternalDocs:N.mapOf("ExternalDocs"),NamedChannels:N.mapOf("Channel"),ParametersMap:N.mapOf("Parameter"),NamedOperations:N.mapOf("Operation"),NamedOperationReplies:N.mapOf("OperationReply"),NamedOperationRelyAddresses:N.mapOf("OperationReplyAddress"),NamedSchemas:N.mapOf("Schema"),NamedMessages:N.mapOf("Message"),NamedMessageTraits:N.mapOf("MessageTrait"),NamedOperationTraits:N.mapOf("OperationTrait"),NamedParameters:N.mapOf("Parameter"),NamedSecuritySchemes:N.mapOf("SecurityScheme"),NamedCorrelationIds:N.mapOf("CorrelationId"),ServerList:N.listOf("Server"),SecuritySchemeList:N.listOf("SecurityScheme"),MessageList:N.listOf("Message"),OperationTraitList:N.listOf("OperationTrait"),MessageTraitList:N.listOf("MessageTrait"),MessageExampleList:N.listOf("MessageExample"),TagList:N.listOf("Tag")},eb={properties:{arazzo:{type:"string",description:"REQUIRED. This string MUST be the version number of the Arazzo Specification that the Arazzo Description uses. The arazzo field MUST be used by tooling to interpret the Arazzo Description."},info:"Info",sourceDescriptions:"SourceDescriptions",workflows:"Workflows",components:"Components"},required:["arazzo","info","sourceDescriptions","workflows"],extensionsPrefix:"x-"},tb={properties:{},additionalProperties:"Parameter"},rb={properties:{},additionalProperties:"SuccessActionObject"},nb={properties:{},additionalProperties:"FailureActionObject"},ib={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},ob=N.mapOf("Schema"),sb={properties:{title:{type:"string",description:"REQUIRED. A human readable title of the Arazzo Description."},description:{type:"string",description:"A description of the purpose of the workflows defined. CommonMark syntax MAY be used for rich text representation."},summary:{type:"string",description:"A short summary of the Arazzo Description."},version:{type:"string",description:"REQUIRED. The version identifier of the Arazzo document (which is distinct from the Arazzo Specification version)."}},required:["title","version"],extensionsPrefix:"x-",description:"The object provides metadata about API workflows defined in this Arazzo document. The metadata MAY be used by the clients if needed."},ab={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},cb={properties:{name:{type:"string",description:"REQUIRED. A unique name for the source description. Tools and libraries MAY use the name to uniquely identify a source description, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},type:{type:"string",enum:["openapi"],description:'The type of source description. Possible values are "openapi".'},url:{type:"string",description:"REQUIRED. A URL to a source description to be used by a workflow. If a relative reference is used, it MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.2."},"x-serverUrl":{type:"string"}},required:["name","type","url"],extensionsPrefix:"x-",description:"Describes a source description (such as an OpenAPI description) that will be referenced by one or more workflows described within an Arazzo Description."},pb={properties:{name:{type:"string",description:"REQUIRED. A unique name for the source description. Tools and libraries MAY use the name to uniquely identify a source description, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},type:{type:"string",enum:["arazzo"],description:'The type of source description. Possible values are "arazzo".'},url:{type:"string",description:"REQUIRED. A URL to a source description to be used by a workflow. If a relative reference is used, it MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.2."}},required:["name","type","url"],extensionsPrefix:"x-",description:"Describes a source description (such as an OpenAPI description) that will be referenced by one or more workflows described within an Arazzo Description."},lb={properties:{reference:{type:"string",description:"REQUIRED. A Runtime Expression used to reference the desired object."},value:{}},required:["reference"],extensionsPrefix:"x-",description:"A simple object to allow referencing of objects contained within the Components Object. It can be used from locations within steps or workflows in the Arazzo Description. Note - Input Objects MUST use standard JSON Schema referencing via the $ref keyword while all non JSON Schema objects use this object and its expression based referencing mechanism."},ub={properties:{in:{type:"string",enum:["header","query","path","cookie"],description:'The location of the parameter. Possible values are "path", "query", "header", or "cookie". When the step in context specifies a workflowId, then all parameters map to workflow inputs. In all other scenarios (e.g., a step specifies an operationId), the in field MUST be specified.'},name:{type:"string",description:"REQUIRED. The name of the parameter. Parameter names are case sensitive."},value:{}},required:["name","value"],extensionsPrefix:"x-",description:"Describes a single step parameter. A unique parameter is defined by the combination of a name and in fields."},db={properties:{},items:e=>e?.reference?"ReusableObject":"Parameter"},fb={properties:{workflowId:{type:"string",description:"REQUIRED. The unique identifier of the workflow."},summary:{type:"string",description:"A short summary of what the workflow does."},description:{type:"string",description:"A verbose explanation of the workflow behavior. CommonMark syntax MAY be used for rich text representation."},parameters:"Parameters",dependsOn:{type:"array",items:{type:"string"},description:"A list of workflows that MUST be completed before this workflow can be processed. Each value provided MUST be a workflowId."},inputs:"Schema",outputs:"Outputs",steps:"Steps",successActions:"OnSuccessActionList",failureActions:"OnFailureActionList","x-security":"ExtendedSecurityList"},required:["workflowId","steps"],extensionsPrefix:"x-",description:"Describes the steps to be taken across one or more APIs to achieve an objective. The workflow object MAY define inputs needed in order to execute workflow steps, where the defined steps represent a call to an API operation or another workflow, and a set of outputs."},mb=N.listOf("Workflow"),hb=N.listOf("Step"),yb={properties:{stepId:{type:"string",description:"REQUIRED. Unique string to represent the step. The stepId MUST be unique amongst all steps described in the workflow. The stepId value is case-sensitive. Tools and libraries MAY use the stepId to uniquely identify a workflow step, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},description:{type:"string",description:"A description of the step. CommonMark syntax MAY be used for rich text representation."},operationId:{type:"string",description:"The name of an existing, resolvable operation, as defined with a unique operationId and existing within one of the sourceDescriptions. The referenced operation will be invoked by this workflow step. If multiple (non arazzo type) sourceDescriptions are defined, then the operationId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<operationId>) to avoid ambiguity or potential clashes. This field is mutually exclusive of the operationPath and workflowId fields respectively."},operationPath:{type:"string",description:"A reference to a Source Description Object combined with a JSON Pointer to reference an operation. This field is mutually exclusive of the operationId and workflowId fields respectively. The operation being referenced MUST be described within one of the sourceDescriptions descriptions. A Runtime Expression syntax MUST be used to identify the source description document. If the referenced operation has an operationId defined then the operationId SHOULD be preferred over the operationPath."},workflowId:{type:"string",description:"The workflowId referencing an existing workflow within the Arazzo Description. If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. The field is mutually exclusive of the operationId and operationPath fields respectively."},parameters:"Parameters",successCriteria:N.listOf("CriterionObject",{description:"A list of assertions to determine the success of the step. Each assertion is described using a Criterion Object. All assertions MUST be satisfied for the step to be deemed successful."}),onSuccess:"OnSuccessActionList",onFailure:"OnFailureActionList",outputs:"Outputs","x-operation":"ExtendedOperation","x-security":"ExtendedSecurityList",requestBody:"RequestBody"},required:["stepId"],requiredOneOf:["x-operation","operationId","operationPath","workflowId"],extensionsPrefix:"x-",description:"Describes a single workflow step which MAY be a call to an API operation (OpenAPI Operation Object) or another Workflow Object."},gb={properties:{},additionalProperties:{type:"string"},description:"A map between a friendly name and a dynamic output value defined using a Runtime Expression. The name MUST use keys that match the regular expression: ^[a-zA-Z0-9_.-]+$."},vb={properties:{contentType:{type:"string",description:"The Content-Type for the request content. If omitted then refer to Content-Type specified at the targeted operation to understand serialization requirements."},payload:{},replacements:N.listOf("Replacement",{description:"A list of locations and values to set within a payload."})},required:["payload"],extensionsPrefix:"x-",description:"A single request body describing the Content-Type and request body content to be passed by a step to an operation."},bb={properties:{target:{type:"string",description:"REQUIRED. A JSON Pointer or XPath Expression which MUST be resolved against the request body. Used to identify the location to inject the value."},value:{}},required:["target","value"],extensionsPrefix:"x-",description:"Describes a location within a payload (e.g., a request body) and a value to set within the location."},wb={properties:{schemeName:{type:"string",description:"REQUIRED. Name of the security scheme from your OpenAPI specification. Use with operationId or operationPath at the step level."},values:{},scheme:"SecurityScheme"},required:["values"],requiredOneOf:["schemeName","scheme"],description:"Use the x-security extension to define authorization flows based on OpenAPI security schemes. Respect automatically constructs appropriate authorization headers, queries, or cookies based on your parameters."},Sb={properties:{url:{type:"string",description:"REQUIRED. A valid url including the protocol (such as http://localhost:4000/my-api or https://example.com/api/my-api)."},method:{enum:["get","post","put","delete","patch","head","options","trace","connect","query","GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","QUERY"],description:"REQUIRED. HTTP operation method. Possible values: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, CONNECT, TRACE. You can also use their lowercase equivalents."}},required:["url","method"],description:"x-operation enables you to specify a URL and HTTP method for an operation that is not described in the Arazzo sourceDescriptions section. The primary application of the x-operation extension is to facilitate calls to third-party APIs or other endpoints that are needed in a sequence of API calls."},Eb={properties:{condition:{type:"string",description:"REQUIRED. The condition to apply. Conditions can be simple (e.g. $statusCode == 200 which applies an operator on a value obtained from a runtime expression), or a regex, or a JSONPath expression. For regex or JSONPath, the type and context MUST be specified."},context:{type:"string",description:"A Runtime Expression used to set the context for the condition to be applied on. If type is specified, then the context MUST be provided (e.g. $response.body would set the context that a JSONPath query expression could be applied to)."},type:e=>{if(e)return typeof e=="string"?{enum:["regex","jsonpath","simple","xpath"],description:"The type of condition to be applied."}:e?.type==="jsonpath"?"JSONPathCriterion":"XPathCriterion"}},required:["condition"],description:"An object used to specify the context, conditions, and condition types that can be used to prove or satisfy assertions specified in Step Object successCriteria, Success Action Object criteria, and Failure Action Object criteria."},xb={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},Tb={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},Pb={properties:{name:{type:"string",description:"REQUIRED. The name of the success action. Names are case sensitive."},type:{type:"string",enum:["goto","end"],description:'REQUIRED. The type of action to take. Possible values are "end" or "goto".'},stepId:{type:"string",description:'The stepId to transfer to upon success of the step. This field is only relevant when the type field value is "goto". The referenced stepId MUST be within the current workflow. This field is mutually exclusive to workflowId.'},workflowId:{type:"string",description:'The workflowId referencing an existing workflow within the Arazzo Description to transfer to upon success of the step. This field is only relevant when the type field value is "goto". If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. This field is mutually exclusive to stepId.'},criteria:N.listOf("CriterionObject",{description:"A list of assertions to determine if this action SHALL be executed. Each assertion is described using a Criterion Object. All criteria assertions MUST be satisfied for the action to be executed."})},required:["type","name"],description:"A single success action which describes an action to take upon success of a workflow step."},Ob={properties:{},items:e=>e?.type&&e?.name?"SuccessActionObject":"ReusableObject"},Ib={properties:{name:{type:"string",description:"REQUIRED. The name of the failure action. Names are case sensitive."},type:{type:"string",enum:["goto","retry","end"],description:'REQUIRED. The type of action to take. Possible values are "end", "retry", or "goto".'},workflowId:{type:"string",description:'The workflowId referencing an existing workflow within the Arazzo Description to transfer to upon failure of the step. This field is only relevant when the type field value is "goto" or "retry". If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. This field is mutually exclusive to stepId. When used with "retry", context transfers back upon completion of the specified workflow.'},stepId:{type:"string",description:'The stepId to transfer to upon failure of the step. This field is only relevant when the type field value is "goto" or "retry". The referenced stepId MUST be within the current workflow. This field is mutually exclusive to workflowId. When used with "retry", context transfers back upon completion of the specified step.'},retryAfter:{type:"number",minimum:0,description:'A non-negative decimal indicating the seconds to delay after the step failure before another attempt SHALL be made. Note: if an HTTP Retry-After response header was returned to a step from a targeted operation, then it SHOULD overrule this particular field value. This field only applies when the type field value is "retry".'},retryLimit:{type:"number",minimum:0,description:'A non-negative integer indicating how many attempts to retry the step MAY be attempted before failing the overall step. If not specified then a single retry SHALL be attempted. This field only applies when the type field value is "retry". The retryLimit MUST be exhausted prior to executing subsequent failure actions.'},criteria:N.listOf("CriterionObject",{description:"A list of assertions to determine if this action SHALL be executed. Each assertion is described using a Criterion Object."})},required:["type","name"],description:"A single failure action which describes an action to take upon failure of a workflow step."},_b={properties:{},items:e=>e?.type&&e?.name?"FailureActionObject":"ReusableObject"},rt={Root:eb,Info:sb,SourceDescriptions:ab,OpenAPISourceDescription:cb,ArazzoSourceDescription:pb,Parameters:db,Parameter:ub,ReusableObject:lb,Workflows:mb,Workflow:fb,Steps:hb,Step:yb,RequestBody:vb,Replacement:bb,ExtendedOperation:Sb,ExtendedSecurityList:N.listOf("ExtendedSecurity"),ExtendedSecurity:wb,Outputs:gb,CriterionObject:Eb,XPathCriterion:Tb,JSONPathCriterion:xb,SuccessActionObject:Pb,OnSuccessActionList:Ob,FailureActionObject:Ib,OnFailureActionList:_b,Schema:Ze.Schema,NamedSchemas:N.mapOf("Schema"),ExternalDocs:Ze.ExternalDocs,DiscriminatorMapping:Ze.DiscriminatorMapping,Discriminator:Ze.Discriminator,DependentRequired:Ze.DependentRequired,SchemaProperties:Ze.SchemaProperties,PatternProperties:Ze.SchemaProperties,Components:ib,NamedInputs:ob,NamedParameters:tb,NamedSuccessActions:rb,NamedFailureActions:nb,Xml:Ze.Xml,SecurityScheme:Ze.SecurityScheme,OAuth2Flows:Ze.OAuth2Flows,ImplicitFlow:Ze.ImplicitFlow,PasswordFlow:Ze.PasswordFlow,ClientCredentials:Ze.ClientCredentials,AuthorizationCode:Ze.AuthorizationCode,DeviceAuthorization:Ze.DeviceAuthorization},Ab={...rt.Root,properties:{...rt.Root.properties,$self:{type:"string",description:"This string MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.1. The $self field provides the self-assigned URI of this document, which also serves as its base URI in accordance with [RFC3986] Section 5.1.1."}}},Rb={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":e?.type==="asyncapi"?"AsyncAPISourceDescription":"ArazzoSourceDescription"},$b={properties:{name:{type:"string",description:"REQUIRED. A unique name for the source description. Tools and libraries MAY use the name to uniquely identify a source description, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},type:{type:"string",enum:["asyncapi"],description:'The type of source description. Possible values are "asyncapi".'},url:{type:"string",description:"REQUIRED. A URL to a source description to be used by a workflow. If a relative reference is used, it MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.2."}},required:["name","type","url"],extensionsPrefix:"x-",description:"Describes a source description (such as an AsyncAPI description) that will be referenced by one or more workflows described within an Arazzo Description."},Nb={...rt.Parameter,properties:{...rt.Parameter.properties,in:{type:"string",enum:["header","query","path","cookie","querystring"],description:'The location of the parameter. Possible values are "path", "query", "querystring", "header", or "cookie". When the step in context specifies a workflowId, then all parameters map to workflow inputs. In all other scenarios (e.g., a step specifies an operationId), the in field MUST be specified.'}}},kb={...rt.Step,properties:{...rt.Step.properties,channelPath:{type:"string",description:"A reference to a Source Description Object combined with a JSON Pointer to reference an AsyncAPI channel. This field is mutually exclusive of the operationId, operationPath, and workflowId fields respectively. A Runtime Expression syntax MUST be used to identify the source description document."},action:{type:"string",enum:["send","receive"],description:'Describes the intent of the message flow for an AsyncAPI operation. Possible values are "send" or "receive".'},correlationId:{type:"string",description:'A Runtime Expression used to correlate a request with a response when interacting with asynchronous APIs. Applies to "receive" steps.'},timeout:{type:"integer",minimum:0,description:"A non-negative integer indicating the maximum amount of time (in milliseconds) to wait before timing out."},dependsOn:{type:"array",items:{type:"string"},description:"A list of steps that MUST be completed before this step can be executed. Each value provided MUST be a stepId."}},requiredOneOf:["x-operation","operationId","operationPath","channelPath","workflowId"]},Db={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["rfc9535","draft-goessner-dispatch-jsonpath-00"]}},required:["type","version"]},qb={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-31","xpath-30","xpath-20","xpath-10"]}},required:["type","version"]},Cb={properties:{type:{type:"string",enum:["jsonpointer"]},version:{type:"string",enum:["rfc6901"]}},required:["type","version"]},jb={properties:{type:{type:"string",enum:["jsonpath","xpath","jsonpointer"],description:"REQUIRED. The selector type. The options allowed are jsonpath, xpath, or jsonpointer."},version:{type:"string",description:"REQUIRED. A short hand string representing the version of the expression type being used."}},required:["type","version"]},Mb=e=>e?.type==="jsonpath"?"JSONPathExpression":e?.type==="xpath"?"XPathExpression":e?.type==="jsonpointer"?"JSONPointerExpression":"ExpressionType",ia=(e,t,{optional:r=!0}={})=>n=>{if(!(r&&!n))return typeof n=="string"?{enum:e,description:t}:Mb(n)},Lb={...rt.CriterionObject,properties:{...rt.CriterionObject.properties,type:ia(["regex","jsonpath","simple","xpath"],"The type of condition to be applied.")}},Ub={properties:{context:{type:"string",description:"REQUIRED. A Runtime Expression that evaluates to structured data (e.g., $response.body) the selector is applied to."},selector:{type:"string",description:"REQUIRED. The selector expression (JSONPath, XPath, or JSON Pointer) used to extract data from the context."},type:ia(["jsonpath","xpath","jsonpointer"],"The type of selector to be applied.",{optional:!1})},required:["context","selector","type"],extensionsPrefix:"x-",description:"An object used to extract specific data from structured content using JSONPath, XPath, or JSON Pointer expressions."},Fb={properties:{},additionalProperties:e=>ee.isPlainObject(e)?"SelectorObject":{type:"string"},description:"A map between a friendly name and a dynamic output value defined using a Runtime Expression or a Selector Object. The name MUST use keys that match the regular expression: ^[a-zA-Z0-9_.-]+$."},Bb={...rt.Replacement,properties:{...rt.Replacement.properties,value:e=>ee.isPlainObject(e)&&"selector"in e?"SelectorObject":{},targetSelectorType:ia(["jsonpath","xpath","jsonpointer"],"The type of selector used in the target field.")}},zb={...rt.SuccessActionObject,properties:{...rt.SuccessActionObject.properties,parameters:"Parameters"}},Vb={...rt.FailureActionObject,properties:{...rt.FailureActionObject.properties,parameters:"Parameters"}},Iu={...rt,Root:Ab,SourceDescriptions:Rb,AsyncAPISourceDescription:$b,Parameter:Nb,Step:kb,CriterionObject:Lb,JSONPathExpression:Db,XPathExpression:qb,JSONPointerExpression:Cb,ExpressionType:jb,SelectorObject:Ub,Outputs:Fb,Replacement:Bb,SuccessActionObject:zb,FailureActionObject:Vb},Kb={properties:{overlay:{type:"string",description:"REQUIRED. This string MUST be the version number of the Overlay Specification that the Overlay document uses. The overlay field SHOULD be used by tooling to interpret the Overlay document."},info:"Info",extends:{type:"string",description:"URI reference that identifies the target document (such as an [OpenAPI] document) this overlay applies to."},actions:"Actions"},required:["overlay","info","actions"],extensionsPrefix:"x-",description:"This is the root object of the Overlay."},Hb={properties:{title:{type:"string",description:"REQUIRED. A human readable description of the purpose of the overlay."},version:{type:"string",description:"REQUIRED. A version identifer for indicating changes to the Overlay document."}},required:["title","version"],extensionsPrefix:"x-",description:"The object provides metadata about the Overlay. The metadata MAY be used by the clients if needed."},Gb=N.listOf("Action"),Yb={properties:{target:{type:"string",description:"REQUIRED A JSONPath expression selecting nodes in the target document."},description:{type:"string",description:"A description of the action. [CommonMark] syntax MAY be used for rich text representation."},update:{},remove:{type:"boolean",description:"A boolean value that indicates that the target object or array MUST be removed from the the map or array it is contained in. The default value is false."}},required:["target"],extensionsPrefix:"x-",description:"This object represents one or more changes to be applied to the target document at the location defined by the target JSONPath expression"},_u={Root:Kb,Info:Hb,Actions:Gb,Action:Yb},Qb={properties:{openrpc:{type:"string",description:"REQUIRED. This string MUST be the semantic version number of the OpenRPC Specification version that the OpenRPC document uses. The openrpc field SHOULD be used by tooling specifications and clients to interpret the OpenRPC document. This is not related to the API info.version string."},info:"Info",servers:"ServerList",methods:"MethodList",components:"Components",externalDocs:"ExternalDocs"},required:["openrpc","info","methods"],extensionsPrefix:"x-",description:"This is the root object of the OpenRPC document. The contents of this object represent a whole OpenRPC document. How this object is constructed or stored is outside the scope of the OpenRPC Specification."},Wb={properties:{title:{type:"string",description:"REQUIRED. The title of the application."},description:{type:"string",description:"A verbose description of the application. GitHub Flavored Markdown syntax MAY be used for rich text representation."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. MUST be in the format of a URL."},contact:"Contact",license:"License",version:{type:"string",description:"REQUIRED. The version of the OpenRPC document (which is distinct from the OpenRPC Specification version or the API implementation version)."}},required:["title","version"],extensionsPrefix:"x-",description:"REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required."},Jb={properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information. MUST be in the format of a URL."},email:{type:"string",description:"The email address of the contact person/organization. MUST be in the format of an email address."}},extensionsPrefix:"x-",description:"Contact information for the exposed API."},Xb={properties:{name:{type:"string",description:"REQUIRED. The license name used for the API."},url:{type:"string",description:"A URL to the license used for the API. MUST be in the format of a URL."}},required:["name"],extensionsPrefix:"x-",description:"License information for the exposed API."},Zb={properties:{url:{type:"string",description:"REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the OpenRPC document is being served. Server Variables are passed into the Runtime Expression to produce a server URL."},name:{type:"string",description:"REQUIRED. A name to be used as the canonical name for the server."},description:{type:"string",description:"An optional string describing the host designated by the URL. GitHub Flavored Markdown syntax MAY be used for rich text representation."},summary:{type:"string",description:"A short summary of what the server is."},variables:"ServerVariablesMap"},required:["url"],extensionsPrefix:"x-",description:"An object representing a Server."},e0={properties:{enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set."},default:{type:"string",description:"REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. Note this behavior is different than the Schema Object’s treatment of default values, because in those cases parameter values are optional."},description:{type:"string",description:"An optional description for the server variable. GitHub Flavored Markdown syntax MAY be used for rich text representation."}},required:["default"],extensionsPrefix:"x-",description:"An object representing a Server Variable for server URL template substitution."},t0={properties:{name:{type:"string",description:"REQUIRED. The cannonical name for the method. The name MUST be unique within the methods array."},tags:"TagList",summary:{type:"string",description:"A short summary of what the method does."},description:{type:"string",description:"A verbose explanation of the method behavior. GitHub Flavored Markdown syntax MAY be used for rich text representation."},externalDocs:"ExternalDocs",params:"ContentDescriptorList",result:"ContentDescriptor",deprecated:{type:"boolean",description:"Declares this method to be deprecated. Consumers SHOULD refrain from usage of the declared method. Default value is false."},servers:"ServerList",errors:"ErrorList",links:"LinkList",paramStructure:{enum:["by-name","by-position","either"]},examples:"ExamplePairingList"},required:["name","params"],extensionsPrefix:"x-",description:"Describes the interface for the given method name. The method name is used as the method field of the JSON-RPC body. It therefore MUST be unique."},r0={properties:{name:{type:"string",description:"REQUIRED. Name of the content that is being described. If the content described is a method parameter assignable by-name, this field SHALL define the parameter’s key (ie name)."},summary:{type:"string",description:"A short summary of the content that is being described."},description:{type:"string",description:"A verbose explanation of the content descriptor behavior. GitHub Flavored Markdown syntax MAY be used for rich text representation."},required:{type:"boolean",description:"Determines if the content is a required field. Default value is false."},schema:"Schema",deprecated:{type:"boolean",description:"Specifies that the content is deprecated and SHOULD be transitioned out of usage. Default value is false."}},required:["name","schema"],extensionsPrefix:"x-",description:"Content Descriptors are objects that do just as they suggest - describe content. They are reusable ways of describing either parameters or result. They MUST have a schema."},n0={properties:{name:{type:"string",description:"REQUIRED Name for the example pairing."},description:{type:"string",description:"A verbose explanation of the example pairing."},summary:{type:"string",description:"Short description for the example pairing."},params:"ExampleList",result:"Example"},extensionsPrefix:"x-",description:"The Example Pairing object consists of a set of example params and result. The result is what you can expect from the JSON-RPC service given the exact params."},i0={properties:{name:{type:"string",description:"Cannonical name of the example."},summary:{type:"string",description:"Short description for the example."},description:{type:"string",description:"A verbose explanation of the example. GitHub Flavored Markdown syntax MAY be used for rich text representation."},value:{resolvable:!1,description:"Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON, use a string value to contain the example, escaping where necessary."},externalValue:{type:"string",description:"A URL that points to the literal example. This provides the capability to reference examples that cannot easily be included in JSON documents. The value field and externalValue field are mutually exclusive."}},extensionsPrefix:"x-",description:"The Example object is an object that defines an example that is intended to match the schema of a given Content Descriptor."},o0={properties:{name:{type:"string",description:"REQUIRED. Canonical name of the link."},description:{type:"string",description:"A description of the link. GitHub Flavored Markdown syntax MAY be used for rich text representation."},summary:{type:"string",description:"Short description for the link."},method:{type:"string",description:"The name of an existing, resolvable OpenRPC method, as defined with a unique method. This field MUST resolve to a unique Method Object. As opposed to Open Api, Relative method values ARE NOT permitted."},params:{type:"object",description:"A map representing parameters to pass to a method as specified with method. The key is the parameter name to be used, whereas the value can be a constant or a runtime expression to be evaluated and passed to the linked method."},server:"Server"},required:["name"],extensionsPrefix:"x-",description:"The Link object represents a possible design-time link for a result. The presence of a link does not guarantee the caller’s ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between results and other methods."},s0={properties:{code:{type:"integer",description:"REQUIRED. A Number that indicates the error type that occurred. This MUST be an integer. The error codes from and including -32768 to -32000 are reserved for pre-defined errors. These pre-defined errors SHOULD be assumed to be returned from any JSON-RPC api."},message:{type:"string",description:"REQUIRED. A String providing a short description of the error. The message SHOULD be limited to a concise single sentence."},data:{resolvable:!1,description:"A Primitive or Structured value that contains additional information about the error. This may be omitted. The value of this member is defined by the Server (e.g. detailed error information, nested errors etc.)."}},required:["code","message"],extensionsPrefix:"x-",description:"Defines an application level error."},a0={properties:{contentDescriptors:"NamedContentDescriptors",schemas:"NamedSchemas",examples:"NamedExamples",links:"NamedLinks",errors:"NamedErrors",examplePairingObjects:"NamedExamplePairingObjects",tags:"NamedTags"},extensionsPrefix:"x-",description:"Holds a set of reusable objects for different aspects of the OpenRPC. All objects defined within the components object will have no effect on the API unless they are explicitly referenced from properties outside the components object."},c0={properties:{name:{type:"string",description:"REQUIRED. The name of the tag."},summary:{type:"string",description:"A short summary of the tag."},description:{type:"string",description:"A verbose explanation for the tag. GitHub Flavored Markdown syntax MAY be used for rich text representation."},externalDocs:"ExternalDocs"},required:["name"],extensionsPrefix:"x-",description:"Adds metadata to a single tag that is used by the Method Object. It is not mandatory to have a Tag Object per tag defined in the Method Object instances."},p0={properties:{description:{type:"string",description:"A verbose explanation of the target documentation. GitHub Flavored Markdown syntax MAY be used for rich text representation."},url:{type:"string",description:"REQUIRED. The URL for the target documentation. Value MUST be in the format of a URL."}},required:["url"],extensionsPrefix:"x-",description:"Allows referencing an external resource for extended documentation."},Au={Root:Qb,Info:Wb,Contact:Jb,License:Xb,Server:Zb,ServerList:N.listOf("Server"),ServerVariable:e0,ServerVariablesMap:N.mapOf("ServerVariable"),Method:t0,MethodList:N.listOf("Method"),ContentDescriptor:r0,ContentDescriptorList:N.listOf("ContentDescriptor"),ExamplePairing:n0,ExamplePairingList:N.listOf("ExamplePairing"),Example:i0,ExampleList:N.listOf("Example"),Link:o0,LinkList:N.listOf("Link"),ErrorObject:s0,ErrorList:N.listOf("ErrorObject"),Components:a0,Tag:c0,TagList:N.listOf("Tag"),ExternalDocs:p0,Schema:Zs,SchemaProperties:ea,Dependencies:ta,DiscriminatorMapping:ra,Discriminator:na,NamedContentDescriptors:N.mapOf("ContentDescriptor"),NamedSchemas:N.mapOf("Schema"),NamedExamples:N.mapOf("Example"),NamedLinks:N.mapOf("Link"),NamedErrors:N.mapOf("ErrorObject"),NamedExamplePairingObjects:N.mapOf("ExamplePairing"),NamedTags:N.mapOf("Tag")};var Ru={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},jr={type:"object",properties:Ru,additionalProperties:!1},l0={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},sn={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:{...Ru,like:jr,dislike:jr,satisfied:jr,neutral:jr,dissatisfied:jr},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:l0},additionalProperties:!1}},additionalProperties:!1},u0={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},oa={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},_s={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:sn,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:oa,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:u0,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},mr={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},d0={type:"object",properties:{name:{type:"string"},items:mr,queries:mr,mutations:mr,subscriptions:mr,types:mr,directives:mr},required:["name"],additionalProperties:!1},f0={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:d0},otherItemsGroupName:{type:"string"}}},m0={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},h0={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},y0={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:m0,license:h0},additionalProperties:!1},Vi={type:"object",properties:{menu:{type:"object",properties:{...f0.properties},additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:oa,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:sn,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:y0},additionalProperties:!1},g0={type:"object",properties:{downloadUrls:oa,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},excludeFromSearch:{type:"boolean"},samplesMaxInlineArgs:{type:"number"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},feedback:sn,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},v0={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"]},b0={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"}}},Ga={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},w0={type:"object",properties:{beforeInfo:{type:"array",items:Ga},end:{type:"array",items:Ga}}},ir={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},xn={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},S0={type:"object",properties:lo(ir.properties,["light","dark"])},E0={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"}}},x0={type:"object",properties:{error:xn,info:xn,redirect:xn,success:xn}},T0={type:"object",properties:Ar(ir.properties,["dark"])},P0={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},O0={type:"object",properties:{accent:ir,border:S0,error:ir,http:E0,primary:ir,responses:x0,secondary:T0,success:ir,text:P0,tonalOffset:{type:"number"},warning:ir}},Tn={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},I0={type:"object",properties:{small:Tn,medium:Tn,large:Tn,xlarge:Tn}},$t={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},_0={type:"object",properties:{...Ar($t.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:I0}},Ya={type:"object",properties:lo($t.properties,["fontSize","lineHeight"])},A0={type:"object",properties:{medium:Ya,small:Ya}},R0={type:"object",properties:{...Ar($t.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:A0}},$0={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},N0={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},Qa={type:"object",properties:{fullWidth:{type:"boolean"}}},k0={type:"object",properties:{buttons:_0,httpBadges:R0,layoutControls:$0,panels:N0,tryItButton:Qa,tryItSendButton:Qa}},Ki={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},D0={type:"object",properties:{maxWidth:Ki}},q0={type:"object",properties:{maxWidth:Ki,middlePanelMaxWidth:Ki}},C0={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:D0,"three-panel":q0}},Wa={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},j0={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:Wa,defaultDetailsWidth:{type:"string"},examples:Wa,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},$u={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},M0={type:"object",properties:lo($u.properties,["textTransform"])},L0={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},U0={type:"object",properties:{...Ar($t.properties,["fontWeight","lineHeight"]),activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:$u,level1items:M0,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:L0,textColor:{type:"string"},width:{type:"string"}}},Pn={type:"object",properties:{...$t.properties,color:{type:"string"},transform:{type:"string"}}},F0={type:"object",properties:{...$t.properties,backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}}},B0={type:"object",properties:Ar($t.properties,["fontSize"])},z0={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},V0={type:"object",properties:{code:F0,fieldName:$t,...lo($t.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Pn,heading2:Pn,heading3:Pn,headings:B0,lineHeight:{type:"string"},links:z0,optimizeSpeed:{type:"boolean"},rightPanelHeading:Pn,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},K0={type:"object",properties:{color:{type:"string"},...Ar($t.properties,["fontWeight"])}},H0={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:K0}},G0={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},Y0={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},Ja={type:"object",properties:{custom:{type:"string"}}},Q0={type:"object",properties:{DownloadButton:Ja,NextSectionButton:Ja}},W0={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},J0={type:"object",properties:{borderRadius:{type:"string"}}},X0={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},Z0={type:"object",properties:{breakpoints:Ki,codeBlock:H0,colors:O0,components:k0,layout:C0,logo:G0,fab:Y0,overrides:Q0,rightPanel:W0,schema:j0,shape:J0,sidebar:U0,spacing:X0,typography:V0,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},ew={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:v0}},required:["languages"]},tw={properties:{theme:Z0,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:ew,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:b0,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:w0,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 lo(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function Ar(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var ut={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"},rw={rules:ut,oas2Rules:ut,oas3_0Rules:ut,oas3_1Rules:ut,oas3_2Rules:ut,async2Rules:ut,async3Rules:ut,arazzo1Rules:ut,arazzo1_1Rules:ut,overlay1Rules:ut,openrpc1Rules:ut,graphqlRules:ut},ht={nodeTypeName:void 0,type:"object",additionalProperties:!0},nw={preprocessors:ht,oas2Preprocessors:ht,oas3_0Preprocessors:ht,oas3_1Preprocessors:ht,oas3_2Preprocessors:ht,async2Preprocessors:ht,async3Preprocessors:ht,arazzo1Preprocessors:ht,arazzo1_1Preprocessors:ht,overlay1Preprocessors:ht,openrpc1Preprocessors:ht},yt={nodeTypeName:void 0,type:"object",additionalProperties:!0},iw={decorators:yt,oas2Decorators:yt,oas3_0Decorators:yt,oas3_1Decorators:yt,oas3_2Decorators:yt,async2Decorators:yt,async3Decorators:yt,arazzo1Decorators:yt,arazzo1_1Decorators:yt,overlay1Decorators:yt,openrpc1Decorators:yt},ow={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"},uo={...rw,...iw,...nw,extends:ow},Nu=e=>e,ot=Nu({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),We={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Xa={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},No={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}}},sa={type:"array",items:{...No,properties:{...No.properties,items:{type:"array",items:No}}}},sw={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},aw={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},cw={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}},pw={type:"object",properties:{facets:cw,...We.properties},additionalProperties:!1},lw={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},ku={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Du={type:"object",properties:{items:sa,...We.properties},additionalProperties:!1},qu={type:"object",additionalProperties:sw},Cu={type:"object",properties:{items:sa,copyrightText:{type:"string"},logo:We,...We.properties},additionalProperties:!1},ju={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...We.properties},additionalProperties:!1},Mu={type:"object",properties:{head:{type:"array",items:Xa},body:{type:"array",items:Xa}},additionalProperties:!1},Lu={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}},Uu={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:aw,filters:pw,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:lw},...We.properties},additionalProperties:!1},Fu={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},Bu={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...We.properties},additionalProperties:!1},zu={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},uw={type:"object",properties:{...We.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},Vu={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...We.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...We.properties},additionalProperties:!1},actions:uw},additionalProperties:!1},Ku={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...We.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...We.properties},additionalProperties:!1},expand:{type:"object",properties:{...We.properties},additionalProperties:!1},collapse:{type:"object",properties:{...We.properties},additionalProperties:!1}},additionalProperties:!1},Hu={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"},...We.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...We.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...We.properties},additionalProperties:!1},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Hi={..._s,properties:{..._s.properties,...tw.properties}};({..._s.properties});var dw={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},fw={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"]},mw={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},hw={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},yw={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"]},gw={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},vw={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"]},bw={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"]},ww={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:bw}},additionalProperties:!1,required:["trackingId"]},Gu={type:"object",properties:{adobe:dw,amplitude:fw,fullstory:mw,heap:hw,rudderstack:yw,segment:gw,gtm:vw,ga:ww}},Yu={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"},...We.properties},additionalProperties:!1},Qu={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Wu={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},Sw={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"}}}},Ew={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:Sw},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:sa,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Gi={type:"object",patternProperties:{".*":Ew}},Yi={nodeTypeName:ot.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:ot.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:ot.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:ot.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...uo},additionalProperties:!1}},targets:{nodeTypeName:ot.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:ot.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:ot.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:ot.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},xw={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},Tw={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},Pw={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},Dt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:Tw},excludes:{type:"array",items:xw},filters:{type:"array",items:Pw},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},Ow={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},Iw={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:Ow},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},_w={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:Iw,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},Aw={type:"object",additionalProperties:_w},Ju={type:"object",properties:{show:{type:"boolean"},entityTypes:Aw,catalogs:{type:"object",properties:{all:Dt,services:Dt,domains:Dt,teams:Dt,users:Dt,apiDescriptions:Dt,dataSchemas:Dt,apiOperations:Dt},additionalProperties:Dt}},additionalProperties:!1},Za={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},aa={type:"string",enum:["and","or"]},As={type:"object",properties:{field:{type:"string"},operator:Za,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Za,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},Rw={type:"object",properties:{operator:aa,conditions:{type:"array",items:As}},required:["operator","conditions"],additionalProperties:!1},ec={type:"array",items:{oneOf:[As,{type:"object",properties:{operator:aa,conditions:{type:"array",items:{oneOf:[As,Rw]}}},required:["operator","conditions"],additionalProperties:!1}]}},Xu={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},$w={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:Xu},required:["subject","assertions"],additionalProperties:!1}},Nw={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:Xu,where:$w,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},kw={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},Nw]}},Dw={type:"object",properties:{name:{type:"string"},extends:uo.extends,rules:kw},required:["name"],additionalProperties:!1},tc={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},qw={oneOf:[tc,{type:"array",items:tc}]},Cw={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[ec,{type:"object",properties:{operator:aa,conditions:ec},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:Dw,minItems:1},trigger:qw},required:["name","key","entities","levels"],additionalProperties:!1},Zu={type:"array",items:Cw},It={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:ku,navbar:Du,products:qu,footer:Cu,sidebar:ju,scripts:Mu,links:Lu,feedback:sn,search:Uu,aiAssistant:Fu,colorMode:Bu,palette:zu,navigation:Vu,codeSnippet:Ku,markdown:Hu,openapi:Hi,asyncapi:g0,graphql:Vi,analytics:Gu,userMenu:Yu,versionPicker:Qu,breadcrumbs:Wu,catalog:Gi,entitiesCatalog:Ju,catalogClassic:Gi,scorecard:Yi,scorecardClassic:Yi,scorecards:Zu},additionalProperties:!0},jw=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(jw||{}),Mw=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(Mw||{}),Lw=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(Lw||{}),Uw="^[a-z0-9]+(?:-[a-z0-9]+)*$",ed="redocly",Fw=[ed,"corporate","guest"],rc=["REDOCLY","CORPORATE","GUEST"],Bw={type:"object",additionalProperties:{type:"string"}},zw={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},On={type:"string",enum:["error","warn","off"]},Vw={type:"object",additionalProperties:!1,properties:{schemaCheck:On,statusCodeCheck:On,contentTypeCheck:On,successCriteriaCheck:On}},Kw={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},Hw={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},Gw={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Yw={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:[Kw,Hw]},inputs:Bw,servers:zw,severity:Vw,slo:Gw},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},Qw={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},Ww={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:Qw,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},Jw={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"]},Xw={oneOf:[Ww,Jw],discriminator:{propertyName:"type"}},Zw={type:"object",additionalProperties:Xw},td={oneOf:[{type:"array",items:{type:"string",enum:rc},uniqueItems:!0},{type:"string",enum:rc}]},nc={type:"string",pattern:Uw,not:{enum:Fw.filter(e=>e!==ed)}},rd={oneOf:[{type:"array",items:nc,uniqueItems:!0},nc]},nd={type:"boolean"},id={type:"string",pattern:"^https?://.*"},od={type:"string",pattern:"^https?://.*"},eS={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:ot.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},tS={type:"object",additionalProperties:eS,nodeTypeName:ot.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"},rS={type:"string",enum:["info","success","warning","error"]},je={type:"object",additionalProperties:{type:"string"}},nS={type:"object",properties:{trackingId:{type:"string"},content:{type:"string"},dismissible:{type:"boolean"},target:{type:"string"},color:rS,rbac:je,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},iS={type:"array",items:nS},oS={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:je,openapi:Hi,graphql:Vi,theme:{type:"object",properties:{openapi:Hi,graphql:Vi},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...uo},required:["root"]},sS={type:"object",additionalProperties:!0},aS={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},cS={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},pS={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:cS},additionalProperties:!1},lS={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},uS={type:"object",properties:{catalogs:{type:"object",properties:{all:je,services:je,domains:je,teams:je,users:je,apiDescriptions:je,dataSchemas:je,apiOperations:je},additionalProperties:je},entitiesTypes:{type:"object",properties:{service:je,domain:je,team:je,user:je,apiDescription:je,apiOperation:je,dataSchema:je},additionalProperties:je},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:je},additionalProperties:!1}},entities:{type:"object",properties:{"**":je},additionalProperties:je}},additionalProperties:!1},sd={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:je,cms:je,reunite:je,features:{type:"object",properties:{aiSearch:je,mcp:je},additionalProperties:!1},content:{type:"object",properties:{"**":je},additionalProperties:je},entitiesCatalog:uS},additionalProperties:je},dS={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},fS={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},mS={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[dS,fS]}},additionalProperties:!1,required:["type","apiBaseUrl"]},hS={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},yS={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Rs={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:[hS,yS],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},gS={...Rs,properties:{...Rs.properties,type:{type:"string",const:"APIGEE_EDGE"}}},vS={type:"object",oneOf:[Rs,gS,mS],discriminator:{propertyName:"type"}},bS={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:vS}}},ic={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"]},wS={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},SS={type:"object",properties:{hide:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1},ES={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},xS={type:"object",properties:{requiresLogin:nd,logoutReturnUrl:id,residency:od,sso:td,idps:rd,rbac:sd},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},Qi={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:tS,seo:pS,rbac:sd,apiFunctions:lS,requiresLogin:nd,responseHeaders:{type:"object",additionalProperties:{type:"array",items:wS}},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:oS},...uo,ssoDirect:Zw,sso:td,idps:rd,residency:od,logoutReturnUrl:id,access:xS,developerOnboarding:bS,removeAttribution:{type:"boolean"},i18n:ic,l10n:ic,metadata:sS,metadataGlobs:aS,ignore:{type:"array",items:{type:"string"}},theme:It,reunite:Yw,logo:ku,navbar:Du,products:qu,footer:Cu,sidebar:ju,scripts:Mu,links:Lu,feedback:sn,search:Uu,aiAssistant:Fu,colorMode:Bu,palette:zu,navigation:Vu,codeSnippet:Ku,markdown:Hu,openapi:Hi,graphql:Vi,analytics:Gu,userMenu:Yu,versionPicker:Qu,breadcrumbs:Wu,catalog:Gi,entitiesCatalog:Ju,catalogClassic:Gi,scorecard:Yi,scorecardClassic:Yi,scorecards:Zu,mcp:SS,skills:ES,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:iS},not:{required:["sso","idps"]},additionalProperties:!0},TS={...Qi,additionalProperties:!1},fo={$id:"root-redocly-config",...Qi,properties:{plugins:{type:"array",items:{type:"string"}},...Qi.properties,env:{type:"object",additionalProperties:TS}},additionalProperties:!1};It.properties.logo,It.properties.navbar,It.properties.footer,It.properties.sidebar,It.properties.search,It.properties.codeSnippet,It.properties.breadcrumbs,It.properties.openapi,It.properties.feedback,Qi.properties.mockServer;var PS=["partOf","hasParts","creates","createdBy","owns","ownedBy","implements","implementedBy","dependsOn","dependencyOf","uses","usedBy","produces","consumes","linksTo","supersedes","supersededBy","compatibleWith","extends","extendedBy","relatesTo","hasMember","memberOf","triggers","triggeredBy","returns","returnedBy"],Ge=Nu({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"}),OS={type:"object",nodeTypeName:Ge.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},IS={type:"object",nodeTypeName:Ge.ApiDescriptionEntityMetadata,properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Type of the API description"},descriptionFile:{type:"string",description:"Path to the file containing the API description"}},required:["specType","descriptionFile"],additionalProperties:!0},_S={type:"object",nodeTypeName:Ge.ApiOperationEntityMetadata,properties:{method:{type:"string",enum:["GET","POST","PUT","DELETE","PATCH","MUTATION","QUERY","SUBSCRIBE","PUBLISH"],description:"HTTP method of the API operation"},path:{type:"string",description:"Path of the API operation"},payload:{type:"array",items:{type:"string",description:"Related dataSchema name"}},responses:{type:"array",items:{type:"string",description:"Related dataSchema name"}}},required:["method","path"],additionalProperties:!0},AS={type:"object",nodeTypeName:Ge.DataSchemaEntityMetadata,properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Specification type of the data schema"},schema:{type:"string",description:"Inline schema of the data structure"},sdl:{type:"string",description:"SDL of the data structure"}},required:["specType"],additionalProperties:!0},RS={type:"object",properties:{},nodeTypeName:Ge.EntityMetadata,additionalProperties:!0},$S={type:"object",nodeTypeName:Ge.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},NS={type:"object",nodeTypeName:Ge.EntitySlackContact,properties:{channels:{type:"array",items:$S}},required:["channels"],additionalProperties:!1},kS={type:"object",nodeTypeName:Ge.EntityContact,properties:{slack:NS},additionalProperties:!1},DS={type:"object",nodeTypeName:Ge.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},qS={type:"object",nodeTypeName:Ge.EntityRelation,properties:{type:{type:"string",enum:PS},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},Gt={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:kS,links:{type:"array",nodeTypeName:Ge.EntityLinkList,items:DS},relations:{type:"array",nodeTypeName:Ge.EntityRelationList,items:qS},metadata:RS},CS={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...Gt,type:{type:"string",const:"user"},metadata:OS},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:Ge.UserEntity},{type:"object",nodeTypeName:Ge.ApiOperationEntity,properties:{...Gt,type:{type:"string",const:"api-operation"},metadata:_S},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.DataSchemaEntity,properties:{...Gt,type:{type:"string",const:"data-schema"},metadata:AS},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.ApiDescriptionEntity,properties:{...Gt,type:{type:"string",const:"api-description"},metadata:IS},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.ServiceEntity,properties:{...Gt,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.DomainEntity,properties:{...Gt,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.TeamEntity,properties:{...Gt,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},jS={type:"object",nodeTypeName:Ge.Entity,properties:{...Gt},required:["key","title","type"],additionalProperties:!1};const MS=["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"],Ui=["oas2","oas3_0","oas3_1","oas3_2","async2","async3","arazzo1","arazzo1_1","overlay1","openrpc1","graphql"],ad="a-zA-Z0-9\\.\\-_",LS={oas2:mu,oas3_0:xt,oas3_1:Be,oas3_2:Ze,async2:Pu,async3:Ou,arazzo1:rt,arazzo1_1:Iu,overlay1:_u,openrpc1:Au};function an(e){return e==="graphql"?{}:LS[e]}function ca(e){return e.includes("/")}function cd(e,t){const r={...e};return t.forEach(n=>{delete r[n]}),r}var In={exports:{}},ko={},qt={},Zt={},Do={},qo={},Co={},oc;function Wi(){return oc||(oc=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(I){if(super(),!e.IDENTIFIER.test(I))throw new Error("CodeGen: name must be a valid identifier");this.str=I}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(I){super(),this._items=typeof I=="string"?[I]:I}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const I=this._items[0];return I===""||I==='""'}get str(){var I;return(I=this._str)!==null&&I!==void 0?I:this._str=this._items.reduce((v,x)=>`${v}${x}`,"")}get names(){var I;return(I=this._names)!==null&&I!==void 0?I:this._names=this._items.reduce((v,x)=>(x instanceof r&&(v[x.str]=(v[x.str]||0)+1),v),{})}}e._Code=n,e.nil=new n("");function i(P,...I){const v=[P[0]];let x=0;for(;x<I.length;)a(v,I[x]),v.push(P[++x]);return new n(v)}e._=i;const o=new n("+");function s(P,...I){const v=[h(P[0])];let x=0;for(;x<I.length;)v.push(o),a(v,I[x]),v.push(o,h(P[++x]));return c(v),new n(v)}e.str=s;function a(P,I){I instanceof n?P.push(...I._items):I instanceof r?P.push(I):P.push(m(I))}e.addCodeArg=a;function c(P){let I=1;for(;I<P.length-1;){if(P[I]===o){const v=l(P[I-1],P[I+1]);if(v!==void 0){P.splice(I-1,3,v);continue}P[I++]="+"}I++}}function l(P,I){if(I==='""')return P;if(P==='""')return I;if(typeof P=="string")return I instanceof r||P[P.length-1]!=='"'?void 0:typeof I!="string"?`${P.slice(0,-1)}${I}"`:I[0]==='"'?P.slice(0,-1)+I.slice(1):void 0;if(typeof I=="string"&&I[0]==='"'&&!(P instanceof r))return`"${P}${I.slice(1)}`}function u(P,I){return I.emptyStr()?P:P.emptyStr()?I:s`${P}${I}`}e.strConcat=u;function m(P){return typeof P=="number"||typeof P=="boolean"||P===null?P:h(Array.isArray(P)?P.join(","):P)}function y(P){return new n(h(P))}e.stringify=y;function h(P){return JSON.stringify(P).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=h;function w(P){return typeof P=="string"&&e.IDENTIFIER.test(P)?new n(`.${P}`):i`[${P}]`}e.getProperty=w;function b(P){if(typeof P=="string"&&e.IDENTIFIER.test(P))return new n(`${P}`);throw new Error(`CodeGen: invalid export name: ${P}, use explicit $id name mapping`)}e.getEsmExportName=b;function E(P){return new n(P.toString())}e.regexpCode=E})(Co)),Co}var jo={},sc;function ac(){return sc||(sc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Wi();class r extends Error{constructor(l){super(`CodeGen: "code" for ${l} not defined`),this.value=l.value}}var n;(function(c){c[c.Started=0]="Started",c[c.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 i{constructor({prefixes:l,parent:u}={}){this._names={},this._prefixes=l,this._parent=u}toName(l){return l instanceof t.Name?l:this.name(l)}name(l){return new t.Name(this._newName(l))}_newName(l){const u=this._names[l]||this._nameGroup(l);return`${l}${u.index++}`}_nameGroup(l){var u,m;if(!((m=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||m===void 0)&&m.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=i;class o extends t.Name{constructor(l,u){super(u),this.prefix=l}setValue(l,{property:u,itemIndex:m}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(u)}[${m}]`}}e.ValueScopeName=o;const s=(0,t._)`\n`;class a extends i{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?s:t.nil}}get(){return this._scope}name(l){return new o(l,this._newName(l))}value(l,u){var m;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const y=this.toName(l),{prefix:h}=y,w=(m=u.key)!==null&&m!==void 0?m:u.ref;let b=this._values[h];if(b){const I=b.get(w);if(I)return I}else b=this._values[h]=new Map;b.set(w,y);const E=this._scope[h]||(this._scope[h]=[]),P=E.length;return E[P]=u.ref,y.setValue(u,{property:h,itemIndex:P}),y}getValue(l,u){const m=this._values[l];if(m)return m.get(u)}scopeRefs(l,u=this._values){return this._reduceValues(u,m=>{if(m.scopePath===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return(0,t._)`${l}${m.scopePath}`})}scopeCode(l=this._values,u,m){return this._reduceValues(l,y=>{if(y.value===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return y.value.code},u,m)}_reduceValues(l,u,m={},y){let h=t.nil;for(const w in l){const b=l[w];if(!b)continue;const E=m[w]=m[w]||new Map;b.forEach(P=>{if(E.has(P))return;E.set(P,n.Started);let I=u(P);if(I){const v=this.opts.es5?e.varKinds.var:e.varKinds.const;h=(0,t._)`${h}${v} ${P} = ${I};${this.opts._n}`}else if(I=y?.(P))h=(0,t._)`${h}${I}${this.opts._n}`;else throw new r(P);E.set(P,n.Completed)})}return h}}e.ValueScope=a})(jo)),jo}var cc;function Oe(){return cc||(cc=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=Wi(),r=ac();var n=Wi();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 i=ac();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.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 o{optimizeNodes(){return this}optimizeNames(_,$){return this}}class s extends o{constructor(_,$,A){super(),this.varKind=_,this.name=$,this.rhs=A}render({es5:_,_n:$}){const A=_?r.varKinds.var:this.varKind,K=this.rhs===void 0?"":` = ${this.rhs}`;return`${A} ${this.name}${K};`+$}optimizeNames(_,$){if(_[this.name.str])return this.rhs&&(this.rhs=G(this.rhs,_,$)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends o{constructor(_,$,A){super(),this.lhs=_,this.rhs=$,this.sideEffects=A}render({_n:_}){return`${this.lhs} = ${this.rhs};`+_}optimizeNames(_,$){if(!(this.lhs instanceof t.Name&&!_[this.lhs.str]&&!this.sideEffects))return this.rhs=G(this.rhs,_,$),this}get names(){const _=this.lhs instanceof t.Name?{}:{...this.lhs.names};return M(_,this.rhs)}}class c extends a{constructor(_,$,A,K){super(_,A,K),this.op=$}render({_n:_}){return`${this.lhs} ${this.op}= ${this.rhs};`+_}}class l extends o{constructor(_){super(),this.label=_,this.names={}}render({_n:_}){return`${this.label}:`+_}}class u extends o{constructor(_){super(),this.label=_,this.names={}}render({_n:_}){return`break${this.label?` ${this.label}`:""};`+_}}class m extends o{constructor(_){super(),this.error=_}render({_n:_}){return`throw ${this.error};`+_}get names(){return this.error.names}}class y extends o{constructor(_){super(),this.code=_}render({_n:_}){return`${this.code};`+_}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(_,$){return this.code=G(this.code,_,$),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class h extends o{constructor(_=[]){super(),this.nodes=_}render(_){return this.nodes.reduce(($,A)=>$+A.render(_),"")}optimizeNodes(){const{nodes:_}=this;let $=_.length;for(;$--;){const A=_[$].optimizeNodes();Array.isArray(A)?_.splice($,1,...A):A?_[$]=A:_.splice($,1)}return _.length>0?this:void 0}optimizeNames(_,$){const{nodes:A}=this;let K=A.length;for(;K--;){const H=A[K];H.optimizeNames(_,$)||(de(_,H.names),A.splice(K,1))}return A.length>0?this:void 0}get names(){return this.nodes.reduce((_,$)=>J(_,$.names),{})}}class w extends h{render(_){return"{"+_._n+super.render(_)+"}"+_._n}}class b extends h{}class E extends w{}E.kind="else";class P extends w{constructor(_,$){super($),this.condition=_}render(_){let $=`if(${this.condition})`+super.render(_);return this.else&&($+="else "+this.else.render(_)),$}optimizeNodes(){super.optimizeNodes();const _=this.condition;if(_===!0)return this.nodes;let $=this.else;if($){const A=$.optimizeNodes();$=this.else=Array.isArray(A)?new E(A):A}if($)return _===!1?$ instanceof P?$:$.nodes:this.nodes.length?this:new P(Se(_),$ instanceof P?[$]:$.nodes);if(!(_===!1||!this.nodes.length))return this}optimizeNames(_,$){var A;if(this.else=(A=this.else)===null||A===void 0?void 0:A.optimizeNames(_,$),!!(super.optimizeNames(_,$)||this.else))return this.condition=G(this.condition,_,$),this}get names(){const _=super.names;return M(_,this.condition),this.else&&J(_,this.else.names),_}}P.kind="if";class I extends w{}I.kind="for";class v extends I{constructor(_){super(),this.iteration=_}render(_){return`for(${this.iteration})`+super.render(_)}optimizeNames(_,$){if(super.optimizeNames(_,$))return this.iteration=G(this.iteration,_,$),this}get names(){return J(super.names,this.iteration.names)}}class x extends I{constructor(_,$,A,K){super(),this.varKind=_,this.name=$,this.from=A,this.to=K}render(_){const $=_.es5?r.varKinds.var:this.varKind,{name:A,from:K,to:H}=this;return`for(${$} ${A}=${K}; ${A}<${H}; ${A}++)`+super.render(_)}get names(){const _=M(super.names,this.from);return M(_,this.to)}}class g extends I{constructor(_,$,A,K){super(),this.loop=_,this.varKind=$,this.name=A,this.iterable=K}render(_){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(_)}optimizeNames(_,$){if(super.optimizeNames(_,$))return this.iterable=G(this.iterable,_,$),this}get names(){return J(super.names,this.iterable.names)}}class S extends w{constructor(_,$,A){super(),this.name=_,this.args=$,this.async=A}render(_){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(_)}}S.kind="func";class O extends h{render(_){return"return "+super.render(_)}}O.kind="return";class k extends w{render(_){let $="try"+super.render(_);return this.catch&&($+=this.catch.render(_)),this.finally&&($+=this.finally.render(_)),$}optimizeNodes(){var _,$;return super.optimizeNodes(),(_=this.catch)===null||_===void 0||_.optimizeNodes(),($=this.finally)===null||$===void 0||$.optimizeNodes(),this}optimizeNames(_,$){var A,K;return super.optimizeNames(_,$),(A=this.catch)===null||A===void 0||A.optimizeNames(_,$),(K=this.finally)===null||K===void 0||K.optimizeNames(_,$),this}get names(){const _=super.names;return this.catch&&J(_,this.catch.names),this.finally&&J(_,this.finally.names),_}}class Y extends w{constructor(_){super(),this.error=_}render(_){return`catch(${this.error})`+super.render(_)}}Y.kind="catch";class F extends w{render(_){return"finally"+super.render(_)}}F.kind="finally";class z{constructor(_,$={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...$,_n:$.lines?`
2
+ `:""},this._extScope=_,this._scope=new r.Scope({parent:_}),this._nodes=[new b]}toString(){return this._root.render(this.opts)}name(_){return this._scope.name(_)}scopeName(_){return this._extScope.name(_)}scopeValue(_,$){const A=this._extScope.value(_,$);return(this._values[A.prefix]||(this._values[A.prefix]=new Set)).add(A),A}getScopeValue(_,$){return this._extScope.getValue(_,$)}scopeRefs(_){return this._extScope.scopeRefs(_,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(_,$,A,K){const H=this._scope.toName($);return A!==void 0&&K&&(this._constants[H.str]=A),this._leafNode(new s(_,H,A)),H}const(_,$,A){return this._def(r.varKinds.const,_,$,A)}let(_,$,A){return this._def(r.varKinds.let,_,$,A)}var(_,$,A){return this._def(r.varKinds.var,_,$,A)}assign(_,$,A){return this._leafNode(new a(_,$,A))}add(_,$){return this._leafNode(new c(_,e.operators.ADD,$))}code(_){return typeof _=="function"?_():_!==t.nil&&this._leafNode(new y(_)),this}object(..._){const $=["{"];for(const[A,K]of _)$.length>1&&$.push(","),$.push(A),(A!==K||this.opts.es5)&&($.push(":"),(0,t.addCodeArg)($,K));return $.push("}"),new t._Code($)}if(_,$,A){if(this._blockNode(new P(_)),$&&A)this.code($).else().code(A).endIf();else if($)this.code($).endIf();else if(A)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(_){return this._elseNode(new P(_))}else(){return this._elseNode(new E)}endIf(){return this._endBlockNode(P,E)}_for(_,$){return this._blockNode(_),$&&this.code($).endFor(),this}for(_,$){return this._for(new v(_),$)}forRange(_,$,A,K,H=this.opts.es5?r.varKinds.var:r.varKinds.let){const W=this._scope.toName(_);return this._for(new x(H,W,$,A),()=>K(W))}forOf(_,$,A,K=r.varKinds.const){const H=this._scope.toName(_);if(this.opts.es5){const W=$ instanceof t.Name?$:this.var("_arr",$);return this.forRange("_i",0,(0,t._)`${W}.length`,ae=>{this.var(H,(0,t._)`${W}[${ae}]`),A(H)})}return this._for(new g("of",K,H,$),()=>A(H))}forIn(_,$,A,K=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(_,(0,t._)`Object.keys(${$})`,A);const H=this._scope.toName(_);return this._for(new g("in",K,H,$),()=>A(H))}endFor(){return this._endBlockNode(I)}label(_){return this._leafNode(new l(_))}break(_){return this._leafNode(new u(_))}return(_){const $=new O;if(this._blockNode($),this.code(_),$.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(O)}try(_,$,A){if(!$&&!A)throw new Error('CodeGen: "try" without "catch" and "finally"');const K=new k;if(this._blockNode(K),this.code(_),$){const H=this.name("e");this._currNode=K.catch=new Y(H),$(H)}return A&&(this._currNode=K.finally=new F,this.code(A)),this._endBlockNode(Y,F)}throw(_){return this._leafNode(new m(_))}block(_,$){return this._blockStarts.push(this._nodes.length),_&&this.code(_).endBlock($),this}endBlock(_){const $=this._blockStarts.pop();if($===void 0)throw new Error("CodeGen: not in self-balancing block");const A=this._nodes.length-$;if(A<0||_!==void 0&&A!==_)throw new Error(`CodeGen: wrong number of nodes: ${A} vs ${_} expected`);return this._nodes.length=$,this}func(_,$=t.nil,A,K){return this._blockNode(new S(_,$,A)),K&&this.code(K).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(_=1){for(;_-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(_){return this._currNode.nodes.push(_),this}_blockNode(_){this._currNode.nodes.push(_),this._nodes.push(_)}_endBlockNode(_,$){const A=this._currNode;if(A instanceof _||$&&A instanceof $)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${$?`${_.kind}/${$.kind}`:_.kind}"`)}_elseNode(_){const $=this._currNode;if(!($ instanceof P))throw new Error('CodeGen: "else" without "if"');return this._currNode=$.else=_,this}get _root(){return this._nodes[0]}get _currNode(){const _=this._nodes;return _[_.length-1]}set _currNode(_){const $=this._nodes;$[$.length-1]=_}}e.CodeGen=z;function J(V,_){for(const $ in _)V[$]=(V[$]||0)+(_[$]||0);return V}function M(V,_){return _ instanceof t._CodeOrName?J(V,_.names):V}function G(V,_,$){if(V instanceof t.Name)return A(V);if(!K(V))return V;return new t._Code(V._items.reduce((H,W)=>(W instanceof t.Name&&(W=A(W)),W instanceof t._Code?H.push(...W._items):H.push(W),H),[]));function A(H){const W=$[H.str];return W===void 0||_[H.str]!==1?H:(delete _[H.str],W)}function K(H){return H instanceof t._Code&&H._items.some(W=>W instanceof t.Name&&_[W.str]===1&&$[W.str]!==void 0)}}function de(V,_){for(const $ in _)V[$]=(V[$]||0)-(_[$]||0)}function Se(V){return typeof V=="boolean"||typeof V=="number"||V===null?!V:(0,t._)`!${Q(V)}`}e.not=Se;const be=L(e.operators.AND);function ge(...V){return V.reduce(be)}e.and=ge;const Pe=L(e.operators.OR);function B(...V){return V.reduce(Pe)}e.or=B;function L(V){return(_,$)=>_===t.nil?$:$===t.nil?_:(0,t._)`${Q(_)} ${V} ${Q($)}`}function Q(V){return V instanceof t.Name?V:(0,t._)`(${V})`}})(qo)),qo}var _e={},pc;function ke(){if(pc)return _e;pc=1,Object.defineProperty(_e,"__esModule",{value:!0}),_e.checkStrictMode=_e.getErrorPath=_e.Type=_e.useFunc=_e.setEvaluated=_e.evaluatedPropsToName=_e.mergeEvaluated=_e.eachItem=_e.unescapeJsonPointer=_e.escapeJsonPointer=_e.escapeFragment=_e.unescapeFragment=_e.schemaRefOrVal=_e.schemaHasRulesButRef=_e.schemaHasRules=_e.checkUnknownRules=_e.alwaysValidSchema=_e.toHash=void 0;const e=Oe(),t=Wi();function r(g){const S={};for(const O of g)S[O]=!0;return S}_e.toHash=r;function n(g,S){return typeof S=="boolean"?S:Object.keys(S).length===0?!0:(i(g,S),!o(S,g.self.RULES.all))}_e.alwaysValidSchema=n;function i(g,S=g.schema){const{opts:O,self:k}=g;if(!O.strictSchema||typeof S=="boolean")return;const Y=k.RULES.keywords;for(const F in S)Y[F]||x(g,`unknown keyword: "${F}"`)}_e.checkUnknownRules=i;function o(g,S){if(typeof g=="boolean")return!g;for(const O in g)if(S[O])return!0;return!1}_e.schemaHasRules=o;function s(g,S){if(typeof g=="boolean")return!g;for(const O in g)if(O!=="$ref"&&S.all[O])return!0;return!1}_e.schemaHasRulesButRef=s;function a({topSchemaRef:g,schemaPath:S},O,k,Y){if(!Y){if(typeof O=="number"||typeof O=="boolean")return O;if(typeof O=="string")return(0,e._)`${O}`}return(0,e._)`${g}${S}${(0,e.getProperty)(k)}`}_e.schemaRefOrVal=a;function c(g){return m(decodeURIComponent(g))}_e.unescapeFragment=c;function l(g){return encodeURIComponent(u(g))}_e.escapeFragment=l;function u(g){return typeof g=="number"?`${g}`:g.replace(/~/g,"~0").replace(/\//g,"~1")}_e.escapeJsonPointer=u;function m(g){return g.replace(/~1/g,"/").replace(/~0/g,"~")}_e.unescapeJsonPointer=m;function y(g,S){if(Array.isArray(g))for(const O of g)S(O);else S(g)}_e.eachItem=y;function h({mergeNames:g,mergeToName:S,mergeValues:O,resultToName:k}){return(Y,F,z,J)=>{const M=z===void 0?F:z instanceof e.Name?(F instanceof e.Name?g(Y,F,z):S(Y,F,z),z):F instanceof e.Name?(S(Y,z,F),F):O(F,z);return J===e.Name&&!(M instanceof e.Name)?k(Y,M):M}}_e.mergeEvaluated={props:h({mergeNames:(g,S,O)=>g.if((0,e._)`${O} !== true && ${S} !== undefined`,()=>{g.if((0,e._)`${S} === true`,()=>g.assign(O,!0),()=>g.assign(O,(0,e._)`${O} || {}`).code((0,e._)`Object.assign(${O}, ${S})`))}),mergeToName:(g,S,O)=>g.if((0,e._)`${O} !== true`,()=>{S===!0?g.assign(O,!0):(g.assign(O,(0,e._)`${O} || {}`),b(g,O,S))}),mergeValues:(g,S)=>g===!0?!0:{...g,...S},resultToName:w}),items:h({mergeNames:(g,S,O)=>g.if((0,e._)`${O} !== true && ${S} !== undefined`,()=>g.assign(O,(0,e._)`${S} === true ? true : ${O} > ${S} ? ${O} : ${S}`)),mergeToName:(g,S,O)=>g.if((0,e._)`${O} !== true`,()=>g.assign(O,S===!0?!0:(0,e._)`${O} > ${S} ? ${O} : ${S}`)),mergeValues:(g,S)=>g===!0?!0:Math.max(g,S),resultToName:(g,S)=>g.var("items",S)})};function w(g,S){if(S===!0)return g.var("props",!0);const O=g.var("props",(0,e._)`{}`);return S!==void 0&&b(g,O,S),O}_e.evaluatedPropsToName=w;function b(g,S,O){Object.keys(O).forEach(k=>g.assign((0,e._)`${S}${(0,e.getProperty)(k)}`,!0))}_e.setEvaluated=b;const E={};function P(g,S){return g.scopeValue("func",{ref:S,code:E[S.code]||(E[S.code]=new t._Code(S.code))})}_e.useFunc=P;var I;(function(g){g[g.Num=0]="Num",g[g.Str=1]="Str"})(I||(_e.Type=I={}));function v(g,S,O){if(g instanceof e.Name){const k=S===I.Num;return O?k?(0,e._)`"[" + ${g} + "]"`:(0,e._)`"['" + ${g} + "']"`:k?(0,e._)`"/" + ${g}`:(0,e._)`"/" + ${g}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return O?(0,e.getProperty)(g).toString():"/"+u(g)}_e.getErrorPath=v;function x(g,S,O=g.opts.strictSchema){if(O){if(S=`strict mode: ${S}`,O===!0)throw new Error(S);g.self.logger.warn(S)}}return _e.checkStrictMode=x,_e}var _n={},lc;function pt(){if(lc)return _n;lc=1,Object.defineProperty(_n,"__esModule",{value:!0});const e=Oe(),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 _n.default=t,_n}var uc;function mo(){return uc||(uc=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=Oe(),r=ke(),n=pt();e.keywordError={message:({keyword:E})=>(0,t.str)`must pass "${E}" keyword validation`},e.keyword$DataError={message:({keyword:E,schemaType:P})=>P?(0,t.str)`"${E}" keyword must be ${P} ($data)`:(0,t.str)`"${E}" keyword is invalid ($data)`};function i(E,P=e.keywordError,I,v){const{it:x}=E,{gen:g,compositeRule:S,allErrors:O}=x,k=m(E,P,I);v??(S||O)?c(g,k):l(x,(0,t._)`[${k}]`)}e.reportError=i;function o(E,P=e.keywordError,I){const{it:v}=E,{gen:x,compositeRule:g,allErrors:S}=v,O=m(E,P,I);c(x,O),g||S||l(v,n.default.vErrors)}e.reportExtraError=o;function s(E,P){E.assign(n.default.errors,P),E.if((0,t._)`${n.default.vErrors} !== null`,()=>E.if(P,()=>E.assign((0,t._)`${n.default.vErrors}.length`,P),()=>E.assign(n.default.vErrors,null)))}e.resetErrorsCount=s;function a({gen:E,keyword:P,schemaValue:I,data:v,errsCount:x,it:g}){if(x===void 0)throw new Error("ajv implementation error");const S=E.name("err");E.forRange("i",x,n.default.errors,O=>{E.const(S,(0,t._)`${n.default.vErrors}[${O}]`),E.if((0,t._)`${S}.instancePath === undefined`,()=>E.assign((0,t._)`${S}.instancePath`,(0,t.strConcat)(n.default.instancePath,g.errorPath))),E.assign((0,t._)`${S}.schemaPath`,(0,t.str)`${g.errSchemaPath}/${P}`),g.opts.verbose&&(E.assign((0,t._)`${S}.schema`,I),E.assign((0,t._)`${S}.data`,v))})}e.extendErrors=a;function c(E,P){const I=E.const("err",P);E.if((0,t._)`${n.default.vErrors} === null`,()=>E.assign(n.default.vErrors,(0,t._)`[${I}]`),(0,t._)`${n.default.vErrors}.push(${I})`),E.code((0,t._)`${n.default.errors}++`)}function l(E,P){const{gen:I,validateName:v,schemaEnv:x}=E;x.$async?I.throw((0,t._)`new ${E.ValidationError}(${P})`):(I.assign((0,t._)`${v}.errors`,P),I.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function m(E,P,I){const{createErrors:v}=E.it;return v===!1?(0,t._)`{}`:y(E,P,I)}function y(E,P,I={}){const{gen:v,it:x}=E,g=[h(x,I),w(E,I)];return b(E,P,g),v.object(...g)}function h({errorPath:E},{instancePath:P}){const I=P?(0,t.str)`${E}${(0,r.getErrorPath)(P,r.Type.Str)}`:E;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,I)]}function w({keyword:E,it:{errSchemaPath:P}},{schemaPath:I,parentSchema:v}){let x=v?P:(0,t.str)`${P}/${E}`;return I&&(x=(0,t.str)`${x}${(0,r.getErrorPath)(I,r.Type.Str)}`),[u.schemaPath,x]}function b(E,{params:P,message:I},v){const{keyword:x,data:g,schemaValue:S,it:O}=E,{opts:k,propertyName:Y,topSchemaRef:F,schemaPath:z}=O;v.push([u.keyword,x],[u.params,typeof P=="function"?P(E):P||(0,t._)`{}`]),k.messages&&v.push([u.message,typeof I=="function"?I(E):I]),k.verbose&&v.push([u.schema,S],[u.parentSchema,(0,t._)`${F}${z}`],[n.default.data,g]),Y&&v.push([u.propertyName,Y])}})(Do)),Do}var dc;function US(){if(dc)return Zt;dc=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.boolOrEmptySchema=Zt.topBoolOrEmptySchema=void 0;const e=mo(),t=Oe(),r=pt(),n={message:"boolean schema is false"};function i(a){const{gen:c,schema:l,validateName:u}=a;l===!1?s(a,!1):typeof l=="object"&&l.$async===!0?c.return(r.default.data):(c.assign((0,t._)`${u}.errors`,null),c.return(!0))}Zt.topBoolOrEmptySchema=i;function o(a,c){const{gen:l,schema:u}=a;u===!1?(l.var(c,!1),s(a)):l.var(c,!0)}Zt.boolOrEmptySchema=o;function s(a,c){const{gen:l,data:u}=a,m={gen:l,keyword:"false schema",data:u,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:a};(0,e.reportError)(m,n,void 0,c)}return Zt}var Xe={},er={},fc;function pd(){if(fc)return er;fc=1,Object.defineProperty(er,"__esModule",{value:!0}),er.getRules=er.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(i){return typeof i=="string"&&t.has(i)}er.isJSONType=r;function n(){const i={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...i,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},i.number,i.string,i.array,i.object],post:{rules:[]},all:{},keywords:{}}}return er.getRules=n,er}var Ct={},mc;function ld(){if(mc)return Ct;mc=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.shouldUseRule=Ct.shouldUseGroup=Ct.schemaHasRulesForType=void 0;function e({schema:n,self:i},o){const s=i.RULES.types[o];return s&&s!==!0&&t(n,s)}Ct.schemaHasRulesForType=e;function t(n,i){return i.rules.some(o=>r(n,o))}Ct.shouldUseGroup=t;function r(n,i){var o;return n[i.keyword]!==void 0||((o=i.definition.implements)===null||o===void 0?void 0:o.some(s=>n[s]!==void 0))}return Ct.shouldUseRule=r,Ct}var hc;function Ji(){if(hc)return Xe;hc=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.reportTypeError=Xe.checkDataTypes=Xe.checkDataType=Xe.coerceAndCheckDataType=Xe.getJSONTypes=Xe.getSchemaTypes=Xe.DataType=void 0;const e=pd(),t=ld(),r=mo(),n=Oe(),i=ke();var o;(function(I){I[I.Correct=0]="Correct",I[I.Wrong=1]="Wrong"})(o||(Xe.DataType=o={}));function s(I){const v=a(I.type);if(v.includes("null")){if(I.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!v.length&&I.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');I.nullable===!0&&v.push("null")}return v}Xe.getSchemaTypes=s;function a(I){const v=Array.isArray(I)?I:I?[I]:[];if(v.every(e.isJSONType))return v;throw new Error("type must be JSONType or JSONType[]: "+v.join(","))}Xe.getJSONTypes=a;function c(I,v){const{gen:x,data:g,opts:S}=I,O=u(v,S.coerceTypes),k=v.length>0&&!(O.length===0&&v.length===1&&(0,t.schemaHasRulesForType)(I,v[0]));if(k){const Y=w(v,g,S.strictNumbers,o.Wrong);x.if(Y,()=>{O.length?m(I,v,O):E(I)})}return k}Xe.coerceAndCheckDataType=c;const l=new Set(["string","number","integer","boolean","null"]);function u(I,v){return v?I.filter(x=>l.has(x)||v==="array"&&x==="array"):[]}function m(I,v,x){const{gen:g,data:S,opts:O}=I,k=g.let("dataType",(0,n._)`typeof ${S}`),Y=g.let("coerced",(0,n._)`undefined`);O.coerceTypes==="array"&&g.if((0,n._)`${k} == 'object' && Array.isArray(${S}) && ${S}.length == 1`,()=>g.assign(S,(0,n._)`${S}[0]`).assign(k,(0,n._)`typeof ${S}`).if(w(v,S,O.strictNumbers),()=>g.assign(Y,S))),g.if((0,n._)`${Y} !== undefined`);for(const z of x)(l.has(z)||z==="array"&&O.coerceTypes==="array")&&F(z);g.else(),E(I),g.endIf(),g.if((0,n._)`${Y} !== undefined`,()=>{g.assign(S,Y),y(I,Y)});function F(z){switch(z){case"string":g.elseIf((0,n._)`${k} == "number" || ${k} == "boolean"`).assign(Y,(0,n._)`"" + ${S}`).elseIf((0,n._)`${S} === null`).assign(Y,(0,n._)`""`);return;case"number":g.elseIf((0,n._)`${k} == "boolean" || ${S} === null
3
+ || (${k} == "string" && ${S} && ${S} == +${S})`).assign(Y,(0,n._)`+${S}`);return;case"integer":g.elseIf((0,n._)`${k} === "boolean" || ${S} === null
4
+ || (${k} === "string" && ${S} && ${S} == +${S} && !(${S} % 1))`).assign(Y,(0,n._)`+${S}`);return;case"boolean":g.elseIf((0,n._)`${S} === "false" || ${S} === 0 || ${S} === null`).assign(Y,!1).elseIf((0,n._)`${S} === "true" || ${S} === 1`).assign(Y,!0);return;case"null":g.elseIf((0,n._)`${S} === "" || ${S} === 0 || ${S} === false`),g.assign(Y,null);return;case"array":g.elseIf((0,n._)`${k} === "string" || ${k} === "number"
5
+ || ${k} === "boolean" || ${S} === null`).assign(Y,(0,n._)`[${S}]`)}}}function y({gen:I,parentData:v,parentDataProperty:x},g){I.if((0,n._)`${v} !== undefined`,()=>I.assign((0,n._)`${v}[${x}]`,g))}function h(I,v,x,g=o.Correct){const S=g===o.Correct?n.operators.EQ:n.operators.NEQ;let O;switch(I){case"null":return(0,n._)`${v} ${S} null`;case"array":O=(0,n._)`Array.isArray(${v})`;break;case"object":O=(0,n._)`${v} && typeof ${v} == "object" && !Array.isArray(${v})`;break;case"integer":O=k((0,n._)`!(${v} % 1) && !isNaN(${v})`);break;case"number":O=k();break;default:return(0,n._)`typeof ${v} ${S} ${I}`}return g===o.Correct?O:(0,n.not)(O);function k(Y=n.nil){return(0,n.and)((0,n._)`typeof ${v} == "number"`,Y,x?(0,n._)`isFinite(${v})`:n.nil)}}Xe.checkDataType=h;function w(I,v,x,g){if(I.length===1)return h(I[0],v,x,g);let S;const O=(0,i.toHash)(I);if(O.array&&O.object){const k=(0,n._)`typeof ${v} != "object"`;S=O.null?k:(0,n._)`!${v} || ${k}`,delete O.null,delete O.array,delete O.object}else S=n.nil;O.number&&delete O.integer;for(const k in O)S=(0,n.and)(S,h(k,v,x,g));return S}Xe.checkDataTypes=w;const b={message:({schema:I})=>`must be ${I}`,params:({schema:I,schemaValue:v})=>typeof I=="string"?(0,n._)`{type: ${I}}`:(0,n._)`{type: ${v}}`};function E(I){const v=P(I);(0,r.reportError)(v,b)}Xe.reportTypeError=E;function P(I){const{gen:v,data:x,schema:g}=I,S=(0,i.schemaRefOrVal)(I,g,"type");return{gen:v,keyword:"type",data:x,schema:g.type,schemaCode:S,schemaValue:S,parentSchema:g,params:{},it:I}}return Xe}var Mr={},yc;function FS(){if(yc)return Mr;yc=1,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.assignDefaults=void 0;const e=Oe(),t=ke();function r(i,o){const{properties:s,items:a}=i.schema;if(o==="object"&&s)for(const c in s)n(i,c,s[c].default);else o==="array"&&Array.isArray(a)&&a.forEach((c,l)=>n(i,l,c.default))}Mr.assignDefaults=r;function n(i,o,s){const{gen:a,compositeRule:c,data:l,opts:u}=i;if(s===void 0)return;const m=(0,e._)`${l}${(0,e.getProperty)(o)}`;if(c){(0,t.checkStrictMode)(i,`default is ignored for: ${m}`);return}let y=(0,e._)`${m} === undefined`;u.useDefaults==="empty"&&(y=(0,e._)`${y} || ${m} === null || ${m} === ""`),a.if(y,(0,e._)`${m} = ${(0,e.stringify)(s)}`)}return Mr}var gt={},Me={},Lr={},gc;function ud(){if(gc)return Lr;gc=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.getSkipCondition=void 0;const e=Oe(),t=pt();function r(n,i){var o;const s=(o=n.properties)===null||o===void 0?void 0:o[i];if(!s)return;const a=s.readOnly===!0,c=s.writeOnly===!0;if(!a&&!c)return;const l=[],u=(0,e._)`typeof ${t.default.this} == "object" && ${t.default.this} && ${t.default.this}.apiContext`;return a&&l.push((0,e._)`${u} === "request"`),c&&l.push((0,e._)`${u} === "response"`),(0,e.or)(...l)}return Lr.getSkipCondition=r,Lr}var vc;function Tt(){if(vc)return Me;vc=1,Object.defineProperty(Me,"__esModule",{value:!0}),Me.validateUnion=Me.validateArray=Me.usePattern=Me.callValidateCode=Me.schemaProperties=Me.allSchemaProperties=Me.noPropertyInData=Me.propertyInData=Me.isOwnProperty=Me.hasPropFunc=Me.reportMissingProp=Me.checkMissingProp=Me.checkReportMissingProp=void 0;const e=Oe(),t=ke(),r=pt(),n=ke(),i=ud();function o(v,x){const{gen:g,data:S,it:O}=v;g.if(m(g,S,x,O.opts.ownProperties),()=>{v.setParams({missingProperty:(0,e._)`${x}`},!0),v.error()})}Me.checkReportMissingProp=o;function s({gen:v,data:x,it:{opts:g},parentSchema:S},O,k){return(0,e.or)(...O.map(Y=>{var F;return(0,e.and)((0,e.not)((F=(0,i.getSkipCondition)(S,Y))!==null&&F!==void 0?F:(0,e._)`false`),m(v,x,Y,g.ownProperties),(0,e._)`${k} = ${Y}`)}))}Me.checkMissingProp=s;function a(v,x){v.setParams({missingProperty:x},!0),v.error()}Me.reportMissingProp=a;function c(v){return v.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Me.hasPropFunc=c;function l(v,x,g){return(0,e._)`${c(v)}.call(${x}, ${g})`}Me.isOwnProperty=l;function u(v,x,g,S){const O=(0,e._)`${x}${(0,e.getProperty)(g)} !== undefined`;return S?(0,e._)`${O} && ${l(v,x,g)}`:O}Me.propertyInData=u;function m(v,x,g,S){const O=(0,e._)`${x}${(0,e.getProperty)(g)} === undefined`;return S?(0,e.or)(O,(0,e.not)(l(v,x,g))):O}Me.noPropertyInData=m;function y(v){return v?Object.keys(v).filter(x=>x!=="__proto__"):[]}Me.allSchemaProperties=y;function h(v,x){return y(x).filter(g=>!(0,t.alwaysValidSchema)(v,x[g]))}Me.schemaProperties=h;function w({schemaCode:v,data:x,it:{gen:g,topSchemaRef:S,schemaPath:O,errorPath:k},it:Y},F,z,J){const M=J?(0,e._)`${v}, ${x}, ${S}${O}`:x,G=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,k)],[r.default.parentData,Y.parentData],[r.default.parentDataProperty,Y.parentDataProperty],[r.default.rootData,r.default.rootData],[r.default.isAllOfVariant,Y.isAllOfVariant?1:0]];Y.opts.dynamicRef&&G.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const de=(0,e._)`${M}, ${g.object(...G)}`;return z!==e.nil?(0,e._)`${F}.call(${z}, ${de})`:(0,e._)`${F}(${de})`}Me.callValidateCode=w;const b=(0,e._)`new RegExp`;function E({gen:v,it:{opts:x}},g){const S=x.unicodeRegExp?"u":"",{regExp:O}=x.code,k=O(g,S);return v.scopeValue("pattern",{key:k.toString(),ref:k,code:(0,e._)`${O.code==="new RegExp"?b:(0,n.useFunc)(v,O)}(${g}, ${S})`})}Me.usePattern=E;function P(v){const{gen:x,data:g,keyword:S,it:O}=v,k=x.name("valid");if(O.allErrors){const F=x.let("valid",!0);return Y(()=>x.assign(F,!1)),F}return x.var(k,!0),Y(()=>x.break()),k;function Y(F){const z=x.const("len",(0,e._)`${g}.length`);x.forRange("i",0,z,J=>{v.subschema({keyword:S,dataProp:J,dataPropType:t.Type.Num},k),x.if((0,e.not)(k),F)})}}Me.validateArray=P;function I(v){const{gen:x,schema:g,keyword:S,parentSchema:O,it:k}=v;if(!Array.isArray(g))throw new Error("ajv implementation error");if(k.opts.discriminator&&O.discriminator||g.some(J=>(0,t.alwaysValidSchema)(k,J))&&!k.opts.unevaluated)return;const F=x.let("valid",!1),z=x.name("_valid");x.block(()=>g.forEach((J,M)=>{const G=v.subschema({keyword:S,schemaProp:M,compositeRule:!0},z);x.assign(F,(0,e._)`${F} || ${z}`),v.mergeValidEvaluated(G,z)||x.if((0,e.not)(F))})),v.result(F,()=>v.reset(),()=>v.error(!0))}return Me.validateUnion=I,Me}var bc;function BS(){if(bc)return gt;bc=1,Object.defineProperty(gt,"__esModule",{value:!0}),gt.validateKeywordUsage=gt.validSchemaType=gt.funcKeywordCode=gt.macroKeywordCode=void 0;const e=Oe(),t=pt(),r=Tt(),n=mo();function i(y,h){const{gen:w,keyword:b,schema:E,parentSchema:P,it:I}=y,v=h.macro.call(I.self,E,P,I),x=l(w,b,v);I.opts.validateSchema!==!1&&I.self.validateSchema(v,!0);const g=w.name("valid");y.subschema({schema:v,schemaPath:e.nil,errSchemaPath:`${I.errSchemaPath}/${b}`,topSchemaRef:x,compositeRule:!0},g),y.pass(g,()=>y.error(!0))}gt.macroKeywordCode=i;function o(y,h){var w;const{gen:b,keyword:E,schema:P,parentSchema:I,$data:v,it:x}=y;c(x,h);const g=!v&&h.compile?h.compile.call(x.self,P,I,x):h.validate,S=l(b,E,g),O=b.let("valid");y.block$data(O,k),y.ok((w=h.valid)!==null&&w!==void 0?w:O);function k(){if(h.errors===!1)z(),h.modifying&&s(y),J(()=>y.error());else{const M=h.async?Y():F();h.modifying&&s(y),J(()=>a(y,M))}}function Y(){const M=b.let("ruleErrs",null);return b.try(()=>z((0,e._)`await `),G=>b.assign(O,!1).if((0,e._)`${G} instanceof ${x.ValidationError}`,()=>b.assign(M,(0,e._)`${G}.errors`),()=>b.throw(G))),M}function F(){const M=(0,e._)`${S}.errors`;return b.assign(M,null),z(e.nil),M}function z(M=h.async?(0,e._)`await `:e.nil){const G=x.opts.passContext?t.default.this:t.default.self,de=!("compile"in h&&!v||h.schema===!1);b.assign(O,(0,e._)`${M}${(0,r.callValidateCode)(y,S,G,de)}`,h.modifying)}function J(M){var G;b.if((0,e.not)((G=h.valid)!==null&&G!==void 0?G:O),M)}}gt.funcKeywordCode=o;function s(y){const{gen:h,data:w,it:b}=y;h.if(b.parentData,()=>h.assign(w,(0,e._)`${b.parentData}[${b.parentDataProperty}]`))}function a(y,h){const{gen:w}=y;w.if((0,e._)`Array.isArray(${h})`,()=>{w.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${h} : ${t.default.vErrors}.concat(${h})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(y)},()=>y.error())}function c({schemaEnv:y},h){if(h.async&&!y.$async)throw new Error("async keyword in sync schema")}function l(y,h,w){if(w===void 0)throw new Error(`keyword "${h}" failed to compile`);return y.scopeValue("keyword",typeof w=="function"?{ref:w}:{ref:w,code:(0,e.stringify)(w)})}function u(y,h,w=!1){return!h.length||h.some(b=>b==="array"?Array.isArray(y):b==="object"?y&&typeof y=="object"&&!Array.isArray(y):typeof y==b||w&&typeof y>"u")}gt.validSchemaType=u;function m({schema:y,opts:h,self:w,errSchemaPath:b},E,P){if(Array.isArray(E.keyword)?!E.keyword.includes(P):E.keyword!==P)throw new Error("ajv implementation error");const I=E.dependencies;if(I?.some(v=>!Object.prototype.hasOwnProperty.call(y,v)))throw new Error(`parent schema must have dependencies of ${P}: ${I.join(",")}`);if(E.validateSchema&&!E.validateSchema(y[P])){const x=`keyword "${P}" value is invalid at path "${b}": `+w.errorsText(E.validateSchema.errors);if(h.validateSchema==="log")w.logger.error(x);else throw new Error(x)}}return gt.validateKeywordUsage=m,gt}var jt={},wc;function zS(){if(wc)return jt;wc=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.extendSubschemaMode=jt.extendSubschemaData=jt.getSubschema=void 0;const e=Oe(),t=ke();function r(o,{keyword:s,schemaProp:a,schema:c,schemaPath:l,errSchemaPath:u,topSchemaRef:m}){if(s!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(s!==void 0){const y=o.schema[s];return a===void 0?{schema:y,schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${o.errSchemaPath}/${s}`}:{schema:y[a],schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(s)}${(0,e.getProperty)(a)}`,errSchemaPath:`${o.errSchemaPath}/${s}/${(0,t.escapeFragment)(a)}`}}if(c!==void 0){if(l===void 0||u===void 0||m===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:l,topSchemaRef:m,errSchemaPath:u}}throw new Error('either "keyword" or "schema" must be passed')}jt.getSubschema=r;function n(o,s,{dataProp:a,dataPropType:c,data:l,dataTypes:u,propertyName:m}){if(l!==void 0&&a!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:y}=s;if(a!==void 0){const{errorPath:w,dataPathArr:b,opts:E}=s,P=y.let("data",(0,e._)`${s.data}${(0,e.getProperty)(a)}`,!0);h(P),o.errorPath=(0,e.str)`${w}${(0,t.getErrorPath)(a,c,E.jsPropertySyntax)}`,o.parentDataProperty=(0,e._)`${a}`,o.dataPathArr=[...b,o.parentDataProperty]}if(l!==void 0){const w=l instanceof e.Name?l:y.let("data",l,!0);h(w),m!==void 0&&(o.propertyName=m)}u&&(o.dataTypes=u);function h(w){o.data=w,o.dataLevel=s.dataLevel+1,o.dataTypes=[],s.definedProperties=new Set,o.parentData=s.data,o.dataNames=[...s.dataNames,w]}}jt.extendSubschemaData=n;function i(o,{jtdDiscriminator:s,jtdMetadata:a,compositeRule:c,createErrors:l,allErrors:u}){c!==void 0&&(o.compositeRule=c),l!==void 0&&(o.createErrors=l),u!==void 0&&(o.allErrors=u),o.jtdDiscriminator=s,o.jtdMetadata=a}return jt.extendSubschemaMode=i,jt}var it={},Mo={exports:{}},Sc;function VS(){if(Sc)return Mo.exports;Sc=1;var e=Mo.exports=function(n,i,o){typeof i=="function"&&(o=i,i={}),o=i.cb||o;var s=typeof o=="function"?o:o.pre||function(){},a=o.post||function(){};t(i,s,a,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,i,o,s,a,c,l,u,m,y){if(s&&typeof s=="object"&&!Array.isArray(s)){i(s,a,c,l,u,m,y);for(var h in s){var w=s[h];if(Array.isArray(w)){if(h in e.arrayKeywords)for(var b=0;b<w.length;b++)t(n,i,o,w[b],a+"/"+h+"/"+b,c,a,h,s,b)}else if(h in e.propsKeywords){if(w&&typeof w=="object")for(var E in w)t(n,i,o,w[E],a+"/"+h+"/"+r(E),c,a,h,s,E)}else(h in e.keywords||n.allKeys&&!(h in e.skipKeywords))&&t(n,i,o,w,a+"/"+h,c,a,h,s)}o(s,a,c,l,u,m,y)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return Mo.exports}var Ec;function ho(){if(Ec)return it;Ec=1,Object.defineProperty(it,"__esModule",{value:!0}),it.getSchemaRefs=it.resolveUrl=it.normalizeId=it._getFullPath=it.getFullPath=it.inlineRef=void 0;const e=ke(),t=ee.requireFastDeepEqual(),r=VS(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(b,E=!0){return typeof b=="boolean"?!0:E===!0?!s(b):E?a(b)<=E:!1}it.inlineRef=i;const o=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(b){for(const E in b){if(o.has(E))return!0;const P=b[E];if(Array.isArray(P)&&P.some(s)||typeof P=="object"&&s(P))return!0}return!1}function a(b){let E=0;for(const P in b){if(P==="$ref")return 1/0;if(E++,!n.has(P)&&(typeof b[P]=="object"&&(0,e.eachItem)(b[P],I=>E+=a(I)),E===1/0))return 1/0}return E}function c(b,E="",P){P!==!1&&(E=m(E));const I=b.parse(E);return l(b,I)}it.getFullPath=c;function l(b,E){return b.serialize(E).split("#")[0]+"#"}it._getFullPath=l;const u=/#\/?$/;function m(b){return b?b.replace(u,""):""}it.normalizeId=m;function y(b,E,P){return P=m(P),b.resolve(E,P)}it.resolveUrl=y;const h=/^[a-z_][-a-z0-9._]*$/i;function w(b,E){if(typeof b=="boolean")return{};const{schemaId:P,uriResolver:I}=this.opts,v=m(b[P]||E),x={"":v},g=c(I,v,!1),S={},O=new Set;return r(b,{allKeys:!0},(F,z,J,M)=>{if(M===void 0)return;const G=g+z;let de=x[M];typeof F[P]=="string"&&(de=Se.call(this,F[P])),be.call(this,F.$anchor),be.call(this,F.$dynamicAnchor),x[z]=de;function Se(ge){const Pe=this.opts.uriResolver.resolve;if(ge=m(de?Pe(de,ge):ge),O.has(ge))throw Y(ge);O.add(ge);let B=this.refs[ge];return typeof B=="string"&&(B=this.refs[B]),typeof B=="object"?k(F,B.schema,ge):ge!==m(G)&&(ge[0]==="#"?(k(F,S[ge],ge),S[ge]=F):this.refs[ge]=G),ge}function be(ge){if(typeof ge=="string"){if(!h.test(ge))throw new Error(`invalid anchor "${ge}"`);Se.call(this,`#${ge}`)}}}),S;function k(F,z,J){if(z!==void 0&&!t(F,z))throw Y(J)}function Y(F){return new Error(`reference "${F}" resolves to more than one schema`)}}return it.getSchemaRefs=w,it}var xc;function Rr(){if(xc)return qt;xc=1,Object.defineProperty(qt,"__esModule",{value:!0}),qt.getData=qt.KeywordCxt=qt.validateFunctionCode=void 0;const e=US(),t=Ji(),r=ld(),n=Ji(),i=FS(),o=BS(),s=zS(),a=Oe(),c=pt(),l=ho(),u=ke(),m=mo();function y(C){if(g(C)&&(O(C),x(C))){E(C);return}h(C,()=>(0,e.topBoolOrEmptySchema)(C))}qt.validateFunctionCode=y;function h({gen:C,validateName:U,schema:X,schemaEnv:re,opts:ye},we){ye.code.es5?C.func(U,(0,a._)`${c.default.data}, ${c.default.valCxt}`,re.$async,()=>{C.code((0,a._)`"use strict"; ${I(X,ye)}`),b(C,ye),C.code(we)}):C.func(U,(0,a._)`${c.default.data}, ${w(ye)}`,re.$async,()=>C.code(I(X,ye)).code(we))}function w(C){return(0,a._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${C.dynamicRef?(0,a._)`, ${c.default.dynamicAnchors}={}`:a.nil}, ${c.default.isAllOfVariant} = 0}={}`}function b(C,U){C.if(c.default.valCxt,()=>{C.var(c.default.instancePath,(0,a._)`${c.default.valCxt}.${c.default.instancePath}`),C.var(c.default.parentData,(0,a._)`${c.default.valCxt}.${c.default.parentData}`),C.var(c.default.parentDataProperty,(0,a._)`${c.default.valCxt}.${c.default.parentDataProperty}`),C.var(c.default.rootData,(0,a._)`${c.default.valCxt}.${c.default.rootData}`),C.var(c.default.isAllOfVariant,(0,a._)`${c.default.valCxt}.${c.default.isAllOfVariant}`),U.dynamicRef&&C.var(c.default.dynamicAnchors,(0,a._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{C.var(c.default.instancePath,(0,a._)`""`),C.var(c.default.parentData,(0,a._)`undefined`),C.var(c.default.parentDataProperty,(0,a._)`undefined`),C.var(c.default.rootData,c.default.data),C.var(c.default.isAllOfVariant,(0,a._)`0`),U.dynamicRef&&C.var(c.default.dynamicAnchors,(0,a._)`{}`)})}function E(C){const{schema:U,opts:X,gen:re}=C;h(C,()=>{X.$comment&&U.$comment&&M(C),F(C),re.let(c.default.vErrors,null),re.let(c.default.errors,0),X.unevaluated&&P(C),k(C),G(C)})}function P(C){const{gen:U,validateName:X}=C;C.evaluated=U.const("evaluated",(0,a._)`${X}.evaluated`),U.if((0,a._)`${C.evaluated}.dynamicProps`,()=>U.assign((0,a._)`${C.evaluated}.props`,(0,a._)`undefined`)),U.if((0,a._)`${C.evaluated}.dynamicItems`,()=>U.assign((0,a._)`${C.evaluated}.items`,(0,a._)`undefined`))}function I(C,U){const X=typeof C=="object"&&C[U.schemaId];return X&&(U.code.source||U.code.process)?(0,a._)`/*# sourceURL=${X} */`:a.nil}function v(C,U){if(g(C)&&(O(C),x(C))){S(C,U);return}(0,e.boolOrEmptySchema)(C,U)}function x({schema:C,self:U}){if(typeof C=="boolean")return!C;for(const X in C)if(U.RULES.all[X])return!0;return!1}function g(C){return typeof C.schema!="boolean"}function S(C,U){const{schema:X,gen:re,opts:ye}=C;ye.$comment&&X.$comment&&M(C),z(C),J(C);const we=re.const("_errs",c.default.errors);k(C,we),re.var(U,(0,a._)`${we} === ${c.default.errors}`)}function O(C){(0,u.checkUnknownRules)(C),Y(C)}function k(C,U){if(C.opts.jtd)return Se(C,[],!1,U);const X=(0,t.getSchemaTypes)(C.schema),re=(0,t.coerceAndCheckDataType)(C,X);Se(C,X,!re,U)}function Y(C){const{schema:U,errSchemaPath:X,opts:re,self:ye}=C;U.$ref&&re.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(U,ye.RULES)&&ye.logger.warn(`$ref: keywords ignored in schema at path "${X}"`)}function F(C){const{schema:U,opts:X}=C;U.default!==void 0&&X.useDefaults&&X.strictSchema&&(0,u.checkStrictMode)(C,"default is ignored in the schema root")}function z(C){const U=C.schema[C.opts.schemaId];U&&(C.baseId=(0,l.resolveUrl)(C.opts.uriResolver,C.baseId,U))}function J(C){if(C.schema.$async&&!C.schemaEnv.$async)throw new Error("async schema in sync schema")}function M({gen:C,schemaEnv:U,schema:X,errSchemaPath:re,opts:ye}){const we=X.$comment;if(ye.$comment===!0)C.code((0,a._)`${c.default.self}.logger.log(${we})`);else if(typeof ye.$comment=="function"){const q=(0,a.str)`${re}/$comment`,Z=C.scopeValue("root",{ref:U.root});C.code((0,a._)`${c.default.self}.opts.$comment(${we}, ${q}, ${Z}.schema)`)}}function G(C){const{gen:U,schemaEnv:X,validateName:re,ValidationError:ye,opts:we}=C;X.$async?U.if((0,a._)`${c.default.errors} === 0`,()=>U.return(c.default.data),()=>U.throw((0,a._)`new ${ye}(${c.default.vErrors})`)):(U.assign((0,a._)`${re}.errors`,c.default.vErrors),we.unevaluated&&de(C),U.return((0,a._)`${c.default.errors} === 0`))}function de({gen:C,evaluated:U,props:X,items:re}){X instanceof a.Name&&C.assign((0,a._)`${U}.props`,X),re instanceof a.Name&&C.assign((0,a._)`${U}.items`,re)}function Se(C,U,X,re){const{gen:ye,schema:we,data:q,allErrors:Z,opts:pe,self:ne}=C,{RULES:oe}=ne;if(we.$ref&&(pe.ignoreKeywordsWithRef||!(0,u.schemaHasRulesButRef)(we,oe))){ye.block(()=>K(C,"$ref",oe.all.$ref.definition));return}pe.jtd||ge(C,U),ye.block(()=>{for(const ue of oe.rules)le(ue);le(oe.post)});function le(ue){(0,r.shouldUseGroup)(we,ue)&&(ue.type?(ye.if((0,n.checkDataType)(ue.type,q,pe.strictNumbers)),be(C,ue),U.length===1&&U[0]===ue.type&&X&&(ye.else(),(0,n.reportTypeError)(C)),ye.endIf()):be(C,ue),Z||ye.if((0,a._)`${c.default.errors} === ${re||0}`))}}function be(C,U){const{gen:X,schema:re,opts:{useDefaults:ye}}=C;ye&&(0,i.assignDefaults)(C,U.type),X.block(()=>{for(const q of U.rules)((0,r.shouldUseRule)(re,q)||we(re,q))&&K(C,q.keyword,q.definition,U.type)});function we(q,Z){return!!(Z.keyword==="unevaluatedProperties"&&(q.properties||q.patternProperties)&&!C.isAllOfVariant&&C.opts.defaultUnevaluatedProperties===!1)}}function ge(C,U){C.schemaEnv.meta||!C.opts.strictTypes||(Pe(C,U),C.opts.allowUnionTypes||B(C,U),L(C,C.dataTypes))}function Pe(C,U){if(U.length){if(!C.dataTypes.length){C.dataTypes=U;return}U.forEach(X=>{V(C.dataTypes,X)||$(C,`type "${X}" not allowed by context "${C.dataTypes.join(",")}"`)}),_(C,U)}}function B(C,U){U.length>1&&!(U.length===2&&U.includes("null"))&&$(C,"use allowUnionTypes to allow union type keyword")}function L(C,U){const X=C.self.RULES.all;for(const re in X){const ye=X[re];if(typeof ye=="object"&&(0,r.shouldUseRule)(C.schema,ye)){const{type:we}=ye.definition;we.length&&!we.some(q=>Q(U,q))&&$(C,`missing type "${we.join(",")}" for keyword "${re}"`)}}}function Q(C,U){return C.includes(U)||U==="number"&&C.includes("integer")}function V(C,U){return C.includes(U)||U==="integer"&&C.includes("number")}function _(C,U){const X=[];for(const re of C.dataTypes)V(U,re)?X.push(re):U.includes("integer")&&re==="number"&&X.push("integer");C.dataTypes=X}function $(C,U){const X=C.schemaEnv.baseId+C.errSchemaPath;U+=` at "${X}" (strictTypes)`,(0,u.checkStrictMode)(C,U,C.opts.strictTypes)}class A{constructor(U,X,re){if((0,o.validateKeywordUsage)(U,X,re),this.gen=U.gen,this.allErrors=U.allErrors,this.keyword=re,this.data=U.data,this.schema=U.schema[re],this.$data=X.$data&&U.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(U,this.schema,re,this.$data),this.schemaType=X.schemaType,this.parentSchema=U.schema,this.params={},this.it=U,this.def=X,this.$data)this.schemaCode=U.gen.const("vSchema",ae(this.$data,U));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,X.schemaType,X.allowUndefined))throw new Error(`${re} value must be ${JSON.stringify(X.schemaType)}`);("code"in X?X.trackErrors:X.errors!==!1)&&(this.errsCount=U.gen.const("_errs",c.default.errors))}result(U,X,re){this.failResult((0,a.not)(U),X,re)}failResult(U,X,re){this.gen.if(U),re?re():this.error(),X?(this.gen.else(),X(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(U,X){this.failResult((0,a.not)(U),void 0,X)}fail(U){if(U===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(U),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(U){if(!this.$data)return this.fail(U);const{schemaCode:X}=this;this.fail((0,a._)`${X} !== undefined && (${(0,a.or)(this.invalid$data(),U)})`)}error(U,X,re){if(X){this.setParams(X),this._error(U,re),this.setParams({});return}this._error(U,re)}_error(U,X){(U?m.reportExtraError:m.reportError)(this,this.def.error,X)}$dataError(){(0,m.reportError)(this,this.def.$dataError||m.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,m.resetErrorsCount)(this.gen,this.errsCount)}ok(U){this.allErrors||this.gen.if(U)}setParams(U,X){X?Object.assign(this.params,U):this.params=U}block$data(U,X,re=a.nil){this.gen.block(()=>{this.check$data(U,re),X()})}check$data(U=a.nil,X=a.nil){if(!this.$data)return;const{gen:re,schemaCode:ye,schemaType:we,def:q}=this;re.if((0,a.or)((0,a._)`${ye} === undefined`,X)),U!==a.nil&&re.assign(U,!0),(we.length||q.validateSchema)&&(re.elseIf(this.invalid$data()),this.$dataError(),U!==a.nil&&re.assign(U,!1)),re.else()}invalid$data(){const{gen:U,schemaCode:X,schemaType:re,def:ye,it:we}=this;return(0,a.or)(q(),Z());function q(){if(re.length){if(!(X instanceof a.Name))throw new Error("ajv implementation error");const pe=Array.isArray(re)?re:[re];return(0,a._)`${(0,n.checkDataTypes)(pe,X,we.opts.strictNumbers,n.DataType.Wrong)}`}return a.nil}function Z(){if(ye.validateSchema){const pe=U.scopeValue("validate$data",{ref:ye.validateSchema});return(0,a._)`!${pe}(${X})`}return a.nil}}subschema(U,X,re){const ye=(0,s.getSubschema)(this.it,U);(0,s.extendSubschemaData)(ye,this.it,U),(0,s.extendSubschemaMode)(ye,U);const we={...this.it,...ye,items:void 0,props:void 0,isAllOfVariant:re};return v(we,X),we}mergeEvaluated(U,X){const{it:re,gen:ye}=this;re.opts.unevaluated&&(re.props!==!0&&U.props!==void 0&&(re.props=u.mergeEvaluated.props(ye,U.props,re.props,X)),re.items!==!0&&U.items!==void 0&&(re.items=u.mergeEvaluated.items(ye,U.items,re.items,X)))}mergeValidEvaluated(U,X){const{it:re,gen:ye}=this;if(re.opts.unevaluated&&(re.props!==!0||re.items!==!0))return ye.if(X,()=>this.mergeEvaluated(U,a.Name)),!0}}qt.KeywordCxt=A;function K(C,U,X,re){const ye=new A(C,X,U);"code"in X?X.code(ye,re):ye.$data&&X.validate?(0,o.funcKeywordCode)(ye,X):"macro"in X?(0,o.macroKeywordCode)(ye,X):(X.compile||X.validate)&&(0,o.funcKeywordCode)(ye,X)}const H=/^\/(?:[^~]|~0|~1)*$/,W=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ae(C,{dataLevel:U,dataNames:X,dataPathArr:re}){let ye,we;if(C==="")return c.default.rootData;if(C[0]==="/"){if(!H.test(C))throw new Error(`Invalid JSON-pointer: ${C}`);ye=C,we=c.default.rootData}else{const ne=W.exec(C);if(!ne)throw new Error(`Invalid JSON-pointer: ${C}`);const oe=+ne[1];if(ye=ne[2],ye==="#"){if(oe>=U)throw new Error(pe("property/index",oe));return re[U-oe]}if(oe>U)throw new Error(pe("data",oe));if(we=X[U-oe],!ye)return we}let q=we;const Z=ye.split("/");for(const ne of Z)ne&&(we=(0,a._)`${we}${(0,a.getProperty)((0,u.unescapeJsonPointer)(ne))}`,q=(0,a._)`${q} && ${we}`);return q;function pe(ne,oe){return`Cannot access ${ne} ${oe} levels up, current level is ${U}`}}return qt.getData=ae,qt}var An={},Tc;function cn(){if(Tc)return An;Tc=1,Object.defineProperty(An,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return An.default=e,An}var Rn={},Pc;function $r(){if(Pc)return Rn;Pc=1,Object.defineProperty(Rn,"__esModule",{value:!0});const e=ho();class t extends Error{constructor(n,i,o,s){super(s||`can't resolve reference ${o} from id ${i}`),this.missingRef=(0,e.resolveUrl)(n,i,o),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(n,this.missingRef))}}return Rn.default=t,Rn}var lt={},Oc;function yo(){if(Oc)return lt;Oc=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.resolveSchema=lt.getCompilingSchema=lt.resolveRef=lt.compileSchema=lt.SchemaEnv=void 0;const e=Oe(),t=cn(),r=pt(),n=ho(),i=ke(),o=Rr();class s{constructor(P){var I;this.refs={},this.dynamicAnchors={};let v;typeof P.schema=="object"&&(v=P.schema),this.schema=P.schema,this.schemaId=P.schemaId,this.root=P.root||this,this.baseId=(I=P.baseId)!==null&&I!==void 0?I:(0,n.normalizeId)(v?.[P.schemaId||"$id"]),this.schemaPath=P.schemaPath,this.localRefs=P.localRefs,this.meta=P.meta,this.$async=v?.$async,this.refs={}}}lt.SchemaEnv=s;function a(E){const P=u.call(this,E);if(P)return P;const I=(0,n.getFullPath)(this.opts.uriResolver,E.root.baseId),{es5:v,lines:x}=this.opts.code,{ownProperties:g}=this.opts,S=new e.CodeGen(this.scope,{es5:v,lines:x,ownProperties:g});let O;E.$async&&(O=S.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const k=S.scopeName("validate");E.validateName=k;const Y={gen:S,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:S.scopeValue("schema",this.opts.code.source===!0?{ref:E.schema,code:(0,e.stringify)(E.schema)}:{ref:E.schema}),validateName:k,ValidationError:O,schema:E.schema,schemaEnv:E,rootId:I,baseId:E.baseId||I,schemaPath:e.nil,errSchemaPath:E.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let F;try{this._compilations.add(E),(0,o.validateFunctionCode)(Y),S.optimize(this.opts.code.optimize);const z=S.toString();F=`const visitedNodesForRef = new WeakMap(); ${S.scopeRefs(r.default.scope)}return ${z}`,this.opts.code.process&&(F=this.opts.code.process(F,E));const M=new Function(`${r.default.self}`,`${r.default.scope}`,F)(this,this.scope.get());if(this.scope.value(k,{ref:M}),M.errors=null,M.schema=E.schema,M.schemaEnv=E,E.$async&&(M.$async=!0),this.opts.code.source===!0&&(M.source={validateName:k,validateCode:z,scopeValues:S._values}),this.opts.unevaluated){const{props:G,items:de}=Y;M.evaluated={props:G instanceof e.Name?void 0:G,items:de instanceof e.Name?void 0:de,dynamicProps:G instanceof e.Name,dynamicItems:de instanceof e.Name},M.source&&(M.source.evaluated=(0,e.stringify)(M.evaluated))}return E.validate=M,E}catch(z){throw delete E.validate,delete E.validateName,F&&this.logger.error("Error compiling schema, function code:",F),z}finally{this._compilations.delete(E)}}lt.compileSchema=a;function c(E,P,I){var v;const x=(0,n.resolveUrl)(this.opts.uriResolver,P,I),g=E.refs[x];if(g)return g;let S=y.call(this,E,x);if(S===void 0){const O=(v=E.localRefs)===null||v===void 0?void 0:v[x],{schemaId:k}=this.opts;O&&(S=new s({schema:O,schemaId:k,root:E,baseId:P}))}if(S===void 0&&this.opts.loadSchemaSync){const O=this.opts.loadSchemaSync(P,I,x);O&&!(this.refs[x]||this.schemas[x])&&(this.addSchema(O,x,void 0),S=y.call(this,E,x))}if(S!==void 0)return E.refs[x]=l.call(this,S)}lt.resolveRef=c;function l(E){return(0,n.inlineRef)(E.schema,this.opts.inlineRefs)?E.schema:E.validate?E:a.call(this,E)}function u(E){for(const P of this._compilations)if(m(P,E))return P}lt.getCompilingSchema=u;function m(E,P){return E.schema===P.schema&&E.root===P.root&&E.baseId===P.baseId}function y(E,P){let I;for(;typeof(I=this.refs[P])=="string";)P=I;return I||this.schemas[P]||h.call(this,E,P)}function h(E,P){const I=this.opts.uriResolver.parse(P),v=(0,n._getFullPath)(this.opts.uriResolver,I);let x=(0,n.getFullPath)(this.opts.uriResolver,E.baseId,void 0);if(Object.keys(E.schema).length>0&&v===x)return b.call(this,I,E);const g=(0,n.normalizeId)(v),S=this.refs[g]||this.schemas[g];if(typeof S=="string"){const O=h.call(this,E,S);return typeof O?.schema!="object"?void 0:b.call(this,I,O)}if(typeof S?.schema=="object"){if(S.validate||a.call(this,S),g===(0,n.normalizeId)(P)){const{schema:O}=S,{schemaId:k}=this.opts,Y=O[k];return Y&&(x=(0,n.resolveUrl)(this.opts.uriResolver,x,Y)),new s({schema:O,schemaId:k,root:E,baseId:x})}return b.call(this,I,S)}}lt.resolveSchema=h;const w=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function b(E,{baseId:P,schema:I,root:v}){var x;if(((x=E.fragment)===null||x===void 0?void 0:x[0])!=="/")return;for(const O of E.fragment.slice(1).split("/")){if(typeof I=="boolean")return;const k=I[(0,i.unescapeFragment)(O)];if(k===void 0)return;I=k;const Y=typeof I=="object"&&I[this.opts.schemaId];!w.has(O)&&Y&&(P=(0,n.resolveUrl)(this.opts.uriResolver,P,Y))}let g;if(typeof I!="boolean"&&I.$ref&&!(0,i.schemaHasRulesButRef)(I,this.RULES)){const O=(0,n.resolveUrl)(this.opts.uriResolver,P,I.$ref);g=h.call(this,v,O)}const{schemaId:S}=this.opts;if(g=g||new s({schema:I,schemaId:S,root:v,baseId:P}),g.schema!==g.root.schema)return g}return lt}const KS="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",HS="Meta-schema for $data reference (JSON AnySchema extension proposal)",GS="object",YS=["$data"],QS={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},WS=!1,JS={$id:KS,description:HS,type:GS,required:YS,properties:QS,additionalProperties:WS};var $n={},Ur={exports:{}},Lo,Ic;function dd(){if(Ic)return Lo;Ic=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),i=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function o(g){let S="",O=0,k=0;for(k=0;k<g.length;k++)if(O=g[k].charCodeAt(0),O!==48){if(!(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102))return"";S+=g[k];break}for(k+=1;k<g.length;k++){if(O=g[k].charCodeAt(0),!(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102))return"";S+=g[k]}return S}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function a(g){return g.length=0,!0}function c(g,S,O){if(g.length){const k=o(g);if(k!=="")S.push(k);else return O.error=!0,!1;g.length=0}return!0}function l(g){let S=0;const O={error:!1,address:"",zone:""},k=[],Y=[];let F=!1,z=!1,J=c;for(let M=0;M<g.length;M++){const G=g[M];if(!(G==="["||G==="]"))if(G===":"){if(F===!0&&(z=!0),!J(Y,k,O))break;if(++S>7){O.error=!0;break}M>0&&g[M-1]===":"&&(F=!0),k.push(":");continue}else if(G==="%"){if(!J(Y,k,O))break;J=a}else{Y.push(G);continue}}return Y.length&&(J===a?O.zone=Y.join(""):z?k.push(Y.join("")):k.push(o(Y))),O.address=k.join(""),O}function u(g){if(m(g,":")<2)return{host:g,isIPV6:!1};const S=l(g);if(S.error)return{host:g,isIPV6:!1};{let O=S.address,k=S.address;return S.zone&&(O+="%"+S.zone,k+="%25"+S.zone),{host:O,isIPV6:!0,escapedHost:k}}}function m(g,S){let O=0;for(let k=0;k<g.length;k++)g[k]===S&&O++;return O}function y(g){let S=g;const O=[];let k=-1,Y=0;for(;Y=S.length;){if(Y===1){if(S===".")break;if(S==="/"){O.push("/");break}else{O.push(S);break}}else if(Y===2){if(S[0]==="."){if(S[1]===".")break;if(S[1]==="/"){S=S.slice(2);continue}}else if(S[0]==="/"&&(S[1]==="."||S[1]==="/")){O.push("/");break}}else if(Y===3&&S==="/.."){O.length!==0&&O.pop(),O.push("/");break}if(S[0]==="."){if(S[1]==="."){if(S[2]==="/"){S=S.slice(3);continue}}else if(S[1]==="/"){S=S.slice(2);continue}}else if(S[0]==="/"&&S[1]==="."){if(S[2]==="/"){S=S.slice(2);continue}else if(S[2]==="."&&S[3]==="/"){S=S.slice(3),O.length!==0&&O.pop();continue}}if((k=S.indexOf("/",1))===-1){O.push(S);break}else O.push(S.slice(0,k)),S=S.slice(k)}return O.join("")}const h={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},w=/[@/?#:]/g,b=/[@/?#]/g;function E(g,S){const O=S?b:w;return O.lastIndex=0,g.replace(O,k=>h[k])}function P(g,S=!1){if(g.indexOf("%")===-1)return g;let O="";for(let k=0;k<g.length;k++){if(g[k]==="%"&&k+2<g.length){const Y=g.slice(k+1,k+3);if(r(Y)){const F=Y.toUpperCase(),z=String.fromCharCode(parseInt(F,16));S&&n(z)?O+=z:O+="%"+F,k+=2;continue}}O+=g[k]}return O}function I(g){let S="";for(let O=0;O<g.length;O++){if(g[O]==="%"&&O+2<g.length){const k=g.slice(O+1,O+3);if(r(k)){const Y=k.toUpperCase(),F=String.fromCharCode(parseInt(Y,16));F!=="."&&n(F)?S+=F:S+="%"+Y,O+=2;continue}}i(g[O])?S+=g[O]:S+=escape(g[O])}return S}function v(g){let S="";for(let O=0;O<g.length;O++){if(g[O]==="%"&&O+2<g.length){const k=g.slice(O+1,O+3);if(r(k)){S+="%"+k.toUpperCase(),O+=2;continue}}S+=escape(g[O])}return S}function x(g){const S=[];if(g.userinfo!==void 0&&(S.push(g.userinfo),S.push("@")),g.host!==void 0){let O=unescape(g.host);if(!t(O)){const k=u(O);k.isIPV6===!0?O=`[${k.escapedHost}]`:O=E(O,!1)}S.push(O)}return(typeof g.port=="number"||typeof g.port=="string")&&(S.push(":"),S.push(String(g.port))),S.length?S.join(""):void 0}return Lo={nonSimpleDomain:s,recomposeAuthority:x,reescapeHostDelimiters:E,normalizePercentEncoding:P,normalizePathEncoding:I,escapePreservingEscapes:v,removeDotSegments:y,isIPv4:t,isUUID:e,normalizeIPv6:u,stringArrayToHexStripped:o},Lo}var Uo,_c;function XS(){if(_c)return Uo;_c=1;const{isUUID:e}=dd(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function n(g){return r.indexOf(g)!==-1}function i(g){return g.secure===!0?!0:g.secure===!1?!1:g.scheme?g.scheme.length===3&&(g.scheme[0]==="w"||g.scheme[0]==="W")&&(g.scheme[1]==="s"||g.scheme[1]==="S")&&(g.scheme[2]==="s"||g.scheme[2]==="S"):!1}function o(g){return g.host||(g.error=g.error||"HTTP URIs must have a host."),g}function s(g){const S=String(g.scheme).toLowerCase()==="https";return(g.port===(S?443:80)||g.port==="")&&(g.port=void 0),g.path||(g.path="/"),g}function a(g){return g.secure=i(g),g.resourceName=(g.path||"/")+(g.query?"?"+g.query:""),g.path=void 0,g.query=void 0,g}function c(g){if((g.port===(i(g)?443:80)||g.port==="")&&(g.port=void 0),typeof g.secure=="boolean"&&(g.scheme=g.secure?"wss":"ws",g.secure=void 0),g.resourceName){const[S,O]=g.resourceName.split("?");g.path=S&&S!=="/"?S:void 0,g.query=O,g.resourceName=void 0}return g.fragment=void 0,g}function l(g,S){if(!g.path)return g.error="URN can not be parsed",g;const O=g.path.match(t);if(O){const k=S.scheme||g.scheme||"urn";g.nid=O[1].toLowerCase(),g.nss=O[2];const Y=`${k}:${S.nid||g.nid}`,F=x(Y);g.path=void 0,F&&(g=F.parse(g,S))}else g.error=g.error||"URN can not be parsed.";return g}function u(g,S){if(g.nid===void 0)throw new Error("URN without nid cannot be serialized");const O=S.scheme||g.scheme||"urn",k=g.nid.toLowerCase(),Y=`${O}:${S.nid||k}`,F=x(Y);F&&(g=F.serialize(g,S));const z=g,J=g.nss;return z.path=`${k||S.nid}:${J}`,S.skipEscape=!0,z}function m(g,S){const O=g;return O.uuid=O.nss,O.nss=void 0,!S.tolerant&&(!O.uuid||!e(O.uuid))&&(O.error=O.error||"UUID is not valid."),O}function y(g){const S=g;return S.nss=(g.uuid||"").toLowerCase(),S}const h={scheme:"http",domainHost:!0,parse:o,serialize:s},w={scheme:"https",domainHost:h.domainHost,parse:o,serialize:s},b={scheme:"ws",domainHost:!0,parse:a,serialize:c},E={scheme:"wss",domainHost:b.domainHost,parse:b.parse,serialize:b.serialize},v={http:h,https:w,ws:b,wss:E,urn:{scheme:"urn",parse:l,serialize:u,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:m,serialize:y,skipNormalize:!0}};Object.setPrototypeOf(v,null);function x(g){return g&&(v[g]||v[g.toLowerCase()])||void 0}return Uo={wsIsSecure:i,SCHEMES:v,isValidSchemeName:n,getSchemeHandler:x},Uo}var Ac;function ZS(){if(Ac)return Ur.exports;Ac=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:n,normalizePathEncoding:i,escapePreservingEscapes:o,reescapeHostDelimiters:s,isIPv4:a,nonSimpleDomain:c}=dd(),{SCHEMES:l,getSchemeHandler:u}=XS();function m(F,z){return typeof F=="string"?F=S(F,z):typeof F=="object"&&(F=g(b(F,z),z)),F}function y(F,z,J){const M=J?Object.assign({scheme:"null"},J):{scheme:"null"},{parsed:G,malformedAuthorityOrPort:de}=x(F,M),{parsed:Se,malformedAuthorityOrPort:be}=x(z,M);if(de||be)throw new Error(G.error||Se.error||"URI is malformed.");const ge=h(G,Se,M,!0);return M.skipEscape=!0,b(ge,M)}function h(F,z,J,M){const G={};return M||(F=g(b(F,J),J),z=g(b(z,J),J)),J=J||{},!J.tolerant&&z.scheme?(G.scheme=z.scheme,G.userinfo=z.userinfo,G.host=z.host,G.port=z.port,G.path=t(z.path||""),G.query=z.query):(z.userinfo!==void 0||z.host!==void 0||z.port!==void 0?(G.userinfo=z.userinfo,G.host=z.host,G.port=z.port,G.path=t(z.path||""),G.query=z.query):(z.path?(z.path[0]==="/"?G.path=t(z.path):((F.userinfo!==void 0||F.host!==void 0||F.port!==void 0)&&!F.path?G.path="/"+z.path:F.path?G.path=F.path.slice(0,F.path.lastIndexOf("/")+1)+z.path:G.path=z.path,G.path=t(G.path)),G.query=z.query):(G.path=F.path,z.query!==void 0?G.query=z.query:G.query=F.query),G.userinfo=F.userinfo,G.host=F.host,G.port=F.port),G.scheme=F.scheme),G.fragment=z.fragment,G}function w(F,z,J){const M=k(F,J),G=k(z,J);return M!==void 0&&G!==void 0&&M.toLowerCase()===G.toLowerCase()}function b(F,z){const J={host:F.host,scheme:F.scheme,userinfo:F.userinfo,port:F.port,path:F.path,query:F.query,nid:F.nid,nss:F.nss,uuid:F.uuid,fragment:F.fragment,reference:F.reference,resourceName:F.resourceName,secure:F.secure,error:""},M=Object.assign({},z),G=[],de=u(M.scheme||J.scheme);de&&de.serialize&&de.serialize(J,M),J.path!==void 0&&(M.skipEscape?J.path=n(J.path):(J.path=o(J.path),J.scheme!==void 0&&(J.path=J.path.split("%3A").join(":")))),M.reference!=="suffix"&&J.scheme&&G.push(J.scheme,":");const Se=r(J);if(Se!==void 0&&(M.reference!=="suffix"&&G.push("//"),G.push(Se),J.path&&J.path[0]!=="/"&&G.push("/")),J.path!==void 0){let be=J.path;!M.absolutePath&&(!de||!de.absolutePath)&&(be=t(be)),Se===void 0&&be[0]==="/"&&be[1]==="/"&&(be="/%2F"+be.slice(2)),G.push(be)}return J.query!==void 0&&G.push("?",J.query),J.fragment!==void 0&&G.push("#",J.fragment),G.join("")}const E=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,P=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,I=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function v(F,z){if(z[2]!==void 0&&F.path&&F.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof F.port=="number"&&(F.port<0||F.port>65535))return"URI port is malformed."}function x(F,z){const J=Object.assign({},z),M={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let G=!1,de=!1;J.reference==="suffix"&&(J.scheme?F=J.scheme+":"+F:F="//"+F);const Se=F.match(P);Se!==null&&Se[1].indexOf("\\")!==-1&&(M.error="URI authority must not contain a literal backslash.",G=!0);const be=F.match(I);if(be!==null){const Pe=be[1],B=Pe.replace(/[\t\n\r]/g,"");B.length>=2&&(B.slice(0,2)!=="//"?(M.error=M.error||"URI authority must not contain a literal backslash.",G=!0):Pe.length!==B.length&&(M.error=M.error||"URI authority introducer must not contain whitespace.",G=!0))}const ge=F.match(E);if(ge){M.scheme=ge[1],M.userinfo=ge[3],M.host=ge[4],M.port=parseInt(ge[5],10),M.path=ge[6]||"",M.query=ge[7],M.fragment=ge[8],isNaN(M.port)&&(M.port=ge[5]);const Pe=v(M,ge);if(Pe!==void 0&&(M.error=M.error||Pe,G=!0),M.host)if(a(M.host)===!1){const Q=e(M.host);M.host=Q.host.toLowerCase(),de=Q.isIPV6}else de=!0;M.scheme===void 0&&M.userinfo===void 0&&M.host===void 0&&M.port===void 0&&M.query===void 0&&!M.path?M.reference="same-document":M.scheme===void 0?M.reference="relative":M.fragment===void 0?M.reference="absolute":M.reference="uri",J.reference&&J.reference!=="suffix"&&J.reference!==M.reference&&(M.error=M.error||"URI is not a "+J.reference+" reference.");const B=u(J.scheme||M.scheme);if(!J.unicodeSupport&&(!B||!B.unicodeSupport)&&M.host&&(J.domainHost||B&&B.domainHost)&&de===!1&&c(M.host))try{M.host=new URL("http://"+M.host).hostname}catch(L){M.error=M.error||"Host's domain name can not be converted to ASCII: "+L}if((!B||B&&!B.skipNormalize)&&(F.indexOf("%")!==-1&&(M.scheme!==void 0&&(M.scheme=unescape(M.scheme)),M.host!==void 0&&(M.host=s(unescape(M.host),de))),M.path&&(M.path=i(M.path)),M.fragment))try{M.fragment=encodeURI(decodeURIComponent(M.fragment))}catch{M.error=M.error||"URI malformed"}B&&B.parse&&B.parse(M,J)}else M.error=M.error||"URI can not be parsed.";return{parsed:M,malformedAuthorityOrPort:G}}function g(F,z){return x(F,z).parsed}function S(F,z){return O(F,z).normalized}function O(F,z){const{parsed:J,malformedAuthorityOrPort:M}=x(F,z);return{normalized:M?F:b(J,z),malformedAuthorityOrPort:M}}function k(F,z){if(typeof F=="string"){const{normalized:J,malformedAuthorityOrPort:M}=O(F,z);return M?void 0:J}if(typeof F=="object")return b(F,z)}const Y={SCHEMES:l,normalize:m,resolve:y,resolveComponent:h,equal:w,serialize:b,parse:g};return Ur.exports=Y,Ur.exports.default=Y,Ur.exports.fastUri=Y,Ur.exports}var Rc;function eE(){if(Rc)return $n;Rc=1,Object.defineProperty($n,"__esModule",{value:!0});const e=ZS();return e.code='require("ajv/dist/runtime/uri").default',$n.default=e,$n}var $c;function pa(){return $c||($c=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=Rr();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Oe();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=cn(),i=$r(),o=pd(),s=yo(),a=Oe(),c=ho(),l=Ji(),u=ke(),m=JS,y=eE(),h=(B,L)=>new RegExp(B,L);h.code="new RegExp";const w=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],b=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),E={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."},P={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},I=200;function v(B){var L,Q,V,_,$,A,K,H,W,ae,C,U,X,re,ye,we,q,Z,pe,ne,oe,le,ue,fe,xe;const Fe=B.strict,p=(L=B.code)===null||L===void 0?void 0:L.optimize,d=p===!0||p===void 0?1:p||0,f=(V=(Q=B.code)===null||Q===void 0?void 0:Q.regExp)!==null&&V!==void 0?V:h,T=(_=B.uriResolver)!==null&&_!==void 0?_:y.default;return{strictSchema:(A=($=B.strictSchema)!==null&&$!==void 0?$:Fe)!==null&&A!==void 0?A:!0,strictNumbers:(H=(K=B.strictNumbers)!==null&&K!==void 0?K:Fe)!==null&&H!==void 0?H:!0,strictTypes:(ae=(W=B.strictTypes)!==null&&W!==void 0?W:Fe)!==null&&ae!==void 0?ae:"log",strictTuples:(U=(C=B.strictTuples)!==null&&C!==void 0?C:Fe)!==null&&U!==void 0?U:"log",strictRequired:(re=(X=B.strictRequired)!==null&&X!==void 0?X:Fe)!==null&&re!==void 0?re:!1,code:B.code?{...B.code,optimize:d,regExp:f}:{optimize:d,regExp:f},loopRequired:(ye=B.loopRequired)!==null&&ye!==void 0?ye:I,loopEnum:(we=B.loopEnum)!==null&&we!==void 0?we:I,meta:(q=B.meta)!==null&&q!==void 0?q:!0,messages:(Z=B.messages)!==null&&Z!==void 0?Z:!0,inlineRefs:(pe=B.inlineRefs)!==null&&pe!==void 0?pe:!0,schemaId:(ne=B.schemaId)!==null&&ne!==void 0?ne:"$id",addUsedSchema:(oe=B.addUsedSchema)!==null&&oe!==void 0?oe:!0,validateSchema:(le=B.validateSchema)!==null&&le!==void 0?le:!0,validateFormats:(ue=B.validateFormats)!==null&&ue!==void 0?ue:!0,unicodeRegExp:(fe=B.unicodeRegExp)!==null&&fe!==void 0?fe:!0,int32range:(xe=B.int32range)!==null&&xe!==void 0?xe:!0,uriResolver:T}}class x{constructor(L={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,L=this.opts={...L,...v(L)};const{es5:Q,lines:V}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:b,es5:Q,lines:V}),this.logger=J(L.logger);const _=L.validateFormats;L.validateFormats=!1,this.RULES=(0,o.getRules)(),g.call(this,E,L,"NOT SUPPORTED"),g.call(this,P,L,"DEPRECATED","warn"),this._metaOpts=F.call(this),L.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),L.keywords&&Y.call(this,L.keywords),typeof L.meta=="object"&&this.addMetaSchema(L.meta),O.call(this),L.validateFormats=_}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:L,meta:Q,schemaId:V}=this.opts;let _=m;V==="id"&&(_={...m},_.id=_.$id,delete _.$id),Q&&L&&this.addMetaSchema(_,_[V],!1)}defaultMeta(){const{meta:L,schemaId:Q}=this.opts;return this.opts.defaultMeta=typeof L=="object"?L[Q]||L:void 0}setDefaultUnevaluatedProperties(L){this.opts.defaultUnevaluatedProperties=L}validate(L,Q){let V;if(typeof L=="string"){if(V=this.getSchema(L),!V)throw new Error(`no schema with key or ref "${L}"`)}else V=this.compile(L);const _=V(Q);return"$async"in V||(this.errors=V.errors),_}compile(L,Q){const V=this._addSchema(L,Q);return V.validate||this._compileSchemaEnv(V)}compileAsync(L,Q){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:V}=this.opts;return _.call(this,L,Q);async function _(ae,C){await $.call(this,ae.$schema);const U=this._addSchema(ae,C);return U.validate||A.call(this,U)}async function $(ae){ae&&!this.getSchema(ae)&&await _.call(this,{$ref:ae},!0)}async function A(ae){try{return this._compileSchemaEnv(ae)}catch(C){if(!(C instanceof i.default))throw C;return K.call(this,C),await H.call(this,C.missingSchema),A.call(this,ae)}}function K({missingSchema:ae,missingRef:C}){if(this.refs[ae])throw new Error(`AnySchema ${ae} is loaded but ${C} cannot be resolved`)}async function H(ae){const C=await W.call(this,ae);this.refs[ae]||await $.call(this,C.$schema),this.refs[ae]||this.addSchema(C,ae,Q)}async function W(ae){const C=this._loading[ae];if(C)return C;try{return await(this._loading[ae]=V(ae))}finally{delete this._loading[ae]}}}addSchema(L,Q,V,_=this.opts.validateSchema){if(Array.isArray(L)){for(const A of L)this.addSchema(A,void 0,V,_);return this}let $;if(typeof L=="object"){const{schemaId:A}=this.opts;if($=L[A],$!==void 0&&typeof $!="string")throw new Error(`schema ${A} must be string`)}return Q=(0,c.normalizeId)(Q||$),this._checkUnique(Q),this.schemas[Q]=this._addSchema(L,V,Q,_,!0),this}addMetaSchema(L,Q,V=this.opts.validateSchema){return this.addSchema(L,Q,!0,V),this}validateSchema(L,Q){if(typeof L=="boolean")return!0;let V;if(V=L.$schema,V!==void 0&&typeof V!="string")throw new Error("$schema must be a string");if(V=V||this.opts.defaultMeta||this.defaultMeta(),!V)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const _=this.validate(V,L);if(!_&&Q){const $="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error($);else throw new Error($)}return _}getSchema(L){let Q;for(;typeof(Q=S.call(this,L))=="string";)L=Q;if(Q===void 0){const{schemaId:V}=this.opts,_=new s.SchemaEnv({schema:{},schemaId:V});if(Q=s.resolveSchema.call(this,_,L),!Q)return;this.refs[L]=Q}return Q.validate||this._compileSchemaEnv(Q)}removeSchema(L){if(L instanceof RegExp)return this._removeAllSchemas(this.schemas,L),this._removeAllSchemas(this.refs,L),this;switch(typeof L){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const Q=S.call(this,L);return typeof Q=="object"&&this._cache.delete(Q.schema),delete this.schemas[L],delete this.refs[L],this}case"object":{const Q=L;this._cache.delete(Q);let V=L[this.opts.schemaId];return V&&(V=(0,c.normalizeId)(V),delete this.schemas[V],delete this.refs[V]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(L){for(const Q of L)this.addKeyword(Q);return this}addKeyword(L,Q){let V;if(typeof L=="string")V=L,typeof Q=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),Q.keyword=V);else if(typeof L=="object"&&Q===void 0){if(Q=L,V=Q.keyword,Array.isArray(V)&&!V.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(G.call(this,V,Q),!Q)return(0,u.eachItem)(V,$=>de.call(this,$)),this;be.call(this,Q);const _={...Q,type:(0,l.getJSONTypes)(Q.type),schemaType:(0,l.getJSONTypes)(Q.schemaType)};return(0,u.eachItem)(V,_.type.length===0?$=>de.call(this,$,_):$=>_.type.forEach(A=>de.call(this,$,_,A))),this}getKeyword(L){const Q=this.RULES.all[L];return typeof Q=="object"?Q.definition:!!Q}removeKeyword(L){const{RULES:Q}=this;delete Q.keywords[L],delete Q.all[L];for(const V of Q.rules){const _=V.rules.findIndex($=>$.keyword===L);_>=0&&V.rules.splice(_,1)}return this}addFormat(L,Q){return typeof Q=="string"&&(Q=new RegExp(Q)),this.formats[L]=Q,this}errorsText(L=this.errors,{separator:Q=", ",dataVar:V="data"}={}){return!L||L.length===0?"No errors":L.map(_=>`${V}${_.instancePath} ${_.message}`).reduce((_,$)=>_+Q+$)}$dataMetaSchema(L,Q){const V=this.RULES.all;L=JSON.parse(JSON.stringify(L));for(const _ of Q){const $=_.split("/").slice(1);let A=L;for(const K of $)A=A[K];for(const K in V){const H=V[K];if(typeof H!="object")continue;const{$data:W}=H.definition,ae=A[K];W&&ae&&(A[K]=Pe(ae))}}return L}_removeAllSchemas(L,Q){for(const V in L){const _=L[V];(!Q||Q.test(V))&&(typeof _=="string"?delete L[V]:_&&!_.meta&&(this._cache.delete(_.schema),delete L[V]))}}_addSchema(L,Q,V,_=this.opts.validateSchema,$=this.opts.addUsedSchema){let A;const{schemaId:K}=this.opts;if(typeof L=="object")A=L[K];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof L!="boolean")throw new Error("schema must be object or boolean")}let H=this._cache.get(L);if(H!==void 0)return H;V=(0,c.normalizeId)(A||V);const W=c.getSchemaRefs.call(this,L,V);return H=new s.SchemaEnv({schema:L,schemaId:K,meta:Q,baseId:V,localRefs:W}),this._cache.set(H.schema,H),$&&!V.startsWith("#")&&(V&&this._checkUnique(V),this.refs[V]=H),_&&this.validateSchema(L,!0),H}_checkUnique(L){if(this.schemas[L]||this.refs[L])throw new Error(`schema with key or id "${L}" already exists`)}_compileSchemaEnv(L){if(L.meta?this._compileMetaSchema(L):s.compileSchema.call(this,L),!L.validate)throw new Error("ajv implementation error");return L.validate}_compileMetaSchema(L){const Q=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,L)}finally{this.opts=Q}}}x.ValidationError=n.default,x.MissingRefError=i.default,e.default=x;function g(B,L,Q,V="error"){for(const _ in B){const $=_;$ in L&&this.logger[V](`${Q}: option ${_}. ${B[$]}`)}}function S(B){return B=(0,c.normalizeId)(B),this.schemas[B]||this.refs[B]}function O(){const B=this.opts.schemas;if(B)if(Array.isArray(B))this.addSchema(B);else for(const L in B)this.addSchema(B[L],L)}function k(){for(const B in this.opts.formats){const L=this.opts.formats[B];L&&this.addFormat(B,L)}}function Y(B){if(Array.isArray(B)){this.addVocabulary(B);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const L in B){const Q=B[L];Q.keyword||(Q.keyword=L),this.addKeyword(Q)}}function F(){const B={...this.opts};for(const L of w)delete B[L];return B}const z={log(){},warn(){},error(){}};function J(B){if(B===!1)return z;if(B===void 0)return console;if(B.log&&B.warn&&B.error)return B;throw new Error("logger must implement log, warn and error methods")}const M=/^[a-z_$][a-z0-9_$:-]*$/i;function G(B,L){const{RULES:Q}=this;if((0,u.eachItem)(B,V=>{if(Q.keywords[V])throw new Error(`Keyword ${V} is already defined`);if(!M.test(V))throw new Error(`Keyword ${V} has invalid name`)}),!!L&&L.$data&&!("code"in L||"validate"in L))throw new Error('$data keyword must have "code" or "validate" function')}function de(B,L,Q){var V;const _=L?.post;if(Q&&_)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:$}=this;let A=_?$.post:$.rules.find(({type:H})=>H===Q);if(A||(A={type:Q,rules:[]},$.rules.push(A)),$.keywords[B]=!0,!L)return;const K={keyword:B,definition:{...L,type:(0,l.getJSONTypes)(L.type),schemaType:(0,l.getJSONTypes)(L.schemaType)}};L.before?Se.call(this,A,K,L.before):A.rules.push(K),$.all[B]=K,(V=L.implements)===null||V===void 0||V.forEach(H=>this.addKeyword(H))}function Se(B,L,Q){const V=B.rules.findIndex(_=>_.keyword===Q);V>=0?B.rules.splice(V,0,L):(B.rules.push(L),this.logger.warn(`rule ${Q} is not defined`))}function be(B){let{metaSchema:L}=B;L!==void 0&&(B.$data&&this.opts.$data&&(L=Pe(L)),B.validateSchema=this.compile(L,!0))}const ge={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Pe(B){return{anyOf:[B,ge]}}})(ko)),ko}var Nn={},kn={},Dn={},Nc;function tE(){if(Nc)return Dn;Nc=1,Object.defineProperty(Dn,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Dn.default=e,Dn}var Ht={},kc;function go(){if(kc)return Ht;kc=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.callRef=Ht.getValidate=void 0;const e=$r(),t=Tt(),r=Oe(),n=pt(),i=yo(),o=ke(),s={keyword:"$ref",schemaType:"string",code(l){const{gen:u,schema:m,it:y}=l,{baseId:h,schemaEnv:w,validateName:b,opts:E,self:P}=y,{root:I}=w;if((m==="#"||m==="#/")&&h===I.baseId)return x();const v=i.resolveRef.call(P,I,h,m);if(v===void 0)throw new e.default(y.opts.uriResolver,h,m);if(v instanceof i.SchemaEnv)return g(v);return S(v);function x(){if(w===I)return c(l,b,w,w.$async);const O=u.scopeValue("root",{ref:I});return c(l,(0,r._)`${O}.validate`,I,I.$async)}function g(O){const k=a(l,O);c(l,k,O,O.$async)}function S(O){const k=u.scopeValue("schema",E.code.source===!0?{ref:O,code:(0,r.stringify)(O)}:{ref:O}),Y=u.name("valid"),F=l.subschema({schema:O,dataTypes:[],schemaPath:r.nil,topSchemaRef:k,errSchemaPath:m},Y,y.isAllOfVariant);l.mergeEvaluated(F),l.ok(Y)}}};function a(l,u){const{gen:m}=l;return u.validate?m.scopeValue("validate",{ref:u.validate}):(0,r._)`${m.scopeValue("wrapper",{ref:u})}.validate`}Ht.getValidate=a;function c(l,u,m,y){const{gen:h,it:w}=l,{allErrors:b,schemaEnv:E,opts:P}=w,I=P.passContext?n.default.this:r.nil;y?v():x();function v(){if(!E.$async)throw new Error("async schema referenced by sync schema");const O=h.let("valid");h.try(()=>{h.code((0,r._)`await ${(0,t.callValidateCode)(l,u,I)}`),S(u),b||h.assign(O,!0)},k=>{h.if((0,r._)`!(${k} instanceof ${w.ValidationError})`,()=>h.throw(k)),g(k),b||h.assign(O,!1)}),l.ok(O)}function x(){const O=h.name("visitedNodes");h.code((0,r._)`const ${O} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${u}) || new Set()`),h.if((0,r._)`!${O}.has(${l.data})`,()=>{h.code((0,r._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${u}, ${O})`),h.code((0,r._)`const dataNode = ${l.data}`),h.code((0,r._)`if (typeof dataNode === "object" && dataNode !== null) ${O}.add(dataNode)`);const k=l.result((0,t.callValidateCode)(l,u,I),()=>S(u),()=>g(u));return h.code((0,r._)`${O}.delete(dataNode)`),k})}function g(O){const k=(0,r._)`${O}.errors`;h.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${k} : ${n.default.vErrors}.concat(${k})`),h.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function S(O){var k;if(!w.opts.unevaluated)return;const Y=(k=m?.validate)===null||k===void 0?void 0:k.evaluated;if(w.props!==!0)if(Y&&!Y.dynamicProps)Y.props!==void 0&&(w.props=o.mergeEvaluated.props(h,Y.props,w.props));else{const F=h.var("props",(0,r._)`${O}.evaluated.props`);w.props=o.mergeEvaluated.props(h,F,w.props,r.Name)}if(w.items!==!0)if(Y&&!Y.dynamicItems)Y.items!==void 0&&(w.items=o.mergeEvaluated.items(h,Y.items,w.items));else{const F=h.var("items",(0,r._)`${O}.evaluated.items`);w.items=o.mergeEvaluated.items(h,F,w.items,r.Name)}}}return Ht.callRef=c,Ht.default=s,Ht}var Dc;function fd(){if(Dc)return kn;Dc=1,Object.defineProperty(kn,"__esModule",{value:!0});const e=tE(),t=go(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return kn.default=r,kn}var qn={},Cn={},qc;function rE(){if(qc)return Cn;qc=1,Object.defineProperty(Cn,"__esModule",{value:!0});const e=Oe(),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:o,schemaCode:s})=>(0,e.str)`must be ${r[o].okStr} ${s}`,params:({keyword:o,schemaCode:s})=>(0,e._)`{comparison: ${r[o].okStr}, limit: ${s}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(o){const{keyword:s,data:a,schemaCode:c}=o;o.fail$data((0,e._)`${a} ${r[s].fail} ${c} || isNaN(${a})`)}};return Cn.default=i,Cn}var jn={},Cc;function nE(){if(Cc)return jn;Cc=1,Object.defineProperty(jn,"__esModule",{value:!0});const e=Oe(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must be multiple of ${n}`,params:({schemaCode:n})=>(0,e._)`{multipleOf: ${n}}`},code(n){const{gen:i,data:o,schemaCode:s,it:a}=n,c=a.opts.multipleOfPrecision,l=i.let("res"),u=c?(0,e._)`Math.abs(Math.round(${l}) - ${l}) > 1e-${c}`:(0,e._)`${l} !== parseInt(${l})`;n.fail$data((0,e._)`(${s} === 0 || (${l} = ${o}/${s}, ${u}))`)}};return jn.default=r,jn}var Mn={},Ln={},jc;function iE(){if(jc)return Ln;jc=1,Object.defineProperty(Ln,"__esModule",{value:!0});function e(t){const r=t.length;let n=0,i=0,o;for(;i<r;)n++,o=t.charCodeAt(i++),o>=55296&&o<=56319&&i<r&&(o=t.charCodeAt(i),(o&64512)===56320&&i++);return n}return Ln.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Ln}var Mc;function oE(){if(Mc)return Mn;Mc=1,Object.defineProperty(Mn,"__esModule",{value:!0});const e=Oe(),t=ke(),r=iE(),i={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:l}=o,u=s==="maxLength"?e.operators.GT:e.operators.LT,m=l.opts.unicode===!1?(0,e._)`${a}.length`:(0,e._)`${(0,t.useFunc)(o.gen,r.default)}(${a})`;o.fail$data((0,e._)`${m} ${u} ${c}`)}};return Mn.default=i,Mn}var Un={},Lc;function sE(){if(Lc)return Un;Lc=1,Object.defineProperty(Un,"__esModule",{value:!0});const e=Tt(),t=ke(),r=Oe(),i={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:l,schemaCode:u,it:m}=o,y=m.opts.unicodeRegExp?"u":"";if(c){const{regExp:h}=m.opts.code,w=h.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(s,h),b=s.let("valid");s.try(()=>s.assign(b,(0,r._)`${w}(${u}, ${y}).test(${a})`),()=>s.assign(b,!1)),o.fail$data((0,r._)`!${b}`)}else{const h=(0,e.usePattern)(o,l);o.fail$data((0,r._)`!${h}.test(${a})`)}}};return Un.default=i,Un}var Fn={},Uc;function aE(){if(Uc)return Fn;Uc=1,Object.defineProperty(Fn,"__esModule",{value:!0});const e=Oe(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const o=n==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${i} properties`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:i,data:o,schemaCode:s}=n,a=i==="maxProperties"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`Object.keys(${o}).length ${a} ${s}`)}};return Fn.default=r,Fn}var Bn={},Fc;function cE(){if(Fc)return Bn;Fc=1,Object.defineProperty(Bn,"__esModule",{value:!0});const e=Tt(),t=ud(),r=Oe(),n=ke(),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:l,data:u,$data:m,it:y}=s,{opts:h}=y;if(!m&&c.length===0)return;const w=c.length>=h.loopRequired;if(y.allErrors?b():E(),h.strictRequired){const v=s.parentSchema.properties,{definedProperties:x}=s.it;for(const g of c)if(v?.[g]===void 0&&!x.has(g)){const S=y.schemaEnv.baseId+y.errSchemaPath,O=`required property "${g}" is not defined at "${S}" (strictRequired)`;(0,n.checkStrictMode)(y,O,y.opts.strictRequired)}}function b(){var v;if(w||m)s.block$data(r.nil,P);else for(const x of c){const g=(v=(0,t.getSkipCondition)(s.parentSchema,x))!==null&&v!==void 0?v:(0,r._)`false`;a.if((0,r.not)(g),()=>(0,e.checkReportMissingProp)(s,x))}}function E(){const v=a.let("missing");if(w||m){const x=a.let("valid",!0);s.block$data(x,()=>I(v,x)),s.ok(x)}else a.if((0,e.checkMissingProp)(s,c,v)),(0,e.reportMissingProp)(s,v),a.else()}function P(){a.forOf("prop",l,v=>{s.setParams({missingProperty:v}),a.if((0,e.noPropertyInData)(a,u,v,h.ownProperties),()=>s.error())})}function I(v,x){s.setParams({missingProperty:v}),a.forOf(v,l,()=>{a.assign(x,(0,e.propertyInData)(a,u,v,h.ownProperties)),a.if((0,r.not)(x),()=>{s.error(),a.break()})},r.nil)}}};return Bn.default=o,Bn}var zn={},Bc;function pE(){if(Bc)return zn;Bc=1,Object.defineProperty(zn,"__esModule",{value:!0});const e=Oe(),t=pt(),n={keyword:"readOnly",schemaType:"boolean",error:{message:()=>(0,e.str)`must NOT be present in request context`},code(i){if(i.schema!==!0)return;const o=(0,e._)`(${t.default.this} && ${t.default.this}.apiContext)`;i.fail((0,e._)`${o} === "request"`)}};return zn.default=n,zn}var Vn={},zc;function lE(){if(zc)return Vn;zc=1,Object.defineProperty(Vn,"__esModule",{value:!0});const e=Oe(),t=pt(),n={keyword:"writeOnly",schemaType:"boolean",error:{message:()=>(0,e.str)`must NOT be present in response context`},code(i){if(i.schema!==!0)return;const o=(0,e._)`(${t.default.this} && ${t.default.this}.apiContext)`;i.fail((0,e._)`${o} === "response"`)}};return Vn.default=n,Vn}var Kn={},Vc;function uE(){if(Vc)return Kn;Vc=1,Object.defineProperty(Kn,"__esModule",{value:!0});const e=Oe(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const o=n==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${i} items`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:i,data:o,schemaCode:s}=n,a=i==="maxItems"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`${o}.length ${a} ${s}`)}};return Kn.default=r,Kn}var Hn={},Gn={},Kc;function la(){if(Kc)return Gn;Kc=1,Object.defineProperty(Gn,"__esModule",{value:!0});const e=ee.requireFastDeepEqual();return e.code='require("ajv/dist/runtime/equal").default',Gn.default=e,Gn}var Hc;function dE(){if(Hc)return Hn;Hc=1,Object.defineProperty(Hn,"__esModule",{value:!0});const e=Ji(),t=Oe(),r=ke(),n=la(),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:l,schema:u,parentSchema:m,schemaCode:y,it:h}=s;if(!l&&!u)return;const w=a.let("valid"),b=m.items?(0,e.getSchemaTypes)(m.items):[];s.block$data(w,E,(0,t._)`${y} === false`),s.ok(w);function E(){const x=a.let("i",(0,t._)`${c}.length`),g=a.let("j");s.setParams({i:x,j:g}),a.assign(w,!0),a.if((0,t._)`${x} > 1`,()=>(P()?I:v)(x,g))}function P(){return b.length>0&&!b.some(x=>x==="object"||x==="array")}function I(x,g){const S=a.name("item"),O=(0,e.checkDataTypes)(b,S,h.opts.strictNumbers,e.DataType.Wrong),k=a.const("indices",(0,t._)`{}`);a.for((0,t._)`;${x}--;`,()=>{a.let(S,(0,t._)`${c}[${x}]`),a.if(O,(0,t._)`continue`),b.length>1&&a.if((0,t._)`typeof ${S} == "string"`,(0,t._)`${S} += "_"`),a.if((0,t._)`typeof ${k}[${S}] == "number"`,()=>{a.assign(g,(0,t._)`${k}[${S}]`),s.error(),a.assign(w,!1).break()}).code((0,t._)`${k}[${S}] = ${x}`)})}function v(x,g){const S=(0,r.useFunc)(a,n.default),O=a.name("outer");a.label(O).for((0,t._)`;${x}--;`,()=>a.for((0,t._)`${g} = ${x}; ${g}--;`,()=>a.if((0,t._)`${S}(${c}[${x}], ${c}[${g}])`,()=>{s.error(),a.assign(w,!1).break(O)})))}}};return Hn.default=o,Hn}var Yn={},Gc;function fE(){if(Gc)return Yn;Gc=1,Object.defineProperty(Yn,"__esModule",{value:!0});const e=Oe(),t=ke(),r=la(),i={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:l,schema:u}=o;c||u&&typeof u=="object"?o.fail$data((0,e._)`!${(0,t.useFunc)(s,r.default)}(${a}, ${l})`):o.fail((0,e._)`${u} !== ${a}`)}};return Yn.default=i,Yn}var Qn={},Yc;function mE(){if(Yc)return Qn;Yc=1,Object.defineProperty(Qn,"__esModule",{value:!0});const e=Oe(),t=ke(),r=la(),i={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:l,schemaCode:u,it:m}=o;if(!c&&l.length===0)throw new Error("enum must have non-empty array");const y=l.length>=m.opts.loopEnum;let h;const w=()=>h??(h=(0,t.useFunc)(s,r.default));let b;if(y||c)b=s.let("valid"),o.block$data(b,E);else{if(!Array.isArray(l))throw new Error("ajv implementation error");const I=s.const("vSchema",u);b=(0,e.or)(...l.map((v,x)=>P(I,x)))}o.pass(b);function E(){s.assign(b,!1),s.forOf("v",u,I=>s.if((0,e._)`${w()}(${a}, ${I})`,()=>s.assign(b,!0).break()))}function P(I,v){const x=l[v];return typeof x=="object"&&x!==null?(0,e._)`${w()}(${a}, ${I}[${v}])`:(0,e._)`${a} === ${x}`}}};return Qn.default=i,Qn}var Qc;function ua(){if(Qc)return qn;Qc=1,Object.defineProperty(qn,"__esModule",{value:!0});const e=rE(),t=nE(),r=oE(),n=sE(),i=aE(),o=cE(),s=pE(),a=lE(),c=uE(),l=dE(),u=fE(),m=mE(),y=[e.default,t.default,r.default,n.default,i.default,o.default,s.default,a.default,c.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},u.default,m.default];return qn.default=y,qn}var Wn={},hr={},Wc;function md(){if(Wc)return hr;Wc=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.validateAdditionalItems=void 0;const e=Oe(),t=ke(),n={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}i(o,c)}};function i(o,s){const{gen:a,schema:c,data:l,keyword:u,it:m}=o;m.items=!0;const y=a.const("len",(0,e._)`${l}.length`);if(c===!1)o.setParams({len:s.length}),o.pass((0,e._)`${y} <= ${s.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(m,c)){const w=a.var("valid",(0,e._)`${y} <= ${s.length}`);a.if((0,e.not)(w),()=>h(w)),o.ok(w)}function h(w){a.forRange("i",s.length,y,b=>{o.subschema({keyword:u,dataProp:b,dataPropType:t.Type.Num},w),m.allErrors||a.if((0,e.not)(w),()=>a.break())})}}return hr.validateAdditionalItems=i,hr.default=n,hr}var Jn={},yr={},Jc;function hd(){if(Jc)return yr;Jc=1,Object.defineProperty(yr,"__esModule",{value:!0}),yr.validateTuple=void 0;const e=Oe(),t=ke(),r=Tt(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(o){const{schema:s,it:a}=o;if(Array.isArray(s))return i(o,"additionalItems",s);a.items=!0,!(0,t.alwaysValidSchema)(a,s)&&o.ok((0,r.validateArray)(o))}};function i(o,s,a=o.schema){const{gen:c,parentSchema:l,data:u,keyword:m,it:y}=o;b(l),y.opts.unevaluated&&a.length&&y.items!==!0&&(y.items=t.mergeEvaluated.items(c,a.length,y.items));const h=c.name("valid"),w=c.const("len",(0,e._)`${u}.length`);a.forEach((E,P)=>{(0,t.alwaysValidSchema)(y,E)||(c.if((0,e._)`${w} > ${P}`,()=>o.subschema({keyword:m,schemaProp:P,dataProp:P},h)),o.ok(h))});function b(E){const{opts:P,errSchemaPath:I}=y,v=a.length,x=v===E.minItems&&(v===E.maxItems||E[s]===!1);if(P.strictTuples&&!x){const g=`"${m}" is ${v}-tuple, but minItems or maxItems/${s} are not specified or different at path "${I}"`;(0,t.checkStrictMode)(y,g,P.strictTuples)}}}return yr.validateTuple=i,yr.default=n,yr}var Xc;function hE(){if(Xc)return Jn;Xc=1,Object.defineProperty(Jn,"__esModule",{value:!0});const e=hd(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return Jn.default=t,Jn}var Xn={},Zc;function yE(){if(Zc)return Xn;Zc=1,Object.defineProperty(Xn,"__esModule",{value:!0});const e=Oe(),t=ke(),r=Tt(),n=md(),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:l}=s,{prefixItems:u}=c;l.items=!0,!(0,t.alwaysValidSchema)(l,a)&&(u?(0,n.validateAdditionalItems)(s,u):s.ok((0,r.validateArray)(s)))}};return Xn.default=o,Xn}var Zn={},ep;function gE(){if(ep)return Zn;ep=1,Object.defineProperty(Zn,"__esModule",{value:!0});const e=Oe(),t=ke(),n={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:i,max:o}})=>o===void 0?(0,e.str)`must contain at least ${i} valid item(s)`:(0,e.str)`must contain at least ${i} and no more than ${o} valid item(s)`,params:({params:{min:i,max:o}})=>o===void 0?(0,e._)`{minContains: ${i}}`:(0,e._)`{minContains: ${i}, maxContains: ${o}}`},code(i){const{gen:o,schema:s,parentSchema:a,data:c,it:l}=i;let u,m;const{minContains:y,maxContains:h}=a;l.opts.next?(u=y===void 0?1:y,m=h):u=1;const w=o.const("len",(0,e._)`${c}.length`);if(i.setParams({min:u,max:m}),m===void 0&&u===0){(0,t.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(m!==void 0&&u>m){(0,t.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,t.alwaysValidSchema)(l,s)){let v=(0,e._)`${w} >= ${u}`;m!==void 0&&(v=(0,e._)`${v} && ${w} <= ${m}`),i.pass(v);return}l.items=!0;const b=o.name("valid");m===void 0&&u===1?P(b,()=>o.if(b,()=>o.break())):u===0?(o.let(b,!0),m!==void 0&&o.if((0,e._)`${c}.length > 0`,E)):(o.let(b,!1),E()),i.result(b,()=>i.reset());function E(){const v=o.name("_valid"),x=o.let("count",0);P(v,()=>o.if(v,()=>I(x)))}function P(v,x){o.forRange("i",0,w,g=>{i.subschema({keyword:"contains",dataProp:g,dataPropType:t.Type.Num,compositeRule:!0},v),x()})}function I(v){o.code((0,e._)`${v}++`),m===void 0?o.if((0,e._)`${v} >= ${u}`,()=>o.assign(b,!0).break()):(o.if((0,e._)`${v} > ${m}`,()=>o.assign(b,!1).break()),u===1?o.assign(b,!0):o.if((0,e._)`${v} >= ${u}`,()=>o.assign(b,!0)))}}};return Zn.default=n,Zn}var Fo={},tp;function da(){return tp||(tp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Oe(),r=ke(),n=Tt();e.error={message:({params:{property:c,depsCount:l,deps:u}})=>{const m=l===1?"property":"properties";return(0,t.str)`must have ${m} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:l,deps:u,missingProperty:m}})=>(0,t._)`{property: ${c},
6
+ missingProperty: ${m},
7
+ depsCount: ${l},
8
+ deps: ${u}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[l,u]=o(c);s(c,l),a(c,u)}};function o({schema:c}){const l={},u={};for(const m in c){if(m==="__proto__")continue;const y=Array.isArray(c[m])?l:u;y[m]=c[m]}return[l,u]}function s(c,l=c.schema){const{gen:u,data:m,it:y}=c;if(Object.keys(l).length===0)return;const h=u.let("missing");for(const w in l){const b=l[w];if(b.length===0)continue;const E=(0,n.propertyInData)(u,m,w,y.opts.ownProperties);c.setParams({property:w,depsCount:b.length,deps:b.join(", ")}),y.allErrors?u.if(E,()=>{for(const P of b)(0,n.checkReportMissingProp)(c,P)}):(u.if((0,t._)`${E} && (${(0,n.checkMissingProp)(c,b,h)})`),(0,n.reportMissingProp)(c,h),u.else())}}e.validatePropertyDeps=s;function a(c,l=c.schema){const{gen:u,data:m,keyword:y,it:h}=c,w=u.name("valid");for(const b in l)(0,r.alwaysValidSchema)(h,l[b])||(u.if((0,n.propertyInData)(u,m,b,h.opts.ownProperties),()=>{const E=c.subschema({keyword:y,schemaProp:b},w);c.mergeValidEvaluated(E,w)},()=>u.var(w,!0)),c.ok(w))}e.validateSchemaDeps=a,e.default=i})(Fo)),Fo}var ei={},rp;function vE(){if(rp)return ei;rp=1,Object.defineProperty(ei,"__esModule",{value:!0});const e=Oe(),t=ke(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:i})=>(0,e._)`{propertyName: ${i.propertyName}}`},code(i){const{gen:o,schema:s,data:a,it:c}=i;if((0,t.alwaysValidSchema)(c,s))return;const l=o.name("valid");o.forIn("key",a,u=>{i.setParams({propertyName:u}),i.subschema({keyword:"propertyNames",data:u,dataTypes:["string"],propertyName:u,compositeRule:!0},l),o.if((0,e.not)(l),()=>{i.error(!0),c.allErrors||o.break()})}),i.ok(l)}};return ei.default=n,ei}var ti={},np;function yd(){if(np)return ti;np=1,Object.defineProperty(ti,"__esModule",{value:!0});const e=Tt(),t=Oe(),r=pt(),n=ke(),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:l,errsCount:u,it:m}=s,{schema:y=m.opts.defaultAdditionalProperties}=s;if(!u)throw new Error("ajv implementation error");const{allErrors:h,opts:w}=m;if(m.props=!0,w.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(m,y))return;const b=(0,e.allSchemaProperties)(c.properties),E=(0,e.allSchemaProperties)(c.patternProperties);P(),s.ok((0,t._)`${u} === ${r.default.errors}`);function P(){a.forIn("key",l,S=>{!b.length&&!E.length?x(S):a.if(I(S),()=>x(S))})}function I(S){let O;if(b.length>8){const k=(0,n.schemaRefOrVal)(m,c.properties,"properties");O=(0,e.isOwnProperty)(a,k,S)}else b.length?O=(0,t.or)(...b.map(k=>(0,t._)`${S} === ${k}`)):O=t.nil;return E.length&&(O=(0,t.or)(O,...E.map(k=>(0,t._)`${(0,e.usePattern)(s,k)}.test(${S})`))),(0,t.not)(O)}function v(S){a.code((0,t._)`delete ${l}[${S}]`)}function x(S){if(w.removeAdditional==="all"||w.removeAdditional&&y===!1){v(S);return}if(y===!1){s.setParams({additionalProperty:S}),s.error(),h||a.break();return}if(typeof y=="object"&&!(0,n.alwaysValidSchema)(m,y)){const O=a.name("valid");w.removeAdditional==="failing"?(g(S,O,!1),a.if((0,t.not)(O),()=>{s.reset(),v(S)})):(g(S,O),h||a.if((0,t.not)(O),()=>a.break()))}}function g(S,O,k){const Y={keyword:"additionalProperties",dataProp:S,dataPropType:n.Type.Str};k===!1&&Object.assign(Y,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(Y,O)}}};return ti.default=o,ti}var ri={},ip;function bE(){if(ip)return ri;ip=1,Object.defineProperty(ri,"__esModule",{value:!0});const e=Rr(),t=Tt(),r=ke(),n=yd(),i={keyword:"properties",type:"object",schemaType:"object",code(o){const{gen:s,schema:a,parentSchema:c,data:l,it:u}=o;(u.opts.removeAdditional==="all"&&c.additionalProperties===void 0||u.opts.defaultAdditionalProperties===!1)&&n.default.code(new e.KeywordCxt(u,n.default,"additionalProperties"));const m=(0,t.allSchemaProperties)(a);for(const E of m)u.definedProperties.add(E);u.opts.unevaluated&&m.length&&u.props!==!0&&(u.props=r.mergeEvaluated.props(s,(0,r.toHash)(m),u.props));const y=m.filter(E=>!(0,r.alwaysValidSchema)(u,a[E]));if(y.length===0)return;const h=s.name("valid");for(const E of y)w(E)?b(E):(s.if((0,t.propertyInData)(s,l,E,u.opts.ownProperties)),b(E),u.allErrors||s.else().var(h,!0),s.endIf()),o.it.definedProperties.add(E),o.ok(h);function w(E){return u.opts.useDefaults&&!u.compositeRule&&a[E].default!==void 0}function b(E){o.subschema({keyword:"properties",schemaProp:E,dataProp:E},h)}}};return ri.default=i,ri}var ni={},op;function wE(){if(op)return ni;op=1,Object.defineProperty(ni,"__esModule",{value:!0});const e=Tt(),t=Oe(),r=ke(),n=ke(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(o){const{gen:s,schema:a,data:c,parentSchema:l,it:u}=o,{opts:m}=u,y=(0,e.allSchemaProperties)(a),h=y.filter(x=>(0,r.alwaysValidSchema)(u,a[x]));if(y.length===0||h.length===y.length&&(!u.opts.unevaluated||u.props===!0))return;const w=m.strictSchema&&!m.allowMatchingProperties&&l.properties,b=s.name("valid");u.props!==!0&&!(u.props instanceof t.Name)&&(u.props=(0,n.evaluatedPropsToName)(s,u.props));const{props:E}=u;P();function P(){for(const x of y)w&&I(x),u.allErrors?v(x):(s.var(b,!0),v(x),s.if(b))}function I(x){for(const g in w)new RegExp(x).test(g)&&(0,r.checkStrictMode)(u,`property ${g} matches pattern ${x} (use allowMatchingProperties)`)}function v(x){s.forIn("key",c,g=>{s.if((0,t._)`${(0,e.usePattern)(o,x)}.test(${g})`,()=>{const S=h.includes(x);S||o.subschema({keyword:"patternProperties",schemaProp:x,dataProp:g,dataPropType:n.Type.Str},b),u.opts.unevaluated&&E!==!0?s.assign((0,t._)`${E}[${g}]`,!0):!S&&!u.allErrors&&s.if((0,t.not)(b),()=>s.break())})})}}};return ni.default=i,ni}var ii={},sp;function SE(){if(sp)return ii;sp=1,Object.defineProperty(ii,"__esModule",{value:!0});const e=ke(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:i,it:o}=r;if((0,e.alwaysValidSchema)(o,i)){r.fail();return}const s=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),r.failResult(s,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return ii.default=t,ii}var oi={},ap;function EE(){if(ap)return oi;ap=1,Object.defineProperty(oi,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Tt().validateUnion,error:{message:"must match a schema in anyOf"}};return oi.default=t,oi}var si={},cp;function xE(){if(cp)return si;cp=1,Object.defineProperty(si,"__esModule",{value:!0});const e=Oe(),t=ke(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:i})=>(0,e._)`{passingSchemas: ${i.passing}}`},code(i){const{gen:o,schema:s,parentSchema:a,it:c}=i;if(!Array.isArray(s))throw new Error("ajv implementation error");if(c.opts.discriminator&&a.discriminator)return;const l=s,u=o.let("valid",!1),m=o.let("passing",null),y=o.name("_valid");i.setParams({passing:m}),o.block(h),i.result(u,()=>i.reset(),()=>i.error(!0));function h(){l.forEach((w,b)=>{let E;(0,t.alwaysValidSchema)(c,w)?o.var(y,!0):E=i.subschema({keyword:"oneOf",schemaProp:b,compositeRule:!0},y),b>0&&o.if((0,e._)`${y} && ${u}`).assign(u,!1).assign(m,(0,e._)`[${m}, ${b}]`).else(),o.if(y,()=>{o.assign(u,!0),o.assign(m,b),E&&i.mergeEvaluated(E,e.Name)})})}}};return si.default=n,si}var ai={},pp;function TE(){if(pp)return ai;pp=1,Object.defineProperty(ai,"__esModule",{value:!0});const e=ke(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:i,it:o}=r;if(!Array.isArray(i))throw new Error("ajv implementation error");const s=n.name("valid");i.forEach((a,c)=>{if((0,e.alwaysValidSchema)(o,a))return;const l=r.subschema({keyword:"allOf",schemaProp:c},s,!0);r.ok(s),r.mergeEvaluated(l)})}};return ai.default=t,ai}var ci={},lp;function PE(){if(lp)return ci;lp=1,Object.defineProperty(ci,"__esModule",{value:!0});const e=Oe(),t=ke(),n={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 l=i(c,"then"),u=i(c,"else");if(!l&&!u)return;const m=s.let("valid",!0),y=s.name("_valid");if(h(),o.reset(),l&&u){const b=s.let("ifClause");o.setParams({ifClause:b}),s.if(y,w("then",b),w("else",b))}else l?s.if(y,w("then")):s.if((0,e.not)(y),w("else"));o.pass(m,()=>o.error(!0));function h(){const b=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},y);o.mergeEvaluated(b)}function w(b,E){return()=>{const P=o.subschema({keyword:b},y);s.assign(m,y),o.mergeValidEvaluated(P,m),E?s.assign(E,(0,e._)`${b}`):o.setParams({ifClause:b})}}}};function i(o,s){const a=o.schema[s];return a!==void 0&&!(0,t.alwaysValidSchema)(o,a)}return ci.default=n,ci}var pi={},up;function OE(){if(up)return pi;up=1,Object.defineProperty(pi,"__esModule",{value:!0});const e=ke(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:i}){n.if===void 0&&(0,e.checkStrictMode)(i,`"${r}" without "if" is ignored`)}};return pi.default=t,pi}var dp;function fa(){if(dp)return Wn;dp=1,Object.defineProperty(Wn,"__esModule",{value:!0});const e=md(),t=hE(),r=hd(),n=yE(),i=gE(),o=da(),s=vE(),a=yd(),c=bE(),l=wE(),u=SE(),m=EE(),y=xE(),h=TE(),w=PE(),b=OE();function E(P=!1){const I=[u.default,m.default,y.default,h.default,w.default,b.default,s.default,a.default,o.default,c.default,l.default];return P?I.push(t.default,n.default):I.push(e.default,r.default),I.push(i.default),I}return Wn.default=E,Wn}var li={},gr={},fp;function gd(){if(fp)return gr;fp=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.dynamicAnchor=void 0;const e=Oe(),t=pt(),r=yo(),n=go(),i={keyword:"$dynamicAnchor",schemaType:"string",code:a=>o(a,a.schema)};function o(a,c){const{gen:l,it:u}=a;u.schemaEnv.root.dynamicAnchors[c]=!0;const m=(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(c)}`,y=u.errSchemaPath==="#"?u.validateName:s(a);l.if((0,e._)`!${m}`,()=>l.assign(m,y))}gr.dynamicAnchor=o;function s(a){const{schemaEnv:c,schema:l,self:u}=a.it,{root:m,baseId:y,localRefs:h,meta:w}=c.root,{schemaId:b}=u.opts,E=new r.SchemaEnv({schema:l,schemaId:b,root:m,baseId:y,localRefs:h,meta:w});return r.compileSchema.call(u,E),(0,n.getValidate)(a,E)}return gr.default=i,gr}var vr={},mp;function vd(){if(mp)return vr;mp=1,Object.defineProperty(vr,"__esModule",{value:!0}),vr.dynamicRef=void 0;const e=Oe(),t=pt(),r=go(),n={keyword:"$dynamicRef",schemaType:"string",code:o=>i(o,o.schema)};function i(o,s){const{gen:a,keyword:c,it:l}=o;if(s[0]!=="#")throw new Error(`"${c}" only supports hash fragment reference`);const u=s.slice(1);if(l.allErrors)m();else{const h=a.let("valid",!1);m(h),o.ok(h)}function m(h){if(l.schemaEnv.root.dynamicAnchors[u]){const w=a.let("_v",(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(u)}`);a.if(w,y(w,h),y(l.validateName,h))}else y(l.validateName,h)()}function y(h,w){return w?()=>a.block(()=>{(0,r.callRef)(o,h),a.let(w,!0)}):()=>(0,r.callRef)(o,h)}}return vr.dynamicRef=i,vr.default=n,vr}var ui={},hp;function IE(){if(hp)return ui;hp=1,Object.defineProperty(ui,"__esModule",{value:!0});const e=gd(),t=ke(),r={keyword:"$recursiveAnchor",schemaType:"boolean",code(n){n.schema?(0,e.dynamicAnchor)(n,""):(0,t.checkStrictMode)(n.it,"$recursiveAnchor: false is ignored")}};return ui.default=r,ui}var di={},yp;function _E(){if(yp)return di;yp=1,Object.defineProperty(di,"__esModule",{value:!0});const e=vd(),t={keyword:"$recursiveRef",schemaType:"string",code:r=>(0,e.dynamicRef)(r,r.schema)};return di.default=t,di}var gp;function AE(){if(gp)return li;gp=1,Object.defineProperty(li,"__esModule",{value:!0});const e=gd(),t=vd(),r=IE(),n=_E(),i=[e.default,t.default,r.default,n.default];return li.default=i,li}var fi={},mi={},vp;function RE(){if(vp)return mi;vp=1,Object.defineProperty(mi,"__esModule",{value:!0});const e=da(),t={keyword:"dependentRequired",type:"object",schemaType:"object",error:e.error,code:r=>(0,e.validatePropertyDeps)(r)};return mi.default=t,mi}var hi={},bp;function $E(){if(bp)return hi;bp=1,Object.defineProperty(hi,"__esModule",{value:!0});const e=da(),t={keyword:"dependentSchemas",type:"object",schemaType:"object",code:r=>(0,e.validateSchemaDeps)(r)};return hi.default=t,hi}var yi={},wp;function NE(){if(wp)return yi;wp=1,Object.defineProperty(yi,"__esModule",{value:!0});const e=ke(),t={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:r,parentSchema:n,it:i}){n.contains===void 0&&(0,e.checkStrictMode)(i,`"${r}" without "contains" is ignored`)}};return yi.default=t,yi}var Sp;function kE(){if(Sp)return fi;Sp=1,Object.defineProperty(fi,"__esModule",{value:!0});const e=RE(),t=$E(),r=NE(),n=[e.default,t.default,r.default];return fi.default=n,fi}var gi={},vi={},Ep;function DE(){if(Ep)return vi;Ep=1,Object.defineProperty(vi,"__esModule",{value:!0});const e=Oe(),t=ke(),r=pt(),i={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:l,it:u}=o,m=o.schema===void 0&&o.it.opts.defaultUnevaluatedProperties===!1;if(!l)throw new Error("ajv implementation error");const{allErrors:y,props:h}=u;if(h instanceof e.Name)s.if((0,e._)`${h} !== true`,()=>s.forIn("key",c,P=>s.if(b(h,P),()=>w(P))));else if(h!==!0){const P=()=>s.forIn("key",c,I=>h===void 0?w(I):s.if(E(h,I),()=>w(I)));m&&u.errorPath.emptyStr()&&!u.compositeRule?s.if((0,e._)`${r.default.isAllOfVariant} === 0`,P):(!u.compositeRule||o.schema!==void 0)&&P()}m||(u.props=!0),o.ok((0,e._)`${l} === ${r.default.errors}`);function w(P){if(a===!1){o.setParams({unevaluatedProperty:P}),o.error(),y||s.break();return}if(!(0,t.alwaysValidSchema)(u,a)){const I=s.name("valid");o.subschema({keyword:"unevaluatedProperties",dataProp:P,dataPropType:t.Type.Str},I),y||s.if((0,e.not)(I),()=>s.break())}}function b(P,I){return(0,e._)`!${P} || !${P}[${I}]`}function E(P,I){const v=[];for(const x in P)P[x]===!0&&v.push((0,e._)`${I} !== ${x}`);return(0,e.and)(...v)}}};return vi.default=i,vi}var bi={},xp;function qE(){if(xp)return bi;xp=1,Object.defineProperty(bi,"__esModule",{value:!0});const e=Oe(),t=ke(),n={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:i}})=>(0,e.str)`must NOT have more than ${i} items`,params:({params:{len:i}})=>(0,e._)`{limit: ${i}}`},code(i){const{gen:o,schema:s,data:a,it:c}=i,l=c.items||0;if(l===!0)return;const u=o.const("len",(0,e._)`${a}.length`);if(s===!1)i.setParams({len:l}),i.fail((0,e._)`${u} > ${l}`);else if(typeof s=="object"&&!(0,t.alwaysValidSchema)(c,s)){const y=o.var("valid",(0,e._)`${u} <= ${l}`);o.if((0,e.not)(y),()=>m(y,l)),i.ok(y)}c.items=!0;function m(y,h){o.forRange("i",h,u,w=>{i.subschema({keyword:"unevaluatedItems",dataProp:w,dataPropType:t.Type.Num},y),c.allErrors||o.if((0,e.not)(y),()=>o.break())})}}};return bi.default=n,bi}var Tp;function bd(){if(Tp)return gi;Tp=1,Object.defineProperty(gi,"__esModule",{value:!0});const e=DE(),t=qE(),r=[e.default,t.default];return gi.default=r,gi}var wi={},Si={},Pp;function CE(){if(Pp)return Si;Pp=1,Object.defineProperty(Si,"__esModule",{value:!0});const e=Oe(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,e._)`{format: ${n}}`},code(n,i){const{gen:o,data:s,$data:a,schema:c,schemaCode:l,it:u}=n,{opts:m,errSchemaPath:y,schemaEnv:h,self:w}=u;if(!m.validateFormats)return;a?b():E();function b(){const P=o.scopeValue("formats",{ref:w.formats,code:m.code.formats}),I=o.const("fDef",(0,e._)`${P}[${l}]`),v=o.let("fType"),x=o.let("format");o.if((0,e._)`typeof ${I} == "object" && !(${I} instanceof RegExp)`,()=>o.assign(v,(0,e._)`${I}.type || "string"`).assign(x,(0,e._)`${I}.validate`),()=>o.assign(v,(0,e._)`"string"`).assign(x,I)),n.fail$data((0,e.or)(g(),S()));function g(){return m.strictSchema===!1?e.nil:(0,e._)`${l} && !${x}`}function S(){const O=h.$async?(0,e._)`(${I}.async ? await ${x}(${s}) : ${x}(${s}))`:(0,e._)`${x}(${s})`,k=(0,e._)`(typeof ${x} == "function" ? ${O} : ${x}.test(${s}))`;return(0,e._)`${x} && ${x} !== true && ${v} === ${i} && !${k}`}}function E(){const P=w.formats[c];if(!P){g();return}if(P===!0)return;const[I,v,x]=S(P);I===i&&n.pass(O());function g(){if(m.strictSchema===!1){w.logger.warn(k());return}throw new Error(k());function k(){return`unknown format "${c}" ignored in schema at path "${y}"`}}function S(k){const Y=k instanceof RegExp?(0,e.regexpCode)(k):m.code.formats?(0,e._)`${m.code.formats}${(0,e.getProperty)(c)}`:void 0,F=o.scopeValue("formats",{key:c,ref:k,code:Y});return typeof k=="object"&&!(k instanceof RegExp)?[k.type||"string",k.validate,(0,e._)`${F}.validate`]:["string",k,F]}function O(){if(typeof P=="object"&&!(P instanceof RegExp)&&P.async){if(!h.$async)throw new Error("async format in sync schema");return(0,e._)`await ${x}(${s})`}return typeof v=="function"?(0,e._)`${x}(${s})`:(0,e._)`${x}.test(${s})`}}}};return Si.default=r,Si}var Op;function ma(){if(Op)return wi;Op=1,Object.defineProperty(wi,"__esModule",{value:!0});const t=[CE().default];return wi.default=t,wi}var tr={},Ip;function wd(){return Ip||(Ip=1,Object.defineProperty(tr,"__esModule",{value:!0}),tr.contentVocabulary=tr.metadataVocabulary=void 0,tr.metadataVocabulary=["title","description","default","deprecated","examples"],tr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),tr}var _p;function jE(){if(_p)return Nn;_p=1,Object.defineProperty(Nn,"__esModule",{value:!0});const e=fd(),t=ua(),r=fa(),n=AE(),i=kE(),o=bd(),s=ma(),a=wd(),c=[n.default,e.default,t.default,(0,r.default)(!0),s.default,a.metadataVocabulary,a.contentVocabulary,i.default,o.default];return Nn.default=c,Nn}var Ei={},Fr={},Ap;function ME(){if(Ap)return Fr;Ap=1,Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Fr.DiscrError=e={})),Fr}var Rp;function ha(){if(Rp)return Ei;Rp=1,Object.defineProperty(Ei,"__esModule",{value:!0});const e=Oe(),t=ME(),r=yo(),n=$r(),i=ke(),o={message:({params:{discrError:c,tagName:l}})=>c===t.DiscrError.Tag?`tag "${l}" must be string`:`value of tag "${l}" must be in oneOf or anyOf`,params:({params:{discrError:c,tag:l,tagName:u}})=>(0,e._)`{error: ${c}, tag: ${u}, tagValue: ${l}}`};function s(c,l){var u;if(!(!c.allOf||!Array.isArray(c.allOf))){for(const m of c.allOf)if(!((u=m?.properties)===null||u===void 0)&&u[l])return m.properties[l]}}const a={keyword:"discriminator",type:"object",schemaType:"object",error:o,code(c){const{gen:l,data:u,schema:m,parentSchema:y,it:h}=c,w=y.oneOf?"oneOf":y.anyOf?"anyOf":void 0;if(!h.opts.discriminator)throw new Error("discriminator: requires discriminator option");const b=m.propertyName;if(typeof b!="string")throw new Error("discriminator: requires propertyName");if(!w)throw new Error("discriminator: requires oneOf or anyOf composite keyword");const E=y[w],P=l.let("valid",!1),I=l.const("tag",(0,e._)`${u}${(0,e.getProperty)(b)}`);l.if((0,e._)`typeof ${I} == "string"`,()=>v(),()=>c.error(!1,{discrError:t.DiscrError.Tag,tag:I,tagName:b})),c.ok(P);function v(){const S=g();l.if(!1);for(const O in S)l.elseIf((0,e._)`${I} === ${O}`),l.assign(P,x(S[O]));l.else(),c.error(!1,{discrError:t.DiscrError.Mapping,tag:I,tagName:b}),l.endIf()}function x(S){const O=l.name("valid"),k=c.subschema({keyword:w,schemaProp:S},O);return c.mergeEvaluated(k,e.Name),O}function g(){var S;const O={},k=F(y);let Y=!0;for(let M=0;M<E.length;M++){let G=E[M];const de=G?.$ref;if(de&&m.mapping){const{mapping:be}=m,ge=Object.keys(be).filter(Pe=>be[Pe]===G.$ref);if(ge.length){for(const Pe of ge)J(Pe,M);continue}}if(de&&!(0,i.schemaHasRulesButRef)(G,h.self.RULES)&&(G=r.resolveRef.call(h.self,h.schemaEnv.root,h.baseId,de),G instanceof r.SchemaEnv&&(G=G.schema),G===void 0))throw new n.default(h.opts.uriResolver,h.baseId,de);let Se=(S=G?.properties)===null||S===void 0?void 0:S[b];if(!Se&&G?.allOf&&(Se=s(G,b)),typeof Se!="object")throw new Error(`discriminator: ${w} subschemas (or referenced schemas) must have "properties/${b}" or match mapping`);Y=Y&&(k||F(G)),z(Se,M)}if(!Y)throw new Error(`discriminator: "${b}" must be required`);return O;function F(M){if(Array.isArray(M.required)&&M.required.includes(b))return!0;if(M.allOf&&Array.isArray(M.allOf))for(const G of M.allOf){const de=G;if(Array.isArray(de.required)&&de.required.includes(b))return!0}return!1}function z(M,G){if(M.const)J(M.const,G);else if(M.enum)for(const de of M.enum)J(de,G);else throw new Error(`discriminator: "properties/${b}" must have "const" or "enum"`)}function J(M,G){if(typeof M!="string"||M in O)throw new Error(`discriminator: "${b}" values must be unique strings`);O[M]=G}}}};return Ei.default=a,Ei}var xi={};const LE="https://json-schema.org/draft/2020-12/schema",UE="https://json-schema.org/draft/2020-12/schema",FE={"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},BE="meta",zE="Core and Validation specifications meta-schema",VE=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],KE=["object","boolean"],HE="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",GE={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}},YE={$schema:LE,$id:UE,$vocabulary:FE,$dynamicAnchor:BE,title:zE,allOf:VE,type:KE,$comment:HE,properties:GE},QE="https://json-schema.org/draft/2020-12/schema",WE="https://json-schema.org/draft/2020-12/meta/applicator",JE={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},XE="meta",ZE="Applicator vocabulary meta-schema",ex=["object","boolean"],tx={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"}},rx={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},nx={$schema:QE,$id:WE,$vocabulary:JE,$dynamicAnchor:XE,title:ZE,type:ex,properties:tx,$defs:rx},ix="https://json-schema.org/draft/2020-12/schema",ox="https://json-schema.org/draft/2020-12/meta/unevaluated",sx={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},ax="meta",cx="Unevaluated applicator vocabulary meta-schema",px=["object","boolean"],lx={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},ux={$schema:ix,$id:ox,$vocabulary:sx,$dynamicAnchor:ax,title:cx,type:px,properties:lx},dx="https://json-schema.org/draft/2020-12/schema",fx="https://json-schema.org/draft/2020-12/meta/content",mx={"https://json-schema.org/draft/2020-12/vocab/content":!0},hx="meta",yx="Content vocabulary meta-schema",gx=["object","boolean"],vx={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},bx={$schema:dx,$id:fx,$vocabulary:mx,$dynamicAnchor:hx,title:yx,type:gx,properties:vx},wx="https://json-schema.org/draft/2020-12/schema",Sx="https://json-schema.org/draft/2020-12/meta/core",Ex={"https://json-schema.org/draft/2020-12/vocab/core":!0},xx="meta",Tx="Core vocabulary meta-schema",Px=["object","boolean"],Ox={$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"}}},Ix={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},_x={$schema:wx,$id:Sx,$vocabulary:Ex,$dynamicAnchor:xx,title:Tx,type:Px,properties:Ox,$defs:Ix},Ax="https://json-schema.org/draft/2020-12/schema",Rx="https://json-schema.org/draft/2020-12/meta/format-annotation",$x={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},Nx="meta",kx="Format vocabulary meta-schema for annotation results",Dx=["object","boolean"],qx={format:{type:"string"}},Cx={$schema:Ax,$id:Rx,$vocabulary:$x,$dynamicAnchor:Nx,title:kx,type:Dx,properties:qx},jx="https://json-schema.org/draft/2020-12/schema",Mx="https://json-schema.org/draft/2020-12/meta/meta-data",Lx={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},Ux="meta",Fx="Meta-data vocabulary meta-schema",Bx=["object","boolean"],zx={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}},Vx={$schema:jx,$id:Mx,$vocabulary:Lx,$dynamicAnchor:Ux,title:Fx,type:Bx,properties:zx},Kx="https://json-schema.org/draft/2020-12/schema",Hx="https://json-schema.org/draft/2020-12/meta/validation",Gx={"https://json-schema.org/draft/2020-12/vocab/validation":!0},Yx="meta",Qx="Validation vocabulary meta-schema",Wx=["object","boolean"],Jx={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"}}},Xx={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:[]}},Zx={$schema:Kx,$id:Hx,$vocabulary:Gx,$dynamicAnchor:Yx,title:Qx,type:Wx,properties:Jx,$defs:Xx};var $p;function eT(){if($p)return xi;$p=1,Object.defineProperty(xi,"__esModule",{value:!0});const e=YE,t=nx,r=ux,n=bx,i=_x,o=Cx,s=Vx,a=Zx,c=["/properties"];function l(u){return[e,t,r,n,i,m(this,o),s,m(this,a)].forEach(y=>this.addMetaSchema(y,void 0,!1)),this;function m(y,h){return u?y.$dataMetaSchema(h,c):h}}return xi.default=l,xi}var Np;function tT(){return Np||(Np=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=pa(),n=jE(),i=ha(),o=eT(),s="https://json-schema.org/draft/2020-12/schema";class a extends r.default{constructor(h={}){super({...h,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(h=>this.addVocabulary(h)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:h,meta:w}=this.opts;w&&(o.default.call(this,h),this.refs["http://json-schema.org/schema"]=s)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.Ajv2020=a,e.exports=t=a,e.exports.Ajv2020=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var c=Rr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var l=Oe();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 u=cn();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return u.default}});var m=$r();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return m.default}})})(In,In.exports)),In.exports}var rT=tT();const ya=ee.getDefaultExportFromCjs(rT),nT=new ya({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0});function kp(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(i=>nT.validate(i,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:i,...o}=t;return o}if(t.type==="object"&&!t.properties&&!t.oneOf){if(t.additionalProperties===void 0||t.additionalProperties===!0)return{type:"object"};if(t.additionalProperties===!1)return{type:"object",properties:{}}}if(t.allOf)throw new Error(`Unexpected allOf in ${e}.`);if(t.anyOf)throw new Error(`Unexpected anyOf in ${e}.`);if(ee.isPlainObject(t.properties)||ee.isPlainObject(t.additionalProperties)||ee.isPlainObject(t.items)&&(ee.isPlainObject(t.items.properties)||ee.isPlainObject(t.items.additionalProperties)||t.items.oneOf))return iT(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 i={},o=t.oneOf.map((s,a)=>{if(typeof s=="boolean")throw new Error(`Unexpected boolean schema in ${e} at position ${a} in oneOf.`);const c=s?.properties?.[n];if(!c||typeof c=="boolean")throw new Error(`Unexpected property '${c}' schema in ${e} at position ${a} in oneOf.`);const l=c.const,u=Sr(l,s,r);return typeof u=="string"&&(i[l]=u),u});return(s,a)=>{if(ee.isPlainObject(s)){const c=s[n];if(typeof c=="string"){const l=i[c];if(l&&r[l])return l}}return kp(t.oneOf,o)(s,a)}}else{const n=t.oneOf.map((i,o)=>Sr(e+"_"+o,i,r));return kp(t.oneOf,n)}return t}function iT(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,i={};for(const[c,l]of Object.entries(t.properties||{}))i[c]=Sr(n+"."+c,l,r);let o;ee.isPlainObject(t.additionalProperties)&&(o=Sr(e+"_additionalProperties",t.additionalProperties,r)),t.additionalProperties===!0&&(o={});let s;ee.isPlainObject(t.items)&&(ee.isPlainObject(t.items.properties)||ee.isPlainObject(t.items.additionalProperties)||t.items.oneOf)&&(s=Sr(e+"_items",t.items,r));let a=t.required;return t.oneOf&&t.oneOf.every(c=>!!c.required)&&(a=c=>{const l=t.oneOf.map(m=>[...t.required||[],...m.required]);let u=l.findIndex(m=>m.every(y=>c[y]!==void 0));return u===-1&&(u=0),l[u]}),r[n]={properties:i,additionalProperties:o,items:s,required:a,description:t.description,documentationLink:t.documentationLink},n}function Sd(e,t){const r={},n=Sr(e,t,r);return{ctx:r,discriminatorResolver:typeof n=="function"?n:void 0}}const oT=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","security-scopes-defined","spec-strict-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","request-mime-type","response-contains-property","response-mime-type","no-duplicated-tag-names","spec-ref-siblings"],sT=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","security-scopes-defined","spec-strict-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","component-name-unique","no-empty-servers","no-example-value-and-externalValue","no-invalid-media-type-examples","no-server-example.com","no-server-trailing-slash","no-server-variables-empty-enum","no-undefined-server-variable","no-unused-components","no-mixed-number-range-constraints","operation-4xx-problem-details-rfc7807","request-mime-type","response-contains-property","response-mime-type","spec-components-invalid-map-name","array-parameter-serialization","no-duplicated-tag-names","nullable-type-sibling","spec-no-invalid-tag-parents","spec-no-invalid-encoding-combinations","spec-discriminator-defaultMapping","spec-example-values","spec-querystring-parameters","spec-ref-siblings"],aT=["info-contact","info-license-strict","operation-operationId","security-defined","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","spec-ref-siblings","security-scopes-defined"],cT=["info-contact","info-license-strict","operation-operationId","security-defined","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","spec-ref-siblings","security-scopes-defined"],pT=["sourceDescription-type","workflowId-unique","stepId-unique","sourceDescription-name-unique","sourceDescriptions-not-empty","spec-step-mutually-exclusive-fields","workflow-dependsOn","outputs-defined","parameters-unique","step-onSuccess-unique","step-onFailure-unique","requestBody-replacements-unique","no-criteria-xpath","criteria-unique","no-x-security-scheme-name-without-openapi","x-security-scheme-required-values","no-x-security-both-scheme-and-scheme-name","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","x-security-scheme-name-reference"],lT=["info-contact"],uT=["info-contact","info-license","no-unused-components","spec-no-duplicated-method-params","spec-no-required-params-after-optional","spec-ref-siblings"],dT=["no-unused-types","type-description"],fT=["struct","no-unresolved-refs"],mT=[...oT,...sT,...aT,...cT,...pT,...lT,...uT,...dT,...fT],hT=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","remove-unused-components"],yT=["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"],Ed=[...yT,...hT],xd={extends:{name:"Extends",properties:{},items:e=>typeof e=="string"&&!N.isAbsoluteUrl(e)&&!ee.path.extname(e)?{type:"string"}:{...Jr,directResolveAs:{name:"ConfigGovernance",...Jr}},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"},Jr={properties:xd},gT=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...Jr.properties,apis:"ConfigApis",client:"Client",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),vT={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"},bT=e=>({...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...e["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,...cd(Jr.properties,["plugins"]),client:"Client",clientOutput:{type:"string"}}}),wT={properties:{headers:{type:"array",items:{type:"string"}}}},ST={properties:{generators:{type:"array",items:{type:"string"}},argsStyle:{enum:["flat","grouped"]},serverUrl:{type:"string"},outputMode:{enum:["single","split"]},runtime:{enum:["inline","package"]},importExt:{enum:["js","ts"]},errorMode:{enum:["throw","result"]},dateType:{enum:["string","Date"]},mockData:{enum:["static","faker"]},mockSeed:{type:"number"},queryKeyPrefix:{type:"string"},setup:{type:"string"},pagination:"ClientPagination"}},Td={properties:{style:{enum:["cursor","offset","page","link"]},cursorParam:{type:"string"},nextCursor:{type:"string"},hasMore:{type:"string"},offsetParam:{type:"string"},limitParam:{type:"string"},items:{type:"string"}}},ET={properties:{...Td.properties,exclude:{type:"array",items:{type:"string"}},operations:N.mapOf("ClientPaginationRule")}},xT={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(mT.includes(t))return typeof e=="string"?{enum:["error","warn","off"]}:"BuiltinRule";if(ca(t))return typeof e=="string"?{enum:["error","warn","off"]}:"CustomRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},TT={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"},PT={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"},OT={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(Ed.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinDecorator";if(ca(t))return typeof e=="string"?{type:"string"}:"CustomDecorator"}},IT={properties:{},additionalProperties:{},description:"Built-in decorators are the default decorators included with Redocly CLI.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},_T={properties:{},additionalProperties:{},description:"Custom decorators are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},AT={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(Ed.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinPreprocessor";if(ca(t))return typeof e=="string"?{type:"string"}:"CustomPreprocessor"}},RT={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"},$T={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"},NT={properties:{properties:N.mapOf("Schema")},additionalProperties:{}};function kT(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 DT(e){return{...e[ot.ScorecardClassicLevel],properties:{...e[ot.ScorecardClassicLevel]?.properties,...xd}}}const qT={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"},CT={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"},jT={properties:{subject:"Subject",assertions:"Assertions",where:N.listOf("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 ga(e,t){const r=Ui.flatMap(i=>{const o=an(i),s=t?t.extendTypes(o,i):o;return Object.keys(s)}),{ctx:n}=Sd("rootRedoclyConfigSchema",e);return{...MT,ConfigRoot:gT(n),ConfigApisProperties:bT(n),Subject:kT([...r,...MS]),...n,[ot.ScorecardClassicLevel]:DT(n)}}const MT={ConfigurableRule:jT,ConfigApis:vT,ConfigGovernance:Jr,ConfigHTTP:wT,Client:ST,ClientPagination:ET,ClientPaginationRule:Td,Where:CT,BuiltinRule:TT,CustomRule:PT,BuiltinDecorator:IT,CustomDecorator:_T,BuiltinPreprocessor:RT,CustomPreprocessor:$T,Schema:NT,Rules:xT,Decorators:OT,Preprocessors:AT,Assertions:qT},{theme:x$,...LT}=fo.properties,UT={...fo,properties:LT},Pd=ga(UT),pn=N.normalizeTypes(Pd),$s="redocly.yaml",Od={extends:["recommended"]},Xi=".redocly.lint-ignore.yaml",Id=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
9
+ # See https://redocly.com/docs/cli/ for more information.
10
+ `,va="configBundler",ba="pluginsCollector",_d=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];function Ad(e){return{http:{headers:e?.http?.headers??[],customFetch:void 0}}}function Ti(e,t){const r=new Set(t);let n=0;for(const i of e)r.has(i)&&n++;return n}function FT(e,t){const r=t.direction||t,n=t.property;for(let i=1;i<e.length;i++){let o=e[i],s=e[i-1];if(n){const c=e[i][n],l=e[i-1][n];if(!c||!l)return!1;o=c,s=l}if(typeof o=="string"&&typeof s=="string"&&(o=o.toLowerCase(),s=s.toLowerCase()),!(r==="asc"?o>=s:o<=s))return!1}return!0}const Rd=new Set(["mutuallyExclusive","mutuallyRequired","enum","pattern","notPattern","minLength","maxLength","casing","sortOrder","disallowed","required","requireAny","ref","const","defined"]),$d=new Set(["pattern","notPattern","enum","defined","nonEmpty","minLength","maxLength","casing","sortOrder","ref","const","contains"]),cr={pattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||ee.isPlainObject(e))return[];const i=Array.isArray(e)?e:[e],o=Gr(t);return i.map(s=>!o?.test(s)&&{message:`"${s}" should match a regex ${t}`,location:et(e)?r:ee.isPlainObject(n)?r.child(s).key():r.key()}).filter(N.isTruthy)},notPattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||ee.isPlainObject(e))return[];const i=Array.isArray(e)?e:[e],o=Gr(t);return i.map(s=>o?.test(s)&&{message:`"${s}" should not match a regex ${t}`,location:et(e)?r:ee.isPlainObject(n)?r.child(s).key():r.key()}).filter(N.isTruthy)},enum:(e,t,{baseLocation:r})=>typeof e>"u"||ee.isPlainObject(e)?[]:(Array.isArray(e)?e:[e]).map(i=>!t.includes(i)&&{message:`"${i}" should be one of the predefined values`,location:et(e)?r:r.child(i).key()}).filter(N.isTruthy),defined:(e,t=!0,{baseLocation:r})=>{const n=typeof e<"u";return(t?n:!n)?[]:[{message:t?"Should be defined":"Should be not defined",location:r}]},required:(e,t,{baseLocation:r})=>t.map(n=>!e.includes(n)&&{message:`${n} is required`,location:r.key()}).filter(N.isTruthy),contains:(e,t,{baseLocation:r})=>{if(typeof e>"u"||ee.isPlainObject(e))return[];const n=Array.isArray(e)?e:[e];return t.map(i=>!n.includes(i)&&{message:`${i} should be in the list`,location:r}).filter(N.isTruthy)},disallowed:(e,t,{baseLocation:r})=>typeof e>"u"||ee.isPlainObject(e)?[]:(Array.isArray(e)?e:[e]).map(i=>t.includes(i)&&{message:`"${i}" is disallowed`,location:et(e)?r:r.child(i).key()}).filter(N.isTruthy),const:(e,t,{baseLocation:r})=>typeof e>"u"?[]:Array.isArray(e)?e.map(n=>t!==n&&{message:`"${n}" should be equal ${t} `,location:et(e)?r:r.child(n).key()}).filter(N.isTruthy):e!==t?[{message:`${e} should be equal ${t}`,location:r}]:[],nonEmpty:(e,t=!0,{baseLocation:r})=>{const n=typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0;return(t?!n:n)?[]:[{message:t?"Should not be empty":"Should be empty",location:r}]},minLength:(e,t,{baseLocation:r})=>typeof e>"u"||e.length>=t?[]:[{message:`Should have at least ${t} characters`,location:r}],maxLength:(e,t,{baseLocation:r})=>typeof e>"u"||e.length<=t?[]:[{message:`Should have at most ${t} characters`,location:r}],casing:(e,t,{baseLocation:r})=>{if(typeof e>"u"||ee.isPlainObject(e))return[];const n=Array.isArray(e)?e:[e],i={camelCase:/^[a-z][a-zA-Z0-9]*$/g,"kebab-case":/^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/g,snake_case:/^([a-z][a-z0-9]*)(_[a-z0-9]+)*$/g,PascalCase:/^[A-Z][a-zA-Z0-9]+$/g,MACRO_CASE:/^([A-Z][A-Z0-9]*)(_[A-Z0-9]+)*$/g,"COBOL-CASE":/^([A-Z][A-Z0-9]*)(-[A-Z0-9]+)*$/g,flatcase:/^[a-z][a-z0-9]+$/g};return n.map(o=>!o.match(i[t])&&{message:`"${o}" should use ${t}`,location:et(e)?r:r.child(o).key()}).filter(N.isTruthy)},sortOrder:(e,t,{baseLocation:r})=>{const n=t.direction||t,i=t.property;return Array.isArray(e)&&e.length>0&&ee.isPlainObject(e[0])&&!i?[{message:"Please define a property to sort objects by",location:r}]:typeof e>"u"||FT(e,t)?[]:[{message:`Should be sorted in ${n==="asc"?"an ascending":"a descending"} order${i?` by property ${i}`:""}`,location:r}]},mutuallyExclusive:(e,t,{baseLocation:r})=>Ti(e,t)<2?[]:[{message:`${t.join(", ")} keys should be mutually exclusive`,location:r.key()}],mutuallyRequired:(e,t,{baseLocation:r})=>(Ti(e,t)>0?Ti(e,t)===t.length:!0)?[]:[{message:`Properties ${t.join(", ")} are mutually required`,location:r.key()}],requireAny:(e,t,{baseLocation:r})=>Ti(e,t)>=1?[]:[{message:`Should have any of ${t.join(", ")}`,location:r.key()}],ref:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof n>"u")return[];const i=n.hasOwnProperty("$ref");if(typeof t=="boolean")return(t?i:!i)?[]:[{message:t?"should use $ref":"should not use $ref",location:i?r:r.key()}];const o=Gr(t);return i&&o?.test(n.$ref)?[]:[{message:`$ref value should match ${t}`,location:i?r:r.key()}]}};function BT(e){return(t,r,n)=>e.call(null,t,r,n)}function zT(e,t){if(!e.rules)return{};const r={},n=[];for(const[i,o]of Object.entries(e.rules))if(i.startsWith("rule/")&&ee.isPlainObject(o)){const s=o;if(t){Dp(t,s);for(const a of s.where||[])Dp(t,a)}n.push({...s,assertionId:i})}else r[i]=o;return n.length>0&&(r.assertions=n),r}function Dp(e,t){for(const r of Object.keys(t.assertions||{})){const[n,i]=r.split("/");if(!n||!i)continue;const o=e.find(s=>s.id===n);if(!o)throw Error(`Plugin ${n} isn't found.`);if(!o.assertions||!o.assertions[i])throw Error(`Plugin ${n} doesn't export assertions function with name ${i}.`);cr[r]=BT(o.assertions[i])}}class ln{resolvedConfig;configPath;document;resolvedRefMap;resolve;_alias;plugins;ignore={};doNotResolveExamples;rules;preprocessors;decorators;_usedRules=new Set;_usedVersions=new Set;constructor(t,r={}){this.resolvedConfig=t,this.configPath=r.configPath,this.document=r.document,this.resolvedRefMap=r.resolvedRefMap,this.resolve=Ad(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!t.resolve?.doNotResolveExamples;const n=i=>zT({rules:i},this.plugins);this.rules={oas2:n({...t.rules,...t.oas2Rules}),oas3_0:n({...t.rules,...t.oas3_0Rules}),oas3_1:n({...t.rules,...t.oas3_1Rules}),oas3_2:n({...t.rules,...t.oas3_2Rules}),async2:n({...t.rules,...t.async2Rules}),async3:n({...t.rules,...t.async3Rules}),arazzo1:n({...t.rules,...t.arazzo1Rules}),arazzo1_1:n({...t.rules,...t.arazzo1_1Rules}),overlay1:n({...t.rules,...t.overlay1Rules}),openrpc1:n({...t.rules,...t.openrpc1Rules}),graphql:n({...cd(t.rules??{},["no-unresolved-refs"]),...t.graphqlRules})},this.preprocessors={oas2:{...t.preprocessors,...t.oas2Preprocessors},oas3_0:{...t.preprocessors,...t.oas3_0Preprocessors},oas3_1:{...t.preprocessors,...t.oas3_1Preprocessors},oas3_2:{...t.preprocessors,...t.oas3_2Preprocessors},async2:{...t.preprocessors,...t.async2Preprocessors},async3:{...t.preprocessors,...t.async3Preprocessors},arazzo1:{...t.preprocessors,...t.arazzo1Preprocessors},arazzo1_1:{...t.preprocessors,...t.arazzo1_1Preprocessors},overlay1:{...t.preprocessors,...t.overlay1Preprocessors},openrpc1:{...t.preprocessors,...t.openrpc1Preprocessors},graphql:{}},this.decorators={oas2:{...t.decorators,...t.oas2Decorators},oas3_0:{...t.decorators,...t.oas3_0Decorators},oas3_1:{...t.decorators,...t.oas3_1Decorators},oas3_2:{...t.decorators,...t.oas3_2Decorators},async2:{...t.decorators,...t.async2Decorators},async3:{...t.decorators,...t.async3Decorators},arazzo1:{...t.decorators,...t.arazzo1Decorators},arazzo1_1:{...t.decorators,...t.arazzo1_1Decorators},overlay1:{...t.decorators,...t.overlay1Decorators},openrpc1:{...t.decorators,...t.openrpc1Decorators},graphql:{}},this.ignore=r.ignore??{}}forAlias(t){if(t===void 0||!ee.isPlainObject(this.resolvedConfig?.apis?.[t]))return this;const{apis:r,...n}=this.resolvedConfig,{root:i,output:o,...s}=r[t];return new ln({...n,...s},{configPath:this.configPath,document:this.document,resolvedRefMap:this.resolvedRefMap,alias:t,plugins:this.plugins,ignore:this.ignore})}clearIgnoreForRef(t){const r=this.configPath?ee.pathBrowserifyExports.dirname(this.configPath):process.cwd(),n=N.isAbsoluteUrl(t)?t:ee.pathBrowserifyExports.resolve(r,t);delete this.ignore[n]}saveIgnore(){const t=this.configPath?ee.pathBrowserifyExports.dirname(this.configPath):process.cwd(),r=ee.pathBrowserifyExports.join(t,Xi),n={};for(const i of Object.keys(this.ignore)){const o=N.isAbsoluteUrl(i)?i:fu(ee.pathBrowserifyExports.relative(t,i)),s=n[o]=this.ignore[i];for(const a of Object.keys(s))s[a]=Array.from(s[a])}(void 0)(r,Id+N.stringifyYaml(n))}addIgnore(t){const r=this.ignore,n=t.location[0];if(n.pointer===void 0)return;const i=r[n.source.absoluteRef]=r[n.source.absoluteRef]||{};(i[t.ruleId]=i[t.ruleId]||new Set).add(n.pointer)}addProblemToIgnore(t){const r=t.location[0];if(r.pointer===void 0)return t;const i=(this.ignore[r.source.absoluteRef]||{})[t.ruleId],o=i&&i.has(r.pointer);return o?{...t,ignored:o}:t}extendTypes(t,r){let n=t;for(const i of this.plugins)if(i.typeExtension!==void 0)switch(r){case"oas3_0":case"oas3_1":case"oas3_2":if(!i.typeExtension.oas3)continue;n=i.typeExtension.oas3(n,r);break;case"oas2":if(!i.typeExtension.oas2)continue;n=i.typeExtension.oas2(n,r);break;case"async2":if(!i.typeExtension.async2)continue;n=i.typeExtension.async2(n,r);break;case"async3":if(!i.typeExtension.async3)continue;n=i.typeExtension.async3(n,r);break;case"arazzo1":case"arazzo1_1":if(!i.typeExtension.arazzo1)continue;n=i.typeExtension.arazzo1(n,r);break;case"overlay1":if(!i.typeExtension.overlay1)continue;n=i.typeExtension.overlay1(n,r);break;case"openrpc1":if(!i.typeExtension.openrpc1)continue;n=i.typeExtension.openrpc1(n,r);break;case"graphql":break;default:throw new Error("Not implemented")}return n}getRuleSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);const n=this.rules[r][t]||"off";return typeof n=="string"?{severity:n}:{severity:"error",...n}}getPreprocessorSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);const n=this.preprocessors[r][t]||"off";return typeof n=="string"?{severity:n==="on"?"error":n}:{severity:"error",...n}}getDecoratorSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);const n=this.decorators[r][t]||"off";return typeof n=="string"?{severity:n==="on"?"error":n}:{severity:"error",...n}}getUnusedRules(){const t=[],r=[],n=[];for(const i of Array.from(this._usedVersions))t.push(...Object.keys(this.rules[i]).filter(o=>!this._usedRules.has(o))),r.push(...Object.keys(this.decorators[i]).filter(o=>!this._usedRules.has(o))),n.push(...Object.keys(this.preprocessors[i]).filter(o=>!this._usedRules.has(o)));return{rules:t,preprocessors:n,decorators:r}}getRulesForSpecVersion(t){switch(t){case"oas3":{const r=[];return this.plugins.forEach(n=>n.preprocessors?.oas3&&r.push(n.preprocessors.oas3)),this.plugins.forEach(n=>n.rules?.oas3&&r.push(n.rules.oas3)),this.plugins.forEach(n=>n.decorators?.oas3&&r.push(n.decorators.oas3)),r}case"oas2":{const r=[];return this.plugins.forEach(n=>n.preprocessors?.oas2&&r.push(n.preprocessors.oas2)),this.plugins.forEach(n=>n.rules?.oas2&&r.push(n.rules.oas2)),this.plugins.forEach(n=>n.decorators?.oas2&&r.push(n.decorators.oas2)),r}case"async2":{const r=[];return this.plugins.forEach(n=>n.preprocessors?.async2&&r.push(n.preprocessors.async2)),this.plugins.forEach(n=>n.rules?.async2&&r.push(n.rules.async2)),this.plugins.forEach(n=>n.decorators?.async2&&r.push(n.decorators.async2)),r}case"async3":{const r=[];return this.plugins.forEach(n=>n.preprocessors?.async3&&r.push(n.preprocessors.async3)),this.plugins.forEach(n=>n.rules?.async3&&r.push(n.rules.async3)),this.plugins.forEach(n=>n.decorators?.async3&&r.push(n.decorators.async3)),r}case"arazzo1":{const r=[];return this.plugins.forEach(n=>n.preprocessors?.arazzo1&&r.push(n.preprocessors.arazzo1)),this.plugins.forEach(n=>n.rules?.arazzo1&&r.push(n.rules.arazzo1)),this.plugins.forEach(n=>n.decorators?.arazzo1&&r.push(n.decorators.arazzo1)),r}case"arazzo1_1":{const r=[];return this.plugins.forEach(n=>n.preprocessors?.arazzo1_1&&r.push(n.preprocessors.arazzo1_1)),this.plugins.forEach(n=>n.rules?.arazzo1_1&&r.push(n.rules.arazzo1_1)),this.plugins.forEach(n=>n.decorators?.arazzo1_1&&r.push(n.decorators.arazzo1_1)),r}case"overlay1":{const r=[];return this.plugins.forEach(n=>n.preprocessors?.overlay1&&r.push(n.preprocessors.overlay1)),this.plugins.forEach(n=>n.rules?.overlay1&&r.push(n.rules.overlay1)),this.plugins.forEach(n=>n.decorators?.overlay1&&r.push(n.decorators.overlay1)),r}case"openrpc1":{const r=[];return this.plugins.forEach(n=>n.preprocessors?.openrpc1&&r.push(n.preprocessors.openrpc1)),this.plugins.forEach(n=>n.rules?.openrpc1&&r.push(n.rules.openrpc1)),this.plugins.forEach(n=>n.decorators?.openrpc1&&r.push(n.decorators.openrpc1)),r}case"graphql":{const r=[];return this.plugins.forEach(n=>n.rules?.graphql&&r.push(n.rules.graphql)),r}}}skipRules(t){for(const r of t||[])for(const n of Ui)if(this.rules[n][r])this.rules[n][r]="off";else if(Array.isArray(this.rules[n].assertions))for(const i of this.rules[n].assertions)i.assertionId===r&&(i.severity="off")}skipPreprocessors(t){for(const r of t||[])for(const n of Ui)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(t){for(const r of t||[])for(const n of Ui)this.decorators[n][r]&&(this.decorators[n][r]="off")}}function Bt(e){return e!==void 0}function Xr(e,t,r,n){return e.flatMap(i=>Object.keys(i).map(o=>{const s=i[o],a=r==="rules"?t.getRuleSettings(o,n):r==="preprocessors"?t.getPreprocessorSettings(o,n):t.getDecoratorSettings(o,n);if(a.severity==="off")return;const c=a.severity,l=a.message,u=s(a);return Array.isArray(u)?u.map(m=>({severity:c,ruleId:o,message:l,visitor:m})):{severity:c,message:l,ruleId:o,visitor:u}})).flatMap(i=>i).filter(Bt)}const VT={},KT={},HT={};function Nd(e){return Array.isArray(e)&&e.length===0}function kd(e,t,r){const{parent:n,key:i}=t;let o=!1;if(Array.isArray(e))for(let s=0;s<e.length;s++){if(N.isRef(e[s])){const a=t.resolve(e[s]);r(a.node)&&(e.splice(s,1),o=!0,s--)}r(e[s])&&(e.splice(s,1),o=!0,s--)}else if(ee.isPlainObject(e))for(const s of Object.keys(e)){if(N.isRef(e[s])){const a=t.resolve(e[s]);r(a.node)&&(delete e[s],o=!0)}r(e[s])&&(delete e[s],o=!0)}o&&(Or(e)||Nd(e))&&delete n[i]}function Er(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=qp(t),e=qp(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function qp(e){return Array.isArray(e)?e:[e]}const GT="any",Dd=({property:e,value:t,matchStrategy:r,applyTo:n})=>{const i=r||GT;if(n!==void 0){if(n==="Operation"){const s=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(a,c){for(const u of s){const m=N.isRef(a[u])?c.resolve(a[u]).node:a[u];if(ee.isPlainObject(m)){const y=m[e];Er(y,t,i)||delete a[u]}}s.some(u=>a[u])||a.additionalOperations||delete c.parent[c.key]}}}}if(n==="PathItem")return{PathItem:{enter(s,a){const c=s[e];Er(c,t,i)||delete a.parent[a.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}const o=s=>s?.[e]&&!Er(s?.[e],t,i);return{any:{enter:(s,a)=>{kd(s,a,o)}}}},YT="any",qd=({property:e,value:t,matchStrategy:r,applyTo:n})=>{const i=r||YT;if(n!==void 0){if(n==="Operation"){const s=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(a,c){for(const u of s){const m=N.isRef(a[u])?c.resolve(a[u]).node:a[u];if(ee.isPlainObject(m)){const y=m[e];Er(y,t,i)&&delete a[u]}}s.some(u=>a[u])||a.additionalOperations||delete c.parent[c.key]}}}}if(n==="PathItem")return{PathItem:{enter(s,a){const c=s[e];Er(c,t,i)&&delete a.parent[a.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}const o=s=>Er(s?.[e],t,i);return{any:{enter:(s,a)=>{kd(s,a,o)}}}};function Cp(e){const t=(void 0)(e,"utf-8");return N.parseYaml(t)}function Zr(e,t){return N.isAbsoluteUrl(e)||t===void 0?e:ee.pathBrowserifyExports.resolve(ee.pathBrowserifyExports.dirname(t),e)}function wa(e){return(void 0)(e,"utf-8")}const Cd=({filePath:e})=>({Info:{leave(t,{report:r,location:n,config:i}){if(!e)throw new Error('Parameter "filePath" is not provided for "info-description-override" rule');try{t.description=wa(Zr(e,i?.configPath))}catch(o){r({message:`Failed to read markdown override file for "info.description".
11
+ ${o.message}`,location:n.child("description")})}}}}),jd=e=>({Info:{leave(t){if(!ee.isPlainObject(e))throw new Error('"info-override" decorator should be called with an object');const{severity:r,...n}=e;Object.assign(t,n)}}}),Md=({operationIds:e})=>({Operation:{leave(t,{report:r,location:n,config:i}){if(!t.operationId)return;if(!e)throw new Error('Parameter "operationIds" is not provided for "operation-description-override" rule');const o=t.operationId;if(e[o])try{const s=e[o];t.description=wa(Zr(s,i?.configPath))}catch(s){r({message:`Failed to read markdown override file for operation "${o}".
12
+ ${s.message}`,location:n.child("operationId").key()})}}}}),QT="x-internal",Ld=({internalFlagProperty:e=QT})=>{function t(n,i,o){const{parent:s,key:a}=i;let c=!1;if(Array.isArray(n))for(let l=0;l<n.length;l++){if(N.isRef(n[l])&&i.resolve(n[l]).node?.[e]){if(ee.isPlainObject(s.discriminator?.mapping))for(const m in s.discriminator.mapping)o?.[m]===n[l].$ref&&delete s.discriminator.mapping[m];n.splice(l,1),c=!0,l--}n[l]?.[e]&&(n.splice(l,1),c=!0,l--)}else if(ee.isPlainObject(n))for(const l of Object.keys(n)){if(N.isRef(n[l])){const u=i.resolve(n[l]);ee.isPlainObject(u.node)&&u.node?.[e]&&(delete n[l],c=!0)}ee.isPlainObject(n[l])&&n[l]?.[e]&&(delete n[l],c=!0)}c&&(Or(n)||Nd(n))&&delete s[a]}let r={};return{DiscriminatorMapping:{enter:n=>{r=JSON.parse(JSON.stringify(n))}},any:{enter:(n,i)=>{t(n,i,r)}}}},Ud=({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 i=e[t.name];if(i)try{t.description=wa(Zr(i,n?.configPath))}catch(o){r({message:`Failed to read markdown override file for tag "${t.name}".
13
+ ${o.message}`})}}}}),WT=["definitions","parameters","responses","securityDefinitions"],Fd=()=>{const e=new Map;function t(i,o){const s=`${i}/${o}`;e.set(s,{usedIn:e.get(s)?.usedIn??[],componentType:i,name:o})}function r(i){if(!i.startsWith("#/"))return;const[o,s]=N.parseRef(i).pointer;if(!(!o||!s)&&WT.includes(o))return`${o}/${s}`}function n(i,o=new Set){const s=o.size;for(const[a,{usedIn:c,name:l,componentType:u}]of e)!c.some(y=>y!==a&&!o.has(y))&&u&&(o.add(a),delete i[u][l],e.delete(a),Or(i[u])&&delete i[u]);return o.size>s?n(i,o):o.size}return{ref:{leave(i,{location:o,type:s,key:a}){if(["Schema","Parameter","Response","SecurityScheme"].includes(s.name)){const c=r(i.$ref);if(!c)return;const l=r(o.pointer)??o.pointer,u=e.get(c);u?u.usedIn.push(l):e.set(c,{usedIn:[l],name:a.toString()})}}},Root:{leave(i,o){const s=o.getVisitorData();s.removedCount=n(i)}},NamedSchemas:{Schema(i,{key:o}){i.allOf||t("definitions",o.toString())}},NamedParameters:{Parameter(i,{key:o}){t("parameters",o.toString())}},NamedResponses:{Response(i,{key:o}){t("responses",o.toString())}},NamedSecuritySchemes:{SecurityScheme(i,{key:o}){t("securityDefinitions",o.toString())}},SecurityRequirement(i){for(const o of Object.keys(i)){const s=`securityDefinitions/${o}`,a=e.get(s);a?a.usedIn.push("SecurityRequirement"):e.set(s,{usedIn:["SecurityRequirement"],name:o})}}}},JT={"operation-description-override":Md,"tag-description-override":Ud,"info-description-override":Cd,"info-override":jd,"remove-x-internal":Ld,"filter-in":Dd,"filter-out":qd,"remove-unused-components":Fd},XT=({operationIds:e})=>({Operation:{enter(t,r){const n=t.operationId;if(!n)return;const i=e[n];if(i){if(i.responses&&t.responses)for(const o of Object.keys(i.responses)){const s=jp(t.responses[o],r.resolve);s&&(s.content=s.content?s.content:{},Object.keys(i.responses[o]).forEach(a=>{const c=i.responses[o][a];s.content[a]={...s.content[a],examples:Cp(Zr(c,r.config?.configPath))}}),t.responses[o]=s)}if(i.request&&t.requestBody){const o=jp(t.requestBody,r.resolve);if(!o)return;o.content=o.content?o.content:{},Object.keys(i.request).forEach(s=>{const a=i.request[s];o.content[s]={...o.content[s],examples:Cp(Zr(a,r.config?.configPath))}}),t.requestBody=o}}}}});function jp(e,t){if(!N.isRef(e))return e;const r=t(e);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}function ZT(e,t){return t in e}function Mp(e){if(!e.startsWith("#/components/"))return;const[t,r,n]=N.parseRef(e).pointer;if(!(!r||!n))return`${r}/${n}`}const Bd=()=>{const e=new Map;function t(n,i,o=!1){const s=`${n}/${i}`;e.set(s,{usedIn:e.get(s)?.usedIn??[],componentType:n,name:i,referencesDiscriminator:o})}function r(n,i=new Set){const o=i.size;for(const[s,{usedIn:a,name:c,componentType:l,referencesDiscriminator:u}]of e)if(!(a.some(y=>y!==s&&!i.has(y))||u)&&l&&n.components&&ZT(n.components,l)){i.add(s);const y=n.components[l];delete y[c],e.delete(s),Or(y)&&delete n.components[l]}return i.size>o?r(n,i):i.size}return{ref:{leave(n,{location:i,type:o,key:s}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap","SecurityScheme"].includes(o.name)){const a=Mp(n.$ref);if(!a)return;const c=Mp(i.pointer)??i.pointer,l=e.get(a);l?l.usedIn.push(c):e.set(a,{usedIn:[c],name:s.toString()})}}},Root:{leave(n,i){const o=i.getVisitorData();o.removedCount=r(n),Or(n.components)&&delete n.components}},NamedSchemas:{Schema(n,i){const o=n.allOf?.some(s=>N.isRef(s)&&i.resolve(s)?.node?.discriminator);t("schemas",i.key.toString(),o)}},NamedParameters:{Parameter(n,{key:i}){t("parameters",i.toString())}},NamedResponses:{Response(n,{key:i}){t("responses",i.toString())}},NamedExamples:{Example(n,{key:i}){t("examples",i.toString())}},NamedRequestBodies:{RequestBody(n,{key:i}){t("requestBodies",i.toString())}},NamedHeaders:{Header(n,{key:i}){t("headers",i.toString())}},NamedMediaTypes:{MediaTypesMap(n,{key:i}){t("mediaTypes",i.toString())}},NamedSecuritySchemes:{SecurityScheme(n,{key:i}){t("securitySchemes",i.toString())}},SecurityRequirement(n){for(const i of Object.keys(n)){const o=`securitySchemes/${i}`,s=e.get(o);s?s.usedIn.push("SecurityRequirement"):e.set(o,{usedIn:["SecurityRequirement"],name:i})}}}},eP={"operation-description-override":Md,"tag-description-override":Ud,"info-description-override":Cd,"info-override":jd,"remove-x-internal":Ld,"filter-in":Dd,"filter-out":qd,"media-type-examples-override":XT,"remove-unused-components":Bd},tP={},rP={},nP=()=>({SourceDescriptions:{enter(e,{report:t,location:r,specVersion:n}){if(!e.length)return;const i=n==="arazzo1"?["openapi","arazzo"]:["openapi","arazzo","asyncapi"];for(const o of e)i.includes(o?.type)||t({message:`The \`type\` property of the \`sourceDescription\` object must be either ${i.map(s=>`\`${s}\``).join(" or ")}.`,location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/sourcedescription-type"})}}});function iP(e){return e}const Ns=void 0,Ne=new Proxy(ee.tty,{get(e,t){return N.isBrowser?iP:e[t]}});class oP{info(t){return N.isBrowser?console.info(t):process.stderr.write(t)}warn(t){return N.isBrowser?console.warn(t):process.stderr.write(Ne.yellow(t))}error(t){return N.isBrowser?console.error(t):process.stderr.write(Ne.red(t))}output(t){return N.isBrowser?console.log(t):process.stdout.write(t)}printNewLine(){N.isBrowser?console.log(`
14
+ `):process.stdout.write(`
15
+ `)}printSeparator(t){const r=process.stdout.columns||80,n=t.repeat(Math.ceil(r/t.length)).slice(0,r),i=N.isBrowser?n:Ne.gray(n);return N.isBrowser?console.log(i):process.stdout.write(i)}indent(t,r){const n=N.isBrowser?" ":" ";return t.split(`
16
+ `).map(i=>n.repeat(r)+i).join(`
17
+ `)}}const Re=new oP,ks={problems:"{{problems}}",assertionName:"{{assertionName}}",nodeType:"{{nodeType}}",key:"{{key}}",property:"{{property}}",file:"{{file}}",pointer:"{{pointer}}"};function Lp(e){const{filterInParentKeys:t,filterOutParentKeys:r,matchParentKeys:n}=e,i=n&&Gr(n),o=i&&(c=>i.test(c.toString())),s=Array.isArray(t)&&(c=>t.includes(c.toString())),a=Array.isArray(r)&&(c=>!r.includes(c.toString()));return[o,s,a].filter(N.isTruthy)}function zd(e){const t=Xs(cr).filter(i=>e.assertions[i]!==void 0).map(i=>({name:i,conditions:e.assertions[i],runsOnKeys:Rd.has(i),runsOnValues:$d.has(i)})),r=t.find(i=>i.runsOnKeys&&!i.runsOnValues),n=t.find(i=>i.runsOnValues&&!i.runsOnKeys);if(n&&!e.subject.property)throw new Error(`The '${n.name}' assertion can't be used on all keys. Please provide a single property.`);if(r&&e.subject.property)throw new Error(`The '${r.name}' assertion can't be used on properties. Please remove the 'property' key.`);return t}function Vd({subject:e}){return(Array.isArray(e.property)?e.property:[e?.property]).filter(Boolean)}function Kd(e,t,r){const n=Vd(e),i=[];for(const o of t)if(n.length)for(const s of n)i.push(Up({assert:o,ctx:r,assertionProperty:s}));else i.push(Up({assert:o,ctx:r}));return i.flat()}function sP(e,t){const r=Lp(e.subject),n=r.length?(c,l)=>!r.every(u=>u(l)):void 0,i={[e.subject.type]:{enter:t,...n&&{skip:n}}};if(!Array.isArray(e.where))return i;let o={};const s=o,a=e.where;for(let c=0;c<a.length;c++){const l=a[c];if(!et(l.subject?.type))throw new Error(`${e.assertionId} -> where -> [${c}]: 'type' (String) is required`);if(!ee.isPlainObject(l.assertions))throw new Error(`${e.assertionId} -> where -> [${c}]: 'assertions' (Object) is required`);const u=Lp(l.subject),m=zd(l),y=(w,b,E)=>!u.every(P=>P(b))||!!Kd(l,m,{...E,node:w}).length,h={...(u.length||m.length)&&{skip:y}};l.subject.type===e.subject.type&&c===a.length-1?i[e.subject.type]={enter:t,...h.skip&&{skip:h.skip}||n&&{skip:(w,b,E)=>!!(h.skip?.(w,b,E)||n?.(w,b))}}:o=o[l.subject?.type]=h}return o[e.subject.type]=i[e.subject.type],s}function aP(e,t){return(r,n)=>{const i=Vd(t),o=`${Ne.blue(e)} failed because the ${Ne.blue(t.subject.type)} ${Ne.blue(i.join(", "))} didn't meet the assertions: ${ks.problems}`.replace(/ +/g," "),s=Kd(t,zd(t),{...n,node:r});if(s.length)for(const a of cP(s)){const c=t.message||o,u={problems:Hd(a),assertionName:e,nodeType:t.subject.type,property:i.join(", "),key:String(n.key),pointer:n.location.pointer,file:Gd(n.location.source.absoluteRef)};n.report({message:Yd(c,u),location:pP(a)||n.location,forceSeverity:t.severity||"error",suggest:t.suggest||[],...t.reference&&{reference:t.reference},ruleId:e})}}}function cP(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 pP(e){return e.length?e[0].location:void 0}function Hd(e){return e.length===1?e[0].message??"":e.map(t=>`
18
+ - ${t.message??""}`).join("")}function Gd(e){return N.isAbsoluteUrl(e)?e.split("/").at(-1)||e:e.split(/[/\\]/).at(-1)||e}function Yd(e,t){let r=e;for(const n of Object.keys(ks)){const i=ks[n],o=t[n];i&&(r=r.split(i).join(o))}return r}function Up({assert:e,ctx:t,assertionProperty:r}){const n=e.name==="ref"?t.rawLocation:t.location;if(r){const i=N.isRef(t.node[r])?t.resolve(t.node[r])?.node:t.node[r],o=t.rawNode[r],s=n.child(r);return cr[e.name](i,e.conditions,{...t,baseLocation:s,rawValue:o})}else{const i=Array.isArray(t.node)?t.node:Object.keys(t.node);return cr[e.name](i,e.conditions,{...t,rawValue:t.rawNode,baseLocation:n})}}const Jt=e=>{const t=[],r=Object.values(e).filter(n=>ee.isPlainObject(n));for(const[n,i]of r.entries()){if(!et(i.subject.type))throw new Error(`${i.assertionId}: 'type' (String) is required`);if(!ee.isPlainObject(i.assertions))throw new Error(`${i.assertionId}: 'assertions' (Object) is required`);const o=aP(i.assertionId,i),s=sP(i,o);t.push(s)}return t};function lP(e){return ee.isPlainObject(e)||Array.isArray(e)}const un=()=>({Schema(e,{report:t,location:r}){if(!Array.isArray(e.enum))return;const n=new Set,i=[];for(const[o,s]of e.enum.entries()){const a=lP(s);(a?i.some(l=>Qr(l,s)):n.has(s))&&t({message:`Duplicated enum value found: '${a?JSON.stringify(s):s}'.`,location:r.child(["enum",o]),reference:"https://redocly.com/docs/cli/rules/common/no-duplicated-enum-values"}),a?i.push(s):n.add(s)}}});var Bo,Fp;function uP(){return Fp||(Fp=1,Bo=(function(){function e(t,r,n,i,o){return t<r||n<r?t>n?n+1:t+1:i===o?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;s<i&&t.charCodeAt(s)===r.charCodeAt(s);)s++;if(i-=s,o-=s,i===0||o<3)return o;var a=0,c,l,u,m,y,h,w,b,E,P,I,v,x=[];for(c=0;c<i;c++)x.push(c+1),x.push(t.charCodeAt(s+c));for(var g=x.length-1;a<o-3;)for(E=r.charCodeAt(s+(l=a)),P=r.charCodeAt(s+(u=a+1)),I=r.charCodeAt(s+(m=a+2)),v=r.charCodeAt(s+(y=a+3)),h=a+=4,c=0;c<g;c+=2)w=x[c],b=x[c+1],l=e(w,l,u,E,b),u=e(l,u,m,P,b),m=e(u,m,y,I,b),h=e(m,y,h,v,b),x[c]=h,y=m,m=u,u=l,l=w;for(;a<o;)for(E=r.charCodeAt(s+(l=a)),h=++a,c=0;c<g;c+=2)w=x[c],x[c]=h=e(w,l,h,E,x[c+1]),l=w;return h}})()),Bo}var dP=uP();const fP=ee.getDefaultExportFromCjs(dP),vo=(e,t,r)=>{if(N.isRef(e)){const n=t.resolve(e,r?.source.absoluteRef);return n?{schema:n.node,location:n.location,chain:n.chain}:{schema:void 0,location:r}}return{schema:e,location:r}},zo=(e,t,r,n,i)=>!!(e.properties&&N.getOwn(e.properties,t)!==void 0||e.allOf?.some(o=>sr(o,t,r,n,i))||Wr(e.anyOf)&&e.anyOf.every(o=>sr(o,t,r,new Set(n),i))||Wr(e.oneOf)&&e.oneOf.every(o=>sr(o,t,r,new Set(n),i))),sr=(e,t,r,n=new Set,i)=>{if(N.isRef(e)&&zo(e,t,r,n,i))return!0;const{schema:o,location:s,chain:a}=vo(e,r,i);if(!o)return!1;if(!n.has(o)&&(n.add(o),zo(o,t,r,n,s)))return!0;for(const c of a??[])if(!(!ee.isPlainObject(c.node)||n.has(c.node))&&(n.add(c.node),zo(c.node,t,r,n,c.location)))return!0;return!1};function Fi(e){return Array.isArray(e)?"array":e===null?"null":Number.isInteger(e)?"integer":typeof e}function Zi(e){const t=e?.security;return Array.isArray(t)&&t.length>0}function Qd(e,t,r){if(Zi(e))return!0;if(!Array.isArray(e?.traits))return!1;for(const n of e.traits){const i=N.isRef(n)?t(n,r).node:n;if(Zi(i))return!0}return!1}function eo(e,t,r){if(r&&e===null)return!0;switch(t){case"array":return Array.isArray(e);case"object":return ee.isPlainObject(e);case"null":return e===null;case"integer":return Number.isInteger(e);default:return typeof e===t}}function bo(e,t){return`${e} object should contain \`${t}\` field.`}function mP(e,t){return`${e} object should contain one of the fields: ${t.map(r=>`\`${r}\``).join(", ")}.`}function Wd(e,t){return`${e} object \`${t}\` must be non-empty string.`}function Nr({fieldName:e,value:t,ctx:r,reference:n}){ee.isPlainObject(t)&&(t[e]===void 0?r.report({message:bo(r.type.name,e),location:r.location.child([e]).key(),reference:n}):t[e]||r.report({message:Wd(r.type.name,e),location:r.location.child([e]).key(),reference:n}))}function hP({fieldNames:e,value:t,ctx:r,reference:n}){if(ee.isPlainObject(t)){e.some(i=>t.hasOwnProperty(i))||r.report({message:mP(r.type.name,e),location:r.location.key(),reference:n});for(const i of e)t.hasOwnProperty(i)&&!t[i]&&r.report({message:Wd(r.type.name,i),location:r.location.child([i]).key(),reference:n})}}function wo(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 i=fP(e,t[n]);i<4&&r.push({distance:i,variant:t[n]})}return r.sort((n,i)=>n.distance-i.distance),r.map(n=>n.variant)}function Jd(e){if(ee.isPlainObject(e)){if(Bt(e.dataValue))return{value:e.dataValue,field:"dataValue"};if(Bt(e.value))return{value:e.value,field:"value"}}}function en({example:e,schema:t,options:r,reference:n}){const{location:i,ctx:o,validator:s,allowAdditionalProperties:a,ajvContext:c}=r,{resolve:l,location:u,report:m,specVersion:y}=o;try{const{valid:h,errors:w}=s.validate(e,t,{schemaLoc:u.child("schema"),instancePath:i.pointer,resolve:l,allowAdditionalProperties:a,ajvContext:c,specVersion:y});if(!h)for(const b of w)m({message:`Example value must conform to the schema: ${b.message}.`,location:{...new N.Location(i.source,b.instancePath),reportOnKey:b.keyword==="unevaluatedProperties"||b.keyword==="additionalProperties"},from:u,suggest:b.suggest,reference:n})}catch(h){if(h.message==="discriminator: requires oneOf or anyOf composite keyword")return;m({message:`Example validation errored: ${h.message}.`,location:u.child("schema"),from:u,reference:n})}}const yP=10;function Bp(e,t,r,n,{report:i,location:o},s){if(e&&!e.includes(t)){const a=e.length>yP?`\`${r}\` "${t}" is not a valid value.${s?` See the supported values: ${s}.`:""}`:`\`${r}\` can be one of the following only: ${e.map(c=>`"${c}"`).join(", ")}.`;i({location:o,message:a,from:n,suggest:wo(t,e)})}}function to({responseCodes:e,codeRange:t,report:r,reference:n}){const i=new RegExp(`^${t[0]}[0-9Xx]{2}$`);e.some(s=>t==="2XX"&&s==="default"||i.test(s))||r({message:`Operation must have at least one \`${t}\` response.`,location:{reportOnKey:!0},reference:n})}function Ds(e,t){return t?e.name.toLowerCase():e.name}const dn=()=>({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(i=>!eo(i,e.type,e.nullable));for(const i of n)t({message:`All values of \`enum\` field must be of the same type as the \`type\` field: expected "${e.type}" but received "${Fi(i)}".`,location:r.child(["enum",e.enum.indexOf(i)]),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 i of e.enum){n[i]=[];for(const o of e.type)eo(i,o,e.nullable)||n[i].push(o);n[i].length!==e.type.length&&delete n[i]}for(const i of Object.keys(n))t({message:`Enum value \`${i}\` must be of allowed types: \`${e.type}\`.`,location:r.child(["enum",e.enum.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}}}}),So=()=>({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"})}}),fn=()=>{const e=[],t=new Set,r=(n,i,o)=>{if(Wr(n.required))for(const[s,a]of n.required.entries())sr(n,a,o,new Set,i)||o.report({message:`Required property '${a}' is not defined.`,location:i.child(["required",s]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})};return{ref:{leave(n,i,o){if(i.type.name!=="Schema")return;const s=[{node:n,location:i.location},...o.chain??[]];for(const{node:a,location:c}of s)!ee.isPlainObject(a)||t.has(a)||(t.add(a),r(a,c,i))}},Schema:{leave(n){e.pop()},enter(n,i){if(e.push(n),!Wr(n.required))return;const o=(c,l)=>{const u=m=>vo(m,i).schema===l;return!!(c.allOf?.some(u)||c.anyOf?.some(u)||c.oneOf?.some(u))},s=(c,l)=>{if(c<0)return;const u=e[c];return o(u,l)?s(c-1,u)??u:void 0},a=s(e.length-2,n);for(const[c,l]of n.required.entries())!sr(n,l,i)&&!sr(a,l,i)&&i.report({message:`Required property '${l}' is not defined.`,location:i.location.child(["required",c]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})}}}},mn=()=>({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"})}}),Vt=()=>({ref:{leave(e,{report:t,location:r},n){n.node===void 0&&wr(n,t,r)}},DiscriminatorMapping(e,{report:t,resolve:r,location:n}){for(const i of Object.keys(e)){const o=r({$ref:e[i]});if(o.node!==void 0)return;wr(o,t,n.child(i))}}});function wr(e,t,r){const n=e.error;n instanceof N.YamlParseError&&t({message:"Failed to parse: "+n.message,location:{source:n.source,pointer:void 0,start:{col:n.col,line:n.line}}});const i=e.error?.message;t({location:r,message:`Can't resolve $ref${i?": "+i:""}`,reference:"https://redocly.com/docs/cli/rules/oas/no-unresolved-refs"})}const hn=()=>({any(e,{report:t,location:r}){typeof e.description=="string"&&(/<script\b/i.test(e.description)&&t({message:"Markdown descriptions must not contain '<script>' tags.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}),/<[a-z][^>]*\bon[a-z]+\s*=/i.test(e.description)&&t({message:"Markdown descriptions must not contain HTML event handler attributes.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}),/(?:\]\(\s*|\b(?:href|src)\s*=\s*["']?\s*)javascript:/i.test(e.description)&&t({message:"Markdown descriptions must not contain 'javascript:' URLs.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}))}}),Kt=()=>({any(e,{report:t,type:r,location:n,rawLocation:i,key:o,resolve:s,ignoreNextVisitorsOnNode:a}){const c=Fi(e),l=i!==n?i:void 0;if(r.items){c!=="array"&&(t({message:`Expected type \`${r.name}\` (array) but got \`${c}\``,from:l}),a());return}else if(c!=="object"){r!==N.SpecExtension&&t({message:`Expected type \`${r.name}\` (object) but got \`${c}\``,from:l}),a();return}const u=typeof r.required=="function"?r.required(e,o):r.required;for(const h of u||[])e.hasOwnProperty(h)||t({message:`The field \`${h}\` must be present on this level.`,from:l,location:[{reportOnKey:!0}]});const m=r.allowed?.(e);if(m&&ee.isPlainObject(e))for(const h in e)m.includes(h)||r.extensionsPrefix&&h.startsWith(r.extensionsPrefix)||!Object.keys(r.properties).includes(h)||t({message:`The field \`${h}\` is not allowed here.`,from:l,location:n.child([h]).key()});const y=r.requiredOneOf||null;if(y){let h=!1;for(const w of y||[])e.hasOwnProperty(w)&&(h=!0);h||t({message:`Must contain at least one of the following fields: ${r.requiredOneOf?.join(", ")}.`,from:l,location:[{reportOnKey:!0}]})}for(const h of Object.keys(e)){const w=n.child([h]);let b=e[h],E=N.getOwn(r.properties,h);if(E===void 0&&(E=r.additionalProperties),typeof E=="function"&&(E=E(b,h)),N.isNamedType(E))continue;const P=E,I=Fi(b);if(P===void 0){if(h.startsWith("x-"))continue;t({message:`Property \`${h}\` is not expected here.`,suggest:wo(h,Object.keys(r.properties)),from:l,location:w.key()});continue}if(P!==null){if(P.resolvable!==!1&&N.isRef(b)&&(b=s(b).node),P.items&&P.items?.enum&&Array.isArray(b))for(let v=0;v<b.length;v++)Bp(P.items?.enum,b[v],h,l,{report:t,location:n.child([h,v])},P.items?.documentationLink);if(P.enum)Bp(P.enum,b,h,l,{report:t,location:n.child([h])},P.documentationLink);else if(P.type&&!eo(b,P.type,!1))t({message:`Expected type \`${P.type}\` but got \`${I}\`.`,from:l,location:w}),a();else if(I==="array"&&P.items?.type){const v=P.items?.type;for(let x=0;x<b.length;x++){const g=b[x];eo(g,v,!1)||t({message:`Expected type \`${v}\` but got \`${Fi(g)}\`.`,from:l,location:w.child([x])})}}typeof P.minimum=="number"&&P.minimum>e[h]&&t({message:`The value of the ${h} field must be greater than or equal to ${P.minimum}`,from:l,location:n.child([h])})}}}}),gP=()=>({CriterionObject:{enter(e,{report:t,location:r}){e.type&&(e.type==="xpath"||ee.isPlainObject(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"})}}}),vP=()=>{function e(t,{report:r,location:n}){if(Array.isArray(t))for(const i of t){const o=N.getOwn(i,"scheme"),s=N.getOwn(i,"schemeName");o&&s&&r({message:"`x-security` item must not contain both `scheme` and `schemeName`.",location:n.child(["x-security",t.indexOf(i)]),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)}}}},bP=()=>({Step:{enter(e,{report:t,location:r}){if(!e?.["x-operation"])return;const i=e?.["x-security"];if(i)for(const o of i)"schemeName"in o&&t({message:"The `schemeName` can be only used in Step with OpenAPI operation, please use `scheme` instead.",location:r.child(["x-security",i.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/respect/no-x-security-scheme-name-without-openapi"})}}}),wP=()=>{let e=0;return{SourceDescriptions:{enter(t){e=Array.isArray(t)?t.length:0}},Workflow:{leave(t,{report:r,location:n}){const i=t?.["x-security"];if(!(!i||e<=1)){for(const o of i)if("schemeName"in o){const s=o.schemeName;typeof s=="string"&&s.startsWith("$sourceDescriptions.")||r({message:"When multiple `sourceDescriptions` exist, `workflow.x-security.schemeName` must be a reference to a source description (e.g. `$sourceDescriptions.{name}.{schemeName}`)",location:n.child(["x-security",i.indexOf(o),"schemeName"]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-name-reference"})}}}}}},SP={apiKey:["apiKey"],basic:["username","password"],digest:["username","password"],bearer:["token"],oauth2:["accessToken"],openIdConnect:["accessToken"],mutualTLS:[]};function zp(e,{report:t,location:r}){if(e)for(const n of e){if("schemeName"in n)continue;const{scheme:i,values:o}=n,s=i?.type==="http"?i.scheme:i?.type;if(s==="mutualTLS"){Re.warn("Please use CLI option to provide mutualTLS certificates for mutualTls authentication security schema.");continue}const a=SP[s];if(a)for(const c of a)(!o||!(c in o))&&t({message:`The \`${c}\` is required when using the ${s} authentication security schema.`,location:r.child(["x-security",e.indexOf(n)]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-required-values"});else t({message:`The \`${s}\` authentication security schema is not supported.`,location:r.child(["x-security",e.indexOf(n)]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-required-values"})}}const EP=()=>({Step:{enter(e,t){zp(e?.["x-security"],t)}},Workflow:{enter(e,t){zp(e?.["x-security"],t)}}}),xP=()=>({FailureActionObject:{enter(e,{report:t,location:r}){const n=e?.criteria;if(!Array.isArray(n))return;const i=new Set;for(const o of n){const s=JSON.stringify(o);i.has(s)?t({message:"The FailureAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):i.add(s)}}},SuccessActionObject:{enter(e,{report:t,location:r}){const n=e?.criteria;if(!Array.isArray(n))return;const i=new Set;for(const o of n){const s=JSON.stringify(o);i.has(s)?t({message:"The SuccessAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):i.add(s)}}},Step:{enter(e,{report:t,location:r}){const n=e?.successCriteria;if(!Array.isArray(n))return;const i=new Set;for(const o of n){const s=JSON.stringify(o);i.has(s)?t({message:"The Step SuccessCriteria items must be unique.",location:r.child(["successCriteria",n.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):i.add(s)}}}}),TP=()=>{const e=new Map,t=new Map,r=[];function n({value:s,report:a,location:c,path:l,definedWorkflowOutputs:u}){const m=/\$workflows\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g;let y;for(;(y=m.exec(s))!==null;){const[h,w,b]=y,E=u.get(w);E?E.includes(b)||a({message:`Output key "${b}" is not defined in workflow "${w}". Available outputs: [ ${E.join(", ")} ].`,location:c.child(l)}):a({message:`Workflow "${w}" referenced in runtime expression "${h}" is not defined or has no outputs.`,location:c.child(l)})}}function i({value:s,report:a,location:c,path:l,definedStepOutputs:u}){const m=/\$steps\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g;let y;for(;(y=m.exec(s))!==null;){const[h,w,b]=y,E=u.get(w);E?E.includes(b)||a({message:`Output key "${b}" is not defined in step "${w}". Available outputs: [ ${E.join(", ")} ].`,location:c.child(l)}):a({message:`Step "${w}" referenced in runtime expression "${h}" is not defined or has no outputs.`,location:c.child(l)})}}function o(s,a,c=[]){if(typeof s=="string")n({value:s,report:a.report,location:a.location,path:c,definedWorkflowOutputs:e}),i({value:s,report:a.report,location:a.location,path:c,definedStepOutputs:t});else if(ee.isPlainObject(s)||Array.isArray(s))for(const[l,u]of Object.entries(s))o(u,a,[...c,l])}return{Step:{enter(s,{report:a,location:c}){s.outputs&&t.set(s.stepId,Object.keys(s.outputs))}},Workflow:{enter(s,{report:a,location:c}){s.outputs&&e.set(s.workflowId,Object.keys(s.outputs))}},Parameters:{enter(s,a){r.push(()=>{o(s,a)})}},RequestBody:{enter(s,a){r.push(()=>{o(s,a)})}},CriterionObject:{enter(s,a){r.push(()=>{o(s.condition,a)})}},Outputs:{enter(s,a){r.push(()=>{o(s,a)})}},ExtendedSecurity:{enter(s,a){r.push(()=>{o(s,a)})}},ExtendedOperation:{enter(s,a){r.push(()=>{o(s,a)})}},Root:{leave(){for(const s of r)s()}}}},PP=()=>({Parameters:{enter(e,{report:t,location:r}){if(!e)return;const n=new Set;for(const i of e)n.has(i?.name)&&t({message:"The parameter `name` must be unique amongst listed parameters.",location:r.child([e.indexOf(i)])}),n.has(i?.reference)&&t({message:"The parameter `reference` must be unique amongst listed parameters.",location:r.child([e.indexOf(i)])}),n.add(i?.name??i?.reference)}}}),OP=()=>{const e=new Set;return{Step:{leave(){e.clear()},RequestBody:{enter(t,{report:r,location:n}){if(t.replacements)for(const i of t.replacements)e.has(i.target)&&r({message:"Every `replacement` in `requestBody` must be unique.",location:n.child(["replacements",t.replacements.indexOf(i),"target"]),reference:"https://redocly.com/docs/cli/rules/arazzo/requestbody-replacements-unique"}),e.add(i.target)}}}}},IP=()=>{const e=new Set;return{SourceDescriptions:{enter(t,{report:r,location:n}){if(t.length)for(const i of t)e.has(i.name)&&r({message:"The `name` must be unique amongst all SourceDescriptions.",location:n.child([t.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/sourcedescription-name-unique"}),e.add(i.name)}}}},_P=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){e?.length||t({message:"The `sourceDescriptions` list must have at least one entry.",location:r})}}}),AP=["x-operation","operationId","operationPath","channelPath","workflowId"],RP=()=>({Step:{enter(e,{report:t,location:r}){const n=AP.filter(i=>Object.hasOwn(e,i));n.length>1&&t({message:`A step can only use one of the following mutually exclusive fields: ${n.map(i=>`\`${i}\``).join(", ")}.`,location:n.map(i=>r.child([i]).key()),reference:"https://redocly.com/docs/cli/rules/arazzo/spec-step-mutually-exclusive-fields"})}}}),$P=()=>({OnFailureActionList:{enter(e,{report:t,location:r}){if(!e)return;const n=new Set;for(const i of e)n.has(i?.name)&&t({message:"The action `name` must be unique amongst listed `onFailure` actions.",location:r.child([e.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onfailure-unique"}),n.has(i?.reference)&&t({message:"The action `reference` must be unique amongst listed `onFailure` actions.",location:r.child([e.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onfailure-unique"}),n.add(i.name??i.reference)}}}),NP=()=>({OnSuccessActionList:{enter(e,{report:t,location:r}){if(!e)return;const n=new Set;for(const i of e)n.has(i?.name)&&t({message:"The action `name` must be unique amongst listed `onSuccess` actions.",location:r.child([e.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onsuccess-unique"}),n.has(i?.reference)&&t({message:"The action `reference` must be unique amongst listed `onSuccess` actions.",location:r.child([e.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onsuccess-unique"}),n.add(i?.name??i?.reference)}}}),kP=()=>({Workflow:{enter(e,{report:t,location:r}){if(!e.steps)return;const n=new Set;for(const i of e.steps){if(!i.stepId)return;n.has(i.stepId)&&t({message:"The `stepId` must be unique amongst all steps described in the workflow.",location:r.child(["steps",e.steps.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/stepid-unique"}),n.add(i.stepId)}}}}),DP=()=>{const e=new Set,t=new Set,r=new Set;return{SourceDescriptions:{enter(n){for(const i of n)t.add(i.name)}},Workflows:{enter(n){for(const i of n)r.add(i.workflowId)}},Workflow:{leave(n,{report:i,location:o}){if(n.dependsOn)for(const s of n.dependsOn){if(s.startsWith("$sourceDescriptions.")){const a=s.split(".")[1];t.has(a)||i({message:`SourceDescription ${a} must be defined in sourceDescriptions.`,location:o.child(["dependsOn",n.dependsOn.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"})}!s.startsWith("$sourceDescriptions")&&!r.has(s)&&i({message:`Workflow ${s} must be defined in workflows.`,location:o.child(["dependsOn",n.dependsOn.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),e.has(s)&&i({message:"Every workflow in dependsOn must be unique.",location:o.child(["dependsOn"]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),e.add(s)}}}}},qP=()=>{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))}}}},CP={assertions:Jt,"criteria-unique":xP,"no-criteria-xpath":gP,"no-duplicated-enum-values":un,"no-unsafe-markdown":hn,"no-enum-type-mismatch":dn,"no-mixed-number-range-constraints":So,"no-required-schema-properties-undefined":fn,"no-schema-type-mismatch":mn,"no-unresolved-refs":Vt,"no-x-security-both-scheme-and-scheme-name":vP,"no-x-security-scheme-name-without-openapi":bP,"outputs-defined":TP,"parameters-unique":PP,"requestBody-replacements-unique":OP,"sourceDescription-name-unique":IP,"sourceDescription-type":nP,"sourceDescriptions-not-empty":_P,"spec-step-mutually-exclusive-fields":RP,"step-onFailure-unique":$P,"step-onSuccess-unique":NP,"stepId-unique":kP,struct:Kt,"workflow-dependsOn":DP,"workflowId-unique":qP,"x-security-scheme-name-reference":wP,"x-security-scheme-required-values":EP},jP={},kr=()=>({Info(e,{report:t,location:r}){e.contact||t({message:bo("Info","contact"),location:r.child("contact").key(),reference:"https://redocly.com/docs/cli/rules/oas/info-contact"})}}),MP=/^1\.0\.\d+(-.+)?$/;function Sa(e){return e.startsWith("oas3")?"oas3":e==="oas2"?"oas2":e==="async2"?"async2":e==="async3"?"async3":e==="arazzo1"||e==="arazzo1_1"?"arazzo1":e==="overlay1"?"overlay1":e==="openrpc1"?"openrpc1":e==="graphql"?"graphql":"oas3"}function Dr(e){if(!ee.isPlainObject(e))throw new Error(`Document must be JSON object, got ${typeof e}`);if(typeof e.openrpc=="string"&&e.openrpc.startsWith("1."))return"openrpc1";if(e.openapi&&typeof e.openapi!="string")throw new Error(`Invalid OpenAPI version: should be a string but got "${typeof e.openapi}"`);if(typeof e.openapi=="string"&&e.openapi.startsWith("3.0."))return"oas3_0";if(typeof e.openapi=="string"&&e.openapi.startsWith("3.1."))return"oas3_1";if(typeof e.openapi=="string"&&e.openapi.startsWith("3.2."))return"oas3_2";if(e.swagger&&e.swagger==="2.0")return"oas2";if(e.openapi||e.swagger)throw new Error(`Unsupported OpenAPI version: ${e.openapi||e.swagger}`);if(typeof e.asyncapi=="string"&&e.asyncapi.startsWith("2."))return"async2";if(typeof e.asyncapi=="string"&&e.asyncapi.startsWith("3."))return"async3";if(e.asyncapi)throw new Error(`Unsupported AsyncAPI version: ${e.asyncapi}`);if(typeof e.arazzo=="string"&&e.arazzo.startsWith("1.0."))return"arazzo1";if(typeof e.arazzo=="string"&&e.arazzo.startsWith("1.1."))return"arazzo1_1";if(e.arazzo)throw new Error(`Unsupported Arazzo version: ${e.arazzo}`);if(typeof e.overlay=="string"&&MP.test(e.overlay))return"overlay1";throw new Error("Unsupported specification")}const Eo=()=>{let e;return{Root:{enter(t){e=Dr(t)},License:{leave(t,r){e==="oas3_1"||e==="oas3_2"?hP({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"})}}}}},xo=({ignoreCase:e=!1})=>{const t=new Set;return{Tag:{leave(r,n){const i=Ds(r,e);t.has(i)?n.report({message:`Duplicate tag name found: '${r.name}'.`,location:n.location}):t.add(i)}}}},To=()=>({Root:{PathItem:{Operation(e,t){Nr({fieldName:"operationId",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId"})}}}});function LP(e,t,r){if("flows"in e&&e.flows){const{node:n,location:i}=N.isRef(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},o=(i??r).source.absoluteRef,s=Object.values(n??{}).flatMap(a=>{const c=N.isRef(a)?t(a,o).node:a;return Object.keys(c?.scopes||{})});return[...new Set(s)]}return Object.keys(e.scopes||{})}const Ea=e=>{const t=new Map,r=[];return{Root:{leave(n,{report:i}){for(const{schemeName:o,scopes:s,location:a}of r){const c=t.get(o);if(c?.type==="oauth2"){if(e.requireScopes&&s.length===0){i({message:`The "${o}" security requirement must list at least one scope.`,location:a.key(),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"});continue}for(let l=0;l<s.length;l++){const u=s[l];c.definedScopes.includes(u)||i({message:`The "${u}" scope is not defined in the "${o}" security scheme.`,location:a.child([l]),suggest:wo(u,c.definedScopes),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}},SecurityScheme(n,{key:i,resolve:o,location:s}){t.set(i.toString(),{type:n.type,definedScopes:n.type==="oauth2"?LP(n,o,s):[]})},SecurityRequirement(n,{location:i}){for(const[o,s]of Object.entries(n))r.push({schemeName:o,scopes:s||[],location:i.child([o])})}}},Po=()=>({ref:{leave(e,{report:t,location:r,type:n}){if(n.name!=="PathItem")for(const i of Object.keys(e))i!=="$ref"&&t({message:`Property \`${i}\` is not expected here because it is defined alongside \`$ref\`.`,location:r.child(i).key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-ref-siblings"})}}}),Oo=()=>({Tag(e,t){Nr({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/tag-description"})}}),Io=({ignoreCase:e=!1})=>({Root(t,{report:r,location:n}){if(t.tags)for(let i=0;i<t.tags.length-1;i++)Ds(t.tags[i],e)>Ds(t.tags[i+1],e)&&r({message:"The `tags` array should be in alphabetical order.",location:n.child(["tags",i]),reference:"https://redocly.com/docs/cli/rules/oas/tags-alphabetical"})}}),UP=()=>({Channel(e,{report:t,key:r}){r.split(/[/.:]/).filter(i=>i!=="").every(i=>/^{.+}$/.test(i)||/^[a-z0-9-.]+$/.test(i))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/async/channels-kebab-case"})}}),FP=()=>({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"})}}),Vp="https://redocly.com/docs/cli/rules/async/security-defined",BP=()=>{const e=new Map,t=new Map,r=[];let n,i=!1;return{Root:{leave(o,{report:s}){for(const[c,l]of e.entries())if(!l.defined)for(const u of l.from)s({message:`There is no \`${c}\` security scheme defined.`,location:u.key(),reference:Vp});const a=[...t.keys()];for(const{location:c,channelServers:l}of r){const u=l??a;u.length>0&&u.every(y=>t.get(y))||s({message:"Every operation should have security defined on it.",location:c.key(),reference:Vp})}}},SecurityScheme(o,{key:s}){o!=null&&e.set(s.toString(),{defined:!0,from:[]})},SecurityRequirement(o,{location:s}){for(const a of Object.keys(o)){const c=e.get(a),l=s.child([a]);c?c.from.push(l):e.set(a,{from:[l]})}},Components:{enter(){i=!0},leave(){i=!1}},Server(o,{key:s}){i||t.set(s.toString(),Zi(o))},Channel:{skip(){return i},enter(o){n=Array.isArray(o?.servers)&&o.servers.length>0?o.servers:void 0},Operation(o,{location:s,resolve:a}){Qd(o,a)||r.push({location:s,channelServers:n})}}}},zP={struct:Kt,"no-unresolved-refs":Vt,assertions:Jt,"info-contact":kr,"info-license-strict":Eo,"operation-operationId":To,"security-defined":BP,"channels-kebab-case":UP,"no-channel-trailing-slash":FP,"tag-description":Oo,"tags-alphabetical":Io,"no-duplicated-enum-values":un,"no-unsafe-markdown":hn,"no-duplicated-tag-names":xo,"no-required-schema-properties-undefined":fn,"no-enum-type-mismatch":dn,"no-mixed-number-range-constraints":So,"no-schema-type-mismatch":mn,"security-scopes-defined":Ea,"spec-ref-siblings":Po},VP={},KP=()=>({Channel(e,{report:t}){(e.address||"").split(/[/.:]/).filter(n=>n!=="").every(n=>/^{.+}$/.test(n)||/^[a-z0-9-.]+$/.test(n))||t({message:`\`${e.address}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/async/channels-kebab-case"})}}),HP=()=>({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"})}}),Kp="#/components/securitySchemes/",GP="#/components/",Vo="https://redocly.com/docs/cli/rules/async/security-defined";function YP(e){const t=e.indexOf("#");return t===-1?e:e.slice(t)}function QP(e){if(!e.startsWith(Kp))return!1;const t=e.slice(Kp.length);return t!==""&&!t.includes("/")}const WP=()=>{const e=[];let t,r,n,i,o;const s=(a,c,l)=>{const u=a.channel,m=N.isRef(u)?c(u,l):void 0,h=(N.isRef(u)?m?.node:u)?.servers;let w,b;return h&&h.length>0?(w=h,b=m?.location?.source.absoluteRef??l):(w=t?Object.values(t):[],b=r),w.length===0?!1:w.every(E=>{const P=N.isRef(E)?c(E,b).node:E;return Zi(P)})};return{Root:{enter(a,{location:c,resolve:l}){const u=a?.servers;if(N.isRef(u)){const y=l(u);t=y.node??void 0,r=y.location?.source.absoluteRef}else t=u,r=void 0;const m=a?.operations;if(N.isRef(m)){const y=l(m);n=y.node??void 0,i=y.location?.source.absoluteRef,o=y.location}else n=m,i=void 0,o=c.child(["operations"])},leave(a,{report:c,resolve:l}){for(const u of e){if((u.local||u.refPointer.startsWith(GP))&&!QP(u.refPointer)){c({message:"Security scheme `$ref` must point to `#/components/securitySchemes`.",location:u.location.key(),reference:Vo});continue}u.resolved||c({message:`There is no \`${u.name}\` security scheme defined.`,location:u.location.key(),reference:Vo})}if(n&&o){const u=o;for(const[m,y]of Object.entries(n)){let h,w;if(N.isRef(y)){const b=l(y,i);h=b.node,w=b.location?.source.absoluteRef}else h=y,w=i;h&&(Qd(h,l,w)||s(h,l,w)||c({message:"Every operation should have security defined on it.",location:u.child([m]).key(),reference:Vo}))}}}},SecuritySchemeList:{enter(a,{location:c,resolve:l}){if(a)for(let u=0;u<a.length;u++){const m=a[u];if(!N.isRef(m))continue;const y=c.child([u]),h=l(m),w=YP(m.$ref),b=w.split("/").pop()??m.$ref;e.push({location:y,name:b,refPointer:w,resolved:h.node!=null,local:m.$ref.startsWith("#")})}}}}};function JP(e,t,r){if(!e.flows)return[];const{node:n,location:i}=N.isRef(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},o=(i??r).source.absoluteRef,s=Object.values(n??{}).flatMap(a=>{const c=N.isRef(a)?t(a,o).node:a;return Object.keys(c?.availableScopes||{})});return[...new Set(s)]}const XP=e=>{const t=new Map;return{SecuritySchemeList(r,{resolve:n,location:i}){for(let o=0;o<r.length;o++){const s=r[o],a=N.isRef(s)?n(s):{node:s,location:i.child([o])};!a.node||!a.location||t.set(a.location.absolutePointer,{scheme:a.node,location:a.location,availableScopes:a.node.type==="oauth2"?JP(a.node,n,a.location):[]})}},Root:{leave(r,{report:n}){for(const{scheme:i,location:o,availableScopes:s}of t.values()){if(i.type!=="oauth2")continue;if(e.requireScopes&&!i.scopes?.length){n({message:"The security scheme must list at least one scope.",location:o.key(),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"});continue}const a=i.scopes||[];for(let c=0;c<a.length;c++){const l=a[c];s.includes(l)||n({message:`The "${l}" scope is not defined in the available scopes of the security scheme flows.`,location:o.child(["scopes",c]),suggest:wo(l,s),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}}},ZP={struct:Kt,"no-unresolved-refs":Vt,assertions:Jt,"info-contact":kr,"info-license-strict":Eo,"operation-operationId":To,"security-defined":WP,"channels-kebab-case":KP,"no-channel-trailing-slash":HP,"tag-description":Oo,"tags-alphabetical":Io,"no-duplicated-enum-values":un,"no-unsafe-markdown":hn,"no-duplicated-tag-names":xo,"no-required-schema-properties-undefined":fn,"no-enum-type-mismatch":dn,"no-mixed-number-range-constraints":So,"no-schema-type-mismatch":mn,"security-scopes-defined":XP,"spec-ref-siblings":Po},eO={};function Xd(e){return Xs(cr).filter(t=>e.assertions[t]!==void 0).map(t=>({name:t,conditions:e.assertions[t],runsOnKeys:Rd.has(t),runsOnValues:$d.has(t)}))}const tO=e=>{const t=Object.values(e).filter(ee.isPlainObject),r=[];for(const n of t){if(n.severity==="off")continue;const i=n.subject?.type;if(!i)continue;if(!ee.isPlainObject(n.assertions))throw new Error(`${n.assertionId}: 'assertions' (Object) is required`);const o=Xd(n),s=rO(n);r.push({[i]:(a,c)=>{nO(a,c,s)&&iO(a,c,n,o)}})}return r};function rO(e){return Array.isArray(e.where)?e.where.map((t,r)=>{if(!et(t.subject?.type))throw new Error(`${e.assertionId} -> where -> [${r}]: 'type' (String) is required`);if(!ee.isPlainObject(t.assertions))throw new Error(`${e.assertionId} -> where -> [${r}]: 'assertions' (Object) is required`);return{kind:t.subject.type,definition:t,assertsToApply:Xd(t)}}):[]}function nO(e,t,r){let n=r;const i=r.at(-1);if(i&&i.kind===e.kind){if(!Hp(e,i,t))return!1;n=r.slice(0,-1)}let o=0;for(const s of n){let a=!1;for(;o<t.ancestors.length;){const c=t.ancestors[o++];if(c.kind===s.kind&&Hp(c,s,t)){a=!0;break}}if(!a)return!1}return!0}function Hp(e,t,r){const{value:n}=Zd(e,t.definition.subject.property),i=new N.Location(r.source,"#/");return t.assertsToApply.every(o=>cr[o.name](n,o.conditions,{baseLocation:i,rawValue:n}).length===0)}function iO(e,t,r,n){const i=ef(r.subject.property),{value:o,locNode:s}=Zd(e,r.subject.property),a=new N.Location(t.source,"#/"),c=n.flatMap(u=>cr[u.name](o,u.conditions,{baseLocation:a,rawValue:o}));if(!c.length)return;const l=`${Ne.blue(r.assertionId)} failed because the ${Ne.blue(r.subject.type)} ${Ne.blue(i??"")} didn't meet the assertions: {{problems}}`.replace(/ +/g," ");t.report({message:Yd(r.message??l,{problems:Hd(c),assertionName:r.assertionId,nodeType:r.subject.type,property:i??"",key:"",pointer:"",file:Gd(t.source.absoluteRef)}),node:s,suggest:r.suggest,ruleId:r.assertionId,severity:r.severity})}function Ko(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 Zd(e,t){const r=ef(t);if(r===void 0)return Ko(e);const n=e[r];if(Array.isArray(n))return{value:n.map(o=>Ko(o).value),locNode:e};const i=Ko(n);return{value:i.value,locNode:oO(i.locNode)?i.locNode:e}}function oO(e){return ee.isPlainObject(e)&&"kind"in e}function ef(e){return Array.isArray(e)?e[0]:e}const sO=["Query","Mutation","Subscription"];function aO(e){let t=e;for(;t.kind==="ListType"||t.kind==="NonNullType";)t=t.type;return t.name.value}const cO=()=>{const e=new Map,t=new Set,r=new Set;let n=!1;const i=u=>t.add(aO(u)),o=u=>e.set(u.name.value,u.name),s=u=>{for(const m of u.interfaces??[])i(m);for(const m of u.fields??[]){i(m.type);for(const y of m.arguments??[])i(y.type)}},a=u=>{for(const m of u.types??[])i(m)},c=u=>{for(const m of u.fields??[])i(m.type)},l=u=>{for(const m of u.operationTypes??[])r.add(m.type.name.value)};return{SchemaDefinition:u=>{n=!0,l(u)},SchemaExtension:l,DirectiveDefinition:u=>{for(const m of u.arguments??[])i(m.type)},ObjectTypeDefinition:u=>{o(u),s(u)},ObjectTypeExtension:s,InterfaceTypeDefinition:u=>{o(u),s(u)},InterfaceTypeExtension:s,UnionTypeDefinition:u=>{o(u),a(u)},UnionTypeExtension:a,InputObjectTypeDefinition:u=>{o(u),c(u)},InputObjectTypeExtension:c,EnumTypeDefinition:o,ScalarTypeDefinition:o,Document:{leave:(u,m)=>{if(!n)for(const y of sO)e.has(y)&&r.add(y);if(r.size!==0)for(const[y,h]of e)t.has(y)||r.has(y)||m.report({message:`Type \`${y}\` is declared but never used.`,node:h})}}}};function Le(e,t){if(!!!e)throw new Error(t)}function pr(e){return typeof e=="object"&&e!==null}function Et(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}const pO=/\r\n|[\n\r]/g;function ro(e,t){let r=0,n=1;for(const i of e.body.matchAll(pO)){if(typeof i.index=="number"||Et(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function lO(e){return tf(e.source,ro(e.source,e.start))}function tf(e,t){const r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=t.line===1?r:0,c=t.column+a,l=`${e.name}:${s}:${c}
19
+ `,u=n.split(/\r\n|[\n\r]/g),m=u[i];if(m.length>120){const y=Math.floor(c/80),h=c%80,w=[];for(let b=0;b<m.length;b+=80)w.push(m.slice(b,b+80));return l+Gp([[`${s} |`,w[0]],...w.slice(1,y+1).map(b=>["|",b]),["|","^".padStart(h)],["|",w[y+1]]])}return l+Gp([[`${s-1} |`,u[i-1]],[`${s} |`,m],["|","^".padStart(c)],[`${s+1} |`,u[i+1]]])}function Gp(e){const t=e.filter(([n,i])=>i!==void 0),r=Math.max(...t.map(([n])=>n.length));return t.map(([n,i])=>n.padStart(r)+(i?" "+i:"")).join(`
20
+ `)}function uO(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 ie extends Error{constructor(t,...r){var n,i,o;const{nodes:s,source:a,positions:c,path:l,originalError:u,extensions:m}=uO(r);super(t),this.name="GraphQLError",this.path=l??void 0,this.originalError=u??void 0,this.nodes=Yp(Array.isArray(s)?s:s?[s]:void 0);const y=Yp((n=this.nodes)===null||n===void 0?void 0:n.map(w=>w.loc).filter(w=>w!=null));this.source=a??(y==null||(i=y[0])===null||i===void 0?void 0:i.source),this.positions=c??y?.map(w=>w.start),this.locations=c&&a?c.map(w=>ro(a,w)):y?.map(w=>ro(w.source,w.start));const h=pr(u?.extensions)?u?.extensions:void 0;this.extensions=(o=m??h)!==null&&o!==void 0?o: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}}),u!=null&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,ie):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+=`
21
+
22
+ `+lO(r.loc));else if(this.source&&this.locations)for(const r of this.locations)t+=`
23
+
24
+ `+tf(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 Yp(e){return e===void 0||e.length===0?void 0:e}class dO{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 fO{constructor(t,r,n,i,o,s){this.kind=t,this.start=r,this.end=n,this.line=i,this.column=o,this.value=s,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 xa={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"]},mO=new Set(Object.keys(xa));function Qp(e){const t=e?.kind;return typeof t=="string"&&mO.has(t)}exports.OperationTypeNode=void 0;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(exports.OperationTypeNode||(exports.OperationTypeNode={}));exports.DirectiveLocation=void 0;(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"})(exports.DirectiveLocation||(exports.DirectiveLocation={}));exports.Kind=void 0;(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"})(exports.Kind||(exports.Kind={}));function qs(e){return e===9||e===32}function rf(e){return e>=48&&e<=57}function nf(e){return e>=97&&e<=122||e>=65&&e<=90}function of(e){return nf(e)||e===95}function sf(e){return nf(e)||rf(e)||e===95}function hO(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let s=0;s<e.length;++s){var o;const a=e[s],c=yO(a);c!==a.length&&(n=(o=n)!==null&&o!==void 0?o:s,i=s,s!==0&&c<r&&(r=c))}return e.map((s,a)=>a===0?s:s.slice(r)).slice((t=n)!==null&&t!==void 0?t:0,i+1)}function yO(e){let t=0;for(;t<e.length&&qs(e.charCodeAt(t));)++t;return t}function gO(e,t){const r=e.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),i=n.length===1,o=n.length>1&&n.slice(1).every(h=>h.length===0||qs(h.charCodeAt(0))),s=r.endsWith('\\"""'),a=e.endsWith('"')&&!s,c=e.endsWith("\\"),l=a||c,u=!i||e.length>70||l||o||s;let m="";const y=i&&qs(e.charCodeAt(0));return(u&&!y||o)&&(m+=`
25
+ `),m+=r,(u||l)&&(m+=`
26
+ `),'"""'+m+'"""'}const vO=10,af=2;function me(e){return _o(e,[])}function _o(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return bO(e,t);default:return String(e)}}function bO(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(wO(e)){const n=e.toJSON();if(n!==e)return typeof n=="string"?n:_o(n,r)}else if(Array.isArray(e))return EO(e,r);return SO(e,r)}function wO(e){return typeof e.toJSON=="function"}function SO(e,t){const r=Object.entries(e);return r.length===0?"{}":t.length>af?"["+xO(e)+"]":"{ "+r.map(([i,o])=>i+": "+_o(o,t)).join(", ")+" }"}function EO(e,t){if(e.length===0)return"[]";if(t.length>af)return"[Array]";const r=Math.min(vO,e.length),n=e.length-r,i=[];for(let o=0;o<r;++o)i.push(_o(e[o],t));return n===1?i.push("... 1 more item"):n>1&&i.push(`... ${n} more items`),"["+i.join(", ")+"]"}function xO(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 TO=globalThis.process&&process.env.NODE_ENV==="production",Pt=TO?function(t,r){return t instanceof r}:function(t,r){if(t instanceof r)return!0;if(typeof t=="object"&&t!==null){var n;const i=r.prototype[Symbol.toStringTag],o=Symbol.toStringTag in t?t[Symbol.toStringTag]:(n=t.constructor)===null||n===void 0?void 0:n.name;if(i===o){const s=me(t);throw new Error(`Cannot use ${i} "${s}" from another module or realm.
27
+
28
+ Ensure that there is only one instance of "graphql" in the node_modules
29
+ directory. If different versions of "graphql" are the dependencies of other
30
+ relied on modules, use "resolutions" to ensure only one version is installed.
31
+
32
+ https://yarnpkg.com/en/docs/selective-version-resolutions
33
+
34
+ Duplicate "graphql" modules cannot be used at the same time since different
35
+ versions may have different capabilities and behavior. The data from one
36
+ version used in the function from another could produce confusing and
37
+ spurious results.`)}}return!1},PO=5;function Qt(e,t){const[r,n]=t?[e,t]:[void 0,e];let i=" Did you mean ";r&&(i+=r+" ");const o=n.map(c=>`"${c}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}const s=o.slice(0,PO),a=s.pop();return i+s.join(", ")+", or "+a+"?"}function Wp(e){return e}function lr(e,t){const r=Object.create(null);for(const n of e)r[t(n)]=n;return r}function Ta(e,t,r){const n=Object.create(null);for(const i of e)n[t(i)]=r(i);return n}function _t(e,t){const r=Object.create(null);for(const n of Object.keys(e))r[n]=t(e[n],n);return r}function Pa(e,t){let r=0,n=0;for(;r<e.length&&n<t.length;){let i=e.charCodeAt(r),o=t.charCodeAt(n);if(Pi(i)&&Pi(o)){let s=0;do++r,s=s*10+i-Cs,i=e.charCodeAt(r);while(Pi(i)&&s>0);let a=0;do++n,a=a*10+o-Cs,o=t.charCodeAt(n);while(Pi(o)&&a>0);if(s<a)return-1;if(s>a)return 1}else{if(i<o)return-1;if(i>o)return 1;++r,++n}}return e.length-t.length}const Cs=48,OO=57;function Pi(e){return!isNaN(e)&&Cs<=e&&e<=OO}function fr(e,t){const r=Object.create(null),n=new IO(e),i=Math.floor(e.length*.4)+1;for(const o of t){const s=n.measure(o,i);s!==void 0&&(r[o]=s)}return Object.keys(r).sort((o,s)=>{const a=r[o]-r[s];return a!==0?a:Pa(o,s)})}class IO{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=Jp(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 i=Jp(n),o=this._inputArray;if(i.length<o.length){const u=i;i=o,o=u}const s=i.length,a=o.length;if(s-a>r)return;const c=this._rows;for(let u=0;u<=a;u++)c[0][u]=u;for(let u=1;u<=s;u++){const m=c[(u-1)%3],y=c[u%3];let h=y[0]=u;for(let w=1;w<=a;w++){const b=i[u-1]===o[w-1]?0:1;let E=Math.min(m[w]+1,y[w-1]+1,m[w-1]+b);if(u>1&&w>1&&i[u-1]===o[w-2]&&i[u-2]===o[w-1]){const P=c[(u-2)%3][w-2];E=Math.min(E,P+1)}E<h&&(h=E),y[w]=E}if(h>r)return}const l=c[s%3][a];return l<=r?l:void 0}}function Jp(e){const t=e.length,r=new Array(t);for(let n=0;n<t;++n)r[n]=e.charCodeAt(n);return r}function mt(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 _O(e){return`"${e.replace(AO,RO)}"`}const AO=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function RO(e){return $O[e.charCodeAt(0)]}const $O=["\\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"],Vr=Object.freeze({});function Oa(e,t,r=xa){const n=new Map;for(const P of Object.values(exports.Kind))n.set(P,pf(t,P));let i,o=Array.isArray(e),s=[e],a=-1,c=[],l=e,u,m;const y=[],h=[];do{a++;const P=a===s.length,I=P&&c.length!==0;if(P){if(u=h.length===0?void 0:y[y.length-1],l=m,m=h.pop(),I)if(o){l=l.slice();let x=0;for(const[g,S]of c){const O=g-x;S===null?(l.splice(O,1),x++):l[O]=S}}else{l={...l};for(const[x,g]of c)l[x]=g}a=i.index,s=i.keys,c=i.edits,o=i.inArray,i=i.prev}else if(m){if(u=o?a:s[a],l=m[u],l==null)continue;y.push(u)}let v;if(!Array.isArray(l)){var w,b;Qp(l)||Le(!1,`Invalid AST Node: ${me(l)}.`);const x=P?(w=n.get(l.kind))===null||w===void 0?void 0:w.leave:(b=n.get(l.kind))===null||b===void 0?void 0:b.enter;if(v=x?.call(t,l,u,m,y,h),v===Vr)break;if(v===!1){if(!P){y.pop();continue}}else if(v!==void 0&&(c.push([u,v]),!P))if(Qp(v))l=v;else{y.pop();continue}}if(v===void 0&&I&&c.push([u,l]),P)y.pop();else{var E;i={inArray:o,index:a,keys:s,edits:c,prev:i},o=Array.isArray(l),s=o?l:(E=r[l.kind])!==null&&E!==void 0?E:[],a=-1,c=[],m&&h.push(m),m=l}}while(i!==void 0);return c.length!==0?c[c.length-1][1]:e}function cf(e){const t=new Array(e.length).fill(null),r=Object.create(null);for(const n of Object.values(exports.Kind)){let i=!1;const o=new Array(e.length).fill(void 0),s=new Array(e.length).fill(void 0);for(let c=0;c<e.length;++c){const{enter:l,leave:u}=pf(e[c],n);i||(i=l!=null||u!=null),o[c]=l,s[c]=u}if(!i)continue;const a={enter(...c){const l=c[0];for(let m=0;m<e.length;m++)if(t[m]===null){var u;const y=(u=o[m])===null||u===void 0?void 0:u.apply(e[m],c);if(y===!1)t[m]=l;else if(y===Vr)t[m]=Vr;else if(y!==void 0)return y}},leave(...c){const l=c[0];for(let m=0;m<e.length;m++)if(t[m]===null){var u;const y=(u=s[m])===null||u===void 0?void 0:u.apply(e[m],c);if(y===Vr)t[m]=Vr;else if(y!==void 0&&y!==!1)return y}else t[m]===l&&(t[m]=null)}};r[n]=a}return r}function pf(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 Je(e){return Oa(e,kO)}const NO=80,kO={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>he(e.definitions,`
38
+
39
+ `)},OperationDefinition:{leave(e){const t=Ho(e.variableDefinitions)?Ie(`(
40
+ `,he(e.variableDefinitions,`
41
+ `),`
42
+ )`):Ie("(",he(e.variableDefinitions,", "),")"),r=Ie("",e.description,`
43
+ `)+he([e.operation,he([e.name,t]),he(e.directives," ")]," ");return(r==="query"?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n,description:i})=>Ie("",i,`
44
+ `)+e+": "+t+Ie(" = ",r)+Ie(" ",he(n," "))},SelectionSet:{leave:({selections:e})=>vt(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){const o=Ie("",e,": ")+t;let s=o+Ie("(",he(r,", "),")");return s.length>NO&&(s=o+Ie(`(
45
+ `,Bi(he(r,`
46
+ `)),`
47
+ )`)),he([s,he(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Ie(" ",he(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>he(["...",Ie("on ",e),he(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i,description:o})=>Ie("",o,`
48
+ `)+`fragment ${e}${Ie("(",he(r,", "),")")} on ${t} ${Ie("",he(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?gO(e):_O(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+he(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+he(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Ie("(",he(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>Ie("",e,`
49
+ `)+he(["schema",he(t," "),vt(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>Ie("",e,`
50
+ `)+he(["scalar",t,he(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>Ie("",e,`
51
+ `)+he(["type",t,Ie("implements ",he(r," & ")),he(n," "),vt(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>Ie("",e,`
52
+ `)+t+(Ho(r)?Ie(`(
53
+ `,Bi(he(r,`
54
+ `)),`
55
+ )`):Ie("(",he(r,", "),")"))+": "+n+Ie(" ",he(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>Ie("",e,`
56
+ `)+he([t+": "+r,Ie("= ",n),he(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>Ie("",e,`
57
+ `)+he(["interface",t,Ie("implements ",he(r," & ")),he(n," "),vt(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>Ie("",e,`
58
+ `)+he(["union",t,he(r," "),Ie("= ",he(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>Ie("",e,`
59
+ `)+he(["enum",t,he(r," "),vt(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>Ie("",e,`
60
+ `)+he([t,he(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>Ie("",e,`
61
+ `)+he(["input",t,he(r," "),vt(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,directives:n,repeatable:i,locations:o})=>Ie("",e,`
62
+ `)+"directive @"+t+(Ho(r)?Ie(`(
63
+ `,Bi(he(r,`
64
+ `)),`
65
+ )`):Ie("(",he(r,", "),")"))+Ie(" ",he(n," "))+(i?" repeatable":"")+" on "+he(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>he(["extend schema",he(e," "),vt(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>he(["extend scalar",e,he(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>he(["extend type",e,Ie("implements ",he(t," & ")),he(r," "),vt(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>he(["extend interface",e,Ie("implements ",he(t," & ")),he(r," "),vt(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>he(["extend union",e,he(t," "),Ie("= ",he(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>he(["extend enum",e,he(t," "),vt(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>he(["extend input",e,he(t," "),vt(r)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>he(["extend directive @"+e,he(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>he([e,Ie(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>he([e,Ie(".",t),Ie("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>he(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>he(["@",e,Ie("(",t,":)")])}};function he(e,t=""){var r;return(r=e?.filter(n=>n).join(t))!==null&&r!==void 0?r:""}function vt(e){return Ie(`{
66
+ `,Bi(he(e,`
67
+ `)),`
68
+ }`)}function Ie(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function Bi(e){return Ie(" ",e.replace(/\n/g,`
69
+ `))}function Ho(e){var t;return(t=e?.some(r=>r.includes(`
70
+ `)))!==null&&t!==void 0?t:!1}function js(e,t){switch(e.kind){case exports.Kind.NULL:return null;case exports.Kind.INT:return parseInt(e.value,10);case exports.Kind.FLOAT:return parseFloat(e.value);case exports.Kind.STRING:case exports.Kind.ENUM:case exports.Kind.BOOLEAN:return e.value;case exports.Kind.LIST:return e.values.map(r=>js(r,t));case exports.Kind.OBJECT:return Ta(e.fields,r=>r.name.value,r=>js(r.value,t));case exports.Kind.VARIABLE:return t?.[e.name.value]}}function Ot(e){if(e!=null||Le(!1,"Must provide name."),typeof e=="string"||Le(!1,"Expected name to be a string."),e.length===0)throw new ie("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!sf(e.charCodeAt(t)))throw new ie(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!of(e.charCodeAt(0)))throw new ie(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function DO(e){if(e==="true"||e==="false"||e==="null")throw new ie(`Enum values cannot be named: ${e}`);return Ot(e)}function Ia(e){return Xt(e)||Ke(e)||He(e)||dt(e)||ft(e)||tt(e)||at(e)||Ue(e)}function Xt(e){return Pt(e,Wt)}function Ke(e){return Pt(e,zt)}function He(e){return Pt(e,Ms)}function dt(e){return Pt(e,Ls)}function ft(e){return Pt(e,rn)}function tt(e){return Pt(e,Us)}function at(e){return Pt(e,ct)}function Ue(e){return Pt(e,Ae)}function yn(e){return Xt(e)||ft(e)||tt(e)||_a(e)&&yn(e.ofType)}function lf(e){return Xt(e)||Ke(e)||He(e)||dt(e)||ft(e)||_a(e)&&lf(e.ofType)}function Ir(e){return Xt(e)||ft(e)}function tn(e){return Ke(e)||He(e)||dt(e)}function ar(e){return He(e)||dt(e)}class ct{constructor(t){Ia(t)||Le(!1,`Expected ${me(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class Ae{constructor(t){uf(t)||Le(!1,`Expected ${me(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 _a(e){return at(e)||Ue(e)}function uf(e){return Ia(e)&&!Ue(e)}function qO(e){if(e)return Ue(e)?e.ofType:e}function CO(e){return Xt(e)||Ke(e)||He(e)||dt(e)||ft(e)||tt(e)}function ur(e){if(e){let t=e;for(;_a(t);)t=t.ofType;return t}}function df(e){return typeof e=="function"?e():e}function ff(e){return typeof e=="function"?e():e}class Wt{constructor(t){var r,n,i,o;const s=(r=t.parseValue)!==null&&r!==void 0?r:Wp;this.name=Ot(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(n=t.serialize)!==null&&n!==void 0?n:Wp,this.parseValue=s,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(a,c)=>s(js(a,c)),this.extensions=mt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(o=t.extensionASTNodes)!==null&&o!==void 0?o:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||Le(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${me(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||Le(!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"||Le(!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 zt{constructor(t){var r;this.name=Ot(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=mt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=()=>hf(t),this._interfaces=()=>mf(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||Le(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${me(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:gf(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function mf(e){var t;const r=df((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(r)||Le(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),r}function hf(e){const t=ff(e.fields);return xr(t)||Le(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),_t(t,(r,n)=>{var i;xr(r)||Le(!1,`${e.name}.${n} field config must be an object.`),r.resolve==null||typeof r.resolve=="function"||Le(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${me(r.resolve)}.`);const o=(i=r.args)!==null&&i!==void 0?i:{};return xr(o)||Le(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:Ot(n),description:r.description,type:r.type,args:yf(o),resolve:r.resolve,subscribe:r.subscribe,deprecationReason:r.deprecationReason,extensions:mt(r.extensions),astNode:r.astNode}})}function yf(e){return Object.entries(e).map(([t,r])=>({name:Ot(t),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:mt(r.extensions),astNode:r.astNode}))}function xr(e){return pr(e)&&!Array.isArray(e)}function gf(e){return _t(e,t=>({description:t.description,type:t.type,args:vf(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function vf(e){return Ta(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function gn(e){return Ue(e.type)&&e.defaultValue===void 0}class Ms{constructor(t){var r;this.name=Ot(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=mt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=hf.bind(void 0,t),this._interfaces=mf.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||Le(!1,`${this.name} must provide "resolveType" as a function, but got: ${me(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:gf(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Ls{constructor(t){var r;this.name=Ot(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=mt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._types=jO.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||Le(!1,`${this.name} must provide "resolveType" as a function, but got: ${me(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 jO(e){const t=df(e.types);return Array.isArray(t)||Le(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class rn{constructor(t){var r;this.name=Ot(t.name),this.description=t.description,this.extensions=mt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._values=typeof t.values=="function"?t.values:Xp(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=Xp(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=lr(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 ie(`Enum "${this.name}" cannot represent value: ${me(t)}`);return r.name}parseValue(t){if(typeof t!="string"){const n=me(t);throw new ie(`Enum "${this.name}" cannot represent non-string value: ${n}.`+Oi(this,n))}const r=this.getValue(t);if(r==null)throw new ie(`Value "${t}" does not exist in "${this.name}" enum.`+Oi(this,t));return r.value}parseLiteral(t,r){if(t.kind!==exports.Kind.ENUM){const i=Je(t);throw new ie(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+Oi(this,i),{nodes:t})}const n=this.getValue(t.value);if(n==null){const i=Je(t);throw new ie(`Value "${i}" does not exist in "${this.name}" enum.`+Oi(this,i),{nodes:t})}return n.value}toConfig(){const t=Ta(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 Oi(e,t){const r=e.getValues().map(i=>i.name),n=fr(t,r);return Qt("the enum value",n)}function Xp(e,t){return xr(t)||Le(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([r,n])=>(xr(n)||Le(!1,`${e}.${r} must refer to an object with a "value" key representing an internal value but got: ${me(n)}.`),{name:DO(r),description:n.description,value:n.value!==void 0?n.value:r,deprecationReason:n.deprecationReason,extensions:mt(n.extensions),astNode:n.astNode}))}class Us{constructor(t){var r,n;this.name=Ot(t.name),this.description=t.description,this.extensions=mt(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=MO.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){const t=_t(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 MO(e){const t=ff(e.fields);return xr(t)||Le(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),_t(t,(r,n)=>(!("resolve"in r)||Le(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:Ot(n),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:mt(r.extensions),astNode:r.astNode}))}function bf(e){return Ue(e.type)&&e.defaultValue===void 0}function Fs(e,t){return e===t?!0:Ue(e)&&Ue(t)||at(e)&&at(t)?Fs(e.ofType,t.ofType):!1}function Tr(e,t,r){return t===r?!0:Ue(r)?Ue(t)?Tr(e,t.ofType,r.ofType):!1:Ue(t)?Tr(e,t.ofType,r):at(r)?at(t)?Tr(e,t.ofType,r.ofType):!1:at(t)?!1:ar(r)&&(He(t)||Ke(t))&&e.isSubType(r,t)}function Zp(e,t,r){return t===r?!0:ar(t)?ar(r)?e.getPossibleTypes(t).some(n=>e.isSubType(r,n)):e.isSubType(t,r):ar(r)?e.isSubType(r,t):!1}const Go=2147483647,Yo=-2147483648,LO=new Wt({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=vn(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 ie(`Int cannot represent non-integer value: ${me(t)}`);if(r>Go||r<Yo)throw new ie("Int cannot represent non 32-bit signed integer value: "+me(t));return r},parseValue(e){if(typeof e!="number"||!Number.isInteger(e))throw new ie(`Int cannot represent non-integer value: ${me(e)}`);if(e>Go||e<Yo)throw new ie(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==exports.Kind.INT)throw new ie(`Int cannot represent non-integer value: ${Je(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>Go||t<Yo)throw new ie(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),UO=new Wt({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=vn(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 ie(`Float cannot represent non numeric value: ${me(t)}`);return r},parseValue(e){if(typeof e!="number"||!Number.isFinite(e))throw new ie(`Float cannot represent non numeric value: ${me(e)}`);return e},parseLiteral(e){if(e.kind!==exports.Kind.FLOAT&&e.kind!==exports.Kind.INT)throw new ie(`Float cannot represent non numeric value: ${Je(e)}`,e);return parseFloat(e.value)}}),Ve=new Wt({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=vn(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 ie(`String cannot represent value: ${me(e)}`)},parseValue(e){if(typeof e!="string")throw new ie(`String cannot represent a non string value: ${me(e)}`);return e},parseLiteral(e){if(e.kind!==exports.Kind.STRING)throw new ie(`String cannot represent a non string value: ${Je(e)}`,{nodes:e});return e.value}}),st=new Wt({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=vn(e);if(typeof t=="boolean")return t;if(Number.isFinite(t))return t!==0;throw new ie(`Boolean cannot represent a non boolean value: ${me(t)}`)},parseValue(e){if(typeof e!="boolean")throw new ie(`Boolean cannot represent a non boolean value: ${me(e)}`);return e},parseLiteral(e){if(e.kind!==exports.Kind.BOOLEAN)throw new ie(`Boolean cannot represent a non boolean value: ${Je(e)}`,{nodes:e});return e.value}}),wf=new Wt({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=vn(e);if(typeof t=="string")return t;if(Number.isInteger(t))return String(t);throw new ie(`ID cannot represent value: ${me(e)}`)},parseValue(e){if(typeof e=="string")return e;if(typeof e=="number"&&Number.isInteger(e))return e.toString();throw new ie(`ID cannot represent value: ${me(e)}`)},parseLiteral(e){if(e.kind!==exports.Kind.STRING&&e.kind!==exports.Kind.INT)throw new ie("ID cannot represent a non-string and non-integer value: "+Je(e),{nodes:e});return e.value}}),Aa=Object.freeze([Ve,LO,UO,st,wf]);function FO(e){return Aa.some(({name:t})=>e.name===t)}function vn(e){if(pr(e)){if(typeof e.valueOf=="function"){const t=e.valueOf();if(!pr(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}function Sf(e){return Pt(e,Lt)}class Lt{constructor(t){var r,n,i;this.name=Ot(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=mt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],Array.isArray(t.locations)||Le(!1,`@${t.name} locations must be an Array.`);const o=(i=t.args)!==null&&i!==void 0?i:{};pr(o)&&!Array.isArray(o)||Le(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=yf(o)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:vf(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 Ef=new Lt({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[exports.DirectiveLocation.FIELD,exports.DirectiveLocation.FRAGMENT_SPREAD,exports.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Ae(st),description:"Included when true."}}}),xf=new Lt({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[exports.DirectiveLocation.FIELD,exports.DirectiveLocation.FRAGMENT_SPREAD,exports.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Ae(st),description:"Skipped when true."}}}),BO="No longer supported",Ra=new Lt({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[exports.DirectiveLocation.FIELD_DEFINITION,exports.DirectiveLocation.ARGUMENT_DEFINITION,exports.DirectiveLocation.INPUT_FIELD_DEFINITION,exports.DirectiveLocation.ENUM_VALUE,exports.DirectiveLocation.DIRECTIVE_DEFINITION],args:{reason:{type:Ve,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:BO}}}),Tf=new Lt({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[exports.DirectiveLocation.SCALAR],args:{url:{type:new Ae(Ve),description:"The URL that specifies the behavior of this scalar."}}}),Pf=new Lt({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[exports.DirectiveLocation.INPUT_OBJECT],args:{}}),qr=Object.freeze([Ef,xf,Ra,Tf,Pf]);function zO(e){return typeof e=="object"&&typeof e?.[Symbol.iterator]=="function"}function Kr(e,t){if(Ue(t)){const r=Kr(e,t.ofType);return r?.kind===exports.Kind.NULL?null:r}if(e===null)return{kind:exports.Kind.NULL};if(e===void 0)return null;if(at(t)){const r=t.ofType;if(zO(e)){const n=[];for(const i of e){const o=Kr(i,r);o!=null&&n.push(o)}return{kind:exports.Kind.LIST,values:n}}return Kr(e,r)}if(tt(t)){if(!pr(e))return null;const r=[];for(const n of Object.values(t.getFields())){const i=Kr(e[n.name],n.type);i&&r.push({kind:exports.Kind.OBJECT_FIELD,name:{kind:exports.Kind.NAME,value:n.name},value:i})}return{kind:exports.Kind.OBJECT,fields:r}}if(Ir(t)){const r=t.serialize(e);if(r==null)return null;if(typeof r=="boolean")return{kind:exports.Kind.BOOLEAN,value:r};if(typeof r=="number"&&Number.isFinite(r)){const n=String(r);return el.test(n)?{kind:exports.Kind.INT,value:n}:{kind:exports.Kind.FLOAT,value:n}}if(typeof r=="string")return ft(t)?{kind:exports.Kind.ENUM,value:r}:t===wf&&el.test(r)?{kind:exports.Kind.INT,value:r}:{kind:exports.Kind.STRING,value:r};throw new TypeError(`Cannot convert value to AST: ${me(r)}.`)}Et(!1,"Unexpected input type: "+me(t))}const el=/^-?(?:0|[1-9][0-9]*)$/,$a=new zt({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:Ve,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Ae(new ct(new Ae(At))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Ae(At),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:At,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:At,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Ae(new ct(new Ae(Of))),args:{includeDeprecated:{type:new Ae(st),defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.getDirectives():e.getDirectives().filter(r=>r.deprecationReason==null)}})}),Of=new zt({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
71
+
72
+ 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 Ae(Ve),resolve:e=>e.name},description:{type:Ve,resolve:e=>e.description},isRepeatable:{type:new Ae(st),resolve:e=>e.isRepeatable},locations:{type:new Ae(new ct(new Ae(If))),resolve:e=>e.locations},args:{type:new Ae(new ct(new Ae(Ao))),args:{includeDeprecated:{type:st,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(r=>r.deprecationReason==null)}},isDeprecated:{type:new Ae(st),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ve,resolve:e=>e.deprecationReason}})}),If=new rn({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:exports.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:exports.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:exports.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:exports.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:exports.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:exports.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:exports.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:exports.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:exports.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:exports.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:exports.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:exports.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:exports.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:exports.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:exports.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:exports.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:exports.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:exports.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:exports.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."},DIRECTIVE_DEFINITION:{value:exports.DirectiveLocation.DIRECTIVE_DEFINITION,description:"Location adjacent to a directive definition."}}}),At=new zt({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 Ae(Rf),resolve(e){if(Xt(e))return Qe.SCALAR;if(Ke(e))return Qe.OBJECT;if(He(e))return Qe.INTERFACE;if(dt(e))return Qe.UNION;if(ft(e))return Qe.ENUM;if(tt(e))return Qe.INPUT_OBJECT;if(at(e))return Qe.LIST;if(Ue(e))return Qe.NON_NULL;Et(!1,`Unexpected type: "${me(e)}".`)}},name:{type:Ve,resolve:e=>"name"in e?e.name:void 0},description:{type:Ve,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Ve,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new ct(new Ae(_f)),args:{includeDeprecated:{type:st,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Ke(e)||He(e)){const r=Object.values(e.getFields());return t?r:r.filter(n=>n.deprecationReason==null)}}},interfaces:{type:new ct(new Ae(At)),resolve(e){if(Ke(e)||He(e))return e.getInterfaces()}},possibleTypes:{type:new ct(new Ae(At)),resolve(e,t,r,{schema:n}){if(ar(e))return n.getPossibleTypes(e)}},enumValues:{type:new ct(new Ae(Af)),args:{includeDeprecated:{type:st,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(ft(e)){const r=e.getValues();return t?r:r.filter(n=>n.deprecationReason==null)}}},inputFields:{type:new ct(new Ae(Ao)),args:{includeDeprecated:{type:st,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(tt(e)){const r=Object.values(e.getFields());return t?r:r.filter(n=>n.deprecationReason==null)}}},ofType:{type:At,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:st,resolve:e=>{if(tt(e))return e.isOneOf}}})}),_f=new zt({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 Ae(Ve),resolve:e=>e.name},description:{type:Ve,resolve:e=>e.description},args:{type:new Ae(new ct(new Ae(Ao))),args:{includeDeprecated:{type:st,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(r=>r.deprecationReason==null)}},type:{type:new Ae(At),resolve:e=>e.type},isDeprecated:{type:new Ae(st),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ve,resolve:e=>e.deprecationReason}})}),Ao=new zt({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 Ae(Ve),resolve:e=>e.name},description:{type:Ve,resolve:e=>e.description},type:{type:new Ae(At),resolve:e=>e.type},defaultValue:{type:Ve,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:r}=e,n=Kr(r,t);return n?Je(n):null}},isDeprecated:{type:new Ae(st),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ve,resolve:e=>e.deprecationReason}})}),Af=new zt({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 Ae(Ve),resolve:e=>e.name},description:{type:Ve,resolve:e=>e.description},isDeprecated:{type:new Ae(st),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ve,resolve:e=>e.deprecationReason}})});var Qe;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(Qe||(Qe={}));const Rf=new rn({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Qe.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Qe.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Qe.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Qe.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Qe.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Qe.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Qe.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Qe.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});new Ae($a);new Ae(Ve);new Ae(Ve);const Na=Object.freeze([$a,Of,If,At,_f,Ao,Af,Rf]);function $f(e){return Na.some(({name:t})=>e.name===t)}function VO(e){return Pt(e,Nf)}function KO(e){if(!VO(e))throw new Error(`Expected ${me(e)} to be a GraphQL schema.`);return e}class Nf{constructor(t){var r,n;this.__validationErrors=t.assumeValid===!0?[]:void 0,pr(t)||Le(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||Le(!1,`"types" must be Array if provided but got: ${me(t.types)}.`),!t.directives||Array.isArray(t.directives)||Le(!1,`"directives" must be Array if provided but got: ${me(t.directives)}.`),this.description=t.description,this.extensions=mt(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:qr;const i=new Set(t.types);if(t.types!=null)for(const o of t.types)i.delete(o),St(o,i);this._queryType!=null&&St(this._queryType,i),this._mutationType!=null&&St(this._mutationType,i),this._subscriptionType!=null&&St(this._subscriptionType,i);for(const o of this._directives)if(Sf(o))for(const s of o.args)St(s.type,i);St($a,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const o of i){if(o==null)continue;const s=o.name;if(s||Le(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[s]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${s}".`);if(this._typeMap[s]=o,He(o)){for(const a of o.getInterfaces())if(He(a)){let c=this._implementationsMap[a.name];c===void 0&&(c=this._implementationsMap[a.name]={objects:[],interfaces:[]}),c.interfaces.push(o)}}else if(Ke(o)){for(const a of o.getInterfaces())if(He(a)){let c=this._implementationsMap[a.name];c===void 0&&(c=this._implementationsMap[a.name]={objects:[],interfaces:[]}),c.objects.push(o)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case exports.OperationTypeNode.QUERY:return this.getQueryType();case exports.OperationTypeNode.MUTATION:return this.getMutationType();case exports.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return dt(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){const r=this._implementationsMap[t.name];return r??{objects:[],interfaces:[]}}isSubType(t,r){let n=this._subTypeMap[t.name];if(n===void 0){if(n=Object.create(null),dt(t))for(const i of t.getTypes())n[i.name]=!0;else{const i=this.getImplementations(t);for(const o of i.objects)n[o.name]=!0;for(const o of i.interfaces)n[o.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 St(e,t){const r=ur(e);if(!t.has(r)){if(t.add(r),dt(r))for(const n of r.getTypes())St(n,t);else if(Ke(r)||He(r)){for(const n of r.getInterfaces())St(n,t);for(const n of Object.values(r.getFields())){St(n.type,t);for(const i of n.args)St(i.type,t)}}else if(tt(r))for(const n of Object.values(r.getFields()))St(n.type,t)}return t}function HO(e){if(KO(e),e.__validationErrors)return e.__validationErrors;const t=new GO(e);YO(t),QO(t),WO(t);const r=t.getErrors();return e.__validationErrors=r,r}class GO{constructor(t){this._errors=[],this.schema=t}reportError(t,r){const n=Array.isArray(r)?r.filter(Boolean):r;this._errors.push(new ie(t,{nodes:n}))}getErrors(){return this._errors}}function YO(e){const t=e.schema,r=t.getQueryType();if(!r)e.reportError("Query root type must be provided.",t.astNode);else if(!Ke(r)){var n;e.reportError(`Query root type must be Object type, it cannot be ${me(r)}.`,(n=Qo(t,exports.OperationTypeNode.QUERY))!==null&&n!==void 0?n:r.astNode)}const i=t.getMutationType();if(i&&!Ke(i)){var o;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${me(i)}.`,(o=Qo(t,exports.OperationTypeNode.MUTATION))!==null&&o!==void 0?o:i.astNode)}const s=t.getSubscriptionType();if(s&&!Ke(s)){var a;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${me(s)}.`,(a=Qo(t,exports.OperationTypeNode.SUBSCRIPTION))!==null&&a!==void 0?a:s.astNode)}}function Qo(e,t){var r;return(r=[e.astNode,...e.extensionASTNodes].flatMap(n=>{var i;return(i=n?.operationTypes)!==null&&i!==void 0?i:[]}).find(n=>n.operation===t))===null||r===void 0?void 0:r.type}function QO(e){for(const r of e.schema.getDirectives()){if(!Sf(r)){e.reportError(`Expected directive but got: ${me(r)}.`,r?.astNode);continue}dr(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(dr(e,n),yn(n.type)||e.reportError(`The type of @${r.name}(${n.name}:) must be Input Type but got: ${me(n.type)}.`,n.astNode),gn(n)&&n.deprecationReason!=null){var t;e.reportError(`Required argument @${r.name}(${n.name}:) cannot be deprecated.`,[ka(n.astNode),(t=n.astNode)===null||t===void 0?void 0:t.type])}}}function dr(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function WO(e){const t=nI(e),r=e.schema.getTypeMap();for(const n of Object.values(r)){if(!CO(n)){e.reportError(`Expected GraphQL named type but got: ${me(n)}.`,n.astNode);continue}$f(n)||dr(e,n),Ke(n)||He(n)?(tl(e,n),rl(e,n)):dt(n)?ZO(e,n):ft(n)?eI(e,n):tt(n)&&(tI(e,n),t(n))}}function tl(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 s of r){if(dr(e,s),!lf(s.type)){var n;e.reportError(`The type of ${t.name}.${s.name} must be Output Type but got: ${me(s.type)}.`,(n=s.astNode)===null||n===void 0?void 0:n.type)}for(const a of s.args){const c=a.name;if(dr(e,a),!yn(a.type)){var i;e.reportError(`The type of ${t.name}.${s.name}(${c}:) must be Input Type but got: ${me(a.type)}.`,(i=a.astNode)===null||i===void 0?void 0:i.type)}if(gn(a)&&a.deprecationReason!=null){var o;e.reportError(`Required argument ${t.name}.${s.name}(${c}:) cannot be deprecated.`,[ka(a.astNode),(o=a.astNode)===null||o===void 0?void 0:o.type])}}}}function rl(e,t){const r=Object.create(null);for(const n of t.getInterfaces()){if(!He(n)){e.reportError(`Type ${me(t)} must only implement Interface types, it cannot implement ${me(n)}.`,Yr(t,n));continue}if(t===n){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Yr(t,n));continue}if(r[n.name]){e.reportError(`Type ${t.name} can only implement ${n.name} once.`,Yr(t,n));continue}r[n.name]=!0,XO(e,t,n),JO(e,t,n)}}function JO(e,t,r){const n=t.getFields();for(const c of Object.values(r.getFields())){const l=c.name,u=n[l];if(!u){e.reportError(`Interface field ${r.name}.${l} expected but ${t.name} does not provide it.`,[c.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!Tr(e.schema,u.type,c.type)){var i,o;e.reportError(`Interface field ${r.name}.${l} expects type ${me(c.type)} but ${t.name}.${l} is type ${me(u.type)}.`,[(i=c.astNode)===null||i===void 0?void 0:i.type,(o=u.astNode)===null||o===void 0?void 0:o.type])}for(const m of c.args){const y=m.name,h=u.args.find(w=>w.name===y);if(!h){e.reportError(`Interface field argument ${r.name}.${l}(${y}:) expected but ${t.name}.${l} does not provide it.`,[m.astNode,u.astNode]);continue}if(!Fs(m.type,h.type)){var s,a;e.reportError(`Interface field argument ${r.name}.${l}(${y}:) expects type ${me(m.type)} but ${t.name}.${l}(${y}:) is type ${me(h.type)}.`,[(s=m.astNode)===null||s===void 0?void 0:s.type,(a=h.astNode)===null||a===void 0?void 0:a.type])}}for(const m of u.args){const y=m.name;!c.args.find(w=>w.name===y)&&gn(m)&&e.reportError(`Object field ${t.name}.${l} includes required argument ${y} that is missing from the Interface field ${r.name}.${l}.`,[m.astNode,c.astNode])}}}function XO(e,t,r){const n=t.getInterfaces();for(const i of r.getInterfaces())n.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${r.name}.`,[...Yr(r,i),...Yr(t,r)])}function ZO(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 i of r){if(n[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,nl(t,i.name));continue}n[i.name]=!0,Ke(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${me(i)}.`,nl(t,String(i)))}}function eI(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)dr(e,n)}function tI(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 o of r){if(dr(e,o),!yn(o.type)){var n;e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${me(o.type)}.`,(n=o.astNode)===null||n===void 0?void 0:n.type)}if(bf(o)&&o.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[ka(o.astNode),(i=o.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&rI(t,o,e)}}function rI(e,t,r){if(Ue(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 nI(e){const t=Object.create(null),r=[],n=Object.create(null);return i;function i(o){if(t[o.name])return;t[o.name]=!0,n[o.name]=r.length;const s=Object.values(o.getFields());for(const a of s)if(Ue(a.type)&&tt(a.type.ofType)){const c=a.type.ofType,l=n[c.name];if(r.push(a),l===void 0)i(c);else{const u=r.slice(l),m=u.map(y=>y.name).join(".");e.reportError(`Cannot reference Input Object "${c.name}" within itself through a series of non-null fields: "${m}".`,u.map(y=>y.astNode))}r.pop()}n[o.name]=void 0}}function Yr(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 nl(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 ka(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(r=>r.name.value===Ra.name)}function Nt(e,t){switch(t.kind){case exports.Kind.LIST_TYPE:{const r=Nt(e,t.type);return r&&new ct(r)}case exports.Kind.NON_NULL_TYPE:{const r=Nt(e,t.type);return r&&new Ae(r)}case exports.Kind.NAMED_TYPE:return e.getType(t.name.value)}}function iI(e){return e.kind===exports.Kind.OPERATION_DEFINITION||e.kind===exports.Kind.FRAGMENT_DEFINITION}function oI(e){return e.kind===exports.Kind.SCHEMA_DEFINITION||bn(e)||e.kind===exports.Kind.DIRECTIVE_DEFINITION}function bn(e){return e.kind===exports.Kind.SCALAR_TYPE_DEFINITION||e.kind===exports.Kind.OBJECT_TYPE_DEFINITION||e.kind===exports.Kind.INTERFACE_TYPE_DEFINITION||e.kind===exports.Kind.UNION_TYPE_DEFINITION||e.kind===exports.Kind.ENUM_TYPE_DEFINITION||e.kind===exports.Kind.INPUT_OBJECT_TYPE_DEFINITION}function sI(e){return e.kind===exports.Kind.SCHEMA_EXTENSION||e.kind===exports.Kind.DIRECTIVE_EXTENSION||Da(e)}function Da(e){return e.kind===exports.Kind.SCALAR_TYPE_EXTENSION||e.kind===exports.Kind.OBJECT_TYPE_EXTENSION||e.kind===exports.Kind.INTERFACE_TYPE_EXTENSION||e.kind===exports.Kind.UNION_TYPE_EXTENSION||e.kind===exports.Kind.ENUM_TYPE_EXTENSION||e.kind===exports.Kind.INPUT_OBJECT_TYPE_EXTENSION}function aI(e){return{Document(t){for(const r of t.definitions)if(!iI(r)){const n=r.kind===exports.Kind.SCHEMA_DEFINITION||r.kind===exports.Kind.SCHEMA_EXTENSION?"schema":'"'+r.name.value+'"';e.reportError(new ie(`The ${n} definition is not executable.`,{nodes:r}))}return!1}}}function cI(e){return{Field(t){const r=e.getParentType();if(r&&!e.getFieldDef()){const i=e.getSchema(),o=t.name.value;let s=Qt("to use an inline fragment on",pI(i,r,o));s===""&&(s=Qt(lI(r,o))),e.reportError(new ie(`Cannot query field "${o}" on type "${r.name}".`+s,{nodes:t}))}}}}function pI(e,t,r){if(!ar(t))return[];const n=new Set,i=Object.create(null);for(const s of e.getPossibleTypes(t))if(s.getFields()[r]){n.add(s),i[s.name]=1;for(const a of s.getInterfaces()){var o;a.getFields()[r]&&(n.add(a),i[a.name]=((o=i[a.name])!==null&&o!==void 0?o:0)+1)}}return[...n].sort((s,a)=>{const c=i[a.name]-i[s.name];return c!==0?c:He(s)&&e.isSubType(s,a)?-1:He(a)&&e.isSubType(a,s)?1:Pa(s.name,a.name)}).map(s=>s.name)}function lI(e,t){if(Ke(e)||He(e)){const r=Object.keys(e.getFields());return fr(t,r)}return[]}function uI(e){return{InlineFragment(t){const r=t.typeCondition;if(r){const n=Nt(e.getSchema(),r);if(n&&!tn(n)){const i=Je(r);e.reportError(new ie(`Fragment cannot condition on non composite type "${i}".`,{nodes:r}))}}},FragmentDefinition(t){const r=Nt(e.getSchema(),t.typeCondition);if(r&&!tn(r)){const n=Je(t.typeCondition);e.reportError(new ie(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}function dI(e){return{...kf(e),Argument(t){const r=e.getArgument(),n=e.getFieldDef(),i=e.getParentType();if(!r&&n&&i){const o=t.name.value,s=n.args.map(c=>c.name),a=fr(o,s);e.reportError(new ie(`Unknown argument "${o}" on field "${i.name}.${n.name}".`+Qt(a),{nodes:t}))}}}}function kf(e){const t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():qr;for(const s of n)t[s.name]=s.args.map(a=>a.name);const i=e.getDocument().definitions;for(const s of i)if(s.kind===exports.Kind.DIRECTIVE_DEFINITION){var o;const a=(o=s.arguments)!==null&&o!==void 0?o:[];t[s.name.value]=a.map(c=>c.name.value)}return{Directive(s){const a=s.name.value,c=t[a];if(s.arguments&&c)for(const l of s.arguments){const u=l.name.value;if(!c.includes(u)){const m=fr(u,c);e.reportError(new ie(`Unknown argument "${u}" on directive "@${a}".`+Qt(m),{nodes:l}))}}return!1}}}function Df(e){const t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():qr;for(const o of n)t[o.name]=o.locations;const i=e.getDocument().definitions;for(const o of i)o.kind===exports.Kind.DIRECTIVE_DEFINITION&&(t[o.name.value]=o.locations.map(s=>s.value));return{Directive(o,s,a,c,l){const u=o.name.value,m=t[u];if(!m){e.reportError(new ie(`Unknown directive "@${u}".`,{nodes:o}));return}const y=fI(l);y&&!m.includes(y)&&e.reportError(new ie(`Directive "@${u}" may not be used on ${y}.`,{nodes:o}))}}}function fI(e){const t=e[e.length-1];switch("kind"in t||Et(!1),t.kind){case exports.Kind.OPERATION_DEFINITION:return mI(t.operation);case exports.Kind.FIELD:return exports.DirectiveLocation.FIELD;case exports.Kind.FRAGMENT_SPREAD:return exports.DirectiveLocation.FRAGMENT_SPREAD;case exports.Kind.INLINE_FRAGMENT:return exports.DirectiveLocation.INLINE_FRAGMENT;case exports.Kind.FRAGMENT_DEFINITION:return exports.DirectiveLocation.FRAGMENT_DEFINITION;case exports.Kind.VARIABLE_DEFINITION:return exports.DirectiveLocation.VARIABLE_DEFINITION;case exports.Kind.SCHEMA_DEFINITION:case exports.Kind.SCHEMA_EXTENSION:return exports.DirectiveLocation.SCHEMA;case exports.Kind.SCALAR_TYPE_DEFINITION:case exports.Kind.SCALAR_TYPE_EXTENSION:return exports.DirectiveLocation.SCALAR;case exports.Kind.OBJECT_TYPE_DEFINITION:case exports.Kind.OBJECT_TYPE_EXTENSION:return exports.DirectiveLocation.OBJECT;case exports.Kind.FIELD_DEFINITION:return exports.DirectiveLocation.FIELD_DEFINITION;case exports.Kind.INTERFACE_TYPE_DEFINITION:case exports.Kind.INTERFACE_TYPE_EXTENSION:return exports.DirectiveLocation.INTERFACE;case exports.Kind.UNION_TYPE_DEFINITION:case exports.Kind.UNION_TYPE_EXTENSION:return exports.DirectiveLocation.UNION;case exports.Kind.ENUM_TYPE_DEFINITION:case exports.Kind.ENUM_TYPE_EXTENSION:return exports.DirectiveLocation.ENUM;case exports.Kind.ENUM_VALUE_DEFINITION:return exports.DirectiveLocation.ENUM_VALUE;case exports.Kind.INPUT_OBJECT_TYPE_DEFINITION:case exports.Kind.INPUT_OBJECT_TYPE_EXTENSION:return exports.DirectiveLocation.INPUT_OBJECT;case exports.Kind.INPUT_VALUE_DEFINITION:{const r=e[e.length-3];return"kind"in r||Et(!1),r.kind===exports.Kind.INPUT_OBJECT_TYPE_DEFINITION?exports.DirectiveLocation.INPUT_FIELD_DEFINITION:exports.DirectiveLocation.ARGUMENT_DEFINITION}case exports.Kind.DIRECTIVE_DEFINITION:case exports.Kind.DIRECTIVE_EXTENSION:return exports.DirectiveLocation.DIRECTIVE_DEFINITION;default:Et(!1,"Unexpected kind: "+me(t.kind))}}function mI(e){switch(e){case exports.OperationTypeNode.QUERY:return exports.DirectiveLocation.QUERY;case exports.OperationTypeNode.MUTATION:return exports.DirectiveLocation.MUTATION;case exports.OperationTypeNode.SUBSCRIPTION:return exports.DirectiveLocation.SUBSCRIPTION}}function hI(e){return{FragmentSpread(t){const r=t.name.value;e.getFragment(r)||e.reportError(new ie(`Unknown fragment "${r}".`,{nodes:t.name}))}}}function qf(e){const t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);for(const o of e.getDocument().definitions)bn(o)&&(n[o.name.value]=!0);const i=[...Object.keys(r),...Object.keys(n)];return{NamedType(o,s,a,c,l){const u=o.name.value;if(!r[u]&&!n[u]){var m;const y=(m=l[2])!==null&&m!==void 0?m:a,h=y!=null&&yI(y);if(h&&il.includes(u))return;const w=fr(u,h?il.concat(i):i);e.reportError(new ie(`Unknown type "${u}".`+Qt(w),{nodes:o}))}}}}const il=[...Aa,...Na].map(e=>e.name);function yI(e){return"kind"in e&&(oI(e)||sI(e))}function gI(e){let t=0;return{Document(r){t=r.definitions.filter(n=>n.kind===exports.Kind.OPERATION_DEFINITION).length},OperationDefinition(r){!r.name&&t>1&&e.reportError(new ie("This anonymous operation must be the only defined operation.",{nodes:r}))}}}function vI(e){var t,r,n;const i=e.getSchema(),o=(t=(r=(n=i?.astNode)!==null&&n!==void 0?n:i?.getQueryType())!==null&&r!==void 0?r:i?.getMutationType())!==null&&t!==void 0?t:i?.getSubscriptionType();let s=0;return{SchemaDefinition(a){if(o){e.reportError(new ie("Cannot define a new schema within a schema extension.",{nodes:a}));return}s>0&&e.reportError(new ie("Must provide only one schema definition.",{nodes:a})),++s}}}const bI=3;function wI(e){function t(r,n=Object.create(null),i=0){if(r.kind===exports.Kind.FRAGMENT_SPREAD){const o=r.name.value;if(n[o]===!0)return!1;const s=e.getFragment(o);if(!s)return!1;try{return n[o]=!0,t(s,n,i)}finally{n[o]=void 0}}if(r.kind===exports.Kind.FIELD&&(r.name.value==="fields"||r.name.value==="interfaces"||r.name.value==="possibleTypes"||r.name.value==="inputFields")&&(i++,i>=bI))return!0;if("selectionSet"in r&&r.selectionSet){for(const o of r.selectionSet.selections)if(t(o,n,i))return!0}return!1}return{Field(r){if((r.name.value==="__schema"||r.name.value==="__type")&&t(r))return e.reportError(new ie("Maximum introspection depth exceeded",{nodes:[r]})),!1}}}function SI(e){const t=Object.create(null),r=[],n=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(o){return i(o),!1}};function i(o){if(t[o.name.value])return;const s=o.name.value;t[s]=!0;const a=e.getFragmentSpreads(o.selectionSet);if(a.length!==0){n[s]=r.length;for(const c of a){const l=c.name.value,u=n[l];if(r.push(c),u===void 0){const m=e.getFragment(l);m&&i(m)}else{const m=r.slice(u),y=m.slice(0,-1).map(h=>'"'+h.name.value+'"').join(", ");e.reportError(new ie(`Cannot spread fragment "${l}" within itself`+(y!==""?` via ${y}.`:"."),{nodes:m}))}r.pop()}n[s]=void 0}}}function EI(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){const n=e.getRecursiveVariableUsages(r);for(const{node:i}of n){const o=i.name.value;t[o]!==!0&&e.reportError(new ie(r.name?`Variable "$${o}" is not defined by operation "${r.name.value}".`:`Variable "$${o}" is not defined.`,{nodes:[i,r]}))}}},VariableDefinition(r){t[r.variable.name.value]=!0}}}function xI(e){const t=[],r=[];return{OperationDefinition(n){return t.push(n),!1},FragmentDefinition(n){return r.push(n),!1},Document:{leave(){const n=Object.create(null);for(const i of t)for(const o of e.getRecursivelyReferencedFragments(i))n[o.name.value]=!0;for(const i of r){const o=i.name.value;n[o]!==!0&&e.reportError(new ie(`Fragment "${o}" is never used.`,{nodes:i}))}}}}}function TI(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(r){const n=Object.create(null),i=e.getRecursiveVariableUsages(r);for(const{node:o}of i)n[o.name.value]=!0;for(const o of t){const s=o.variable.name.value;n[s]!==!0&&e.reportError(new ie(r.name?`Variable "$${s}" is never used in operation "${r.name.value}".`:`Variable "$${s}" is never used.`,{nodes:o}))}}},VariableDefinition(r){t.push(r)}}}function qa(e){switch(e.kind){case exports.Kind.OBJECT:return{...e,fields:PI(e.fields)};case exports.Kind.LIST:return{...e,values:e.values.map(qa)};case exports.Kind.INT:case exports.Kind.FLOAT:case exports.Kind.STRING:case exports.Kind.BOOLEAN:case exports.Kind.NULL:case exports.Kind.ENUM:case exports.Kind.VARIABLE:return e}}function PI(e){return e.map(t=>({...t,value:qa(t.value)})).sort((t,r)=>Pa(t.name.value,r.name.value))}function Cf(e){return Array.isArray(e)?e.map(([t,r])=>`subfields "${t}" conflict because `+Cf(r)).join(" and "):e}function OI(e){const t=new Lf,r=new NI,n=new Map;return{SelectionSet(i){const o=II(e,n,t,r,e.getParentType(),i);for(const[[s,a],c,l]of o){const u=Cf(a);e.reportError(new ie(`Fields "${s}" conflict because ${u}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:c.concat(l)}))}}}}function II(e,t,r,n,i,o){const s=[],[a,c]=oo(e,t,i,o);if(AI(e,s,t,r,n,a),c.length!==0)for(let l=0;l<c.length;l++){no(e,s,t,r,n,!1,a,c[l]);for(let u=l+1;u<c.length;u++)io(e,s,t,r,n,!1,c[l],c[u])}return s}function no(e,t,r,n,i,o,s,a){if(n.has(s,a,o))return;n.add(s,a,o);const c=e.getFragment(a);if(!c)return;const[l,u]=zs(e,r,c);if(s!==l){Ca(e,t,r,n,i,o,s,l);for(const m of u)no(e,t,r,n,i,o,s,m)}}function io(e,t,r,n,i,o,s,a){if(s===a||i.has(s,a,o))return;i.add(s,a,o);const c=e.getFragment(s),l=e.getFragment(a);if(!c||!l)return;const[u,m]=zs(e,r,c),[y,h]=zs(e,r,l);Ca(e,t,r,n,i,o,u,y);for(const w of h)io(e,t,r,n,i,o,s,w);for(const w of m)io(e,t,r,n,i,o,w,a)}function _I(e,t,r,n,i,o,s,a,c){const l=[],[u,m]=oo(e,t,o,s),[y,h]=oo(e,t,a,c);Ca(e,l,t,r,n,i,u,y);for(const w of h)no(e,l,t,r,n,i,u,w);for(const w of m)no(e,l,t,r,n,i,y,w);for(const w of m)for(const b of h)io(e,l,t,r,n,i,w,b);return l}function AI(e,t,r,n,i,o){for(const[s,a]of Object.entries(o))if(a.length>1)for(let c=0;c<a.length;c++)for(let l=c+1;l<a.length;l++){const u=jf(e,r,n,i,!1,s,a[c],a[l]);u&&t.push(u)}}function Ca(e,t,r,n,i,o,s,a){for(const[c,l]of Object.entries(s)){const u=a[c];if(u)for(const m of l)for(const y of u){const h=jf(e,r,n,i,o,c,m,y);h&&t.push(h)}}}function jf(e,t,r,n,i,o,s,a){const[c,l,u]=s,[m,y,h]=a,w=i||c!==m&&Ke(c)&&Ke(m);if(!w){const v=l.name.value,x=y.name.value;if(v!==x)return[[o,`"${v}" and "${x}" are different fields`],[l],[y]];if(!RI(l,y))return[[o,"they have differing arguments"],[l],[y]]}const b=u?.type,E=h?.type;if(b&&E&&Bs(b,E))return[[o,`they return conflicting types "${me(b)}" and "${me(E)}"`],[l],[y]];const P=l.selectionSet,I=y.selectionSet;if(P&&I){const v=_I(e,t,r,n,w,ur(b),P,ur(E),I);return $I(v,o,l,y)}}function RI(e,t){const r=e.arguments,n=t.arguments;if(r===void 0||r.length===0)return n===void 0||n.length===0;if(n===void 0||n.length===0||r.length!==n.length)return!1;const i=new Map(n.map(({name:o,value:s})=>[o.value,s]));return r.every(o=>{const s=o.value,a=i.get(o.name.value);return a===void 0?!1:ol(s)===ol(a)})}function ol(e){return Je(qa(e))}function Bs(e,t){return at(e)?at(t)?Bs(e.ofType,t.ofType):!0:at(t)?!0:Ue(e)?Ue(t)?Bs(e.ofType,t.ofType):!0:Ue(t)?!0:Ir(e)||Ir(t)?e!==t:!1}function oo(e,t,r,n){const i=t.get(n);if(i)return i;const o=Object.create(null),s=Object.create(null);Mf(e,r,n,o,s);const a=[o,Object.keys(s)];return t.set(n,a),a}function zs(e,t,r){const n=t.get(r.selectionSet);if(n)return n;const i=Nt(e.getSchema(),r.typeCondition);return oo(e,t,i,r.selectionSet)}function Mf(e,t,r,n,i){for(const o of r.selections)switch(o.kind){case exports.Kind.FIELD:{const s=o.name.value;let a;(Ke(t)||He(t))&&(a=t.getFields()[s]);const c=o.alias?o.alias.value:s;n[c]||(n[c]=[]),n[c].push([t,o,a]);break}case exports.Kind.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case exports.Kind.INLINE_FRAGMENT:{const s=o.typeCondition,a=s?Nt(e.getSchema(),s):t;Mf(e,a,o.selectionSet,n,i);break}}}function $I(e,t,r,n){if(e.length>0)return[[t,e.map(([i])=>i)],[r,...e.map(([,i])=>i).flat()],[n,...e.map(([,,i])=>i).flat()]]}class Lf{constructor(){this._data=new Map}has(t,r,n){var i;const o=(i=this._data.get(t))===null||i===void 0?void 0:i.get(r);return o===void 0?!1:n?!0:n===o}add(t,r,n){const i=this._data.get(t);i===void 0?this._data.set(t,new Map([[r,n]])):i.set(r,n)}}class NI{constructor(){this._orderedPairSet=new Lf}has(t,r,n){return t<r?this._orderedPairSet.has(t,r,n):this._orderedPairSet.has(r,t,n)}add(t,r,n){t<r?this._orderedPairSet.add(t,r,n):this._orderedPairSet.add(r,t,n)}}function kI(e){return{InlineFragment(t){const r=e.getType(),n=e.getParentType();if(tn(r)&&tn(n)&&!Zp(e.getSchema(),r,n)){const i=me(n),o=me(r);e.reportError(new ie(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${o}".`,{nodes:t}))}},FragmentSpread(t){const r=t.name.value,n=DI(e,r),i=e.getParentType();if(n&&i&&!Zp(e.getSchema(),n,i)){const o=me(i),s=me(n);e.reportError(new ie(`Fragment "${r}" cannot be spread here as objects of type "${o}" can never be of type "${s}".`,{nodes:t}))}}}}function DI(e,t){const r=e.getFragment(t);if(r){const n=Nt(e.getSchema(),r.typeCondition);if(tn(n))return n}}function qI(e){const t=e.getSchema(),r=Object.create(null);for(const i of e.getDocument().definitions)bn(i)&&(r[i.name.value]=i);return{ScalarTypeExtension:n,ObjectTypeExtension:n,InterfaceTypeExtension:n,UnionTypeExtension:n,EnumTypeExtension:n,InputObjectTypeExtension:n};function n(i){const o=i.name.value,s=r[o],a=t?.getType(o);let c;if(s?c=CI[s.kind]:a&&(c=jI(a)),c){if(c!==i.kind){const l=MI(i.kind);e.reportError(new ie(`Cannot extend non-${l} type "${o}".`,{nodes:s?[s,i]:i}))}}else{const l=Object.keys({...r,...t?.getTypeMap()}),u=fr(o,l);e.reportError(new ie(`Cannot extend type "${o}" because it is not defined.`+Qt(u),{nodes:i.name}))}}}const CI={[exports.Kind.SCALAR_TYPE_DEFINITION]:exports.Kind.SCALAR_TYPE_EXTENSION,[exports.Kind.OBJECT_TYPE_DEFINITION]:exports.Kind.OBJECT_TYPE_EXTENSION,[exports.Kind.INTERFACE_TYPE_DEFINITION]:exports.Kind.INTERFACE_TYPE_EXTENSION,[exports.Kind.UNION_TYPE_DEFINITION]:exports.Kind.UNION_TYPE_EXTENSION,[exports.Kind.ENUM_TYPE_DEFINITION]:exports.Kind.ENUM_TYPE_EXTENSION,[exports.Kind.INPUT_OBJECT_TYPE_DEFINITION]:exports.Kind.INPUT_OBJECT_TYPE_EXTENSION};function jI(e){if(Xt(e))return exports.Kind.SCALAR_TYPE_EXTENSION;if(Ke(e))return exports.Kind.OBJECT_TYPE_EXTENSION;if(He(e))return exports.Kind.INTERFACE_TYPE_EXTENSION;if(dt(e))return exports.Kind.UNION_TYPE_EXTENSION;if(ft(e))return exports.Kind.ENUM_TYPE_EXTENSION;if(tt(e))return exports.Kind.INPUT_OBJECT_TYPE_EXTENSION;Et(!1,"Unexpected type: "+me(e))}function MI(e){switch(e){case exports.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case exports.Kind.OBJECT_TYPE_EXTENSION:return"object";case exports.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case exports.Kind.UNION_TYPE_EXTENSION:return"union";case exports.Kind.ENUM_TYPE_EXTENSION:return"enum";case exports.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:Et(!1,"Unexpected kind: "+me(e))}}function LI(e){return{...Uf(e),Field:{leave(t){var r;const n=e.getFieldDef();if(!n)return!1;const i=new Set((r=t.arguments)===null||r===void 0?void 0:r.map(o=>o.name.value));for(const o of n.args)if(!i.has(o.name)&&gn(o)){const s=me(o.type);e.reportError(new ie(`Field "${n.name}" argument "${o.name}" of type "${s}" is required, but it was not provided.`,{nodes:t}))}}}}}function Uf(e){var t;const r=Object.create(null),n=e.getSchema(),i=(t=n?.getDirectives())!==null&&t!==void 0?t:qr;for(const a of i)r[a.name]=lr(a.args.filter(gn),c=>c.name);const o=e.getDocument().definitions;for(const a of o)if(a.kind===exports.Kind.DIRECTIVE_DEFINITION){var s;const c=(s=a.arguments)!==null&&s!==void 0?s:[];r[a.name.value]=lr(c.filter(UI),l=>l.name.value)}return{Directive:{leave(a){const c=a.name.value,l=r[c];if(l){var u;const m=(u=a.arguments)!==null&&u!==void 0?u:[],y=new Set(m.map(h=>h.name.value));for(const[h,w]of Object.entries(l))if(!y.has(h)){const b=Ia(w.type)?me(w.type):Je(w.type);e.reportError(new ie(`Directive "@${c}" argument "${h}" of type "${b}" is required, but it was not provided.`,{nodes:a}))}}}}}}function UI(e){return e.type.kind===exports.Kind.NON_NULL_TYPE&&e.defaultValue==null}function FI(e){return{Field(t){const r=e.getType(),n=t.selectionSet;if(r)if(Ir(ur(r))){if(n){const i=t.name.value,o=me(r);e.reportError(new ie(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:n}))}}else if(n){if(n.selections.length===0){const i=t.name.value,o=me(r);e.reportError(new ie(`Field "${i}" of type "${o}" must have at least one field selected.`,{nodes:t}))}}else{const i=t.name.value,o=me(r);e.reportError(new ie(`Field "${i}" of type "${o}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}function or(e,t,r){if(e){if(e.kind===exports.Kind.VARIABLE){const n=e.name.value;if(r==null||r[n]===void 0||!Ff(r,n))return;const i=r[n];return i===null&&Ue(t)?void 0:i}if(Ue(t))return e.kind===exports.Kind.NULL?void 0:or(e,t.ofType,r);if(e.kind===exports.Kind.NULL)return null;if(at(t)){const n=t.ofType;if(e.kind===exports.Kind.LIST){const o=[];for(const s of e.values)if(sl(s,r)){if(Ue(n))return;o.push(null)}else{const a=or(s,n,r);if(a===void 0)return;o.push(a)}return o}const i=or(e,n,r);return i===void 0?void 0:[i]}if(tt(t)){if(e.kind!==exports.Kind.OBJECT)return;const n=Object.create(null),i=lr(e.fields,o=>o.name.value);for(const o of Object.values(t.getFields())){const s=i[o.name];if(!s||sl(s.value,r)){if(o.defaultValue!==void 0)n[o.name]=o.defaultValue;else if(Ue(o.type))return;continue}const a=or(s.value,o.type,r);if(a===void 0)return;n[o.name]=a}if(t.isOneOf){const o=Object.keys(n);if(o.length!==1||n[o[0]]===null)return}return n}if(Ir(t)){let n;try{n=t.parseLiteral(e,r)}catch{return}return n===void 0?void 0:n}Et(!1,"Unexpected input type: "+me(t))}}function sl(e,t){return e.kind===exports.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0||!Ff(t,e.name.value))}function Ff(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function BI(e,t,r){var n;const i=Object.create(null),o=(n=t.arguments)!==null&&n!==void 0?n:[],s=lr(o,a=>a.name.value);for(const a of e.args){const c=a.name,l=a.type,u=s[c];if(!u){if(a.defaultValue!==void 0)i[c]=a.defaultValue;else if(Ue(l))throw new ie(`Argument "${c}" of required type "${me(l)}" was not provided.`,{nodes:t});continue}const m=u.value;let y=m.kind===exports.Kind.NULL;if(m.kind===exports.Kind.VARIABLE){const w=m.name.value;if(r==null||!zI(r,w)){if(a.defaultValue!==void 0)i[c]=a.defaultValue;else if(Ue(l))throw new ie(`Argument "${c}" of required type "${me(l)}" was provided the variable "$${w}" which was not provided a runtime value.`,{nodes:m});continue}y=r[w]==null}if(y&&Ue(l))throw new ie(`Argument "${c}" of non-null type "${me(l)}" must not be null.`,{nodes:m});const h=or(m,l,r);if(h===void 0)throw new ie(`Argument "${c}" has invalid value ${Je(m)}.`,{nodes:m});i[c]=h}return{...i}}function nn(e,t,r){var n;const i=(n=t.directives)===null||n===void 0?void 0:n.find(o=>o.name.value===e.name);if(i)return BI(e,i,r)}function zI(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function VI(e,t,r,n,i){const o=new Map;return Vs(e,t,r,n,i,o,new Set),o}function Vs(e,t,r,n,i,o,s){for(const a of i.selections)switch(a.kind){case exports.Kind.FIELD:{if(!Wo(r,a))continue;const c=KI(a),l=o.get(c);l!==void 0?l.push(a):o.set(c,[a]);break}case exports.Kind.INLINE_FRAGMENT:{if(!Wo(r,a)||!al(e,a,n))continue;Vs(e,t,r,n,a.selectionSet,o,s);break}case exports.Kind.FRAGMENT_SPREAD:{const c=a.name.value;if(s.has(c)||!Wo(r,a))continue;s.add(c);const l=t[c];if(!l||!al(e,l,n))continue;Vs(e,t,r,n,l.selectionSet,o,s);break}}}function Wo(e,t){const r=nn(xf,t,e);if(r?.if===!0)return!1;const n=nn(Ef,t,e);return n?.if!==!1}function al(e,t,r){const n=t.typeCondition;if(!n)return!0;const i=Nt(e,n);return i===r?!0:ar(i)?e.isSubType(i,r):!1}function KI(e){return e.alias?e.alias.value:e.name.value}function HI(e){return{OperationDefinition(t){if(t.operation==="subscription"){const r=e.getSchema(),n=r.getSubscriptionType();if(n){const i=t.name?t.name.value:null,o=Object.create(null),s=e.getDocument(),a=Object.create(null);for(const l of s.definitions)l.kind===exports.Kind.FRAGMENT_DEFINITION&&(a[l.name.value]=l);const c=VI(r,a,o,n,t.selectionSet);if(c.size>1){const m=[...c.values()].slice(1).flat();e.reportError(new ie(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:m}))}for(const l of c.values())l[0].name.value.startsWith("__")&&e.reportError(new ie(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:l}))}}}}}function ja(e,t){const r=new Map;for(const n of e){const i=t(n),o=r.get(i);o===void 0?r.set(i,[n]):o.push(n)}return r}function GI(e){return{DirectiveDefinition(n){var i;const o=(i=n.arguments)!==null&&i!==void 0?i:[];return r(`@${n.name.value}`,o)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(n){var i;const o=n.name.value,s=(i=n.fields)!==null&&i!==void 0?i:[];for(const c of s){var a;const l=c.name.value,u=(a=c.arguments)!==null&&a!==void 0?a:[];r(`${o}.${l}`,u)}return!1}function r(n,i){const o=ja(i,s=>s.name.value);for(const[s,a]of o)a.length>1&&e.reportError(new ie(`Argument "${n}(${s}:)" can only be defined once.`,{nodes:a.map(c=>c.name)}));return!1}}function Bf(e){return{Field:t,Directive:t};function t(r){var n;const i=(n=r.arguments)!==null&&n!==void 0?n:[],o=ja(i,s=>s.name.value);for(const[s,a]of o)a.length>1&&e.reportError(new ie(`There can be only one argument named "${s}".`,{nodes:a.map(c=>c.name)}))}}function YI(e){const t=Object.create(null),r=e.getSchema();return{DirectiveDefinition(n){const i=n.name.value;if(r!=null&&r.getDirective(i)){e.reportError(new ie(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:n.name}));return}return t[i]?e.reportError(new ie(`There can be only one directive named "@${i}".`,{nodes:[t[i],n.name]})):t[i]=n.name,!1}}}function zf(e){const t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():qr;for(const c of n)t[c.name]=!c.isRepeatable;const i=e.getDocument().definitions;for(const c of i)c.kind===exports.Kind.DIRECTIVE_DEFINITION&&(t[c.name.value]=!c.repeatable);const o=Object.create(null),s=Object.create(null),a=Object.create(null);return{enter(c){if(!("directives"in c)||!c.directives)return;let l;if(c.kind===exports.Kind.SCHEMA_DEFINITION||c.kind===exports.Kind.SCHEMA_EXTENSION)l=o;else if(bn(c)||Da(c)){const u=c.name.value;l=s[u],l===void 0&&(s[u]=l=Object.create(null))}else if(c.kind===exports.Kind.DIRECTIVE_DEFINITION||c.kind===exports.Kind.DIRECTIVE_EXTENSION){const u=c.name.value;l=a[u],l===void 0&&(a[u]=l=Object.create(null))}else l=Object.create(null);for(const u of c.directives){const m=u.name.value;t[m]&&(l[m]?e.reportError(new ie(`The directive "@${m}" can only be used once at this location.`,{nodes:[l[m],u]})):l[m]=u)}}}}function QI(e){const t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(o){var s;const a=o.name.value;n[a]||(n[a]=Object.create(null));const c=(s=o.values)!==null&&s!==void 0?s:[],l=n[a];for(const u of c){const m=u.name.value,y=r[a];ft(y)&&y.getValue(m)?e.reportError(new ie(`Enum value "${a}.${m}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:u.name})):l[m]?e.reportError(new ie(`Enum value "${a}.${m}" can only be defined once.`,{nodes:[l[m],u.name]})):l[m]=u.name}return!1}}function WI(e){const t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(o){var s;const a=o.name.value;n[a]||(n[a]=Object.create(null));const c=(s=o.fields)!==null&&s!==void 0?s:[],l=n[a];for(const u of c){const m=u.name.value;JI(r[a],m)?e.reportError(new ie(`Field "${a}.${m}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:u.name})):l[m]?e.reportError(new ie(`Field "${a}.${m}" can only be defined once.`,{nodes:[l[m],u.name]})):l[m]=u.name}return!1}}function JI(e,t){return Ke(e)||He(e)||tt(e)?e.getFields()[t]!=null:!1}function XI(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(r){const n=r.name.value;return t[n]?e.reportError(new ie(`There can be only one fragment named "${n}".`,{nodes:[t[n],r.name]})):t[n]=r.name,!1}}}function Vf(e){const t=[];let r=Object.create(null);return{ObjectValue:{enter(){t.push(r),r=Object.create(null)},leave(){const n=t.pop();n||Et(!1),r=n}},ObjectField(n){const i=n.name.value;r[i]?e.reportError(new ie(`There can be only one input field named "${i}".`,{nodes:[r[i],n.name]})):r[i]=n.name}}}function ZI(e){const t=Object.create(null);return{OperationDefinition(r){const n=r.name;return n&&(t[n.value]?e.reportError(new ie(`There can be only one operation named "${n.value}".`,{nodes:[t[n.value],n]})):t[n.value]=n),!1},FragmentDefinition:()=>!1}}function e_(e){const t=e.getSchema(),r=Object.create(null),n=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(o){var s;const a=(s=o.operationTypes)!==null&&s!==void 0?s:[];for(const c of a){const l=c.operation,u=r[l];n[l]?e.reportError(new ie(`Type for ${l} already defined in the schema. It cannot be redefined.`,{nodes:c})):u?e.reportError(new ie(`There can be only one ${l} type in schema.`,{nodes:[u,c]})):r[l]=c}return!1}}function t_(e){const t=Object.create(null),r=e.getSchema();return{ScalarTypeDefinition:n,ObjectTypeDefinition:n,InterfaceTypeDefinition:n,UnionTypeDefinition:n,EnumTypeDefinition:n,InputObjectTypeDefinition:n};function n(i){const o=i.name.value;if(r!=null&&r.getType(o)){e.reportError(new ie(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[o]?e.reportError(new ie(`There can be only one type named "${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1}}function r_(e){return{OperationDefinition(t){var r;const n=(r=t.variableDefinitions)!==null&&r!==void 0?r:[],i=ja(n,o=>o.variable.name.value);for(const[o,s]of i)s.length>1&&e.reportError(new ie(`There can be only one variable named "$${o}".`,{nodes:s.map(a=>a.variable.name)}))}}}function n_(e){return{ListValue(t){const r=qO(e.getParentInputType());if(!at(r))return rr(e,t),!1},ObjectValue(t){const r=ur(e.getInputType());if(!tt(r))return rr(e,t),!1;const n=lr(t.fields,i=>i.name.value);for(const i of Object.values(r.getFields()))if(!n[i.name]&&bf(i)){const s=me(i.type);e.reportError(new ie(`Field "${r.name}.${i.name}" of required type "${s}" was not provided.`,{nodes:t}))}r.isOneOf&&i_(e,t,r,n)},ObjectField(t){const r=ur(e.getParentInputType());if(!e.getInputType()&&tt(r)){const i=fr(t.name.value,Object.keys(r.getFields()));e.reportError(new ie(`Field "${t.name.value}" is not defined by type "${r.name}".`+Qt(i),{nodes:t}))}},NullValue(t){const r=e.getInputType();Ue(r)&&e.reportError(new ie(`Expected value of type "${me(r)}", found ${Je(t)}.`,{nodes:t}))},EnumValue:t=>rr(e,t),IntValue:t=>rr(e,t),FloatValue:t=>rr(e,t),StringValue:t=>rr(e,t),BooleanValue:t=>rr(e,t)}}function rr(e,t){const r=e.getInputType();if(!r)return;const n=ur(r);if(!Ir(n)){const i=me(r);e.reportError(new ie(`Expected value of type "${i}", found ${Je(t)}.`,{nodes:t}));return}try{if(n.parseLiteral(t,void 0)===void 0){const o=me(r);e.reportError(new ie(`Expected value of type "${o}", found ${Je(t)}.`,{nodes:t}))}}catch(i){const o=me(r);i instanceof ie?e.reportError(i):e.reportError(new ie(`Expected value of type "${o}", found ${Je(t)}; `+i.message,{nodes:t,originalError:i}))}}function i_(e,t,r,n){var i;const o=Object.keys(n);if(o.length!==1){e.reportError(new ie(`OneOf Input Object "${r.name}" must specify exactly one key.`,{nodes:[t]}));return}const a=(i=n[o[0]])===null||i===void 0?void 0:i.value;(!a||a.kind===exports.Kind.NULL)&&e.reportError(new ie(`Field "${r.name}.${o[0]}" must be non-null.`,{nodes:[t]}))}function o_(e){return{VariableDefinition(t){const r=Nt(e.getSchema(),t.type);if(r!==void 0&&!yn(r)){const n=t.variable.name.value,i=Je(t.type);e.reportError(new ie(`Variable "$${n}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}function s_(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){const n=e.getRecursiveVariableUsages(r);for(const{node:i,type:o,defaultValue:s,parentType:a}of n){const c=i.name.value,l=t[c];if(l&&o){const u=e.getSchema(),m=Nt(u,l.type);if(m&&!a_(u,m,l.defaultValue,o,s)){const y=me(m),h=me(o);e.reportError(new ie(`Variable "$${c}" of type "${y}" used in position expecting type "${h}".`,{nodes:[l,i]}))}tt(a)&&a.isOneOf&&uf(m)&&e.reportError(new ie(`Variable "$${c}" is of type "${m}" but must be non-nullable to be used for OneOf Input Object "${a}".`,{nodes:[l,i]}))}}}},VariableDefinition(r){t[r.variable.name.value]=r}}}function a_(e,t,r,n,i){if(Ue(n)&&!Ue(t)){if(!(r!=null&&r.kind!==exports.Kind.NULL)&&!(i!==void 0))return!1;const a=n.ofType;return Tr(e,t,a)}return Tr(e,t,n)}const c_=Object.freeze([wI]);Object.freeze([aI,ZI,gI,HI,qf,uI,o_,FI,cI,XI,hI,xI,kI,SI,r_,EI,TI,Df,zf,dI,Bf,n_,LI,s_,OI,Vf,...c_]);const p_=Object.freeze([vI,e_,t_,QI,WI,GI,YI,qf,Df,zf,qI,kf,Bf,Vf,Uf]);class l_{constructor(t,r){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=r}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let r;if(this._fragments)r=this._fragments;else{r=Object.create(null);for(const n of this.getDocument().definitions)n.kind===exports.Kind.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 i;for(;i=n.pop();)for(const o of i.selections)o.kind===exports.Kind.FRAGMENT_SPREAD?r.push(o):o.selectionSet&&n.push(o.selectionSet);this._fragmentSpreads.set(t,r)}return r}getRecursivelyReferencedFragments(t){let r=this._recursivelyReferencedFragments.get(t);if(!r){r=[];const n=Object.create(null),i=[t.selectionSet];let o;for(;o=i.pop();)for(const s of this.getFragmentSpreads(o)){const a=s.name.value;if(n[a]!==!0){n[a]=!0;const c=this.getFragment(a);c&&(r.push(c),i.push(c.selectionSet))}}this._recursivelyReferencedFragments.set(t,r)}return r}}class u_ extends l_{constructor(t,r,n){super(t,n),this._schema=r}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}_t(xa,e=>e.filter(t=>t!=="description"));function d_(e,t,r=p_){const n=[],i=new u_(e,t,s=>{n.push(s)}),o=r.map(s=>s(i));return Oa(e,cf(o)),n}function f_(e){const t=d_(e);if(t.length!==0)throw new Error(t.map(r=>r.message).join(`
73
+
74
+ `))}function m_(e,t,r){var n,i,o,s;const a=[],c=Object.create(null),l=Object.create(null),u=[];let m;const y=[];for(const A of t.definitions)if(A.kind===exports.Kind.SCHEMA_DEFINITION)m=A;else if(A.kind===exports.Kind.SCHEMA_EXTENSION)y.push(A);else if(bn(A))a.push(A);else if(Da(A)){const K=A.name.value,H=c[K];c[K]=H?H.concat([A]):[A]}else if(A.kind===exports.Kind.DIRECTIVE_DEFINITION)u.push(A);else if(A.kind===exports.Kind.DIRECTIVE_EXTENSION){const K=A.name.value,H=l[K];l[K]=H?H.concat([A]):[A]}if(Object.keys(c).length===0&&a.length===0&&Object.keys(l).length===0&&u.length===0&&y.length===0&&m==null)return e;const h=Object.create(null);for(const A of e.types)h[A.name]=g(A);for(const A of a){var w;const K=A.name.value;h[K]=(w=cl[K])!==null&&w!==void 0?w:$(A)}const b=Object.create(null);for(const A of e.directives)b[A.name]=de(A);const E={query:e.query&&v(e.query),mutation:e.mutation&&v(e.mutation),subscription:e.subscription&&v(e.subscription),...m&&G([m]),...G(y)},P=Object.values(b);return{description:(n=m)===null||n===void 0||(i=n.description)===null||i===void 0?void 0:i.value,...E,types:Object.values(h),directives:[...P.map(x),...u.map(ge)],extensions:Object.create(null),astNode:(o=m)!==null&&o!==void 0?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(y),assumeValid:(s=r?.assumeValid)!==null&&s!==void 0?s:!1};function I(A){return at(A)?new ct(I(A.ofType)):Ue(A)?new Ae(I(A.ofType)):v(A)}function v(A){return h[A.name]}function x(A){const K=A.toConfig();return new Lt({...K,args:_t(K.args,M)})}function g(A){if($f(A)||FO(A))return A;if(Xt(A))return k(A);if(Ke(A))return Y(A);if(He(A))return F(A);if(dt(A))return z(A);if(ft(A))return O(A);if(tt(A))return S(A);Et(!1,"Unexpected type: "+me(A))}function S(A){var K;const H=A.toConfig(),W=(K=c[H.name])!==null&&K!==void 0?K:[];return new Us({...H,fields:()=>({..._t(H.fields,ae=>({...ae,type:I(ae.type)})),...L(W)}),extensionASTNodes:H.extensionASTNodes.concat(W)})}function O(A){var K;const H=A.toConfig(),W=(K=c[A.name])!==null&&K!==void 0?K:[];return new rn({...H,values:{...H.values,...Q(W)},extensionASTNodes:H.extensionASTNodes.concat(W)})}function k(A){var K;const H=A.toConfig(),W=(K=c[H.name])!==null&&K!==void 0?K:[];let ae=H.specifiedByURL;for(const U of W){var C;ae=(C=pl(U))!==null&&C!==void 0?C:ae}return new Wt({...H,specifiedByURL:ae,extensionASTNodes:H.extensionASTNodes.concat(W)})}function Y(A){var K;const H=A.toConfig(),W=(K=c[H.name])!==null&&K!==void 0?K:[];return new zt({...H,interfaces:()=>[...A.getInterfaces().map(v),...V(W)],fields:()=>({..._t(H.fields,J),...Pe(W)}),extensionASTNodes:H.extensionASTNodes.concat(W)})}function F(A){var K;const H=A.toConfig(),W=(K=c[H.name])!==null&&K!==void 0?K:[];return new Ms({...H,interfaces:()=>[...A.getInterfaces().map(v),...V(W)],fields:()=>({..._t(H.fields,J),...Pe(W)}),extensionASTNodes:H.extensionASTNodes.concat(W)})}function z(A){var K;const H=A.toConfig(),W=(K=c[H.name])!==null&&K!==void 0?K:[];return new Ls({...H,types:()=>[...A.getTypes().map(v),..._(W)],extensionASTNodes:H.extensionASTNodes.concat(W)})}function J(A){return{...A,type:I(A.type),args:A.args&&_t(A.args,M)}}function M(A){return{...A,type:I(A.type)}}function G(A){const K={};for(const W of A){var H;const ae=(H=W.operationTypes)!==null&&H!==void 0?H:[];for(const C of ae)K[C.operation]=Se(C.type)}return K}function de(A){var K,H;const W=A.toConfig(),ae=(K=l[W.name])!==null&&K!==void 0?K:[],C=(H=W.deprecationReason)!==null&&H!==void 0?H:ae.map(U=>nr(U)).find(U=>U!=null);return new Lt({...W,deprecationReason:C,extensionASTNodes:W.extensionASTNodes.concat(ae)})}function Se(A){var K;const H=A.name.value,W=(K=cl[H])!==null&&K!==void 0?K:h[H];if(W===void 0)throw new Error(`Unknown type: "${H}".`);return W}function be(A){return A.kind===exports.Kind.LIST_TYPE?new ct(be(A.type)):A.kind===exports.Kind.NON_NULL_TYPE?new Ae(be(A.type)):Se(A)}function ge(A){var K,H,W;const ae=(K=l[A.name.value])!==null&&K!==void 0?K:[],C=(H=nr(A))!==null&&H!==void 0?H:ae.map(U=>nr(U)).find(U=>U!=null);return new Lt({name:A.name.value,description:(W=A.description)===null||W===void 0?void 0:W.value,locations:A.locations.map(({value:U})=>U),isRepeatable:A.repeatable,args:B(A.arguments),deprecationReason:C,astNode:A,extensionASTNodes:ae})}function Pe(A){const K=Object.create(null);for(const ae of A){var H;const C=(H=ae.fields)!==null&&H!==void 0?H:[];for(const U of C){var W;K[U.name.value]={type:be(U.type),description:(W=U.description)===null||W===void 0?void 0:W.value,args:B(U.arguments),deprecationReason:nr(U),astNode:U}}}return K}function B(A){const K=A??[],H=Object.create(null);for(const ae of K){var W;const C=be(ae.type);H[ae.name.value]={type:C,description:(W=ae.description)===null||W===void 0?void 0:W.value,defaultValue:or(ae.defaultValue,C),deprecationReason:nr(ae),astNode:ae}}return H}function L(A){const K=Object.create(null);for(const ae of A){var H;const C=(H=ae.fields)!==null&&H!==void 0?H:[];for(const U of C){var W;const X=be(U.type);K[U.name.value]={type:X,description:(W=U.description)===null||W===void 0?void 0:W.value,defaultValue:or(U.defaultValue,X),deprecationReason:nr(U),astNode:U}}}return K}function Q(A){const K=Object.create(null);for(const ae of A){var H;const C=(H=ae.values)!==null&&H!==void 0?H:[];for(const U of C){var W;K[U.name.value]={description:(W=U.description)===null||W===void 0?void 0:W.value,deprecationReason:nr(U),astNode:U}}}return K}function V(A){return A.flatMap(K=>{var H,W;return(H=(W=K.interfaces)===null||W===void 0?void 0:W.map(Se))!==null&&H!==void 0?H:[]})}function _(A){return A.flatMap(K=>{var H,W;return(H=(W=K.types)===null||W===void 0?void 0:W.map(Se))!==null&&H!==void 0?H:[]})}function $(A){var K;const H=A.name.value,W=(K=c[H])!==null&&K!==void 0?K:[];switch(A.kind){case exports.Kind.OBJECT_TYPE_DEFINITION:{var ae;const we=[A,...W];return new zt({name:H,description:(ae=A.description)===null||ae===void 0?void 0:ae.value,interfaces:()=>V(we),fields:()=>Pe(we),astNode:A,extensionASTNodes:W})}case exports.Kind.INTERFACE_TYPE_DEFINITION:{var C;const we=[A,...W];return new Ms({name:H,description:(C=A.description)===null||C===void 0?void 0:C.value,interfaces:()=>V(we),fields:()=>Pe(we),astNode:A,extensionASTNodes:W})}case exports.Kind.ENUM_TYPE_DEFINITION:{var U;const we=[A,...W];return new rn({name:H,description:(U=A.description)===null||U===void 0?void 0:U.value,values:Q(we),astNode:A,extensionASTNodes:W})}case exports.Kind.UNION_TYPE_DEFINITION:{var X;const we=[A,...W];return new Ls({name:H,description:(X=A.description)===null||X===void 0?void 0:X.value,types:()=>_(we),astNode:A,extensionASTNodes:W})}case exports.Kind.SCALAR_TYPE_DEFINITION:{var re;return new Wt({name:H,description:(re=A.description)===null||re===void 0?void 0:re.value,specifiedByURL:pl(A),astNode:A,extensionASTNodes:W})}case exports.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var ye;const we=[A,...W];return new Us({name:H,description:(ye=A.description)===null||ye===void 0?void 0:ye.value,fields:()=>L(we),astNode:A,extensionASTNodes:W,isOneOf:h_(A)})}}}}const cl=lr([...Aa,...Na],e=>e.name);function nr(e){const t=nn(Ra,e);return t?.reason}function pl(e){const t=nn(Tf,e);return t?.url}function h_(e){return!!nn(Pf,e)}function y_(e,t){e!=null&&e.kind===exports.Kind.DOCUMENT||Le(!1,"Must provide valid Document AST."),t?.assumeValid!==!0&&t?.assumeValidSDL!==!0&&f_(e);const n=m_({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(n.astNode==null)for(const o of n.types)switch(o.name){case"Query":n.query=o;break;case"Mutation":n.mutation=o;break;case"Subscription":n.subscription=o;break}const i=[...n.directives,...qr.filter(o=>n.directives.every(s=>s.name!==o.name))];return new Nf({...n,directives:i})}const g_=()=>({Document:{enter:(e,t)=>{let r;try{r=y_(e,{assumeValidSDL:!1})}catch(n){v_(n,t);return}for(const n of HO(r))Kf(n,t)}}});function v_(e,t){if(e instanceof ie)Kf(e,t);else if(e instanceof Error)t.report({message:e.message});else throw e}function Kf(e,t){const r=e.locations?.[0];t.report({message:e.message,node:e.nodes?.[0],loc:r?{start:{line:r.line,col:r.column}}:void 0})}const b_=()=>{const e=(t,r)=>{(!t.description||t.description.value.trim()==="")&&r.report({message:`Type \`${t.name.value}\` should have a non-empty description.`,node:t.name})};return{ObjectTypeDefinition:e,InterfaceTypeDefinition:e,EnumTypeDefinition:e,InputObjectTypeDefinition:e,UnionTypeDefinition:e,ScalarTypeDefinition:e}},w_={struct:g_,assertions:tO,"no-unused-types":cO,"type-description":b_},Ma=()=>({Info(e,{report:t}){e.license||t({message:bo("Info","license"),location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/info-license"})}}),Hf=()=>({Paths(e,{report:t,location:r}){const n=[];for(const i of Object.keys(e)){const o=n.find(s=>S_(s,i));o&&t({message:`Paths should resolve unambiguously. Found two ambiguous paths: \`${o}\` and \`${i}\`.`,location:r.child([i]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-ambiguous-paths"}),n.push(i)}}});function S_(e,t){const r=e.split("/"),n=t.split("/");if(r.length!==n.length)return!1;let i=0,o=0,s=!0;for(let a=0;a<r.length;a++){const c=r[a].match(/^{.+?}$/),l=n[a].match(/^{.+?}$/);if(c||l){c&&i++,l&&o++;continue}else r[a]!==n[a]&&(s=!1)}return s&&i===o}function Gf(e){return e.startsWith("{")&&e.endsWith("}")}function E_(e){const t=e.split(/(?:[-._])|([A-Z][a-z]+)/).filter(N.isTruthy).map(n=>n.toLocaleLowerCase()),r=e.split(/([A-Z]{2,})/).filter(n=>n&&n===n.toUpperCase()).map(n=>n.toLocaleLowerCase());return new Set([...t,...r])}const x_=["get","head","post","put","patch","delete","options","trace"],Yf=({splitIntoWords:e,excludedPaths:t})=>({PathItem(r,{key:n,report:i,location:o}){const s=n.toString();if(!s.startsWith("/")||t?.some(c=>s===c))return;const a=s.split("/");for(const c of a){if(!c||Gf(c))continue;const l=u=>e?E_(c).has(u):c.toLocaleLowerCase().includes(u);for(const u of x_)l(u)&&i({message:`path \`${s}\` should not contain http verb ${u}`,location:o.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-http-verbs-in-paths"})}}}),Qf=()=>({Paths(e,{report:t,location:r}){const n=new Map;for(const i of Object.keys(e)){const o=i.replace(/{.+?}/g,"{VARIABLE}"),s=n.get(o);s?t({message:`The path already exists which differs only by path parameter name(s): \`${s}\` and \`${i}\`.`,location:r.child([i]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-identical-paths"}):n.set(o,i)}}});var Ii={exports:{}},_i={},Ai={},ll;function T_(){if(ll)return Ai;ll=1,Object.defineProperty(Ai,"__esModule",{value:!0});const e=Oe(),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:s=>(0,e.str)`must be ${o(s).okStr} ${s.schemaCode}`,params:s=>(0,e._)`{comparison: ${o(s).okStr}, limit: ${s.schemaCode}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(s){const{data:a,schemaCode:c}=s;s.fail$data((0,e._)`${a} ${o(s).fail} ${c} || isNaN(${a})`)}};function o(s){var a;const c=s.keyword,l=!((a=s.parentSchema)===null||a===void 0)&&a[r[c].exclusive]?1:0;return r[c].ops[l]}return Ai.default=i,Ai}var Ri={},ul;function P_(){if(ul)return Ri;ul=1,Object.defineProperty(Ri,"__esModule",{value:!0});const e={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},t={keyword:Object.keys(e),type:"number",schemaType:"boolean",code({keyword:r,parentSchema:n}){const i=e[r];if(n[i]===void 0)throw new Error(`${r} can only be used with ${i}`)}};return Ri.default=t,Ri}var dl;function O_(){if(dl)return _i;dl=1,Object.defineProperty(_i,"__esModule",{value:!0});const e=go(),t=fa(),r=bd(),n=ma(),i=ua(),o=T_(),s=P_(),a=["title","description","default"],c=["$schema","id","$defs",{keyword:"$comment"},"definitions",e.default],l=[...i.default.slice(1),o.default,s.default],u=[c,l,(0,t.default)(),n.default,a,r.default];return _i.default=u,_i}const I_="http://json-schema.org/draft-04/schema#",__="http://json-schema.org/draft-04/schema#",A_="Core schema meta-schema",R_={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}},$_="object",N_={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:"#"}},k_={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},D_={id:I_,$schema:__,description:A_,definitions:R_,type:$_,properties:N_,dependencies:k_,default:{}};var fl;function q_(){return fl||(fl=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=pa(),n=O_(),i=ha(),o=D_,s=["/properties"],a="http://json-schema.org/draft-04/schema";class c extends r.default{constructor(w={}){super({...w,schemaId:"id",dynamicRef:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(w=>this.addVocabulary(w)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const w=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema(w,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}t.Ajv=c,e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var l=Rr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=Oe();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var m=cn();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return m.default}});var y=$r();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return y.default}})})(Ii,Ii.exports)),Ii.exports}var C_=q_();const j_=ee.getDefaultExportFromCjs(C_);var $i={exports:{}},Jo={},ml;function M_(){return ml||(ml=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(z,J){return{validate:z,compare:J}}e.fullFormats={date:t(o,s),time:t(c(!0),l),"date-time":t(y(!0),h),"iso-time":t(c(),u),"iso-date-time":t(y(),w),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:P,"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:F,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:v,int32:{type:"number",validate:S},int64:{type:"number",validate:O},float:{type:"number",validate:k},double:{type:"number",validate:k},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),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,h),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,u),"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,w),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)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(z){const J=n.exec(z);if(!J)return!1;const M=+J[1],G=+J[2],de=+J[3];return G>=1&&G<=12&&de>=1&&de<=(G===2&&r(M)?29:i[G])}function s(z,J){if(z&&J)return z>J?1:z<J?-1:0}const a=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function c(z){return function(M){const G=a.exec(M);if(!G)return!1;const de=+G[1],Se=+G[2],be=+G[3],ge=G[4],Pe=G[5]==="-"?-1:1,B=+(G[6]||0),L=+(G[7]||0);if(B>23||L>59||z&&!ge)return!1;if(de<=23&&Se<=59&&be<60)return!0;const Q=Se-L*Pe,V=de-B*Pe-(Q<0?1:0);return(V===23||V===-1)&&(Q===59||Q===-1)&&be<61}}function l(z,J){if(!(z&&J))return;const M=new Date("2020-01-01T"+z).valueOf(),G=new Date("2020-01-01T"+J).valueOf();if(M&&G)return M-G}function u(z,J){if(!(z&&J))return;const M=a.exec(z),G=a.exec(J);if(M&&G)return z=M[1]+M[2]+M[3],J=G[1]+G[2]+G[3],z>J?1:z<J?-1:0}const m=/t|\s/i;function y(z){const J=c(z);return function(G){const de=G.split(m);return de.length===2&&o(de[0])&&J(de[1])}}function h(z,J){if(!(z&&J))return;const M=new Date(z).valueOf(),G=new Date(J).valueOf();if(M&&G)return M-G}function w(z,J){if(!(z&&J))return;const[M,G]=z.split(m),[de,Se]=J.split(m),be=s(M,de);if(be!==void 0)return be||l(G,Se)}const b=/\/|:/,E=/^(?:[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 P(z){return b.test(z)&&E.test(z)}const I=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function v(z){return I.lastIndex=0,I.test(z)}const x=-2147483648,g=2**31-1;function S(z){return Number.isInteger(z)&&z<=g&&z>=x}function O(z){return Number.isInteger(z)}function k(){return!0}const Y=/[^\\]\\Z/;function F(z){if(Y.test(z))return!1;try{return new RegExp(z),!0}catch{return!1}}})(Jo)),Jo}var Xo={},Ni={exports:{}},ki={},hl;function L_(){if(hl)return ki;hl=1,Object.defineProperty(ki,"__esModule",{value:!0});const e=fd(),t=ua(),r=fa(),n=ma(),i=wd(),o=[e.default,t.default,(0,r.default)(),n.default,i.metadataVocabulary,i.contentVocabulary];return ki.default=o,ki}const U_="http://json-schema.org/draft-07/schema#",F_="http://json-schema.org/draft-07/schema#",B_="Core schema meta-schema",z_={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:[]}},V_=["object","boolean"],K_={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},H_={$schema:U_,$id:F_,title:B_,definitions:z_,type:V_,properties:K_,default:!0};var yl;function G_(){return yl||(yl=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=pa(),n=L_(),i=ha(),o=H_,s=["/properties"],a="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(w=>this.addVocabulary(w)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const w=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema(w,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var l=Rr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=Oe();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var m=cn();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return m.default}});var y=$r();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return y.default}})})(Ni,Ni.exports)),Ni.exports}var gl;function Y_(){return gl||(gl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=G_(),r=Oe(),n=r.operators,i={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}},o={message:({keyword:a,schemaCode:c})=>(0,r.str)`should be ${i[a].okStr} ${c}`,params:({keyword:a,schemaCode:c})=>(0,r._)`{comparison: ${i[a].okStr}, limit: ${c}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:o,code(a){const{gen:c,data:l,schemaCode:u,keyword:m,it:y}=a,{opts:h,self:w}=y;if(!h.validateFormats)return;const b=new t.KeywordCxt(y,w.RULES.all.format.definition,"format");b.$data?E():P();function E(){const v=c.scopeValue("formats",{ref:w.formats,code:h.code.formats}),x=c.const("fmt",(0,r._)`${v}[${b.schemaCode}]`);a.fail$data((0,r.or)((0,r._)`typeof ${x} != "object"`,(0,r._)`${x} instanceof RegExp`,(0,r._)`typeof ${x}.compare != "function"`,I(x)))}function P(){const v=b.schema,x=w.formats[v];if(!x||x===!0)return;if(typeof x!="object"||x instanceof RegExp||typeof x.compare!="function")throw new Error(`"${m}": format "${v}" does not define "compare" function`);const g=c.scopeValue("formats",{key:v,ref:x,code:h.code.formats?(0,r._)`${h.code.formats}${(0,r.getProperty)(v)}`:void 0});a.fail$data(I(g))}function I(v){return(0,r._)`${v}.compare(${l}, ${u}) ${i[m].fail} 0`}},dependencies:["format"]};const s=a=>(a.addKeyword(e.formatLimitDefinition),a);e.default=s})(Xo)),Xo}var vl;function Q_(){return vl||(vl=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=M_(),n=Y_(),i=Oe(),o=new i.Name("fullFormats"),s=new i.Name("fastFormats"),a=(l,u={keywords:!0})=>{if(Array.isArray(u))return c(l,u,r.fullFormats,o),l;const[m,y]=u.mode==="fast"?[r.fastFormats,s]:[r.fullFormats,o],h=u.formats||r.formatNames;return c(l,h,m,y),u.keywords&&(0,n.default)(l),l};a.get=(l,u="full")=>{const y=(u==="fast"?r.fastFormats:r.fullFormats)[l];if(!y)throw new Error(`Unknown format "${l}"`);return y};function c(l,u,m,y){var h,w;(h=(w=l.opts.code).formats)!==null&&h!==void 0||(w.formats=(0,i._)`require("ajv-formats/dist/formats").${y}`);for(const b of u)l.addFormat(b,m[b])}e.exports=t=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a})($i,$i.exports)),$i.exports}var W_=Q_();const J_=ee.getDefaultExportFromCjs(W_);function bl(e){return e==="draft4"?"id":"$id"}function X_(e){return e==="oas2"||e==="oas3_0"?"draft4":"2020"}class La{instances={};validate(t,r,n){const{schemaLoc:i,instancePath:o,resolve:s,allowAdditionalProperties:a,ajvContext:c,specVersion:l}=n,u=X_(l),m=this.getValidator(r,i,s,a,u);if(!m)return{valid:!0,errors:[]};const y={instancePath:o,parentData:{fake:{}},parentDataProperty:"fake",rootData:{},dynamicAnchors:{}};return{valid:!!m.call(c??{},t,y),errors:(m.errors||[]).map(w)};function w(b){let E=b.message;const P=b.keyword==="enum"?b.params.allowedValues:void 0;P&&(E+=` ${P.map(x=>`"${x}"`).join(", ")}`),b.keyword==="type"&&(E=`type ${E}`);const I=b.instancePath.substring(o.length+1),v=I.substring(I.lastIndexOf("/")+1);if(v&&(E=`\`${v}\` property ${E}`),b.keyword==="additionalProperties"||b.keyword==="unevaluatedProperties"){const x=b.params.additionalProperty||b.params.unevaluatedProperty;E=`${E} \`${x}\``,b.instancePath+="/"+N.escapePointerFragment(x)}return{...b,message:E,suggest:P}}}getAjv(t,r){if(!this.instances[r]){const n=bl(r),i={schemaId:n,meta:!0,allErrors:!0,strictSchema:!1,inlineRefs:!1,validateSchema:!1,discriminator:!0,allowUnionTypes:!0,validateFormats:!0,passContext:!0,logger:!1,loadSchemaSync(o,s,a){const c=decodeURI(o.split("#")[0]),l=t({$ref:s},c);return!l||!l.location?!1:{[n]:encodeURI(l.location.source.absoluteRef)+"#"+a,...l.node}}};this.instances[r]=r==="2020"?new ya(i):new j_(i),J_(this.instances[r])}return this.instances[r]}getValidator(t,r,n,i,o){const s=this.getAjv(n,o),a=encodeURI(r.absolutePointer),c=bl(o);return s.getSchema(a)||(s.setDefaultUnevaluatedProperties(i),s.addSchema({[c]:a,...t},a)),s.getSchema(a)}}const Wf=e=>{const t=new La;return{Parameter:{leave(r,n){if(Bt(r.example)&&en({example:r.example,schema:r.schema,options:{location:n.location.child("example"),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:{apiContext:"request"}},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-parameter-examples"}),ee.isPlainObject(r.examples))for(const[i,o]of Object.entries(r.examples)){const s=Jd(o);s&&en({example:s.value,schema:r.schema,options:{location:n.location.child(["examples",i,s.field]),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:{apiContext:"request"}},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-parameter-examples"})}}}}},Jf=e=>{const t=new La;return{Schema:{leave(r,n){const i=r.examples;if(Array.isArray(i))for(const o of i)en({example:o,schema:r,options:{location:n.location.child(["examples",i.indexOf(o)]),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-schema-examples"});if(Bt(r.example)){if(r.nullable===!0&&r.example===null&&r.type!==void 0)return;en({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"})}}}}},Xf=()=>({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"})}}),Zf=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){const n=Object.keys(t||{});to({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||{});to({responseCodes:n,codeRange:"2XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response"})}}}),em=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){const n=Object.keys(t||{});to({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||{});to({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}}}),tm=()=>({Operation(e,t){Nr({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-description"})}}),rm=()=>{const e=new Set;return{Operation(t,{report:r,location:n}){t.operationId&&(e.has(t.operationId)&&r({message:"Every operation must have a unique `operationId`.",location:n.child([t.operationId]),reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId-unique"}),e.add(t.operationId))}}},Z_=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/,nm=()=>({Operation(e,{report:t,location:r}){e.operationId&&!Z_.test(e.operationId)&&t({message:"Operation `operationId` should not have URL invalid characters.",location:r.child(["operationId"]),reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId-url-safe"})}}),im=()=>{let e,t;return{PathItem:{enter(){e=new Set},Parameter(r,{report:n,key:i,parentLocations:o}){const s=`${r.in}___${r.name}`;e.has(s)&&n({message:`Paths must have unique \`name\` + \`in\` parameters.
75
+ Repeats of \`in:${r.in}\` + \`name:${r.name}\`.`,location:o.PathItem.child(["parameters",i]),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:i,parentLocations:o}){const s=`${r.in}___${r.name}`;t.has(s)&&n({message:`Operations must have unique \`name\` + \`in\` parameters. Repeats of \`in:${r.in}\` + \`name:${r.name}\`.`,location:o.Operation.child(["parameters",i]),reference:"https://redocly.com/docs/cli/rules/oas/operation-parameters-unique"}),t.add(s)}}}}},om=()=>({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"})}}),sm=()=>({Operation(e,t){Nr({fieldName:"summary",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-summary"})}}),am=()=>{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 i=0;i<t.tags.length;i++)e.has(t.tags[i])||r({message:"Operation tags should be defined in global tags.",location:n.child(["tags",i]),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"})}}},cm=()=>({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"})}}),pm=()=>({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"})}}),eA=["get","head","post","put","patch","delete","options","query","trace"],lm=e=>{const t=e&&e.order||eA;if(!Array.isArray(t))throw new Error("path-http-verbs-order `order` option must be an array");return{PathItem(r,{report:n,location:i}){const o=Object.keys(r).filter(s=>t.includes(s));for(let s=0;s<o.length-1;s++){const a=t.indexOf(o[s]);t.indexOf(o[s+1])<a&&n({message:"Operation http verbs must be ordered.",location:{reportOnKey:!0,...i.child(o[s+1])},reference:"https://redocly.com/docs/cli/rules/oas/path-http-verbs-order"})}}}},um=()=>({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"})}}}),tA=/\{([a-zA-Z0-9_.-]+)\}+/g,rA=2,so=()=>{const e={current:null};return{PathItem:{enter(r,{key:n}){dm(e,n)},leave(){nA(e)},Parameter(r,{report:n,location:i,rawLocation:o}){fm({parameter:r,pathContext:e,report:n,location:i,rawLocation:o})},Operation:mm(e,new Set)}}},dm=(e,t)=>{e.current={path:t,templateParams:iA(t),definedParams:new Set}},nA=e=>{e.current=null},fm=({parameter:e,pathContext:t,report:r,location:n,rawLocation:i})=>{e.in==="path"&&e.name&&t.current&&(t.current.definedParams.add(e.name),hm({paramName:e.name,templateParams:t.current.templateParams,path:t.current.path,report:r,location:n,rawLocation:i}))},mm=(e,t,r=0)=>{const n=(o,s,a)=>{o({message:`Maximum callback nesting depth (${a}) reached. Path parameter validation is limited beyond this depth to prevent infinite recursion.`,location:s,reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})};if(r>=rA)return{enter:()=>{},leave:(o,{report:s,location:a})=>{n(s,a,r)},Parameter:()=>{},Callback:void 0};const i=()=>{let o=null;return{enter(s,{key:a}){o=e.current,dm(e,a)},leave(){e.current=o},Parameter(s,{report:a,location:c,rawLocation:l}){fm({parameter:s,pathContext:e,report:a,location:c,rawLocation:l})},get Operation(){return mm(e,t,r+1)}}};return{enter(){t=new Set},leave(o,{report:s,location:a}){!e.current||!t||sA({templateParams:e.current.templateParams,definedOperationParams:t,definedPathParams:e.current.definedParams,path:e.current.path,report:s,location:a})},Parameter(o,{report:s,location:a,rawLocation:c}){oA(o,t),o.in==="path"&&o.name&&e.current&&(t.add(o.name),hm({paramName:o.name,templateParams:e.current.templateParams,path:e.current.path,report:s,location:a,rawLocation:c}))},Callback:{get PathItem(){return i()}}}},iA=e=>new Set(Array.from(e.matchAll(tA)).map(t=>t[1])),oA=(e,t)=>{ee.isPlainObject(e)&&"in"in e&&"name"in e&&e.in==="path"&&e.name&&t.add(e.name)},hm=({paramName:e,templateParams:t,path:r,report:n,location:i,rawLocation:o})=>{if(!t.has(e)){const s=`Path parameter \`${e}\` is not used in the path \`${r}\`.`,a=o===i?void 0:o;n({message:s,location:i.child(["name"]),from:a,reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})}},sA=({templateParams:e,definedOperationParams:t,definedPathParams:r,path:n,report:i,location:o})=>{const s=new Set([...t,...r]);for(const a of e)s.has(a)||i({message:`The operation does not define the path parameter \`{${a}}\` expected by path \`${n}\`.`,location:o.child(["parameters"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})},ym=e=>{const{ignoreLastPathSegment:t,exceptions:r}=e;return{PathItem:{leave(n,{report:i,key:o,location:s}){const a=o.toString();if(a.startsWith("/")){const c=a.split("/");c.shift(),t&&c.length>0&&c.pop();for(const l of c)r&&r.includes(l)||!Gf(l)&&du.isSingular(l)&&i({message:`path segment \`${l}\` should be plural.`,location:s.key(),reference:"https://redocly.com/docs/cli/rules/oas/path-segment-plural"})}}}}},gm=()=>({PathItem(e,{report:t,key:r}){r.substr(1).split("/").filter(i=>i!=="").every(i=>/^{.+}$/.test(i)||/^[a-z0-9-.]+$/.test(i))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/paths-kebab-case"})}}),vm=()=>{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:i,report:o}){t.has(n)&&r.type==="string"&&(r?.minLength||o({message:"Property minLength is required.",location:i.key(),reference:"https://redocly.com/docs/cli/rules/oas/required-string-property-missing-min-length"}))}}}}}};function _r(e){return`${e}`.replace(/^(\d)\d\d$/,(t,r)=>`${r}XX`)}const bm=e=>{const t=e.names||{};return{Operation:{Response:{enter:(r,{report:n,location:i,key:o})=>{const s=t[o]||t[_r(o)]||t[_r(o).toLowerCase()]||[];for(const a of s)(!r?.headers||!Object.keys(r?.headers).some(c=>c.toLowerCase()===a.toLowerCase()))&&n({message:`Response object must contain a "${a}" header.`,location:i.child("headers").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-header"})}}}}},wl=["string","integer","number","boolean","null"],wm=()=>({SchemaProperties(e,{report:t,location:r,specVersion:n,resolve:i}){for(const o of Object.keys(e)){const s=i(N.getOwn(e,o)).node;!s||!aA(s)||s.example===void 0&&s.examples===void 0&&t({message:`Scalar property should have "example"${n==="oas3_1"||n==="oas3_2"?' or "examples"':""} defined.`,location:r.child(o).key(),reference:"https://redocly.com/docs/cli/rules/oas/scalar-property-missing-example"})}}});function aA(e){return!e.type||e.allOf||e.anyOf||e.oneOf||e.format==="binary"?!1:Array.isArray(e.type)?e.type.every(t=>wl.includes(t)):wl.includes(e.type)}const Sm=e=>{const t=new Map,r=[];let n=!0,i;return{Root:{leave(o,{report:s}){for(const[a,c]of t.entries())if(!c.defined)for(const l of c.from)s({message:`There is no \`${a}\` security scheme defined.`,location:l.key(),reference:"https://redocly.com/docs/cli/rules/oas/security-defined"});if(!(o.security||n))for(const a of r)s({message:"Every operation should have security defined on it or on the root level.",location:a.key(),reference:"https://redocly.com/docs/cli/rules/oas/security-defined"})}},SecurityScheme(o,{key:s}){t.set(s.toString(),{defined:!0,from:[]})},SecurityRequirement(o,{location:s}){for(const a of Object.keys(o)){const c=t.get(a),l=s.child([a]);c?c.from.push(l):t.set(a,{from:[l]})}},PathItem:{enter(o,{key:s}){i=s},Operation(o,{location:s,key:a}){const c=e.exceptions?.some(l=>l.path===i&&(!l.methods||l.methods?.some(u=>u.toLowerCase()===a)));!o?.security&&!c&&(n=!1,r.push(s))}}}},Em=()=>{const e=["Schema","Response","Parameter","RequestBody","Example","Header","SecurityScheme","Link","Callback","PathItem"];return{any(t,{report:r,rawNode:n,rawLocation:i,type:o}){!e.includes(o.name)&&N.isRef(n)&&r({message:"Field $ref is not expected here.",location:i.child("$ref").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-strict-refs"})}}},cA=e=>{const t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(o=>`\`${o}\``),i=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter(o,{report:s,location:a}){o.type==="boolean"&&!r.test(o.name)&&s({message:`Boolean parameter \`${o.name}\` should have ${i} prefix.`,location:a.child("name"),reference:"https://redocly.com/docs/cli/rules/oas/boolean-parameter-prefixes"})}}};function ao({type:e,value:t,ctx:r,allowedValues:n,reference:i}){const{report:o,location:s}=r,a=e==="consumes"?"request":"response";if(!n)throw new Error(`Parameter "allowedValues" is not provided for "${a}-mime-type" rule`);if(t[e])for(const c of t[e])n.includes(c)||o({message:`Mime type "${c}" is not allowed`,location:s.child(t[e].indexOf(c)).key(),reference:i})}function Pr({type:e,value:t,ctx:r,allowedValues:n,reference:i}){const{report:o,location:s}=r,a=e==="consumes"?"request":"response";if(!n)throw new Error(`Parameter "allowedValues" is not provided for "${a}-mime-type" rule`);if(t.content)for(const c of Object.keys(t.content))n.includes(c)||o({message:`Mime type "${c}" is not allowed`,location:s.child("content").child(c).key(),reference:i})}const pA=({allowedValues:e})=>({Root(t,r){ao({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})},Operation:{leave(t,r){ao({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}),lA=e=>{const t=e.names||{};let r;return{Operation:{Response:{skip:(n,i)=>`${i}`=="204",enter:(n,i)=>{r=i.key},Schema(n,{report:i,location:o}){if(n.type!=="object")return;const s=t[r]||t[_r(r)]||t[_r(r).toLowerCase()]||[];for(const a of s)n.properties?.[a]||i({message:`Response object must contain a top-level "${a}" property.`,location:o.child("properties").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-property"})}}}}},uA=({allowedValues:e})=>({Root(t,r){ao({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})},Operation:{leave(t,r){ao({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}),dA={struct:Kt,"no-invalid-schema-examples":Jf,"no-invalid-parameter-examples":Wf,"info-contact":kr,"info-license":Ma,"info-license-strict":Eo,"tag-description":Oo,"tags-alphabetical":Io,"paths-kebab-case":gm,"no-enum-type-mismatch":dn,"boolean-parameter-prefixes":cA,"no-path-trailing-slash":Xf,"operation-2xx-response":Zf,"operation-4xx-response":em,assertions:Jt,"operation-operationId-unique":rm,"operation-parameters-unique":im,"path-parameters-defined":so,"operation-tag-defined":am,"path-declaration-must-exist":pm,"operation-operationId-url-safe":nm,"operation-operationId":To,"operation-summary":sm,"operation-description":tm,"path-not-include-query":um,"path-params-defined":so,"parameter-description":cm,"operation-singular-tag":om,"security-defined":Sm,"security-scopes-defined":Ea,"no-unresolved-refs":Vt,"no-identical-paths":Qf,"no-ambiguous-paths":Hf,"path-http-verbs-order":lm,"no-http-verbs-in-paths":Yf,"request-mime-type":pA,"response-mime-type":uA,"path-segment-plural":ym,"response-contains-header":bm,"response-contains-property":lA,"scalar-property-missing-example":wm,"required-string-property-missing-min-length":vm,"spec-strict-refs":Em,"spec-ref-siblings":Po,"no-required-schema-properties-undefined":fn,"no-schema-type-mismatch":mn,"no-duplicated-enum-values":un,"no-unsafe-markdown":hn,"no-duplicated-tag-names":xo},fA={},mA=e=>({Parameter:{leave(t,r){if(!t.schema)return;const n=N.isRef(t.schema)?r.resolve(t.schema).node:t.schema;n&&hA(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 hA(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 yA=e=>{const t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(o=>`\`${o}\``),i=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter:{Schema(o,{report:s,parentLocations:a},c){o.type==="boolean"&&!r.test(c.Parameter.name)&&s({message:`Boolean parameter \`${c.Parameter.name}\` should have ${i} prefix.`,location:a.Parameter.child(["name"]),reference:"https://redocly.com/docs/cli/rules/oas/boolean-parameter-prefixes"})}}}},Ks="Schema",Hs="Parameter",Gs="Response",Ys="RequestBody",gA={[Ks]:"schemas",[Hs]:"parameters",[Gs]:"responses",[Ys]:"requestBodies"},vA=e=>{const t=new Map,r=[];e.schemas!=="off"&&r.push(Ks),e.parameters!=="off"&&r.push(Hs),e.responses!=="off"&&r.push(Gs),e.requestBodies!=="off"&&r.push(Ys);const n={ref:{leave(a,{type:c,resolve:l}){const u=c.name;if(r.includes(u)){const m=l(a);if(!m.location)return;s(u,m.location)}}},Root:{leave(a,c){t.forEach((l,u,m)=>{if(l.absolutePointers.size>1){const y=SA(u),h=bA(y.typeName),w=h?e[h]:null;for(const b of l.locations){const E=Array.from(l.absolutePointers).filter(I=>I!==b.absolutePointer.toString()).map(I=>`- ${I}`).join(`
76
+ `),P={message:`Component '${h}/${y.componentName}' is not unique. It is also defined at:
77
+ ${E}`,location:b,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};w&&(P.forceSeverity=w),c.report(P)}}})}}};return e.schemas!="off"&&(n.NamedSchemas={Schema(a,{location:c}){s(Ks,c)}}),e.responses!="off"&&(n.NamedResponses={Response(a,{location:c}){s(Gs,c)}}),e.parameters!="off"&&(n.NamedParameters={Parameter(a,{location:c}){s(Hs,c)}}),e.requestBodies!="off"&&(n.NamedRequestBodies={RequestBody(a,{location:c}){s(Ys,c)}}),n;function i(a){const c=a.split("/").slice(-1)[0];return N.isSupportedExtension(c)?c.slice(0,c.lastIndexOf(".")):c}function o(a,c,l){const u=wA(a,c),m=t.get(u)??{absolutePointers:new Set,locations:[]},y=l.absolutePointer.toString();m.absolutePointers.has(y)||(m.absolutePointers.add(y),m.locations.push(l)),t.set(u,m)}function s(a,c){const l=i(c.absolutePointer.toString());o(a,l,c)}};function bA(e){return gA[e]??null}function wA(e,t){return`${e}/${t}`}function SA(e){const[t,r]=e.split("/");return{typeName:t,componentName:r}}const EA=()=>({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"})}}),xA=()=>({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"})}}),TA=e=>{const t=new La,r=i=>i.schema===void 0,n=i=>(o,s)=>{const{location:a,resolve:c}=s;if(Bt(o.example))l(o.example,a.child("example"));else if(ee.isPlainObject(o.examples))for(const u of Object.keys(o.examples))l(o.examples[u],a.child(["examples",u]),!0);function l(u,m,y){if(N.isRef(u)){const w=c(u);if(!w.location)return;m=w.location,u=w.node}let h=u;if(y){const w=Jd(u);if(!w)return;h=w.value,m=m.child(w.field)}en({example:h,schema:o.schema,options:{location:m,ctx:s,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:i},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"})}}}},PA=()=>({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"})}}),OA=()=>({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"})}}),IA=()=>({Root(e,{report:t,location:r}){if(!e.servers||e.servers.length===0)return;const n=[];if(Array.isArray(e.servers))for(const i of e.servers){const o=Sl(i);o&&n.push(...o)}else{const i=Sl(e.servers);if(!i)return;n.push(...i)}for(const i of n)i==="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"}),i==="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 Sl(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 i=e.variables[r].default;n.enum&&!n.enum.includes(i)&&t.push("invalidDefaultValue")}if(t.length)return t}const _A=()=>({Server(e,{report:t,location:r}){if(!e?.url)return;const n=e.url.match(/{[^}]+}/g)?.map(o=>o.slice(1,o.length-1))||[],i=e?.variables&&Object.keys(e.variables)||[];for(const o of n)i.includes(o)||t({message:`The \`${o}\` 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 o of i)n.includes(o)||t({message:`The \`${o}\` variable is not used in the server's \`url\` field.`,location:r.child(["variables",o]).key(),from:r.child("url"),reference:"https://redocly.com/docs/cli/rules/oas/no-undefined-server-variable"})}}),AA=()=>{const e=new Map,t=new Map,r=new Set;function n(i,o,s=!1){e.set(i.absolutePointer,{used:e.get(i.absolutePointer)?.used||!1,referencesDiscriminator:s,location:i,name:o})}return{ref(i,{type:o,resolve:s,key:a,location:c}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap"].includes(o.name)){const l=s(i);if(!l.location)return;e.set(l.location.absolutePointer,{used:!0,name:a.toString(),location:c})}},Root:{leave(i,{report:o}){e.forEach(s=>{!s.used&&!s.referencesDiscriminator&&o({message:`Component: "${s.name}" is never used.`,location:s.location.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})}),t.forEach((s,a)=>{r.has(a)||o({message:`Security scheme: "${a}" is never used.`,location:s.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})})}},NamedSchemas:{Schema(i,{location:o,key:s,resolve:a}){const c=i.allOf?.some(l=>N.isRef(l)&&a(l)?.node?.discriminator);n(o,s.toString(),c)}},NamedParameters:{Parameter(i,{location:o,key:s}){n(o,s.toString())}},NamedResponses:{Response(i,{location:o,key:s}){n(o,s.toString())}},NamedExamples:{Example(i,{location:o,key:s}){n(o,s.toString())}},NamedRequestBodies:{RequestBody(i,{location:o,key:s}){n(o,s.toString())}},NamedHeaders:{Header(i,{location:o,key:s}){n(o,s.toString())}},NamedMediaTypes:{MediaTypesMap(i,{location:o,key:s}){n(o,s.toString())}},NamedSecuritySchemes:{SecurityScheme(i,{rawLocation:o,key:s}){t.set(s.toString(),o)}},SecurityRequirement(i){for(const o of Object.keys(i))r.add(o)}}},RA=()=>({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"})}}}),Zo="https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807",$A=()=>({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:Zo})},MediaType:{skip(e,t){return t!=="application/problem+json"},enter(e,t){if(Nr({fieldName:"schema",value:e,ctx:t,reference:Zo}),!e.schema)return;const{schema:r,location:n}=vo(e.schema,t,t.location.child("schema"));if(!(!r||!n))for(const i of["type","title"])sr(e.schema,i,t)||t.report({message:bo("SchemaProperties",i),location:r.properties?n.child(["properties",i]).key():n.key(),reference:Zo})}}}}),NA=({allowedValues:e})=>({Paths:{RequestBody:{leave(t,r){Pr({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){Pr({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}},WebhooksMap:{Response:{leave(t,r){Pr({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}}),kA=e=>{const t=e.names||{};let r;return{Operation:{Response:{skip:(n,i)=>`${i}`=="204",enter:(n,i)=>{r=i.key},MediaType:{Schema(n,{report:i,location:o}){if(n.type!=="object")return;const s=t[r]||t[_r(r)]||t[_r(r).toLowerCase()]||[];for(const a of s)n.properties?.[a]||i({message:`Response object must contain a top-level "${a}" property.`,location:o.child("properties").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-property"})}}}}}},DA=({allowedValues:e})=>({Paths:{Response:{leave(t,r){Pr({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){Pr({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}},WebhooksMap:{RequestBody:{leave(t,r){Pr({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}}),qA=()=>{const e=`^[${ad}]+$`;function t(r,n,i,o){new RegExp(e).test(r)||n({message:`The map key in ${o} "${r}" does not match the regular expression "${e}"`,location:i.key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-components-invalid-map-name"})}return{NamedSchemas:{Schema(r,{key:n,report:i,location:o}){t(n,i,o,"schemas")}},NamedParameters:{Parameter(r,{key:n,report:i,location:o}){t(n,i,o,"parameters")}},NamedResponses:{Response(r,{key:n,report:i,location:o}){t(n,i,o,"responses")}},NamedExamples:{Example(r,{key:n,report:i,location:o}){t(n,i,o,"examples")}},NamedRequestBodies:{RequestBody(r,{key:n,report:i,location:o}){t(n,i,o,"requestBodies")}},NamedHeaders:{Header(r,{key:n,report:i,location:o}){t(n,i,o,"headers")}},NamedSecuritySchemes:{SecurityScheme(r,{key:n,report:i,location:o}){t(n,i,o,"securitySchemes")}},NamedLinks:{Link(r,{key:n,report:i,location:o}){t(n,i,o,"links")}},NamedCallbacks:{Callback(r,{key:n,report:i,location:o}){t(n,i,o,"callbacks")}}}},CA=()=>{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 i=t.discriminator?.defaultMapping;if(i===void 0){const o=new Set,s=(a,c)=>{const l=vo(a,r,c);return!!(!l.schema||o.has(l.schema)||(o.add(l.schema),l.schema.required?.includes(n)||l.schema.allOf?.some(u=>s(u,l.location))||l.schema.oneOf?.every(u=>s(u,l.location))||l.schema.anyOf?.every(u=>s(u,l.location))))};s(t)||r.report({message:`Discriminator with optional property '${n}' must include a defaultMapping field.`,location:r.location.child("discriminator"),reference:"https://redocly.com/docs/cli/rules/oas/spec-discriminator-defaultMapping"})}else r.resolve({$ref:i}).node===void 0&&!e.includes(i)&&r.report({message:`defaultMapping value '${i}' 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"})}}}},jA=()=>({Example({value:e,externalValue:t,dataValue:r,serializedValue:n},{report:i,location:o}){e!==void 0&&t!==void 0&&i({message:"The 'value' and 'externalValue' fields of an example object are mutually exclusive.",location:o,reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),n!==void 0&&t!==void 0&&i({message:"The 'serializedValue' and 'externalValue' fields of an example object are mutually exclusive.",location:o,reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),e!==void 0&&r!==void 0&&i({message:"The 'value' filed must be absent if 'dataValue' is present in an example object.",location:o.child("value").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),e!==void 0&&n!==void 0&&i({message:"The 'value' filed must be absent if 'serializedValue' is present in an example object.",location:o.child("value").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"})}}),MA=()=>({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"})}}}),LA=()=>{let e;return{Root:{enter(t){e=t.tags??[]}},Tag:{leave(t,{report:r,location:n}){if(t?.parent===void 0)return;if(!e.find(s=>s.name===t.parent)){r({message:`Tag parent '${t.parent}' is not defined in the API description.`,location:n.child("parent"),reference:"https://redocly.com/docs/cli/rules/oas/spec-no-invalid-tag-parents"});return}const i=new Set(t.name);let o=t.parent;for(;o!==void 0;){if(i.has(o)){r({message:`Circular reference detected in tag parent hierarchy for tag '${t.name}'.`,location:n.child("parent"),reference:"https://redocly.com/docs/cli/rules/oas/spec-no-invalid-tag-parents"});return}i.add(o),o=e.find(s=>s.name===o)?.parent}}}}};function El(e){return e.filter(t=>!("$ref"in t)&&t.in==="querystring").length}function xl(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 Tl(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 UA=()=>{let e={},t={},r=0;return{PathItem:{enter(n,i){e={},t={},r=0,xl(El(n.parameters||[]),i)},Parameter(n,i){Tl(n,i.location,e,i),n.in==="querystring"&&(r+=1)},Operation:{enter(n,i){t={...e};const o=r+El(n.parameters||[]);xl(o,i)},Parameter(n,i){Tl(n,i.location,t,i)}}}}},FA=()=>({ref:{leave(e,{report:t,location:r,type:n,specVersion:i}){const o=i!=="oas3_0";if(!(o&&n.name==="Schema"||n.name==="PathItem"))for(const s of Object.keys(e))s!=="$ref"&&(o&&(s==="summary"||s==="description")||t({message:`Property \`${s}\` is not expected here because it is defined alongside \`$ref\`.`,location:r.child(s).key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-ref-siblings"}))}}}),BA={struct:Kt,"info-contact":kr,"info-license":Ma,"info-license-strict":Eo,"operation-2xx-response":Zf,"operation-4xx-response":em,"operation-4xx-problem-details-rfc7807":$A,assertions:Jt,"operation-operationId-unique":rm,"operation-parameters-unique":im,"operation-tag-defined":am,"no-example-value-and-externalValue":xA,"no-mixed-number-range-constraints":So,"no-enum-type-mismatch":dn,"no-path-trailing-slash":Xf,"no-empty-servers":EA,"path-declaration-must-exist":pm,"operation-operationId-url-safe":nm,"operation-operationId":To,"operation-summary":sm,"tags-alphabetical":Io,"no-server-example.com":PA,"no-server-trailing-slash":OA,"tag-description":Oo,"operation-description":tm,"no-unused-components":AA,"path-not-include-query":um,"path-parameters-defined":so,"path-params-defined":so,"parameter-description":cm,"operation-singular-tag":om,"security-defined":Sm,"security-scopes-defined":Ea,"no-unresolved-refs":Vt,"paths-kebab-case":gm,"boolean-parameter-prefixes":yA,"path-http-verbs-order":lm,"no-invalid-media-type-examples":TA,"no-identical-paths":Qf,"no-ambiguous-paths":Hf,"no-undefined-server-variable":_A,"no-server-variables-empty-enum":IA,"no-http-verbs-in-paths":Yf,"request-mime-type":NA,"response-mime-type":DA,"path-segment-plural":ym,"no-invalid-schema-examples":Jf,"no-invalid-parameter-examples":Wf,"response-contains-header":bm,"response-contains-property":kA,"scalar-property-missing-example":wm,"spec-components-invalid-map-name":qA,"required-string-property-missing-min-length":vm,"spec-strict-refs":Em,"component-name-unique":vA,"array-parameter-serialization":mA,"no-required-schema-properties-undefined":fn,"no-schema-type-mismatch":mn,"no-duplicated-enum-values":un,"no-unsafe-markdown":hn,"no-duplicated-tag-names":xo,"nullable-type-sibling":RA,"spec-no-invalid-tag-parents":LA,"spec-no-invalid-encoding-combinations":MA,"spec-discriminator-defaultMapping":CA,"spec-example-values":jA,"spec-querystring-parameters":UA,"spec-ref-siblings":FA},zA={},VA=()=>{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:i,key:o,location:s}){if(["Schema","ContentDescriptor","Example","Link","ErrorObject","ExamplePairing","Tag"].includes(n.name)){const a=i(r);if(!a.location)return;e.set(a.location.absolutePointer,{used:!0,name:o.toString(),location:s})}},Root:{leave(r,{report:n}){e.forEach(i=>{i.used||n({message:`Component: "${i.name}" is never used.`,location:i.location.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})})}},NamedSchemas:{Schema(r,{location:n,key:i}){t(n,i.toString())}},NamedContentDescriptors:{ContentDescriptor(r,{location:n,key:i}){t(n,i.toString())}},NamedExamples:{Example(r,{location:n,key:i}){t(n,i.toString())}},NamedLinks:{Link(r,{location:n,key:i}){t(n,i.toString())}},NamedErrors:{ErrorObject(r,{location:n,key:i}){t(n,i.toString())}},NamedExamplePairingObjects:{ExamplePairing(r,{location:n,key:i}){t(n,i.toString())}},NamedTags:{Tag(r,{location:n,key:i}){t(n,i.toString())}}}},KA=()=>({Method:{leave(e,{report:t,resolve:r,location:n}){if(!e.params||!Array.isArray(e.params))return;const i=new Set;e.params.forEach((o,s)=>{const a=r(o);if(!a.node)return;const c=a.node,l=c.name;l&&(i.has(l)&&t({message:`Parameter names must be unique. Duplicate parameter name '${c.name}' found.`,location:n.child([s,"name"]),reference:"https://redocly.com/docs/cli/rules/openrpc/spec-no-duplicated-method-params"}),i.add(l))})}}}),HA=()=>({Method:{leave(e,{report:t,resolve:r,location:n}){if(!e.params||!Array.isArray(e.params))return;let i=!1;e.params.forEach((o,s)=>{const a=r(o);if(!a.node)return;const c=a.node;if(!c.name)return;c.required===!0?i&&t({message:`Required parameter '${c.name}' must be positioned before optional parameters.`,location:n.child([s,"name"]),reference:"https://redocly.com/docs/cli/rules/openrpc/spec-no-required-params-after-optional"}):i=!0})}}}),GA={struct:Kt,"no-unresolved-refs":Vt,assertions:Jt,"info-license":Ma,"no-unused-components":VA,"info-contact":kr,"spec-no-duplicated-method-params":KA,"spec-no-required-params-after-optional":HA,"spec-ref-siblings":Po},YA={},QA={"info-contact":kr,struct:Kt,"no-unresolved-refs":Vt,assertions:Jt},WA={},JA={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","security-scopes-defined":"error","spec-ref-siblings":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error"},oas3_0Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-invalid-media-type-examples":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unsafe-markdown":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","nullable-type-sibling":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","security-scopes-defined":"error","spec-ref-siblings":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-example-values":"error"},oas3_1Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-invalid-media-type-examples":"error","no-mixed-number-range-constraints":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unsafe-markdown":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","security-scopes-defined":"error","spec-ref-siblings":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-example-values":"error"},oas3_2Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-invalid-media-type-examples":"error","no-mixed-number-range-constraints":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-unsafe-markdown":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","security-scopes-defined":"error","spec-ref-siblings":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-no-invalid-tag-parents":"error","spec-no-invalid-encoding-combinations":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error","spec-querystring-parameters":"error"},async2Rules:{"channels-kebab-case":"error","info-contact":"error","info-license-strict":"error","no-channel-trailing-slash":"error","no-duplicated-enum-values":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-schema-type-mismatch":"error","spec-ref-siblings":"error"},async3Rules:{"channels-kebab-case":"error","info-contact":"error","info-license-strict":"error","no-channel-trailing-slash":"error","no-duplicated-enum-values":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-schema-type-mismatch":"error","spec-ref-siblings":"error"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"error"},openrpc1Rules:{"info-contact":"error","info-license":"error","no-unused-components":"error","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error","spec-ref-siblings":"error"},graphqlRules:{"no-unused-types":"error","type-description":"error"}},XA={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","operation-2xx-response":"warn","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","security-scopes-defined":"off","spec-ref-siblings":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-example-value-and-externalValue":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-invalid-media-type-examples":{severity:"warn",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"warn","no-unsafe-markdown":"off","no-unused-components":"warn","nullable-type-sibling":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","security-scopes-defined":"off","spec-components-invalid-map-name":"warn","spec-example-values":"off","spec-ref-siblings":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-example-value-and-externalValue":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"warn","no-unsafe-markdown":"off","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","security-scopes-defined":"off","spec-components-invalid-map-name":"warn","spec-example-values":"off","spec-ref-siblings":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"warn","no-unsafe-markdown":"off","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","security-scopes-defined":"off","spec-components-invalid-map-name":"warn","spec-discriminator-defaultMapping":"off","spec-example-values":"off","spec-no-invalid-encoding-combinations":"warn","spec-no-invalid-tag-parents":"warn","spec-querystring-parameters":"error","spec-ref-siblings":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"off","tag-description":"warn","tags-alphabetical":"off","spec-ref-siblings":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"off","tag-description":"warn","tags-alphabetical":"off","spec-ref-siblings":"off"},arazzo1Rules:{"criteria-unique":"off","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"off","parameters-unique":"off","requestBody-replacements-unique":"off","sourceDescription-name-unique":"off","sourceDescription-type":"off","sourceDescriptions-not-empty":"off","spec-step-mutually-exclusive-fields":"warn","step-onFailure-unique":"off","step-onSuccess-unique":"off","stepId-unique":"error","workflow-dependsOn":"off","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"off","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"off","parameters-unique":"off","requestBody-replacements-unique":"off","sourceDescription-name-unique":"off","sourceDescription-type":"off","sourceDescriptions-not-empty":"off","spec-step-mutually-exclusive-fields":"warn","step-onFailure-unique":"off","step-onSuccess-unique":"off","stepId-unique":"error","workflow-dependsOn":"off","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},graphqlRules:{"no-unused-types":"off","type-description":"off"},openrpc1Rules:{"info-contact":"off","info-license":"off","no-unused-components":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error","spec-ref-siblings":"off"}},ZA={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"error","spec-ref-siblings":"error","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":{severity:"error",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"error","no-unused-components":"error","nullable-type-sibling":"error","operation-2xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"error","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-ref-siblings":"error","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"error","no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-mixed-number-range-constraints":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"error","no-unused-components":"error","operation-2xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"error","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-ref-siblings":"error","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"error","no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-mixed-number-range-constraints":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"error","no-unused-components":"error","operation-2xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"error","spec-components-invalid-map-name":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error","spec-no-invalid-encoding-combinations":"error","spec-no-invalid-tag-parents":"error","spec-querystring-parameters":"error","spec-ref-siblings":"error","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"error","no-channel-trailing-slash":"off","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"off","spec-ref-siblings":"error"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"error","no-channel-trailing-slash":"off","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"off","spec-ref-siblings":"error"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},openrpc1Rules:{"info-contact":"off","info-license":"error","no-unused-components":"error","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error","spec-ref-siblings":"error"},graphqlRules:{"no-unused-types":"error","type-description":"off"}},eR={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","operation-2xx-response":"warn","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"warn","spec-ref-siblings":"warn","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":{severity:"warn",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"warn","no-unused-components":"warn","nullable-type-sibling":"error","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"warn","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-ref-siblings":"warn","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-mixed-number-range-constraints":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"warn","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"warn","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-ref-siblings":"warn","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-mixed-number-range-constraints":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"warn","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"warn","spec-components-invalid-map-name":"error","spec-discriminator-defaultMapping":"warn","spec-example-values":"error","spec-no-invalid-encoding-combinations":"error","spec-no-invalid-tag-parents":"error","spec-querystring-parameters":"error","spec-ref-siblings":"warn","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"warn","no-channel-trailing-slash":"off","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"warn","tag-description":"warn","tags-alphabetical":"off","spec-ref-siblings":"warn"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"warn","no-channel-trailing-slash":"off","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"warn","tag-description":"warn","tags-alphabetical":"off","spec-ref-siblings":"warn"},arazzo1Rules:{"criteria-unique":"warn","no-criteria-xpath":"off","no-duplicated-enum-values":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"warn","parameters-unique":"error","requestBody-replacements-unique":"warn","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"warn","step-onSuccess-unique":"warn","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"warn","no-criteria-xpath":"off","no-duplicated-enum-values":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"warn","parameters-unique":"error","requestBody-replacements-unique":"warn","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"warn","step-onSuccess-unique":"warn","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},openrpc1Rules:{"info-license":"warn","no-unused-components":"warn","info-contact":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error","spec-ref-siblings":"warn"},graphqlRules:{"no-unused-types":"warn","type-description":"off"}},tR={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"error","no-enum-type-mismatch":"off","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","operation-2xx-response":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","security-scopes-defined":"off","spec-ref-siblings":"error","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":{severity:"off",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-server-variables-empty-enum":"off","no-undefined-server-variable":"error","no-unsafe-markdown":"off","no-unused-components":"off","nullable-type-sibling":"error","operation-2xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","security-scopes-defined":"off","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-ref-siblings":"error","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"off","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-server-variables-empty-enum":"off","no-undefined-server-variable":"error","no-unsafe-markdown":"off","no-unused-components":"off","operation-2xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","security-scopes-defined":"off","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-ref-siblings":"error","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"off","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-server-variables-empty-enum":"off","no-undefined-server-variable":"error","no-unsafe-markdown":"off","no-unused-components":"off","operation-2xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","security-scopes-defined":"off","spec-components-invalid-map-name":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error","spec-no-invalid-encoding-combinations":"error","spec-no-invalid-tag-parents":"error","spec-querystring-parameters":"error","spec-ref-siblings":"error","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","operation-operationId":"off","security-defined":"off","security-scopes-defined":"off","tag-description":"off","tags-alphabetical":"off","spec-ref-siblings":"error"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","operation-operationId":"off","security-defined":"off","security-scopes-defined":"off","tag-description":"off","tags-alphabetical":"off","spec-ref-siblings":"error"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},openrpc1Rules:{"info-contact":"off","info-license":"off","no-unused-components":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error","spec-ref-siblings":"error"},graphqlRules:{"no-unused-types":"off","type-description":"off"}},rR={recommended:eR,"recommended-strict":ZA,minimal:XA,all:JA,spec:tR},Pl={id:"",rules:{oas3:BA,oas2:dA,async2:zP,async3:ZP,arazzo1:CP,overlay1:QA,openrpc1:GA,graphql:w_},preprocessors:{oas3:zA,oas2:fA,async2:VP,async3:eO,arazzo1:jP,overlay1:WA,openrpc1:YA},decorators:{oas3:eP,oas2:JT,async2:KT,async3:HT,arazzo1:VT,overlay1:rP,openrpc1:tP},configs:rR},nR={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function Ut(e,t){const r={};r.any={enter:[],leave:[]};for(const s of Object.keys(t))r[s]={enter:[],leave:[]};r.ref={enter:[],leave:[]};for(const{ruleId:s,severity:a,message:c,visitor:l}of e)o({ruleId:s,severity:a,message:c},l,null);for(const s of Object.keys(r))r[s].enter.sort((a,c)=>c.depth-a.depth),r[s].leave.sort((a,c)=>a.depth-c.depth);return r;function n(s,a,c,l,u=[]){if(u.includes(a))return;u=[...u,a];const m=new Set;for(const h of Object.values(a.properties)){if(h===c){y(s,u);continue}ee.isPlainObject(h)&&h.name!==void 0&&m.add(h)}a.additionalProperties&&typeof a.additionalProperties!="function"&&(a.additionalProperties===c?y(s,u):a.additionalProperties.name!==void 0&&m.add(a.additionalProperties)),a.items&&typeof a.items!="function"&&(a.items===c?y(s,u):a.items.name!==void 0&&m.add(a.items)),a.extensionsPrefix&&m.add(N.SpecExtension);for(const h of Array.from(m.values()))n(s,h,c,l,u);function y(h,w){for(const b of w.slice(1))r[b.name]=r[b.name]||{enter:[],leave:[]},r[b.name].enter.push({...h,visit:()=>{},depth:0,context:{isSkippedLevel:!0,seen:new Set,parent:l}})}}function i(s,a){if(Array.isArray(a)){const c=a.find(l=>s[l])||void 0;return c&&s[c]}return s[a]}function o(s,a,c,l=0){const u=Object.keys(t);if(l===0)u.push("any"),u.push("ref");else{if(a.any)throw new Error("any() is allowed only on top level");if(a.ref)throw new Error("ref() is allowed only on top level")}for(const m of u){const y=a[m]||i(a,nR[m]),h=r[m];if(!y)continue;let w,b,E;const P=ee.isPlainObject(y);if(m==="ref"&&P&&y.skip)throw new Error("ref() visitor does not support skip");typeof y=="function"?w=y:P&&(w=y.enter,b=y.leave,E=y.skip);const I=(w?1:0)+(b?1:0)+(E?1:0),v=P&&Object.keys(y).length>I,x={activatedOn:null,type:t[m],parent:c,isSkippedLevel:!1};if(v&&o(s,y,x,l+1),c&&n(s,c.type,t[m],c),w||P){if(w&&typeof w!="function")throw new Error("DEV: should be function");h.enter.push({...s,visit:w||(()=>{}),skip:E,depth:l,context:x})}if(b){if(typeof b!="function")throw new Error("DEV: should be function");h.leave.push({...s,visit:b,depth:l,context:x})}}}}const De=(e,t)=>{if(t)for(const r of Object.keys(t))ee.isPlainObject(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r]};function Ce(e,t){if(t)for(const r of Object.keys(t))e.hasOwnProperty(r)&&(ee.isPlainObject(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r])}function iR(e){if(e.indexOf("/")>-1){const[t,r]=e.split("/");return{pluginId:t,configName:r}}else return{pluginId:"",configName:e}}function ze(e,t){if(!t)return e;const r={};for(const n of Object.keys(e))r[`${t}/${n}`]=e[n];return r}function xm(e){const t={rules:{},oas2Rules:{},oas3_0Rules:{},oas3_1Rules:{},oas3_2Rules:{},async2Rules:{},async3Rules:{},arazzo1Rules:{},arazzo1_1Rules:{},overlay1Rules:{},openrpc1Rules:{},graphqlRules:{},preprocessors:{},oas2Preprocessors:{},oas3_0Preprocessors:{},oas3_1Preprocessors:{},oas3_2Preprocessors:{},async2Preprocessors:{},async3Preprocessors:{},arazzo1Preprocessors:{},arazzo1_1Preprocessors:{},overlay1Preprocessors:{},openrpc1Preprocessors:{},decorators:{},oas2Decorators:{},oas3_0Decorators:{},oas3_1Decorators:{},oas3_2Decorators:{},async2Decorators:{},async3Decorators:{},arazzo1Decorators:{},arazzo1_1Decorators:{},overlay1Decorators:{},openrpc1Decorators:{}};for(const r of e){if(ee.isPlainObject(r)&&"extends"in r&&r.extends!==void 0)throw new Error(`'extends' is not supported in shared configs yet:
78
+ ${JSON.stringify(r,null,2)}`);De(t.rules,r.rules),De(t.oas2Rules,r.oas2Rules),Ce(t.oas2Rules,r.rules),De(t.oas3_0Rules,r.oas3_0Rules),Ce(t.oas3_0Rules,r.rules),De(t.oas3_1Rules,r.oas3_1Rules),Ce(t.oas3_1Rules,r.rules),De(t.oas3_2Rules,r.oas3_2Rules),Ce(t.oas3_2Rules,r.rules),De(t.async2Rules,r.async2Rules),Ce(t.async2Rules,r.rules),De(t.async3Rules,r.async3Rules),Ce(t.async3Rules,r.rules),De(t.arazzo1Rules,r.arazzo1Rules),Ce(t.arazzo1Rules,r.rules),De(t.arazzo1_1Rules,r.arazzo1_1Rules),Ce(t.arazzo1_1Rules,r.rules),De(t.overlay1Rules,r.overlay1Rules),Ce(t.overlay1Rules,r.rules),De(t.openrpc1Rules,r.openrpc1Rules),Ce(t.openrpc1Rules,r.rules),De(t.graphqlRules,r.graphqlRules),Ce(t.graphqlRules,r.rules),De(t.preprocessors,r.preprocessors),De(t.oas2Preprocessors,r.oas2Preprocessors),Ce(t.oas2Preprocessors,r.preprocessors),De(t.oas3_0Preprocessors,r.oas3_0Preprocessors),Ce(t.oas3_0Preprocessors,r.preprocessors),De(t.oas3_1Preprocessors,r.oas3_1Preprocessors),Ce(t.oas3_1Preprocessors,r.preprocessors),De(t.oas3_2Preprocessors,r.oas3_2Preprocessors),Ce(t.oas3_2Preprocessors,r.preprocessors),De(t.async2Preprocessors,r.async2Preprocessors),Ce(t.async2Preprocessors,r.preprocessors),De(t.async3Preprocessors,r.async3Preprocessors),Ce(t.async3Preprocessors,r.preprocessors),De(t.arazzo1Preprocessors,r.arazzo1Preprocessors),Ce(t.arazzo1Preprocessors,r.preprocessors),De(t.arazzo1_1Preprocessors,r.arazzo1_1Preprocessors),Ce(t.arazzo1_1Preprocessors,r.preprocessors),De(t.overlay1Preprocessors,r.overlay1Preprocessors),Ce(t.overlay1Preprocessors,r.preprocessors),De(t.openrpc1Preprocessors,r.openrpc1Preprocessors),Ce(t.openrpc1Preprocessors,r.preprocessors),De(t.decorators,r.decorators),De(t.oas2Decorators,r.oas2Decorators),Ce(t.oas2Decorators,r.decorators),De(t.oas3_0Decorators,r.oas3_0Decorators),Ce(t.oas3_0Decorators,r.decorators),De(t.oas3_1Decorators,r.oas3_1Decorators),Ce(t.oas3_1Decorators,r.decorators),De(t.oas3_2Decorators,r.oas3_2Decorators),Ce(t.oas3_2Decorators,r.decorators),De(t.async2Decorators,r.async2Decorators),Ce(t.async2Decorators,r.decorators),De(t.async3Decorators,r.async3Decorators),Ce(t.async3Decorators,r.decorators),De(t.arazzo1Decorators,r.arazzo1Decorators),Ce(t.arazzo1Decorators,r.decorators),De(t.arazzo1_1Decorators,r.arazzo1_1Decorators),Ce(t.arazzo1_1Decorators,r.decorators),De(t.overlay1Decorators,r.overlay1Decorators),Ce(t.overlay1Decorators,r.decorators),De(t.openrpc1Decorators,r.openrpc1Decorators),Ce(t.openrpc1Decorators,r.decorators)}return t}class oR extends Error{}function sR(e){return new Map(JSON.parse(JSON.stringify([...e])))}function Ol(e){return ee.isPlainObject(e)&&"id"in e}function aR(e){return typeof e=="function"}function Tm({node:e,ctx:t,plugins:r}){if(!e.extends)return e;const n=(e.extends||[]).filter(N.isTruthy).map(i=>{if(!N.isAbsoluteUrl(i)&&!ee.path.extname(i))return _R(i,r);const o=t.resolve({$ref:i});return o.location&&o.node!==void 0?o.node:null}).filter(N.isTruthy);return xm([...n.map(i=>Tm({node:i,ctx:t,plugins:r})),{...e,extends:void 0}])}function Di(e,t){if(ee.isPlainObject(e)&&Array.isArray(e.plugins)){const{plugins:r,rootConfigDir:n}=t.getVisitorData();r.push(...e.plugins.map(i=>Ws(i,t.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}const cR=Ut([{severity:"error",ruleId:ba,visitor:{ref:{},ConfigGovernance:{leave(e,t){Di(e,t)}},ConfigApisProperties:{leave(e,t){Di(e,t)}},[ot.ScorecardClassicLevel]:{leave(e,t){Di(e,t)}},ConfigRoot:{leave(e,t){Di(e,t)}}}}],pn);function qi(e,t){if(ee.isPlainObject(e)&&e.extends){const{plugins:r,skipPluginEval:n}=t.getVisitorData();if(n)return;const i=Tm({node:e,ctx:t,plugins:r});Object.assign(e,i),delete e.extends}}const pR=Ut([{severity:"error",ruleId:va,visitor:{ref:{leave(e,t,r){N.replaceRef(e,r,t)}},ConfigGovernance:{leave(e,t){qi(e,t)}},ConfigApisProperties:{leave(e,t){qi(e,t)}},[ot.ScorecardClassicLevel]:{leave(e,t){qi(e,t)}},ConfigRoot:{leave(e,t){qi(e,t)}}}}],pn);function Il(e,t){return{prev:e,value:t}}function _l(e){return e?.prev??null}function lR(e){const t={};for(;e.parent;)t[e.parent.type.name]=e.parent.activatedOn?.value.node,e=e.parent;return t}function uR(e){const t={};for(;e.parent;)e.parent.activatedOn?.value.location&&(t[e.parent.type.name]=e.parent.activatedOn?.value.location),e=e.parent;return t}function Ft(e){const{document:t,rootType:r,normalizedVisitors:n,resolvedRefMap:i,ctx:o}=e,s={},a=new Set,c=(b,E)=>`${b.name}::${E.absolutePointer}`,l=new Set,u=n.any.enter,m=n.any.leave,y={},h={};for(const b of Object.keys(n))b==="any"||b==="ref"||(y[b]=u.concat(n[b]?.enter||[]),h[b]=(n[b]?.leave||[]).concat(m));w(t.parsed,r,new N.Location(t.source,"#/"),void 0,"");function w(b,E,P,I,v){const x=(be,ge=S.source.absoluteRef)=>{if(!N.isRef(be))return{location:P,node:be};const Pe=N.makeRefId(ge,be.$ref),B=i.get(Pe);if(!B)return{location:void 0,node:void 0};const{resolved:L,node:Q,document:V,nodePointer:_,error:$,chain:A}=B;return{location:L?new N.Location(V.source,_):$ instanceof N.YamlParseError?new N.Location($.source,""):void 0,node:Q,error:$,chain:A}},g=P;let S=P;const O=N.isRef(b),{node:k,location:Y,error:F,chain:z}=x(b),J=new Set,M=N.isRefWithSiblings(b)&&a.has(c(E,P));if(N.isRefWithSiblings(b)&&a.add(c(E,P)),O&&!M){const be=n.ref.enter;for(const{visit:ge,ruleId:Pe,severity:B,message:L,context:Q}of be)J.add(Q),ge(b,{report:_=>de(Pe,B,L,_),resolve:x,rawNode:b,rawLocation:g,location:P,type:E,parent:I,key:v,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:()=>Se(Pe)},{node:k,location:Y,error:F,chain:z}),Y?.source.absoluteRef&&o.refTypes&&o.refTypes.set(Y?.source.absoluteRef,E)}if(k!==void 0&&Y&&E.name!=="scalar"){const be=($,A,K,H)=>{let W=N.getOwn(E.properties,$);const ae=E.extensionsPrefix!==void 0&&$.startsWith(E.extensionsPrefix);W===void 0&&!ae&&(W=E.additionalProperties),typeof W=="function"&&(W=W(A,$)),ae&&!N.isNamedType(W)&&(W=N.SpecExtension),!N.isNamedType(W)&&W?.directResolveAs&&(W=W.directResolveAs,A={$ref:A}),W&&W.name===void 0&&W.resolvable!==!1&&(W={name:"scalar",properties:{}}),!(!N.isNamedType(W)||W.name==="scalar"&&!N.isRef(A))&&w(A,W,K.child([$]),H,$)};S=Y;const ge=ee.isPlainObject(k)||Array.isArray(k)?k:P.absolutePointer,Pe=s[E.name]?.has?.(ge);let B=!1;const L=y[E.name]||u.concat(n[E.name]?.enter||[]),Q=[],V=`${S.absolutePointer}${S.pointer}`;for(const{context:$,visit:A,skip:K,ruleId:H,severity:W,message:ae}of L){if(l.has(V))break;if($.isSkippedLevel)$.parent.activatedOn&&!$.parent.activatedOn.value.nextLevelTypeActivated&&!$.seen.has(b)&&($.seen.add(b),B=!0,Q.push($));else if($.parent&&$.parent.activatedOn&&$.activatedOn?.value.withParentNode!==$.parent.activatedOn.value.node&&$.parent.activatedOn.value.nextLevelTypeActivated?.value!==E||!$.parent&&!Pe){Q.push($);const C={node:k,location:Y,nextLevelTypeActivated:null,withParentNode:$.parent?.activatedOn?.value.node,skipped:($.parent?.activatedOn?.value.skipped||K?.(k,v,{location:P,rawLocation:g,resolve:x,rawNode:b}))??!1};$.activatedOn=Il($.activatedOn,C);let U=$.parent;for(;U;)U.activatedOn.value.nextLevelTypeActivated=Il(U.activatedOn.value.nextLevelTypeActivated,E),U=U.parent;C.skipped||(B=!0,J.add($),G(A,k,b,$,H,W,ae))}}if(B||!Pe){if(s[E.name]=s[E.name]||new Set,s[E.name].add(ge),Array.isArray(k)){const $=E.items;if($!==void 0){const A=typeof $=="function";for(let K=0;K<k.length;K++){const H=Y.child([K]);let W=A?$(k[K],H.absolutePointer):$,ae=k[K];W?.directResolveAs&&(W=W.directResolveAs,ae={$ref:ae}),N.isNamedType(W)&&w(ae,W,H,k,K)}}}else if(ee.isPlainObject(k)){const $=Object.keys(E.properties);E.additionalProperties?$.push(...Object.keys(k).filter(A=>!$.includes(A))):E.extensionsPrefix&&$.push(...Object.keys(k).filter(A=>A.startsWith(E.extensionsPrefix)&&!$.includes(A)));for(const A of $){const K=k[A];K!==void 0&&be(A,K,Y,k)}}}if(O&&z?.length){const $=z[0];a.has(c(E,$.location))||w($.node,E,$.location,void 0,v)}if(N.isRefWithSiblings(b)&&!M)for(const $ of Object.keys(b))$!=="$ref"&&b[$]!==k?.[$]&&be($,b[$],P,b);const _=h[E.name]||(n[E.name]?.leave||[]).concat(m);for(const $ of Q.reverse())if($.isSkippedLevel)$.seen.delete(k);else if($.activatedOn=_l($.activatedOn),$.parent){let A=$.parent;for(;A;)A.activatedOn.value.nextLevelTypeActivated=_l(A.activatedOn.value.nextLevelTypeActivated),A=A.parent}for(const{context:$,visit:A,ruleId:K,severity:H,message:W}of _)!$.isSkippedLevel&&J.has($)&&G(A,k,b,$,K,H,W)}if(S=P,O&&!M){const be=n.ref.leave;for(const{visit:ge,ruleId:Pe,severity:B,context:L,message:Q}of be)J.has(L)&&ge(b,{report:_=>de(Pe,B,Q,_),resolve:x,rawNode:b,rawLocation:g,location:P,type:E,parent:I,key:v,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:()=>Se(Pe)},{node:k,location:Y,error:F,chain:z})}function G(be,ge,Pe,B,L,Q,V){be(ge,{report:$=>de(L,Q,V,$),resolve:x,rawNode:Pe,location:S,rawLocation:g,type:E,parent:I,key:v,parentLocations:uR(B),specVersion:o.specVersion,config:o.config,ignoreNextVisitorsOnNode:()=>{l.add(`${S.absolutePointer}${S.pointer}`)},getVisitorData:()=>Se(L)},lR(B),B)}function de(be,ge,Pe,B){const Q=(B.location?Array.isArray(B.location)?B.location:[B.location]:[{...S,reportOnKey:!1}]).map(_=>({...S,reportOnKey:!1,..._})),V=B.forceSeverity||ge;V!=="off"&&o.problems.push({ruleId:B.ruleId||be,severity:V,...B,message:Pe?Pe.replace("{{message}}",B.message):B.message,suggest:B.suggest||[],location:Q})}function Se(be){return o.visitorsData[be]=o.visitorsData[be]||{},o.visitorsData[be]}}}function dR(e){return e.trim().split(/\s+/).map(t=>t.replace(/^[a-z]/,r=>r.toUpperCase())).join("")}function Qs(e,t){switch(t){case"oas3":switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";case"Response":return"responses";case"Example":return"examples";case"RequestBody":return"requestBodies";case"Header":return"headers";case"SecuritySchema":return"securitySchemes";case"Link":return"links";case"Callback":return"callbacks";case"MediaTypesMap":return"mediaTypes";default:return null}case"oas2":switch(e){case"Schema":return"definitions";case"Parameter":return"parameters";case"Response":return"responses";default:return null}case"async2":switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"async3":switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"arazzo1":switch(e){case"Root.workflows_items.parameters_items":case"Root.workflows_items.steps_items.parameters_items":return"parameters";default:return null}case"overlay1":return null;case"openrpc1":switch(e){case"ContentDescriptor":return"contentDescriptors";case"Schema":return"schemas";case"Example":return"examples";case"Link":return"links";case"ErrorObject":return"errors";case"ExamplePairing":return"examplePairingObjects";case"Tag":return"tags";default:return null}default:return null}}function fR({version:e,dereference:t,rootDocument:r,resolvedRefMap:n,keepUrlRefs:i,componentRenamingConflicts:o="warn",componentNamesStrategy:s="basename"}){let a,c;const l=v=>v.chain?.[0]??{node:v.node,location:v.location},u=new Map,m=Qs("Schema",e),y={ref:{leave(v,x,g){if(!g.location||g.node===void 0){wr(g,x.report,x.location);return}const S=l(g);if(S.location.source===r.source&&S.location.source===x.location.source&&x.type.name!=="scalar"&&!t){N.parseRef(v.$ref).uri!==null&&v.$ref!==S.location.pointer&&(v.$ref=S.location.pointer);return}if(i&&N.isAbsoluteUrl(v.$ref))return;const O=Qs(x.type.name,e);O?t?(w(O,S,x),N.replaceRef(v,S,x)):(v.$ref=w(O,S,x),h(v,g,x)):N.replaceRef(v,S,x)}},Example:{leave(v,x){if(N.isExternalValue(v)&&v.value===void 0){const g=x.resolve({$ref:v.externalValue});if(!g.location||g.node===void 0){wr(g,x.report,x.location);return}if(i&&N.isAbsoluteUrl(v.externalValue))return;v.value=x.resolve({$ref:v.externalValue}).node,delete v.externalValue}}},Root:{enter(v,x){c=x.location,e==="oas3"?a=v.components=v.components||{}:e==="oas2"?a=v:e==="async2"?a=v.components=v.components||{}:e==="async3"?a=v.components=v.components||{}:e==="arazzo1"?a=v.components=v.components||{}:e==="openrpc1"&&(a=v.components=v.components||{})}}};e==="oas3"&&(y.Discriminator={leave(v,x){if(typeof v.defaultMapping!="string"||!N.isMappingRef(v.defaultMapping))return;const g=x.resolve({$ref:v.defaultMapping});if(!g.location||g.node===void 0){wr(g,x.report,x.location.child("defaultMapping"));return}v.defaultMapping=w(m,l(g),x)},DiscriminatorMapping:{leave(v,x){for(const g of Object.keys(v)){const S=v[g];if(!N.isMappingRef(S))continue;const O=x.resolve({$ref:S});if(!O.location||O.node===void 0){wr(O,x.report,x.location.child(g));return}v[g]=w(m,l(O),x)}}}});function h(v,x,g){const S={resolved:!0,isRemote:!1,node:x.node,chain:x.chain,document:r,nodePointer:v.$ref};n.set(N.makeRefId(g.location.source.absoluteRef,v.$ref),S),n.set(N.makeRefId(r.source.absoluteRef,v.$ref),S)}function w(v,x,g){a[v]=a[v]||{};const S=I(x,v,g);return a[v][S]=x.node,e==="oas3"||e==="async2"||e==="async3"||e==="openrpc1"?`#/components/${v}/${S}`:`#/${v}/${S}`}function b(v,x,g){if(N.isRef(v)){const S=g.resolve(v,c.absolutePointer);if((S.location&&l(S).location)?.absolutePointer===x.location.absolutePointer)return!0}return Qr(v,x.node)}function E(v,x,g){const{node:S}=v,O=ee.isPlainObject(S)&&et(S.title)?S.title.trim():"",k=dR(O).replace(new RegExp(`[^${ad}]`,"g"),"-"),Y=v.location.child("title");return O===""?{key:k,problem:{message:"Schema must define a `title` when using `--component-names-strategy title`.",location:v.location,forceSeverity:"error"}}:x[k]&&!b(x[k],v,g)?{key:k,problem:{message:`Title "${O}" maps to component name \`${k}\`, already used by another schema. Rename one of the titles.`,location:Y,from:u.get(k),forceSeverity:o}}:{key:k}}function P(v,x,g){const S=N.pointerBaseName(v.location.pointer)||N.refBaseName(v.location.source.absoluteRef);let O=S;for(let k=2;x[O]&&!b(x[O],v,g);k++)O=`${S}-${k}`;return{name:O,prevName:S}}function I(v,x,g){const S=a[x];if(s==="title"&&x===m){const{key:Y,problem:F}=E(v,S,g);if(!F)return u.set(Y,v.location.child("title")),Y;const{name:z}=P(v,S,g);return S[z]||(g.report(F),u.set(z,v.location)),z}const{name:O,prevName:k}=P(v,S,g);return!S[O]&&k!==O&&g.report({message:`Two schemas are referenced with the same name but different content. Renamed ${k} to ${O}.`,location:g.location,forceSeverity:o}),O}return y}async function Ua(e){const{document:t,config:r,types:n,externalRefResolver:i,dereference:o=!1,removeUnusedComponents:s=!1,keepUrlRefs:a=!1,componentRenamingConflicts:c,componentNamesStrategy:l="basename"}=e,u=Dr(t.parsed),m=Sa(u),y=r.getRulesForSpecVersion(m),h=N.normalizeTypes(r.extendTypes(n,u),r),w=Xr(y,r,"preprocessors",u),b=Xr(y,r,"decorators",u),E={problems:[],specVersion:u,config:r,refTypes:new Map,visitorsData:{}};let P=await N.resolveDocument({rootDocument:t,rootType:h.Root,externalRefResolver:i});w.length>0&&(Ft({document:t,rootType:h.Root,normalizedVisitors:Ut(w,h),resolvedRefMap:P,ctx:E}),P=await N.resolveDocument({rootDocument:t,rootType:h.Root,externalRefResolver:i}));const I=Ut([{severity:"error",ruleId:"bundler",visitor:fR({version:m,dereference:o,rootDocument:t,resolvedRefMap:P,keepUrlRefs:a,componentRenamingConflicts:c,componentNamesStrategy:l})},...b.filter(v=>v.ruleId!=="remove-unused-components")],h);if(Ft({document:t,rootType:h.Root,normalizedVisitors:I,resolvedRefMap:P,ctx:E}),s||r.getDecoratorSettings("remove-unused-components",u).severity!=="off"){const v=await N.resolveDocument({rootDocument:t,rootType:h.Root,externalRefResolver:i}),x=Ut([{severity:"error",ruleId:"remove-unused-components",visitor:m==="oas2"?Fd():Bd()}],h);Ft({document:t,rootType:h.Root,normalizedVisitors:x,resolvedRefMap:v,ctx:E})}return{bundle:t,problems:E.problems.map(v=>r.addProblemToIgnore(v)),fileDependencies:i.getFiles(),rootType:h.Root,refTypes:E.refTypes,visitorsData:E.visitorsData}}function mR(e,t,r){const n={plugins:[],rootConfigDir:r},i={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[ba]:n}};return Ft({document:e,rootType:pn.ConfigRoot,normalizedVisitors:cR,resolvedRefMap:t,ctx:i}),n.plugins}function hR(e,t,r,n=!1){const i={plugins:r,skipPluginEval:n},o={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[va]:i}};return Ft({document:e,rootType:pn.ConfigRoot,normalizedVisitors:pR,resolvedRefMap:t,ctx:o}),e.parsed??{}}async function yR(e){const{ref:t,doc:r,externalRefResolver:n=new N.BaseResolver(e.config.resolve),base:i=null}=e;if(!(t||r))throw new Error(`Document or reference is required.
79
+ `);const o=r===void 0?await n.resolveDocument(i,t,!0):r;if(o instanceof Error)throw o;return e.collectSpecData?.(o),Ua({document:o,...e,externalRefResolver:n,types:an(Dr(o.parsed))})}async function gR(e){const{source:t,absoluteRef:r,externalRefResolver:n=new N.BaseResolver(e.config.resolve)}=e,i=N.makeDocumentFromString(t,r||"/");return Ua({document:i,...e,externalRefResolver:n,types:an(Dr(i.parsed))})}function es(e){return!et(e)}const on=new Map,zi="v";let Fa=0,Al=!1;function vR(){ee.module.registerHooks({resolve(e,t,r){const n=r(e,t);if(!n.url.startsWith("file:")||!t.parentURL)return n;const i=new URL(t.parentURL).searchParams.get(zi);if(!i)return n;const o=new URL(n.url);return o.pathname.includes("/node_modules/")||o.searchParams.has(zi)?n:(o.searchParams.set(zi,i),{...n,url:o.href})}})}function bR(){if(!Al){if(Al=!0,typeof ee.module.registerHooks!="function"){Re.warn(`Redocly plugin reload requires Node.js >= 22.15 (current: ${process.version}). ESM plugins will not pick up edits until the process restarts.
80
+ `);return}vR()}}function wR(e){return on.has(e)}function SR(e){return on.get(e)}function ER(e,t){on.set(e,t)}function xR(){return Fa}function TR(e){const t=ee.module.createRequire(e),r=new Set,n=i=>{if(r.has(i))return;r.add(i);const o=t.cache[i];if(o){for(const s of o.children)/[/\\]node_modules[/\\]/.test(s.id)||n(s.id);delete t.cache[i]}};n(e)}const PR=()=>{const e=[...on.keys()];for(const t of e)TR(t);on.clear(),Fa+=1,bR()};async function OR(e){const t=(void 0)(e);return t.searchParams.set(zi,String(Fa)),import(t.href)}async function Pm({rawConfigDocument:e,configPath:t,externalRefResolver:r,customExtends:n,skipPluginEval:i}){const o=e===void 0?Od:e.parsed;if(n!==void 0&&ee.isPlainObject(o)&&(o.extends=n),ee.isPlainObject(o)&&(o?.extends?.some(es)||o?.scorecardClassic?.levels?.some(h=>h?.extends?.some(es))||o?.scorecard?.levels?.some(h=>h?.extends?.some(es))))throw new Error("Configuration format not detected in extends: values must be strings.");const s=e??{source:new N.Source(t??"",JSON.stringify(o)),parsed:o},a=await N.resolveDocument({rootDocument:s,rootType:pn.ConfigRoot,externalRefResolver:r??new N.BaseResolver(Ad(o?.resolve))});let c=[],l,u="";N.isBrowser?l=[...(o?.plugins||[]).filter(w=>!et(w)),Pl]:(u=ee.pathBrowserifyExports.dirname(t??""),c=mR(s,a,u),l=[...await Om(c.map(w=>Rl(w)?w.absolutePath:w),u,i),Pl]);const m=hR(s,sR(a),l,i);m.apis&&!i&&(m.apis=Object.fromEntries(Object.entries(m.apis).map(([h,w])=>{const b=xm([m,w]);return[h,{...w,...b}]})));const y=c.length?c.map(h=>Rl(h)&&h.isModule?h.rawPath:h.absolutePath&&ee.pathBrowserifyExports.relative(u,h.absolutePath)).filter(Bt):void 0;return{resolvedConfig:{...m,plugins:y},resolvedRefMap:a,plugins:l}}function IR(e){for(const t of _d)(void 0)(ee.pathBrowserifyExports.resolve(e,t))}function Rl(e){return"isModule"in e}const Ws=(e,t,r)=>{if(!et(e))return e;(void 0)(ee.pathBrowserifyExports.resolve(ee.pathBrowserifyExports.dirname(t),e));try{return{absolutePath:ee.module.createRequire((typeof document>"u"?require("url").pathToFileURL(__filename).href:kt&&kt.tagName.toUpperCase()==="SCRIPT"&&kt.src||new URL("replay-lint-BIbkYU09.js",document.baseURI).href)??__dirname).resolve(e,{paths:[r,(typeof document>"u"?require("url").pathToFileURL(__filename).href:kt&&kt.tagName.toUpperCase()==="SCRIPT"&&kt.src||new URL("replay-lint-BIbkYU09.js",document.baseURI).href)?ee.pathBrowserifyExports.dirname((void 0)(typeof document>"u"?require("url").pathToFileURL(__filename).href:kt&&kt.tagName.toUpperCase()==="SCRIPT"&&kt.src||new URL("replay-lint-BIbkYU09.js",document.baseURI).href)):__dirname]}),isModule:!0,rawPath:e}}catch{throw new Error(`Plugin "${e}" not found.`)}};async function Om(e,t,r=!1){if(!e)return[];const n=async c=>{if(!et(c))return c;try{const l=ee.pathBrowserifyExports.isAbsolute(c)?c:Ws(c,ee.pathBrowserifyExports.join(t,$s),t).absolutePath;if(!wR(l)){const u=await OR(l),m=u.default||u,y={contentDir:t},h=Array.isArray(m)?m:[m];for(const E of h)E?.id&&Ol(E)&&Re.info(`Deprecated plugin format detected: ${E.id}
81
+ `);const w=Ol(m)?m:aR(m)?await m(y):await m?.default?.(y),b=Array.isArray(w)?w:[w];w&&ER(l,b.map(E=>({...E,path:c,absolutePath:l})))}return SR(l)}catch(l){throw new Error(`Failed to load plugin "${c}": ${l.message}
82
+
83
+ ${l.stack}`)}},i=new Map,o=IR(t);o&&e.push(o);const s=new Set;if(r){const c=[];for(const l of e){if(!et(l)){c.push(l);continue}const u=ee.pathBrowserifyExports.isAbsolute(l)?l:Ws(l,ee.pathBrowserifyExports.join(t,$s),t).absolutePath;s.has(u)||(s.add(u),c.push({absolutePath:u}))}return c}return(await Promise.all(e.map(async c=>{if(et(c)){if(N.isAbsoluteUrl(c))throw new Error(Ne.red("We don't support remote plugins yet."));if(s.has(c))return;s.add(c)}const l=await n(c);if(!l)return;const u=Array.isArray(l)?l:[l];return(await Promise.all(u.map(async m=>{if(!m)return;const y=m.id;if(typeof y!="string")throw new Error(Ne.red(`Plugin must define \`id\` property in ${Ne.blue(c.toString())}.`));const h=m.absolutePath??c.toString(),w=i.get(y);if(w){if(h!==w)throw new Error(Ne.red(`Plugin "id" must be unique. Plugin ${Ne.blue(h)} uses id "${Ne.blue(y)}" already seen in ${Ne.blue(h)}`));return}i.set(y,h);const b={id:y,...m.configs?{configs:m.configs}:{},...m.typeExtension?{typeExtension:m.typeExtension}:{}};if(m.rules){if(!m.rules.oas3&&!m.rules.oas2&&!m.rules.async2&&!m.rules.async3&&!m.rules.arazzo1&&!m.rules.overlay1&&!m.rules.openrpc1&&!m.rules.graphql)throw new Error(`Plugin rules must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo\`, \`overlay1\`, \`openrpc1\`, or \`graphql\` rules "${c}.`);b.rules={},m.rules.oas3&&(b.rules.oas3=ze(m.rules.oas3,y)),m.rules.oas2&&(b.rules.oas2=ze(m.rules.oas2,y)),m.rules.async2&&(b.rules.async2=ze(m.rules.async2,y)),m.rules.async3&&(b.rules.async3=ze(m.rules.async3,y)),m.rules.arazzo1&&(b.rules.arazzo1=ze(m.rules.arazzo1,y)),m.rules.overlay1&&(b.rules.overlay1=ze(m.rules.overlay1,y)),m.rules.openrpc1&&(b.rules.openrpc1=ze(m.rules.openrpc1,y)),m.rules.graphql&&(b.rules.graphql=ze(m.rules.graphql,y))}if(m.preprocessors){if(!m.preprocessors.oas3&&!m.preprocessors.oas2&&!m.preprocessors.async2&&!m.preprocessors.async3&&!m.preprocessors.arazzo1&&!m.preprocessors.overlay1&&!m.preprocessors.openrpc1)throw new Error(`Plugin \`preprocessors\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` preprocessors "${c}.`);b.preprocessors={},m.preprocessors.oas3&&(b.preprocessors.oas3=ze(m.preprocessors.oas3,y)),m.preprocessors.oas2&&(b.preprocessors.oas2=ze(m.preprocessors.oas2,y)),m.preprocessors.async2&&(b.preprocessors.async2=ze(m.preprocessors.async2,y)),m.preprocessors.async3&&(b.preprocessors.async3=ze(m.preprocessors.async3,y)),m.preprocessors.arazzo1&&(b.preprocessors.arazzo1=ze(m.preprocessors.arazzo1,y)),m.preprocessors.overlay1&&(b.preprocessors.overlay1=ze(m.preprocessors.overlay1,y)),m.preprocessors.openrpc1&&(b.preprocessors.openrpc1=ze(m.preprocessors.openrpc1,y))}if(m.decorators){if(!m.decorators.oas3&&!m.decorators.oas2&&!m.decorators.async2&&!m.decorators.async3&&!m.decorators.arazzo1&&!m.decorators.overlay1&&!m.decorators.openrpc1)throw new Error(`Plugin \`decorators\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` decorators "${c}.`);b.decorators={},m.decorators.oas3&&(b.decorators.oas3=ze(m.decorators.oas3,y)),m.decorators.oas2&&(b.decorators.oas2=ze(m.decorators.oas2,y)),m.decorators.async2&&(b.decorators.async2=ze(m.decorators.async2,y)),m.decorators.async3&&(b.decorators.async3=ze(m.decorators.async3,y)),m.decorators.arazzo1&&(b.decorators.arazzo1=ze(m.decorators.arazzo1,y)),m.decorators.overlay1&&(b.decorators.overlay1=ze(m.decorators.overlay1,y)),m.decorators.openrpc1&&(b.decorators.openrpc1=ze(m.decorators.openrpc1,y))}return m.assertions&&(b.assertions=m.assertions),{...m,...b}}))).filter(Bt)}))).filter(Bt).flat()}function _R(e,t){const{pluginId:r,configName:n}=iR(e),i=t.find(s=>s.id===r);if(!i)throw new Error(`Invalid config ${Ne.red(e)}: plugin ${r} is not included.`);const o=i.configs?.[n];if(!o)throw new Error(r?`Invalid config ${Ne.red(e)}: plugin ${r} doesn't export config with name ${n}.`:`Invalid config ${Ne.red(e)}: there is no such built-in config.`);return o}function AR(e,t){const r=Object.create(null);for(const n of Object.keys(e)){const i=e[n],o=N.isAbsoluteUrl(n)?n:N.resolvePath(t,n);r[o]=Object.create(null);for(const s of Object.keys(i))r[o][s]=new Set(i[s])}return r}async function Im(e,t){const r=e?N.getDir(e):N.isBrowser?"":process.cwd(),n=r?N.resolvePath(r,Xi):Xi,i=await t.resolveDocument(null,n,!0);return i instanceof Error||!i.parsed?{}:AR(i.parsed||{},r)}async function RR(e={}){const{configPath:t=void 0,customExtends:r,externalRefResolver:n,skipPluginEval:i}=e,o=n??new N.BaseResolver,s=t?await o.resolveDocument(null,t,!0):void 0;if(s instanceof Error)throw s;const{resolvedConfig:a,resolvedRefMap:c,plugins:l}=await Pm({rawConfigDocument:s?_m(s):void 0,customExtends:r,configPath:t,externalRefResolver:n,skipPluginEval:i}),u=await Im(t,o);return new ln(a,{configPath:t,document:s,resolvedRefMap:c,plugins:l,ignore:u})}function $R(e){}async function NR(e,{configPath:t,externalRefResolver:r,ignore:n}={}){const i=typeof e=="string"?e:"",o=N.makeDocumentFromString(i,t??"");typeof e!="string"&&e&&(o.parsed=e);const{resolvedConfig:s,resolvedRefMap:a,plugins:c}=await Pm({rawConfigDocument:_m(o),configPath:t,externalRefResolver:r});return new ln(s,{configPath:t,document:o,resolvedRefMap:a,plugins:c,ignore:n})}function _m(e){if(!e.parsed)return e;const{plugins:t,resolve:r,...n}=e.parsed,i={...structuredClone(n),plugins:t?.slice(),...r&&{resolve:{...r}}};return{...e,parsed:i}}var ts={},bt={},rs={},$l;function Ro(){return $l||($l=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t;(function(c){c[c.SCALAR=0]="SCALAR",c[c.MAPPING=1]="MAPPING",c[c.MAP=2]="MAP",c[c.SEQ=3]="SEQ",c[c.ANCHOR_REF=4]="ANCHOR_REF",c[c.INCLUDE_REF=5]="INCLUDE_REF"})(t=e.Kind||(e.Kind={}));function r(c,l){var u=l?l.endPosition:c.endPosition+1,m={key:c,value:l,startPosition:c.startPosition,endPosition:u,kind:t.MAPPING,parent:null,errors:[]};return m}e.newMapping=r;function n(c,l,u,m){return{errors:[],referencesAnchor:c,value:m,startPosition:l,endPosition:u,kind:t.ANCHOR_REF,parent:null}}e.newAnchorRef=n;function i(c){c===void 0&&(c="");var l={errors:[],startPosition:-1,endPosition:-1,value:""+c,kind:t.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+c};return typeof c!="string"&&(l.valueObject=c),l}e.newScalar=i;function o(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:t.SEQ,parent:null}}e.newItems=o;function s(){return o()}e.newSeq=s;function a(c){return{errors:[],startPosition:-1,endPosition:-1,mappings:c||[],kind:t.MAP,parent:null}}e.newMap=a})(rs)),rs}var Mt={},Nl;function Cr(){if(Nl)return Mt;Nl=1,Object.defineProperty(Mt,"__esModule",{value:!0});function e(s){return typeof s>"u"||s===null}Mt.isNothing=e;function t(s){return typeof s=="object"&&s!==null}Mt.isObject=t;function r(s){return Array.isArray(s)?s:e(s)?[]:[s]}Mt.toArray=r;function n(s,a){var c,l,u,m;if(a)for(m=Object.keys(a),c=0,l=m.length;c<l;c+=1)u=m[c],s[u]=a[u];return s}Mt.extend=n;function i(s,a){var c="",l;for(l=0;l<a;l+=1)c+=s;return c}Mt.repeat=i;function o(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}return Mt.isNegativeZero=o,Mt}var ns,kl;function wn(){if(kl)return ns;kl=1;var e=(function(){function t(r,n,i){n===void 0&&(n=null),i===void 0&&(i=!1),this.name="YAMLException",this.reason=r,this.mark=n,this.message=this.toString(!1),this.isWarning=i}return t.isInstance=function(r){if(r!=null&&r.getClassIdentifier&&typeof r.getClassIdentifier=="function")for(var n=0,i=r.getClassIdentifier();n<i.length;n++){var o=i[n];if(o==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 ns=e,ns}var is,Dl;function kR(){if(Dl)return is;Dl=1;var e=Cr(),t=(function(){function r(n,i,o,s,a){this.name=n,this.buffer=i,this.position=o,this.line=s,this.column=a}return r.prototype.getSnippet=function(n,i){n===void 0&&(n=0),i===void 0&&(i=75);var o,s,a,c,l;if(!this.buffer)return null;for(n=n||4,i=i||75,o="",s=this.position;s>0&&`\0\r
84
+ …\u2028\u2029`.indexOf(this.buffer.charAt(s-1))===-1;)if(s-=1,this.position-s>i/2-1){o=" ... ",s+=5;break}for(a="",c=this.position;c<this.buffer.length&&`\0\r
85
+ …\u2028\u2029`.indexOf(this.buffer.charAt(c))===-1;)if(c+=1,c-this.position>i/2-1){a=" ... ",c-=5;break}return l=this.buffer.slice(s,c),e.repeat(" ",n)+o+l+a+`
86
+ `+e.repeat(" ",n+this.position-s+o.length)+"^"},r.prototype.toString=function(n){n===void 0&&(n=!0);var i,o="";return this.name&&(o+='in "'+this.name+'" '),o+="at line "+(this.line+1)+", column "+(this.column+1),n||(i=this.getSnippet(),i&&(o+=`:
87
+ `+i)),o},r})();return is=t,is}var Ci={},ji={},ql;function nt(){if(ql)return ji;ql=1,Object.defineProperty(ji,"__esModule",{value:!0});var e=wn(),t=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];function n(o){var s={};return o!==null&&Object.keys(o).forEach(function(a){o[a].forEach(function(c){s[String(c)]=a})}),s}var i=(function(){function o(s,a){if(a=a||{},Object.keys(a).forEach(function(c){if(t.indexOf(c)===-1)throw new e('Unknown option "'+c+'" is met in definition of "'+s+'" YAML type.')}),this.tag=s,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(c){return c},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.defaultStyle=a.defaultStyle||null,this.styleAliases=n(a.styleAliases||null),r.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+s+'" YAML type.')}return o})();return ji.Type=i,ji}var Cl;function Sn(){if(Cl)return Ci;Cl=1,Object.defineProperty(Ci,"__esModule",{value:!0});var e=Cr(),t=wn(),r=nt();function n(s,a,c){var l=[];return s.include.forEach(function(u){c=n(u,a,c)}),s[a].forEach(function(u){c.forEach(function(m,y){m.tag===u.tag&&l.push(y)}),c.push(u)}),c.filter(function(u,m){return l.indexOf(m)===-1})}function i(){var s={},a,c;function l(u){s[u.tag]=u}for(a=0,c=arguments.length;a<c;a+=1)arguments[a].forEach(l);return s}var o=(function(){function s(a){this.include=a.include||[],this.implicit=a.implicit||[],this.explicit=a.explicit||[],this.implicit.forEach(function(c){if(c.loadKind&&c.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=i(this.compiledImplicit,this.compiledExplicit)}return s.DEFAULT=null,s.create=function(){var c,l;switch(arguments.length){case 1:c=s.DEFAULT,l=arguments[0];break;case 2:c=arguments[0],l=arguments[1];break;default:throw new t("Wrong number of arguments for Schema.create function")}if(c=e.toArray(c),l=e.toArray(l),!c.every(function(u){return u instanceof s}))throw new t("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!l.every(function(u){return u instanceof r.Type}))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new s({include:c,explicit:l})},s})();return Ci.Schema=o,Ci}var os,jl;function DR(){if(jl)return os;jl=1;var e=nt();return os=new e.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),os}var ss,Ml;function qR(){if(Ml)return ss;Ml=1;var e=nt();return ss=new e.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),ss}var as,Ll;function CR(){if(Ll)return as;Ll=1;var e=nt();return as=new e.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),as}var cs,Ul;function jR(){if(Ul)return cs;Ul=1;var e=Sn();return cs=new e.Schema({explicit:[DR(),qR(),CR()]}),cs}var ps,Fl;function MR(){if(Fl)return ps;Fl=1;var e=nt();function t(i){if(i===null)return!0;var o=i.length;return o===1&&i==="~"||o===4&&(i==="null"||i==="Null"||i==="NULL")}function r(){return null}function n(i){return i===null}return ps=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"}),ps}var ls,Bl;function LR(){if(Bl)return ls;Bl=1;var e=nt();function t(i){if(i===null)return!1;var o=i.length;return o===4&&(i==="true"||i==="True"||i==="TRUE")||o===5&&(i==="false"||i==="False"||i==="FALSE")}function r(i){return i==="true"||i==="True"||i==="TRUE"}function n(i){return Object.prototype.toString.call(i)==="[object Boolean]"}return ls=new e.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:t,construct:r,predicate:n,represent:{lowercase:function(i){return i?"true":"false"},uppercase:function(i){return i?"TRUE":"FALSE"},camelcase:function(i){return i?"True":"False"}},defaultStyle:"lowercase"}),ls}var us,zl;function UR(){if(zl)return us;zl=1;var e=Cr(),t=nt();function r(c){return 48<=c&&c<=57||65<=c&&c<=70||97<=c&&c<=102}function n(c){return 48<=c&&c<=55}function i(c){return 48<=c&&c<=57}function o(c){if(c===null)return!1;var l=c.length,u=0,m=!1,y;if(!l)return!1;if(y=c[u],(y==="-"||y==="+")&&(y=c[++u]),y==="0"){if(u+1===l)return!0;if(y=c[++u],y==="b"){for(u++;u<l;u++)if(y=c[u],y!=="_"){if(y!=="0"&&y!=="1")return!1;m=!0}return m}if(y==="x"){for(u++;u<l;u++)if(y=c[u],y!=="_"){if(!r(c.charCodeAt(u)))return!1;m=!0}return m}for(;u<l;u++)if(y=c[u],y!=="_"){if(!n(c.charCodeAt(u)))return!1;m=!0}return m}for(;u<l;u++)if(y=c[u],y!=="_"){if(y===":")break;if(!i(c.charCodeAt(u)))return!1;m=!0}return m?y!==":"?!0:/^(:[0-5]?[0-9])+$/.test(c.slice(u)):!1}function s(c){var l=c,u=1,m,y,h=[];return l.indexOf("_")!==-1&&(l=l.replace(/_/g,"")),m=l[0],(m==="-"||m==="+")&&(m==="-"&&(u=-1),l=l.slice(1),m=l[0]),l==="0"?0:m==="0"?l[1]==="b"?u*parseInt(l.slice(2),2):l[1]==="x"?u*parseInt(l,16):u*parseInt(l,8):l.indexOf(":")!==-1?(l.split(":").forEach(function(w){h.unshift(parseInt(w,10))}),l=0,y=1,h.forEach(function(w){l+=w*y,y*=60}),u*l):u*parseInt(l,10)}function a(c){return Object.prototype.toString.call(c)==="[object Number]"&&c%1===0&&!e.isNegativeZero(c)}return us=new t.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:o,construct:s,predicate:a,represent:{binary:function(c){return"0b"+c.toString(2)},octal:function(c){return"0"+c.toString(8)},decimal:function(c){return c.toString(10)},hexadecimal:function(c){return"0x"+c.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),us}var ds,Vl;function FR(){if(Vl)return ds;Vl=1;var e=Cr(),t=nt(),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(a){return!(a===null||!r.test(a))}function i(a){var c,l,u,m;return c=a.replace(/_/g,"").toLowerCase(),l=c[0]==="-"?-1:1,m=[],0<="+-".indexOf(c[0])&&(c=c.slice(1)),c===".inf"?l===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:c===".nan"?NaN:0<=c.indexOf(":")?(c.split(":").forEach(function(y){m.unshift(parseFloat(y,10))}),c=0,u=1,m.forEach(function(y){c+=y*u,u*=60}),l*c):l*parseFloat(c,10)}function o(a,c){if(isNaN(a))switch(c){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===a)switch(c){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===a)switch(c){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(a))return"-0.0";return a.toString(10)}function s(a){return Object.prototype.toString.call(a)==="[object Number]"&&(a%1!==0||e.isNegativeZero(a))}return ds=new t.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:n,construct:i,predicate:s,represent:o,defaultStyle:"lowercase"}),ds}var fs,Kl;function BR(){if(Kl)return fs;Kl=1;var e=Sn();return fs=new e.Schema({include:[jR()],implicit:[MR(),LR(),UR(),FR()]}),fs}var ms,Hl;function zR(){if(Hl)return ms;Hl=1;var e=Sn();return ms=new e.Schema({include:[BR()]}),ms}var hs,Gl;function VR(){if(Gl)return hs;Gl=1;var e=nt(),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(o){if(o===null)return!1;var s;return s=t.exec(o),s!==null}function n(o){var s,a,c,l,u,m,y,h=0,w=null,b,E,P;if(s=t.exec(o),s===null)throw new Error("Date resolve error");if(a=+s[1],c=+s[2]-1,l=+s[3],!s[4])return new Date(Date.UTC(a,c,l));if(u=+s[4],m=+s[5],y=+s[6],s[7]){for(h=s[7].slice(0,3);h.length<3;)h=h+"0";h=+h}return s[9]&&(b=+s[10],E=+(s[11]||0),w=(b*60+E)*6e4,s[9]==="-"&&(w=-w)),P=new Date(Date.UTC(a,c,l,u,m,y,h)),w&&P.setTime(P.getTime()-w),P}function i(o){return o.toISOString()}return hs=new e.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:r,construct:n,instanceOf:Date,represent:i}),hs}var ys,Yl;function KR(){if(Yl)return ys;Yl=1;var e=nt();function t(r){return r==="<<"||r===null}return ys=new e.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),ys}var gs={},Br={},Ql;function HR(){if(Ql)return Br;Ql=1,Br.byteLength=a,Br.toByteArray=l,Br.fromByteArray=y;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i<o;++i)e[i]=n[i],t[n.charCodeAt(i)]=i;t[45]=62,t[95]=63;function s(h){var w=h.length;if(w%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var b=h.indexOf("=");b===-1&&(b=w);var E=b===w?0:4-b%4;return[b,E]}function a(h){var w=s(h),b=w[0],E=w[1];return(b+E)*3/4-E}function c(h,w,b){return(w+b)*3/4-b}function l(h){var w,b=s(h),E=b[0],P=b[1],I=new r(c(h,E,P)),v=0,x=P>0?E-4:E,g;for(g=0;g<x;g+=4)w=t[h.charCodeAt(g)]<<18|t[h.charCodeAt(g+1)]<<12|t[h.charCodeAt(g+2)]<<6|t[h.charCodeAt(g+3)],I[v++]=w>>16&255,I[v++]=w>>8&255,I[v++]=w&255;return P===2&&(w=t[h.charCodeAt(g)]<<2|t[h.charCodeAt(g+1)]>>4,I[v++]=w&255),P===1&&(w=t[h.charCodeAt(g)]<<10|t[h.charCodeAt(g+1)]<<4|t[h.charCodeAt(g+2)]>>2,I[v++]=w>>8&255,I[v++]=w&255),I}function u(h){return e[h>>18&63]+e[h>>12&63]+e[h>>6&63]+e[h&63]}function m(h,w,b){for(var E,P=[],I=w;I<b;I+=3)E=(h[I]<<16&16711680)+(h[I+1]<<8&65280)+(h[I+2]&255),P.push(u(E));return P.join("")}function y(h){for(var w,b=h.length,E=b%3,P=[],I=16383,v=0,x=b-E;v<x;v+=I)P.push(m(h,v,v+I>x?x:v+I));return E===1?(w=h[b-1],P.push(e[w>>2]+e[w<<4&63]+"==")):E===2&&(w=(h[b-2]<<8)+h[b-1],P.push(e[w>>10]+e[w>>4&63]+e[w<<2&63]+"=")),P.join("")}return Br}var Mi={};var Wl;function GR(){return Wl||(Wl=1,Mi.read=function(e,t,r,n,i){var o,s,a=i*8-n-1,c=(1<<a)-1,l=c>>1,u=-7,m=r?i-1:0,y=r?-1:1,h=e[t+m];for(m+=y,o=h&(1<<-u)-1,h>>=-u,u+=a;u>0;o=o*256+e[t+m],m+=y,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=n;u>0;s=s*256+e[t+m],m+=y,u-=8);if(o===0)o=1-l;else{if(o===c)return s?NaN:(h?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-l}return(h?-1:1)*s*Math.pow(2,o-n)},Mi.write=function(e,t,r,n,i,o){var s,a,c,l=o*8-i-1,u=(1<<l)-1,m=u>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,w=n?1:-1,b=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+m>=1?t+=y/c:t+=y*Math.pow(2,1-m),t*c>=2&&(s++,c/=2),s+m>=u?(a=0,s=u):s+m>=1?(a=(t*c-1)*Math.pow(2,i),s=s+m):(a=t*Math.pow(2,m-1)*Math.pow(2,i),s=0));i>=8;e[r+h]=a&255,h+=w,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;e[r+h]=s&255,h+=w,s/=256,l-=8);e[r+h-w]|=b*128}),Mi}var Jl;function YR(){return Jl||(Jl=1,(function(e){const t=HR(),r=GR(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=I,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=o(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const p=new Uint8Array(1),d={foo:function(){return 42}};return Object.setPrototypeOf(d,Uint8Array.prototype),Object.setPrototypeOf(p,d),p.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(p){if(p>i)throw new RangeError('The value "'+p+'" is invalid for option "size"');const d=new Uint8Array(p);return Object.setPrototypeOf(d,a.prototype),d}function a(p,d,f){if(typeof p=="number"){if(typeof d=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(p)}return c(p,d,f)}a.poolSize=8192;function c(p,d,f){if(typeof p=="string")return y(p,d);if(ArrayBuffer.isView(p))return w(p);if(p==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p);if(le(p,ArrayBuffer)||p&&le(p.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(le(p,SharedArrayBuffer)||p&&le(p.buffer,SharedArrayBuffer)))return b(p,d,f);if(typeof p=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const T=p.valueOf&&p.valueOf();if(T!=null&&T!==p)return a.from(T,d,f);const R=E(p);if(R)return R;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof p[Symbol.toPrimitive]=="function")return a.from(p[Symbol.toPrimitive]("string"),d,f);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof p)}a.from=function(p,d,f){return c(p,d,f)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function l(p){if(typeof p!="number")throw new TypeError('"size" argument must be of type number');if(p<0)throw new RangeError('The value "'+p+'" is invalid for option "size"')}function u(p,d,f){return l(p),p<=0?s(p):d!==void 0?typeof f=="string"?s(p).fill(d,f):s(p).fill(d):s(p)}a.alloc=function(p,d,f){return u(p,d,f)};function m(p){return l(p),s(p<0?0:P(p)|0)}a.allocUnsafe=function(p){return m(p)},a.allocUnsafeSlow=function(p){return m(p)};function y(p,d){if((typeof d!="string"||d==="")&&(d="utf8"),!a.isEncoding(d))throw new TypeError("Unknown encoding: "+d);const f=v(p,d)|0;let T=s(f);const R=T.write(p,d);return R!==f&&(T=T.slice(0,R)),T}function h(p){const d=p.length<0?0:P(p.length)|0,f=s(d);for(let T=0;T<d;T+=1)f[T]=p[T]&255;return f}function w(p){if(le(p,Uint8Array)){const d=new Uint8Array(p);return b(d.buffer,d.byteOffset,d.byteLength)}return h(p)}function b(p,d,f){if(d<0||p.byteLength<d)throw new RangeError('"offset" is outside of buffer bounds');if(p.byteLength<d+(f||0))throw new RangeError('"length" is outside of buffer bounds');let T;return d===void 0&&f===void 0?T=new Uint8Array(p):f===void 0?T=new Uint8Array(p,d):T=new Uint8Array(p,d,f),Object.setPrototypeOf(T,a.prototype),T}function E(p){if(a.isBuffer(p)){const d=P(p.length)|0,f=s(d);return f.length===0||p.copy(f,0,0,d),f}if(p.length!==void 0)return typeof p.length!="number"||ue(p.length)?s(0):h(p);if(p.type==="Buffer"&&Array.isArray(p.data))return h(p.data)}function P(p){if(p>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return p|0}function I(p){return+p!=p&&(p=0),a.alloc(+p)}a.isBuffer=function(d){return d!=null&&d._isBuffer===!0&&d!==a.prototype},a.compare=function(d,f){if(le(d,Uint8Array)&&(d=a.from(d,d.offset,d.byteLength)),le(f,Uint8Array)&&(f=a.from(f,f.offset,f.byteLength)),!a.isBuffer(d)||!a.isBuffer(f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(d===f)return 0;let T=d.length,R=f.length;for(let D=0,j=Math.min(T,R);D<j;++D)if(d[D]!==f[D]){T=d[D],R=f[D];break}return T<R?-1:R<T?1:0},a.isEncoding=function(d){switch(String(d).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(d,f){if(!Array.isArray(d))throw new TypeError('"list" argument must be an Array of Buffers');if(d.length===0)return a.alloc(0);let T;if(f===void 0)for(f=0,T=0;T<d.length;++T)f+=d[T].length;const R=a.allocUnsafe(f);let D=0;for(T=0;T<d.length;++T){let j=d[T];if(le(j,Uint8Array))D+j.length>R.length?(a.isBuffer(j)||(j=a.from(j)),j.copy(R,D)):Uint8Array.prototype.set.call(R,j,D);else if(a.isBuffer(j))j.copy(R,D);else throw new TypeError('"list" argument must be an Array of Buffers');D+=j.length}return R};function v(p,d){if(a.isBuffer(p))return p.length;if(ArrayBuffer.isView(p)||le(p,ArrayBuffer))return p.byteLength;if(typeof p!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof p);const f=p.length,T=arguments.length>2&&arguments[2]===!0;if(!T&&f===0)return 0;let R=!1;for(;;)switch(d){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":return q(p).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f*2;case"hex":return f>>>1;case"base64":return ne(p).length;default:if(R)return T?-1:q(p).length;d=(""+d).toLowerCase(),R=!0}}a.byteLength=v;function x(p,d,f){let T=!1;if((d===void 0||d<0)&&(d=0),d>this.length||((f===void 0||f>this.length)&&(f=this.length),f<=0)||(f>>>=0,d>>>=0,f<=d))return"";for(p||(p="utf8");;)switch(p){case"hex":return Pe(this,d,f);case"utf8":case"utf-8":return G(this,d,f);case"ascii":return be(this,d,f);case"latin1":case"binary":return ge(this,d,f);case"base64":return M(this,d,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,d,f);default:if(T)throw new TypeError("Unknown encoding: "+p);p=(p+"").toLowerCase(),T=!0}}a.prototype._isBuffer=!0;function g(p,d,f){const T=p[d];p[d]=p[f],p[f]=T}a.prototype.swap16=function(){const d=this.length;if(d%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let f=0;f<d;f+=2)g(this,f,f+1);return this},a.prototype.swap32=function(){const d=this.length;if(d%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let f=0;f<d;f+=4)g(this,f,f+3),g(this,f+1,f+2);return this},a.prototype.swap64=function(){const d=this.length;if(d%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let f=0;f<d;f+=8)g(this,f,f+7),g(this,f+1,f+6),g(this,f+2,f+5),g(this,f+3,f+4);return this},a.prototype.toString=function(){const d=this.length;return d===0?"":arguments.length===0?G(this,0,d):x.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(d){if(!a.isBuffer(d))throw new TypeError("Argument must be a Buffer");return this===d?!0:a.compare(this,d)===0},a.prototype.inspect=function(){let d="";const f=e.INSPECT_MAX_BYTES;return d=this.toString("hex",0,f).replace(/(.{2})/g,"$1 ").trim(),this.length>f&&(d+=" ... "),"<Buffer "+d+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(d,f,T,R,D){if(le(d,Uint8Array)&&(d=a.from(d,d.offset,d.byteLength)),!a.isBuffer(d))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof d);if(f===void 0&&(f=0),T===void 0&&(T=d?d.length:0),R===void 0&&(R=0),D===void 0&&(D=this.length),f<0||T>d.length||R<0||D>this.length)throw new RangeError("out of range index");if(R>=D&&f>=T)return 0;if(R>=D)return-1;if(f>=T)return 1;if(f>>>=0,T>>>=0,R>>>=0,D>>>=0,this===d)return 0;let j=D-R,te=T-f;const se=Math.min(j,te),Ee=this.slice(R,D),ce=d.slice(f,T);for(let ve=0;ve<se;++ve)if(Ee[ve]!==ce[ve]){j=Ee[ve],te=ce[ve];break}return j<te?-1:te<j?1:0};function S(p,d,f,T,R){if(p.length===0)return-1;if(typeof f=="string"?(T=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),f=+f,ue(f)&&(f=R?0:p.length-1),f<0&&(f=p.length+f),f>=p.length){if(R)return-1;f=p.length-1}else if(f<0)if(R)f=0;else return-1;if(typeof d=="string"&&(d=a.from(d,T)),a.isBuffer(d))return d.length===0?-1:O(p,d,f,T,R);if(typeof d=="number")return d=d&255,typeof Uint8Array.prototype.indexOf=="function"?R?Uint8Array.prototype.indexOf.call(p,d,f):Uint8Array.prototype.lastIndexOf.call(p,d,f):O(p,[d],f,T,R);throw new TypeError("val must be string, number or Buffer")}function O(p,d,f,T,R){let D=1,j=p.length,te=d.length;if(T!==void 0&&(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le")){if(p.length<2||d.length<2)return-1;D=2,j/=2,te/=2,f/=2}function se(ce,ve){return D===1?ce[ve]:ce.readUInt16BE(ve*D)}let Ee;if(R){let ce=-1;for(Ee=f;Ee<j;Ee++)if(se(p,Ee)===se(d,ce===-1?0:Ee-ce)){if(ce===-1&&(ce=Ee),Ee-ce+1===te)return ce*D}else ce!==-1&&(Ee-=Ee-ce),ce=-1}else for(f+te>j&&(f=j-te),Ee=f;Ee>=0;Ee--){let ce=!0;for(let ve=0;ve<te;ve++)if(se(p,Ee+ve)!==se(d,ve)){ce=!1;break}if(ce)return Ee}return-1}a.prototype.includes=function(d,f,T){return this.indexOf(d,f,T)!==-1},a.prototype.indexOf=function(d,f,T){return S(this,d,f,T,!0)},a.prototype.lastIndexOf=function(d,f,T){return S(this,d,f,T,!1)};function k(p,d,f,T){f=Number(f)||0;const R=p.length-f;T?(T=Number(T),T>R&&(T=R)):T=R;const D=d.length;T>D/2&&(T=D/2);let j;for(j=0;j<T;++j){const te=parseInt(d.substr(j*2,2),16);if(ue(te))return j;p[f+j]=te}return j}function Y(p,d,f,T){return oe(q(d,p.length-f),p,f,T)}function F(p,d,f,T){return oe(Z(d),p,f,T)}function z(p,d,f,T){return oe(ne(d),p,f,T)}function J(p,d,f,T){return oe(pe(d,p.length-f),p,f,T)}a.prototype.write=function(d,f,T,R){if(f===void 0)R="utf8",T=this.length,f=0;else if(T===void 0&&typeof f=="string")R=f,T=this.length,f=0;else if(isFinite(f))f=f>>>0,isFinite(T)?(T=T>>>0,R===void 0&&(R="utf8")):(R=T,T=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const D=this.length-f;if((T===void 0||T>D)&&(T=D),d.length>0&&(T<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");R||(R="utf8");let j=!1;for(;;)switch(R){case"hex":return k(this,d,f,T);case"utf8":case"utf-8":return Y(this,d,f,T);case"ascii":case"latin1":case"binary":return F(this,d,f,T);case"base64":return z(this,d,f,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,d,f,T);default:if(j)throw new TypeError("Unknown encoding: "+R);R=(""+R).toLowerCase(),j=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function M(p,d,f){return d===0&&f===p.length?t.fromByteArray(p):t.fromByteArray(p.slice(d,f))}function G(p,d,f){f=Math.min(p.length,f);const T=[];let R=d;for(;R<f;){const D=p[R];let j=null,te=D>239?4:D>223?3:D>191?2:1;if(R+te<=f){let se,Ee,ce,ve;switch(te){case 1:D<128&&(j=D);break;case 2:se=p[R+1],(se&192)===128&&(ve=(D&31)<<6|se&63,ve>127&&(j=ve));break;case 3:se=p[R+1],Ee=p[R+2],(se&192)===128&&(Ee&192)===128&&(ve=(D&15)<<12|(se&63)<<6|Ee&63,ve>2047&&(ve<55296||ve>57343)&&(j=ve));break;case 4:se=p[R+1],Ee=p[R+2],ce=p[R+3],(se&192)===128&&(Ee&192)===128&&(ce&192)===128&&(ve=(D&15)<<18|(se&63)<<12|(Ee&63)<<6|ce&63,ve>65535&&ve<1114112&&(j=ve))}}j===null?(j=65533,te=1):j>65535&&(j-=65536,T.push(j>>>10&1023|55296),j=56320|j&1023),T.push(j),R+=te}return Se(T)}const de=4096;function Se(p){const d=p.length;if(d<=de)return String.fromCharCode.apply(String,p);let f="",T=0;for(;T<d;)f+=String.fromCharCode.apply(String,p.slice(T,T+=de));return f}function be(p,d,f){let T="";f=Math.min(p.length,f);for(let R=d;R<f;++R)T+=String.fromCharCode(p[R]&127);return T}function ge(p,d,f){let T="";f=Math.min(p.length,f);for(let R=d;R<f;++R)T+=String.fromCharCode(p[R]);return T}function Pe(p,d,f){const T=p.length;(!d||d<0)&&(d=0),(!f||f<0||f>T)&&(f=T);let R="";for(let D=d;D<f;++D)R+=fe[p[D]];return R}function B(p,d,f){const T=p.slice(d,f);let R="";for(let D=0;D<T.length-1;D+=2)R+=String.fromCharCode(T[D]+T[D+1]*256);return R}a.prototype.slice=function(d,f){const T=this.length;d=~~d,f=f===void 0?T:~~f,d<0?(d+=T,d<0&&(d=0)):d>T&&(d=T),f<0?(f+=T,f<0&&(f=0)):f>T&&(f=T),f<d&&(f=d);const R=this.subarray(d,f);return Object.setPrototypeOf(R,a.prototype),R};function L(p,d,f){if(p%1!==0||p<0)throw new RangeError("offset is not uint");if(p+d>f)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(d,f,T){d=d>>>0,f=f>>>0,T||L(d,f,this.length);let R=this[d],D=1,j=0;for(;++j<f&&(D*=256);)R+=this[d+j]*D;return R},a.prototype.readUintBE=a.prototype.readUIntBE=function(d,f,T){d=d>>>0,f=f>>>0,T||L(d,f,this.length);let R=this[d+--f],D=1;for(;f>0&&(D*=256);)R+=this[d+--f]*D;return R},a.prototype.readUint8=a.prototype.readUInt8=function(d,f){return d=d>>>0,f||L(d,1,this.length),this[d]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(d,f){return d=d>>>0,f||L(d,2,this.length),this[d]|this[d+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(d,f){return d=d>>>0,f||L(d,2,this.length),this[d]<<8|this[d+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(d,f){return d=d>>>0,f||L(d,4,this.length),(this[d]|this[d+1]<<8|this[d+2]<<16)+this[d+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(d,f){return d=d>>>0,f||L(d,4,this.length),this[d]*16777216+(this[d+1]<<16|this[d+2]<<8|this[d+3])},a.prototype.readBigUInt64LE=xe(function(d){d=d>>>0,X(d,"offset");const f=this[d],T=this[d+7];(f===void 0||T===void 0)&&re(d,this.length-8);const R=f+this[++d]*2**8+this[++d]*2**16+this[++d]*2**24,D=this[++d]+this[++d]*2**8+this[++d]*2**16+T*2**24;return BigInt(R)+(BigInt(D)<<BigInt(32))}),a.prototype.readBigUInt64BE=xe(function(d){d=d>>>0,X(d,"offset");const f=this[d],T=this[d+7];(f===void 0||T===void 0)&&re(d,this.length-8);const R=f*2**24+this[++d]*2**16+this[++d]*2**8+this[++d],D=this[++d]*2**24+this[++d]*2**16+this[++d]*2**8+T;return(BigInt(R)<<BigInt(32))+BigInt(D)}),a.prototype.readIntLE=function(d,f,T){d=d>>>0,f=f>>>0,T||L(d,f,this.length);let R=this[d],D=1,j=0;for(;++j<f&&(D*=256);)R+=this[d+j]*D;return D*=128,R>=D&&(R-=Math.pow(2,8*f)),R},a.prototype.readIntBE=function(d,f,T){d=d>>>0,f=f>>>0,T||L(d,f,this.length);let R=f,D=1,j=this[d+--R];for(;R>0&&(D*=256);)j+=this[d+--R]*D;return D*=128,j>=D&&(j-=Math.pow(2,8*f)),j},a.prototype.readInt8=function(d,f){return d=d>>>0,f||L(d,1,this.length),this[d]&128?(255-this[d]+1)*-1:this[d]},a.prototype.readInt16LE=function(d,f){d=d>>>0,f||L(d,2,this.length);const T=this[d]|this[d+1]<<8;return T&32768?T|4294901760:T},a.prototype.readInt16BE=function(d,f){d=d>>>0,f||L(d,2,this.length);const T=this[d+1]|this[d]<<8;return T&32768?T|4294901760:T},a.prototype.readInt32LE=function(d,f){return d=d>>>0,f||L(d,4,this.length),this[d]|this[d+1]<<8|this[d+2]<<16|this[d+3]<<24},a.prototype.readInt32BE=function(d,f){return d=d>>>0,f||L(d,4,this.length),this[d]<<24|this[d+1]<<16|this[d+2]<<8|this[d+3]},a.prototype.readBigInt64LE=xe(function(d){d=d>>>0,X(d,"offset");const f=this[d],T=this[d+7];(f===void 0||T===void 0)&&re(d,this.length-8);const R=this[d+4]+this[d+5]*2**8+this[d+6]*2**16+(T<<24);return(BigInt(R)<<BigInt(32))+BigInt(f+this[++d]*2**8+this[++d]*2**16+this[++d]*2**24)}),a.prototype.readBigInt64BE=xe(function(d){d=d>>>0,X(d,"offset");const f=this[d],T=this[d+7];(f===void 0||T===void 0)&&re(d,this.length-8);const R=(f<<24)+this[++d]*2**16+this[++d]*2**8+this[++d];return(BigInt(R)<<BigInt(32))+BigInt(this[++d]*2**24+this[++d]*2**16+this[++d]*2**8+T)}),a.prototype.readFloatLE=function(d,f){return d=d>>>0,f||L(d,4,this.length),r.read(this,d,!0,23,4)},a.prototype.readFloatBE=function(d,f){return d=d>>>0,f||L(d,4,this.length),r.read(this,d,!1,23,4)},a.prototype.readDoubleLE=function(d,f){return d=d>>>0,f||L(d,8,this.length),r.read(this,d,!0,52,8)},a.prototype.readDoubleBE=function(d,f){return d=d>>>0,f||L(d,8,this.length),r.read(this,d,!1,52,8)};function Q(p,d,f,T,R,D){if(!a.isBuffer(p))throw new TypeError('"buffer" argument must be a Buffer instance');if(d>R||d<D)throw new RangeError('"value" argument is out of bounds');if(f+T>p.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(d,f,T,R){if(d=+d,f=f>>>0,T=T>>>0,!R){const te=Math.pow(2,8*T)-1;Q(this,d,f,T,te,0)}let D=1,j=0;for(this[f]=d&255;++j<T&&(D*=256);)this[f+j]=d/D&255;return f+T},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(d,f,T,R){if(d=+d,f=f>>>0,T=T>>>0,!R){const te=Math.pow(2,8*T)-1;Q(this,d,f,T,te,0)}let D=T-1,j=1;for(this[f+D]=d&255;--D>=0&&(j*=256);)this[f+D]=d/j&255;return f+T},a.prototype.writeUint8=a.prototype.writeUInt8=function(d,f,T){return d=+d,f=f>>>0,T||Q(this,d,f,1,255,0),this[f]=d&255,f+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(d,f,T){return d=+d,f=f>>>0,T||Q(this,d,f,2,65535,0),this[f]=d&255,this[f+1]=d>>>8,f+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(d,f,T){return d=+d,f=f>>>0,T||Q(this,d,f,2,65535,0),this[f]=d>>>8,this[f+1]=d&255,f+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(d,f,T){return d=+d,f=f>>>0,T||Q(this,d,f,4,4294967295,0),this[f+3]=d>>>24,this[f+2]=d>>>16,this[f+1]=d>>>8,this[f]=d&255,f+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(d,f,T){return d=+d,f=f>>>0,T||Q(this,d,f,4,4294967295,0),this[f]=d>>>24,this[f+1]=d>>>16,this[f+2]=d>>>8,this[f+3]=d&255,f+4};function V(p,d,f,T,R){U(d,T,R,p,f,7);let D=Number(d&BigInt(4294967295));p[f++]=D,D=D>>8,p[f++]=D,D=D>>8,p[f++]=D,D=D>>8,p[f++]=D;let j=Number(d>>BigInt(32)&BigInt(4294967295));return p[f++]=j,j=j>>8,p[f++]=j,j=j>>8,p[f++]=j,j=j>>8,p[f++]=j,f}function _(p,d,f,T,R){U(d,T,R,p,f,7);let D=Number(d&BigInt(4294967295));p[f+7]=D,D=D>>8,p[f+6]=D,D=D>>8,p[f+5]=D,D=D>>8,p[f+4]=D;let j=Number(d>>BigInt(32)&BigInt(4294967295));return p[f+3]=j,j=j>>8,p[f+2]=j,j=j>>8,p[f+1]=j,j=j>>8,p[f]=j,f+8}a.prototype.writeBigUInt64LE=xe(function(d,f=0){return V(this,d,f,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=xe(function(d,f=0){return _(this,d,f,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(d,f,T,R){if(d=+d,f=f>>>0,!R){const se=Math.pow(2,8*T-1);Q(this,d,f,T,se-1,-se)}let D=0,j=1,te=0;for(this[f]=d&255;++D<T&&(j*=256);)d<0&&te===0&&this[f+D-1]!==0&&(te=1),this[f+D]=(d/j>>0)-te&255;return f+T},a.prototype.writeIntBE=function(d,f,T,R){if(d=+d,f=f>>>0,!R){const se=Math.pow(2,8*T-1);Q(this,d,f,T,se-1,-se)}let D=T-1,j=1,te=0;for(this[f+D]=d&255;--D>=0&&(j*=256);)d<0&&te===0&&this[f+D+1]!==0&&(te=1),this[f+D]=(d/j>>0)-te&255;return f+T},a.prototype.writeInt8=function(d,f,T){return d=+d,f=f>>>0,T||Q(this,d,f,1,127,-128),d<0&&(d=255+d+1),this[f]=d&255,f+1},a.prototype.writeInt16LE=function(d,f,T){return d=+d,f=f>>>0,T||Q(this,d,f,2,32767,-32768),this[f]=d&255,this[f+1]=d>>>8,f+2},a.prototype.writeInt16BE=function(d,f,T){return d=+d,f=f>>>0,T||Q(this,d,f,2,32767,-32768),this[f]=d>>>8,this[f+1]=d&255,f+2},a.prototype.writeInt32LE=function(d,f,T){return d=+d,f=f>>>0,T||Q(this,d,f,4,2147483647,-2147483648),this[f]=d&255,this[f+1]=d>>>8,this[f+2]=d>>>16,this[f+3]=d>>>24,f+4},a.prototype.writeInt32BE=function(d,f,T){return d=+d,f=f>>>0,T||Q(this,d,f,4,2147483647,-2147483648),d<0&&(d=4294967295+d+1),this[f]=d>>>24,this[f+1]=d>>>16,this[f+2]=d>>>8,this[f+3]=d&255,f+4},a.prototype.writeBigInt64LE=xe(function(d,f=0){return V(this,d,f,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=xe(function(d,f=0){return _(this,d,f,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function $(p,d,f,T,R,D){if(f+T>p.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}function A(p,d,f,T,R){return d=+d,f=f>>>0,R||$(p,d,f,4),r.write(p,d,f,T,23,4),f+4}a.prototype.writeFloatLE=function(d,f,T){return A(this,d,f,!0,T)},a.prototype.writeFloatBE=function(d,f,T){return A(this,d,f,!1,T)};function K(p,d,f,T,R){return d=+d,f=f>>>0,R||$(p,d,f,8),r.write(p,d,f,T,52,8),f+8}a.prototype.writeDoubleLE=function(d,f,T){return K(this,d,f,!0,T)},a.prototype.writeDoubleBE=function(d,f,T){return K(this,d,f,!1,T)},a.prototype.copy=function(d,f,T,R){if(!a.isBuffer(d))throw new TypeError("argument should be a Buffer");if(T||(T=0),!R&&R!==0&&(R=this.length),f>=d.length&&(f=d.length),f||(f=0),R>0&&R<T&&(R=T),R===T||d.length===0||this.length===0)return 0;if(f<0)throw new RangeError("targetStart out of bounds");if(T<0||T>=this.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("sourceEnd out of bounds");R>this.length&&(R=this.length),d.length-f<R-T&&(R=d.length-f+T);const D=R-T;return this===d&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(f,T,R):Uint8Array.prototype.set.call(d,this.subarray(T,R),f),D},a.prototype.fill=function(d,f,T,R){if(typeof d=="string"){if(typeof f=="string"?(R=f,f=0,T=this.length):typeof T=="string"&&(R=T,T=this.length),R!==void 0&&typeof R!="string")throw new TypeError("encoding must be a string");if(typeof R=="string"&&!a.isEncoding(R))throw new TypeError("Unknown encoding: "+R);if(d.length===1){const j=d.charCodeAt(0);(R==="utf8"&&j<128||R==="latin1")&&(d=j)}}else typeof d=="number"?d=d&255:typeof d=="boolean"&&(d=Number(d));if(f<0||this.length<f||this.length<T)throw new RangeError("Out of range index");if(T<=f)return this;f=f>>>0,T=T===void 0?this.length:T>>>0,d||(d=0);let D;if(typeof d=="number")for(D=f;D<T;++D)this[D]=d;else{const j=a.isBuffer(d)?d:a.from(d,R),te=j.length;if(te===0)throw new TypeError('The value "'+d+'" is invalid for argument "value"');for(D=0;D<T-f;++D)this[D+f]=j[D%te]}return this};const H={};function W(p,d,f){H[p]=class extends f{constructor(){super(),Object.defineProperty(this,"message",{value:d.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${p}]`,this.stack,delete this.name}get code(){return p}set code(R){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:R,writable:!0})}toString(){return`${this.name} [${p}]: ${this.message}`}}}W("ERR_BUFFER_OUT_OF_BOUNDS",function(p){return p?`${p} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),W("ERR_INVALID_ARG_TYPE",function(p,d){return`The "${p}" argument must be of type number. Received type ${typeof d}`},TypeError),W("ERR_OUT_OF_RANGE",function(p,d,f){let T=`The value of "${p}" is out of range.`,R=f;return Number.isInteger(f)&&Math.abs(f)>2**32?R=ae(String(f)):typeof f=="bigint"&&(R=String(f),(f>BigInt(2)**BigInt(32)||f<-(BigInt(2)**BigInt(32)))&&(R=ae(R)),R+="n"),T+=` It must be ${d}. Received ${R}`,T},RangeError);function ae(p){let d="",f=p.length;const T=p[0]==="-"?1:0;for(;f>=T+4;f-=3)d=`_${p.slice(f-3,f)}${d}`;return`${p.slice(0,f)}${d}`}function C(p,d,f){X(d,"offset"),(p[d]===void 0||p[d+f]===void 0)&&re(d,p.length-(f+1))}function U(p,d,f,T,R,D){if(p>f||p<d){const j=typeof d=="bigint"?"n":"";let te;throw d===0||d===BigInt(0)?te=`>= 0${j} and < 2${j} ** ${(D+1)*8}${j}`:te=`>= -(2${j} ** ${(D+1)*8-1}${j}) and < 2 ** ${(D+1)*8-1}${j}`,new H.ERR_OUT_OF_RANGE("value",te,p)}C(T,R,D)}function X(p,d){if(typeof p!="number")throw new H.ERR_INVALID_ARG_TYPE(d,"number",p)}function re(p,d,f){throw Math.floor(p)!==p?(X(p,f),new H.ERR_OUT_OF_RANGE("offset","an integer",p)):d<0?new H.ERR_BUFFER_OUT_OF_BOUNDS:new H.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${d}`,p)}const ye=/[^+/0-9A-Za-z-_]/g;function we(p){if(p=p.split("=")[0],p=p.trim().replace(ye,""),p.length<2)return"";for(;p.length%4!==0;)p=p+"=";return p}function q(p,d){d=d||1/0;let f;const T=p.length;let R=null;const D=[];for(let j=0;j<T;++j){if(f=p.charCodeAt(j),f>55295&&f<57344){if(!R){if(f>56319){(d-=3)>-1&&D.push(239,191,189);continue}else if(j+1===T){(d-=3)>-1&&D.push(239,191,189);continue}R=f;continue}if(f<56320){(d-=3)>-1&&D.push(239,191,189),R=f;continue}f=(R-55296<<10|f-56320)+65536}else R&&(d-=3)>-1&&D.push(239,191,189);if(R=null,f<128){if((d-=1)<0)break;D.push(f)}else if(f<2048){if((d-=2)<0)break;D.push(f>>6|192,f&63|128)}else if(f<65536){if((d-=3)<0)break;D.push(f>>12|224,f>>6&63|128,f&63|128)}else if(f<1114112){if((d-=4)<0)break;D.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else throw new Error("Invalid code point")}return D}function Z(p){const d=[];for(let f=0;f<p.length;++f)d.push(p.charCodeAt(f)&255);return d}function pe(p,d){let f,T,R;const D=[];for(let j=0;j<p.length&&!((d-=2)<0);++j)f=p.charCodeAt(j),T=f>>8,R=f%256,D.push(R),D.push(T);return D}function ne(p){return t.toByteArray(we(p))}function oe(p,d,f,T){let R;for(R=0;R<T&&!(R+f>=d.length||R>=p.length);++R)d[R+f]=p[R];return R}function le(p,d){return p instanceof d||p!=null&&p.constructor!=null&&p.constructor.name!=null&&p.constructor.name===d.name}function ue(p){return p!==p}const fe=(function(){const p="0123456789abcdef",d=new Array(256);for(let f=0;f<16;++f){const T=f*16;for(let R=0;R<16;++R)d[T+R]=p[f]+p[R]}return d})();function xe(p){return typeof BigInt>"u"?Fe:p}function Fe(){throw new Error("BigInt not supported")}})(gs)),gs}var vs,Xl;function QR(){if(Xl)return vs;Xl=1;var e=YR().Buffer,t=nt(),r=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
88
+ \r`;function n(a){if(a===null)return!1;var c,l,u=0,m=a.length,y=r;for(l=0;l<m;l++)if(c=y.indexOf(a.charAt(l)),!(c>64)){if(c<0)return!1;u+=6}return u%8===0}function i(a){var c,l,u=a.replace(/[\r\n=]/g,""),m=u.length,y=r,h=0,w=[];for(c=0;c<m;c++)c%4===0&&c&&(w.push(h>>16&255),w.push(h>>8&255),w.push(h&255)),h=h<<6|y.indexOf(u.charAt(c));return l=m%4*6,l===0?(w.push(h>>16&255),w.push(h>>8&255),w.push(h&255)):l===18?(w.push(h>>10&255),w.push(h>>2&255)):l===12&&w.push(h>>4&255),e?new e(w):w}function o(a){var c="",l=0,u,m,y=a.length,h=r;for(u=0;u<y;u++)u%3===0&&u&&(c+=h[l>>18&63],c+=h[l>>12&63],c+=h[l>>6&63],c+=h[l&63]),l=(l<<8)+a[u];return m=y%3,m===0?(c+=h[l>>18&63],c+=h[l>>12&63],c+=h[l>>6&63],c+=h[l&63]):m===2?(c+=h[l>>10&63],c+=h[l>>4&63],c+=h[l<<2&63],c+=h[64]):m===1&&(c+=h[l>>2&63],c+=h[l<<4&63],c+=h[64],c+=h[64]),c}function s(a){return e&&e.isBuffer(a)}return vs=new t.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:n,construct:i,predicate:s,represent:o}),vs}var bs,Zl;function WR(){if(Zl)return bs;Zl=1;var e=nt(),t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function n(o){if(o===null)return!0;var s=[],a,c,l,u,m,y=o;for(a=0,c=y.length;a<c;a+=1){if(l=y[a],m=!1,r.call(l)!=="[object Object]")return!1;for(u in l)if(t.call(l,u))if(!m)m=!0;else return!1;if(!m)return!1;if(s.indexOf(u)===-1)s.push(u);else return!1}return!0}function i(o){return o!==null?o:[]}return bs=new e.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:n,construct:i}),bs}var ws,eu;function JR(){if(eu)return ws;eu=1;var e=nt(),t=Ro(),r=Object.prototype.toString;function n(o){if(o===null)return!0;if(o.kind!=t.Kind.SEQ)return!1;var s,a,c,l=o.items;for(s=0,a=l.length;s<a;s+=1)if(c=l[s],r.call(c)!=="[object Object]"||!Array.isArray(c.mappings)||c.mappings.length!==1)return!1;return!0}function i(o){if(o===null||!Array.isArray(o.items))return[];var s,a,c,l=o.items;for(c=t.newItems(),c.parent=o.parent,c.startPosition=o.startPosition,c.endPosition=o.endPosition,s=0,a=l.length;s<a;s+=1){var u=l[s],m=u.mappings[0],y=t.newItems();y.parent=c,y.startPosition=m.key.startPosition,y.endPosition=m.value.startPosition,m.key.parent=y,m.value.parent=y,y.items=[m.key,m.value],c.items.push(y)}return c}return ws=new e.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:n,construct:i}),ws}var Ss,tu;function XR(){if(tu)return Ss;tu=1;var e=nt(),t=Ro();function r(i){return i===null?!0:i.kind==t.Kind.MAP}function n(i){return i!==null?i:{}}return Ss=new e.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:n}),Ss}var Es,ru;function Ba(){if(ru)return Es;ru=1;var e=Sn(),t=new e.Schema({include:[zR()],implicit:[VR(),KR()],explicit:[QR(),WR(),JR(),XR()]});return Es=t,Es}var xs,nu;function ZR(){if(nu)return xs;nu=1;var e=nt();function t(){return!0}function r(){}function n(){return""}function i(o){return typeof o>"u"}return xs=new e.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:n}),xs}var Ts,iu;function e$(){if(iu)return Ts;iu=1;var e=nt();function t(o){if(o===null||o.length===0)return!1;var s=o,a=/\/([gim]*)$/.exec(o),c="";if(s[0]==="/"){if(a&&(c=a[1]),c.length>3||s[s.length-c.length-1]!=="/")return!1;s=s.slice(1,s.length-c.length-1)}try{var l=new RegExp(s,c);return!0}catch{return!1}}function r(o){var s=o,a=/\/([gim]*)$/.exec(o),c="";return s[0]==="/"&&(a&&(c=a[1]),s=s.slice(1,s.length-c.length-1)),new RegExp(s,c)}function n(o){var s="/"+o.source+"/";return o.global&&(s+="g"),o.multiline&&(s+="m"),o.ignoreCase&&(s+="i"),s}function i(o){return Object.prototype.toString.call(o)==="[object RegExp]"}return Ts=new e.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:n}),Ts}var Ps,ou;function Am(){if(ou)return Ps;ou=1;var e=Sn(),t=new e.Schema({include:[Ba()],explicit:[ZR(),e$()]});return e.Schema.DEFAULT=t,Ps=t,Ps}var su;function t$(){if(su)return bt;su=1,Object.defineProperty(bt,"__esModule",{value:!0});var e=Ro(),t=Cr(),r=wn(),n=kR(),i=Ba(),o=Am(),s=Object.prototype.hasOwnProperty,a=1,c=2,l=3,u=4,m=1,y=2,h=3,w=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,b=/[\x85\u2028\u2029]/,E=/[,\[\]\{\}]/,P=/^(?:!|!!|![a-z\-]+!)$/i,I=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function v(p){return p===10||p===13}function x(p){return p===9||p===32}function g(p){return p===9||p===32||p===10||p===13}function S(p){return p===44||p===91||p===93||p===123||p===125}function O(p){var d;return 48<=p&&p<=57?p-48:(d=p|32,97<=d&&d<=102?d-97+10:-1)}function k(p){return p===120?2:p===117?4:p===85?8:0}function Y(p){return 48<=p&&p<=57?p-48:-1}function F(p){return p===48?"\0":p===97?"\x07":p===98?"\b":p===116||p===9?" ":p===110?`
89
+ `:p===118?"\v":p===102?"\f":p===114?"\r":p===101?"\x1B":p===32?" ":p===34?'"':p===47?"/":p===92?"\\":p===78?"…":p===95?" ":p===76?"\u2028":p===80?"\u2029":""}function z(p){return p<=65535?String.fromCharCode(p):String.fromCharCode((p-65536>>10)+55296,(p-65536&1023)+56320)}for(var J=new Array(256),M=new Array(256),G=new Array(256),de=new Array(256),Se=0;Se<256;Se++)de[Se]=M[Se]=F(Se),J[Se]=M[Se]?1:0,G[Se]=1,J[Se]||(de[Se]="\\"+String.fromCharCode(Se));var be=(function(){function p(d,f){this.errorMap={},this.errors=[],this.lines=[],this.input=d,this.filename=f.filename||null,this.schema=f.schema||o,this.onWarning=f.onWarning||null,this.legacy=f.legacy||!1,this.allowAnyEscape=f.allowAnyEscape||!1,this.ignoreDuplicateKeys=f.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=d.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}return p})();function ge(p,d,f){return f===void 0&&(f=!1),new r(d,new n(p.filename,p.input,p.position,p.line,p.position-p.lineStart),f)}function Pe(p,d,f,T,R){T===void 0&&(T=!1),R===void 0&&(R=!1);var D=A(p,d);if(D){var j=f+d;if(!p.errorMap[j]){var te=new n(p.filename,p.input,d,D.line,d-D.start);R&&(te.toLineEnd=!0);var se=new r(f,te,T);p.errors.push(se)}}}function B(p,d){var f=ge(p,d),T=f.message+f.mark.position;if(!p.errorMap[T]){p.errors.push(f),p.errorMap[T]=1;for(var R=p.position;;){if(p.position>=p.input.length-1)return;var D=p.input.charAt(p.position);if(D==`
90
+ `){p.position--,p.position==R&&(p.position+=1);return}if(D=="\r"){p.position--,p.position==R&&(p.position+=1);return}p.position++}}}function L(p,d){var f=ge(p,d);p.onWarning&&p.onWarning.call(null,f)}var Q={YAML:function(d,f,T){var R,D,j;d.version!==null&&B(d,"duplication of %YAML directive"),T.length!==1&&B(d,"YAML directive accepts exactly one argument"),R=/^([0-9]+)\.([0-9]+)$/.exec(T[0]),R===null&&B(d,"ill-formed argument of the YAML directive"),D=parseInt(R[1],10),j=parseInt(R[2],10),D!==1&&B(d,"found incompatible YAML document (version 1.2 is required)"),d.version=T[0],d.checkLineBreaks=j<2,j!==2&&B(d,"found incompatible YAML document (version 1.2 is required)")},TAG:function(d,f,T){var R,D;T.length!==2&&B(d,"TAG directive accepts exactly two arguments"),R=T[0],D=T[1],P.test(R)||B(d,"ill-formed tag handle (first argument) of the TAG directive"),s.call(d.tagMap,R)&&B(d,'there is a previously declared suffix for "'+R+'" tag handle'),I.test(D)||B(d,"ill-formed tag prefix (second argument) of the TAG directive"),d.tagMap[R]=D}};function V(p,d,f,T){var R,D,j,te,se=p.result;if(se.startPosition==-1&&(se.startPosition=d),d<=f){if(te=p.input.slice(d,f),T)for(R=0,D=te.length;R<D;R+=1)j=te.charCodeAt(R),j===9||32<=j&&j<=1114111||B(p,"expected valid JSON character");else w.test(te)&&B(p,"the stream contains non-printable characters");se.value+=te,se.endPosition=f}}function _(p,d,f,T,R){if(T!=null){d===null&&(d={startPosition:T.startPosition,endPosition:R.endPosition,parent:null,errors:[],mappings:[],kind:e.Kind.MAP});var D=e.newMapping(T,R);return D.parent=d,T.parent=D,R!=null&&(R.parent=D),!p.ignoreDuplicateKeys&&d.mappings.forEach(function(j){j.key&&j.key.value===(D.key&&D.key.value)&&(Pe(p,D.key.startPosition,"duplicate key"),Pe(p,j.key.startPosition,"duplicate key"))}),d.mappings.push(D),d.endPosition=R?R.endPosition:T.endPosition+1,d}}function $(p){var d;d=p.input.charCodeAt(p.position),d===10?p.position++:d===13?(p.position++,p.input.charCodeAt(p.position)===10&&p.position++):B(p,"a line break is expected"),p.line+=1,p.lineStart=p.position,p.lines.push({start:p.lineStart,line:p.line})}function A(p,d){for(var f,T=0;T<p.lines.length&&!(p.lines[T].start>d);T++)f=p.lines[T];return f||{start:0,line:0}}function K(p,d,f){for(var T=0,R=p.input.charCodeAt(p.position);R!==0;){for(;x(R);)R===9&&p.errors.push(ge(p,"Using tabs can lead to unpredictable results",!0)),R=p.input.charCodeAt(++p.position);if(d&&R===35)do R=p.input.charCodeAt(++p.position);while(R!==10&&R!==13&&R!==0);if(v(R))for($(p),R=p.input.charCodeAt(p.position),T++,p.lineIndent=0;R===32;)p.lineIndent++,R=p.input.charCodeAt(++p.position);else break}return f!==-1&&T!==0&&p.lineIndent<f&&L(p,"deficient indentation"),T}function H(p){var d=p.position,f;return f=p.input.charCodeAt(d),!!((f===45||f===46)&&p.input.charCodeAt(d+1)===f&&p.input.charCodeAt(d+2)===f&&(d+=3,f=p.input.charCodeAt(d),f===0||g(f)))}function W(p,d,f){f===1?d.value+=" ":f>1&&(d.value+=t.repeat(`
91
+ `,f-1))}function ae(p,d,f){var T,R,D,j,te,se,Ee,ce,ve=p.kind,qe=p.result,Te,$e=e.newScalar();if($e.plainScalar=!0,p.result=$e,Te=p.input.charCodeAt(p.position),g(Te)||S(Te)||Te===35||Te===38||Te===42||Te===33||Te===124||Te===62||Te===39||Te===34||Te===37||Te===64||Te===96||(Te===63||Te===45)&&(R=p.input.charCodeAt(p.position+1),g(R)||f&&S(R)))return!1;for(p.kind="scalar",D=j=p.position,te=!1;Te!==0;){if(Te===58){if(R=p.input.charCodeAt(p.position+1),g(R)||f&&S(R))break}else if(Te===35){if(T=p.input.charCodeAt(p.position-1),g(T))break}else{if(p.position===p.lineStart&&H(p)||f&&S(Te))break;if(v(Te))if(se=p.line,Ee=p.lineStart,ce=p.lineIndent,K(p,!1,-1),p.lineIndent>=d){te=!0,Te=p.input.charCodeAt(p.position);continue}else{p.position=j,p.line=se,p.lineStart=Ee,p.lineIndent=ce;break}}if(te&&(V(p,D,j,!1),W(p,$e,p.line-se),D=j=p.position,te=!1),x(Te)||(j=p.position+1),Te=p.input.charCodeAt(++p.position),p.position>=p.input.length)return!1}return V(p,D,j,!1),p.result.startPosition!=-1?($e.rawValue=p.input.substring($e.startPosition,$e.endPosition),!0):(p.kind=ve,p.result=qe,!1)}function C(p,d){var f,T,R;if(f=p.input.charCodeAt(p.position),f!==39)return!1;var D=e.newScalar();for(D.singleQuoted=!0,p.kind="scalar",p.result=D,D.startPosition=p.position,p.position++,T=R=p.position;(f=p.input.charCodeAt(p.position))!==0;)if(f===39)if(V(p,T,p.position,!0),f=p.input.charCodeAt(++p.position),D.endPosition=p.position,f===39)T=R=p.position,p.position++;else return!0;else v(f)?(V(p,T,R,!0),W(p,D,K(p,!1,d)),T=R=p.position):p.position===p.lineStart&&H(p)?B(p,"unexpected end of the document within a single quoted scalar"):(p.position++,R=p.position,D.endPosition=p.position);B(p,"unexpected end of the stream within a single quoted scalar")}function U(p,d){var f,T,R,D,j,te;if(te=p.input.charCodeAt(p.position),te!==34)return!1;p.kind="scalar";var se=e.newScalar();for(se.doubleQuoted=!0,p.result=se,se.startPosition=p.position,p.position++,f=T=p.position;(te=p.input.charCodeAt(p.position))!==0;){if(te===34)return V(p,f,p.position,!0),p.position++,se.endPosition=p.position,se.rawValue=p.input.substring(se.startPosition,se.endPosition),!0;if(te===92){if(V(p,f,p.position,!0),te=p.input.charCodeAt(++p.position),v(te))K(p,!1,d);else if(te<256&&(p.allowAnyEscape?G[te]:J[te]))se.value+=p.allowAnyEscape?de[te]:M[te],p.position++;else if((j=k(te))>0){for(R=j,D=0;R>0;R--)te=p.input.charCodeAt(++p.position),(j=O(te))>=0?D=(D<<4)+j:B(p,"expected hexadecimal character");se.value+=z(D),p.position++}else B(p,"unknown escape sequence");f=T=p.position}else v(te)?(V(p,f,T,!0),W(p,se,K(p,!1,d)),f=T=p.position):p.position===p.lineStart&&H(p)?B(p,"unexpected end of the document within a double quoted scalar"):(p.position++,T=p.position)}B(p,"unexpected end of the stream within a double quoted scalar")}function X(p,d){var f=!0,T,R=p.tag,D,j=p.anchor,te,se,Ee,ce,ve,qe,Te,$e,Ye;if(Ye=p.input.charCodeAt(p.position),Ye===91)se=93,ve=!1,D=e.newItems(),D.startPosition=p.position;else if(Ye===123)se=125,ve=!0,D=e.newMap(),D.startPosition=p.position;else return!1;for(p.anchor!==null&&(D.anchorId=p.anchor,p.anchorMap[p.anchor]=D),Ye=p.input.charCodeAt(++p.position);Ye!==0;){if(K(p,!0,d),Ye=p.input.charCodeAt(p.position),Ye===se)return p.position++,p.tag=R,p.anchor=j,p.kind=ve?"mapping":"sequence",p.result=D,D.endPosition=p.position,!0;if(!f){var $o=p.position;B(p,"missed comma between flow collection entries"),p.position=$o+1}if(Te=qe=$e=null,Ee=ce=!1,Ye===63&&(te=p.input.charCodeAt(p.position+1),g(te)&&(Ee=ce=!0,p.position++,K(p,!0,d))),T=p.line,ne(p,d,a,!1,!0),Te=p.tag,qe=p.result,K(p,!0,d),Ye=p.input.charCodeAt(p.position),(ce||p.line===T)&&Ye===58&&(Ee=!0,Ye=p.input.charCodeAt(++p.position),K(p,!0,d),ne(p,d,a,!1,!0),$e=p.result),ve)_(p,D,Te,qe,$e);else if(Ee){var En=_(p,null,Te,qe,$e);En.parent=D,D.items.push(En)}else qe&&(qe.parent=D),D.items.push(qe);D.endPosition=p.position+1,K(p,!0,d),Ye=p.input.charCodeAt(p.position),Ye===44?(f=!0,Ye=p.input.charCodeAt(++p.position)):f=!1}B(p,"unexpected end of the stream within a flow collection")}function re(p,d){var f,T,R=m,D=!1,j=d,te=0,se=!1,Ee,ce;if(ce=p.input.charCodeAt(p.position),ce===124)T=!1;else if(ce===62)T=!0;else return!1;var ve=e.newScalar();for(p.kind="scalar",p.result=ve,ve.startPosition=p.position;ce!==0;)if(ce=p.input.charCodeAt(++p.position),ce===43||ce===45)m===R?R=ce===43?h:y:B(p,"repeat of a chomping mode identifier");else if((Ee=Y(ce))>=0)Ee===0?B(p,"bad explicit indentation width of a block scalar; it cannot be less than one"):D?B(p,"repeat of an indentation width identifier"):(j=d+Ee-1,D=!0);else break;if(x(ce)){do ce=p.input.charCodeAt(++p.position);while(x(ce));if(ce===35)do ce=p.input.charCodeAt(++p.position);while(!v(ce)&&ce!==0)}for(;ce!==0;){for($(p),p.lineIndent=0,ce=p.input.charCodeAt(p.position);(!D||p.lineIndent<j)&&ce===32;)p.lineIndent++,ce=p.input.charCodeAt(++p.position);if(!D&&p.lineIndent>j&&(j=p.lineIndent),v(ce)){te++;continue}if(p.lineIndent<j){R===h?ve.value+=t.repeat(`
92
+ `,te):R===m&&D&&(ve.value+=`
93
+ `);break}for(T?x(ce)?(se=!0,ve.value+=t.repeat(`
94
+ `,te+1)):se?(se=!1,ve.value+=t.repeat(`
95
+ `,te+1)):te===0?D&&(ve.value+=" "):ve.value+=t.repeat(`
96
+ `,te):D&&(ve.value+=t.repeat(`
97
+ `,te+1)),D=!0,te=0,f=p.position;!v(ce)&&ce!==0;)ce=p.input.charCodeAt(++p.position);V(p,f,p.position,!1)}ve.endPosition=p.position;for(var qe=p.position-1;;){var Te=p.input[qe];if(Te=="\r"||Te==`
98
+ `||Te!=" "&&Te!=" ")break;qe--}return ve.endPosition=qe,ve.rawValue=p.input.substring(ve.startPosition,ve.endPosition),!0}function ye(p,d){var f,T=p.tag,R=p.anchor,D=e.newItems(),j,te=!1,se;for(p.anchor!==null&&(D.anchorId=p.anchor,p.anchorMap[p.anchor]=D),D.startPosition=p.position,se=p.input.charCodeAt(p.position);se!==0&&!(se!==45||(j=p.input.charCodeAt(p.position+1),!g(j)));){if(te=!0,p.position++,K(p,!0,-1)&&p.lineIndent<=d){D.items.push(null),se=p.input.charCodeAt(p.position);continue}if(f=p.line,ne(p,d,l,!1,!0),p.result&&(p.result.parent=D,D.items.push(p.result)),K(p,!0,-1),se=p.input.charCodeAt(p.position),(p.line===f||p.lineIndent>d)&&se!==0)B(p,"bad indentation of a sequence entry");else if(p.lineIndent<d)break}return D.endPosition=p.position,te?(p.tag=T,p.anchor=R,p.kind="sequence",p.result=D,D.endPosition=p.position,!0):!1}function we(p,d,f){var T,R,D,j=p.tag,te=p.anchor,se=e.newMap(),Ee=null,ce=null,ve=null,qe=!1,Te=!1,$e;for(se.startPosition=p.position,p.anchor!==null&&(se.anchorId=p.anchor,p.anchorMap[p.anchor]=se),$e=p.input.charCodeAt(p.position);$e!==0;){if(T=p.input.charCodeAt(p.position+1),D=p.line,($e===63||$e===58)&&g(T))$e===63?(qe&&(_(p,se,Ee,ce,null),Ee=ce=ve=null),Te=!0,qe=!0,R=!0):qe?(qe=!1,R=!0):B(p,"incomplete explicit mapping pair; a key node is missed"),p.position+=1,$e=T;else if(ne(p,f,c,!1,!0))if(p.line===D){for($e=p.input.charCodeAt(p.position);x($e);)$e=p.input.charCodeAt(++p.position);if($e===58)$e=p.input.charCodeAt(++p.position),g($e)||B(p,"a whitespace character is expected after the key-value separator within a block mapping"),qe&&(_(p,se,Ee,ce,null),Ee=ce=ve=null),Te=!0,qe=!1,R=!1,Ee=p.tag,ce=p.result;else{if(p.position==p.lineStart&&H(p))break;if(Te)B(p,"can not read an implicit mapping pair; a colon is missed");else return p.tag=j,p.anchor=te,!0}}else if(Te){for(B(p,"can not read a block mapping entry; a multiline key may not be an implicit key");p.position>0;)if($e=p.input.charCodeAt(--p.position),v($e)){p.position++;break}}else return p.tag=j,p.anchor=te,!0;else break;if((p.line===D||p.lineIndent>d)&&(ne(p,d,u,!0,R)&&(qe?ce=p.result:ve=p.result),qe||(_(p,se,Ee,ce,ve),Ee=ce=ve=null),K(p,!0,-1),$e=p.input.charCodeAt(p.position)),p.lineIndent>d&&$e!==0)B(p,"bad indentation of a mapping entry");else if(p.lineIndent<d)break}return qe&&_(p,se,Ee,ce,null),Te&&(p.tag=j,p.anchor=te,p.kind="mapping",p.result=se),Te}function q(p){var d,f=!1,T=!1,R,D,j;if(j=p.input.charCodeAt(p.position),j!==33)return!1;if(p.tag!==null&&B(p,"duplication of a tag property"),j=p.input.charCodeAt(++p.position),j===60?(f=!0,j=p.input.charCodeAt(++p.position)):j===33?(T=!0,R="!!",j=p.input.charCodeAt(++p.position)):R="!",d=p.position,f){do j=p.input.charCodeAt(++p.position);while(j!==0&&j!==62);p.position<p.length?(D=p.input.slice(d,p.position),j=p.input.charCodeAt(++p.position)):B(p,"unexpected end of the stream within a verbatim tag")}else{for(;j!==0&&!g(j);)j===33&&(T?B(p,"tag suffix cannot contain exclamation marks"):(R=p.input.slice(d-1,p.position+1),P.test(R)||B(p,"named tag handle cannot contain such characters"),T=!0,d=p.position+1)),j=p.input.charCodeAt(++p.position);D=p.input.slice(d,p.position),E.test(D)&&B(p,"tag suffix cannot contain flow indicator characters")}return D&&!I.test(D)&&B(p,"tag name cannot contain such characters: "+D),f?p.tag=D:s.call(p.tagMap,R)?p.tag=p.tagMap[R]+D:R==="!"?p.tag="!"+D:R==="!!"?p.tag="tag:yaml.org,2002:"+D:B(p,'undeclared tag handle "'+R+'"'),!0}function Z(p){var d,f;if(f=p.input.charCodeAt(p.position),f!==38)return!1;for(p.anchor!==null&&B(p,"duplication of an anchor property"),f=p.input.charCodeAt(++p.position),d=p.position;f!==0&&!g(f)&&!S(f);)f=p.input.charCodeAt(++p.position);return p.position===d&&B(p,"name of an anchor node must contain at least one character"),p.anchor=p.input.slice(d,p.position),!0}function pe(p){var d,f;p.length,p.input;var T;if(T=p.input.charCodeAt(p.position),T!==42)return!1;for(T=p.input.charCodeAt(++p.position),d=p.position;T!==0&&!g(T)&&!S(T);)T=p.input.charCodeAt(++p.position);return p.position<=d&&(B(p,"name of an alias node must contain at least one character"),p.position=d+1),f=p.input.slice(d,p.position),p.anchorMap.hasOwnProperty(f)||(B(p,'unidentified alias "'+f+'"'),p.position<=d&&(p.position=d+1)),p.result=e.newAnchorRef(f,d,p.position,p.anchorMap[f]),K(p,!0,-1),!0}function ne(p,d,f,T,R){var D,j,te,se=1,Ee=!1,ce=!1,ve,qe,Te,$e,Ye;p.tag=null,p.anchor=null,p.kind=null,p.result=null,D=j=te=u===f||l===f,T&&K(p,!0,-1)&&(Ee=!0,p.lineIndent>d?se=1:p.lineIndent===d?se=0:p.lineIndent<d&&(se=-1));var $o=p.position;if(p.position-p.lineStart,se===1)for(;q(p)||Z(p);)K(p,!0,-1)?(Ee=!0,te=D,p.lineIndent>d?se=1:p.lineIndent===d?se=0:p.lineIndent<d&&(se=-1)):te=!1;if(te&&(te=Ee||R),(se===1||u===f)&&(a===f||c===f?$e=d:$e=d+1,Ye=p.position-p.lineStart,se===1?te&&(ye(p,Ye)||we(p,Ye,$e))||X(p,$e)?ce=!0:(j&&re(p,$e)||C(p,$e)||U(p,$e)?ce=!0:pe(p)?(ce=!0,(p.tag!==null||p.anchor!==null)&&B(p,"alias node should not have any properties")):ae(p,$e,a===f)&&(ce=!0,p.tag===null&&(p.tag="?")),p.anchor!==null&&(p.anchorMap[p.anchor]=p.result,p.result.anchorId=p.anchor)):se===0&&(ce=te&&ye(p,Ye))),p.tag!==null&&p.tag!=="!")if(p.tag=="!include")p.result||(p.result=e.newScalar(),p.result.startPosition=p.position,p.result.endPosition=p.position,B(p,"!include without value")),p.result.kind=e.Kind.INCLUDE_REF;else if(p.tag==="?")for(ve=0,qe=p.implicitTypes.length;ve<qe;ve+=1){Te=p.implicitTypes[ve];var En=p.result.value;if(Te.resolve(En)){p.result.valueObject=Te.construct(p.result.value),p.tag=Te.tag,p.anchor!==null&&(p.result.anchorId=p.anchor,p.anchorMap[p.anchor]=p.result);break}}else s.call(p.typeMap,p.tag)?(Te=p.typeMap[p.tag],p.result!==null&&Te.kind!==p.kind&&B(p,"unacceptable node kind for !<"+p.tag+'> tag; it should be "'+Te.kind+'", not "'+p.kind+'"'),Te.resolve(p.result)?(p.result=Te.construct(p.result),p.anchor!==null&&(p.result.anchorId=p.anchor,p.anchorMap[p.anchor]=p.result)):B(p,"cannot resolve a node with !<"+p.tag+"> explicit tag")):Pe(p,$o,"unknown tag <"+p.tag+">",!1,!0);return p.tag!==null||p.anchor!==null||ce}function oe(p){var d=p.position,f,T,R,D=!1,j;for(p.version=null,p.checkLineBreaks=p.legacy,p.tagMap={},p.anchorMap={};(j=p.input.charCodeAt(p.position))!==0&&(K(p,!0,-1),j=p.input.charCodeAt(p.position),!(p.lineIndent>0||j!==37));){for(D=!0,j=p.input.charCodeAt(++p.position),f=p.position;j!==0&&!g(j);)j=p.input.charCodeAt(++p.position);for(T=p.input.slice(f,p.position),R=[],T.length<1&&B(p,"directive name must not be less than one character in length");j!==0;){for(;x(j);)j=p.input.charCodeAt(++p.position);if(j===35){do j=p.input.charCodeAt(++p.position);while(j!==0&&!v(j));break}if(v(j))break;for(f=p.position;j!==0&&!g(j);)j=p.input.charCodeAt(++p.position);R.push(p.input.slice(f,p.position))}j!==0&&$(p),s.call(Q,T)?Q[T](p,T,R):(L(p,'unknown document directive "'+T+'"'),p.position++)}if(K(p,!0,-1),p.lineIndent===0&&p.input.charCodeAt(p.position)===45&&p.input.charCodeAt(p.position+1)===45&&p.input.charCodeAt(p.position+2)===45?(p.position+=3,K(p,!0,-1)):D&&B(p,"directives end mark is expected"),ne(p,p.lineIndent-1,u,!1,!0),K(p,!0,-1),p.checkLineBreaks&&b.test(p.input.slice(d,p.position))&&L(p,"non-ASCII line breaks are interpreted as content"),p.documents.push(p.result),p.position===p.lineStart&&H(p)){p.input.charCodeAt(p.position)===46&&(p.position+=3,K(p,!0,-1));return}if(p.position<p.length-1)B(p,"end of the stream or a document separator is expected");else return}function le(p,d){p=String(p),d=d||{};var f=p.length;f!==0&&(p.charCodeAt(f-1)!==10&&p.charCodeAt(f-1)!==13&&(p+=`
99
+ `),p.charCodeAt(0)===65279&&(p=p.slice(1)));var T=new be(p,d);for(T.input+="\0";T.input.charCodeAt(T.position)===32;)T.lineIndent+=1,T.position+=1;for(;T.position<T.length-1;){var R=T.position;if(oe(T),T.position<=R)for(;T.position<T.length-1;T.position++){var D=T.input.charAt(T.position);if(D==`
100
+ `)break}}var j=T.documents,te=j.length;te>0&&(j[te-1].endPosition=f);for(var se=0,Ee=j;se<Ee.length;se++){var ce=Ee[se];ce.errors=T.errors,ce.startPosition>ce.endPosition&&(ce.startPosition=ce.endPosition)}return j}function ue(p,d,f){f===void 0&&(f={});var T=le(p,f),R,D;for(R=0,D=T.length;R<D;R+=1)d(T[R])}bt.loadAll=ue;function fe(p,d){d===void 0&&(d={});var f=le(p,d);if(f.length!==0){if(f.length===1)return f[0];var T=new r("expected a single document in the stream, but found more");return T.mark=new n("","",0,0,0),T.mark.position=f[0].endPosition,f[0].errors.push(T),f[0]}}bt.load=fe;function xe(p,d,f){f===void 0&&(f={}),ue(p,d,t.extend({schema:i},f))}bt.safeLoadAll=xe;function Fe(p,d){return d===void 0&&(d={}),fe(p,t.extend({schema:i},d))}return bt.safeLoad=Fe,bt.loadAll=ue,bt.load=fe,bt.safeLoadAll=xe,bt.safeLoad=Fe,bt}var zr={},au;function r$(){if(au)return zr;au=1,Object.defineProperty(zr,"__esModule",{value:!0});var e=Cr(),t=wn(),r=Am(),n=Ba(),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=9,a=10,c=13,l=32,u=33,m=34,y=35,h=37,w=38,b=39,E=42,P=44,I=45,v=58,x=62,g=63,S=64,O=91,k=93,Y=96,F=123,z=124,J=125,M={};M[0]="\\0",M[7]="\\a",M[8]="\\b",M[9]="\\t",M[10]="\\n",M[11]="\\v",M[12]="\\f",M[13]="\\r",M[27]="\\e",M[34]='\\"',M[92]="\\\\",M[133]="\\N",M[160]="\\_",M[8232]="\\L",M[8233]="\\P";var G=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function de(q,Z){var pe,ne,oe,le,ue,fe,xe;if(Z===null)return{};for(pe={},ne=Object.keys(Z),oe=0,le=ne.length;oe<le;oe+=1)ue=ne[oe],fe=String(Z[ue]),ue.slice(0,2)==="!!"&&(ue="tag:yaml.org,2002:"+ue.slice(2)),xe=q.compiledTypeMap[ue],xe&&o.call(xe.styleAliases,fe)&&(fe=xe.styleAliases[fe]),pe[ue]=fe;return pe}function Se(q){var Z,pe,ne;if(Z=q.toString(16).toUpperCase(),q<=255)pe="x",ne=2;else if(q<=65535)pe="u",ne=4;else if(q<=4294967295)pe="U",ne=8;else throw new t("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+pe+e.repeat("0",ne-Z.length)+Z}function be(q){this.schema=q.schema||r,this.indent=Math.max(1,q.indent||2),this.skipInvalid=q.skipInvalid||!1,this.flowLevel=e.isNothing(q.flowLevel)?-1:q.flowLevel,this.styleMap=de(this.schema,q.styles||null),this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function ge(q,Z){for(var pe=e.repeat(" ",Z),ne=0,oe=-1,le="",ue,fe=q.length;ne<fe;)oe=q.indexOf(`
101
+ `,ne),oe===-1?(ue=q.slice(ne),ne=fe):(ue=q.slice(ne,oe+1),ne=oe+1),ue.length&&ue!==`
102
+ `&&(le+=pe),le+=ue;return le}function Pe(q,Z){return`
103
+ `+e.repeat(" ",q.indent*Z)}function B(q,Z){var pe,ne,oe;for(pe=0,ne=q.implicitTypes.length;pe<ne;pe+=1)if(oe=q.implicitTypes[pe],oe.resolve(Z))return!0;return!1}function L(q){this.source=q,this.result="",this.checkpoint=0}L.prototype.takeUpTo=function(q){var Z;if(q<this.checkpoint)throw Z=new Error("position should be > checkpoint"),Z.position=q,Z.checkpoint=this.checkpoint,Z;return this.result+=this.source.slice(this.checkpoint,q),this.checkpoint=q,this},L.prototype.escapeChar=function(){var q,Z;return q=this.source.charCodeAt(this.checkpoint),Z=M[q]||Se(q),this.result+=Z,this.checkpoint+=1,this},L.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function Q(q,Z,pe){var ne,oe,le,ue,fe,xe,Fe,p,d,f,T,R,D,j,te,se,Ee,ce,ve,qe,Te;if(Z.length===0){q.dump="''";return}if(Z.indexOf("!include")==0){q.dump=""+Z;return}if(Z.indexOf("!$$$novalue")==0){q.dump="";return}if(G.indexOf(Z)!==-1){q.dump="'"+Z+"'";return}for(ne=!0,oe=Z.length?Z.charCodeAt(0):0,le=l===oe||l===Z.charCodeAt(Z.length-1),(I===oe||g===oe||S===oe||Y===oe)&&(ne=!1),le?(ne=!1,ue=!1,fe=!1):(ue=!0,fe=!0),xe=!0,Fe=new L(Z),p=!1,d=0,f=0,T=q.indent*pe,R=80,T<40?R-=T:R=40,j=0;j<Z.length;j++){if(D=Z.charCodeAt(j),ne)if(!$(D))ne=!1;else continue;xe&&D===b&&(xe=!1),te=M[D],se=A(D),!(!te&&!se)&&(D!==a&&D!==m&&D!==b?(ue=!1,fe=!1):D===a&&(p=!0,xe=!1,j>0&&(Ee=Z.charCodeAt(j-1),Ee===l&&(fe=!1,ue=!1)),ue&&(ce=j-d,d=j,ce>f&&(f=ce))),D!==m&&(xe=!1),Fe.takeUpTo(j),Fe.escapeChar())}if(ne&&B(q,Z)&&(ne=!1),ve="",(ue||fe)&&(qe=0,Z.charCodeAt(Z.length-1)===a&&(qe+=1,Z.charCodeAt(Z.length-2)===a&&(qe+=1)),qe===0?ve="-":qe===2&&(ve="+")),fe&&f<R&&(ue=!1),p||(fe=!1),ne)q.dump=Z;else if(xe)q.dump="'"+Z+"'";else if(ue)Te=V(Z,R),q.dump=">"+ve+`
104
+ `+ge(Te,T);else if(fe)ve||(Z=Z.replace(/\n$/,"")),q.dump="|"+ve+`
105
+ `+ge(Z,T);else if(Fe)Fe.finish(),q.dump='"'+Fe.result+'"';else throw new Error("Failed to dump scalar value")}function V(q,Z){var pe="",ne=0,oe=q.length,le=/\n+$/.exec(q),ue;for(le&&(oe=le.index+1);ne<oe;)ue=q.indexOf(`
106
+ `,ne),ue>oe||ue===-1?(pe&&(pe+=`
107
+
108
+ `),pe+=_(q.slice(ne,oe),Z),ne=oe):(pe&&(pe+=`
109
+
110
+ `),pe+=_(q.slice(ne,ue),Z),ne=ue+1);return le&&le[0]!==`
111
+ `&&(pe+=le[0]),pe}function _(q,Z){if(q==="")return q;for(var pe=/[^\s] [^\s]/g,ne="",oe=0,le=0,ue=pe.exec(q),fe,xe,Fe;ue;)fe=ue.index,fe-le>Z&&(oe!==le?xe=oe:xe=fe,ne&&(ne+=`
112
+ `),Fe=q.slice(le,xe),ne+=Fe,le=xe+1),oe=fe+1,ue=pe.exec(q);return ne&&(ne+=`
113
+ `),le!==oe&&q.length-le>Z?ne+=q.slice(le,oe)+`
114
+ `+q.slice(oe+1):ne+=q.slice(le),ne}function $(q){return s!==q&&a!==q&&c!==q&&P!==q&&O!==q&&k!==q&&F!==q&&J!==q&&y!==q&&w!==q&&E!==q&&u!==q&&z!==q&&x!==q&&b!==q&&m!==q&&h!==q&&v!==q&&!M[q]&&!A(q)}function A(q){return!(32<=q&&q<=126||q===133||160<=q&&q<=55295||57344<=q&&q<=65533||65536<=q&&q<=1114111)}function K(q,Z,pe){var ne="",oe=q.tag,le,ue;for(le=0,ue=pe.length;le<ue;le+=1)U(q,Z,pe[le],!1,!1)&&(le!==0&&(ne+=", "),ne+=q.dump);q.tag=oe,q.dump="["+ne+"]"}function H(q,Z,pe,ne){var oe="",le=q.tag,ue,fe;for(ue=0,fe=pe.length;ue<fe;ue+=1)U(q,Z+1,pe[ue],!0,!0)&&((!ne||ue!==0)&&(oe+=Pe(q,Z)),oe+="- "+q.dump);q.tag=le,q.dump=oe||"[]"}function W(q,Z,pe){var ne="",oe=q.tag,le=Object.keys(pe),ue,fe,xe,Fe,p;for(ue=0,fe=le.length;ue<fe;ue+=1)p="",ue!==0&&(p+=", "),xe=le[ue],Fe=pe[xe],U(q,Z,xe,!1,!1)&&(q.dump.length>1024&&(p+="? "),p+=q.dump+": ",U(q,Z,Fe,!1,!1)&&(p+=q.dump,ne+=p));q.tag=oe,q.dump="{"+ne+"}"}function ae(q,Z,pe,ne){var oe="",le=q.tag,ue=Object.keys(pe),fe,xe,Fe,p,d,f;for(fe=0,xe=ue.length;fe<xe;fe+=1)f="",(!ne||fe!==0)&&(f+=Pe(q,Z)),Fe=ue[fe],p=pe[Fe],U(q,Z+1,Fe,!0,!0)&&(d=q.tag!==null&&q.tag!=="?"||q.dump&&q.dump.length>1024,d&&(q.dump&&a===q.dump.charCodeAt(0)?f+="?":f+="? "),f+=q.dump,d&&(f+=Pe(q,Z)),U(q,Z+1,p,!0,d)&&(q.dump&&a===q.dump.charCodeAt(0)?f+=":":f+=": ",f+=q.dump,oe+=f));q.tag=le,q.dump=oe||"{}"}function C(q,Z,pe){var ne,oe,le,ue,fe,xe;for(oe=pe?q.explicitTypes:q.implicitTypes,le=0,ue=oe.length;le<ue;le+=1)if(fe=oe[le],(fe.instanceOf||fe.predicate)&&(!fe.instanceOf||typeof Z=="object"&&Z instanceof fe.instanceOf)&&(!fe.predicate||fe.predicate(Z))){if(q.tag=pe?fe.tag:"?",fe.represent){if(xe=q.styleMap[fe.tag]||fe.defaultStyle,i.call(fe.represent)==="[object Function]")ne=fe.represent(Z,xe);else if(o.call(fe.represent,xe))ne=fe.represent[xe](Z,xe);else throw new t("!<"+fe.tag+'> tag resolver accepts not "'+xe+'" style');q.dump=ne}return!0}return!1}function U(q,Z,pe,ne,oe){q.tag=null,q.dump=pe,C(q,pe,!1)||C(q,pe,!0);var le=i.call(q.dump);ne&&(ne=0>q.flowLevel||q.flowLevel>Z),(q.tag!==null&&q.tag!=="?"||q.indent!==2&&Z>0)&&(oe=!1);var ue=le==="[object Object]"||le==="[object Array]",fe,xe;if(ue&&(fe=q.duplicates.indexOf(pe),xe=fe!==-1),xe&&q.usedDuplicates[fe])q.dump="*ref_"+fe;else{if(ue&&xe&&!q.usedDuplicates[fe]&&(q.usedDuplicates[fe]=!0),le==="[object Object]")ne&&Object.keys(q.dump).length!==0?(ae(q,Z,q.dump,oe),xe&&(q.dump="&ref_"+fe+(Z===0?`
115
+ `:"")+q.dump)):(W(q,Z,q.dump),xe&&(q.dump="&ref_"+fe+" "+q.dump));else if(le==="[object Array]")ne&&q.dump.length!==0?(H(q,Z,q.dump,oe),xe&&(q.dump="&ref_"+fe+(Z===0?`
116
+ `:"")+q.dump)):(K(q,Z,q.dump),xe&&(q.dump="&ref_"+fe+" "+q.dump));else if(le==="[object String]")q.tag!=="?"&&Q(q,q.dump,Z);else{if(q.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+le)}q.tag!==null&&q.tag!=="?"&&(q.dump="!<"+q.tag+"> "+q.dump)}return!0}function X(q,Z){var pe=[],ne=[],oe,le;for(re(q,pe,ne),oe=0,le=ne.length;oe<le;oe+=1)Z.duplicates.push(pe[ne[oe]]);Z.usedDuplicates=new Array(le)}function re(q,Z,pe){i.call(q);var ne,oe,le;if(q!==null&&typeof q=="object")if(oe=Z.indexOf(q),oe!==-1)pe.indexOf(oe)===-1&&pe.push(oe);else if(Z.push(q),Array.isArray(q))for(oe=0,le=q.length;oe<le;oe+=1)re(q[oe],Z,pe);else for(ne=Object.keys(q),oe=0,le=ne.length;oe<le;oe+=1)re(q[ne[oe]],Z,pe)}function ye(q,Z){Z=Z||{};var pe=new be(Z);return X(q,pe),U(pe,0,q,!0,!0)?pe.dump+`
117
+ `:""}zr.dump=ye;function we(q,Z){return ye(q,e.extend({schema:n},Z))}return zr.safeDump=we,zr}var Os={},cu;function n$(){return cu||(cu=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a){if(["true","True","TRUE"].lastIndexOf(a)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(a)>=0)return!1;throw'Invalid boolean "'+a+'"'}e.parseYamlBoolean=t;function r(a){return a.lastIndexOf("0o",0)===0?parseInt(a.substring(2),8):parseInt(a)}function n(a){var c=r(a);if(isNaN(c))throw'Invalid integer "'+a+'"';return c}e.parseYamlInteger=n;function i(a){if([".nan",".NaN",".NAN"].lastIndexOf(a)>=0)return NaN;var c=/^([-+])?(?:\.inf|\.Inf|\.INF)$/,l=c.exec(a);if(l)return l[1]==="-"?-1/0:1/0;var u=parseFloat(a);if(!isNaN(u))return u;throw'Invalid float "'+a+'"'}e.parseYamlFloat=i;var o;(function(a){a[a.null=0]="null",a[a.bool=1]="bool",a[a.int=2]="int",a[a.float=3]="float",a[a.string=4]="string"})(o=e.ScalarType||(e.ScalarType={}));function s(a){if(a===void 0)return o.null;if(a.doubleQuoted||!a.plainScalar||a.singleQuoted)return o.string;var c=a.value;if(["null","Null","NULL","~",""].indexOf(c)>=0||c==null)return o.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(c)>=0)return o.bool;var l=/^[-+]?[0-9]+$/,u=/^0o[0-7]+$/,m=/^0x[0-9a-fA-F]+$/;if(l.test(c)||u.test(c)||m.test(c))return o.int;var y=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,h=/^[-+]?(\.inf|\.Inf|\.INF)$/;return y.test(c)||h.test(c)||[".nan",".NaN",".NAN"].indexOf(c)>=0?o.float:o.string}e.determineScalarType=s})(Os)),Os}var pu;function i$(){return pu||(pu=1,(function(e){function t(i){for(var o in i)e.hasOwnProperty(o)||(e[o]=i[o])}Object.defineProperty(e,"__esModule",{value:!0});var r=t$();e.load=r.load,e.loadAll=r.loadAll,e.safeLoad=r.safeLoad,e.safeLoadAll=r.safeLoadAll;var n=r$();e.dump=n.dump,e.safeDump=n.safeDump,e.YAMLException=wn(),t(Ro()),t(n$())})(ts)),ts}var Hr=i$();const o$=150,s$=3;function Js(e,t){Ns.enabled=t;const{start:r,end:n={line:r.line,col:r.col+1},source:i}=e,o=i.getLines(),s=r.line,a=Math.max(Math.min(n.line,o.length),r.line);let c=Math.max(a-s-s$+1,0);c<2&&(c=0);const l=[];let u=0;for(let y=s;y<=a&&!(c>0&&y>=a-c);y++){const h=o[y-1]||"";h!==""&&(u=co(h));const w=y===s?r.col-1:u,b=y===a?n.col-1:h.length;l.push([`${y}`,m(h,w,b,Ne.red)]),t||l.push(["",lu(h,w,b)])}return c>0&&(l.push(["…",`${za(u)}${Ne.gray(`< ${c} more lines >`)}`]),l.push([`${a}`,m(o[a-1],-1,n.col-1,Ne.red)]),t||l.push(["",lu(o[a-1],-1,n.col-1)])),a$([[`${s-2}`,m(o[s-1-2])],[`${s-1}`,m(o[s-1-1])],...l,[`${a+1}`,m(o[a-1+1])],[`${a+2}`,m(o[a-1+2])]]);function m(y,h=-1,w=1/0,b=Ne.gray){return!t||!y?y:(h===-1&&(h=co(y)),w=Math.min(w,y.length),y.substr(0,h)+b(y.substring(h,w))+y.substr(w))}}function a$(e){const t=e.filter(([i,o])=>o!==void 0),r=Math.max(...t.map(([i])=>i.length)),n=Math.min(...t.map(([i,o])=>o===""?1/0:co(o)));return t.map(([i,o])=>Ne.gray(p$(r,i)+" |")+(o?" "+c$(o.substring(n)):"")).join(`
118
+ `)}function c$(e,t=o$){const r=e.length-t;if(r>0){const n=Ne.gray(`...<${r} chars>`);return e.substring(0,t-n.length)+n}else return e}function lu(e,t=-1,r=1/0){return t===-1&&(t=co(e)),r=Math.min(r,e.length),za(t)+"^".repeat(Math.max(r-t,1))}function za(e){return" ".repeat(e)}function p$(e,t){return za(e-t.length)+t}function co(e){for(let t=0;t<e.length;t++)if(e[t]!==" ")return t;return e.length}function Yt(e){if(e.pointer===void 0)return e;const{source:t,pointer:r,reportOnKey:n}=e,i=t.getAst(Hr.safeLoad),o=Rm(i,r,!!n);return{...e,pointer:void 0,...l$(t.body,o?.startPosition??1,o?.endPosition??1)}}function l$(e,t,r){let n=1,i=1,o={line:1,col:1};for(let a=0;a<r-1;a++){if(a===t-1&&(o={line:n,col:i+1}),e[a]===`
119
+ `){n++,i=1,a===t-1&&(o={line:n,col:i}),e[a+1]==="\r"&&a++;continue}i++}const s=t===r?{...o}:{line:n,col:i+1};return{start:o,end:s}}function Rm(e,t,r){const n=N.parsePointer(t.substr(2));if(e===void 0)return;let i=e;for(const o of n)if(i.kind===Hr.Kind.MAP){const s=i.mappings.find(a=>a.key.value===o);if(!s||(i=s,!s?.value))break;i=s.value}else if(i.kind===Hr.Kind.SEQ){const s=i.items[parseInt(o,10)];if(!s)break;i=s}if(r){const o=i.parent;return!o||o.kind===Hr.Kind.SEQ?i:o.kind===Hr.Kind.MAPPING?o.key:i}else return i}const u$={INVALID_SEVERITY_LEVEL:"Invalid severity level; accepted values: error or warn"},uu={warn:e=>Ne.bgYellow(Ne.black(e)),error:Ne.bgRed},$m={warn:Ne.yellow,error:Ne.red},br={warn:"Warning",error:"Error"},d$={error:"critical",warn:"minor"},f$=+(N.env.REDOCLY_CLI_LINT_MAX_SUGGESTIONS??5);function po(e){return e==="error"?1:2}function Nm(e){let t=0,r=0,n=0;for(const i of e){if(i.ignored){n++;continue}i.severity==="error"&&t++,i.severity==="warn"&&r++}return{errors:t,warnings:r,ignored:n}}function m$(e,t){const{maxProblems:r=100,cwd:n=N.isBrowser?"":process.cwd(),format:i="codeframe",color:o=Ns.enabled,totals:s=Nm(e),version:a="2.0",command:c}=t;Ns.enabled=o;const l=e.length;e=e.filter(v=>!v.ignored);const u=l-e.length;if(e=e.sort((v,x)=>po(v.severity)-po(x.severity)).slice(0,r),!l&&i!=="json"&&i!=="junit")return;switch(i){case"json":y();break;case"codeframe":for(let v=0;v<e.length;v++){const x=e[v];c==="bundle"?Re.info(`${w(x,v)}
120
+ `):Re.output(`${w(x,v)}
121
+ `)}break;case"stylish":{const v=Is(e);for(const[x,{ruleIdPad:g,locationPad:S,fileProblems:O}]of Object.entries(v)){Re.output(`${Ne.blue(N.isAbsoluteUrl(x)?x:ee.pathBrowserifyExports.relative(n,x))}:
122
+ `);for(let k=0;k<O.length;k++){const Y=O[k];Re.output(`${b(Y,S,g)}
123
+ `)}Re.output(`
124
+ `)}break}case"markdown":{const v=Is(e);for(const[x,{fileProblems:g}]of Object.entries(v)){Re.output(`## Lint: ${N.isAbsoluteUrl(x)?x:ee.pathBrowserifyExports.relative(n,x)}
125
+
126
+ `),Re.output(`| Severity | Location | Problem | Message |
127
+ `),Re.output(`|---|---|---|---|
128
+ `);for(let S=0;S<g.length;S++){const O=g[S];Re.output(`${E(O)}
129
+ `)}Re.output(`
130
+ `),s.errors>0?Re.output(`Validation failed
131
+ Errors: ${s.errors}
132
+ `):Re.output(`Validation successful
133
+ `),s.warnings>0&&Re.output(`Warnings: ${s.warnings}
134
+ `),Re.output(`
135
+ `)}break}case"checkstyle":{const v=Is(e);Re.output(`<?xml version="1.0" encoding="UTF-8"?>
136
+ `),Re.output(`<checkstyle version="4.3">
137
+ `);for(const[x,{fileProblems:g}]of Object.entries(v))Re.output(`<file name="${wt(N.isAbsoluteUrl(x)?x:ee.pathBrowserifyExports.relative(n,x))}">
138
+ `),g.forEach(P),Re.output(`</file>
139
+ `);Re.output(`</checkstyle>
140
+ `);break}case"junit":{const v=e.filter(S=>S.severity==="error").length,x=e.filter(S=>S.severity==="warn").length,g={};for(const S of e){const O=S.location[0].source.absoluteRef;g[O]||(g[O]=[]),g[O].push(S)}Re.output(`<?xml version="1.0" encoding="UTF-8"?>
141
+ `),Re.output(`<testsuites name="redocly lint" tests="${e.length}" errors="${v}" failures="${x}" skipped="0">
142
+ `);for(const[S,O]of Object.entries(g)){const k=N.isAbsoluteUrl(S)?S:ee.pathBrowserifyExports.relative(n,S),Y=O.filter(z=>z.severity==="error").length,F=O.filter(z=>z.severity==="warn").length;Re.output(`<testsuite name="${wt(k)}" tests="${O.length}" errors="${Y}" failures="${F}">
143
+ `),O.forEach(z=>I(z,k)),Re.output(`</testsuite>
144
+ `)}Re.output(`</testsuites>
145
+ `);break}case"codeclimate":m();break;case"summary":h$(e);break;case"github-actions":g$(e,n)}l-u>r&&Re.info(`< ... ${l-r} more problems hidden > ${Ne.gray("increase with `--max-problems N`")}
146
+ `);function m(){const v=e.map(x=>{const g=x.location[0],S=Yt(g);return{description:x.message,location:{path:N.isAbsoluteUrl(g.source.absoluteRef)?g.source.absoluteRef:ee.pathBrowserifyExports.relative(n,g.source.absoluteRef),lines:{begin:S.start.line}},severity:d$[x.severity],fingerprint:`${x.ruleId}${x.location.length>0?"-"+x.location[0].pointer:""}`}});Re.output(JSON.stringify(v,null,2))}function y(){const v={totals:s,version:a,problems:e.map(x=>{const g={...x,location:x.location.map(S=>({...S,source:{ref:N.isAbsoluteUrl(S.source.absoluteRef)?S.source.absoluteRef:ee.pathBrowserifyExports.relative(n,S.source.absoluteRef)}})),from:x.from?{...x.from,source:{ref:N.isAbsoluteUrl(x.from?.source.absoluteRef)?x.from?.source.absoluteRef:ee.pathBrowserifyExports.relative(n,x.from?.source.absoluteRef||n)}}:void 0};if(N.env.FORMAT_JSON_WITH_CODEFRAMES){const S=x.location[0],O=Yt(S);g.codeframe=Js(O,o)}return g})};Re.output(JSON.stringify(v,null,2))}function h(v){const{severity:x}=v;if(!uu[x])throw new Error(u$.INVALID_SEVERITY_LEVEL);return uu[x]}function w(v,x){const g=h(v),S=v.location[0],O=N.isAbsoluteUrl(S.source.absoluteRef)?S.source.absoluteRef:ee.pathBrowserifyExports.relative(n,S.source.absoluteRef),k=Yt(S),Y=S.pointer?Ne.gray(`at ${S.pointer}`):"",F=`${O}:${k.start.line}:${k.start.col}`;return`[${x+1}] ${g(F)} ${Y}
147
+
148
+ ${v.message}
149
+
150
+ `+km(v)+Js(k,o)+`
151
+
152
+ `+y$(n,v.from)+`${br[v.severity]} was generated by the ${Ne.blue(v.ruleId)} rule.
153
+
154
+ `+(v.reference?`Reference: ${Ne.blue(v.reference)}
155
+
156
+ `:"")}function b(v,x,g){const S=$m[v.severity];if(!br[v.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";const O=S(br[v.severity].toLowerCase().padEnd(7)),{start:k}=v.location[0];return` ${`${k.line}:${k.col}`.padEnd(x)} ${O} ${v.ruleId.padEnd(g)} ${v.message}`}function E(v){if(!br[v.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";const x=br[v.severity].toLowerCase(),{start:g}=v.location[0];return`| ${x} | line ${`${g.line}:${g.col}`} | [${v.ruleId}](https://redocly.com/docs/cli/rules/${v.ruleId}/) | ${v.message.replaceAll(`
157
+ `,"<br>")} |`}function P(v){const{line:x,col:g}=v.location[0].start,S=v.severity=="warn"?"warning":"error",O=wt(v.message),k=wt(v.ruleId);Re.output(`<error line="${x}" column="${g}" severity="${S}" message="${O}" source="${k}" />
158
+ `)}function I(v,x){const g=v.location[0],{start:S}=Yt(g),O=v.severity==="error"?"error":"failure",k=wt(v.ruleId),Y=wt(v.message),F=[`Rule: ${k}`,`Severity: ${wt(v.severity)}`,`File: ${wt(x)}`,`Line: ${S.line}`,`Column: ${S.col}`];g.pointer&&F.push(`Pointer: ${wt(g.pointer)}`),F.push(`Message: ${Y}`),Re.output(`<testcase classname="${k}" name="${k}" file="${wt(x)}" line="${S.line}">
159
+ `),Re.output(`<${O} message="${Y}" type="${k}">${F.join(`
160
+ `)}</${O}>
161
+ `),Re.output(`</testcase>
162
+ `)}}function h$(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],[,i])=>po(n.severity)-po(i.severity)||i.count-n.count);for(const[n,i]of r){const o=$m[i.severity],s=o(br[i.severity].toLowerCase().padEnd(7));Re.output(`${s} ${n}: ${i.count}
163
+ `)}Re.output(`
164
+ `)}function y$(e,t){if(!t)return"";const r=ee.pathBrowserifyExports.relative(e,t.source.absoluteRef),n=Yt(t),i=`${r}:${n.start.line}:${n.start.col}`,o=t.pointer?Ne.gray(`at ${t.pointer}`):"";return`referenced from ${Ne.blue(i)} ${o}
165
+
166
+ `}function km(e){return e.suggest.length===0?"":e.suggest.length===1?`Did you mean: ${e.suggest[0]} ?
167
+
168
+ `:`Did you mean:
169
+ - ${e.suggest.slice(0,f$).join(`
170
+ - `)}
171
+
172
+ `}const Is=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 i={...r,location:r.location.map(Yt)};t[n].fileProblems.push(i),t[n].ruleIdPad=Math.max(r.ruleId.length,t[n].ruleIdPad),t[n].locationPad=Math.max(Math.max(...i.location.map(o=>`${o.start.line}:${o.start.col}`.length)),t[n].locationPad)}return t};function wt(e){return e.replace(/[<>&"'\x00-\x1F\x7F\u0080-\uFFFF]/gu,t=>{switch(t){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";case'"':return"&quot;";case"'":return"&apos;";default:return`&#${t.charCodeAt(0)};`}})}function g$(e,t){for(const s of e)for(const a of s.location.map(Yt)){let c;switch(s.severity){case"error":c="error";break;case"warn":c="warning";break}const l=km(s),u=s.reference?`Reference: ${s.reference}
173
+
174
+ `:"",m=s.message+(l!==""||u!==""?`
175
+
176
+ `:"")+l+u,y={title:s.ruleId,file:N.isAbsoluteUrl(a.source.absoluteRef)?a.source.absoluteRef:ee.pathBrowserifyExports.relative(t,a.source.absoluteRef),line:a.start.line,col:a.start.col,endLine:a.end?.line,endColumn:a.end?.col};Re.output(`::${c} ${r(y)}::${i(m)}
177
+ `)}function r(s){return Object.entries(s).filter(([,a])=>a!=null).map(([a,c])=>`${a}=${o(c)}`).join(",")}function n(s){return s==null?"":typeof s=="string"||s instanceof String?s:JSON.stringify(s)}function i(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function o(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}const{theme:P$,...v$}=fo.properties,b$={...fo,properties:v$};async function w$(e){const{ref:t,externalRefResolver:r=new N.BaseResolver(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),Va({document:n,...e,externalRefResolver:r})}async function S$(e){const{source:t,absoluteRef:r,externalRefResolver:n=new N.BaseResolver(e.config.resolve)}=e,i=N.makeDocumentFromString(t,r||"/");return Va({document:i,...e,externalRefResolver:n})}async function Va(e){const{document:t,customTypes:r,externalRefResolver:n,config:i}=e;if(N.isGraphqlRef(t.source.absoluteRef)){const{lintGraphqlDocument:h}=await Promise.resolve().then(()=>require("./replay-lint-graphql-2b4GIER6.js"));return h({document:t,config:i})}const o=Dr(t.parsed),s=i.getRulesForSpecVersion(Sa(o)),a=N.normalizeTypes(i.extendTypes(r??an(o),o),i),c={problems:[],specVersion:o,config:i,visitorsData:{}},l=Xr(s,i,"preprocessors",o),u=Xr(s,i,"rules",o);let m=await N.resolveDocument({rootDocument:t,rootType:a.Root,externalRefResolver:n});l.length>0&&(Ft({document:t,rootType:a.Root,normalizedVisitors:Ut(l,a),resolvedRefMap:m,ctx:c}),m=await N.resolveDocument({rootDocument:t,rootType:a.Root,externalRefResolver:n}));const y=Ut(u,a);return Ft({document:t,rootType:a.Root,normalizedVisitors:y,resolvedRefMap:m,ctx:c}),c.problems.map(h=>i.addProblemToIgnore(h))}async function E$(e){const{severity:t,externalRefResolver:r=new N.BaseResolver,config:n}=e;if(!n.document)throw new Error("Config document is not set.");const i={problems:[],specVersion:"config",config:n,visitorsData:{}},o=N.normalizeTypes(e.externalConfigTypes||ga(b$,n)),s=[{severity:t||"error",ruleId:"configuration struct",visitor:Kt()},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:Vt()}],a=Ut(s,o),c=n.resolvedRefMap||await N.resolveDocument({rootDocument:n.document,rootType:o.ConfigRoot,externalRefResolver:r});return Ft({document:n.document,rootType:o.ConfigRoot,normalizedVisitors:a,resolvedRefMap:c,ctx:i}),i.problems}exports.Ajv=ya;exports.Arazzo1Types=rt;exports.Arazzo1_1Types=Iu;exports.Assertions=Jt;exports.AsyncApi2Types=Pu;exports.AsyncApi3Types=Ou;exports.CONFIG_BUNDLER_VISITOR_ID=va;exports.CONFIG_FILE_NAME=$s;exports.Config=ln;exports.ConfigTypes=Pd;exports.ConfigValidationError=oR;exports.Cs=CS;exports.DEFAULT_CONFIG=Od;exports.DEFAULT_PROJECT_PLUGIN_PATHS=_d;exports.GraphQLError=ie;exports.IGNORE_BANNER=Id;exports.IGNORE_FILE=Xi;exports.Location=dO;exports.NoUnresolvedRefs=Vt;exports.Oas2Types=mu;exports.Oas3Types=xt;exports.Oas3_1Types=Be;exports.Oas3_2Types=Ze;exports.OpenRpcTypes=Au;exports.Overlay1Types=_u;exports.PLUGINS_COLLECTOR_VISITOR_ID=ba;exports.Rs=jS;exports.Struct=Kt;exports.Token=fO;exports.bundle=yR;exports.bundleDocument=Ua;exports.bundleFromString=gR;exports.clearPluginsCache=PR;exports.createConfig=NR;exports.createConfigTypes=ga;exports.dedentBlockStringLines=hO;exports.dequal=Qr;exports.detectSpec=Dr;exports.devAssert=Le;exports.findConfig=$R;exports.formatProblems=m$;exports.getAstNodeByPointer=Rm;exports.getCodeframe=Js;exports.getLineColLocation=Yt;exports.getLocation=ro;exports.getMajorSpecVersion=Sa;exports.getNodeTypesFromJSONSchema=Sd;exports.getPluginCacheVersion=xR;exports.getTotals=Nm;exports.getTypes=an;exports.initRules=Xr;exports.inspect=me;exports.instanceOf=Pt;exports.isDigit=rf;exports.isEmptyObject=Or;exports.isNameContinue=sf;exports.isNameStart=of;exports.isNotEmptyArray=Wr;exports.isString=et;exports.keysOf=Xs;exports.lint=w$;exports.lintConfig=E$;exports.lintDocument=Va;exports.lintFromString=S$;exports.loadConfig=RR;exports.loadIgnoreConfig=Im;exports.logger=Re;exports.mapTypeToComponent=Qs;exports.normalizeVisitors=Ut;exports.pluralize=Mm;exports.regexFromString=Gr;exports.resolvePlugins=Om;exports.slash=fu;exports.t=Ge;exports.visit=Oa;exports.visitInParallel=cf;exports.walkDocument=Ft;exports.xmlEscape=wt;