@redocly/replay 0.28.0-next.8 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/{replay-AiChatProvider--1WugvKf.js → replay-AiChatProvider-BRqjyy2W.js} +2 -2
  2. package/dist/{replay-AiChatProvider-BJdxRVOc.js → replay-AiChatProvider-DUVoLgY2.js} +128 -130
  3. package/dist/{replay-AiChatSqliteDBStorage-D9fgt_9s.js → replay-AiChatSqliteDBStorage-0evx56pl.js} +6 -6
  4. package/dist/{replay-AiChatSqliteDBStorage-DbGtw6xx.js → replay-AiChatSqliteDBStorage-C5AnRloD.js} +1 -1
  5. package/dist/{replay-AiPanel-BU8oG0pD.js → replay-AiPanel-CMjVD12K.js} +77 -77
  6. package/dist/{replay-AiPanel-BYOLZjQX.js → replay-AiPanel-PVgJioX3.js} +2 -2
  7. package/dist/replay-FileWatcher-CFYprlWN.js +364 -0
  8. package/dist/replay-FileWatcher-DGLwO5Kd.js +1 -0
  9. package/dist/{replay-HistorySqliteDBStorage-CtF6-vY8.js → replay-HistorySqliteDBStorage-Bi5vBQ2T.js} +2 -2
  10. package/dist/{replay-SemanticSearchService-DRDdGJkI.js → replay-SemanticSearchService-Bh5xYa91.js} +22 -26
  11. package/dist/replay-SemanticSearchService-CulKCCNl.js +1 -0
  12. package/dist/{replay-SqliteDBStorage-D9Oeu_XC.js → replay-SqliteDBStorage-Bz0muHEk.js} +49 -49
  13. package/dist/{replay-SqliteDBStorage-B3zO7RGD.js → replay-SqliteDBStorage-CVHRAsPD.js} +1 -1
  14. package/dist/{replay-StepContextSqliteDBStorage-BfAAKDwA.js → replay-StepContextSqliteDBStorage-BkB2NM27.js} +2 -2
  15. package/dist/replay-TauriFileSystemAdapter-B163-f2D.js +108 -0
  16. package/dist/replay-TauriFileSystemAdapter-D4bOmvzP.js +1 -0
  17. package/dist/{replay-TauriRootStorage-XIJpsp6_.js → replay-TauriRootStorage-2MPQE-3f.js} +159 -155
  18. package/dist/replay-TauriRootStorage-CjWUrnWz.js +1 -0
  19. package/dist/{replay-agent-loop-DxK1tiVw.js → replay-agent-loop-BgYyBo9e.js} +9 -9
  20. package/dist/{replay-agent-loop-IDavXm8f.js → replay-agent-loop-DYDFXAZj.js} +1 -1
  21. package/dist/{replay-ai-chat-mappers-B-_eSMi4.js → replay-ai-chat-mappers-BEwNRQPV.js} +3 -3
  22. package/dist/{replay-ai-chat-mappers-BmvAc4xt.js → replay-ai-chat-mappers-CMtNqQHX.js} +1 -1
  23. package/dist/{replay-ai-message-parts.schema-E9u9-nqr.js → replay-ai-message-parts.schema-DKLf0SiG.js} +1 -1
  24. package/dist/{replay-create-model-CscK0cT1.js → replay-create-model-B2ZsGTjs.js} +3 -3
  25. package/dist/{replay-create-model-CIY7WZ1P.js → replay-create-model-DPxfOEfv.js} +4 -4
  26. package/dist/{replay-db-e_3o5e3f.js → replay-db-C9iqyMet.js} +1 -1
  27. package/dist/{replay-db-C_cdHXEt.js → replay-db-D4-LmLRk.js} +5 -5
  28. package/dist/{replay-external-resolver-nuL3ajF5.js → replay-external-resolver-BXgVrfzk.js} +7 -7
  29. package/dist/{replay-external-resolver-BmOmF-DG.js → replay-external-resolver-CTUbNZGW.js} +1 -1
  30. package/dist/{replay-history.schema-5ce6X0R1.js → replay-history.schema-B0lLwmdG.js} +3 -3
  31. package/dist/{replay-index-DDt4LOBo.js → replay-index-4TEahAPK.js} +21968 -21367
  32. package/dist/{replay-index-DjdDUkfV.js → replay-index-B4U7iZuq.js} +46 -46
  33. package/dist/replay-index-B8O3wYqo.js +1 -0
  34. package/dist/{replay-index-etIeWhnn.js → replay-index-Bdg7noSD.js} +1 -1
  35. package/dist/replay-index-CG9VN2JQ.js +4 -0
  36. package/dist/{replay-index-E3Eu6_jY.js → replay-index-DcC173cC.js} +1 -1
  37. package/dist/{replay-index-B8Zfn7JD.js → replay-index-Nz5obVS5.js} +1139 -1141
  38. package/dist/{replay-index-DcbwI4wD.js → replay-index-q63USe25.js} +1 -1
  39. package/dist/{replay-indexes-CfsvVMi_.js → replay-indexes-B3PJtgeh.js} +43 -43
  40. package/dist/{replay-lint-DVAifLdU.js → replay-lint-4XFKTmSY.js} +97 -97
  41. package/dist/{replay-lint-graphql-U_VxwRr1.js → replay-lint-graphql-BsBWkZ6L.js} +1 -1
  42. package/dist/{replay-lint-graphql-D1qaeEmu.js → replay-lint-graphql-De2eDZnT.js} +1 -1
  43. package/dist/{replay-lint-BjrmIhuZ.js → replay-lint-s7ylMBWz.js} +6111 -6074
  44. package/dist/replay-periodic-revalidation-BMFP7f-u.js +1 -0
  45. package/dist/{replay-periodic-revalidation-BtEKdEKa.js → replay-periodic-revalidation-DJbblUef.js} +4 -5
  46. package/dist/{replay-resolve-C97SfUAB.js → replay-resolve-BtNxNrKo.js} +123 -123
  47. package/dist/{replay-resolve-BYJosLqD.js → replay-resolve-BueEsOnR.js} +1 -1
  48. package/dist/{replay-respect-run-CW5xFLKz.js → replay-respect-run-B_dJjlti.js} +1 -1
  49. package/dist/{replay-respect-run-3FHTVHvs.js → replay-respect-run-Dfpbcsns.js} +3 -3
  50. package/dist/replay-step-context.schema-BOprzd6Z.js +21 -0
  51. package/dist/{replay-tauri-path-CMpWmGvW.js → replay-tauri-path-Bht3XIt7.js} +1 -1
  52. package/dist/replay-tauri-path-CiuYXh_j.js +22 -0
  53. package/dist/replay-useAiChatQueries-02CRdEPJ.js +215 -0
  54. package/dist/{replay-useAiChatQueries-DhTcllVx.js → replay-useAiChatQueries-D2hh5omV.js} +1039 -996
  55. package/dist/{replay-validate-key-Dj_UT2WG.js → replay-validate-key-ALwOF1Ux.js} +1 -1
  56. package/dist/{replay-validate-key-DJ_1khxq.js → replay-validate-key-B7fbWbfv.js} +2 -2
  57. package/dist/replay.cjs +1 -1
  58. package/dist/replay.d.ts +5 -0
  59. package/dist/replay.js +15 -15
  60. package/package.json +6 -6
  61. package/dist/replay-FileWatcher-BrhE0AP6.js +0 -1
  62. package/dist/replay-FileWatcher-JoqPJECh.js +0 -360
  63. package/dist/replay-SemanticSearchService-BgQ1HMcT.js +0 -1
  64. package/dist/replay-TauriFileSystemAdapter-CxHFFCmk.js +0 -1
  65. package/dist/replay-TauriFileSystemAdapter-DJETGEY7.js +0 -99
  66. package/dist/replay-TauriRootStorage-BSQQcFgG.js +0 -1
  67. package/dist/replay-index-C_DfEx-H.js +0 -1
  68. package/dist/replay-index-Da2H-hpA.js +0 -25
  69. package/dist/replay-periodic-revalidation-C3eLm7Mw.js +0 -1
  70. package/dist/replay-step-context.schema-DBk4jufr.js +0 -21
  71. package/dist/replay-tauri-path-C-vLbl1V.js +0 -22
  72. package/dist/replay-useAiChatQueries-CEYDGx9f.js +0 -215
@@ -1,29 +1,29 @@
1
- "use strict";const Z=require("./replay-index-B8Zfn7JD.js"),A=require("./replay-resolve-BYJosLqD.js");var Dt=typeof document<"u"?document.currentScript:null;function zt(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--&&zt(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)||!zt(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function Ir(e){return Z.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 ca(e){return e?Object.keys(e):[]}function th(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 Bi={exports:{}},rh=Bi.exports,tc;function nh(){return tc||(tc=1,(function(e,t){(function(r,n){typeof th=="function"?e.exports=n():r.pluralize=n()})(rh,function(){var r=[],n=[],i={},o={},s={};function a(w){return typeof w=="string"?new RegExp("^"+w+"$","i"):w}function c(w,E){return w===E?E:w===w.toLowerCase()?E.toLowerCase():w===w.toUpperCase()?E.toUpperCase():w[0]===w[0].toUpperCase()?E.charAt(0).toUpperCase()+E.substr(1).toLowerCase():E.toLowerCase()}function l(w,E){return w.replace(/\$(\d{1,2})/g,function(T,I){return E[I]||""})}function u(w,E){return w.replace(E[0],function(T,I){var v=l(E[1],arguments);return c(T===""?w[I-1]:T,v)})}function f(w,E,T){if(!w.length||i.hasOwnProperty(w))return E;for(var I=T.length;I--;){var v=T[I];if(v[0].test(E))return u(E,v)}return E}function y(w,E,T){return function(I){var v=I.toLowerCase();return E.hasOwnProperty(v)?c(I,v):w.hasOwnProperty(v)?c(I,w[v]):f(v,I,T)}}function h(w,E,T,I){return function(v){var x=v.toLowerCase();return E.hasOwnProperty(x)?!0:w.hasOwnProperty(x)?!1:f(x,x,T)===x}}function b(w,E,T){var I=E===1?b.singular(w):b.plural(w);return(T?E+" ":"")+I}return b.plural=y(s,o,r),b.isPlural=h(s,o,r),b.singular=y(o,s,n),b.isSingular=h(o,s,n),b.addPluralRule=function(w,E){r.push([a(w),E])},b.addSingularRule=function(w,E){n.push([a(w),E])},b.addUncountableRule=function(w){if(typeof w=="string"){i[w.toLowerCase()]=!0;return}b.addPluralRule(w,"$0"),b.addSingularRule(w,"$0")},b.addIrregularRule=function(w,E){E=E.toLowerCase(),w=w.toLowerCase(),s[w]=E,o[E]=w},[["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(w){return b.addIrregularRule(w[0],w[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(w){return b.addPluralRule(w[0],w[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(w){return b.addSingularRule(w[0],w[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(b.addUncountableRule),b})})(Bi)),Bi.exports}var ih=nh();const Iu=Z.getDefaultExportFromCjs(ih);function oh(e,t,r){return e.split(" ").map(n=>Iu(n,t,r)).join(" ")}function _u(e){return/^\\\\\?\\/.test(e)?e:e.replace(/\\/g,"/")}function Yr(e){const t=e.match(/^\/(.*)\/(.*)|(.*)/);return t&&new RegExp(t[1]||t[3],t[2])}const sh=/^[0-9][0-9Xx]{2}$/,ah={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-"},ch={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-"},ph={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}}},lh={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},uh={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},dh={extensionsPrefix:"x-",properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},fh={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},mh={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-"},hh={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},yh={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},gh={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},vh={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-"},bh={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-"},wh={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>sh.test(t)?"Response":void 0},Sh={properties:{description:{type:"string"},schema:"Schema",headers:A.mapOf("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},Eh={properties:{},additionalProperties:{isExample:!0}},xh={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 Z.isPlainObject(e)&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},Th={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},Ph={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)?A.listOf("Schema"):"Schema",allOf:A.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-"},Ih={properties:{},additionalProperties:{type:"string"}},_h={properties:{},additionalProperties:"Schema"},Ah={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},Rh={extensionsPrefix:"x-",properties:{},additionalProperties:{type:"string"}},$h={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-"},Nh={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},kh={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},Au={Root:ah,Tag:Th,TagList:A.listOf("Tag"),TagGroups:A.listOf("TagGroup"),TagGroup:Ph,ExternalDocs:gh,Example:kh,ExamplesMap:A.mapOf("Example"),EnumDescriptions:Ih,SecurityRequirement:Nh,SecurityRequirementList:A.listOf("SecurityRequirement"),Info:ch,Contact:lh,License:uh,Logo:ph,Paths:dh,PathItem:fh,Parameter:vh,ParameterItems:bh,ParameterList:A.listOf("Parameter"),Operation:mh,Examples:Eh,Header:xh,Responses:wh,Response:Sh,Schema:Oh,Xml:Ah,SchemaProperties:_h,NamedSchemas:A.mapOf("Schema"),NamedResponses:A.mapOf("Response"),NamedParameters:A.mapOf("Parameter"),NamedSecuritySchemes:A.mapOf("SecurityScheme"),SecurityScheme:$h,Scopes:Rh,XCodeSample:hh,XCodeSampleList:A.listOf("XCodeSample"),XServerList:A.listOf("XServer"),XServer:yh},Dh=/^[0-9][0-9Xx]{2}$/,qh={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."},Ch={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."},jh={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"},Mh={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"},Lh={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."},Uh={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."},Fh={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."},Bh={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"},zh={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."},Vh={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."},Kh={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."},Hh={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"},Gh={properties:{},additionalProperties:()=>"PathItem",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/webhooks#types"},Yh={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"},Qh={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"},Wh={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"},Jh={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."},Xh={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."},Zh={properties:{},additionalProperties:"MediaType",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type#types"},ey={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"},ty={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"},ry={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"},ny={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"},iy={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."},oy={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>Dh.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"},sy={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."},ay={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."},pa="Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema.",Ru=A.listOf("Schema",{name:"AllOf",description:pa}),$u=A.listOf("Schema",{name:"AnyOf",description:pa}),Nu=A.listOf("Schema",{name:"OneOf",description:pa}),cy={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:Ru,anyOf:$u,oneOf:Nu,not:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?A.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"},py={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."},ly={properties:{},additionalProperties:"Schema"},uy={properties:{},additionalProperties:e=>typeof e=="string"&&A.isMappingRef(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#types"},dy={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."},fy={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"},my={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."},hy={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."},yy={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."},gy={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."},vy={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-",description:"Configuration details for a supported OAuth Flow."},by={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-"},wy={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"},Tt={Root:qh,Tag:Ch,TagList:A.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:A.listOf("TagGroup"),TagGroup:jh,ExternalDocs:Mh,Server:Lh,ServerList:A.listOf("Server",{description:"A list of servers available to the API.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/servers#servers"}),ServerVariable:Uh,ServerVariablesMap:A.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:Fh,SecurityRequirementList:A.listOf("SecurityRequirement"),Info:Bh,Contact:Vh,License:Kh,Paths:Hh,PathItem:Yh,Parameter:Qh,ParameterList:A.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:Wh,Callback:A.mapOf("PathItem",{extensionsPrefix:"x-",description:"https://redocly.com/learn/openapi/openapi-visual-reference/callbacks#callback-object"}),CallbacksMap:A.mapOf("Callback"),RequestBody:Xh,MediaTypesMap:Zh,MediaType:ey,Example:ty,ExamplesMap:A.mapOf("Example"),Encoding:ry,EncodingMap:A.mapOf("Encoding"),EnumDescriptions:ny,Header:iy,HeadersMap:A.mapOf("Header"),Responses:oy,Response:sy,Link:ay,Logo:zh,Schema:cy,AllOf:Ru,AnyOf:$u,OneOf:Nu,Xml:py,SchemaProperties:ly,DiscriminatorMapping:uy,Discriminator:dy,Components:fy,LinksMap:A.mapOf("Link"),NamedSchemas:A.mapOf("Schema"),NamedResponses:A.mapOf("Response"),NamedParameters:A.mapOf("Parameter"),NamedExamples:A.mapOf("Example"),NamedRequestBodies:A.mapOf("RequestBody"),NamedHeaders:A.mapOf("Header"),NamedSecuritySchemes:A.mapOf("SecurityScheme"),NamedLinks:A.mapOf("Link"),NamedCallbacks:A.mapOf("Callback"),ImplicitFlow:my,PasswordFlow:hy,ClientCredentials:yy,AuthorizationCode:gy,OAuth2Flows:vy,SecurityScheme:by,XCodeSample:Jh,XCodeSampleList:A.listOf("XCodeSample"),XUsePkce:wy,WebhooksMap:Gh},Sy={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."},Ey={...Tt.License,properties:{...Tt.License.properties,identifier:{type:"string",description:"An [SPDX-Licenses] expression for the API. The identifier field is mutually exclusive of the url field."}}},xy={...Tt.Info,properties:{...Tt.Info.properties,summary:{type:"string",description:"A short summary of the API. This field MAY be used by tooling as required."}}},Ty={...Tt.Components,properties:{...Tt.Components.properties,pathItems:"NamedPathItems"}},Py={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:A.listOf("Schema",{name:"AllOf"}),anyOf:A.listOf("Schema",{name:"AnyOf"}),oneOf:A.listOf("Schema",{name:"OneOf"}),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:A.mapOf("Schema"),dependentRequired:"DependentRequired",prefixItems:A.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-"},rc={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},Iy={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-"},_y={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},De={...Tt,Info:xy,Root:Sy,Schema:Oy,SchemaProperties:rc,PatternProperties:rc,License:Ey,Components:Ty,NamedPathItems:A.mapOf("PathItem"),SecurityScheme:Iy,Operation:Py,DependentRequired:_y},Ay={...De.Root,properties:{...De.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."}}},Ry={...De.Tag,properties:{...De.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."},$y={...De.Server,properties:{...De.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."},Ny={...De.SecurityScheme,properties:{...De.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."},ky={...De.OAuth2Flows,properties:{...De.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},Dy={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:A.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."},qy={...Tt.PathItem,properties:{...Tt.PathItem.properties,query:"Operation",additionalOperations:A.mapOf("Operation")}},Cy={...De.Parameter,properties:{...De.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"]}}},jy={...De.Response,properties:{...De.Response.properties,summary:{type:"string",description:"A short summary of the meaning of the response."}}},My={...De.MediaType,properties:{...De.MediaType.properties,itemSchema:"Schema",prefixEncoding:A.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"}},Ly={...De.Discriminator,properties:{...De.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 A.isMappingRef(e)?{type:"string",directResolveAs:"Schema",description:t}:{type:"string",description:t}}}},Uy={extensionsPrefix:"x-",properties:{...De.Components.properties,mediaTypes:"NamedMediaTypes"}},Fy={...De.Example,properties:{...De.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."}}},By={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."},zy={...De.Schema,properties:{...De.Schema.properties,xml:"Xml"}},Ze={...De,Root:Ay,Tag:Ry,Server:$y,SecurityScheme:Ny,OAuth2Flows:ky,DeviceAuthorization:Dy,PathItem:qy,Parameter:Cy,Response:jy,MediaType:My,Discriminator:Ly,Example:Fy,Xml:By,Schema:zy,Components:Uy,NamedMediaTypes:A.mapOf("MediaTypesMap")},Vy={properties:{},description:"Protocol-specific information for an HTTP channel."},Ky={properties:{},description:"Protocol-specific information for an HTTP server."},Hy={properties:{headers:"Schema",statusCode:{type:"number"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP message, i.e., a request or a response."},Gy={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."},Yy={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a WebSockets channel."},Qy={properties:{},description:"Protocol-specific information for a WebSockets server."},Wy={properties:{},description:"Protocol-specific information for a WebSockets message."},Jy={properties:{},description:"Protocol-specific information for a WebSockets operation."},Xy={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"}}},Zy={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka channel."},eg={properties:{schemaRegistryUrl:{type:"string"},schemaRegistryVendor:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka server."},tg={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka message."},rg={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka operation."},ng={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ channel."},ig={properties:{},description:"Protocol-specific information for an Anypoint MQ server."},og={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ message."},sg={properties:{},description:"Protocol-specific information for an Anypoint MQ operation."},ag={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."},cg={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."},pg={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."},lg={properties:{},description:"Protocol-specific information for an AMQP 0-9-1 server."},ug={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 message."},dg={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."},fg={properties:{},description:"Protocol-specific information for an AMQP 1.0 channel."},mg={properties:{},description:"Protocol-specific information for an AMQP 1.0 server."},hg={properties:{},description:"Protocol-specific information for an AMQP 1.0 message."},yg={properties:{},description:"Protocol-specific information for an AMQP 1.0 operation."},gg={properties:{},description:"Protocol-specific information for an MQTT channel."},vg={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},bg={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},sessionExpiryInterval:e=>Z.isPlainObject(e)?"Schema":{type:"integer"},maximumPacketSize:e=>Z.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT server."},wg={properties:{payloadFormatIndicator:{type:"integer"},correlationData:"Schema",contentType:{type:"string"},responseTopic:e=>Z.isPlainObject(e)?"Schema":{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT message."},Sg={properties:{qos:{type:"integer"},retain:{type:"boolean"},messageExpiryInterval:e=>Z.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT operation."},Eg={properties:{},description:"Protocol-specific information for an MQTT 5 channel."},xg={properties:{sessionExpiryInterval:e=>Z.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT 5 server."},Tg={properties:{},description:"Protocol-specific information for an MQTT 5 message."},Pg={properties:{},description:"Protocol-specific information for an MQTT 5 operation."},Og={properties:{},description:"Protocol-specific information for a NATS channel."},Ig={properties:{},description:"Protocol-specific information for a NATS server."},_g={properties:{},description:"Protocol-specific information for a NATS message."},Ag={properties:{queue:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a NATS operation."},Rg={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS channel."},$g={properties:{name:{type:"string"},value:{}},required:["name","value"],description:"A name-value pair to set on the JMS ConnectionFactory implementation."},Ng={properties:{jmsConnectionFactory:{type:"string"},properties:A.listOf("JmsServerBindingProperty"),clientID:{type:"string"},bindingVersion:{type:"string"}},required:["jmsConnectionFactory"],description:"Protocol-specific information for a JMS server."},kg={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS message."},Dg={properties:{},description:"Protocol-specific information for a JMS operation."},qg={properties:{},description:"Protocol-specific information for a Solace channel."},Cg={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"},clientName:{type:"string"}},description:"Protocol-specific information for a Solace server."},jg={properties:{},description:"Protocol-specific information for a Solace message."},Mg={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"}}}},Lg={properties:{bindingVersion:{type:"string"},destinations:A.listOf("SolaceDestination"),dmqEligible:{type:"boolean"},priority:{type:"integer",minimum:0},timeToLive:{type:"integer"}},description:"Protocol-specific information for a Solace operation."},Ug={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."},Fg={properties:{type:{type:"string",enum:["standard","FIFO"]},contentBasedDeduplication:{type:"boolean"}},required:["type"],description:"Defines the ordering and deduplication properties of an SNS topic."},Bg={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SNS access-policy statement."},zg={properties:{statements:A.listOf("SnsStatement")},required:["statements"],description:"The security policy for an SNS topic."},Vg={properties:{name:{type:"string"},ordering:"SnsOrdering",policy:"SnsPolicy",tags:{type:"object"},bindingVersion:{type:"string"}},required:["name"],description:"Protocol-specific information for an SNS channel."},Kg={properties:{deadLetterQueue:"SnsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SNS messages are moved."},Hg={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."},Gg={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."},Yg={properties:{topic:"SnsIdentifier",consumers:A.listOf("SnsConsumer"),deliveryPolicy:"SnsDeliveryPolicy",bindingVersion:{type:"string"}},required:["consumers"],description:"Protocol-specific information for an SNS operation."},Qg={properties:{arn:{type:"string"},name:{type:"string"}},description:"Identifies an SQS queue: exactly one of arn or name."},Wg={properties:{deadLetterQueue:"SqsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SQS messages are moved."},Jg={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SQS access-policy statement."},Xg={properties:{statements:A.listOf("SqsStatement")},required:["statements"],description:"The security policy for an SQS queue."},ku={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)."},Zg={...ku,required:["name"],description:"Describes an SQS queue (operation-level definition)."},ev={properties:{queue:"SqsQueue",deadLetterQueue:"SqsQueue",bindingVersion:{type:"string"}},required:["queue"],description:"Protocol-specific information for an SQS channel."},tv={properties:{queues:A.listOf("SqsOperationQueue"),bindingVersion:{type:"string"}},required:["queues"],description:"Protocol-specific information for an SQS operation."},rv={properties:{},description:"Protocol-specific information for a STOMP channel."},nv={properties:{},description:"Protocol-specific information for a STOMP server."},iv={properties:{},description:"Protocol-specific information for a STOMP message."},ov={properties:{},description:"Protocol-specific information for a STOMP operation."},sv={properties:{},description:"Protocol-specific information for a Redis channel."},av={properties:{},description:"Protocol-specific information for a Redis server."},cv={properties:{},description:"Protocol-specific information for a Redis message."},pv={properties:{},description:"Protocol-specific information for a Redis operation."},lv={properties:{},description:"Protocol-specific information for a Mercure channel."},uv={properties:{},description:"Protocol-specific information for a Mercure server."},dv={properties:{},description:"Protocol-specific information for a Mercure message."},fv={properties:{},description:"Protocol-specific information for a Mercure operation."},mv={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."},hv={properties:{objectName:{type:"string"},isPartitioned:{type:"boolean"},exclusive:{type:"boolean"}},required:["objectName"],description:"Defines the properties of an IBM MQ queue."},yv={properties:{string:{type:"string"},objectName:{type:"string"},durablePermitted:{type:"boolean"},lastMsgRetained:{type:"boolean"}},description:"Defines the properties of an IBM MQ topic."},gv={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."},vv={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."},bv={properties:{allowedPersistenceRegions:{type:"array",items:{type:"string"}}},description:"Policy constraining the regions where Google Cloud Pub/Sub messages are stored."},wv={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."},Sv={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."},Ev={properties:{name:{type:"string"},type:{type:"string"}},required:["name"],description:"Identifies the Google Cloud Pub/Sub schema a message is validated against."},xv={properties:{attributes:{type:"object"},orderingKey:{type:"string"},schema:"GooglepubsubSchema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub message."},Tv={properties:{tenant:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Pulsar server."},Pv={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."},Iv={properties:{rmwImplementation:{type:"string"},domainId:{type:"integer",minimum:0}},description:"Protocol-specific information for a ROS 2 server."},_v={properties:{},description:"Protocol-specific information for a ROS 2 channel."},Av={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."},Rv={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."},$v={properties:{},description:"Protocol-specific information for a ROS 2 message."},Nv={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."},kv={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."},Dv={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."},qv={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."},$t={HttpServerBinding:Ky,HttpChannelBinding:Vy,HttpMessageBinding:Hy,HttpOperationBinding:Gy,WsServerBinding:Qy,WsChannelBinding:Yy,WsMessageBinding:Wy,WsOperationBinding:Jy,KafkaServerBinding:eg,KafkaTopicConfiguration:Xy,KafkaChannelBinding:Zy,KafkaMessageBinding:tg,KafkaOperationBinding:rg,AnypointmqServerBinding:ig,AnypointmqChannelBinding:ng,AnypointmqMessageBinding:og,AnypointmqOperationBinding:sg,AmqpServerBinding:lg,AmqpChannelExchange:ag,AmqpChannelQueue:cg,AmqpChannelBinding:pg,AmqpMessageBinding:ug,AmqpOperationBinding:dg,Amqp1ServerBinding:mg,Amqp1ChannelBinding:fg,Amqp1MessageBinding:hg,Amqp1OperationBinding:yg,MqttServerBindingLastWill:vg,MqttServerBinding:bg,MqttChannelBinding:gg,MqttMessageBinding:wg,MqttOperationBinding:Sg,Mqtt5ServerBinding:xg,Mqtt5ChannelBinding:Eg,Mqtt5MessageBinding:Tg,Mqtt5OperationBinding:Pg,NatsServerBinding:Ig,NatsChannelBinding:Og,NatsMessageBinding:_g,NatsOperationBinding:Ag,JmsServerBindingProperty:$g,JmsServerBinding:Ng,JmsChannelBinding:Rg,JmsMessageBinding:kg,JmsOperationBinding:Dg,SolaceServerBinding:Cg,SolaceChannelBinding:qg,SolaceMessageBinding:jg,SolaceDestination:Mg,SolaceOperationBinding:Lg,StompServerBinding:nv,StompChannelBinding:rv,StompMessageBinding:iv,StompOperationBinding:ov,RedisServerBinding:av,RedisChannelBinding:sv,RedisMessageBinding:cv,RedisOperationBinding:pv,MercureServerBinding:uv,MercureChannelBinding:lv,MercureMessageBinding:dv,MercureOperationBinding:fv,SnsIdentifier:Ug,SnsOrdering:Fg,SnsStatement:Bg,SnsPolicy:zg,SnsChannelBinding:Vg,SnsRedrivePolicy:Kg,SnsDeliveryPolicy:Hg,SnsConsumer:Gg,SnsOperationBinding:Yg,SqsIdentifier:Qg,SqsRedrivePolicy:Wg,SqsStatement:Jg,SqsPolicy:Xg,SqsQueue:ku,SqsOperationQueue:Zg,SqsChannelBinding:ev,SqsOperationBinding:tv,IbmmqServerBinding:mv,IbmmqChannelQueue:hv,IbmmqChannelTopic:yv,IbmmqChannelBinding:gv,IbmmqMessageBinding:vv,GooglepubsubMessageStoragePolicy:bv,GooglepubsubSchemaSettings:wv,GooglepubsubChannelBinding:Sv,GooglepubsubSchema:Ev,GooglepubsubMessageBinding:xv,PulsarServerBinding:Tv,PulsarRetention:Pv,PulsarChannelBinding:Ov,ServerBindings:Nv,ChannelBindings:kv,MessageBindings:qv,OperationBindings:Dv},Cv={Ros2ServerBinding:Iv,Ros2ChannelBinding:_v,Ros2OperationBinding:Rv,Ros2QosPolicies:Av,Ros2MessageBinding:$v},la={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:A.listOf("Schema"),anyOf:A.listOf("Schema"),oneOf:A.listOf("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?A.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"}},ua={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},da={properties:{},additionalProperties:e=>Array.isArray(e)?{type:"array",items:{type:"string"}}:"Schema"},fa={properties:{},additionalProperties:e=>typeof e=="string"&&A.isMappingRef(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},ma={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]},jv={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"]},Mv={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."},Lv={properties:{},additionalProperties:"Channel"},Du={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."},qu={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."},Uv={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."},Fv={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."},Cu={properties:{},additionalProperties:(e,t)=>t.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},ju={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."},Bv={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."},Mu={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."},Lu={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."},zv={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."},Uu={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."},Vv={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."},Kv={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."},Hv={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."},Gv={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."},Fu={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."},Yv={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"}},Qv={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."},Wv={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."},Jv={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."},Xv={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."},Bu={extensionsPrefix:"x-",properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},Zv={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."},zu={...$t,Root:jv,Tag:Du,TagList:A.listOf("Tag"),ServerMap:Cu,ExternalDocs:qu,Server:Fv,ServerVariable:ju,ServerVariablesMap:A.mapOf("ServerVariable"),SecurityRequirement:Uv,SecurityRequirementList:A.listOf("SecurityRequirement"),Info:Bv,Contact:Mu,License:Lu,ChannelMap:Lv,Channel:Mv,Parameter:zv,ParametersMap:A.mapOf("Parameter"),Operation:Gv,Schema:la,MessageExample:Fu,SchemaProperties:ua,DiscriminatorMapping:fa,Discriminator:ma,Components:Yv,NamedSchemas:A.mapOf("Schema"),NamedMessages:A.mapOf("Message"),NamedMessageTraits:A.mapOf("MessageTrait"),NamedOperationTraits:A.mapOf("OperationTrait"),NamedParameters:A.mapOf("Parameter"),NamedSecuritySchemes:A.mapOf("SecurityScheme"),NamedCorrelationIds:A.mapOf("CorrelationId"),ImplicitFlow:Qv,PasswordFlow:Wv,ClientCredentials:Jv,AuthorizationCode:Xv,SecuritySchemeFlows:Bu,SecurityScheme:Zv,Message:Vv,OperationTrait:Kv,OperationTraitList:A.listOf("OperationTrait"),MessageTrait:Hv,MessageTraitList:A.listOf("MessageTrait"),MessageExampleList:A.listOf("MessageExample"),CorrelationId:Uu,Dependencies:da},eb={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."},tb={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."},rb={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."},nb={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."},ib={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."},ob={extensionsPrefix:"x-",properties:{headers:e=>Z.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"Schema",payload:e=>Z.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"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."},sb={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."},ab={extensionsPrefix:"x-",properties:{headers:e=>Z.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"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."},cb={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"]},pb={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."},lb={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."},ub={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."},db={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."},fb={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."},mb={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."},hb={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."},yb={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."},gb={...$t.ServerBindings,properties:{...$t.ServerBindings.properties,ros2:"Ros2ServerBinding"}},vb={...$t.ChannelBindings,properties:{...$t.ChannelBindings.properties,ros2:"Ros2ChannelBinding"}},bb={...$t.OperationBindings,properties:{...$t.OperationBindings.properties,ros2:"Ros2OperationBinding"}},wb={...$t.MessageBindings,properties:{...$t.MessageBindings.properties,ros2:"Ros2MessageBinding"}},Sb={extensionsPrefix:"x-",properties:{schema:"Schema",schemaFormat:{type:"string"}},description:"Represents a schema definition. Unlike the Schema Object, it supports multiple schema formats or languages."},Eb={properties:{},additionalProperties:e=>Z.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"Schema"},Vu={...$t,...Cv,ServerBindings:gb,ChannelBindings:vb,OperationBindings:bb,MessageBindings:wb,CorrelationId:Uu,SecuritySchemeFlows:Bu,ServerVariable:ju,Contact:Mu,License:Lu,MessageExample:Fu,Tag:Du,Dependencies:da,Schema:la,MultiFormatSchema:Sb,Discriminator:ma,DiscriminatorMapping:fa,SchemaProperties:ua,ServerMap:Cu,ExternalDocs:qu,Root:eb,Channel:tb,Parameter:ib,Info:nb,Server:rb,MessageTrait:ab,Operation:cb,OperationReply:pb,OperationReplyAddress:lb,Components:ub,ImplicitFlow:db,PasswordFlow:fb,ClientCredentials:mb,AuthorizationCode:hb,SecurityScheme:yb,Message:ob,OperationTrait:sb,ServerVariablesMap:A.mapOf("ServerVariable"),NamedTags:A.mapOf("Tag"),NamedExternalDocs:A.mapOf("ExternalDocs"),NamedChannels:A.mapOf("Channel"),ParametersMap:A.mapOf("Parameter"),NamedOperations:A.mapOf("Operation"),NamedOperationReplies:A.mapOf("OperationReply"),NamedOperationRelyAddresses:A.mapOf("OperationReplyAddress"),NamedSchemas:Eb,NamedMessages:A.mapOf("Message"),NamedMessageTraits:A.mapOf("MessageTrait"),NamedOperationTraits:A.mapOf("OperationTrait"),NamedParameters:A.mapOf("Parameter"),NamedSecuritySchemes:A.mapOf("SecurityScheme"),NamedCorrelationIds:A.mapOf("CorrelationId"),ServerList:A.listOf("Server"),SecuritySchemeList:A.listOf("SecurityScheme"),MessageList:A.listOf("Message"),OperationTraitList:A.listOf("OperationTrait"),MessageTraitList:A.listOf("MessageTrait"),MessageExampleList:A.listOf("MessageExample"),TagList:A.listOf("Tag")},xb={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"},Pb={properties:{},additionalProperties:"SuccessActionObject"},Ob={properties:{},additionalProperties:"FailureActionObject"},Ib={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},_b=A.mapOf("Schema"),Ab={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."},Rb={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":"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:["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."},Nb={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."},kb={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."},Db={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."},qb={properties:{},items:e=>e?.reference?"ReusableObject":"Parameter"},Cb={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."},jb=A.listOf("Workflow"),Mb=A.listOf("Step"),Lb={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:A.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."},Ub={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_.-]+$."},Fb={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:A.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."},zb={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."},Vb={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."},Kb={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."},Hb={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},Gb={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},Yb={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:A.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."},Qb={properties:{},items:e=>e?.type&&e?.name?"SuccessActionObject":"ReusableObject"},Wb={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:A.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."},Jb={properties:{},items:e=>e?.type&&e?.name?"FailureActionObject":"ReusableObject"},rt={Root:xb,Info:Ab,SourceDescriptions:Rb,OpenAPISourceDescription:$b,ArazzoSourceDescription:Nb,Parameters:qb,Parameter:Db,ReusableObject:kb,Workflows:jb,Workflow:Cb,Steps:Mb,Step:Lb,RequestBody:Fb,Replacement:Bb,ExtendedOperation:Vb,ExtendedSecurityList:A.listOf("ExtendedSecurity"),ExtendedSecurity:zb,Outputs:Ub,CriterionObject:Kb,XPathCriterion:Gb,JSONPathCriterion:Hb,SuccessActionObject:Yb,OnSuccessActionList:Qb,FailureActionObject:Wb,OnFailureActionList:Jb,Schema:Ze.Schema,NamedSchemas:A.mapOf("Schema"),ExternalDocs:Ze.ExternalDocs,DiscriminatorMapping:Ze.DiscriminatorMapping,Discriminator:Ze.Discriminator,DependentRequired:Ze.DependentRequired,SchemaProperties:Ze.SchemaProperties,PatternProperties:Ze.SchemaProperties,Components:Ib,NamedInputs:_b,NamedParameters:Tb,NamedSuccessActions:Pb,NamedFailureActions:Ob,Xml:Ze.Xml,SecurityScheme:Ze.SecurityScheme,OAuth2Flows:Ze.OAuth2Flows,ImplicitFlow:Ze.ImplicitFlow,PasswordFlow:Ze.PasswordFlow,ClientCredentials:Ze.ClientCredentials,AuthorizationCode:Ze.AuthorizationCode,DeviceAuthorization:Ze.DeviceAuthorization},Xb={...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."}}},Zb={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":e?.type==="asyncapi"?"AsyncAPISourceDescription":"ArazzoSourceDescription"},e0={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."},t0={...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.'}}},r0={...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"]},n0={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["rfc9535","draft-goessner-dispatch-jsonpath-00"]}},required:["type","version"]},i0={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-31","xpath-30","xpath-20","xpath-10"]}},required:["type","version"]},o0={properties:{type:{type:"string",enum:["jsonpointer"]},version:{type:"string",enum:["rfc6901"]}},required:["type","version"]},s0={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"]},a0=e=>e?.type==="jsonpath"?"JSONPathExpression":e?.type==="xpath"?"XPathExpression":e?.type==="jsonpointer"?"JSONPointerExpression":"ExpressionType",ha=(e,t,{optional:r=!0}={})=>n=>{if(!(r&&!n))return typeof n=="string"?{enum:e,description:t}:a0(n)},c0={...rt.CriterionObject,properties:{...rt.CriterionObject.properties,type:ha(["regex","jsonpath","simple","xpath"],"The type of condition to be applied.")}},p0={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:ha(["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."},l0={properties:{},additionalProperties:e=>Z.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_.-]+$."},u0={...rt.Replacement,properties:{...rt.Replacement.properties,value:e=>Z.isPlainObject(e)&&"selector"in e?"SelectorObject":{},targetSelectorType:ha(["jsonpath","xpath","jsonpointer"],"The type of selector used in the target field.")}},d0={...rt.SuccessActionObject,properties:{...rt.SuccessActionObject.properties,parameters:"Parameters"}},f0={...rt.FailureActionObject,properties:{...rt.FailureActionObject.properties,parameters:"Parameters"}},Ku={...rt,Root:Xb,SourceDescriptions:Zb,AsyncAPISourceDescription:e0,Parameter:t0,Step:r0,CriterionObject:c0,JSONPathExpression:n0,XPathExpression:i0,JSONPointerExpression:o0,ExpressionType:s0,SelectorObject:p0,Outputs:l0,Replacement:u0,SuccessActionObject:d0,FailureActionObject:f0},m0={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."},h0={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."},y0=A.listOf("Action"),g0={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"},Hu={Root:m0,Info:h0,Actions:y0,Action:g0},v0={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."},b0={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."},w0={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."},S0={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."},E0={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."},x0={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."},P0={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."},O0={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."},_0={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."},A0={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."},R0={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."},$0={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."},N0={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."},Gu={Root:v0,Info:b0,Contact:w0,License:S0,Server:E0,ServerList:A.listOf("Server"),ServerVariable:x0,ServerVariablesMap:A.mapOf("ServerVariable"),Method:T0,MethodList:A.listOf("Method"),ContentDescriptor:P0,ContentDescriptorList:A.listOf("ContentDescriptor"),ExamplePairing:O0,ExamplePairingList:A.listOf("ExamplePairing"),Example:I0,ExampleList:A.listOf("Example"),Link:_0,LinkList:A.listOf("Link"),ErrorObject:A0,ErrorList:A.listOf("ErrorObject"),Components:R0,Tag:$0,TagList:A.listOf("Tag"),ExternalDocs:N0,Schema:la,SchemaProperties:ua,Dependencies:da,DiscriminatorMapping:fa,Discriminator:ma,NamedContentDescriptors:A.mapOf("ContentDescriptor"),NamedSchemas:A.mapOf("Schema"),NamedExamples:A.mapOf("Example"),NamedLinks:A.mapOf("Link"),NamedErrors:A.mapOf("ErrorObject"),NamedExamplePairingObjects:A.mapOf("ExamplePairing"),NamedTags:A.mapOf("Tag")};var Yu={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Mr={type:"object",properties:Yu,additionalProperties:!1},k0={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},pn={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:{...Yu,like:Mr,dislike:Mr,satisfied:Mr,neutral:Mr,dissatisfied:Mr},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:k0},additionalProperties:!1}},additionalProperties:!1},D0={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},ya={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Ms={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},feedback:pn,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ya,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:D0,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},hr={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},q0={type:"object",properties:{name:{type:"string"},items:hr,queries:hr,mutations:hr,subscriptions:hr,types:hr,directives:hr},required:["name"],additionalProperties:!1},C0={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:q0},otherItemsGroupName:{type:"string"}}},j0={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},M0={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},L0={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:j0,license:M0},additionalProperties:!1},Gi={type:"object",properties:{menu:{type:"object",properties:{...C0.properties},additionalProperties:!1},downloadUrls:ya,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:pn,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:L0},additionalProperties:!1},U0={type:"object",properties:{downloadUrls:ya,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:pn,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},F0={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"}}},nc={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},z0={type:"object",properties:{beforeInfo:{type:"array",items:nc},end:{type:"array",items:nc}}},or={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},On={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},V0={type:"object",properties:yo(or.properties,["light","dark"])},K0={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"}}},H0={type:"object",properties:{error:On,info:On,redirect:On,success:On}},G0={type:"object",properties:Rr(or.properties,["dark"])},Y0={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Q0={type:"object",properties:{accent:or,border:V0,error:or,http:K0,primary:or,responses:H0,secondary:G0,success:or,text:Y0,tonalOffset:{type:"number"},warning:or}},In={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},W0={type:"object",properties:{small:In,medium:In,large:In,xlarge:In}},Nt={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},J0={type:"object",properties:{...Rr(Nt.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:W0}},ic={type:"object",properties:yo(Nt.properties,["fontSize","lineHeight"])},X0={type:"object",properties:{medium:ic,small:ic}},Z0={type:"object",properties:{...Rr(Nt.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:X0}},ew={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},tw={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},oc={type:"object",properties:{fullWidth:{type:"boolean"}}},rw={type:"object",properties:{buttons:J0,httpBadges:Z0,layoutControls:ew,panels:tw,tryItButton:oc,tryItSendButton:oc}},Yi={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},nw={type:"object",properties:{maxWidth:Yi}},iw={type:"object",properties:{maxWidth:Yi,middlePanelMaxWidth:Yi}},ow={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:nw,"three-panel":iw}},sc={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},sw={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:sc,defaultDetailsWidth:{type:"string"},examples:sc,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},Qu={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},aw={type:"object",properties:yo(Qu.properties,["textTransform"])},cw={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},pw={type:"object",properties:{...Rr(Nt.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:Qu,level1items:aw,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:cw,textColor:{type:"string"},width:{type:"string"}}},_n={type:"object",properties:{...Nt.properties,color:{type:"string"},transform:{type:"string"}}},lw={type:"object",properties:{...Nt.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"}}},uw={type:"object",properties:Rr(Nt.properties,["fontSize"])},dw={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},fw={type:"object",properties:{code:lw,fieldName:Nt,...yo(Nt.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:_n,heading2:_n,heading3:_n,headings:uw,lineHeight:{type:"string"},links:dw,optimizeSpeed:{type:"boolean"},rightPanelHeading:_n,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},mw={type:"object",properties:{color:{type:"string"},...Rr(Nt.properties,["fontWeight"])}},hw={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:mw}},yw={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},gw={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},ac={type:"object",properties:{custom:{type:"string"}}},vw={type:"object",properties:{DownloadButton:ac,NextSectionButton:ac}},bw={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},ww={type:"object",properties:{borderRadius:{type:"string"}}},Sw={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},Ew={type:"object",properties:{breakpoints:Yi,codeBlock:hw,colors:Q0,components:rw,layout:ow,logo:yw,fab:gw,overrides:vw,rightPanel:bw,schema:sw,shape:ww,sidebar:pw,spacing:Sw,typography:fw,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},xw={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:F0}},required:["languages"]},Tw={properties:{theme:Ew,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:xw,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:z0,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 yo(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function Rr(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"},Pw={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},yt={nodeTypeName:void 0,type:"object",additionalProperties:!0},Ow={preprocessors:yt,oas2Preprocessors:yt,oas3_0Preprocessors:yt,oas3_1Preprocessors:yt,oas3_2Preprocessors:yt,async2Preprocessors:yt,async3Preprocessors:yt,arazzo1Preprocessors:yt,arazzo1_1Preprocessors:yt,overlay1Preprocessors:yt,openrpc1Preprocessors:yt},gt={nodeTypeName:void 0,type:"object",additionalProperties:!0},Iw={decorators:gt,oas2Decorators:gt,oas3_0Decorators:gt,oas3_1Decorators:gt,oas3_2Decorators:gt,async2Decorators:gt,async3Decorators:gt,arazzo1Decorators:gt,arazzo1_1Decorators:gt,overlay1Decorators:gt,openrpc1Decorators:gt},_w={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"},go={...Pw,...Iw,...Ow,extends:_w},Wu=e=>e,ot=Wu({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},cc={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},Mo={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}}},ga={type:"array",items:{...Mo,properties:{...Mo.properties,items:{type:"array",items:Mo}}}},Aw={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},Rw={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},$w={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}},Nw={type:"object",properties:{facets:$w,...We.properties},additionalProperties:!1},kw={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},Ju={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Xu={type:"object",properties:{items:ga,...We.properties},additionalProperties:!1},Zu={type:"object",additionalProperties:Aw},ed={type:"object",properties:{items:ga,copyrightText:{type:"string"},logo:We,...We.properties},additionalProperties:!1},td={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...We.properties},additionalProperties:!1},rd={type:"object",properties:{head:{type:"array",items:cc},body:{type:"array",items:cc}},additionalProperties:!1},nd={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}},id={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:Rw,filters:Nw,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:kw},...We.properties},additionalProperties:!1},od={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},sd={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...We.properties},additionalProperties:!1},ad={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},Dw={type:"object",properties:{...We.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},cd={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:Dw},additionalProperties:!1},pd={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},ld={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},Qi={...Ms,properties:{...Ms.properties,...Tw.properties}};({...Ms.properties});var qw={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},Cw={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"]},jw={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},Mw={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},Lw={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"]},Uw={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},Fw={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"]},zw={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"]},ud={type:"object",properties:{adobe:qw,amplitude:Cw,fullstory:jw,heap:Mw,rudderstack:Lw,segment:Uw,gtm:Fw,ga:zw}},dd={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},fd={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},md={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},Vw={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"}}}},Kw={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:Vw},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:ga,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Wi={type:"object",patternProperties:{".*":Kw}},Ji={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"},...go},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"}}},Hw={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},Gw={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},Yw={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},qt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:Gw},excludes:{type:"array",items:Hw},filters:{type:"array",items:Yw},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},Qw={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},Ww={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:Qw},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},Jw={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:Ww,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},Xw={type:"object",additionalProperties:Jw},hd={type:"object",properties:{show:{type:"boolean"},entityTypes:Xw,catalogs:{type:"object",properties:{all:qt,services:qt,domains:qt,teams:qt,users:qt,apiDescriptions:qt,dataSchemas:qt,apiOperations:qt},additionalProperties:qt}},additionalProperties:!1},pc={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},va={type:"string",enum:["and","or"]},Ls={type:"object",properties:{field:{type:"string"},operator:pc,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:pc,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},Zw={type:"object",properties:{operator:va,conditions:{type:"array",items:Ls}},required:["operator","conditions"],additionalProperties:!1},lc={type:"array",items:{oneOf:[Ls,{type:"object",properties:{operator:va,conditions:{type:"array",items:{oneOf:[Ls,Zw]}}},required:["operator","conditions"],additionalProperties:!1}]}},yd={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},eS={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:yd},required:["subject","assertions"],additionalProperties:!1}},tS={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:yd,where:eS,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},rS={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},tS]}},nS={type:"object",properties:{name:{type:"string"},extends:go.extends,rules:rS},required:["name"],additionalProperties:!1},uc={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},iS={oneOf:[uc,{type:"array",items:uc}]},oS={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[lc,{type:"object",properties:{operator:va,conditions:lc},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:nS,minItems:1},trigger:iS},required:["name","key","entities","levels"],additionalProperties:!1},gd={type:"array",items:oS},_t={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:Ju,navbar:Xu,products:Zu,footer:ed,sidebar:td,scripts:rd,links:nd,feedback:pn,search:id,aiAssistant:od,colorMode:sd,palette:ad,navigation:cd,codeSnippet:pd,markdown:ld,openapi:Qi,asyncapi:U0,graphql:Gi,analytics:ud,userMenu:dd,versionPicker:fd,breadcrumbs:md,catalog:Wi,entitiesCatalog:hd,catalogClassic:Wi,scorecard:Ji,scorecardClassic:Ji,scorecards:gd},additionalProperties:!0},sS=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(sS||{}),aS=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(aS||{}),cS=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(cS||{}),pS="^[a-z0-9]+(?:-[a-z0-9]+)*$",vd="redocly",lS=[vd,"corporate","guest"],dc=["REDOCLY","CORPORATE","GUEST"],uS={type:"object",additionalProperties:{type:"string"}},dS={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},An={type:"string",enum:["error","warn","off"]},fS={type:"object",additionalProperties:!1,properties:{schemaCheck:An,statusCodeCheck:An,contentTypeCheck:An,successCriteriaCheck:An}},mS={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},hS={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},yS={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},gS={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:[mS,hS]},inputs:uS,servers:dS,severity:fS,slo:yS},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},vS={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},bS={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:vS,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},wS={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"]},SS={oneOf:[bS,wS],discriminator:{propertyName:"type"}},ES={type:"object",additionalProperties:SS},bd={oneOf:[{type:"array",items:{type:"string",enum:dc},uniqueItems:!0},{type:"string",enum:dc}]},fc={type:"string",pattern:pS,not:{enum:lS.filter(e=>e!==vd)}},wd={oneOf:[{type:"array",items:fc,uniqueItems:!0},fc]},Sd={type:"boolean"},Ed={type:"string",pattern:"^https?://.*"},xd={type:"string",pattern:"^https?://.*"},xS={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:xS,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"},PS={type:"string",enum:["info","success","warning","error"]},Me={type:"object",additionalProperties:{type:"string"}},OS={type:"object",properties:{trackingId:{type:"string"},content:{type:"string"},dismissible:{type:"boolean"},target:{type:"string"},color:PS,rbac:Me,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},IS={type:"array",items:OS},_S={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:Me,openapi:Qi,graphql:Gi,theme:{type:"object",properties:{openapi:Qi,graphql:Gi},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...go},required:["root"]},AS={type:"object",additionalProperties:!0},RS={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},$S={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},NS={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:$S},additionalProperties:!1},kS={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},DS={type:"object",properties:{catalogs:{type:"object",properties:{all:Me,services:Me,domains:Me,teams:Me,users:Me,apiDescriptions:Me,dataSchemas:Me,apiOperations:Me},additionalProperties:Me},entitiesTypes:{type:"object",properties:{service:Me,domain:Me,team:Me,user:Me,apiDescription:Me,apiOperation:Me,dataSchema:Me},additionalProperties:Me},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:Me},additionalProperties:!1}},entities:{type:"object",properties:{"**":Me},additionalProperties:Me}},additionalProperties:!1},Td={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:Me,cms:Me,reunite:Me,features:{type:"object",properties:{aiSearch:Me,mcp:Me},additionalProperties:!1},content:{type:"object",properties:{"**":Me},additionalProperties:Me},entitiesCatalog:DS},additionalProperties:Me},qS={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},CS={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},jS={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[qS,CS]}},additionalProperties:!1,required:["type","apiBaseUrl"]},MS={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},LS={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Us={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:[MS,LS],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},US={...Us,properties:{...Us.properties,type:{type:"string",const:"APIGEE_EDGE"}}},FS={type:"object",oneOf:[Us,US,jS],discriminator:{propertyName:"type"}},BS={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:FS}}},mc={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"]},zS={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},VS={type:"object",properties:{hide:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}},publicEndpoint:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},KS={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},HS={type:"object",properties:{requiresLogin:Sd,logoutReturnUrl:Ed,residency:xd,sso:bd,idps:wd,rbac:Td},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},Xi={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:TS,seo:NS,rbac:Td,apiFunctions:kS,requiresLogin:Sd,responseHeaders:{type:"object",additionalProperties:{type:"array",items:zS}},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:_S},...go,ssoDirect:ES,sso:bd,idps:wd,residency:xd,logoutReturnUrl:Ed,access:HS,developerOnboarding:BS,removeAttribution:{type:"boolean"},i18n:mc,l10n:mc,metadata:AS,metadataGlobs:RS,ignore:{type:"array",items:{type:"string"}},theme:_t,reunite:gS,logo:Ju,navbar:Xu,products:Zu,footer:ed,sidebar:td,scripts:rd,links:nd,feedback:pn,search:id,aiAssistant:od,colorMode:sd,palette:ad,navigation:cd,codeSnippet:pd,markdown:ld,openapi:Qi,graphql:Gi,analytics:ud,userMenu:dd,versionPicker:fd,breadcrumbs:md,catalog:Wi,entitiesCatalog:hd,catalogClassic:Wi,scorecard:Ji,scorecardClassic:Ji,scorecards:gd,mcp:VS,skills:KS,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:IS},not:{required:["sso","idps"]},additionalProperties:!0},GS={...Xi,additionalProperties:!1},vo={$id:"root-redocly-config",...Xi,properties:{plugins:{type:"array",items:{type:"string"}},...Xi.properties,env:{type:"object",additionalProperties:GS}},additionalProperties:!1};_t.properties.logo,_t.properties.navbar,_t.properties.footer,_t.properties.sidebar,_t.properties.search,_t.properties.codeSnippet,_t.properties.breadcrumbs,_t.properties.openapi,_t.properties.feedback,Xi.properties.mockServer;var YS=["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=Wu({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"}),QS={type:"object",nodeTypeName:Ge.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},WS={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},JS={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},XS={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},ZS={type:"object",properties:{},nodeTypeName:Ge.EntityMetadata,additionalProperties:!0},eE={type:"object",nodeTypeName:Ge.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},tE={type:"object",nodeTypeName:Ge.EntitySlackContact,properties:{channels:{type:"array",items:eE}},required:["channels"],additionalProperties:!1},rE={type:"object",nodeTypeName:Ge.EntityContact,properties:{slack:tE},additionalProperties:!1},nE={type:"object",nodeTypeName:Ge.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},iE={type:"object",nodeTypeName:Ge.EntityRelation,properties:{type:{type:"string",enum:YS},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},Yt={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:rE,links:{type:"array",nodeTypeName:Ge.EntityLinkList,items:nE},relations:{type:"array",nodeTypeName:Ge.EntityRelationList,items:iE},metadata:ZS},oE={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...Yt,type:{type:"string",const:"user"},metadata:QS},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:Ge.UserEntity},{type:"object",nodeTypeName:Ge.ApiOperationEntity,properties:{...Yt,type:{type:"string",const:"api-operation"},metadata:JS},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.DataSchemaEntity,properties:{...Yt,type:{type:"string",const:"data-schema"},metadata:XS},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.ApiDescriptionEntity,properties:{...Yt,type:{type:"string",const:"api-description"},metadata:WS},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.ServiceEntity,properties:{...Yt,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.DomainEntity,properties:{...Yt,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.TeamEntity,properties:{...Yt,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},sE={type:"object",nodeTypeName:Ge.Entity,properties:{...Yt},required:["key","title","type"],additionalProperties:!1};const aE=["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"],zi=["oas2","oas3_0","oas3_1","oas3_2","async2","async3","arazzo1","arazzo1_1","overlay1","openrpc1","graphql"],Pd="a-zA-Z0-9\\.\\-_",cE={oas2:Au,oas3_0:Tt,oas3_1:De,oas3_2:Ze,async2:zu,async3:Vu,arazzo1:rt,arazzo1_1:Ku,overlay1:Hu,openrpc1:Gu};function ln(e){return e==="graphql"?{}:cE[e]}function ba(e){return e.includes("/")}function Od(e,t){const r={...e};return t.forEach(n=>{delete r[n]}),r}var Rn={exports:{}},Lo={},Ct={},er={},Uo={},Fo={},Bo={},hc;function Zi(){return hc||(hc=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(T,...I){const v=[T[0]];let x=0;for(;x<I.length;)a(v,I[x]),v.push(T[++x]);return new n(v)}e._=i;const o=new n("+");function s(T,...I){const v=[h(T[0])];let x=0;for(;x<I.length;)v.push(o),a(v,I[x]),v.push(o,h(T[++x]));return c(v),new n(v)}e.str=s;function a(T,I){I instanceof n?T.push(...I._items):I instanceof r?T.push(I):T.push(f(I))}e.addCodeArg=a;function c(T){let I=1;for(;I<T.length-1;){if(T[I]===o){const v=l(T[I-1],T[I+1]);if(v!==void 0){T.splice(I-1,3,v);continue}T[I++]="+"}I++}}function l(T,I){if(I==='""')return T;if(T==='""')return I;if(typeof T=="string")return I instanceof r||T[T.length-1]!=='"'?void 0:typeof I!="string"?`${T.slice(0,-1)}${I}"`:I[0]==='"'?T.slice(0,-1)+I.slice(1):void 0;if(typeof I=="string"&&I[0]==='"'&&!(T instanceof r))return`"${T}${I.slice(1)}`}function u(T,I){return I.emptyStr()?T:T.emptyStr()?I:s`${T}${I}`}e.strConcat=u;function f(T){return typeof T=="number"||typeof T=="boolean"||T===null?T:h(Array.isArray(T)?T.join(","):T)}function y(T){return new n(h(T))}e.stringify=y;function h(T){return JSON.stringify(T).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=h;function b(T){return typeof T=="string"&&e.IDENTIFIER.test(T)?new n(`.${T}`):i`[${T}]`}e.getProperty=b;function w(T){if(typeof T=="string"&&e.IDENTIFIER.test(T))return new n(`${T}`);throw new Error(`CodeGen: invalid export name: ${T}, use explicit $id name mapping`)}e.getEsmExportName=w;function E(T){return new n(T.toString())}e.regexpCode=E})(Bo)),Bo}var zo={},yc;function gc(){return yc||(yc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Zi();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,f;if(!((f=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||f===void 0)&&f.has(l)||this._prefixes&&!this._prefixes.has(l))throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);return this._names[l]={prefix:l,index:0}}}e.Scope=i;class o extends t.Name{constructor(l,u){super(u),this.prefix=l}setValue(l,{property:u,itemIndex:f}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(u)}[${f}]`}}e.ValueScopeName=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 f;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const y=this.toName(l),{prefix:h}=y,b=(f=u.key)!==null&&f!==void 0?f:u.ref;let w=this._values[h];if(w){const I=w.get(b);if(I)return I}else w=this._values[h]=new Map;w.set(b,y);const E=this._scope[h]||(this._scope[h]=[]),T=E.length;return E[T]=u.ref,y.setValue(u,{property:h,itemIndex:T}),y}getValue(l,u){const f=this._values[l];if(f)return f.get(u)}scopeRefs(l,u=this._values){return this._reduceValues(u,f=>{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${l}${f.scopePath}`})}scopeCode(l=this._values,u,f){return this._reduceValues(l,y=>{if(y.value===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return y.value.code},u,f)}_reduceValues(l,u,f={},y){let h=t.nil;for(const b in l){const w=l[b];if(!w)continue;const E=f[b]=f[b]||new Map;w.forEach(T=>{if(E.has(T))return;E.set(T,n.Started);let I=u(T);if(I){const v=this.opts.es5?e.varKinds.var:e.varKinds.const;h=(0,t._)`${h}${v} ${T} = ${I};${this.opts._n}`}else if(I=y?.(T))h=(0,t._)`${h}${I}${this.opts._n}`;else throw new r(T);E.set(T,n.Completed)})}return h}}e.ValueScope=a})(zo)),zo}var vc;function Pe(){return vc||(vc=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=Zi(),r=gc();var n=Zi();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=gc();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(_,C){return this}}class s extends o{constructor(_,C,$){super(),this.varKind=_,this.name=C,this.rhs=$}render({es5:_,_n:C}){const $=_?r.varKinds.var:this.varKind,j=this.rhs===void 0?"":` = ${this.rhs}`;return`${$} ${this.name}${j};`+C}optimizeNames(_,C){if(_[this.name.str])return this.rhs&&(this.rhs=Y(this.rhs,_,C)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends o{constructor(_,C,$){super(),this.lhs=_,this.rhs=C,this.sideEffects=$}render({_n:_}){return`${this.lhs} = ${this.rhs};`+_}optimizeNames(_,C){if(!(this.lhs instanceof t.Name&&!_[this.lhs.str]&&!this.sideEffects))return this.rhs=Y(this.rhs,_,C),this}get names(){const _=this.lhs instanceof t.Name?{}:{...this.lhs.names};return U(_,this.rhs)}}class c extends a{constructor(_,C,$,j){super(_,$,j),this.op=C}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 f 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(_,C){return this.code=Y(this.code,_,C),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((C,$)=>C+$.render(_),"")}optimizeNodes(){const{nodes:_}=this;let C=_.length;for(;C--;){const $=_[C].optimizeNodes();Array.isArray($)?_.splice(C,1,...$):$?_[C]=$:_.splice(C,1)}return _.length>0?this:void 0}optimizeNames(_,C){const{nodes:$}=this;let j=$.length;for(;j--;){const V=$[j];V.optimizeNames(_,C)||(he(_,V.names),$.splice(j,1))}return $.length>0?this:void 0}get names(){return this.nodes.reduce((_,C)=>W(_,C.names),{})}}class b extends h{render(_){return"{"+_._n+super.render(_)+"}"+_._n}}class w extends h{}class E extends b{}E.kind="else";class T extends b{constructor(_,C){super(C),this.condition=_}render(_){let C=`if(${this.condition})`+super.render(_);return this.else&&(C+="else "+this.else.render(_)),C}optimizeNodes(){super.optimizeNodes();const _=this.condition;if(_===!0)return this.nodes;let C=this.else;if(C){const $=C.optimizeNodes();C=this.else=Array.isArray($)?new E($):$}if(C)return _===!1?C instanceof T?C:C.nodes:this.nodes.length?this:new T(we(_),C instanceof T?[C]:C.nodes);if(!(_===!1||!this.nodes.length))return this}optimizeNames(_,C){var $;if(this.else=($=this.else)===null||$===void 0?void 0:$.optimizeNames(_,C),!!(super.optimizeNames(_,C)||this.else))return this.condition=Y(this.condition,_,C),this}get names(){const _=super.names;return U(_,this.condition),this.else&&W(_,this.else.names),_}}T.kind="if";class I extends b{}I.kind="for";class v extends I{constructor(_){super(),this.iteration=_}render(_){return`for(${this.iteration})`+super.render(_)}optimizeNames(_,C){if(super.optimizeNames(_,C))return this.iteration=Y(this.iteration,_,C),this}get names(){return W(super.names,this.iteration.names)}}class x extends I{constructor(_,C,$,j){super(),this.varKind=_,this.name=C,this.from=$,this.to=j}render(_){const C=_.es5?r.varKinds.var:this.varKind,{name:$,from:j,to:V}=this;return`for(${C} ${$}=${j}; ${$}<${V}; ${$}++)`+super.render(_)}get names(){const _=U(super.names,this.from);return U(_,this.to)}}class g extends I{constructor(_,C,$,j){super(),this.loop=_,this.varKind=C,this.name=$,this.iterable=j}render(_){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(_)}optimizeNames(_,C){if(super.optimizeNames(_,C))return this.iterable=Y(this.iterable,_,C),this}get names(){return W(super.names,this.iterable.names)}}class S extends b{constructor(_,C,$){super(),this.name=_,this.args=C,this.async=$}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 b{render(_){let C="try"+super.render(_);return this.catch&&(C+=this.catch.render(_)),this.finally&&(C+=this.finally.render(_)),C}optimizeNodes(){var _,C;return super.optimizeNodes(),(_=this.catch)===null||_===void 0||_.optimizeNodes(),(C=this.finally)===null||C===void 0||C.optimizeNodes(),this}optimizeNames(_,C){var $,j;return super.optimizeNames(_,C),($=this.catch)===null||$===void 0||$.optimizeNames(_,C),(j=this.finally)===null||j===void 0||j.optimizeNames(_,C),this}get names(){const _=super.names;return this.catch&&W(_,this.catch.names),this.finally&&W(_,this.finally.names),_}}class G extends b{constructor(_){super(),this.error=_}render(_){return`catch(${this.error})`+super.render(_)}}G.kind="catch";class B extends b{render(_){return"finally"+super.render(_)}}B.kind="finally";class K{constructor(_,C={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...C,_n:C.lines?`
2
- `:""},this._extScope=_,this._scope=new r.Scope({parent:_}),this._nodes=[new w]}toString(){return this._root.render(this.opts)}name(_){return this._scope.name(_)}scopeName(_){return this._extScope.name(_)}scopeValue(_,C){const $=this._extScope.value(_,C);return(this._values[$.prefix]||(this._values[$.prefix]=new Set)).add($),$}getScopeValue(_,C){return this._extScope.getValue(_,C)}scopeRefs(_){return this._extScope.scopeRefs(_,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(_,C,$,j){const V=this._scope.toName(C);return $!==void 0&&j&&(this._constants[V.str]=$),this._leafNode(new s(_,V,$)),V}const(_,C,$){return this._def(r.varKinds.const,_,C,$)}let(_,C,$){return this._def(r.varKinds.let,_,C,$)}var(_,C,$){return this._def(r.varKinds.var,_,C,$)}assign(_,C,$){return this._leafNode(new a(_,C,$))}add(_,C){return this._leafNode(new c(_,e.operators.ADD,C))}code(_){return typeof _=="function"?_():_!==t.nil&&this._leafNode(new y(_)),this}object(..._){const C=["{"];for(const[$,j]of _)C.length>1&&C.push(","),C.push($),($!==j||this.opts.es5)&&(C.push(":"),(0,t.addCodeArg)(C,j));return C.push("}"),new t._Code(C)}if(_,C,$){if(this._blockNode(new T(_)),C&&$)this.code(C).else().code($).endIf();else if(C)this.code(C).endIf();else if($)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(_){return this._elseNode(new T(_))}else(){return this._elseNode(new E)}endIf(){return this._endBlockNode(T,E)}_for(_,C){return this._blockNode(_),C&&this.code(C).endFor(),this}for(_,C){return this._for(new v(_),C)}forRange(_,C,$,j,V=this.opts.es5?r.varKinds.var:r.varKinds.let){const J=this._scope.toName(_);return this._for(new x(V,J,C,$),()=>j(J))}forOf(_,C,$,j=r.varKinds.const){const V=this._scope.toName(_);if(this.opts.es5){const J=C instanceof t.Name?C:this.var("_arr",C);return this.forRange("_i",0,(0,t._)`${J}.length`,ae=>{this.var(V,(0,t._)`${J}[${ae}]`),$(V)})}return this._for(new g("of",j,V,C),()=>$(V))}forIn(_,C,$,j=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(_,(0,t._)`Object.keys(${C})`,$);const V=this._scope.toName(_);return this._for(new g("in",j,V,C),()=>$(V))}endFor(){return this._endBlockNode(I)}label(_){return this._leafNode(new l(_))}break(_){return this._leafNode(new u(_))}return(_){const C=new O;if(this._blockNode(C),this.code(_),C.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(O)}try(_,C,$){if(!C&&!$)throw new Error('CodeGen: "try" without "catch" and "finally"');const j=new k;if(this._blockNode(j),this.code(_),C){const V=this.name("e");this._currNode=j.catch=new G(V),C(V)}return $&&(this._currNode=j.finally=new B,this.code($)),this._endBlockNode(G,B)}throw(_){return this._leafNode(new f(_))}block(_,C){return this._blockStarts.push(this._nodes.length),_&&this.code(_).endBlock(C),this}endBlock(_){const C=this._blockStarts.pop();if(C===void 0)throw new Error("CodeGen: not in self-balancing block");const $=this._nodes.length-C;if($<0||_!==void 0&&$!==_)throw new Error(`CodeGen: wrong number of nodes: ${$} vs ${_} expected`);return this._nodes.length=C,this}func(_,C=t.nil,$,j){return this._blockNode(new S(_,C,$)),j&&this.code(j).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(_,C){const $=this._currNode;if($ instanceof _||C&&$ instanceof C)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${C?`${_.kind}/${C.kind}`:_.kind}"`)}_elseNode(_){const C=this._currNode;if(!(C instanceof T))throw new Error('CodeGen: "else" without "if"');return this._currNode=C.else=_,this}get _root(){return this._nodes[0]}get _currNode(){const _=this._nodes;return _[_.length-1]}set _currNode(_){const C=this._nodes;C[C.length-1]=_}}e.CodeGen=K;function W(z,_){for(const C in _)z[C]=(z[C]||0)+(_[C]||0);return z}function U(z,_){return _ instanceof t._CodeOrName?W(z,_.names):z}function Y(z,_,C){if(z instanceof t.Name)return $(z);if(!j(z))return z;return new t._Code(z._items.reduce((V,J)=>(J instanceof t.Name&&(J=$(J)),J instanceof t._Code?V.push(...J._items):V.push(J),V),[]));function $(V){const J=C[V.str];return J===void 0||_[V.str]!==1?V:(delete _[V.str],J)}function j(V){return V instanceof t._Code&&V._items.some(J=>J instanceof t.Name&&_[J.str]===1&&C[J.str]!==void 0)}}function he(z,_){for(const C in _)z[C]=(z[C]||0)-(_[C]||0)}function we(z){return typeof z=="boolean"||typeof z=="number"||z===null?!z:(0,t._)`!${Q(z)}`}e.not=we;const Oe=M(e.operators.AND);function de(...z){return z.reduce(Oe)}e.and=de;const Te=M(e.operators.OR);function H(...z){return z.reduce(Te)}e.or=H;function M(z){return(_,C)=>_===t.nil?C:C===t.nil?_:(0,t._)`${Q(_)} ${z} ${Q(C)}`}function Q(z){return z instanceof t.Name?z:(0,t._)`(${z})`}})(Fo)),Fo}var _e={},bc;function ke(){if(bc)return _e;bc=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=Pe(),t=Zi();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 G=k.RULES.keywords;for(const B in S)G[B]||x(g,`unknown keyword: "${B}"`)}_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,G){if(!G){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 f(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 f(g){return g.replace(/~1/g,"/").replace(/~0/g,"~")}_e.unescapeJsonPointer=f;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(G,B,K,W)=>{const U=K===void 0?B:K instanceof e.Name?(B instanceof e.Name?g(G,B,K):S(G,B,K),K):B instanceof e.Name?(S(G,K,B),B):O(B,K);return W===e.Name&&!(U instanceof e.Name)?k(G,U):U}}_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} || {}`),w(g,O,S))}),mergeValues:(g,S)=>g===!0?!0:{...g,...S},resultToName:b}),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 b(g,S){if(S===!0)return g.var("props",!0);const O=g.var("props",(0,e._)`{}`);return S!==void 0&&w(g,O,S),O}_e.evaluatedPropsToName=b;function w(g,S,O){Object.keys(O).forEach(k=>g.assign((0,e._)`${S}${(0,e.getProperty)(k)}`,!0))}_e.setEvaluated=w;const E={};function T(g,S){return g.scopeValue("func",{ref:S,code:E[S.code]||(E[S.code]=new t._Code(S.code))})}_e.useFunc=T;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={},wc;function pt(){if(wc)return $n;wc=1,Object.defineProperty($n,"__esModule",{value:!0});const e=Pe(),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 Sc;function bo(){return Sc||(Sc=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=Pe(),r=ke(),n=pt();e.keywordError={message:({keyword:E})=>(0,t.str)`must pass "${E}" keyword validation`},e.keyword$DataError={message:({keyword:E,schemaType:T})=>T?(0,t.str)`"${E}" keyword must be ${T} ($data)`:(0,t.str)`"${E}" keyword is invalid ($data)`};function i(E,T=e.keywordError,I,v){const{it:x}=E,{gen:g,compositeRule:S,allErrors:O}=x,k=f(E,T,I);v??(S||O)?c(g,k):l(x,(0,t._)`[${k}]`)}e.reportError=i;function o(E,T=e.keywordError,I){const{it:v}=E,{gen:x,compositeRule:g,allErrors:S}=v,O=f(E,T,I);c(x,O),g||S||l(v,n.default.vErrors)}e.reportExtraError=o;function s(E,T){E.assign(n.default.errors,T),E.if((0,t._)`${n.default.vErrors} !== null`,()=>E.if(T,()=>E.assign((0,t._)`${n.default.vErrors}.length`,T),()=>E.assign(n.default.vErrors,null)))}e.resetErrorsCount=s;function a({gen:E,keyword:T,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}/${T}`),g.opts.verbose&&(E.assign((0,t._)`${S}.schema`,I),E.assign((0,t._)`${S}.data`,v))})}e.extendErrors=a;function c(E,T){const I=E.const("err",T);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,T){const{gen:I,validateName:v,schemaEnv:x}=E;x.$async?I.throw((0,t._)`new ${E.ValidationError}(${T})`):(I.assign((0,t._)`${v}.errors`,T),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 f(E,T,I){const{createErrors:v}=E.it;return v===!1?(0,t._)`{}`:y(E,T,I)}function y(E,T,I={}){const{gen:v,it:x}=E,g=[h(x,I),b(E,I)];return w(E,T,g),v.object(...g)}function h({errorPath:E},{instancePath:T}){const I=T?(0,t.str)`${E}${(0,r.getErrorPath)(T,r.Type.Str)}`:E;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,I)]}function b({keyword:E,it:{errSchemaPath:T}},{schemaPath:I,parentSchema:v}){let x=v?T:(0,t.str)`${T}/${E}`;return I&&(x=(0,t.str)`${x}${(0,r.getErrorPath)(I,r.Type.Str)}`),[u.schemaPath,x]}function w(E,{params:T,message:I},v){const{keyword:x,data:g,schemaValue:S,it:O}=E,{opts:k,propertyName:G,topSchemaRef:B,schemaPath:K}=O;v.push([u.keyword,x],[u.params,typeof T=="function"?T(E):T||(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._)`${B}${K}`],[n.default.data,g]),G&&v.push([u.propertyName,G])}})(Uo)),Uo}var Ec;function pE(){if(Ec)return er;Ec=1,Object.defineProperty(er,"__esModule",{value:!0}),er.boolOrEmptySchema=er.topBoolOrEmptySchema=void 0;const e=bo(),t=Pe(),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))}er.topBoolOrEmptySchema=i;function o(a,c){const{gen:l,schema:u}=a;u===!1?(l.var(c,!1),s(a)):l.var(c,!0)}er.boolOrEmptySchema=o;function s(a,c){const{gen:l,data:u}=a,f={gen:l,keyword:"false schema",data:u,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:a};(0,e.reportError)(f,n,void 0,c)}return er}var Xe={},tr={},xc;function Id(){if(xc)return tr;xc=1,Object.defineProperty(tr,"__esModule",{value:!0}),tr.getRules=tr.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)}tr.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 tr.getRules=n,tr}var jt={},Tc;function _d(){if(Tc)return jt;Tc=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.shouldUseRule=jt.shouldUseGroup=jt.schemaHasRulesForType=void 0;function e({schema:n,self:i},o){const s=i.RULES.types[o];return s&&s!==!0&&t(n,s)}jt.schemaHasRulesForType=e;function t(n,i){return i.rules.some(o=>r(n,o))}jt.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 jt.shouldUseRule=r,jt}var Pc;function eo(){if(Pc)return Xe;Pc=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=Id(),t=_d(),r=bo(),n=Pe(),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 G=b(v,g,S.strictNumbers,o.Wrong);x.if(G,()=>{O.length?f(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 f(I,v,x){const{gen:g,data:S,opts:O}=I,k=g.let("dataType",(0,n._)`typeof ${S}`),G=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(b(v,S,O.strictNumbers),()=>g.assign(G,S))),g.if((0,n._)`${G} !== undefined`);for(const K of x)(l.has(K)||K==="array"&&O.coerceTypes==="array")&&B(K);g.else(),E(I),g.endIf(),g.if((0,n._)`${G} !== undefined`,()=>{g.assign(S,G),y(I,G)});function B(K){switch(K){case"string":g.elseIf((0,n._)`${k} == "number" || ${k} == "boolean"`).assign(G,(0,n._)`"" + ${S}`).elseIf((0,n._)`${S} === null`).assign(G,(0,n._)`""`);return;case"number":g.elseIf((0,n._)`${k} == "boolean" || ${S} === null
3
- || (${k} == "string" && ${S} && ${S} == +${S})`).assign(G,(0,n._)`+${S}`);return;case"integer":g.elseIf((0,n._)`${k} === "boolean" || ${S} === null
4
- || (${k} === "string" && ${S} && ${S} == +${S} && !(${S} % 1))`).assign(G,(0,n._)`+${S}`);return;case"boolean":g.elseIf((0,n._)`${S} === "false" || ${S} === 0 || ${S} === null`).assign(G,!1).elseIf((0,n._)`${S} === "true" || ${S} === 1`).assign(G,!0);return;case"null":g.elseIf((0,n._)`${S} === "" || ${S} === 0 || ${S} === false`),g.assign(G,null);return;case"array":g.elseIf((0,n._)`${k} === "string" || ${k} === "number"
5
- || ${k} === "boolean" || ${S} === null`).assign(G,(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(G=n.nil){return(0,n.and)((0,n._)`typeof ${v} == "number"`,G,x?(0,n._)`isFinite(${v})`:n.nil)}}Xe.checkDataType=h;function b(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=b;const w={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=T(I);(0,r.reportError)(v,w)}Xe.reportTypeError=E;function T(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 Lr={},Oc;function lE(){if(Oc)return Lr;Oc=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.assignDefaults=void 0;const e=Pe(),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))}Lr.assignDefaults=r;function n(i,o,s){const{gen:a,compositeRule:c,data:l,opts:u}=i;if(s===void 0)return;const f=(0,e._)`${l}${(0,e.getProperty)(o)}`;if(c){(0,t.checkStrictMode)(i,`default is ignored for: ${f}`);return}let y=(0,e._)`${f} === undefined`;u.useDefaults==="empty"&&(y=(0,e._)`${y} || ${f} === null || ${f} === ""`),a.if(y,(0,e._)`${f} = ${(0,e.stringify)(s)}`)}return Lr}var vt={},Le={},Ur={},Ic;function Ad(){if(Ic)return Ur;Ic=1,Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.getSkipCondition=void 0;const e=Pe(),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 Ur.getSkipCondition=r,Ur}var _c;function Pt(){if(_c)return Le;_c=1,Object.defineProperty(Le,"__esModule",{value:!0}),Le.validateUnion=Le.validateArray=Le.usePattern=Le.callValidateCode=Le.schemaProperties=Le.allSchemaProperties=Le.noPropertyInData=Le.propertyInData=Le.isOwnProperty=Le.hasPropFunc=Le.reportMissingProp=Le.checkMissingProp=Le.checkReportMissingProp=void 0;const e=Pe(),t=ke(),r=pt(),n=ke(),i=Ad();function o(v,x){const{gen:g,data:S,it:O}=v;g.if(f(g,S,x,O.opts.ownProperties),()=>{v.setParams({missingProperty:(0,e._)`${x}`},!0),v.error()})}Le.checkReportMissingProp=o;function s({gen:v,data:x,it:{opts:g},parentSchema:S},O,k){return(0,e.or)(...O.map(G=>{var B;return(0,e.and)((0,e.not)((B=(0,i.getSkipCondition)(S,G))!==null&&B!==void 0?B:(0,e._)`false`),f(v,x,G,g.ownProperties),(0,e._)`${k} = ${G}`)}))}Le.checkMissingProp=s;function a(v,x){v.setParams({missingProperty:x},!0),v.error()}Le.reportMissingProp=a;function c(v){return v.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Le.hasPropFunc=c;function l(v,x,g){return(0,e._)`${c(v)}.call(${x}, ${g})`}Le.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}Le.propertyInData=u;function f(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}Le.noPropertyInData=f;function y(v){return v?Object.keys(v).filter(x=>x!=="__proto__"):[]}Le.allSchemaProperties=y;function h(v,x){return y(x).filter(g=>!(0,t.alwaysValidSchema)(v,x[g]))}Le.schemaProperties=h;function b({schemaCode:v,data:x,it:{gen:g,topSchemaRef:S,schemaPath:O,errorPath:k},it:G},B,K,W){const U=W?(0,e._)`${v}, ${x}, ${S}${O}`:x,Y=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,k)],[r.default.parentData,G.parentData],[r.default.parentDataProperty,G.parentDataProperty],[r.default.rootData,r.default.rootData],[r.default.isAllOfVariant,G.isAllOfVariant?1:0]];G.opts.dynamicRef&&Y.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const he=(0,e._)`${U}, ${g.object(...Y)}`;return K!==e.nil?(0,e._)`${B}.call(${K}, ${he})`:(0,e._)`${B}(${he})`}Le.callValidateCode=b;const w=(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"?w:(0,n.useFunc)(v,O)}(${g}, ${S})`})}Le.usePattern=E;function T(v){const{gen:x,data:g,keyword:S,it:O}=v,k=x.name("valid");if(O.allErrors){const B=x.let("valid",!0);return G(()=>x.assign(B,!1)),B}return x.var(k,!0),G(()=>x.break()),k;function G(B){const K=x.const("len",(0,e._)`${g}.length`);x.forRange("i",0,K,W=>{v.subschema({keyword:S,dataProp:W,dataPropType:t.Type.Num},k),x.if((0,e.not)(k),B)})}}Le.validateArray=T;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(W=>(0,t.alwaysValidSchema)(k,W))&&!k.opts.unevaluated)return;const B=x.let("valid",!1),K=x.name("_valid");x.block(()=>g.forEach((W,U)=>{const Y=v.subschema({keyword:S,schemaProp:U,compositeRule:!0},K);x.assign(B,(0,e._)`${B} || ${K}`),v.mergeValidEvaluated(Y,K)||x.if((0,e.not)(B))})),v.result(B,()=>v.reset(),()=>v.error(!0))}return Le.validateUnion=I,Le}var Ac;function uE(){if(Ac)return vt;Ac=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.validateKeywordUsage=vt.validSchemaType=vt.funcKeywordCode=vt.macroKeywordCode=void 0;const e=Pe(),t=pt(),r=Pt(),n=bo();function i(y,h){const{gen:b,keyword:w,schema:E,parentSchema:T,it:I}=y,v=h.macro.call(I.self,E,T,I),x=l(b,w,v);I.opts.validateSchema!==!1&&I.self.validateSchema(v,!0);const g=b.name("valid");y.subschema({schema:v,schemaPath:e.nil,errSchemaPath:`${I.errSchemaPath}/${w}`,topSchemaRef:x,compositeRule:!0},g),y.pass(g,()=>y.error(!0))}vt.macroKeywordCode=i;function o(y,h){var b;const{gen:w,keyword:E,schema:T,parentSchema:I,$data:v,it:x}=y;c(x,h);const g=!v&&h.compile?h.compile.call(x.self,T,I,x):h.validate,S=l(w,E,g),O=w.let("valid");y.block$data(O,k),y.ok((b=h.valid)!==null&&b!==void 0?b:O);function k(){if(h.errors===!1)K(),h.modifying&&s(y),W(()=>y.error());else{const U=h.async?G():B();h.modifying&&s(y),W(()=>a(y,U))}}function G(){const U=w.let("ruleErrs",null);return w.try(()=>K((0,e._)`await `),Y=>w.assign(O,!1).if((0,e._)`${Y} instanceof ${x.ValidationError}`,()=>w.assign(U,(0,e._)`${Y}.errors`),()=>w.throw(Y))),U}function B(){const U=(0,e._)`${S}.errors`;return w.assign(U,null),K(e.nil),U}function K(U=h.async?(0,e._)`await `:e.nil){const Y=x.opts.passContext?t.default.this:t.default.self,he=!("compile"in h&&!v||h.schema===!1);w.assign(O,(0,e._)`${U}${(0,r.callValidateCode)(y,S,Y,he)}`,h.modifying)}function W(U){var Y;w.if((0,e.not)((Y=h.valid)!==null&&Y!==void 0?Y:O),U)}}vt.funcKeywordCode=o;function s(y){const{gen:h,data:b,it:w}=y;h.if(w.parentData,()=>h.assign(b,(0,e._)`${w.parentData}[${w.parentDataProperty}]`))}function a(y,h){const{gen:b}=y;b.if((0,e._)`Array.isArray(${h})`,()=>{b.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,b){if(b===void 0)throw new Error(`keyword "${h}" failed to compile`);return y.scopeValue("keyword",typeof b=="function"?{ref:b}:{ref:b,code:(0,e.stringify)(b)})}function u(y,h,b=!1){return!h.length||h.some(w=>w==="array"?Array.isArray(y):w==="object"?y&&typeof y=="object"&&!Array.isArray(y):typeof y==w||b&&typeof y>"u")}vt.validSchemaType=u;function f({schema:y,opts:h,self:b,errSchemaPath:w},E,T){if(Array.isArray(E.keyword)?!E.keyword.includes(T):E.keyword!==T)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 ${T}: ${I.join(",")}`);if(E.validateSchema&&!E.validateSchema(y[T])){const x=`keyword "${T}" value is invalid at path "${w}": `+b.errorsText(E.validateSchema.errors);if(h.validateSchema==="log")b.logger.error(x);else throw new Error(x)}}return vt.validateKeywordUsage=f,vt}var Mt={},Rc;function dE(){if(Rc)return Mt;Rc=1,Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.extendSubschemaMode=Mt.extendSubschemaData=Mt.getSubschema=void 0;const e=Pe(),t=ke();function r(o,{keyword:s,schemaProp:a,schema:c,schemaPath:l,errSchemaPath:u,topSchemaRef:f}){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||f===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:l,topSchemaRef:f,errSchemaPath:u}}throw new Error('either "keyword" or "schema" must be passed')}Mt.getSubschema=r;function n(o,s,{dataProp:a,dataPropType:c,data:l,dataTypes:u,propertyName:f}){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:b,dataPathArr:w,opts:E}=s,T=y.let("data",(0,e._)`${s.data}${(0,e.getProperty)(a)}`,!0);h(T),o.errorPath=(0,e.str)`${b}${(0,t.getErrorPath)(a,c,E.jsPropertySyntax)}`,o.parentDataProperty=(0,e._)`${a}`,o.dataPathArr=[...w,o.parentDataProperty]}if(l!==void 0){const b=l instanceof e.Name?l:y.let("data",l,!0);h(b),f!==void 0&&(o.propertyName=f)}u&&(o.dataTypes=u);function h(b){o.data=b,o.dataLevel=s.dataLevel+1,o.dataTypes=[],s.definedProperties=new Set,o.parentData=s.data,o.dataNames=[...s.dataNames,b]}}Mt.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 Mt.extendSubschemaMode=i,Mt}var it={},Vo={exports:{}},$c;function fE(){if($c)return Vo.exports;$c=1;var e=Vo.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,f,y){if(s&&typeof s=="object"&&!Array.isArray(s)){i(s,a,c,l,u,f,y);for(var h in s){var b=s[h];if(Array.isArray(b)){if(h in e.arrayKeywords)for(var w=0;w<b.length;w++)t(n,i,o,b[w],a+"/"+h+"/"+w,c,a,h,s,w)}else if(h in e.propsKeywords){if(b&&typeof b=="object")for(var E in b)t(n,i,o,b[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,b,a+"/"+h,c,a,h,s)}o(s,a,c,l,u,f,y)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return Vo.exports}var Nc;function wo(){if(Nc)return it;Nc=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=Z.requireFastDeepEqual(),r=fE(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(w,E=!0){return typeof w=="boolean"?!0:E===!0?!s(w):E?a(w)<=E:!1}it.inlineRef=i;const o=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(w){for(const E in w){if(o.has(E))return!0;const T=w[E];if(Array.isArray(T)&&T.some(s)||typeof T=="object"&&s(T))return!0}return!1}function a(w){let E=0;for(const T in w){if(T==="$ref")return 1/0;if(E++,!n.has(T)&&(typeof w[T]=="object"&&(0,e.eachItem)(w[T],I=>E+=a(I)),E===1/0))return 1/0}return E}function c(w,E="",T){T!==!1&&(E=f(E));const I=w.parse(E);return l(w,I)}it.getFullPath=c;function l(w,E){return w.serialize(E).split("#")[0]+"#"}it._getFullPath=l;const u=/#\/?$/;function f(w){return w?w.replace(u,""):""}it.normalizeId=f;function y(w,E,T){return T=f(T),w.resolve(E,T)}it.resolveUrl=y;const h=/^[a-z_][-a-z0-9._]*$/i;function b(w,E){if(typeof w=="boolean")return{};const{schemaId:T,uriResolver:I}=this.opts,v=f(w[T]||E),x={"":v},g=c(I,v,!1),S={},O=new Set;return r(w,{allKeys:!0},(B,K,W,U)=>{if(U===void 0)return;const Y=g+K;let he=x[U];typeof B[T]=="string"&&(he=we.call(this,B[T])),Oe.call(this,B.$anchor),Oe.call(this,B.$dynamicAnchor),x[K]=he;function we(de){const Te=this.opts.uriResolver.resolve;if(de=f(he?Te(he,de):de),O.has(de))throw G(de);O.add(de);let H=this.refs[de];return typeof H=="string"&&(H=this.refs[H]),typeof H=="object"?k(B,H.schema,de):de!==f(Y)&&(de[0]==="#"?(k(B,S[de],de),S[de]=B):this.refs[de]=Y),de}function Oe(de){if(typeof de=="string"){if(!h.test(de))throw new Error(`invalid anchor "${de}"`);we.call(this,`#${de}`)}}}),S;function k(B,K,W){if(K!==void 0&&!t(B,K))throw G(W)}function G(B){return new Error(`reference "${B}" resolves to more than one schema`)}}return it.getSchemaRefs=b,it}var kc;function $r(){if(kc)return Ct;kc=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.getData=Ct.KeywordCxt=Ct.validateFunctionCode=void 0;const e=pE(),t=eo(),r=_d(),n=eo(),i=lE(),o=uE(),s=dE(),a=Pe(),c=pt(),l=wo(),u=ke(),f=bo();function y(D){if(g(D)&&(O(D),x(D))){E(D);return}h(D,()=>(0,e.topBoolOrEmptySchema)(D))}Ct.validateFunctionCode=y;function h({gen:D,validateName:F,schema:X,schemaEnv:te,opts:ge},be){ge.code.es5?D.func(F,(0,a._)`${c.default.data}, ${c.default.valCxt}`,te.$async,()=>{D.code((0,a._)`"use strict"; ${I(X,ge)}`),w(D,ge),D.code(be)}):D.func(F,(0,a._)`${c.default.data}, ${b(ge)}`,te.$async,()=>D.code(I(X,ge)).code(be))}function b(D){return(0,a._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${D.dynamicRef?(0,a._)`, ${c.default.dynamicAnchors}={}`:a.nil}, ${c.default.isAllOfVariant} = 0}={}`}function w(D,F){D.if(c.default.valCxt,()=>{D.var(c.default.instancePath,(0,a._)`${c.default.valCxt}.${c.default.instancePath}`),D.var(c.default.parentData,(0,a._)`${c.default.valCxt}.${c.default.parentData}`),D.var(c.default.parentDataProperty,(0,a._)`${c.default.valCxt}.${c.default.parentDataProperty}`),D.var(c.default.rootData,(0,a._)`${c.default.valCxt}.${c.default.rootData}`),D.var(c.default.isAllOfVariant,(0,a._)`${c.default.valCxt}.${c.default.isAllOfVariant}`),F.dynamicRef&&D.var(c.default.dynamicAnchors,(0,a._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{D.var(c.default.instancePath,(0,a._)`""`),D.var(c.default.parentData,(0,a._)`undefined`),D.var(c.default.parentDataProperty,(0,a._)`undefined`),D.var(c.default.rootData,c.default.data),D.var(c.default.isAllOfVariant,(0,a._)`0`),F.dynamicRef&&D.var(c.default.dynamicAnchors,(0,a._)`{}`)})}function E(D){const{schema:F,opts:X,gen:te}=D;h(D,()=>{X.$comment&&F.$comment&&U(D),B(D),te.let(c.default.vErrors,null),te.let(c.default.errors,0),X.unevaluated&&T(D),k(D),Y(D)})}function T(D){const{gen:F,validateName:X}=D;D.evaluated=F.const("evaluated",(0,a._)`${X}.evaluated`),F.if((0,a._)`${D.evaluated}.dynamicProps`,()=>F.assign((0,a._)`${D.evaluated}.props`,(0,a._)`undefined`)),F.if((0,a._)`${D.evaluated}.dynamicItems`,()=>F.assign((0,a._)`${D.evaluated}.items`,(0,a._)`undefined`))}function I(D,F){const X=typeof D=="object"&&D[F.schemaId];return X&&(F.code.source||F.code.process)?(0,a._)`/*# sourceURL=${X} */`:a.nil}function v(D,F){if(g(D)&&(O(D),x(D))){S(D,F);return}(0,e.boolOrEmptySchema)(D,F)}function x({schema:D,self:F}){if(typeof D=="boolean")return!D;for(const X in D)if(F.RULES.all[X])return!0;return!1}function g(D){return typeof D.schema!="boolean"}function S(D,F){const{schema:X,gen:te,opts:ge}=D;ge.$comment&&X.$comment&&U(D),K(D),W(D);const be=te.const("_errs",c.default.errors);k(D,be),te.var(F,(0,a._)`${be} === ${c.default.errors}`)}function O(D){(0,u.checkUnknownRules)(D),G(D)}function k(D,F){if(D.opts.jtd)return we(D,[],!1,F);const X=(0,t.getSchemaTypes)(D.schema),te=(0,t.coerceAndCheckDataType)(D,X);we(D,X,!te,F)}function G(D){const{schema:F,errSchemaPath:X,opts:te,self:ge}=D;F.$ref&&te.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(F,ge.RULES)&&ge.logger.warn(`$ref: keywords ignored in schema at path "${X}"`)}function B(D){const{schema:F,opts:X}=D;F.default!==void 0&&X.useDefaults&&X.strictSchema&&(0,u.checkStrictMode)(D,"default is ignored in the schema root")}function K(D){const F=D.schema[D.opts.schemaId];F&&(D.baseId=(0,l.resolveUrl)(D.opts.uriResolver,D.baseId,F))}function W(D){if(D.schema.$async&&!D.schemaEnv.$async)throw new Error("async schema in sync schema")}function U({gen:D,schemaEnv:F,schema:X,errSchemaPath:te,opts:ge}){const be=X.$comment;if(ge.$comment===!0)D.code((0,a._)`${c.default.self}.logger.log(${be})`);else if(typeof ge.$comment=="function"){const q=(0,a.str)`${te}/$comment`,ee=D.scopeValue("root",{ref:F.root});D.code((0,a._)`${c.default.self}.opts.$comment(${be}, ${q}, ${ee}.schema)`)}}function Y(D){const{gen:F,schemaEnv:X,validateName:te,ValidationError:ge,opts:be}=D;X.$async?F.if((0,a._)`${c.default.errors} === 0`,()=>F.return(c.default.data),()=>F.throw((0,a._)`new ${ge}(${c.default.vErrors})`)):(F.assign((0,a._)`${te}.errors`,c.default.vErrors),be.unevaluated&&he(D),F.return((0,a._)`${c.default.errors} === 0`))}function he({gen:D,evaluated:F,props:X,items:te}){X instanceof a.Name&&D.assign((0,a._)`${F}.props`,X),te instanceof a.Name&&D.assign((0,a._)`${F}.items`,te)}function we(D,F,X,te){const{gen:ge,schema:be,data:q,allErrors:ee,opts:pe,self:ne}=D,{RULES:oe}=ne;if(be.$ref&&(pe.ignoreKeywordsWithRef||!(0,u.schemaHasRulesButRef)(be,oe))){ge.block(()=>j(D,"$ref",oe.all.$ref.definition));return}pe.jtd||de(D,F),ge.block(()=>{for(const ue of oe.rules)le(ue);le(oe.post)});function le(ue){(0,r.shouldUseGroup)(be,ue)&&(ue.type?(ge.if((0,n.checkDataType)(ue.type,q,pe.strictNumbers)),Oe(D,ue),F.length===1&&F[0]===ue.type&&X&&(ge.else(),(0,n.reportTypeError)(D)),ge.endIf()):Oe(D,ue),ee||ge.if((0,a._)`${c.default.errors} === ${te||0}`))}}function Oe(D,F){const{gen:X,schema:te,opts:{useDefaults:ge}}=D;ge&&(0,i.assignDefaults)(D,F.type),X.block(()=>{for(const q of F.rules)((0,r.shouldUseRule)(te,q)||be(te,q))&&j(D,q.keyword,q.definition,F.type)});function be(q,ee){return!!(ee.keyword==="unevaluatedProperties"&&(q.properties||q.patternProperties)&&!D.isAllOfVariant&&D.opts.defaultUnevaluatedProperties===!1)}}function de(D,F){D.schemaEnv.meta||!D.opts.strictTypes||(Te(D,F),D.opts.allowUnionTypes||H(D,F),M(D,D.dataTypes))}function Te(D,F){if(F.length){if(!D.dataTypes.length){D.dataTypes=F;return}F.forEach(X=>{z(D.dataTypes,X)||C(D,`type "${X}" not allowed by context "${D.dataTypes.join(",")}"`)}),_(D,F)}}function H(D,F){F.length>1&&!(F.length===2&&F.includes("null"))&&C(D,"use allowUnionTypes to allow union type keyword")}function M(D,F){const X=D.self.RULES.all;for(const te in X){const ge=X[te];if(typeof ge=="object"&&(0,r.shouldUseRule)(D.schema,ge)){const{type:be}=ge.definition;be.length&&!be.some(q=>Q(F,q))&&C(D,`missing type "${be.join(",")}" for keyword "${te}"`)}}}function Q(D,F){return D.includes(F)||F==="number"&&D.includes("integer")}function z(D,F){return D.includes(F)||F==="integer"&&D.includes("number")}function _(D,F){const X=[];for(const te of D.dataTypes)z(F,te)?X.push(te):F.includes("integer")&&te==="number"&&X.push("integer");D.dataTypes=X}function C(D,F){const X=D.schemaEnv.baseId+D.errSchemaPath;F+=` at "${X}" (strictTypes)`,(0,u.checkStrictMode)(D,F,D.opts.strictTypes)}class ${constructor(F,X,te){if((0,o.validateKeywordUsage)(F,X,te),this.gen=F.gen,this.allErrors=F.allErrors,this.keyword=te,this.data=F.data,this.schema=F.schema[te],this.$data=X.$data&&F.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(F,this.schema,te,this.$data),this.schemaType=X.schemaType,this.parentSchema=F.schema,this.params={},this.it=F,this.def=X,this.$data)this.schemaCode=F.gen.const("vSchema",ae(this.$data,F));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,X.schemaType,X.allowUndefined))throw new Error(`${te} value must be ${JSON.stringify(X.schemaType)}`);("code"in X?X.trackErrors:X.errors!==!1)&&(this.errsCount=F.gen.const("_errs",c.default.errors))}result(F,X,te){this.failResult((0,a.not)(F),X,te)}failResult(F,X,te){this.gen.if(F),te?te():this.error(),X?(this.gen.else(),X(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(F,X){this.failResult((0,a.not)(F),void 0,X)}fail(F){if(F===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(F),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(F){if(!this.$data)return this.fail(F);const{schemaCode:X}=this;this.fail((0,a._)`${X} !== undefined && (${(0,a.or)(this.invalid$data(),F)})`)}error(F,X,te){if(X){this.setParams(X),this._error(F,te),this.setParams({});return}this._error(F,te)}_error(F,X){(F?f.reportExtraError:f.reportError)(this,this.def.error,X)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(F){this.allErrors||this.gen.if(F)}setParams(F,X){X?Object.assign(this.params,F):this.params=F}block$data(F,X,te=a.nil){this.gen.block(()=>{this.check$data(F,te),X()})}check$data(F=a.nil,X=a.nil){if(!this.$data)return;const{gen:te,schemaCode:ge,schemaType:be,def:q}=this;te.if((0,a.or)((0,a._)`${ge} === undefined`,X)),F!==a.nil&&te.assign(F,!0),(be.length||q.validateSchema)&&(te.elseIf(this.invalid$data()),this.$dataError(),F!==a.nil&&te.assign(F,!1)),te.else()}invalid$data(){const{gen:F,schemaCode:X,schemaType:te,def:ge,it:be}=this;return(0,a.or)(q(),ee());function q(){if(te.length){if(!(X instanceof a.Name))throw new Error("ajv implementation error");const pe=Array.isArray(te)?te:[te];return(0,a._)`${(0,n.checkDataTypes)(pe,X,be.opts.strictNumbers,n.DataType.Wrong)}`}return a.nil}function ee(){if(ge.validateSchema){const pe=F.scopeValue("validate$data",{ref:ge.validateSchema});return(0,a._)`!${pe}(${X})`}return a.nil}}subschema(F,X,te){const ge=(0,s.getSubschema)(this.it,F);(0,s.extendSubschemaData)(ge,this.it,F),(0,s.extendSubschemaMode)(ge,F);const be={...this.it,...ge,items:void 0,props:void 0,isAllOfVariant:te};return v(be,X),be}mergeEvaluated(F,X){const{it:te,gen:ge}=this;te.opts.unevaluated&&(te.props!==!0&&F.props!==void 0&&(te.props=u.mergeEvaluated.props(ge,F.props,te.props,X)),te.items!==!0&&F.items!==void 0&&(te.items=u.mergeEvaluated.items(ge,F.items,te.items,X)))}mergeValidEvaluated(F,X){const{it:te,gen:ge}=this;if(te.opts.unevaluated&&(te.props!==!0||te.items!==!0))return ge.if(X,()=>this.mergeEvaluated(F,a.Name)),!0}}Ct.KeywordCxt=$;function j(D,F,X,te){const ge=new $(D,X,F);"code"in X?X.code(ge,te):ge.$data&&X.validate?(0,o.funcKeywordCode)(ge,X):"macro"in X?(0,o.macroKeywordCode)(ge,X):(X.compile||X.validate)&&(0,o.funcKeywordCode)(ge,X)}const V=/^\/(?:[^~]|~0|~1)*$/,J=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ae(D,{dataLevel:F,dataNames:X,dataPathArr:te}){let ge,be;if(D==="")return c.default.rootData;if(D[0]==="/"){if(!V.test(D))throw new Error(`Invalid JSON-pointer: ${D}`);ge=D,be=c.default.rootData}else{const ne=J.exec(D);if(!ne)throw new Error(`Invalid JSON-pointer: ${D}`);const oe=+ne[1];if(ge=ne[2],ge==="#"){if(oe>=F)throw new Error(pe("property/index",oe));return te[F-oe]}if(oe>F)throw new Error(pe("data",oe));if(be=X[F-oe],!ge)return be}let q=be;const ee=ge.split("/");for(const ne of ee)ne&&(be=(0,a._)`${be}${(0,a.getProperty)((0,u.unescapeJsonPointer)(ne))}`,q=(0,a._)`${q} && ${be}`);return q;function pe(ne,oe){return`Cannot access ${ne} ${oe} levels up, current level is ${F}`}}return Ct.getData=ae,Ct}var Nn={},Dc;function un(){if(Dc)return Nn;Dc=1,Object.defineProperty(Nn,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return Nn.default=e,Nn}var kn={},qc;function Nr(){if(qc)return kn;qc=1,Object.defineProperty(kn,"__esModule",{value:!0});const e=wo();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 kn.default=t,kn}var lt={},Cc;function So(){if(Cc)return lt;Cc=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.resolveSchema=lt.getCompilingSchema=lt.resolveRef=lt.compileSchema=lt.SchemaEnv=void 0;const e=Pe(),t=un(),r=pt(),n=wo(),i=ke(),o=$r();class s{constructor(T){var I;this.refs={},this.dynamicAnchors={};let v;typeof T.schema=="object"&&(v=T.schema),this.schema=T.schema,this.schemaId=T.schemaId,this.root=T.root||this,this.baseId=(I=T.baseId)!==null&&I!==void 0?I:(0,n.normalizeId)(v?.[T.schemaId||"$id"]),this.schemaPath=T.schemaPath,this.localRefs=T.localRefs,this.meta=T.meta,this.$async=v?.$async,this.refs={}}}lt.SchemaEnv=s;function a(E){const T=u.call(this,E);if(T)return T;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 G={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 B;try{this._compilations.add(E),(0,o.validateFunctionCode)(G),S.optimize(this.opts.code.optimize);const K=S.toString();B=`const visitedNodesForRef = new WeakMap(); ${S.scopeRefs(r.default.scope)}return ${K}`,this.opts.code.process&&(B=this.opts.code.process(B,E));const U=new Function(`${r.default.self}`,`${r.default.scope}`,B)(this,this.scope.get());if(this.scope.value(k,{ref:U}),U.errors=null,U.schema=E.schema,U.schemaEnv=E,E.$async&&(U.$async=!0),this.opts.code.source===!0&&(U.source={validateName:k,validateCode:K,scopeValues:S._values}),this.opts.unevaluated){const{props:Y,items:he}=G;U.evaluated={props:Y instanceof e.Name?void 0:Y,items:he instanceof e.Name?void 0:he,dynamicProps:Y instanceof e.Name,dynamicItems:he instanceof e.Name},U.source&&(U.source.evaluated=(0,e.stringify)(U.evaluated))}return E.validate=U,E}catch(K){throw delete E.validate,delete E.validateName,B&&this.logger.error("Error compiling schema, function code:",B),K}finally{this._compilations.delete(E)}}lt.compileSchema=a;function c(E,T,I){var v;const x=(0,n.resolveUrl)(this.opts.uriResolver,T,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:T}))}if(S===void 0&&this.opts.loadSchemaSync){const O=this.opts.loadSchemaSync(T,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 T of this._compilations)if(f(T,E))return T}lt.getCompilingSchema=u;function f(E,T){return E.schema===T.schema&&E.root===T.root&&E.baseId===T.baseId}function y(E,T){let I;for(;typeof(I=this.refs[T])=="string";)T=I;return I||this.schemas[T]||h.call(this,E,T)}function h(E,T){const I=this.opts.uriResolver.parse(T),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 w.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:w.call(this,I,O)}if(typeof S?.schema=="object"){if(S.validate||a.call(this,S),g===(0,n.normalizeId)(T)){const{schema:O}=S,{schemaId:k}=this.opts,G=O[k];return G&&(x=(0,n.resolveUrl)(this.opts.uriResolver,x,G)),new s({schema:O,schemaId:k,root:E,baseId:x})}return w.call(this,I,S)}}lt.resolveSchema=h;const b=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function w(E,{baseId:T,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 G=typeof I=="object"&&I[this.opts.schemaId];!b.has(O)&&G&&(T=(0,n.resolveUrl)(this.opts.uriResolver,T,G))}let g;if(typeof I!="boolean"&&I.$ref&&!(0,i.schemaHasRulesButRef)(I,this.RULES)){const O=(0,n.resolveUrl)(this.opts.uriResolver,T,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:T}),g.schema!==g.root.schema)return g}return lt}const mE="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",hE="Meta-schema for $data reference (JSON AnySchema extension proposal)",yE="object",gE=["$data"],vE={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},bE=!1,wE={$id:mE,description:hE,type:yE,required:gE,properties:vE,additionalProperties:bE};var Dn={},Fr={exports:{}},Ko,jc;function Rd(){if(jc)return Ko;jc=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=[],G=[];let B=!1,K=!1,W=c;for(let U=0;U<g.length;U++){const Y=g[U];if(!(Y==="["||Y==="]"))if(Y===":"){if(B===!0&&(K=!0),!W(G,k,O))break;if(++S>7){O.error=!0;break}U>0&&g[U-1]===":"&&(B=!0),k.push(":");continue}else if(Y==="%"){if(!W(G,k,O))break;W=a}else{G.push(Y);continue}}return G.length&&(W===a?O.zone=G.join(""):K?k.push(G.join("")):k.push(o(G))),O.address=k.join(""),O}function u(g){if(f(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 f(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,G=0;for(;G=S.length;){if(G===1){if(S===".")break;if(S==="/"){O.push("/");break}else{O.push(S);break}}else if(G===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(G===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"},b=/[@/?#:]/g,w=/[@/?#]/g;function E(g,S){const O=S?w:b;return O.lastIndex=0,g.replace(O,k=>h[k])}function T(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 G=g.slice(k+1,k+3);if(r(G)){const B=G.toUpperCase(),K=String.fromCharCode(parseInt(B,16));S&&n(K)?O+=K:O+="%"+B,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 G=k.toUpperCase(),B=String.fromCharCode(parseInt(G,16));B!=="."&&n(B)?S+=B:S+="%"+G,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 Ko={nonSimpleDomain:s,recomposeAuthority:x,reescapeHostDelimiters:E,normalizePercentEncoding:T,normalizePathEncoding:I,escapePreservingEscapes:v,removeDotSegments:y,isIPv4:t,isUUID:e,normalizeIPv6:u,stringArrayToHexStripped:o},Ko}var Ho,Mc;function SE(){if(Mc)return Ho;Mc=1;const{isUUID:e}=Rd(),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 G=`${k}:${S.nid||g.nid}`,B=x(G);g.path=void 0,B&&(g=B.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(),G=`${O}:${S.nid||k}`,B=x(G);B&&(g=B.serialize(g,S));const K=g,W=g.nss;return K.path=`${k||S.nid}:${W}`,S.skipEscape=!0,K}function f(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},b={scheme:"https",domainHost:h.domainHost,parse:o,serialize:s},w={scheme:"ws",domainHost:!0,parse:a,serialize:c},E={scheme:"wss",domainHost:w.domainHost,parse:w.parse,serialize:w.serialize},v={http:h,https:b,ws:w,wss:E,urn:{scheme:"urn",parse:l,serialize:u,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:y,skipNormalize:!0}};Object.setPrototypeOf(v,null);function x(g){return g&&(v[g]||v[g.toLowerCase()])||void 0}return Ho={wsIsSecure:i,SCHEMES:v,isValidSchemeName:n,getSchemeHandler:x},Ho}var Lc;function EE(){if(Lc)return Fr.exports;Lc=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:n,normalizePathEncoding:i,escapePreservingEscapes:o,reescapeHostDelimiters:s,isIPv4:a,nonSimpleDomain:c}=Rd(),{SCHEMES:l,getSchemeHandler:u}=SE();function f(B,K){return typeof B=="string"?B=S(B,K):typeof B=="object"&&(B=g(w(B,K),K)),B}function y(B,K,W){const U=W?Object.assign({scheme:"null"},W):{scheme:"null"},{parsed:Y,malformedAuthorityOrPort:he}=x(B,U),{parsed:we,malformedAuthorityOrPort:Oe}=x(K,U);if(he||Oe)throw new Error(Y.error||we.error||"URI is malformed.");const de=h(Y,we,U,!0);return U.skipEscape=!0,w(de,U)}function h(B,K,W,U){const Y={};return U||(B=g(w(B,W),W),K=g(w(K,W),W)),W=W||{},!W.tolerant&&K.scheme?(Y.scheme=K.scheme,Y.userinfo=K.userinfo,Y.host=K.host,Y.port=K.port,Y.path=t(K.path||""),Y.query=K.query):(K.userinfo!==void 0||K.host!==void 0||K.port!==void 0?(Y.userinfo=K.userinfo,Y.host=K.host,Y.port=K.port,Y.path=t(K.path||""),Y.query=K.query):(K.path?(K.path[0]==="/"?Y.path=t(K.path):((B.userinfo!==void 0||B.host!==void 0||B.port!==void 0)&&!B.path?Y.path="/"+K.path:B.path?Y.path=B.path.slice(0,B.path.lastIndexOf("/")+1)+K.path:Y.path=K.path,Y.path=t(Y.path)),Y.query=K.query):(Y.path=B.path,K.query!==void 0?Y.query=K.query:Y.query=B.query),Y.userinfo=B.userinfo,Y.host=B.host,Y.port=B.port),Y.scheme=B.scheme),Y.fragment=K.fragment,Y}function b(B,K,W){const U=k(B,W),Y=k(K,W);return U!==void 0&&Y!==void 0&&U.toLowerCase()===Y.toLowerCase()}function w(B,K){const W={host:B.host,scheme:B.scheme,userinfo:B.userinfo,port:B.port,path:B.path,query:B.query,nid:B.nid,nss:B.nss,uuid:B.uuid,fragment:B.fragment,reference:B.reference,resourceName:B.resourceName,secure:B.secure,error:""},U=Object.assign({},K),Y=[],he=u(U.scheme||W.scheme);he&&he.serialize&&he.serialize(W,U),W.path!==void 0&&(U.skipEscape?W.path=n(W.path):(W.path=o(W.path),W.scheme!==void 0&&(W.path=W.path.split("%3A").join(":")))),U.reference!=="suffix"&&W.scheme&&Y.push(W.scheme,":");const we=r(W);if(we!==void 0&&(U.reference!=="suffix"&&Y.push("//"),Y.push(we),W.path&&W.path[0]!=="/"&&Y.push("/")),W.path!==void 0){let Oe=W.path;!U.absolutePath&&(!he||!he.absolutePath)&&(Oe=t(Oe)),we===void 0&&Oe[0]==="/"&&Oe[1]==="/"&&(Oe="/%2F"+Oe.slice(2)),Y.push(Oe)}return W.query!==void 0&&Y.push("?",W.query),W.fragment!==void 0&&Y.push("#",W.fragment),Y.join("")}const E=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,T=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,I=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function v(B,K){if(K[2]!==void 0&&B.path&&B.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof B.port=="number"&&(B.port<0||B.port>65535))return"URI port is malformed."}function x(B,K){const W=Object.assign({},K),U={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let Y=!1,he=!1;W.reference==="suffix"&&(W.scheme?B=W.scheme+":"+B:B="//"+B);const we=B.match(T);we!==null&&we[1].indexOf("\\")!==-1&&(U.error="URI authority must not contain a literal backslash.",Y=!0);const Oe=B.match(I);if(Oe!==null){const Te=Oe[1],H=Te.replace(/[\t\n\r]/g,"");H.length>=2&&(H.slice(0,2)!=="//"?(U.error=U.error||"URI authority must not contain a literal backslash.",Y=!0):Te.length!==H.length&&(U.error=U.error||"URI authority introducer must not contain whitespace.",Y=!0))}const de=B.match(E);if(de){U.scheme=de[1],U.userinfo=de[3],U.host=de[4],U.port=parseInt(de[5],10),U.path=de[6]||"",U.query=de[7],U.fragment=de[8],isNaN(U.port)&&(U.port=de[5]);const Te=v(U,de);if(Te!==void 0&&(U.error=U.error||Te,Y=!0),U.host)if(a(U.host)===!1){const Q=e(U.host);U.host=Q.host.toLowerCase(),he=Q.isIPV6}else he=!0;U.scheme===void 0&&U.userinfo===void 0&&U.host===void 0&&U.port===void 0&&U.query===void 0&&!U.path?U.reference="same-document":U.scheme===void 0?U.reference="relative":U.fragment===void 0?U.reference="absolute":U.reference="uri",W.reference&&W.reference!=="suffix"&&W.reference!==U.reference&&(U.error=U.error||"URI is not a "+W.reference+" reference.");const H=u(W.scheme||U.scheme);if(!W.unicodeSupport&&(!H||!H.unicodeSupport)&&U.host&&(W.domainHost||H&&H.domainHost)&&he===!1&&c(U.host))try{U.host=new URL("http://"+U.host).hostname}catch(M){U.error=U.error||"Host's domain name can not be converted to ASCII: "+M}if((!H||H&&!H.skipNormalize)&&(B.indexOf("%")!==-1&&(U.scheme!==void 0&&(U.scheme=unescape(U.scheme)),U.host!==void 0&&(U.host=s(unescape(U.host),he))),U.path&&(U.path=i(U.path)),U.fragment))try{U.fragment=encodeURI(decodeURIComponent(U.fragment))}catch{U.error=U.error||"URI malformed"}H&&H.parse&&H.parse(U,W)}else U.error=U.error||"URI can not be parsed.";return{parsed:U,malformedAuthorityOrPort:Y}}function g(B,K){return x(B,K).parsed}function S(B,K){return O(B,K).normalized}function O(B,K){const{parsed:W,malformedAuthorityOrPort:U}=x(B,K);return{normalized:U?B:w(W,K),malformedAuthorityOrPort:U}}function k(B,K){if(typeof B=="string"){const{normalized:W,malformedAuthorityOrPort:U}=O(B,K);return U?void 0:W}if(typeof B=="object")return w(B,K)}const G={SCHEMES:l,normalize:f,resolve:y,resolveComponent:h,equal:b,serialize:w,parse:g};return Fr.exports=G,Fr.exports.default=G,Fr.exports.fastUri=G,Fr.exports}var Uc;function xE(){if(Uc)return Dn;Uc=1,Object.defineProperty(Dn,"__esModule",{value:!0});const e=EE();return e.code='require("ajv/dist/runtime/uri").default',Dn.default=e,Dn}var Fc;function wa(){return Fc||(Fc=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=$r();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Pe();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=un(),i=Nr(),o=Id(),s=So(),a=Pe(),c=wo(),l=eo(),u=ke(),f=wE,y=xE(),h=(H,M)=>new RegExp(H,M);h.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],w=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."},T={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},I=200;function v(H){var M,Q,z,_,C,$,j,V,J,ae,D,F,X,te,ge,be,q,ee,pe,ne,oe,le,ue,fe,Ee;const Be=H.strict,p=(M=H.code)===null||M===void 0?void 0:M.optimize,d=p===!0||p===void 0?1:p||0,m=(z=(Q=H.code)===null||Q===void 0?void 0:Q.regExp)!==null&&z!==void 0?z:h,P=(_=H.uriResolver)!==null&&_!==void 0?_:y.default;return{strictSchema:($=(C=H.strictSchema)!==null&&C!==void 0?C:Be)!==null&&$!==void 0?$:!0,strictNumbers:(V=(j=H.strictNumbers)!==null&&j!==void 0?j:Be)!==null&&V!==void 0?V:!0,strictTypes:(ae=(J=H.strictTypes)!==null&&J!==void 0?J:Be)!==null&&ae!==void 0?ae:"log",strictTuples:(F=(D=H.strictTuples)!==null&&D!==void 0?D:Be)!==null&&F!==void 0?F:"log",strictRequired:(te=(X=H.strictRequired)!==null&&X!==void 0?X:Be)!==null&&te!==void 0?te:!1,code:H.code?{...H.code,optimize:d,regExp:m}:{optimize:d,regExp:m},loopRequired:(ge=H.loopRequired)!==null&&ge!==void 0?ge:I,loopEnum:(be=H.loopEnum)!==null&&be!==void 0?be:I,meta:(q=H.meta)!==null&&q!==void 0?q:!0,messages:(ee=H.messages)!==null&&ee!==void 0?ee:!0,inlineRefs:(pe=H.inlineRefs)!==null&&pe!==void 0?pe:!0,schemaId:(ne=H.schemaId)!==null&&ne!==void 0?ne:"$id",addUsedSchema:(oe=H.addUsedSchema)!==null&&oe!==void 0?oe:!0,validateSchema:(le=H.validateSchema)!==null&&le!==void 0?le:!0,validateFormats:(ue=H.validateFormats)!==null&&ue!==void 0?ue:!0,unicodeRegExp:(fe=H.unicodeRegExp)!==null&&fe!==void 0?fe:!0,int32range:(Ee=H.int32range)!==null&&Ee!==void 0?Ee:!0,uriResolver:P}}class x{constructor(M={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,M=this.opts={...M,...v(M)};const{es5:Q,lines:z}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:w,es5:Q,lines:z}),this.logger=W(M.logger);const _=M.validateFormats;M.validateFormats=!1,this.RULES=(0,o.getRules)(),g.call(this,E,M,"NOT SUPPORTED"),g.call(this,T,M,"DEPRECATED","warn"),this._metaOpts=B.call(this),M.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),M.keywords&&G.call(this,M.keywords),typeof M.meta=="object"&&this.addMetaSchema(M.meta),O.call(this),M.validateFormats=_}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:M,meta:Q,schemaId:z}=this.opts;let _=f;z==="id"&&(_={...f},_.id=_.$id,delete _.$id),Q&&M&&this.addMetaSchema(_,_[z],!1)}defaultMeta(){const{meta:M,schemaId:Q}=this.opts;return this.opts.defaultMeta=typeof M=="object"?M[Q]||M:void 0}setDefaultUnevaluatedProperties(M){this.opts.defaultUnevaluatedProperties=M}validate(M,Q){let z;if(typeof M=="string"){if(z=this.getSchema(M),!z)throw new Error(`no schema with key or ref "${M}"`)}else z=this.compile(M);const _=z(Q);return"$async"in z||(this.errors=z.errors),_}compile(M,Q){const z=this._addSchema(M,Q);return z.validate||this._compileSchemaEnv(z)}compileAsync(M,Q){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:z}=this.opts;return _.call(this,M,Q);async function _(ae,D){await C.call(this,ae.$schema);const F=this._addSchema(ae,D);return F.validate||$.call(this,F)}async function C(ae){ae&&!this.getSchema(ae)&&await _.call(this,{$ref:ae},!0)}async function $(ae){try{return this._compileSchemaEnv(ae)}catch(D){if(!(D instanceof i.default))throw D;return j.call(this,D),await V.call(this,D.missingSchema),$.call(this,ae)}}function j({missingSchema:ae,missingRef:D}){if(this.refs[ae])throw new Error(`AnySchema ${ae} is loaded but ${D} cannot be resolved`)}async function V(ae){const D=await J.call(this,ae);this.refs[ae]||await C.call(this,D.$schema),this.refs[ae]||this.addSchema(D,ae,Q)}async function J(ae){const D=this._loading[ae];if(D)return D;try{return await(this._loading[ae]=z(ae))}finally{delete this._loading[ae]}}}addSchema(M,Q,z,_=this.opts.validateSchema){if(Array.isArray(M)){for(const $ of M)this.addSchema($,void 0,z,_);return this}let C;if(typeof M=="object"){const{schemaId:$}=this.opts;if(C=M[$],C!==void 0&&typeof C!="string")throw new Error(`schema ${$} must be string`)}return Q=(0,c.normalizeId)(Q||C),this._checkUnique(Q),this.schemas[Q]=this._addSchema(M,z,Q,_,!0),this}addMetaSchema(M,Q,z=this.opts.validateSchema){return this.addSchema(M,Q,!0,z),this}validateSchema(M,Q){if(typeof M=="boolean")return!0;let z;if(z=M.$schema,z!==void 0&&typeof z!="string")throw new Error("$schema must be a string");if(z=z||this.opts.defaultMeta||this.defaultMeta(),!z)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const _=this.validate(z,M);if(!_&&Q){const C="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(C);else throw new Error(C)}return _}getSchema(M){let Q;for(;typeof(Q=S.call(this,M))=="string";)M=Q;if(Q===void 0){const{schemaId:z}=this.opts,_=new s.SchemaEnv({schema:{},schemaId:z});if(Q=s.resolveSchema.call(this,_,M),!Q)return;this.refs[M]=Q}return Q.validate||this._compileSchemaEnv(Q)}removeSchema(M){if(M instanceof RegExp)return this._removeAllSchemas(this.schemas,M),this._removeAllSchemas(this.refs,M),this;switch(typeof M){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const Q=S.call(this,M);return typeof Q=="object"&&this._cache.delete(Q.schema),delete this.schemas[M],delete this.refs[M],this}case"object":{const Q=M;this._cache.delete(Q);let z=M[this.opts.schemaId];return z&&(z=(0,c.normalizeId)(z),delete this.schemas[z],delete this.refs[z]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(M){for(const Q of M)this.addKeyword(Q);return this}addKeyword(M,Q){let z;if(typeof M=="string")z=M,typeof Q=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),Q.keyword=z);else if(typeof M=="object"&&Q===void 0){if(Q=M,z=Q.keyword,Array.isArray(z)&&!z.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Y.call(this,z,Q),!Q)return(0,u.eachItem)(z,C=>he.call(this,C)),this;Oe.call(this,Q);const _={...Q,type:(0,l.getJSONTypes)(Q.type),schemaType:(0,l.getJSONTypes)(Q.schemaType)};return(0,u.eachItem)(z,_.type.length===0?C=>he.call(this,C,_):C=>_.type.forEach($=>he.call(this,C,_,$))),this}getKeyword(M){const Q=this.RULES.all[M];return typeof Q=="object"?Q.definition:!!Q}removeKeyword(M){const{RULES:Q}=this;delete Q.keywords[M],delete Q.all[M];for(const z of Q.rules){const _=z.rules.findIndex(C=>C.keyword===M);_>=0&&z.rules.splice(_,1)}return this}addFormat(M,Q){return typeof Q=="string"&&(Q=new RegExp(Q)),this.formats[M]=Q,this}errorsText(M=this.errors,{separator:Q=", ",dataVar:z="data"}={}){return!M||M.length===0?"No errors":M.map(_=>`${z}${_.instancePath} ${_.message}`).reduce((_,C)=>_+Q+C)}$dataMetaSchema(M,Q){const z=this.RULES.all;M=JSON.parse(JSON.stringify(M));for(const _ of Q){const C=_.split("/").slice(1);let $=M;for(const j of C)$=$[j];for(const j in z){const V=z[j];if(typeof V!="object")continue;const{$data:J}=V.definition,ae=$[j];J&&ae&&($[j]=Te(ae))}}return M}_removeAllSchemas(M,Q){for(const z in M){const _=M[z];(!Q||Q.test(z))&&(typeof _=="string"?delete M[z]:_&&!_.meta&&(this._cache.delete(_.schema),delete M[z]))}}_addSchema(M,Q,z,_=this.opts.validateSchema,C=this.opts.addUsedSchema){let $;const{schemaId:j}=this.opts;if(typeof M=="object")$=M[j];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof M!="boolean")throw new Error("schema must be object or boolean")}let V=this._cache.get(M);if(V!==void 0)return V;z=(0,c.normalizeId)($||z);const J=c.getSchemaRefs.call(this,M,z);return V=new s.SchemaEnv({schema:M,schemaId:j,meta:Q,baseId:z,localRefs:J}),this._cache.set(V.schema,V),C&&!z.startsWith("#")&&(z&&this._checkUnique(z),this.refs[z]=V),_&&this.validateSchema(M,!0),V}_checkUnique(M){if(this.schemas[M]||this.refs[M])throw new Error(`schema with key or id "${M}" already exists`)}_compileSchemaEnv(M){if(M.meta?this._compileMetaSchema(M):s.compileSchema.call(this,M),!M.validate)throw new Error("ajv implementation error");return M.validate}_compileMetaSchema(M){const Q=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,M)}finally{this.opts=Q}}}x.ValidationError=n.default,x.MissingRefError=i.default,e.default=x;function g(H,M,Q,z="error"){for(const _ in H){const C=_;C in M&&this.logger[z](`${Q}: option ${_}. ${H[C]}`)}}function S(H){return H=(0,c.normalizeId)(H),this.schemas[H]||this.refs[H]}function O(){const H=this.opts.schemas;if(H)if(Array.isArray(H))this.addSchema(H);else for(const M in H)this.addSchema(H[M],M)}function k(){for(const H in this.opts.formats){const M=this.opts.formats[H];M&&this.addFormat(H,M)}}function G(H){if(Array.isArray(H)){this.addVocabulary(H);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const M in H){const Q=H[M];Q.keyword||(Q.keyword=M),this.addKeyword(Q)}}function B(){const H={...this.opts};for(const M of b)delete H[M];return H}const K={log(){},warn(){},error(){}};function W(H){if(H===!1)return K;if(H===void 0)return console;if(H.log&&H.warn&&H.error)return H;throw new Error("logger must implement log, warn and error methods")}const U=/^[a-z_$][a-z0-9_$:-]*$/i;function Y(H,M){const{RULES:Q}=this;if((0,u.eachItem)(H,z=>{if(Q.keywords[z])throw new Error(`Keyword ${z} is already defined`);if(!U.test(z))throw new Error(`Keyword ${z} has invalid name`)}),!!M&&M.$data&&!("code"in M||"validate"in M))throw new Error('$data keyword must have "code" or "validate" function')}function he(H,M,Q){var z;const _=M?.post;if(Q&&_)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:C}=this;let $=_?C.post:C.rules.find(({type:V})=>V===Q);if($||($={type:Q,rules:[]},C.rules.push($)),C.keywords[H]=!0,!M)return;const j={keyword:H,definition:{...M,type:(0,l.getJSONTypes)(M.type),schemaType:(0,l.getJSONTypes)(M.schemaType)}};M.before?we.call(this,$,j,M.before):$.rules.push(j),C.all[H]=j,(z=M.implements)===null||z===void 0||z.forEach(V=>this.addKeyword(V))}function we(H,M,Q){const z=H.rules.findIndex(_=>_.keyword===Q);z>=0?H.rules.splice(z,0,M):(H.rules.push(M),this.logger.warn(`rule ${Q} is not defined`))}function Oe(H){let{metaSchema:M}=H;M!==void 0&&(H.$data&&this.opts.$data&&(M=Te(M)),H.validateSchema=this.compile(M,!0))}const de={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Te(H){return{anyOf:[H,de]}}})(Lo)),Lo}var qn={},Cn={},jn={},Bc;function TE(){if(Bc)return jn;Bc=1,Object.defineProperty(jn,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return jn.default=e,jn}var Gt={},zc;function Eo(){if(zc)return Gt;zc=1,Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.callRef=Gt.getValidate=void 0;const e=Nr(),t=Pt(),r=Pe(),n=pt(),i=So(),o=ke(),s={keyword:"$ref",schemaType:"string",code(l){const{gen:u,schema:f,it:y}=l,{baseId:h,schemaEnv:b,validateName:w,opts:E,self:T}=y,{root:I}=b;if((f==="#"||f==="#/")&&h===I.baseId)return x();const v=i.resolveRef.call(T,I,h,f);if(v===void 0)throw new e.default(y.opts.uriResolver,h,f);if(v instanceof i.SchemaEnv)return g(v);return S(v);function x(){if(b===I)return c(l,w,b,b.$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}),G=u.name("valid"),B=l.subschema({schema:O,dataTypes:[],schemaPath:r.nil,topSchemaRef:k,errSchemaPath:f},G,y.isAllOfVariant);l.mergeEvaluated(B),l.ok(G)}}};function a(l,u){const{gen:f}=l;return u.validate?f.scopeValue("validate",{ref:u.validate}):(0,r._)`${f.scopeValue("wrapper",{ref:u})}.validate`}Gt.getValidate=a;function c(l,u,f,y){const{gen:h,it:b}=l,{allErrors:w,schemaEnv:E,opts:T}=b,I=T.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),w||h.assign(O,!0)},k=>{h.if((0,r._)`!(${k} instanceof ${b.ValidationError})`,()=>h.throw(k)),g(k),w||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(!b.opts.unevaluated)return;const G=(k=f?.validate)===null||k===void 0?void 0:k.evaluated;if(b.props!==!0)if(G&&!G.dynamicProps)G.props!==void 0&&(b.props=o.mergeEvaluated.props(h,G.props,b.props));else{const B=h.var("props",(0,r._)`${O}.evaluated.props`);b.props=o.mergeEvaluated.props(h,B,b.props,r.Name)}if(b.items!==!0)if(G&&!G.dynamicItems)G.items!==void 0&&(b.items=o.mergeEvaluated.items(h,G.items,b.items));else{const B=h.var("items",(0,r._)`${O}.evaluated.items`);b.items=o.mergeEvaluated.items(h,B,b.items,r.Name)}}}return Gt.callRef=c,Gt.default=s,Gt}var Vc;function $d(){if(Vc)return Cn;Vc=1,Object.defineProperty(Cn,"__esModule",{value:!0});const e=TE(),t=Eo(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Cn.default=r,Cn}var Mn={},Ln={},Kc;function PE(){if(Kc)return Ln;Kc=1,Object.defineProperty(Ln,"__esModule",{value:!0});const e=Pe(),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 Ln.default=i,Ln}var Un={},Hc;function OE(){if(Hc)return Un;Hc=1,Object.defineProperty(Un,"__esModule",{value:!0});const e=Pe(),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 Un.default=r,Un}var Fn={},Bn={},Gc;function IE(){if(Gc)return Bn;Gc=1,Object.defineProperty(Bn,"__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 Bn.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Bn}var Yc;function _E(){if(Yc)return Fn;Yc=1,Object.defineProperty(Fn,"__esModule",{value:!0});const e=Pe(),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,f=l.opts.unicode===!1?(0,e._)`${a}.length`:(0,e._)`${(0,t.useFunc)(o.gen,r.default)}(${a})`;o.fail$data((0,e._)`${f} ${u} ${c}`)}};return Fn.default=i,Fn}var zn={},Qc;function AE(){if(Qc)return zn;Qc=1,Object.defineProperty(zn,"__esModule",{value:!0});const e=Pt(),t=ke(),r=Pe(),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:f}=o,y=f.opts.unicodeRegExp?"u":"";if(c){const{regExp:h}=f.opts.code,b=h.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(s,h),w=s.let("valid");s.try(()=>s.assign(w,(0,r._)`${b}(${u}, ${y}).test(${a})`),()=>s.assign(w,!1)),o.fail$data((0,r._)`!${w}`)}else{const h=(0,e.usePattern)(o,l);o.fail$data((0,r._)`!${h}.test(${a})`)}}};return zn.default=i,zn}var Vn={},Wc;function RE(){if(Wc)return Vn;Wc=1,Object.defineProperty(Vn,"__esModule",{value:!0});const e=Pe(),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 Vn.default=r,Vn}var Kn={},Jc;function $E(){if(Jc)return Kn;Jc=1,Object.defineProperty(Kn,"__esModule",{value:!0});const e=Pt(),t=Ad(),r=Pe(),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:f,it:y}=s,{opts:h}=y;if(!f&&c.length===0)return;const b=c.length>=h.loopRequired;if(y.allErrors?w():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 w(){var v;if(b||f)s.block$data(r.nil,T);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(b||f){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 T(){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 Kn.default=o,Kn}var Hn={},Xc;function NE(){if(Xc)return Hn;Xc=1,Object.defineProperty(Hn,"__esModule",{value:!0});const e=Pe(),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 Hn.default=n,Hn}var Gn={},Zc;function kE(){if(Zc)return Gn;Zc=1,Object.defineProperty(Gn,"__esModule",{value:!0});const e=Pe(),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 Gn.default=n,Gn}var Yn={},ep;function DE(){if(ep)return Yn;ep=1,Object.defineProperty(Yn,"__esModule",{value:!0});const e=Pe(),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 Yn.default=r,Yn}var Qn={},Wn={},tp;function Sa(){if(tp)return Wn;tp=1,Object.defineProperty(Wn,"__esModule",{value:!0});const e=Z.requireFastDeepEqual();return e.code='require("ajv/dist/runtime/equal").default',Wn.default=e,Wn}var rp;function qE(){if(rp)return Qn;rp=1,Object.defineProperty(Qn,"__esModule",{value:!0});const e=eo(),t=Pe(),r=ke(),n=Sa(),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:f,schemaCode:y,it:h}=s;if(!l&&!u)return;const b=a.let("valid"),w=f.items?(0,e.getSchemaTypes)(f.items):[];s.block$data(b,E,(0,t._)`${y} === false`),s.ok(b);function E(){const x=a.let("i",(0,t._)`${c}.length`),g=a.let("j");s.setParams({i:x,j:g}),a.assign(b,!0),a.if((0,t._)`${x} > 1`,()=>(T()?I:v)(x,g))}function T(){return w.length>0&&!w.some(x=>x==="object"||x==="array")}function I(x,g){const S=a.name("item"),O=(0,e.checkDataTypes)(w,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`),w.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(b,!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(b,!1).break(O)})))}}};return Qn.default=o,Qn}var Jn={},np;function CE(){if(np)return Jn;np=1,Object.defineProperty(Jn,"__esModule",{value:!0});const e=Pe(),t=ke(),r=Sa(),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 Jn.default=i,Jn}var Xn={},ip;function jE(){if(ip)return Xn;ip=1,Object.defineProperty(Xn,"__esModule",{value:!0});const e=Pe(),t=ke(),r=Sa(),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:f}=o;if(!c&&l.length===0)throw new Error("enum must have non-empty array");const y=l.length>=f.opts.loopEnum;let h;const b=()=>h??(h=(0,t.useFunc)(s,r.default));let w;if(y||c)w=s.let("valid"),o.block$data(w,E);else{if(!Array.isArray(l))throw new Error("ajv implementation error");const I=s.const("vSchema",u);w=(0,e.or)(...l.map((v,x)=>T(I,x)))}o.pass(w);function E(){s.assign(w,!1),s.forOf("v",u,I=>s.if((0,e._)`${b()}(${a}, ${I})`,()=>s.assign(w,!0).break()))}function T(I,v){const x=l[v];return typeof x=="object"&&x!==null?(0,e._)`${b()}(${a}, ${I}[${v}])`:(0,e._)`${a} === ${x}`}}};return Xn.default=i,Xn}var op;function Ea(){if(op)return Mn;op=1,Object.defineProperty(Mn,"__esModule",{value:!0});const e=PE(),t=OE(),r=_E(),n=AE(),i=RE(),o=$E(),s=NE(),a=kE(),c=DE(),l=qE(),u=CE(),f=jE(),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,f.default];return Mn.default=y,Mn}var Zn={},yr={},sp;function Nd(){if(sp)return yr;sp=1,Object.defineProperty(yr,"__esModule",{value:!0}),yr.validateAdditionalItems=void 0;const e=Pe(),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:f}=o;f.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)(f,c)){const b=a.var("valid",(0,e._)`${y} <= ${s.length}`);a.if((0,e.not)(b),()=>h(b)),o.ok(b)}function h(b){a.forRange("i",s.length,y,w=>{o.subschema({keyword:u,dataProp:w,dataPropType:t.Type.Num},b),f.allErrors||a.if((0,e.not)(b),()=>a.break())})}}return yr.validateAdditionalItems=i,yr.default=n,yr}var ei={},gr={},ap;function kd(){if(ap)return gr;ap=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.validateTuple=void 0;const e=Pe(),t=ke(),r=Pt(),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:f,it:y}=o;w(l),y.opts.unevaluated&&a.length&&y.items!==!0&&(y.items=t.mergeEvaluated.items(c,a.length,y.items));const h=c.name("valid"),b=c.const("len",(0,e._)`${u}.length`);a.forEach((E,T)=>{(0,t.alwaysValidSchema)(y,E)||(c.if((0,e._)`${b} > ${T}`,()=>o.subschema({keyword:f,schemaProp:T,dataProp:T},h)),o.ok(h))});function w(E){const{opts:T,errSchemaPath:I}=y,v=a.length,x=v===E.minItems&&(v===E.maxItems||E[s]===!1);if(T.strictTuples&&!x){const g=`"${f}" is ${v}-tuple, but minItems or maxItems/${s} are not specified or different at path "${I}"`;(0,t.checkStrictMode)(y,g,T.strictTuples)}}}return gr.validateTuple=i,gr.default=n,gr}var cp;function ME(){if(cp)return ei;cp=1,Object.defineProperty(ei,"__esModule",{value:!0});const e=kd(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return ei.default=t,ei}var ti={},pp;function LE(){if(pp)return ti;pp=1,Object.defineProperty(ti,"__esModule",{value:!0});const e=Pe(),t=ke(),r=Pt(),n=Nd(),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 ti.default=o,ti}var ri={},lp;function UE(){if(lp)return ri;lp=1,Object.defineProperty(ri,"__esModule",{value:!0});const e=Pe(),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,f;const{minContains:y,maxContains:h}=a;l.opts.next?(u=y===void 0?1:y,f=h):u=1;const b=o.const("len",(0,e._)`${c}.length`);if(i.setParams({min:u,max:f}),f===void 0&&u===0){(0,t.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(f!==void 0&&u>f){(0,t.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,t.alwaysValidSchema)(l,s)){let v=(0,e._)`${b} >= ${u}`;f!==void 0&&(v=(0,e._)`${v} && ${b} <= ${f}`),i.pass(v);return}l.items=!0;const w=o.name("valid");f===void 0&&u===1?T(w,()=>o.if(w,()=>o.break())):u===0?(o.let(w,!0),f!==void 0&&o.if((0,e._)`${c}.length > 0`,E)):(o.let(w,!1),E()),i.result(w,()=>i.reset());function E(){const v=o.name("_valid"),x=o.let("count",0);T(v,()=>o.if(v,()=>I(x)))}function T(v,x){o.forRange("i",0,b,g=>{i.subschema({keyword:"contains",dataProp:g,dataPropType:t.Type.Num,compositeRule:!0},v),x()})}function I(v){o.code((0,e._)`${v}++`),f===void 0?o.if((0,e._)`${v} >= ${u}`,()=>o.assign(w,!0).break()):(o.if((0,e._)`${v} > ${f}`,()=>o.assign(w,!1).break()),u===1?o.assign(w,!0):o.if((0,e._)`${v} >= ${u}`,()=>o.assign(w,!0)))}}};return ri.default=n,ri}var Go={},up;function xa(){return up||(up=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Pe(),r=ke(),n=Pt();e.error={message:({params:{property:c,depsCount:l,deps:u}})=>{const f=l===1?"property":"properties";return(0,t.str)`must have ${f} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:l,deps:u,missingProperty:f}})=>(0,t._)`{property: ${c},
1
+ "use strict";const Z=require("./replay-index-Nz5obVS5.js"),A=require("./replay-resolve-BueEsOnR.js");var Dt=typeof document<"u"?document.currentScript:null;function zt(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--&&zt(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)||!zt(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function _r(e){return Z.isPlainObject(e)&&Object.keys(e).length===0}function Zr(e){return Array.isArray(e)&&e.length>0}function et(e){return typeof e=="string"}function la(e){return e?Object.keys(e):[]}function sh(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 Ki={exports:{}},ah=Ki.exports,nc;function ch(){return nc||(nc=1,(function(e,t){(function(r,n){typeof sh=="function"?e.exports=n():r.pluralize=n()})(ah,function(){var r=[],n=[],i={},o={},s={};function a(w){return typeof w=="string"?new RegExp("^"+w+"$","i"):w}function c(w,x){return w===x?x:w===w.toLowerCase()?x.toLowerCase():w===w.toUpperCase()?x.toUpperCase():w[0]===w[0].toUpperCase()?x.charAt(0).toUpperCase()+x.substr(1).toLowerCase():x.toLowerCase()}function l(w,x){return w.replace(/\$(\d{1,2})/g,function(T,E){return x[E]||""})}function u(w,x){return w.replace(x[0],function(T,E){var v=l(x[1],arguments);return c(T===""?w[E-1]:T,v)})}function f(w,x,T){if(!w.length||i.hasOwnProperty(w))return x;for(var E=T.length;E--;){var v=T[E];if(v[0].test(x))return u(x,v)}return x}function h(w,x,T){return function(E){var v=E.toLowerCase();return x.hasOwnProperty(v)?c(E,v):w.hasOwnProperty(v)?c(E,w[v]):f(v,E,T)}}function y(w,x,T,E){return function(v){var P=v.toLowerCase();return x.hasOwnProperty(P)?!0:w.hasOwnProperty(P)?!1:f(P,P,T)===P}}function b(w,x,T){var E=x===1?b.singular(w):b.plural(w);return(T?x+" ":"")+E}return b.plural=h(s,o,r),b.isPlural=y(s,o,r),b.singular=h(o,s,n),b.isSingular=y(o,s,n),b.addPluralRule=function(w,x){r.push([a(w),x])},b.addSingularRule=function(w,x){n.push([a(w),x])},b.addUncountableRule=function(w){if(typeof w=="string"){i[w.toLowerCase()]=!0;return}b.addPluralRule(w,"$0"),b.addSingularRule(w,"$0")},b.addIrregularRule=function(w,x){x=x.toLowerCase(),w=w.toLowerCase(),s[w]=x,o[x]=w},[["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(w){return b.addIrregularRule(w[0],w[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(w){return b.addPluralRule(w[0],w[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(w){return b.addSingularRule(w[0],w[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(b.addUncountableRule),b})})(Ki)),Ki.exports}var ph=ch();const Ru=Z.getDefaultExportFromCjs(ph);function lh(e,t,r){return e.split(" ").map(n=>Ru(n,t,r)).join(" ")}function $u(e){return/^\\\\\?\\/.test(e)?e:e.replace(/\\/g,"/")}function Jr(e){const t=e.match(/^\/(.*)\/(.*)|(.*)/);return t&&new RegExp(t[1]||t[3],t[2])}const uh=/^[0-9][0-9Xx]{2}$/,dh={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-"},fh={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-"},mh={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}}},hh={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},yh={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},gh={extensionsPrefix:"x-",properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},vh={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},bh={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-"},wh={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},Sh={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},Eh={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},xh={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-"},Th={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-"},Ph={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>uh.test(t)?"Response":void 0},Oh={properties:{description:{type:"string"},schema:"Schema",headers:A.mapOf("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},Ih={properties:{},additionalProperties:{isExample:!0}},_h={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 Z.isPlainObject(e)&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},Ah={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},Rh={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},$h={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)?A.listOf("Schema"):"Schema",allOf:A.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-"},Nh={properties:{},additionalProperties:{type:"string"}},kh={properties:{},additionalProperties:"Schema"},Dh={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},qh={extensionsPrefix:"x-",properties:{},additionalProperties:{type:"string"}},jh={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-"},Ch={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Mh={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},Nu={Root:dh,Tag:Ah,TagList:A.listOf("Tag"),TagGroups:A.listOf("TagGroup"),TagGroup:Rh,ExternalDocs:Eh,Example:Mh,ExamplesMap:A.mapOf("Example"),EnumDescriptions:Nh,SecurityRequirement:Ch,SecurityRequirementList:A.listOf("SecurityRequirement"),Info:fh,Contact:hh,License:yh,Logo:mh,Paths:gh,PathItem:vh,Parameter:xh,ParameterItems:Th,ParameterList:A.listOf("Parameter"),Operation:bh,Examples:Ih,Header:_h,Responses:Ph,Response:Oh,Schema:$h,Xml:Dh,SchemaProperties:kh,NamedSchemas:A.mapOf("Schema"),NamedResponses:A.mapOf("Response"),NamedParameters:A.mapOf("Parameter"),NamedSecuritySchemes:A.mapOf("SecurityScheme"),SecurityScheme:jh,Scopes:qh,XCodeSample:wh,XCodeSampleList:A.listOf("XCodeSample"),XServerList:A.listOf("XServer"),XServer:Sh},Lh=/^[0-9][0-9Xx]{2}$/,Uh={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."},Fh={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."},Bh={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"},zh={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."},Kh={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."},Hh={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."},Gh={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"},Yh={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."},Qh={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."},Wh={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."},Jh={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"},Xh={properties:{},additionalProperties:()=>"PathItem",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/webhooks#types"},Zh={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"},ey={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"},ty={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"},ry={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."},ny={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."},iy={properties:{},additionalProperties:"MediaType",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type#types"},oy={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"},sy={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"},ay={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"},cy={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"},py={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."},ly={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>Lh.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"},uy={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."},dy={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."},ua="Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema.",ku=A.listOf("Schema",{name:"AllOf",description:ua}),Du=A.listOf("Schema",{name:"AnyOf",description:ua}),qu=A.listOf("Schema",{name:"OneOf",description:ua}),fy={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:ku,anyOf:Du,oneOf:qu,not:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?A.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"},my={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."},hy={properties:{},additionalProperties:"Schema"},yy={properties:{},additionalProperties:e=>typeof e=="string"&&A.isMappingRef(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#types"},gy={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."},vy={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"},by={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."},wy={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."},Sy={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."},Ey={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."},xy={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-",description:"Configuration details for a supported OAuth Flow."},Ty={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-"},Py={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"},Tt={Root:Uh,Tag:Fh,TagList:A.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:A.listOf("TagGroup"),TagGroup:Bh,ExternalDocs:zh,Server:Vh,ServerList:A.listOf("Server",{description:"A list of servers available to the API.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/servers#servers"}),ServerVariable:Kh,ServerVariablesMap:A.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:Hh,SecurityRequirementList:A.listOf("SecurityRequirement"),Info:Gh,Contact:Qh,License:Wh,Paths:Jh,PathItem:Zh,Parameter:ey,ParameterList:A.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:ty,Callback:A.mapOf("PathItem",{extensionsPrefix:"x-",description:"https://redocly.com/learn/openapi/openapi-visual-reference/callbacks#callback-object"}),CallbacksMap:A.mapOf("Callback"),RequestBody:ny,MediaTypesMap:iy,MediaType:oy,Example:sy,ExamplesMap:A.mapOf("Example"),Encoding:ay,EncodingMap:A.mapOf("Encoding"),EnumDescriptions:cy,Header:py,HeadersMap:A.mapOf("Header"),Responses:ly,Response:uy,Link:dy,Logo:Yh,Schema:fy,AllOf:ku,AnyOf:Du,OneOf:qu,Xml:my,SchemaProperties:hy,DiscriminatorMapping:yy,Discriminator:gy,Components:vy,LinksMap:A.mapOf("Link"),NamedSchemas:A.mapOf("Schema"),NamedResponses:A.mapOf("Response"),NamedParameters:A.mapOf("Parameter"),NamedExamples:A.mapOf("Example"),NamedRequestBodies:A.mapOf("RequestBody"),NamedHeaders:A.mapOf("Header"),NamedSecuritySchemes:A.mapOf("SecurityScheme"),NamedLinks:A.mapOf("Link"),NamedCallbacks:A.mapOf("Callback"),ImplicitFlow:by,PasswordFlow:wy,ClientCredentials:Sy,AuthorizationCode:Ey,OAuth2Flows:xy,SecurityScheme:Ty,XCodeSample:ry,XCodeSampleList:A.listOf("XCodeSample"),XUsePkce:Py,WebhooksMap:Xh},Oy={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."},Iy={...Tt.License,properties:{...Tt.License.properties,identifier:{type:"string",description:"An [SPDX-Licenses] expression for the API. The identifier field is mutually exclusive of the url field."}}},_y={...Tt.Info,properties:{...Tt.Info.properties,summary:{type:"string",description:"A short summary of the API. This field MAY be used by tooling as required."}}},Ay={...Tt.Components,properties:{...Tt.Components.properties,pathItems:"NamedPathItems"}},Ry={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."},$y={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:A.listOf("Schema",{name:"AllOf"}),anyOf:A.listOf("Schema",{name:"AnyOf"}),oneOf:A.listOf("Schema",{name:"OneOf"}),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:A.mapOf("Schema"),dependentRequired:"DependentRequired",prefixItems:A.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-"},ic={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},Ny={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-"},ky={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},De={...Tt,Info:_y,Root:Oy,Schema:$y,SchemaProperties:ic,PatternProperties:ic,License:Iy,Components:Ay,NamedPathItems:A.mapOf("PathItem"),SecurityScheme:Ny,Operation:Ry,DependentRequired:ky},Dy={...De.Root,properties:{...De.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."}}},qy={...De.Tag,properties:{...De.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."},jy={...De.Server,properties:{...De.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."},Cy={...De.SecurityScheme,properties:{...De.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."},My={...De.OAuth2Flows,properties:{...De.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},Ly={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:A.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."},Uy={...Tt.PathItem,properties:{...Tt.PathItem.properties,query:"Operation",additionalOperations:A.mapOf("Operation")}},Fy={...De.Parameter,properties:{...De.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"]}}},By={...De.Response,properties:{...De.Response.properties,summary:{type:"string",description:"A short summary of the meaning of the response."}}},zy={...De.MediaType,properties:{...De.MediaType.properties,itemSchema:"Schema",prefixEncoding:A.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={...De.Discriminator,properties:{...De.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 A.isMappingRef(e)?{type:"string",directResolveAs:"Schema",description:t}:{type:"string",description:t}}}},Ky={extensionsPrefix:"x-",properties:{...De.Components.properties,mediaTypes:"NamedMediaTypes"}},Hy={...De.Example,properties:{...De.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."}}},Gy={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."},Yy={...De.Schema,properties:{...De.Schema.properties,xml:"Xml"}},Ze={...De,Root:Dy,Tag:qy,Server:jy,SecurityScheme:Cy,OAuth2Flows:My,DeviceAuthorization:Ly,PathItem:Uy,Parameter:Fy,Response:By,MediaType:zy,Discriminator:Vy,Example:Hy,Xml:Gy,Schema:Yy,Components:Ky,NamedMediaTypes:A.mapOf("MediaTypesMap")},Qy={properties:{},description:"Protocol-specific information for an HTTP channel."},Wy={properties:{},description:"Protocol-specific information for an HTTP server."},Jy={properties:{headers:"Schema",statusCode:{type:"number"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP message, i.e., a request or a response."},Xy={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."},Zy={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a WebSockets channel."},eg={properties:{},description:"Protocol-specific information for a WebSockets server."},tg={properties:{},description:"Protocol-specific information for a WebSockets message."},rg={properties:{},description:"Protocol-specific information for a WebSockets operation."},ng={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"}}},ig={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka channel."},og={properties:{schemaRegistryUrl:{type:"string"},schemaRegistryVendor:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka server."},sg={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka message."},ag={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka operation."},cg={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ channel."},pg={properties:{},description:"Protocol-specific information for an Anypoint MQ server."},lg={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ message."},ug={properties:{},description:"Protocol-specific information for an Anypoint MQ operation."},dg={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."},fg={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."},mg={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."},hg={properties:{},description:"Protocol-specific information for an AMQP 0-9-1 server."},yg={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 message."},gg={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."},vg={properties:{},description:"Protocol-specific information for an AMQP 1.0 channel."},bg={properties:{},description:"Protocol-specific information for an AMQP 1.0 server."},wg={properties:{},description:"Protocol-specific information for an AMQP 1.0 message."},Sg={properties:{},description:"Protocol-specific information for an AMQP 1.0 operation."},Eg={properties:{},description:"Protocol-specific information for an MQTT channel."},xg={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},Tg={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},sessionExpiryInterval:e=>Z.isPlainObject(e)?"Schema":{type:"integer"},maximumPacketSize:e=>Z.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT server."},Pg={properties:{payloadFormatIndicator:{type:"integer"},correlationData:"Schema",contentType:{type:"string"},responseTopic:e=>Z.isPlainObject(e)?"Schema":{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT message."},Og={properties:{qos:{type:"integer"},retain:{type:"boolean"},messageExpiryInterval:e=>Z.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT operation."},Ig={properties:{},description:"Protocol-specific information for an MQTT 5 channel."},_g={properties:{sessionExpiryInterval:e=>Z.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT 5 server."},Ag={properties:{},description:"Protocol-specific information for an MQTT 5 message."},Rg={properties:{},description:"Protocol-specific information for an MQTT 5 operation."},$g={properties:{},description:"Protocol-specific information for a NATS channel."},Ng={properties:{},description:"Protocol-specific information for a NATS server."},kg={properties:{},description:"Protocol-specific information for a NATS message."},Dg={properties:{queue:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a NATS operation."},qg={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS channel."},jg={properties:{name:{type:"string"},value:{}},required:["name","value"],description:"A name-value pair to set on the JMS ConnectionFactory implementation."},Cg={properties:{jmsConnectionFactory:{type:"string"},properties:A.listOf("JmsServerBindingProperty"),clientID:{type:"string"},bindingVersion:{type:"string"}},required:["jmsConnectionFactory"],description:"Protocol-specific information for a JMS server."},Mg={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS message."},Lg={properties:{},description:"Protocol-specific information for a JMS operation."},Ug={properties:{},description:"Protocol-specific information for a Solace channel."},Fg={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"},clientName:{type:"string"}},description:"Protocol-specific information for a Solace server."},Bg={properties:{},description:"Protocol-specific information for a Solace message."},zg={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:A.listOf("SolaceDestination"),dmqEligible:{type:"boolean"},priority:{type:"integer",minimum:0},timeToLive:{type:"integer"}},description:"Protocol-specific information for a Solace operation."},Kg={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."},Hg={properties:{type:{type:"string",enum:["standard","FIFO"]},contentBasedDeduplication:{type:"boolean"}},required:["type"],description:"Defines the ordering and deduplication properties of an SNS topic."},Gg={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SNS access-policy statement."},Yg={properties:{statements:A.listOf("SnsStatement")},required:["statements"],description:"The security policy for an SNS topic."},Qg={properties:{name:{type:"string"},ordering:"SnsOrdering",policy:"SnsPolicy",tags:{type:"object"},bindingVersion:{type:"string"}},required:["name"],description:"Protocol-specific information for an SNS channel."},Wg={properties:{deadLetterQueue:"SnsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SNS messages are moved."},Jg={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."},Xg={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."},Zg={properties:{topic:"SnsIdentifier",consumers:A.listOf("SnsConsumer"),deliveryPolicy:"SnsDeliveryPolicy",bindingVersion:{type:"string"}},required:["consumers"],description:"Protocol-specific information for an SNS operation."},ev={properties:{arn:{type:"string"},name:{type:"string"}},description:"Identifies an SQS queue: exactly one of arn or name."},tv={properties:{deadLetterQueue:"SqsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SQS messages are moved."},rv={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SQS access-policy statement."},nv={properties:{statements:A.listOf("SqsStatement")},required:["statements"],description:"The security policy for an SQS queue."},ju={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)."},iv={...ju,required:["name"],description:"Describes an SQS queue (operation-level definition)."},ov={properties:{queue:"SqsQueue",deadLetterQueue:"SqsQueue",bindingVersion:{type:"string"}},required:["queue"],description:"Protocol-specific information for an SQS channel."},sv={properties:{queues:A.listOf("SqsOperationQueue"),bindingVersion:{type:"string"}},required:["queues"],description:"Protocol-specific information for an SQS operation."},av={properties:{},description:"Protocol-specific information for a STOMP channel."},cv={properties:{},description:"Protocol-specific information for a STOMP server."},pv={properties:{},description:"Protocol-specific information for a STOMP message."},lv={properties:{},description:"Protocol-specific information for a STOMP operation."},uv={properties:{},description:"Protocol-specific information for a Redis channel."},dv={properties:{},description:"Protocol-specific information for a Redis server."},fv={properties:{},description:"Protocol-specific information for a Redis message."},mv={properties:{},description:"Protocol-specific information for a Redis operation."},hv={properties:{},description:"Protocol-specific information for a Mercure channel."},yv={properties:{},description:"Protocol-specific information for a Mercure server."},gv={properties:{},description:"Protocol-specific information for a Mercure message."},vv={properties:{},description:"Protocol-specific information for a Mercure operation."},bv={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."},wv={properties:{objectName:{type:"string"},isPartitioned:{type:"boolean"},exclusive:{type:"boolean"}},required:["objectName"],description:"Defines the properties of an IBM MQ queue."},Sv={properties:{string:{type:"string"},objectName:{type:"string"},durablePermitted:{type:"boolean"},lastMsgRetained:{type:"boolean"}},description:"Defines the properties of an IBM MQ topic."},Ev={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."},xv={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."},Tv={properties:{allowedPersistenceRegions:{type:"array",items:{type:"string"}}},description:"Policy constraining the regions where Google Cloud Pub/Sub messages are stored."},Pv={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."},Ov={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."},Iv={properties:{name:{type:"string"},type:{type:"string"}},required:["name"],description:"Identifies the Google Cloud Pub/Sub schema a message is validated against."},_v={properties:{attributes:{type:"object"},orderingKey:{type:"string"},schema:"GooglepubsubSchema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub message."},Av={properties:{tenant:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Pulsar server."},Rv={properties:{time:{type:"integer"},size:{type:"integer"}},description:"The retention policy of a Pulsar topic."},$v={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."},Nv={properties:{rmwImplementation:{type:"string"},domainId:{type:"integer",minimum:0}},description:"Protocol-specific information for a ROS 2 server."},kv={properties:{},description:"Protocol-specific information for a ROS 2 channel."},Dv={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."},qv={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."},jv={properties:{},description:"Protocol-specific information for a ROS 2 message."},Cv={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."},Mv={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."},Lv={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."},Uv={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."},$t={HttpServerBinding:Wy,HttpChannelBinding:Qy,HttpMessageBinding:Jy,HttpOperationBinding:Xy,WsServerBinding:eg,WsChannelBinding:Zy,WsMessageBinding:tg,WsOperationBinding:rg,KafkaServerBinding:og,KafkaTopicConfiguration:ng,KafkaChannelBinding:ig,KafkaMessageBinding:sg,KafkaOperationBinding:ag,AnypointmqServerBinding:pg,AnypointmqChannelBinding:cg,AnypointmqMessageBinding:lg,AnypointmqOperationBinding:ug,AmqpServerBinding:hg,AmqpChannelExchange:dg,AmqpChannelQueue:fg,AmqpChannelBinding:mg,AmqpMessageBinding:yg,AmqpOperationBinding:gg,Amqp1ServerBinding:bg,Amqp1ChannelBinding:vg,Amqp1MessageBinding:wg,Amqp1OperationBinding:Sg,MqttServerBindingLastWill:xg,MqttServerBinding:Tg,MqttChannelBinding:Eg,MqttMessageBinding:Pg,MqttOperationBinding:Og,Mqtt5ServerBinding:_g,Mqtt5ChannelBinding:Ig,Mqtt5MessageBinding:Ag,Mqtt5OperationBinding:Rg,NatsServerBinding:Ng,NatsChannelBinding:$g,NatsMessageBinding:kg,NatsOperationBinding:Dg,JmsServerBindingProperty:jg,JmsServerBinding:Cg,JmsChannelBinding:qg,JmsMessageBinding:Mg,JmsOperationBinding:Lg,SolaceServerBinding:Fg,SolaceChannelBinding:Ug,SolaceMessageBinding:Bg,SolaceDestination:zg,SolaceOperationBinding:Vg,StompServerBinding:cv,StompChannelBinding:av,StompMessageBinding:pv,StompOperationBinding:lv,RedisServerBinding:dv,RedisChannelBinding:uv,RedisMessageBinding:fv,RedisOperationBinding:mv,MercureServerBinding:yv,MercureChannelBinding:hv,MercureMessageBinding:gv,MercureOperationBinding:vv,SnsIdentifier:Kg,SnsOrdering:Hg,SnsStatement:Gg,SnsPolicy:Yg,SnsChannelBinding:Qg,SnsRedrivePolicy:Wg,SnsDeliveryPolicy:Jg,SnsConsumer:Xg,SnsOperationBinding:Zg,SqsIdentifier:ev,SqsRedrivePolicy:tv,SqsStatement:rv,SqsPolicy:nv,SqsQueue:ju,SqsOperationQueue:iv,SqsChannelBinding:ov,SqsOperationBinding:sv,IbmmqServerBinding:bv,IbmmqChannelQueue:wv,IbmmqChannelTopic:Sv,IbmmqChannelBinding:Ev,IbmmqMessageBinding:xv,GooglepubsubMessageStoragePolicy:Tv,GooglepubsubSchemaSettings:Pv,GooglepubsubChannelBinding:Ov,GooglepubsubSchema:Iv,GooglepubsubMessageBinding:_v,PulsarServerBinding:Av,PulsarRetention:Rv,PulsarChannelBinding:$v,ServerBindings:Cv,ChannelBindings:Mv,MessageBindings:Uv,OperationBindings:Lv},Fv={Ros2ServerBinding:Nv,Ros2ChannelBinding:kv,Ros2OperationBinding:qv,Ros2QosPolicies:Dv,Ros2MessageBinding:jv},da={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:A.listOf("Schema"),anyOf:A.listOf("Schema"),oneOf:A.listOf("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?A.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"}},fa={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},ma={properties:{},additionalProperties:e=>Array.isArray(e)?{type:"array",items:{type:"string"}}:"Schema"},ha={properties:{},additionalProperties:e=>typeof e=="string"&&A.isMappingRef(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},ya={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]},Bv={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"]},zv={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"},Cu={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."},Mu={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."},Kv={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."},Hv={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."},Lu={properties:{},additionalProperties:(e,t)=>t.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},Uu={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."},Gv={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."},Fu={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."},Bu={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."},Yv={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."},zu={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."},Qv={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."},Wv={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."},Jv={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."},Xv={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."},Vu={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."},Zv={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"}},eb={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."},tb={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."},rb={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."},nb={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."},Ku={extensionsPrefix:"x-",properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},ib={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."},Hu={...$t,Root:Bv,Tag:Cu,TagList:A.listOf("Tag"),ServerMap:Lu,ExternalDocs:Mu,Server:Hv,ServerVariable:Uu,ServerVariablesMap:A.mapOf("ServerVariable"),SecurityRequirement:Kv,SecurityRequirementList:A.listOf("SecurityRequirement"),Info:Gv,Contact:Fu,License:Bu,ChannelMap:Vv,Channel:zv,Parameter:Yv,ParametersMap:A.mapOf("Parameter"),Operation:Xv,Schema:da,MessageExample:Vu,SchemaProperties:fa,DiscriminatorMapping:ha,Discriminator:ya,Components:Zv,NamedSchemas:A.mapOf("Schema"),NamedMessages:A.mapOf("Message"),NamedMessageTraits:A.mapOf("MessageTrait"),NamedOperationTraits:A.mapOf("OperationTrait"),NamedParameters:A.mapOf("Parameter"),NamedSecuritySchemes:A.mapOf("SecurityScheme"),NamedCorrelationIds:A.mapOf("CorrelationId"),ImplicitFlow:eb,PasswordFlow:tb,ClientCredentials:rb,AuthorizationCode:nb,SecuritySchemeFlows:Ku,SecurityScheme:ib,Message:Qv,OperationTrait:Wv,OperationTraitList:A.listOf("OperationTrait"),MessageTrait:Jv,MessageTraitList:A.listOf("MessageTrait"),MessageExampleList:A.listOf("MessageExample"),CorrelationId:zu,Dependencies:ma},ob={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."},sb={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."},ab={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."},cb={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."},pb={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."},lb={extensionsPrefix:"x-",properties:{headers:e=>Z.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"Schema",payload:e=>Z.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"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."},ub={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."},db={extensionsPrefix:"x-",properties:{headers:e=>Z.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"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."},fb={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"]},mb={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."},hb={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."},yb={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."},gb={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."},vb={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."},bb={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."},wb={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."},Sb={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."},Eb={...$t.ServerBindings,properties:{...$t.ServerBindings.properties,ros2:"Ros2ServerBinding"}},xb={...$t.ChannelBindings,properties:{...$t.ChannelBindings.properties,ros2:"Ros2ChannelBinding"}},Tb={...$t.OperationBindings,properties:{...$t.OperationBindings.properties,ros2:"Ros2OperationBinding"}},Pb={...$t.MessageBindings,properties:{...$t.MessageBindings.properties,ros2:"Ros2MessageBinding"}},Ob={extensionsPrefix:"x-",properties:{schema:"Schema",schemaFormat:{type:"string"}},description:"Represents a schema definition. Unlike the Schema Object, it supports multiple schema formats or languages."},Ib={properties:{},additionalProperties:e=>Z.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"Schema"},Gu={...$t,...Fv,ServerBindings:Eb,ChannelBindings:xb,OperationBindings:Tb,MessageBindings:Pb,CorrelationId:zu,SecuritySchemeFlows:Ku,ServerVariable:Uu,Contact:Fu,License:Bu,MessageExample:Vu,Tag:Cu,Dependencies:ma,Schema:da,MultiFormatSchema:Ob,Discriminator:ya,DiscriminatorMapping:ha,SchemaProperties:fa,ServerMap:Lu,ExternalDocs:Mu,Root:ob,Channel:sb,Parameter:pb,Info:cb,Server:ab,MessageTrait:db,Operation:fb,OperationReply:mb,OperationReplyAddress:hb,Components:yb,ImplicitFlow:gb,PasswordFlow:vb,ClientCredentials:bb,AuthorizationCode:wb,SecurityScheme:Sb,Message:lb,OperationTrait:ub,ServerVariablesMap:A.mapOf("ServerVariable"),NamedTags:A.mapOf("Tag"),NamedExternalDocs:A.mapOf("ExternalDocs"),NamedChannels:A.mapOf("Channel"),ParametersMap:A.mapOf("Parameter"),NamedOperations:A.mapOf("Operation"),NamedOperationReplies:A.mapOf("OperationReply"),NamedOperationRelyAddresses:A.mapOf("OperationReplyAddress"),NamedSchemas:Ib,NamedMessages:A.mapOf("Message"),NamedMessageTraits:A.mapOf("MessageTrait"),NamedOperationTraits:A.mapOf("OperationTrait"),NamedParameters:A.mapOf("Parameter"),NamedSecuritySchemes:A.mapOf("SecurityScheme"),NamedCorrelationIds:A.mapOf("CorrelationId"),ServerList:A.listOf("Server"),SecuritySchemeList:A.listOf("SecurityScheme"),MessageList:A.listOf("Message"),OperationTraitList:A.listOf("OperationTrait"),MessageTraitList:A.listOf("MessageTrait"),MessageExampleList:A.listOf("MessageExample"),TagList:A.listOf("Tag")},_b={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-"},Ab={properties:{},additionalProperties:"Parameter"},Rb={properties:{},additionalProperties:"SuccessActionObject"},$b={properties:{},additionalProperties:"FailureActionObject"},Nb={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},kb=A.mapOf("Schema"),Db={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."},qb={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},jb={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."},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:["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."},Mb={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."},Lb={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."},Ub={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."},Bb=A.listOf("Workflow"),zb=A.listOf("Step"),Vb={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:A.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."},Kb={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_.-]+$."},Hb={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:A.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."},Gb={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."},Yb={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."},Qb={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."},Wb={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."},Jb={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},Xb={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},Zb={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:A.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."},e0={properties:{},items:e=>e?.type&&e?.name?"SuccessActionObject":"ReusableObject"},t0={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:A.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."},r0={properties:{},items:e=>e?.type&&e?.name?"FailureActionObject":"ReusableObject"},rt={Root:_b,Info:Db,SourceDescriptions:qb,OpenAPISourceDescription:jb,ArazzoSourceDescription:Cb,Parameters:Ub,Parameter:Lb,ReusableObject:Mb,Workflows:Bb,Workflow:Fb,Steps:zb,Step:Vb,RequestBody:Hb,Replacement:Gb,ExtendedOperation:Qb,ExtendedSecurityList:A.listOf("ExtendedSecurity"),ExtendedSecurity:Yb,Outputs:Kb,CriterionObject:Wb,XPathCriterion:Xb,JSONPathCriterion:Jb,SuccessActionObject:Zb,OnSuccessActionList:e0,FailureActionObject:t0,OnFailureActionList:r0,Schema:Ze.Schema,NamedSchemas:A.mapOf("Schema"),ExternalDocs:Ze.ExternalDocs,DiscriminatorMapping:Ze.DiscriminatorMapping,Discriminator:Ze.Discriminator,DependentRequired:Ze.DependentRequired,SchemaProperties:Ze.SchemaProperties,PatternProperties:Ze.SchemaProperties,Components:Nb,NamedInputs:kb,NamedParameters:Ab,NamedSuccessActions:Rb,NamedFailureActions:$b,Xml:Ze.Xml,SecurityScheme:Ze.SecurityScheme,OAuth2Flows:Ze.OAuth2Flows,ImplicitFlow:Ze.ImplicitFlow,PasswordFlow:Ze.PasswordFlow,ClientCredentials:Ze.ClientCredentials,AuthorizationCode:Ze.AuthorizationCode,DeviceAuthorization:Ze.DeviceAuthorization},n0={...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."}}},i0={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":e?.type==="asyncapi"?"AsyncAPISourceDescription":"ArazzoSourceDescription"},o0={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."},s0={...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.'}}},a0={...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"]},c0={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["rfc9535","draft-goessner-dispatch-jsonpath-00"]}},required:["type","version"]},p0={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-31","xpath-30","xpath-20","xpath-10"]}},required:["type","version"]},l0={properties:{type:{type:"string",enum:["jsonpointer"]},version:{type:"string",enum:["rfc6901"]}},required:["type","version"]},u0={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"]},d0=e=>e?.type==="jsonpath"?"JSONPathExpression":e?.type==="xpath"?"XPathExpression":e?.type==="jsonpointer"?"JSONPointerExpression":"ExpressionType",ga=(e,t,{optional:r=!0}={})=>n=>{if(!(r&&!n))return typeof n=="string"?{enum:e,description:t}:d0(n)},f0={...rt.CriterionObject,properties:{...rt.CriterionObject.properties,type:ga(["regex","jsonpath","simple","xpath"],"The type of condition to be applied.")}},m0={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:ga(["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."},h0={properties:{},additionalProperties:e=>Z.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_.-]+$."},y0={...rt.Replacement,properties:{...rt.Replacement.properties,value:e=>Z.isPlainObject(e)&&"selector"in e?"SelectorObject":{},targetSelectorType:ga(["jsonpath","xpath","jsonpointer"],"The type of selector used in the target field.")}},g0={...rt.SuccessActionObject,properties:{...rt.SuccessActionObject.properties,parameters:"Parameters"}},v0={...rt.FailureActionObject,properties:{...rt.FailureActionObject.properties,parameters:"Parameters"}},Yu={...rt,Root:n0,SourceDescriptions:i0,AsyncAPISourceDescription:o0,Parameter:s0,Step:a0,CriterionObject:f0,JSONPathExpression:c0,XPathExpression:p0,JSONPointerExpression:l0,ExpressionType:u0,SelectorObject:m0,Outputs:h0,Replacement:y0,SuccessActionObject:g0,FailureActionObject:v0},b0={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."},w0={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."},S0=A.listOf("Action"),E0={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"},Qu={Root:b0,Info:w0,Actions:S0,Action:E0},x0={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."},T0={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."},P0={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."},O0={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."},I0={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."},_0={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."},A0={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."},$0={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."},N0={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."},k0={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."},D0={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."},q0={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."},j0={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."},C0={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."},Wu={Root:x0,Info:T0,Contact:P0,License:O0,Server:I0,ServerList:A.listOf("Server"),ServerVariable:_0,ServerVariablesMap:A.mapOf("ServerVariable"),Method:A0,MethodList:A.listOf("Method"),ContentDescriptor:R0,ContentDescriptorList:A.listOf("ContentDescriptor"),ExamplePairing:$0,ExamplePairingList:A.listOf("ExamplePairing"),Example:N0,ExampleList:A.listOf("Example"),Link:k0,LinkList:A.listOf("Link"),ErrorObject:D0,ErrorList:A.listOf("ErrorObject"),Components:q0,Tag:j0,TagList:A.listOf("Tag"),ExternalDocs:C0,Schema:da,SchemaProperties:fa,Dependencies:ma,DiscriminatorMapping:ha,Discriminator:ya,NamedContentDescriptors:A.mapOf("ContentDescriptor"),NamedSchemas:A.mapOf("Schema"),NamedExamples:A.mapOf("Example"),NamedLinks:A.mapOf("Link"),NamedErrors:A.mapOf("ErrorObject"),NamedExamplePairingObjects:A.mapOf("ExamplePairing"),NamedTags:A.mapOf("Tag")};var Ju={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Lr={type:"object",properties:Ju,additionalProperties:!1},M0={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},dn={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:{...Ju,like:Lr,dislike:Lr,satisfied:Lr,neutral:Lr,dissatisfied:Lr},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:M0},additionalProperties:!1}},additionalProperties:!1},L0={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},va={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Fs={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},feedback:dn,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:va,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:L0,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},hr={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},U0={type:"object",properties:{name:{type:"string"},items:hr,queries:hr,mutations:hr,subscriptions:hr,types:hr,directives:hr},required:["name"],additionalProperties:!1},F0={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:U0},otherItemsGroupName:{type:"string"}}},B0={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},z0={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},V0={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:B0,license:z0},additionalProperties:!1},Wi={type:"object",properties:{menu:{type:"object",properties:{...F0.properties},additionalProperties:!1},downloadUrls:va,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:dn,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:V0},additionalProperties:!1},K0={type:"object",properties:{downloadUrls:va,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:dn,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},H0={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"]},G0={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"}}},oc={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Y0={type:"object",properties:{beforeInfo:{type:"array",items:oc},end:{type:"array",items:oc}}},or={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},An={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Q0={type:"object",properties:bo(or.properties,["light","dark"])},W0={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"}}},J0={type:"object",properties:{error:An,info:An,redirect:An,success:An}},X0={type:"object",properties:$r(or.properties,["dark"])},Z0={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},ew={type:"object",properties:{accent:or,border:Q0,error:or,http:W0,primary:or,responses:J0,secondary:X0,success:or,text:Z0,tonalOffset:{type:"number"},warning:or}},Rn={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},tw={type:"object",properties:{small:Rn,medium:Rn,large:Rn,xlarge:Rn}},Nt={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},rw={type:"object",properties:{...$r(Nt.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:tw}},sc={type:"object",properties:bo(Nt.properties,["fontSize","lineHeight"])},nw={type:"object",properties:{medium:sc,small:sc}},iw={type:"object",properties:{...$r(Nt.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:nw}},ow={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},sw={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},ac={type:"object",properties:{fullWidth:{type:"boolean"}}},aw={type:"object",properties:{buttons:rw,httpBadges:iw,layoutControls:ow,panels:sw,tryItButton:ac,tryItSendButton:ac}},Ji={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},cw={type:"object",properties:{maxWidth:Ji}},pw={type:"object",properties:{maxWidth:Ji,middlePanelMaxWidth:Ji}},lw={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:cw,"three-panel":pw}},cc={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},uw={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:cc,defaultDetailsWidth:{type:"string"},examples:cc,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},Xu={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},dw={type:"object",properties:bo(Xu.properties,["textTransform"])},fw={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},mw={type:"object",properties:{...$r(Nt.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:Xu,level1items:dw,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:fw,textColor:{type:"string"},width:{type:"string"}}},$n={type:"object",properties:{...Nt.properties,color:{type:"string"},transform:{type:"string"}}},hw={type:"object",properties:{...Nt.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"}}},yw={type:"object",properties:$r(Nt.properties,["fontSize"])},gw={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},vw={type:"object",properties:{code:hw,fieldName:Nt,...bo(Nt.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:$n,heading2:$n,heading3:$n,headings:yw,lineHeight:{type:"string"},links:gw,optimizeSpeed:{type:"boolean"},rightPanelHeading:$n,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},bw={type:"object",properties:{color:{type:"string"},...$r(Nt.properties,["fontWeight"])}},ww={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:bw}},Sw={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},Ew={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},pc={type:"object",properties:{custom:{type:"string"}}},xw={type:"object",properties:{DownloadButton:pc,NextSectionButton:pc}},Tw={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},Pw={type:"object",properties:{borderRadius:{type:"string"}}},Ow={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},Iw={type:"object",properties:{breakpoints:Ji,codeBlock:ww,colors:ew,components:aw,layout:lw,logo:Sw,fab:Ew,overrides:xw,rightPanel:Tw,schema:uw,shape:Pw,sidebar:mw,spacing:Ow,typography:vw,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},_w={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:H0}},required:["languages"]},Aw={properties:{theme:Iw,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:_w,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:G0,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:Y0,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 bo(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function $r(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},yt={nodeTypeName:void 0,type:"object",additionalProperties:!0},$w={preprocessors:yt,oas2Preprocessors:yt,oas3_0Preprocessors:yt,oas3_1Preprocessors:yt,oas3_2Preprocessors:yt,async2Preprocessors:yt,async3Preprocessors:yt,arazzo1Preprocessors:yt,arazzo1_1Preprocessors:yt,overlay1Preprocessors:yt,openrpc1Preprocessors:yt},gt={nodeTypeName:void 0,type:"object",additionalProperties:!0},Nw={decorators:gt,oas2Decorators:gt,oas3_0Decorators:gt,oas3_1Decorators:gt,oas3_2Decorators:gt,async2Decorators:gt,async3Decorators:gt,arazzo1Decorators:gt,arazzo1_1Decorators:gt,overlay1Decorators:gt,openrpc1Decorators:gt},kw={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"},wo={...Rw,...Nw,...$w,extends:kw},Zu=e=>e,ot=Zu({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},lc={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},Fo={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}}},ba={type:"array",items:{...Fo,properties:{...Fo.properties,items:{type:"array",items:Fo}}}},Dw={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},qw={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},jw={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}},Cw={type:"object",properties:{facets:jw,...We.properties},additionalProperties:!1},Mw={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},ed={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},td={type:"object",properties:{items:ba,...We.properties},additionalProperties:!1},rd={type:"object",additionalProperties:Dw},nd={type:"object",properties:{items:ba,copyrightText:{type:"string"},logo:We,...We.properties},additionalProperties:!1},id={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...We.properties},additionalProperties:!1},od={type:"object",properties:{head:{type:"array",items:lc},body:{type:"array",items:lc}},additionalProperties:!1},sd={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}},ad={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:qw,filters:Cw,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:Mw},...We.properties},additionalProperties:!1},cd={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},pd={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...We.properties},additionalProperties:!1},ld={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},Lw={type:"object",properties:{...We.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},ud={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:Lw},additionalProperties:!1},dd={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},fd={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},Xi={...Fs,properties:{...Fs.properties,...Aw.properties}};({...Fs.properties});var Uw={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"]},Bw={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},zw={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},Vw={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"]},Kw={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},Hw={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"]},Gw={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"]},Yw={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:Gw}},additionalProperties:!1,required:["trackingId"]},md={type:"object",properties:{adobe:Uw,amplitude:Fw,fullstory:Bw,heap:zw,rudderstack:Vw,segment:Kw,gtm:Hw,ga:Yw}},hd={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},yd={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},gd={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},Qw={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"}}}},Ww={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:Qw},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:ba,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Zi={type:"object",patternProperties:{".*":Ww}},eo={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"},...wo},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"}}},Jw={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},Xw={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},Zw={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},qt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:Xw},excludes:{type:"array",items:Jw},filters:{type:"array",items:Zw},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},eS={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},tS={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:eS},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},rS={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:tS,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},nS={type:"object",additionalProperties:rS},vd={type:"object",properties:{show:{type:"boolean"},entityTypes:nS,catalogs:{type:"object",properties:{all:qt,services:qt,domains:qt,teams:qt,users:qt,apiDescriptions:qt,dataSchemas:qt,apiOperations:qt},additionalProperties:qt}},additionalProperties:!1},uc={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},wa={type:"string",enum:["and","or"]},Bs={type:"object",properties:{field:{type:"string"},operator:uc,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:uc,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},iS={type:"object",properties:{operator:wa,conditions:{type:"array",items:Bs}},required:["operator","conditions"],additionalProperties:!1},dc={type:"array",items:{oneOf:[Bs,{type:"object",properties:{operator:wa,conditions:{type:"array",items:{oneOf:[Bs,iS]}}},required:["operator","conditions"],additionalProperties:!1}]}},bd={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},oS={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:bd},required:["subject","assertions"],additionalProperties:!1}},sS={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:bd,where:oS,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},aS={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},sS]}},cS={type:"object",properties:{name:{type:"string"},extends:wo.extends,rules:aS},required:["name"],additionalProperties:!1},fc={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},pS={oneOf:[fc,{type:"array",items:fc}]},lS={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[dc,{type:"object",properties:{operator:wa,conditions:dc},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:cS,minItems:1},trigger:pS},required:["name","key","entities","levels"],additionalProperties:!1},wd={type:"array",items:lS},_t={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:ed,navbar:td,products:rd,footer:nd,sidebar:id,scripts:od,links:sd,feedback:dn,search:ad,aiAssistant:cd,colorMode:pd,palette:ld,navigation:ud,codeSnippet:dd,markdown:fd,openapi:Xi,asyncapi:K0,graphql:Wi,analytics:md,userMenu:hd,versionPicker:yd,breadcrumbs:gd,catalog:Zi,entitiesCatalog:vd,catalogClassic:Zi,scorecard:eo,scorecardClassic:eo,scorecards:wd},additionalProperties:!0},uS=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(uS||{}),dS=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(dS||{}),fS=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(fS||{}),mS="^[a-z0-9]+(?:-[a-z0-9]+)*$",Sd="redocly",hS=[Sd,"corporate","guest"],mc=["REDOCLY","CORPORATE","GUEST"],yS={type:"object",additionalProperties:{type:"string"}},gS={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Nn={type:"string",enum:["error","warn","off"]},vS={type:"object",additionalProperties:!1,properties:{schemaCheck:Nn,statusCodeCheck:Nn,contentTypeCheck:Nn,successCriteriaCheck:Nn}},bS={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},wS={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},SS={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},ES={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:[bS,wS]},inputs:yS,servers:gS,severity:vS,slo:SS},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},Ed={type:"string",enum:["off","info","warn","error"]},Ur={type:"array",items:{type:"string"}},xS={type:"object",properties:{severity:Ed,message:{type:"string",minLength:1},fix:{type:"boolean"},tags:Ur,description:{type:"string"},link:{type:"string"},scope:{oneOf:[{type:"string",minLength:1},{type:"array",items:{type:"string",minLength:1},minItems:1}]},appliesTo:Ur,excludes:Ur,exceptions:{type:"object",properties:{files:Ur,lines:Ur},additionalProperties:!1},assertions:{type:"object",additionalProperties:!0}},additionalProperties:!1},TS={oneOf:[Ed,xS]},hc={type:"object",additionalProperties:TS},PS={type:"object",properties:{type:{type:"string",enum:["string","number","boolean"]},required:{type:"boolean"},default:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"}]},enum:{type:"array",items:{type:"string"},minItems:1},dynamic:{type:"boolean"}},required:["type"],additionalProperties:!1},OS={type:"object",properties:{selfClosing:{type:"boolean"},attributes:{type:"object",additionalProperties:PS}},additionalProperties:!1},IS={type:"object",properties:{schema:{oneOf:[{type:"string",enum:["realm"]},{type:"boolean"}]},extend:{type:"object",properties:{tags:{type:"object",additionalProperties:OS},tagsFile:{type:"string",minLength:1}},additionalProperties:!1}},required:["schema"],additionalProperties:!1},_S={type:"object",properties:{rules:hc,excludes:{type:"array",items:{type:"string",minLength:1}},baseline:{type:"string",minLength:1},markdoc:{oneOf:[{type:"boolean"},IS]},apiDescriptions:{type:"object",properties:{rules:hc},additionalProperties:!1}},additionalProperties:!1},AS={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},RS={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:AS,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},$S={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"]},NS={oneOf:[RS,$S],discriminator:{propertyName:"type"}},kS={type:"object",additionalProperties:NS},xd={oneOf:[{type:"array",items:{type:"string",enum:mc},uniqueItems:!0},{type:"string",enum:mc}]},yc={type:"string",pattern:mS,not:{enum:hS.filter(e=>e!==Sd)}},Td={oneOf:[{type:"array",items:yc,uniqueItems:!0},yc]},Pd={type:"boolean"},Od={type:"string",pattern:"^https?://.*"},Id={type:"string",pattern:"^https?://.*"},DS={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"},qS={type:"object",additionalProperties:DS,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"},jS={type:"string",enum:["info","success","warning","error"]},Me={type:"object",additionalProperties:{type:"string"}},CS={type:"object",properties:{trackingId:{type:"string"},content:{type:"string"},dismissible:{type:"boolean"},target:{type:"string"},color:jS,rbac:Me,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},MS={type:"array",items:CS},LS={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:Me,openapi:Xi,graphql:Wi,theme:{type:"object",properties:{openapi:Xi,graphql:Wi},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...wo},required:["root"]},US={type:"object",additionalProperties:!0},FS={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},BS={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},zS={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:BS},additionalProperties:!1},VS={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},KS={type:"object",properties:{catalogs:{type:"object",properties:{all:Me,services:Me,domains:Me,teams:Me,users:Me,apiDescriptions:Me,dataSchemas:Me,apiOperations:Me},additionalProperties:Me},entitiesTypes:{type:"object",properties:{service:Me,domain:Me,team:Me,user:Me,apiDescription:Me,apiOperation:Me,dataSchema:Me},additionalProperties:Me},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:Me},additionalProperties:!1}},entities:{type:"object",properties:{"**":Me},additionalProperties:Me}},additionalProperties:!1},_d={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:Me,cms:Me,reunite:Me,features:{type:"object",properties:{aiSearch:Me,mcp:Me},additionalProperties:!1},content:{type:"object",properties:{"**":Me},additionalProperties:Me},entitiesCatalog:KS},additionalProperties:Me},HS={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},GS={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},YS={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[HS,GS]}},additionalProperties:!1,required:["type","apiBaseUrl"]},QS={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},WS={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},zs={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:[QS,WS],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},JS={...zs,properties:{...zs.properties,type:{type:"string",const:"APIGEE_EDGE"}}},XS={type:"object",oneOf:[zs,JS,YS],discriminator:{propertyName:"type"}},ZS={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:XS}}},gc={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"]},eE={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},tE={type:"object",properties:{hide:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}},publicEndpoint:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},rE={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},nE={type:"object",properties:{requiresLogin:Pd,logoutReturnUrl:Od,residency:Id,sso:xd,idps:Td,rbac:_d},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},to={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:qS,seo:zS,rbac:_d,apiFunctions:VS,requiresLogin:Pd,responseHeaders:{type:"object",additionalProperties:{type:"array",items:eE}},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:LS},...wo,ssoDirect:kS,sso:xd,idps:Td,residency:Id,logoutReturnUrl:Od,access:nE,developerOnboarding:ZS,removeAttribution:{type:"boolean"},i18n:gc,l10n:gc,metadata:US,metadataGlobs:FS,ignore:{type:"array",items:{type:"string"}},theme:_t,reunite:ES,logo:ed,navbar:td,products:rd,footer:nd,sidebar:id,scripts:od,links:sd,feedback:dn,search:ad,aiAssistant:cd,colorMode:pd,palette:ld,navigation:ud,codeSnippet:dd,markdown:fd,openapi:Xi,graphql:Wi,analytics:md,userMenu:hd,versionPicker:yd,breadcrumbs:gd,catalog:Zi,entitiesCatalog:vd,catalogClassic:Zi,scorecard:eo,scorecardClassic:eo,scorecards:wd,mcp:tE,skills:rE,recheck:_S,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:MS},not:{required:["sso","idps"]},additionalProperties:!0},iE={...to,additionalProperties:!1},So={$id:"root-redocly-config",...to,properties:{plugins:{type:"array",items:{type:"string"}},...to.properties,env:{type:"object",additionalProperties:iE}},additionalProperties:!1};_t.properties.logo,_t.properties.navbar,_t.properties.footer,_t.properties.sidebar,_t.properties.search,_t.properties.codeSnippet,_t.properties.breadcrumbs,_t.properties.openapi,_t.properties.feedback,to.properties.mockServer;var oE=["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=Zu({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"}),sE={type:"object",nodeTypeName:Ge.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},aE={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},cE={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},pE={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},lE={type:"object",properties:{},nodeTypeName:Ge.EntityMetadata,additionalProperties:!0},uE={type:"object",nodeTypeName:Ge.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},dE={type:"object",nodeTypeName:Ge.EntitySlackContact,properties:{channels:{type:"array",items:uE}},required:["channels"],additionalProperties:!1},fE={type:"object",nodeTypeName:Ge.EntityContact,properties:{slack:dE},additionalProperties:!1},mE={type:"object",nodeTypeName:Ge.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},hE={type:"object",nodeTypeName:Ge.EntityRelation,properties:{type:{type:"string",enum:oE},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},Yt={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:fE,links:{type:"array",nodeTypeName:Ge.EntityLinkList,items:mE},relations:{type:"array",nodeTypeName:Ge.EntityRelationList,items:hE},metadata:lE},yE={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...Yt,type:{type:"string",const:"user"},metadata:sE},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:Ge.UserEntity},{type:"object",nodeTypeName:Ge.ApiOperationEntity,properties:{...Yt,type:{type:"string",const:"api-operation"},metadata:cE},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.DataSchemaEntity,properties:{...Yt,type:{type:"string",const:"data-schema"},metadata:pE},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.ApiDescriptionEntity,properties:{...Yt,type:{type:"string",const:"api-description"},metadata:aE},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.ServiceEntity,properties:{...Yt,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.DomainEntity,properties:{...Yt,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.TeamEntity,properties:{...Yt,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},gE={type:"object",nodeTypeName:Ge.Entity,properties:{...Yt},required:["key","title","type"],additionalProperties:!1};const vE=["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"],Hi=["oas2","oas3_0","oas3_1","oas3_2","async2","async3","arazzo1","arazzo1_1","overlay1","openrpc1","graphql"],Ad="a-zA-Z0-9\\.\\-_",bE={oas2:Nu,oas3_0:Tt,oas3_1:De,oas3_2:Ze,async2:Hu,async3:Gu,arazzo1:rt,arazzo1_1:Yu,overlay1:Qu,openrpc1:Wu};function fn(e){return e==="graphql"?{}:bE[e]}function Sa(e){return e.includes("/")}function Rd(e,t){const r={...e};return t.forEach(n=>{delete r[n]}),r}var kn={exports:{}},Bo={},jt={},er={},zo={},Vo={},Ko={},vc;function ro(){return vc||(vc=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(E){if(super(),!e.IDENTIFIER.test(E))throw new Error("CodeGen: name must be a valid identifier");this.str=E}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(E){super(),this._items=typeof E=="string"?[E]:E}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const E=this._items[0];return E===""||E==='""'}get str(){var E;return(E=this._str)!==null&&E!==void 0?E:this._str=this._items.reduce((v,P)=>`${v}${P}`,"")}get names(){var E;return(E=this._names)!==null&&E!==void 0?E:this._names=this._items.reduce((v,P)=>(P instanceof r&&(v[P.str]=(v[P.str]||0)+1),v),{})}}e._Code=n,e.nil=new n("");function i(T,...E){const v=[T[0]];let P=0;for(;P<E.length;)a(v,E[P]),v.push(T[++P]);return new n(v)}e._=i;const o=new n("+");function s(T,...E){const v=[y(T[0])];let P=0;for(;P<E.length;)v.push(o),a(v,E[P]),v.push(o,y(T[++P]));return c(v),new n(v)}e.str=s;function a(T,E){E instanceof n?T.push(...E._items):E instanceof r?T.push(E):T.push(f(E))}e.addCodeArg=a;function c(T){let E=1;for(;E<T.length-1;){if(T[E]===o){const v=l(T[E-1],T[E+1]);if(v!==void 0){T.splice(E-1,3,v);continue}T[E++]="+"}E++}}function l(T,E){if(E==='""')return T;if(T==='""')return E;if(typeof T=="string")return E instanceof r||T[T.length-1]!=='"'?void 0:typeof E!="string"?`${T.slice(0,-1)}${E}"`:E[0]==='"'?T.slice(0,-1)+E.slice(1):void 0;if(typeof E=="string"&&E[0]==='"'&&!(T instanceof r))return`"${T}${E.slice(1)}`}function u(T,E){return E.emptyStr()?T:T.emptyStr()?E:s`${T}${E}`}e.strConcat=u;function f(T){return typeof T=="number"||typeof T=="boolean"||T===null?T:y(Array.isArray(T)?T.join(","):T)}function h(T){return new n(y(T))}e.stringify=h;function y(T){return JSON.stringify(T).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=y;function b(T){return typeof T=="string"&&e.IDENTIFIER.test(T)?new n(`.${T}`):i`[${T}]`}e.getProperty=b;function w(T){if(typeof T=="string"&&e.IDENTIFIER.test(T))return new n(`${T}`);throw new Error(`CodeGen: invalid export name: ${T}, use explicit $id name mapping`)}e.getEsmExportName=w;function x(T){return new n(T.toString())}e.regexpCode=x})(Ko)),Ko}var Ho={},bc;function wc(){return bc||(bc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=ro();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,f;if(!((f=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||f===void 0)&&f.has(l)||this._prefixes&&!this._prefixes.has(l))throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);return this._names[l]={prefix:l,index:0}}}e.Scope=i;class o extends t.Name{constructor(l,u){super(u),this.prefix=l}setValue(l,{property:u,itemIndex:f}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(u)}[${f}]`}}e.ValueScopeName=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 f;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const h=this.toName(l),{prefix:y}=h,b=(f=u.key)!==null&&f!==void 0?f:u.ref;let w=this._values[y];if(w){const E=w.get(b);if(E)return E}else w=this._values[y]=new Map;w.set(b,h);const x=this._scope[y]||(this._scope[y]=[]),T=x.length;return x[T]=u.ref,h.setValue(u,{property:y,itemIndex:T}),h}getValue(l,u){const f=this._values[l];if(f)return f.get(u)}scopeRefs(l,u=this._values){return this._reduceValues(u,f=>{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${l}${f.scopePath}`})}scopeCode(l=this._values,u,f){return this._reduceValues(l,h=>{if(h.value===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return h.value.code},u,f)}_reduceValues(l,u,f={},h){let y=t.nil;for(const b in l){const w=l[b];if(!w)continue;const x=f[b]=f[b]||new Map;w.forEach(T=>{if(x.has(T))return;x.set(T,n.Started);let E=u(T);if(E){const v=this.opts.es5?e.varKinds.var:e.varKinds.const;y=(0,t._)`${y}${v} ${T} = ${E};${this.opts._n}`}else if(E=h?.(T))y=(0,t._)`${y}${E}${this.opts._n}`;else throw new r(T);x.set(T,n.Completed)})}return y}}e.ValueScope=a})(Ho)),Ho}var Sc;function Pe(){return Sc||(Sc=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=ro(),r=wc();var n=ro();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=wc();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(_,j){return this}}class s extends o{constructor(_,j,$){super(),this.varKind=_,this.name=j,this.rhs=$}render({es5:_,_n:j}){const $=_?r.varKinds.var:this.varKind,C=this.rhs===void 0?"":` = ${this.rhs}`;return`${$} ${this.name}${C};`+j}optimizeNames(_,j){if(_[this.name.str])return this.rhs&&(this.rhs=Y(this.rhs,_,j)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends o{constructor(_,j,$){super(),this.lhs=_,this.rhs=j,this.sideEffects=$}render({_n:_}){return`${this.lhs} = ${this.rhs};`+_}optimizeNames(_,j){if(!(this.lhs instanceof t.Name&&!_[this.lhs.str]&&!this.sideEffects))return this.rhs=Y(this.rhs,_,j),this}get names(){const _=this.lhs instanceof t.Name?{}:{...this.lhs.names};return U(_,this.rhs)}}class c extends a{constructor(_,j,$,C){super(_,$,C),this.op=j}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 f extends o{constructor(_){super(),this.error=_}render({_n:_}){return`throw ${this.error};`+_}get names(){return this.error.names}}class h extends o{constructor(_){super(),this.code=_}render({_n:_}){return`${this.code};`+_}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(_,j){return this.code=Y(this.code,_,j),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class y extends o{constructor(_=[]){super(),this.nodes=_}render(_){return this.nodes.reduce((j,$)=>j+$.render(_),"")}optimizeNodes(){const{nodes:_}=this;let j=_.length;for(;j--;){const $=_[j].optimizeNodes();Array.isArray($)?_.splice(j,1,...$):$?_[j]=$:_.splice(j,1)}return _.length>0?this:void 0}optimizeNames(_,j){const{nodes:$}=this;let C=$.length;for(;C--;){const V=$[C];V.optimizeNames(_,j)||(he(_,V.names),$.splice(C,1))}return $.length>0?this:void 0}get names(){return this.nodes.reduce((_,j)=>W(_,j.names),{})}}class b extends y{render(_){return"{"+_._n+super.render(_)+"}"+_._n}}class w extends y{}class x extends b{}x.kind="else";class T extends b{constructor(_,j){super(j),this.condition=_}render(_){let j=`if(${this.condition})`+super.render(_);return this.else&&(j+="else "+this.else.render(_)),j}optimizeNodes(){super.optimizeNodes();const _=this.condition;if(_===!0)return this.nodes;let j=this.else;if(j){const $=j.optimizeNodes();j=this.else=Array.isArray($)?new x($):$}if(j)return _===!1?j instanceof T?j:j.nodes:this.nodes.length?this:new T(we(_),j instanceof T?[j]:j.nodes);if(!(_===!1||!this.nodes.length))return this}optimizeNames(_,j){var $;if(this.else=($=this.else)===null||$===void 0?void 0:$.optimizeNames(_,j),!!(super.optimizeNames(_,j)||this.else))return this.condition=Y(this.condition,_,j),this}get names(){const _=super.names;return U(_,this.condition),this.else&&W(_,this.else.names),_}}T.kind="if";class E extends b{}E.kind="for";class v extends E{constructor(_){super(),this.iteration=_}render(_){return`for(${this.iteration})`+super.render(_)}optimizeNames(_,j){if(super.optimizeNames(_,j))return this.iteration=Y(this.iteration,_,j),this}get names(){return W(super.names,this.iteration.names)}}class P extends E{constructor(_,j,$,C){super(),this.varKind=_,this.name=j,this.from=$,this.to=C}render(_){const j=_.es5?r.varKinds.var:this.varKind,{name:$,from:C,to:V}=this;return`for(${j} ${$}=${C}; ${$}<${V}; ${$}++)`+super.render(_)}get names(){const _=U(super.names,this.from);return U(_,this.to)}}class g extends E{constructor(_,j,$,C){super(),this.loop=_,this.varKind=j,this.name=$,this.iterable=C}render(_){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(_)}optimizeNames(_,j){if(super.optimizeNames(_,j))return this.iterable=Y(this.iterable,_,j),this}get names(){return W(super.names,this.iterable.names)}}class S extends b{constructor(_,j,$){super(),this.name=_,this.args=j,this.async=$}render(_){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(_)}}S.kind="func";class I extends y{render(_){return"return "+super.render(_)}}I.kind="return";class q extends b{render(_){let j="try"+super.render(_);return this.catch&&(j+=this.catch.render(_)),this.finally&&(j+=this.finally.render(_)),j}optimizeNodes(){var _,j;return super.optimizeNodes(),(_=this.catch)===null||_===void 0||_.optimizeNodes(),(j=this.finally)===null||j===void 0||j.optimizeNodes(),this}optimizeNames(_,j){var $,C;return super.optimizeNames(_,j),($=this.catch)===null||$===void 0||$.optimizeNames(_,j),(C=this.finally)===null||C===void 0||C.optimizeNames(_,j),this}get names(){const _=super.names;return this.catch&&W(_,this.catch.names),this.finally&&W(_,this.finally.names),_}}class G extends b{constructor(_){super(),this.error=_}render(_){return`catch(${this.error})`+super.render(_)}}G.kind="catch";class B extends b{render(_){return"finally"+super.render(_)}}B.kind="finally";class H{constructor(_,j={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...j,_n:j.lines?`
2
+ `:""},this._extScope=_,this._scope=new r.Scope({parent:_}),this._nodes=[new w]}toString(){return this._root.render(this.opts)}name(_){return this._scope.name(_)}scopeName(_){return this._extScope.name(_)}scopeValue(_,j){const $=this._extScope.value(_,j);return(this._values[$.prefix]||(this._values[$.prefix]=new Set)).add($),$}getScopeValue(_,j){return this._extScope.getValue(_,j)}scopeRefs(_){return this._extScope.scopeRefs(_,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(_,j,$,C){const V=this._scope.toName(j);return $!==void 0&&C&&(this._constants[V.str]=$),this._leafNode(new s(_,V,$)),V}const(_,j,$){return this._def(r.varKinds.const,_,j,$)}let(_,j,$){return this._def(r.varKinds.let,_,j,$)}var(_,j,$){return this._def(r.varKinds.var,_,j,$)}assign(_,j,$){return this._leafNode(new a(_,j,$))}add(_,j){return this._leafNode(new c(_,e.operators.ADD,j))}code(_){return typeof _=="function"?_():_!==t.nil&&this._leafNode(new h(_)),this}object(..._){const j=["{"];for(const[$,C]of _)j.length>1&&j.push(","),j.push($),($!==C||this.opts.es5)&&(j.push(":"),(0,t.addCodeArg)(j,C));return j.push("}"),new t._Code(j)}if(_,j,$){if(this._blockNode(new T(_)),j&&$)this.code(j).else().code($).endIf();else if(j)this.code(j).endIf();else if($)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(_){return this._elseNode(new T(_))}else(){return this._elseNode(new x)}endIf(){return this._endBlockNode(T,x)}_for(_,j){return this._blockNode(_),j&&this.code(j).endFor(),this}for(_,j){return this._for(new v(_),j)}forRange(_,j,$,C,V=this.opts.es5?r.varKinds.var:r.varKinds.let){const J=this._scope.toName(_);return this._for(new P(V,J,j,$),()=>C(J))}forOf(_,j,$,C=r.varKinds.const){const V=this._scope.toName(_);if(this.opts.es5){const J=j instanceof t.Name?j:this.var("_arr",j);return this.forRange("_i",0,(0,t._)`${J}.length`,ae=>{this.var(V,(0,t._)`${J}[${ae}]`),$(V)})}return this._for(new g("of",C,V,j),()=>$(V))}forIn(_,j,$,C=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(_,(0,t._)`Object.keys(${j})`,$);const V=this._scope.toName(_);return this._for(new g("in",C,V,j),()=>$(V))}endFor(){return this._endBlockNode(E)}label(_){return this._leafNode(new l(_))}break(_){return this._leafNode(new u(_))}return(_){const j=new I;if(this._blockNode(j),this.code(_),j.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(I)}try(_,j,$){if(!j&&!$)throw new Error('CodeGen: "try" without "catch" and "finally"');const C=new q;if(this._blockNode(C),this.code(_),j){const V=this.name("e");this._currNode=C.catch=new G(V),j(V)}return $&&(this._currNode=C.finally=new B,this.code($)),this._endBlockNode(G,B)}throw(_){return this._leafNode(new f(_))}block(_,j){return this._blockStarts.push(this._nodes.length),_&&this.code(_).endBlock(j),this}endBlock(_){const j=this._blockStarts.pop();if(j===void 0)throw new Error("CodeGen: not in self-balancing block");const $=this._nodes.length-j;if($<0||_!==void 0&&$!==_)throw new Error(`CodeGen: wrong number of nodes: ${$} vs ${_} expected`);return this._nodes.length=j,this}func(_,j=t.nil,$,C){return this._blockNode(new S(_,j,$)),C&&this.code(C).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(_,j){const $=this._currNode;if($ instanceof _||j&&$ instanceof j)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${j?`${_.kind}/${j.kind}`:_.kind}"`)}_elseNode(_){const j=this._currNode;if(!(j instanceof T))throw new Error('CodeGen: "else" without "if"');return this._currNode=j.else=_,this}get _root(){return this._nodes[0]}get _currNode(){const _=this._nodes;return _[_.length-1]}set _currNode(_){const j=this._nodes;j[j.length-1]=_}}e.CodeGen=H;function W(z,_){for(const j in _)z[j]=(z[j]||0)+(_[j]||0);return z}function U(z,_){return _ instanceof t._CodeOrName?W(z,_.names):z}function Y(z,_,j){if(z instanceof t.Name)return $(z);if(!C(z))return z;return new t._Code(z._items.reduce((V,J)=>(J instanceof t.Name&&(J=$(J)),J instanceof t._Code?V.push(...J._items):V.push(J),V),[]));function $(V){const J=j[V.str];return J===void 0||_[V.str]!==1?V:(delete _[V.str],J)}function C(V){return V instanceof t._Code&&V._items.some(J=>J instanceof t.Name&&_[J.str]===1&&j[J.str]!==void 0)}}function he(z,_){for(const j in _)z[j]=(z[j]||0)-(_[j]||0)}function we(z){return typeof z=="boolean"||typeof z=="number"||z===null?!z:(0,t._)`!${Q(z)}`}e.not=we;const Oe=M(e.operators.AND);function de(...z){return z.reduce(Oe)}e.and=de;const Te=M(e.operators.OR);function K(...z){return z.reduce(Te)}e.or=K;function M(z){return(_,j)=>_===t.nil?j:j===t.nil?_:(0,t._)`${Q(_)} ${z} ${Q(j)}`}function Q(z){return z instanceof t.Name?z:(0,t._)`(${z})`}})(Vo)),Vo}var _e={},Ec;function ke(){if(Ec)return _e;Ec=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=Pe(),t=ro();function r(g){const S={};for(const I of g)S[I]=!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:I,self:q}=g;if(!I.strictSchema||typeof S=="boolean")return;const G=q.RULES.keywords;for(const B in S)G[B]||P(g,`unknown keyword: "${B}"`)}_e.checkUnknownRules=i;function o(g,S){if(typeof g=="boolean")return!g;for(const I in g)if(S[I])return!0;return!1}_e.schemaHasRules=o;function s(g,S){if(typeof g=="boolean")return!g;for(const I in g)if(I!=="$ref"&&S.all[I])return!0;return!1}_e.schemaHasRulesButRef=s;function a({topSchemaRef:g,schemaPath:S},I,q,G){if(!G){if(typeof I=="number"||typeof I=="boolean")return I;if(typeof I=="string")return(0,e._)`${I}`}return(0,e._)`${g}${S}${(0,e.getProperty)(q)}`}_e.schemaRefOrVal=a;function c(g){return f(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 f(g){return g.replace(/~1/g,"/").replace(/~0/g,"~")}_e.unescapeJsonPointer=f;function h(g,S){if(Array.isArray(g))for(const I of g)S(I);else S(g)}_e.eachItem=h;function y({mergeNames:g,mergeToName:S,mergeValues:I,resultToName:q}){return(G,B,H,W)=>{const U=H===void 0?B:H instanceof e.Name?(B instanceof e.Name?g(G,B,H):S(G,B,H),H):B instanceof e.Name?(S(G,H,B),B):I(B,H);return W===e.Name&&!(U instanceof e.Name)?q(G,U):U}}_e.mergeEvaluated={props:y({mergeNames:(g,S,I)=>g.if((0,e._)`${I} !== true && ${S} !== undefined`,()=>{g.if((0,e._)`${S} === true`,()=>g.assign(I,!0),()=>g.assign(I,(0,e._)`${I} || {}`).code((0,e._)`Object.assign(${I}, ${S})`))}),mergeToName:(g,S,I)=>g.if((0,e._)`${I} !== true`,()=>{S===!0?g.assign(I,!0):(g.assign(I,(0,e._)`${I} || {}`),w(g,I,S))}),mergeValues:(g,S)=>g===!0?!0:{...g,...S},resultToName:b}),items:y({mergeNames:(g,S,I)=>g.if((0,e._)`${I} !== true && ${S} !== undefined`,()=>g.assign(I,(0,e._)`${S} === true ? true : ${I} > ${S} ? ${I} : ${S}`)),mergeToName:(g,S,I)=>g.if((0,e._)`${I} !== true`,()=>g.assign(I,S===!0?!0:(0,e._)`${I} > ${S} ? ${I} : ${S}`)),mergeValues:(g,S)=>g===!0?!0:Math.max(g,S),resultToName:(g,S)=>g.var("items",S)})};function b(g,S){if(S===!0)return g.var("props",!0);const I=g.var("props",(0,e._)`{}`);return S!==void 0&&w(g,I,S),I}_e.evaluatedPropsToName=b;function w(g,S,I){Object.keys(I).forEach(q=>g.assign((0,e._)`${S}${(0,e.getProperty)(q)}`,!0))}_e.setEvaluated=w;const x={};function T(g,S){return g.scopeValue("func",{ref:S,code:x[S.code]||(x[S.code]=new t._Code(S.code))})}_e.useFunc=T;var E;(function(g){g[g.Num=0]="Num",g[g.Str=1]="Str"})(E||(_e.Type=E={}));function v(g,S,I){if(g instanceof e.Name){const q=S===E.Num;return I?q?(0,e._)`"[" + ${g} + "]"`:(0,e._)`"['" + ${g} + "']"`:q?(0,e._)`"/" + ${g}`:(0,e._)`"/" + ${g}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return I?(0,e.getProperty)(g).toString():"/"+u(g)}_e.getErrorPath=v;function P(g,S,I=g.opts.strictSchema){if(I){if(S=`strict mode: ${S}`,I===!0)throw new Error(S);g.self.logger.warn(S)}}return _e.checkStrictMode=P,_e}var Dn={},xc;function pt(){if(xc)return Dn;xc=1,Object.defineProperty(Dn,"__esModule",{value:!0});const e=Pe(),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 Dn.default=t,Dn}var Tc;function Eo(){return Tc||(Tc=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=Pe(),r=ke(),n=pt();e.keywordError={message:({keyword:x})=>(0,t.str)`must pass "${x}" keyword validation`},e.keyword$DataError={message:({keyword:x,schemaType:T})=>T?(0,t.str)`"${x}" keyword must be ${T} ($data)`:(0,t.str)`"${x}" keyword is invalid ($data)`};function i(x,T=e.keywordError,E,v){const{it:P}=x,{gen:g,compositeRule:S,allErrors:I}=P,q=f(x,T,E);v??(S||I)?c(g,q):l(P,(0,t._)`[${q}]`)}e.reportError=i;function o(x,T=e.keywordError,E){const{it:v}=x,{gen:P,compositeRule:g,allErrors:S}=v,I=f(x,T,E);c(P,I),g||S||l(v,n.default.vErrors)}e.reportExtraError=o;function s(x,T){x.assign(n.default.errors,T),x.if((0,t._)`${n.default.vErrors} !== null`,()=>x.if(T,()=>x.assign((0,t._)`${n.default.vErrors}.length`,T),()=>x.assign(n.default.vErrors,null)))}e.resetErrorsCount=s;function a({gen:x,keyword:T,schemaValue:E,data:v,errsCount:P,it:g}){if(P===void 0)throw new Error("ajv implementation error");const S=x.name("err");x.forRange("i",P,n.default.errors,I=>{x.const(S,(0,t._)`${n.default.vErrors}[${I}]`),x.if((0,t._)`${S}.instancePath === undefined`,()=>x.assign((0,t._)`${S}.instancePath`,(0,t.strConcat)(n.default.instancePath,g.errorPath))),x.assign((0,t._)`${S}.schemaPath`,(0,t.str)`${g.errSchemaPath}/${T}`),g.opts.verbose&&(x.assign((0,t._)`${S}.schema`,E),x.assign((0,t._)`${S}.data`,v))})}e.extendErrors=a;function c(x,T){const E=x.const("err",T);x.if((0,t._)`${n.default.vErrors} === null`,()=>x.assign(n.default.vErrors,(0,t._)`[${E}]`),(0,t._)`${n.default.vErrors}.push(${E})`),x.code((0,t._)`${n.default.errors}++`)}function l(x,T){const{gen:E,validateName:v,schemaEnv:P}=x;P.$async?E.throw((0,t._)`new ${x.ValidationError}(${T})`):(E.assign((0,t._)`${v}.errors`,T),E.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function f(x,T,E){const{createErrors:v}=x.it;return v===!1?(0,t._)`{}`:h(x,T,E)}function h(x,T,E={}){const{gen:v,it:P}=x,g=[y(P,E),b(x,E)];return w(x,T,g),v.object(...g)}function y({errorPath:x},{instancePath:T}){const E=T?(0,t.str)`${x}${(0,r.getErrorPath)(T,r.Type.Str)}`:x;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,E)]}function b({keyword:x,it:{errSchemaPath:T}},{schemaPath:E,parentSchema:v}){let P=v?T:(0,t.str)`${T}/${x}`;return E&&(P=(0,t.str)`${P}${(0,r.getErrorPath)(E,r.Type.Str)}`),[u.schemaPath,P]}function w(x,{params:T,message:E},v){const{keyword:P,data:g,schemaValue:S,it:I}=x,{opts:q,propertyName:G,topSchemaRef:B,schemaPath:H}=I;v.push([u.keyword,P],[u.params,typeof T=="function"?T(x):T||(0,t._)`{}`]),q.messages&&v.push([u.message,typeof E=="function"?E(x):E]),q.verbose&&v.push([u.schema,S],[u.parentSchema,(0,t._)`${B}${H}`],[n.default.data,g]),G&&v.push([u.propertyName,G])}})(zo)),zo}var Pc;function wE(){if(Pc)return er;Pc=1,Object.defineProperty(er,"__esModule",{value:!0}),er.boolOrEmptySchema=er.topBoolOrEmptySchema=void 0;const e=Eo(),t=Pe(),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))}er.topBoolOrEmptySchema=i;function o(a,c){const{gen:l,schema:u}=a;u===!1?(l.var(c,!1),s(a)):l.var(c,!0)}er.boolOrEmptySchema=o;function s(a,c){const{gen:l,data:u}=a,f={gen:l,keyword:"false schema",data:u,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:a};(0,e.reportError)(f,n,void 0,c)}return er}var Xe={},tr={},Oc;function $d(){if(Oc)return tr;Oc=1,Object.defineProperty(tr,"__esModule",{value:!0}),tr.getRules=tr.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)}tr.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 tr.getRules=n,tr}var Ct={},Ic;function Nd(){if(Ic)return Ct;Ic=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 _c;function no(){if(_c)return Xe;_c=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=$d(),t=Nd(),r=Eo(),n=Pe(),i=ke();var o;(function(E){E[E.Correct=0]="Correct",E[E.Wrong=1]="Wrong"})(o||(Xe.DataType=o={}));function s(E){const v=a(E.type);if(v.includes("null")){if(E.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!v.length&&E.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');E.nullable===!0&&v.push("null")}return v}Xe.getSchemaTypes=s;function a(E){const v=Array.isArray(E)?E:E?[E]:[];if(v.every(e.isJSONType))return v;throw new Error("type must be JSONType or JSONType[]: "+v.join(","))}Xe.getJSONTypes=a;function c(E,v){const{gen:P,data:g,opts:S}=E,I=u(v,S.coerceTypes),q=v.length>0&&!(I.length===0&&v.length===1&&(0,t.schemaHasRulesForType)(E,v[0]));if(q){const G=b(v,g,S.strictNumbers,o.Wrong);P.if(G,()=>{I.length?f(E,v,I):x(E)})}return q}Xe.coerceAndCheckDataType=c;const l=new Set(["string","number","integer","boolean","null"]);function u(E,v){return v?E.filter(P=>l.has(P)||v==="array"&&P==="array"):[]}function f(E,v,P){const{gen:g,data:S,opts:I}=E,q=g.let("dataType",(0,n._)`typeof ${S}`),G=g.let("coerced",(0,n._)`undefined`);I.coerceTypes==="array"&&g.if((0,n._)`${q} == 'object' && Array.isArray(${S}) && ${S}.length == 1`,()=>g.assign(S,(0,n._)`${S}[0]`).assign(q,(0,n._)`typeof ${S}`).if(b(v,S,I.strictNumbers),()=>g.assign(G,S))),g.if((0,n._)`${G} !== undefined`);for(const H of P)(l.has(H)||H==="array"&&I.coerceTypes==="array")&&B(H);g.else(),x(E),g.endIf(),g.if((0,n._)`${G} !== undefined`,()=>{g.assign(S,G),h(E,G)});function B(H){switch(H){case"string":g.elseIf((0,n._)`${q} == "number" || ${q} == "boolean"`).assign(G,(0,n._)`"" + ${S}`).elseIf((0,n._)`${S} === null`).assign(G,(0,n._)`""`);return;case"number":g.elseIf((0,n._)`${q} == "boolean" || ${S} === null
3
+ || (${q} == "string" && ${S} && ${S} == +${S})`).assign(G,(0,n._)`+${S}`);return;case"integer":g.elseIf((0,n._)`${q} === "boolean" || ${S} === null
4
+ || (${q} === "string" && ${S} && ${S} == +${S} && !(${S} % 1))`).assign(G,(0,n._)`+${S}`);return;case"boolean":g.elseIf((0,n._)`${S} === "false" || ${S} === 0 || ${S} === null`).assign(G,!1).elseIf((0,n._)`${S} === "true" || ${S} === 1`).assign(G,!0);return;case"null":g.elseIf((0,n._)`${S} === "" || ${S} === 0 || ${S} === false`),g.assign(G,null);return;case"array":g.elseIf((0,n._)`${q} === "string" || ${q} === "number"
5
+ || ${q} === "boolean" || ${S} === null`).assign(G,(0,n._)`[${S}]`)}}}function h({gen:E,parentData:v,parentDataProperty:P},g){E.if((0,n._)`${v} !== undefined`,()=>E.assign((0,n._)`${v}[${P}]`,g))}function y(E,v,P,g=o.Correct){const S=g===o.Correct?n.operators.EQ:n.operators.NEQ;let I;switch(E){case"null":return(0,n._)`${v} ${S} null`;case"array":I=(0,n._)`Array.isArray(${v})`;break;case"object":I=(0,n._)`${v} && typeof ${v} == "object" && !Array.isArray(${v})`;break;case"integer":I=q((0,n._)`!(${v} % 1) && !isNaN(${v})`);break;case"number":I=q();break;default:return(0,n._)`typeof ${v} ${S} ${E}`}return g===o.Correct?I:(0,n.not)(I);function q(G=n.nil){return(0,n.and)((0,n._)`typeof ${v} == "number"`,G,P?(0,n._)`isFinite(${v})`:n.nil)}}Xe.checkDataType=y;function b(E,v,P,g){if(E.length===1)return y(E[0],v,P,g);let S;const I=(0,i.toHash)(E);if(I.array&&I.object){const q=(0,n._)`typeof ${v} != "object"`;S=I.null?q:(0,n._)`!${v} || ${q}`,delete I.null,delete I.array,delete I.object}else S=n.nil;I.number&&delete I.integer;for(const q in I)S=(0,n.and)(S,y(q,v,P,g));return S}Xe.checkDataTypes=b;const w={message:({schema:E})=>`must be ${E}`,params:({schema:E,schemaValue:v})=>typeof E=="string"?(0,n._)`{type: ${E}}`:(0,n._)`{type: ${v}}`};function x(E){const v=T(E);(0,r.reportError)(v,w)}Xe.reportTypeError=x;function T(E){const{gen:v,data:P,schema:g}=E,S=(0,i.schemaRefOrVal)(E,g,"type");return{gen:v,keyword:"type",data:P,schema:g.type,schemaCode:S,schemaValue:S,parentSchema:g,params:{},it:E}}return Xe}var Fr={},Ac;function SE(){if(Ac)return Fr;Ac=1,Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.assignDefaults=void 0;const e=Pe(),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))}Fr.assignDefaults=r;function n(i,o,s){const{gen:a,compositeRule:c,data:l,opts:u}=i;if(s===void 0)return;const f=(0,e._)`${l}${(0,e.getProperty)(o)}`;if(c){(0,t.checkStrictMode)(i,`default is ignored for: ${f}`);return}let h=(0,e._)`${f} === undefined`;u.useDefaults==="empty"&&(h=(0,e._)`${h} || ${f} === null || ${f} === ""`),a.if(h,(0,e._)`${f} = ${(0,e.stringify)(s)}`)}return Fr}var vt={},Le={},Br={},Rc;function kd(){if(Rc)return Br;Rc=1,Object.defineProperty(Br,"__esModule",{value:!0}),Br.getSkipCondition=void 0;const e=Pe(),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 Br.getSkipCondition=r,Br}var $c;function Pt(){if($c)return Le;$c=1,Object.defineProperty(Le,"__esModule",{value:!0}),Le.validateUnion=Le.validateArray=Le.usePattern=Le.callValidateCode=Le.schemaProperties=Le.allSchemaProperties=Le.noPropertyInData=Le.propertyInData=Le.isOwnProperty=Le.hasPropFunc=Le.reportMissingProp=Le.checkMissingProp=Le.checkReportMissingProp=void 0;const e=Pe(),t=ke(),r=pt(),n=ke(),i=kd();function o(v,P){const{gen:g,data:S,it:I}=v;g.if(f(g,S,P,I.opts.ownProperties),()=>{v.setParams({missingProperty:(0,e._)`${P}`},!0),v.error()})}Le.checkReportMissingProp=o;function s({gen:v,data:P,it:{opts:g},parentSchema:S},I,q){return(0,e.or)(...I.map(G=>{var B;return(0,e.and)((0,e.not)((B=(0,i.getSkipCondition)(S,G))!==null&&B!==void 0?B:(0,e._)`false`),f(v,P,G,g.ownProperties),(0,e._)`${q} = ${G}`)}))}Le.checkMissingProp=s;function a(v,P){v.setParams({missingProperty:P},!0),v.error()}Le.reportMissingProp=a;function c(v){return v.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Le.hasPropFunc=c;function l(v,P,g){return(0,e._)`${c(v)}.call(${P}, ${g})`}Le.isOwnProperty=l;function u(v,P,g,S){const I=(0,e._)`${P}${(0,e.getProperty)(g)} !== undefined`;return S?(0,e._)`${I} && ${l(v,P,g)}`:I}Le.propertyInData=u;function f(v,P,g,S){const I=(0,e._)`${P}${(0,e.getProperty)(g)} === undefined`;return S?(0,e.or)(I,(0,e.not)(l(v,P,g))):I}Le.noPropertyInData=f;function h(v){return v?Object.keys(v).filter(P=>P!=="__proto__"):[]}Le.allSchemaProperties=h;function y(v,P){return h(P).filter(g=>!(0,t.alwaysValidSchema)(v,P[g]))}Le.schemaProperties=y;function b({schemaCode:v,data:P,it:{gen:g,topSchemaRef:S,schemaPath:I,errorPath:q},it:G},B,H,W){const U=W?(0,e._)`${v}, ${P}, ${S}${I}`:P,Y=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,q)],[r.default.parentData,G.parentData],[r.default.parentDataProperty,G.parentDataProperty],[r.default.rootData,r.default.rootData],[r.default.isAllOfVariant,G.isAllOfVariant?1:0]];G.opts.dynamicRef&&Y.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const he=(0,e._)`${U}, ${g.object(...Y)}`;return H!==e.nil?(0,e._)`${B}.call(${H}, ${he})`:(0,e._)`${B}(${he})`}Le.callValidateCode=b;const w=(0,e._)`new RegExp`;function x({gen:v,it:{opts:P}},g){const S=P.unicodeRegExp?"u":"",{regExp:I}=P.code,q=I(g,S);return v.scopeValue("pattern",{key:q.toString(),ref:q,code:(0,e._)`${I.code==="new RegExp"?w:(0,n.useFunc)(v,I)}(${g}, ${S})`})}Le.usePattern=x;function T(v){const{gen:P,data:g,keyword:S,it:I}=v,q=P.name("valid");if(I.allErrors){const B=P.let("valid",!0);return G(()=>P.assign(B,!1)),B}return P.var(q,!0),G(()=>P.break()),q;function G(B){const H=P.const("len",(0,e._)`${g}.length`);P.forRange("i",0,H,W=>{v.subschema({keyword:S,dataProp:W,dataPropType:t.Type.Num},q),P.if((0,e.not)(q),B)})}}Le.validateArray=T;function E(v){const{gen:P,schema:g,keyword:S,parentSchema:I,it:q}=v;if(!Array.isArray(g))throw new Error("ajv implementation error");if(q.opts.discriminator&&I.discriminator||g.some(W=>(0,t.alwaysValidSchema)(q,W))&&!q.opts.unevaluated)return;const B=P.let("valid",!1),H=P.name("_valid");P.block(()=>g.forEach((W,U)=>{const Y=v.subschema({keyword:S,schemaProp:U,compositeRule:!0},H);P.assign(B,(0,e._)`${B} || ${H}`),v.mergeValidEvaluated(Y,H)||P.if((0,e.not)(B))})),v.result(B,()=>v.reset(),()=>v.error(!0))}return Le.validateUnion=E,Le}var Nc;function EE(){if(Nc)return vt;Nc=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.validateKeywordUsage=vt.validSchemaType=vt.funcKeywordCode=vt.macroKeywordCode=void 0;const e=Pe(),t=pt(),r=Pt(),n=Eo();function i(h,y){const{gen:b,keyword:w,schema:x,parentSchema:T,it:E}=h,v=y.macro.call(E.self,x,T,E),P=l(b,w,v);E.opts.validateSchema!==!1&&E.self.validateSchema(v,!0);const g=b.name("valid");h.subschema({schema:v,schemaPath:e.nil,errSchemaPath:`${E.errSchemaPath}/${w}`,topSchemaRef:P,compositeRule:!0},g),h.pass(g,()=>h.error(!0))}vt.macroKeywordCode=i;function o(h,y){var b;const{gen:w,keyword:x,schema:T,parentSchema:E,$data:v,it:P}=h;c(P,y);const g=!v&&y.compile?y.compile.call(P.self,T,E,P):y.validate,S=l(w,x,g),I=w.let("valid");h.block$data(I,q),h.ok((b=y.valid)!==null&&b!==void 0?b:I);function q(){if(y.errors===!1)H(),y.modifying&&s(h),W(()=>h.error());else{const U=y.async?G():B();y.modifying&&s(h),W(()=>a(h,U))}}function G(){const U=w.let("ruleErrs",null);return w.try(()=>H((0,e._)`await `),Y=>w.assign(I,!1).if((0,e._)`${Y} instanceof ${P.ValidationError}`,()=>w.assign(U,(0,e._)`${Y}.errors`),()=>w.throw(Y))),U}function B(){const U=(0,e._)`${S}.errors`;return w.assign(U,null),H(e.nil),U}function H(U=y.async?(0,e._)`await `:e.nil){const Y=P.opts.passContext?t.default.this:t.default.self,he=!("compile"in y&&!v||y.schema===!1);w.assign(I,(0,e._)`${U}${(0,r.callValidateCode)(h,S,Y,he)}`,y.modifying)}function W(U){var Y;w.if((0,e.not)((Y=y.valid)!==null&&Y!==void 0?Y:I),U)}}vt.funcKeywordCode=o;function s(h){const{gen:y,data:b,it:w}=h;y.if(w.parentData,()=>y.assign(b,(0,e._)`${w.parentData}[${w.parentDataProperty}]`))}function a(h,y){const{gen:b}=h;b.if((0,e._)`Array.isArray(${y})`,()=>{b.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${y} : ${t.default.vErrors}.concat(${y})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(h)},()=>h.error())}function c({schemaEnv:h},y){if(y.async&&!h.$async)throw new Error("async keyword in sync schema")}function l(h,y,b){if(b===void 0)throw new Error(`keyword "${y}" failed to compile`);return h.scopeValue("keyword",typeof b=="function"?{ref:b}:{ref:b,code:(0,e.stringify)(b)})}function u(h,y,b=!1){return!y.length||y.some(w=>w==="array"?Array.isArray(h):w==="object"?h&&typeof h=="object"&&!Array.isArray(h):typeof h==w||b&&typeof h>"u")}vt.validSchemaType=u;function f({schema:h,opts:y,self:b,errSchemaPath:w},x,T){if(Array.isArray(x.keyword)?!x.keyword.includes(T):x.keyword!==T)throw new Error("ajv implementation error");const E=x.dependencies;if(E?.some(v=>!Object.prototype.hasOwnProperty.call(h,v)))throw new Error(`parent schema must have dependencies of ${T}: ${E.join(",")}`);if(x.validateSchema&&!x.validateSchema(h[T])){const P=`keyword "${T}" value is invalid at path "${w}": `+b.errorsText(x.validateSchema.errors);if(y.validateSchema==="log")b.logger.error(P);else throw new Error(P)}}return vt.validateKeywordUsage=f,vt}var Mt={},kc;function xE(){if(kc)return Mt;kc=1,Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.extendSubschemaMode=Mt.extendSubschemaData=Mt.getSubschema=void 0;const e=Pe(),t=ke();function r(o,{keyword:s,schemaProp:a,schema:c,schemaPath:l,errSchemaPath:u,topSchemaRef:f}){if(s!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(s!==void 0){const h=o.schema[s];return a===void 0?{schema:h,schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${o.errSchemaPath}/${s}`}:{schema:h[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||f===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:l,topSchemaRef:f,errSchemaPath:u}}throw new Error('either "keyword" or "schema" must be passed')}Mt.getSubschema=r;function n(o,s,{dataProp:a,dataPropType:c,data:l,dataTypes:u,propertyName:f}){if(l!==void 0&&a!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:h}=s;if(a!==void 0){const{errorPath:b,dataPathArr:w,opts:x}=s,T=h.let("data",(0,e._)`${s.data}${(0,e.getProperty)(a)}`,!0);y(T),o.errorPath=(0,e.str)`${b}${(0,t.getErrorPath)(a,c,x.jsPropertySyntax)}`,o.parentDataProperty=(0,e._)`${a}`,o.dataPathArr=[...w,o.parentDataProperty]}if(l!==void 0){const b=l instanceof e.Name?l:h.let("data",l,!0);y(b),f!==void 0&&(o.propertyName=f)}u&&(o.dataTypes=u);function y(b){o.data=b,o.dataLevel=s.dataLevel+1,o.dataTypes=[],s.definedProperties=new Set,o.parentData=s.data,o.dataNames=[...s.dataNames,b]}}Mt.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 Mt.extendSubschemaMode=i,Mt}var it={},Go={exports:{}},Dc;function TE(){if(Dc)return Go.exports;Dc=1;var e=Go.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,f,h){if(s&&typeof s=="object"&&!Array.isArray(s)){i(s,a,c,l,u,f,h);for(var y in s){var b=s[y];if(Array.isArray(b)){if(y in e.arrayKeywords)for(var w=0;w<b.length;w++)t(n,i,o,b[w],a+"/"+y+"/"+w,c,a,y,s,w)}else if(y in e.propsKeywords){if(b&&typeof b=="object")for(var x in b)t(n,i,o,b[x],a+"/"+y+"/"+r(x),c,a,y,s,x)}else(y in e.keywords||n.allKeys&&!(y in e.skipKeywords))&&t(n,i,o,b,a+"/"+y,c,a,y,s)}o(s,a,c,l,u,f,h)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return Go.exports}var qc;function xo(){if(qc)return it;qc=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=Z.requireFastDeepEqual(),r=TE(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(w,x=!0){return typeof w=="boolean"?!0:x===!0?!s(w):x?a(w)<=x:!1}it.inlineRef=i;const o=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(w){for(const x in w){if(o.has(x))return!0;const T=w[x];if(Array.isArray(T)&&T.some(s)||typeof T=="object"&&s(T))return!0}return!1}function a(w){let x=0;for(const T in w){if(T==="$ref")return 1/0;if(x++,!n.has(T)&&(typeof w[T]=="object"&&(0,e.eachItem)(w[T],E=>x+=a(E)),x===1/0))return 1/0}return x}function c(w,x="",T){T!==!1&&(x=f(x));const E=w.parse(x);return l(w,E)}it.getFullPath=c;function l(w,x){return w.serialize(x).split("#")[0]+"#"}it._getFullPath=l;const u=/#\/?$/;function f(w){return w?w.replace(u,""):""}it.normalizeId=f;function h(w,x,T){return T=f(T),w.resolve(x,T)}it.resolveUrl=h;const y=/^[a-z_][-a-z0-9._]*$/i;function b(w,x){if(typeof w=="boolean")return{};const{schemaId:T,uriResolver:E}=this.opts,v=f(w[T]||x),P={"":v},g=c(E,v,!1),S={},I=new Set;return r(w,{allKeys:!0},(B,H,W,U)=>{if(U===void 0)return;const Y=g+H;let he=P[U];typeof B[T]=="string"&&(he=we.call(this,B[T])),Oe.call(this,B.$anchor),Oe.call(this,B.$dynamicAnchor),P[H]=he;function we(de){const Te=this.opts.uriResolver.resolve;if(de=f(he?Te(he,de):de),I.has(de))throw G(de);I.add(de);let K=this.refs[de];return typeof K=="string"&&(K=this.refs[K]),typeof K=="object"?q(B,K.schema,de):de!==f(Y)&&(de[0]==="#"?(q(B,S[de],de),S[de]=B):this.refs[de]=Y),de}function Oe(de){if(typeof de=="string"){if(!y.test(de))throw new Error(`invalid anchor "${de}"`);we.call(this,`#${de}`)}}}),S;function q(B,H,W){if(H!==void 0&&!t(B,H))throw G(W)}function G(B){return new Error(`reference "${B}" resolves to more than one schema`)}}return it.getSchemaRefs=b,it}var jc;function Nr(){if(jc)return jt;jc=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.getData=jt.KeywordCxt=jt.validateFunctionCode=void 0;const e=wE(),t=no(),r=Nd(),n=no(),i=SE(),o=EE(),s=xE(),a=Pe(),c=pt(),l=xo(),u=ke(),f=Eo();function h(k){if(g(k)&&(I(k),P(k))){x(k);return}y(k,()=>(0,e.topBoolOrEmptySchema)(k))}jt.validateFunctionCode=h;function y({gen:k,validateName:F,schema:X,schemaEnv:te,opts:ge},be){ge.code.es5?k.func(F,(0,a._)`${c.default.data}, ${c.default.valCxt}`,te.$async,()=>{k.code((0,a._)`"use strict"; ${E(X,ge)}`),w(k,ge),k.code(be)}):k.func(F,(0,a._)`${c.default.data}, ${b(ge)}`,te.$async,()=>k.code(E(X,ge)).code(be))}function b(k){return(0,a._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${k.dynamicRef?(0,a._)`, ${c.default.dynamicAnchors}={}`:a.nil}, ${c.default.isAllOfVariant} = 0}={}`}function w(k,F){k.if(c.default.valCxt,()=>{k.var(c.default.instancePath,(0,a._)`${c.default.valCxt}.${c.default.instancePath}`),k.var(c.default.parentData,(0,a._)`${c.default.valCxt}.${c.default.parentData}`),k.var(c.default.parentDataProperty,(0,a._)`${c.default.valCxt}.${c.default.parentDataProperty}`),k.var(c.default.rootData,(0,a._)`${c.default.valCxt}.${c.default.rootData}`),k.var(c.default.isAllOfVariant,(0,a._)`${c.default.valCxt}.${c.default.isAllOfVariant}`),F.dynamicRef&&k.var(c.default.dynamicAnchors,(0,a._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{k.var(c.default.instancePath,(0,a._)`""`),k.var(c.default.parentData,(0,a._)`undefined`),k.var(c.default.parentDataProperty,(0,a._)`undefined`),k.var(c.default.rootData,c.default.data),k.var(c.default.isAllOfVariant,(0,a._)`0`),F.dynamicRef&&k.var(c.default.dynamicAnchors,(0,a._)`{}`)})}function x(k){const{schema:F,opts:X,gen:te}=k;y(k,()=>{X.$comment&&F.$comment&&U(k),B(k),te.let(c.default.vErrors,null),te.let(c.default.errors,0),X.unevaluated&&T(k),q(k),Y(k)})}function T(k){const{gen:F,validateName:X}=k;k.evaluated=F.const("evaluated",(0,a._)`${X}.evaluated`),F.if((0,a._)`${k.evaluated}.dynamicProps`,()=>F.assign((0,a._)`${k.evaluated}.props`,(0,a._)`undefined`)),F.if((0,a._)`${k.evaluated}.dynamicItems`,()=>F.assign((0,a._)`${k.evaluated}.items`,(0,a._)`undefined`))}function E(k,F){const X=typeof k=="object"&&k[F.schemaId];return X&&(F.code.source||F.code.process)?(0,a._)`/*# sourceURL=${X} */`:a.nil}function v(k,F){if(g(k)&&(I(k),P(k))){S(k,F);return}(0,e.boolOrEmptySchema)(k,F)}function P({schema:k,self:F}){if(typeof k=="boolean")return!k;for(const X in k)if(F.RULES.all[X])return!0;return!1}function g(k){return typeof k.schema!="boolean"}function S(k,F){const{schema:X,gen:te,opts:ge}=k;ge.$comment&&X.$comment&&U(k),H(k),W(k);const be=te.const("_errs",c.default.errors);q(k,be),te.var(F,(0,a._)`${be} === ${c.default.errors}`)}function I(k){(0,u.checkUnknownRules)(k),G(k)}function q(k,F){if(k.opts.jtd)return we(k,[],!1,F);const X=(0,t.getSchemaTypes)(k.schema),te=(0,t.coerceAndCheckDataType)(k,X);we(k,X,!te,F)}function G(k){const{schema:F,errSchemaPath:X,opts:te,self:ge}=k;F.$ref&&te.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(F,ge.RULES)&&ge.logger.warn(`$ref: keywords ignored in schema at path "${X}"`)}function B(k){const{schema:F,opts:X}=k;F.default!==void 0&&X.useDefaults&&X.strictSchema&&(0,u.checkStrictMode)(k,"default is ignored in the schema root")}function H(k){const F=k.schema[k.opts.schemaId];F&&(k.baseId=(0,l.resolveUrl)(k.opts.uriResolver,k.baseId,F))}function W(k){if(k.schema.$async&&!k.schemaEnv.$async)throw new Error("async schema in sync schema")}function U({gen:k,schemaEnv:F,schema:X,errSchemaPath:te,opts:ge}){const be=X.$comment;if(ge.$comment===!0)k.code((0,a._)`${c.default.self}.logger.log(${be})`);else if(typeof ge.$comment=="function"){const D=(0,a.str)`${te}/$comment`,ee=k.scopeValue("root",{ref:F.root});k.code((0,a._)`${c.default.self}.opts.$comment(${be}, ${D}, ${ee}.schema)`)}}function Y(k){const{gen:F,schemaEnv:X,validateName:te,ValidationError:ge,opts:be}=k;X.$async?F.if((0,a._)`${c.default.errors} === 0`,()=>F.return(c.default.data),()=>F.throw((0,a._)`new ${ge}(${c.default.vErrors})`)):(F.assign((0,a._)`${te}.errors`,c.default.vErrors),be.unevaluated&&he(k),F.return((0,a._)`${c.default.errors} === 0`))}function he({gen:k,evaluated:F,props:X,items:te}){X instanceof a.Name&&k.assign((0,a._)`${F}.props`,X),te instanceof a.Name&&k.assign((0,a._)`${F}.items`,te)}function we(k,F,X,te){const{gen:ge,schema:be,data:D,allErrors:ee,opts:pe,self:ne}=k,{RULES:oe}=ne;if(be.$ref&&(pe.ignoreKeywordsWithRef||!(0,u.schemaHasRulesButRef)(be,oe))){ge.block(()=>C(k,"$ref",oe.all.$ref.definition));return}pe.jtd||de(k,F),ge.block(()=>{for(const ue of oe.rules)le(ue);le(oe.post)});function le(ue){(0,r.shouldUseGroup)(be,ue)&&(ue.type?(ge.if((0,n.checkDataType)(ue.type,D,pe.strictNumbers)),Oe(k,ue),F.length===1&&F[0]===ue.type&&X&&(ge.else(),(0,n.reportTypeError)(k)),ge.endIf()):Oe(k,ue),ee||ge.if((0,a._)`${c.default.errors} === ${te||0}`))}}function Oe(k,F){const{gen:X,schema:te,opts:{useDefaults:ge}}=k;ge&&(0,i.assignDefaults)(k,F.type),X.block(()=>{for(const D of F.rules)((0,r.shouldUseRule)(te,D)||be(te,D))&&C(k,D.keyword,D.definition,F.type)});function be(D,ee){return!!(ee.keyword==="unevaluatedProperties"&&(D.properties||D.patternProperties)&&!k.isAllOfVariant&&k.opts.defaultUnevaluatedProperties===!1)}}function de(k,F){k.schemaEnv.meta||!k.opts.strictTypes||(Te(k,F),k.opts.allowUnionTypes||K(k,F),M(k,k.dataTypes))}function Te(k,F){if(F.length){if(!k.dataTypes.length){k.dataTypes=F;return}F.forEach(X=>{z(k.dataTypes,X)||j(k,`type "${X}" not allowed by context "${k.dataTypes.join(",")}"`)}),_(k,F)}}function K(k,F){F.length>1&&!(F.length===2&&F.includes("null"))&&j(k,"use allowUnionTypes to allow union type keyword")}function M(k,F){const X=k.self.RULES.all;for(const te in X){const ge=X[te];if(typeof ge=="object"&&(0,r.shouldUseRule)(k.schema,ge)){const{type:be}=ge.definition;be.length&&!be.some(D=>Q(F,D))&&j(k,`missing type "${be.join(",")}" for keyword "${te}"`)}}}function Q(k,F){return k.includes(F)||F==="number"&&k.includes("integer")}function z(k,F){return k.includes(F)||F==="integer"&&k.includes("number")}function _(k,F){const X=[];for(const te of k.dataTypes)z(F,te)?X.push(te):F.includes("integer")&&te==="number"&&X.push("integer");k.dataTypes=X}function j(k,F){const X=k.schemaEnv.baseId+k.errSchemaPath;F+=` at "${X}" (strictTypes)`,(0,u.checkStrictMode)(k,F,k.opts.strictTypes)}class ${constructor(F,X,te){if((0,o.validateKeywordUsage)(F,X,te),this.gen=F.gen,this.allErrors=F.allErrors,this.keyword=te,this.data=F.data,this.schema=F.schema[te],this.$data=X.$data&&F.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(F,this.schema,te,this.$data),this.schemaType=X.schemaType,this.parentSchema=F.schema,this.params={},this.it=F,this.def=X,this.$data)this.schemaCode=F.gen.const("vSchema",ae(this.$data,F));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,X.schemaType,X.allowUndefined))throw new Error(`${te} value must be ${JSON.stringify(X.schemaType)}`);("code"in X?X.trackErrors:X.errors!==!1)&&(this.errsCount=F.gen.const("_errs",c.default.errors))}result(F,X,te){this.failResult((0,a.not)(F),X,te)}failResult(F,X,te){this.gen.if(F),te?te():this.error(),X?(this.gen.else(),X(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(F,X){this.failResult((0,a.not)(F),void 0,X)}fail(F){if(F===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(F),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(F){if(!this.$data)return this.fail(F);const{schemaCode:X}=this;this.fail((0,a._)`${X} !== undefined && (${(0,a.or)(this.invalid$data(),F)})`)}error(F,X,te){if(X){this.setParams(X),this._error(F,te),this.setParams({});return}this._error(F,te)}_error(F,X){(F?f.reportExtraError:f.reportError)(this,this.def.error,X)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(F){this.allErrors||this.gen.if(F)}setParams(F,X){X?Object.assign(this.params,F):this.params=F}block$data(F,X,te=a.nil){this.gen.block(()=>{this.check$data(F,te),X()})}check$data(F=a.nil,X=a.nil){if(!this.$data)return;const{gen:te,schemaCode:ge,schemaType:be,def:D}=this;te.if((0,a.or)((0,a._)`${ge} === undefined`,X)),F!==a.nil&&te.assign(F,!0),(be.length||D.validateSchema)&&(te.elseIf(this.invalid$data()),this.$dataError(),F!==a.nil&&te.assign(F,!1)),te.else()}invalid$data(){const{gen:F,schemaCode:X,schemaType:te,def:ge,it:be}=this;return(0,a.or)(D(),ee());function D(){if(te.length){if(!(X instanceof a.Name))throw new Error("ajv implementation error");const pe=Array.isArray(te)?te:[te];return(0,a._)`${(0,n.checkDataTypes)(pe,X,be.opts.strictNumbers,n.DataType.Wrong)}`}return a.nil}function ee(){if(ge.validateSchema){const pe=F.scopeValue("validate$data",{ref:ge.validateSchema});return(0,a._)`!${pe}(${X})`}return a.nil}}subschema(F,X,te){const ge=(0,s.getSubschema)(this.it,F);(0,s.extendSubschemaData)(ge,this.it,F),(0,s.extendSubschemaMode)(ge,F);const be={...this.it,...ge,items:void 0,props:void 0,isAllOfVariant:te};return v(be,X),be}mergeEvaluated(F,X){const{it:te,gen:ge}=this;te.opts.unevaluated&&(te.props!==!0&&F.props!==void 0&&(te.props=u.mergeEvaluated.props(ge,F.props,te.props,X)),te.items!==!0&&F.items!==void 0&&(te.items=u.mergeEvaluated.items(ge,F.items,te.items,X)))}mergeValidEvaluated(F,X){const{it:te,gen:ge}=this;if(te.opts.unevaluated&&(te.props!==!0||te.items!==!0))return ge.if(X,()=>this.mergeEvaluated(F,a.Name)),!0}}jt.KeywordCxt=$;function C(k,F,X,te){const ge=new $(k,X,F);"code"in X?X.code(ge,te):ge.$data&&X.validate?(0,o.funcKeywordCode)(ge,X):"macro"in X?(0,o.macroKeywordCode)(ge,X):(X.compile||X.validate)&&(0,o.funcKeywordCode)(ge,X)}const V=/^\/(?:[^~]|~0|~1)*$/,J=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ae(k,{dataLevel:F,dataNames:X,dataPathArr:te}){let ge,be;if(k==="")return c.default.rootData;if(k[0]==="/"){if(!V.test(k))throw new Error(`Invalid JSON-pointer: ${k}`);ge=k,be=c.default.rootData}else{const ne=J.exec(k);if(!ne)throw new Error(`Invalid JSON-pointer: ${k}`);const oe=+ne[1];if(ge=ne[2],ge==="#"){if(oe>=F)throw new Error(pe("property/index",oe));return te[F-oe]}if(oe>F)throw new Error(pe("data",oe));if(be=X[F-oe],!ge)return be}let D=be;const ee=ge.split("/");for(const ne of ee)ne&&(be=(0,a._)`${be}${(0,a.getProperty)((0,u.unescapeJsonPointer)(ne))}`,D=(0,a._)`${D} && ${be}`);return D;function pe(ne,oe){return`Cannot access ${ne} ${oe} levels up, current level is ${F}`}}return jt.getData=ae,jt}var qn={},Cc;function mn(){if(Cc)return qn;Cc=1,Object.defineProperty(qn,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return qn.default=e,qn}var jn={},Mc;function kr(){if(Mc)return jn;Mc=1,Object.defineProperty(jn,"__esModule",{value:!0});const e=xo();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 jn.default=t,jn}var lt={},Lc;function To(){if(Lc)return lt;Lc=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.resolveSchema=lt.getCompilingSchema=lt.resolveRef=lt.compileSchema=lt.SchemaEnv=void 0;const e=Pe(),t=mn(),r=pt(),n=xo(),i=ke(),o=Nr();class s{constructor(T){var E;this.refs={},this.dynamicAnchors={};let v;typeof T.schema=="object"&&(v=T.schema),this.schema=T.schema,this.schemaId=T.schemaId,this.root=T.root||this,this.baseId=(E=T.baseId)!==null&&E!==void 0?E:(0,n.normalizeId)(v?.[T.schemaId||"$id"]),this.schemaPath=T.schemaPath,this.localRefs=T.localRefs,this.meta=T.meta,this.$async=v?.$async,this.refs={}}}lt.SchemaEnv=s;function a(x){const T=u.call(this,x);if(T)return T;const E=(0,n.getFullPath)(this.opts.uriResolver,x.root.baseId),{es5:v,lines:P}=this.opts.code,{ownProperties:g}=this.opts,S=new e.CodeGen(this.scope,{es5:v,lines:P,ownProperties:g});let I;x.$async&&(I=S.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const q=S.scopeName("validate");x.validateName=q;const G={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:x.schema,code:(0,e.stringify)(x.schema)}:{ref:x.schema}),validateName:q,ValidationError:I,schema:x.schema,schemaEnv:x,rootId:E,baseId:x.baseId||E,schemaPath:e.nil,errSchemaPath:x.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let B;try{this._compilations.add(x),(0,o.validateFunctionCode)(G),S.optimize(this.opts.code.optimize);const H=S.toString();B=`const visitedNodesForRef = new WeakMap(); ${S.scopeRefs(r.default.scope)}return ${H}`,this.opts.code.process&&(B=this.opts.code.process(B,x));const U=new Function(`${r.default.self}`,`${r.default.scope}`,B)(this,this.scope.get());if(this.scope.value(q,{ref:U}),U.errors=null,U.schema=x.schema,U.schemaEnv=x,x.$async&&(U.$async=!0),this.opts.code.source===!0&&(U.source={validateName:q,validateCode:H,scopeValues:S._values}),this.opts.unevaluated){const{props:Y,items:he}=G;U.evaluated={props:Y instanceof e.Name?void 0:Y,items:he instanceof e.Name?void 0:he,dynamicProps:Y instanceof e.Name,dynamicItems:he instanceof e.Name},U.source&&(U.source.evaluated=(0,e.stringify)(U.evaluated))}return x.validate=U,x}catch(H){throw delete x.validate,delete x.validateName,B&&this.logger.error("Error compiling schema, function code:",B),H}finally{this._compilations.delete(x)}}lt.compileSchema=a;function c(x,T,E){var v;const P=(0,n.resolveUrl)(this.opts.uriResolver,T,E),g=x.refs[P];if(g)return g;let S=h.call(this,x,P);if(S===void 0){const I=(v=x.localRefs)===null||v===void 0?void 0:v[P],{schemaId:q}=this.opts;I&&(S=new s({schema:I,schemaId:q,root:x,baseId:T}))}if(S===void 0&&this.opts.loadSchemaSync){const I=this.opts.loadSchemaSync(T,E,P);I&&!(this.refs[P]||this.schemas[P])&&(this.addSchema(I,P,void 0),S=h.call(this,x,P))}if(S!==void 0)return x.refs[P]=l.call(this,S)}lt.resolveRef=c;function l(x){return(0,n.inlineRef)(x.schema,this.opts.inlineRefs)?x.schema:x.validate?x:a.call(this,x)}function u(x){for(const T of this._compilations)if(f(T,x))return T}lt.getCompilingSchema=u;function f(x,T){return x.schema===T.schema&&x.root===T.root&&x.baseId===T.baseId}function h(x,T){let E;for(;typeof(E=this.refs[T])=="string";)T=E;return E||this.schemas[T]||y.call(this,x,T)}function y(x,T){const E=this.opts.uriResolver.parse(T),v=(0,n._getFullPath)(this.opts.uriResolver,E);let P=(0,n.getFullPath)(this.opts.uriResolver,x.baseId,void 0);if(Object.keys(x.schema).length>0&&v===P)return w.call(this,E,x);const g=(0,n.normalizeId)(v),S=this.refs[g]||this.schemas[g];if(typeof S=="string"){const I=y.call(this,x,S);return typeof I?.schema!="object"?void 0:w.call(this,E,I)}if(typeof S?.schema=="object"){if(S.validate||a.call(this,S),g===(0,n.normalizeId)(T)){const{schema:I}=S,{schemaId:q}=this.opts,G=I[q];return G&&(P=(0,n.resolveUrl)(this.opts.uriResolver,P,G)),new s({schema:I,schemaId:q,root:x,baseId:P})}return w.call(this,E,S)}}lt.resolveSchema=y;const b=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function w(x,{baseId:T,schema:E,root:v}){var P;if(((P=x.fragment)===null||P===void 0?void 0:P[0])!=="/")return;for(const I of x.fragment.slice(1).split("/")){if(typeof E=="boolean")return;const q=E[(0,i.unescapeFragment)(I)];if(q===void 0)return;E=q;const G=typeof E=="object"&&E[this.opts.schemaId];!b.has(I)&&G&&(T=(0,n.resolveUrl)(this.opts.uriResolver,T,G))}let g;if(typeof E!="boolean"&&E.$ref&&!(0,i.schemaHasRulesButRef)(E,this.RULES)){const I=(0,n.resolveUrl)(this.opts.uriResolver,T,E.$ref);g=y.call(this,v,I)}const{schemaId:S}=this.opts;if(g=g||new s({schema:E,schemaId:S,root:v,baseId:T}),g.schema!==g.root.schema)return g}return lt}const PE="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",OE="Meta-schema for $data reference (JSON AnySchema extension proposal)",IE="object",_E=["$data"],AE={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},RE=!1,$E={$id:PE,description:OE,type:IE,required:_E,properties:AE,additionalProperties:RE};var Cn={},zr={exports:{}},Yo,Uc;function Dd(){if(Uc)return Yo;Uc=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="",I=0,q=0;for(q=0;q<g.length;q++)if(I=g[q].charCodeAt(0),I!==48){if(!(I>=48&&I<=57||I>=65&&I<=70||I>=97&&I<=102))return"";S+=g[q];break}for(q+=1;q<g.length;q++){if(I=g[q].charCodeAt(0),!(I>=48&&I<=57||I>=65&&I<=70||I>=97&&I<=102))return"";S+=g[q]}return S}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function a(g){return g.length=0,!0}function c(g,S,I){if(g.length){const q=o(g);if(q!=="")S.push(q);else return I.error=!0,!1;g.length=0}return!0}function l(g){let S=0;const I={error:!1,address:"",zone:""},q=[],G=[];let B=!1,H=!1,W=c;for(let U=0;U<g.length;U++){const Y=g[U];if(!(Y==="["||Y==="]"))if(Y===":"){if(B===!0&&(H=!0),!W(G,q,I))break;if(++S>7){I.error=!0;break}U>0&&g[U-1]===":"&&(B=!0),q.push(":");continue}else if(Y==="%"){if(!W(G,q,I))break;W=a}else{G.push(Y);continue}}return G.length&&(W===a?I.zone=G.join(""):H?q.push(G.join("")):q.push(o(G))),I.address=q.join(""),I}function u(g){if(f(g,":")<2)return{host:g,isIPV6:!1};const S=l(g);if(S.error)return{host:g,isIPV6:!1};{let I=S.address,q=S.address;return S.zone&&(I+="%"+S.zone,q+="%25"+S.zone),{host:I,isIPV6:!0,escapedHost:q}}}function f(g,S){let I=0;for(let q=0;q<g.length;q++)g[q]===S&&I++;return I}function h(g){let S=g;const I=[];let q=-1,G=0;for(;G=S.length;){if(G===1){if(S===".")break;if(S==="/"){I.push("/");break}else{I.push(S);break}}else if(G===2){if(S[0]==="."){if(S[1]===".")break;if(S[1]==="/"){S=S.slice(2);continue}}else if(S[0]==="/"&&(S[1]==="."||S[1]==="/")){I.push("/");break}}else if(G===3&&S==="/.."){I.length!==0&&I.pop(),I.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),I.length!==0&&I.pop();continue}}if((q=S.indexOf("/",1))===-1){I.push(S);break}else I.push(S.slice(0,q)),S=S.slice(q)}return I.join("")}const y={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},b=/[@/?#:]/g,w=/[@/?#]/g;function x(g,S){const I=S?w:b;return I.lastIndex=0,g.replace(I,q=>y[q])}function T(g,S=!1){if(g.indexOf("%")===-1)return g;let I="";for(let q=0;q<g.length;q++){if(g[q]==="%"&&q+2<g.length){const G=g.slice(q+1,q+3);if(r(G)){const B=G.toUpperCase(),H=String.fromCharCode(parseInt(B,16));S&&n(H)?I+=H:I+="%"+B,q+=2;continue}}I+=g[q]}return I}function E(g){let S="";for(let I=0;I<g.length;I++){if(g[I]==="%"&&I+2<g.length){const q=g.slice(I+1,I+3);if(r(q)){const G=q.toUpperCase(),B=String.fromCharCode(parseInt(G,16));B!=="."&&n(B)?S+=B:S+="%"+G,I+=2;continue}}i(g[I])?S+=g[I]:S+=escape(g[I])}return S}function v(g){let S="";for(let I=0;I<g.length;I++){if(g[I]==="%"&&I+2<g.length){const q=g.slice(I+1,I+3);if(r(q)){S+="%"+q.toUpperCase(),I+=2;continue}}S+=escape(g[I])}return S}function P(g){const S=[];if(g.userinfo!==void 0&&(S.push(g.userinfo),S.push("@")),g.host!==void 0){let I=unescape(g.host);if(!t(I)){const q=u(I);q.isIPV6===!0?I=`[${q.escapedHost}]`:I=x(I,!1)}S.push(I)}return(typeof g.port=="number"||typeof g.port=="string")&&(S.push(":"),S.push(String(g.port))),S.length?S.join(""):void 0}return Yo={nonSimpleDomain:s,recomposeAuthority:P,reescapeHostDelimiters:x,normalizePercentEncoding:T,normalizePathEncoding:E,escapePreservingEscapes:v,removeDotSegments:h,isIPv4:t,isUUID:e,normalizeIPv6:u,stringArrayToHexStripped:o},Yo}var Qo,Fc;function NE(){if(Fc)return Qo;Fc=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,I]=g.resourceName.split("?");g.path=S&&S!=="/"?S:void 0,g.query=I,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 I=g.path.match(t);if(I){const q=S.scheme||g.scheme||"urn";g.nid=I[1].toLowerCase(),g.nss=I[2];const G=`${q}:${S.nid||g.nid}`,B=P(G);g.path=void 0,B&&(g=B.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 I=S.scheme||g.scheme||"urn",q=g.nid.toLowerCase(),G=`${I}:${S.nid||q}`,B=P(G);B&&(g=B.serialize(g,S));const H=g,W=g.nss;return H.path=`${q||S.nid}:${W}`,S.skipEscape=!0,H}function f(g,S){const I=g;return I.uuid=I.nss,I.nss=void 0,!S.tolerant&&(!I.uuid||!e(I.uuid))&&(I.error=I.error||"UUID is not valid."),I}function h(g){const S=g;return S.nss=(g.uuid||"").toLowerCase(),S}const y={scheme:"http",domainHost:!0,parse:o,serialize:s},b={scheme:"https",domainHost:y.domainHost,parse:o,serialize:s},w={scheme:"ws",domainHost:!0,parse:a,serialize:c},x={scheme:"wss",domainHost:w.domainHost,parse:w.parse,serialize:w.serialize},v={http:y,https:b,ws:w,wss:x,urn:{scheme:"urn",parse:l,serialize:u,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:h,skipNormalize:!0}};Object.setPrototypeOf(v,null);function P(g){return g&&(v[g]||v[g.toLowerCase()])||void 0}return Qo={wsIsSecure:i,SCHEMES:v,isValidSchemeName:n,getSchemeHandler:P},Qo}var Bc;function kE(){if(Bc)return zr.exports;Bc=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}=NE();function f(B,H){return typeof B=="string"?B=S(B,H):typeof B=="object"&&(B=g(w(B,H),H)),B}function h(B,H,W){const U=W?Object.assign({scheme:"null"},W):{scheme:"null"},{parsed:Y,malformedAuthorityOrPort:he}=P(B,U),{parsed:we,malformedAuthorityOrPort:Oe}=P(H,U);if(he||Oe)throw new Error(Y.error||we.error||"URI is malformed.");const de=y(Y,we,U,!0);return U.skipEscape=!0,w(de,U)}function y(B,H,W,U){const Y={};return U||(B=g(w(B,W),W),H=g(w(H,W),W)),W=W||{},!W.tolerant&&H.scheme?(Y.scheme=H.scheme,Y.userinfo=H.userinfo,Y.host=H.host,Y.port=H.port,Y.path=t(H.path||""),Y.query=H.query):(H.userinfo!==void 0||H.host!==void 0||H.port!==void 0?(Y.userinfo=H.userinfo,Y.host=H.host,Y.port=H.port,Y.path=t(H.path||""),Y.query=H.query):(H.path?(H.path[0]==="/"?Y.path=t(H.path):((B.userinfo!==void 0||B.host!==void 0||B.port!==void 0)&&!B.path?Y.path="/"+H.path:B.path?Y.path=B.path.slice(0,B.path.lastIndexOf("/")+1)+H.path:Y.path=H.path,Y.path=t(Y.path)),Y.query=H.query):(Y.path=B.path,H.query!==void 0?Y.query=H.query:Y.query=B.query),Y.userinfo=B.userinfo,Y.host=B.host,Y.port=B.port),Y.scheme=B.scheme),Y.fragment=H.fragment,Y}function b(B,H,W){const U=q(B,W),Y=q(H,W);return U!==void 0&&Y!==void 0&&U.toLowerCase()===Y.toLowerCase()}function w(B,H){const W={host:B.host,scheme:B.scheme,userinfo:B.userinfo,port:B.port,path:B.path,query:B.query,nid:B.nid,nss:B.nss,uuid:B.uuid,fragment:B.fragment,reference:B.reference,resourceName:B.resourceName,secure:B.secure,error:""},U=Object.assign({},H),Y=[],he=u(U.scheme||W.scheme);he&&he.serialize&&he.serialize(W,U),W.path!==void 0&&(U.skipEscape?W.path=n(W.path):(W.path=o(W.path),W.scheme!==void 0&&(W.path=W.path.split("%3A").join(":")))),U.reference!=="suffix"&&W.scheme&&Y.push(W.scheme,":");const we=r(W);if(we!==void 0&&(U.reference!=="suffix"&&Y.push("//"),Y.push(we),W.path&&W.path[0]!=="/"&&Y.push("/")),W.path!==void 0){let Oe=W.path;!U.absolutePath&&(!he||!he.absolutePath)&&(Oe=t(Oe)),we===void 0&&Oe[0]==="/"&&Oe[1]==="/"&&(Oe="/%2F"+Oe.slice(2)),Y.push(Oe)}return W.query!==void 0&&Y.push("?",W.query),W.fragment!==void 0&&Y.push("#",W.fragment),Y.join("")}const x=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,T=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,E=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function v(B,H){if(H[2]!==void 0&&B.path&&B.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof B.port=="number"&&(B.port<0||B.port>65535))return"URI port is malformed."}function P(B,H){const W=Object.assign({},H),U={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let Y=!1,he=!1;W.reference==="suffix"&&(W.scheme?B=W.scheme+":"+B:B="//"+B);const we=B.match(T);we!==null&&we[1].indexOf("\\")!==-1&&(U.error="URI authority must not contain a literal backslash.",Y=!0);const Oe=B.match(E);if(Oe!==null){const Te=Oe[1],K=Te.replace(/[\t\n\r]/g,"");K.length>=2&&(K.slice(0,2)!=="//"?(U.error=U.error||"URI authority must not contain a literal backslash.",Y=!0):Te.length!==K.length&&(U.error=U.error||"URI authority introducer must not contain whitespace.",Y=!0))}const de=B.match(x);if(de){U.scheme=de[1],U.userinfo=de[3],U.host=de[4],U.port=parseInt(de[5],10),U.path=de[6]||"",U.query=de[7],U.fragment=de[8],isNaN(U.port)&&(U.port=de[5]);const Te=v(U,de);if(Te!==void 0&&(U.error=U.error||Te,Y=!0),U.host)if(a(U.host)===!1){const Q=e(U.host);U.host=Q.host.toLowerCase(),he=Q.isIPV6}else he=!0;U.scheme===void 0&&U.userinfo===void 0&&U.host===void 0&&U.port===void 0&&U.query===void 0&&!U.path?U.reference="same-document":U.scheme===void 0?U.reference="relative":U.fragment===void 0?U.reference="absolute":U.reference="uri",W.reference&&W.reference!=="suffix"&&W.reference!==U.reference&&(U.error=U.error||"URI is not a "+W.reference+" reference.");const K=u(W.scheme||U.scheme);if(!W.unicodeSupport&&(!K||!K.unicodeSupport)&&U.host&&(W.domainHost||K&&K.domainHost)&&he===!1&&c(U.host))try{U.host=new URL("http://"+U.host).hostname}catch(M){U.error=U.error||"Host's domain name can not be converted to ASCII: "+M}if((!K||K&&!K.skipNormalize)&&(B.indexOf("%")!==-1&&(U.scheme!==void 0&&(U.scheme=unescape(U.scheme)),U.host!==void 0&&(U.host=s(unescape(U.host),he))),U.path&&(U.path=i(U.path)),U.fragment))try{U.fragment=encodeURI(decodeURIComponent(U.fragment))}catch{U.error=U.error||"URI malformed"}K&&K.parse&&K.parse(U,W)}else U.error=U.error||"URI can not be parsed.";return{parsed:U,malformedAuthorityOrPort:Y}}function g(B,H){return P(B,H).parsed}function S(B,H){return I(B,H).normalized}function I(B,H){const{parsed:W,malformedAuthorityOrPort:U}=P(B,H);return{normalized:U?B:w(W,H),malformedAuthorityOrPort:U}}function q(B,H){if(typeof B=="string"){const{normalized:W,malformedAuthorityOrPort:U}=I(B,H);return U?void 0:W}if(typeof B=="object")return w(B,H)}const G={SCHEMES:l,normalize:f,resolve:h,resolveComponent:y,equal:b,serialize:w,parse:g};return zr.exports=G,zr.exports.default=G,zr.exports.fastUri=G,zr.exports}var zc;function DE(){if(zc)return Cn;zc=1,Object.defineProperty(Cn,"__esModule",{value:!0});const e=kE();return e.code='require("ajv/dist/runtime/uri").default',Cn.default=e,Cn}var Vc;function Ea(){return Vc||(Vc=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=Nr();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Pe();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=mn(),i=kr(),o=$d(),s=To(),a=Pe(),c=xo(),l=no(),u=ke(),f=$E,h=DE(),y=(K,M)=>new RegExp(K,M);y.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],w=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),x={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."},T={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},E=200;function v(K){var M,Q,z,_,j,$,C,V,J,ae,k,F,X,te,ge,be,D,ee,pe,ne,oe,le,ue,fe,Ee;const Be=K.strict,p=(M=K.code)===null||M===void 0?void 0:M.optimize,d=p===!0||p===void 0?1:p||0,m=(z=(Q=K.code)===null||Q===void 0?void 0:Q.regExp)!==null&&z!==void 0?z:y,O=(_=K.uriResolver)!==null&&_!==void 0?_:h.default;return{strictSchema:($=(j=K.strictSchema)!==null&&j!==void 0?j:Be)!==null&&$!==void 0?$:!0,strictNumbers:(V=(C=K.strictNumbers)!==null&&C!==void 0?C:Be)!==null&&V!==void 0?V:!0,strictTypes:(ae=(J=K.strictTypes)!==null&&J!==void 0?J:Be)!==null&&ae!==void 0?ae:"log",strictTuples:(F=(k=K.strictTuples)!==null&&k!==void 0?k:Be)!==null&&F!==void 0?F:"log",strictRequired:(te=(X=K.strictRequired)!==null&&X!==void 0?X:Be)!==null&&te!==void 0?te:!1,code:K.code?{...K.code,optimize:d,regExp:m}:{optimize:d,regExp:m},loopRequired:(ge=K.loopRequired)!==null&&ge!==void 0?ge:E,loopEnum:(be=K.loopEnum)!==null&&be!==void 0?be:E,meta:(D=K.meta)!==null&&D!==void 0?D:!0,messages:(ee=K.messages)!==null&&ee!==void 0?ee:!0,inlineRefs:(pe=K.inlineRefs)!==null&&pe!==void 0?pe:!0,schemaId:(ne=K.schemaId)!==null&&ne!==void 0?ne:"$id",addUsedSchema:(oe=K.addUsedSchema)!==null&&oe!==void 0?oe:!0,validateSchema:(le=K.validateSchema)!==null&&le!==void 0?le:!0,validateFormats:(ue=K.validateFormats)!==null&&ue!==void 0?ue:!0,unicodeRegExp:(fe=K.unicodeRegExp)!==null&&fe!==void 0?fe:!0,int32range:(Ee=K.int32range)!==null&&Ee!==void 0?Ee:!0,uriResolver:O}}class P{constructor(M={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,M=this.opts={...M,...v(M)};const{es5:Q,lines:z}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:w,es5:Q,lines:z}),this.logger=W(M.logger);const _=M.validateFormats;M.validateFormats=!1,this.RULES=(0,o.getRules)(),g.call(this,x,M,"NOT SUPPORTED"),g.call(this,T,M,"DEPRECATED","warn"),this._metaOpts=B.call(this),M.formats&&q.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),M.keywords&&G.call(this,M.keywords),typeof M.meta=="object"&&this.addMetaSchema(M.meta),I.call(this),M.validateFormats=_}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:M,meta:Q,schemaId:z}=this.opts;let _=f;z==="id"&&(_={...f},_.id=_.$id,delete _.$id),Q&&M&&this.addMetaSchema(_,_[z],!1)}defaultMeta(){const{meta:M,schemaId:Q}=this.opts;return this.opts.defaultMeta=typeof M=="object"?M[Q]||M:void 0}setDefaultUnevaluatedProperties(M){this.opts.defaultUnevaluatedProperties=M}validate(M,Q){let z;if(typeof M=="string"){if(z=this.getSchema(M),!z)throw new Error(`no schema with key or ref "${M}"`)}else z=this.compile(M);const _=z(Q);return"$async"in z||(this.errors=z.errors),_}compile(M,Q){const z=this._addSchema(M,Q);return z.validate||this._compileSchemaEnv(z)}compileAsync(M,Q){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:z}=this.opts;return _.call(this,M,Q);async function _(ae,k){await j.call(this,ae.$schema);const F=this._addSchema(ae,k);return F.validate||$.call(this,F)}async function j(ae){ae&&!this.getSchema(ae)&&await _.call(this,{$ref:ae},!0)}async function $(ae){try{return this._compileSchemaEnv(ae)}catch(k){if(!(k instanceof i.default))throw k;return C.call(this,k),await V.call(this,k.missingSchema),$.call(this,ae)}}function C({missingSchema:ae,missingRef:k}){if(this.refs[ae])throw new Error(`AnySchema ${ae} is loaded but ${k} cannot be resolved`)}async function V(ae){const k=await J.call(this,ae);this.refs[ae]||await j.call(this,k.$schema),this.refs[ae]||this.addSchema(k,ae,Q)}async function J(ae){const k=this._loading[ae];if(k)return k;try{return await(this._loading[ae]=z(ae))}finally{delete this._loading[ae]}}}addSchema(M,Q,z,_=this.opts.validateSchema){if(Array.isArray(M)){for(const $ of M)this.addSchema($,void 0,z,_);return this}let j;if(typeof M=="object"){const{schemaId:$}=this.opts;if(j=M[$],j!==void 0&&typeof j!="string")throw new Error(`schema ${$} must be string`)}return Q=(0,c.normalizeId)(Q||j),this._checkUnique(Q),this.schemas[Q]=this._addSchema(M,z,Q,_,!0),this}addMetaSchema(M,Q,z=this.opts.validateSchema){return this.addSchema(M,Q,!0,z),this}validateSchema(M,Q){if(typeof M=="boolean")return!0;let z;if(z=M.$schema,z!==void 0&&typeof z!="string")throw new Error("$schema must be a string");if(z=z||this.opts.defaultMeta||this.defaultMeta(),!z)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const _=this.validate(z,M);if(!_&&Q){const j="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(j);else throw new Error(j)}return _}getSchema(M){let Q;for(;typeof(Q=S.call(this,M))=="string";)M=Q;if(Q===void 0){const{schemaId:z}=this.opts,_=new s.SchemaEnv({schema:{},schemaId:z});if(Q=s.resolveSchema.call(this,_,M),!Q)return;this.refs[M]=Q}return Q.validate||this._compileSchemaEnv(Q)}removeSchema(M){if(M instanceof RegExp)return this._removeAllSchemas(this.schemas,M),this._removeAllSchemas(this.refs,M),this;switch(typeof M){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const Q=S.call(this,M);return typeof Q=="object"&&this._cache.delete(Q.schema),delete this.schemas[M],delete this.refs[M],this}case"object":{const Q=M;this._cache.delete(Q);let z=M[this.opts.schemaId];return z&&(z=(0,c.normalizeId)(z),delete this.schemas[z],delete this.refs[z]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(M){for(const Q of M)this.addKeyword(Q);return this}addKeyword(M,Q){let z;if(typeof M=="string")z=M,typeof Q=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),Q.keyword=z);else if(typeof M=="object"&&Q===void 0){if(Q=M,z=Q.keyword,Array.isArray(z)&&!z.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Y.call(this,z,Q),!Q)return(0,u.eachItem)(z,j=>he.call(this,j)),this;Oe.call(this,Q);const _={...Q,type:(0,l.getJSONTypes)(Q.type),schemaType:(0,l.getJSONTypes)(Q.schemaType)};return(0,u.eachItem)(z,_.type.length===0?j=>he.call(this,j,_):j=>_.type.forEach($=>he.call(this,j,_,$))),this}getKeyword(M){const Q=this.RULES.all[M];return typeof Q=="object"?Q.definition:!!Q}removeKeyword(M){const{RULES:Q}=this;delete Q.keywords[M],delete Q.all[M];for(const z of Q.rules){const _=z.rules.findIndex(j=>j.keyword===M);_>=0&&z.rules.splice(_,1)}return this}addFormat(M,Q){return typeof Q=="string"&&(Q=new RegExp(Q)),this.formats[M]=Q,this}errorsText(M=this.errors,{separator:Q=", ",dataVar:z="data"}={}){return!M||M.length===0?"No errors":M.map(_=>`${z}${_.instancePath} ${_.message}`).reduce((_,j)=>_+Q+j)}$dataMetaSchema(M,Q){const z=this.RULES.all;M=JSON.parse(JSON.stringify(M));for(const _ of Q){const j=_.split("/").slice(1);let $=M;for(const C of j)$=$[C];for(const C in z){const V=z[C];if(typeof V!="object")continue;const{$data:J}=V.definition,ae=$[C];J&&ae&&($[C]=Te(ae))}}return M}_removeAllSchemas(M,Q){for(const z in M){const _=M[z];(!Q||Q.test(z))&&(typeof _=="string"?delete M[z]:_&&!_.meta&&(this._cache.delete(_.schema),delete M[z]))}}_addSchema(M,Q,z,_=this.opts.validateSchema,j=this.opts.addUsedSchema){let $;const{schemaId:C}=this.opts;if(typeof M=="object")$=M[C];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof M!="boolean")throw new Error("schema must be object or boolean")}let V=this._cache.get(M);if(V!==void 0)return V;z=(0,c.normalizeId)($||z);const J=c.getSchemaRefs.call(this,M,z);return V=new s.SchemaEnv({schema:M,schemaId:C,meta:Q,baseId:z,localRefs:J}),this._cache.set(V.schema,V),j&&!z.startsWith("#")&&(z&&this._checkUnique(z),this.refs[z]=V),_&&this.validateSchema(M,!0),V}_checkUnique(M){if(this.schemas[M]||this.refs[M])throw new Error(`schema with key or id "${M}" already exists`)}_compileSchemaEnv(M){if(M.meta?this._compileMetaSchema(M):s.compileSchema.call(this,M),!M.validate)throw new Error("ajv implementation error");return M.validate}_compileMetaSchema(M){const Q=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,M)}finally{this.opts=Q}}}P.ValidationError=n.default,P.MissingRefError=i.default,e.default=P;function g(K,M,Q,z="error"){for(const _ in K){const j=_;j in M&&this.logger[z](`${Q}: option ${_}. ${K[j]}`)}}function S(K){return K=(0,c.normalizeId)(K),this.schemas[K]||this.refs[K]}function I(){const K=this.opts.schemas;if(K)if(Array.isArray(K))this.addSchema(K);else for(const M in K)this.addSchema(K[M],M)}function q(){for(const K in this.opts.formats){const M=this.opts.formats[K];M&&this.addFormat(K,M)}}function G(K){if(Array.isArray(K)){this.addVocabulary(K);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const M in K){const Q=K[M];Q.keyword||(Q.keyword=M),this.addKeyword(Q)}}function B(){const K={...this.opts};for(const M of b)delete K[M];return K}const H={log(){},warn(){},error(){}};function W(K){if(K===!1)return H;if(K===void 0)return console;if(K.log&&K.warn&&K.error)return K;throw new Error("logger must implement log, warn and error methods")}const U=/^[a-z_$][a-z0-9_$:-]*$/i;function Y(K,M){const{RULES:Q}=this;if((0,u.eachItem)(K,z=>{if(Q.keywords[z])throw new Error(`Keyword ${z} is already defined`);if(!U.test(z))throw new Error(`Keyword ${z} has invalid name`)}),!!M&&M.$data&&!("code"in M||"validate"in M))throw new Error('$data keyword must have "code" or "validate" function')}function he(K,M,Q){var z;const _=M?.post;if(Q&&_)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:j}=this;let $=_?j.post:j.rules.find(({type:V})=>V===Q);if($||($={type:Q,rules:[]},j.rules.push($)),j.keywords[K]=!0,!M)return;const C={keyword:K,definition:{...M,type:(0,l.getJSONTypes)(M.type),schemaType:(0,l.getJSONTypes)(M.schemaType)}};M.before?we.call(this,$,C,M.before):$.rules.push(C),j.all[K]=C,(z=M.implements)===null||z===void 0||z.forEach(V=>this.addKeyword(V))}function we(K,M,Q){const z=K.rules.findIndex(_=>_.keyword===Q);z>=0?K.rules.splice(z,0,M):(K.rules.push(M),this.logger.warn(`rule ${Q} is not defined`))}function Oe(K){let{metaSchema:M}=K;M!==void 0&&(K.$data&&this.opts.$data&&(M=Te(M)),K.validateSchema=this.compile(M,!0))}const de={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Te(K){return{anyOf:[K,de]}}})(Bo)),Bo}var Mn={},Ln={},Un={},Kc;function qE(){if(Kc)return Un;Kc=1,Object.defineProperty(Un,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Un.default=e,Un}var Gt={},Hc;function Po(){if(Hc)return Gt;Hc=1,Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.callRef=Gt.getValidate=void 0;const e=kr(),t=Pt(),r=Pe(),n=pt(),i=To(),o=ke(),s={keyword:"$ref",schemaType:"string",code(l){const{gen:u,schema:f,it:h}=l,{baseId:y,schemaEnv:b,validateName:w,opts:x,self:T}=h,{root:E}=b;if((f==="#"||f==="#/")&&y===E.baseId)return P();const v=i.resolveRef.call(T,E,y,f);if(v===void 0)throw new e.default(h.opts.uriResolver,y,f);if(v instanceof i.SchemaEnv)return g(v);return S(v);function P(){if(b===E)return c(l,w,b,b.$async);const I=u.scopeValue("root",{ref:E});return c(l,(0,r._)`${I}.validate`,E,E.$async)}function g(I){const q=a(l,I);c(l,q,I,I.$async)}function S(I){const q=u.scopeValue("schema",x.code.source===!0?{ref:I,code:(0,r.stringify)(I)}:{ref:I}),G=u.name("valid"),B=l.subschema({schema:I,dataTypes:[],schemaPath:r.nil,topSchemaRef:q,errSchemaPath:f},G,h.isAllOfVariant);l.mergeEvaluated(B),l.ok(G)}}};function a(l,u){const{gen:f}=l;return u.validate?f.scopeValue("validate",{ref:u.validate}):(0,r._)`${f.scopeValue("wrapper",{ref:u})}.validate`}Gt.getValidate=a;function c(l,u,f,h){const{gen:y,it:b}=l,{allErrors:w,schemaEnv:x,opts:T}=b,E=T.passContext?n.default.this:r.nil;h?v():P();function v(){if(!x.$async)throw new Error("async schema referenced by sync schema");const I=y.let("valid");y.try(()=>{y.code((0,r._)`await ${(0,t.callValidateCode)(l,u,E)}`),S(u),w||y.assign(I,!0)},q=>{y.if((0,r._)`!(${q} instanceof ${b.ValidationError})`,()=>y.throw(q)),g(q),w||y.assign(I,!1)}),l.ok(I)}function P(){const I=y.name("visitedNodes");y.code((0,r._)`const ${I} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${u}) || new Set()`),y.if((0,r._)`!${I}.has(${l.data})`,()=>{y.code((0,r._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${u}, ${I})`),y.code((0,r._)`const dataNode = ${l.data}`),y.code((0,r._)`if (typeof dataNode === "object" && dataNode !== null) ${I}.add(dataNode)`);const q=l.result((0,t.callValidateCode)(l,u,E),()=>S(u),()=>g(u));return y.code((0,r._)`${I}.delete(dataNode)`),q})}function g(I){const q=(0,r._)`${I}.errors`;y.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${q} : ${n.default.vErrors}.concat(${q})`),y.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function S(I){var q;if(!b.opts.unevaluated)return;const G=(q=f?.validate)===null||q===void 0?void 0:q.evaluated;if(b.props!==!0)if(G&&!G.dynamicProps)G.props!==void 0&&(b.props=o.mergeEvaluated.props(y,G.props,b.props));else{const B=y.var("props",(0,r._)`${I}.evaluated.props`);b.props=o.mergeEvaluated.props(y,B,b.props,r.Name)}if(b.items!==!0)if(G&&!G.dynamicItems)G.items!==void 0&&(b.items=o.mergeEvaluated.items(y,G.items,b.items));else{const B=y.var("items",(0,r._)`${I}.evaluated.items`);b.items=o.mergeEvaluated.items(y,B,b.items,r.Name)}}}return Gt.callRef=c,Gt.default=s,Gt}var Gc;function qd(){if(Gc)return Ln;Gc=1,Object.defineProperty(Ln,"__esModule",{value:!0});const e=qE(),t=Po(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Ln.default=r,Ln}var Fn={},Bn={},Yc;function jE(){if(Yc)return Bn;Yc=1,Object.defineProperty(Bn,"__esModule",{value:!0});const e=Pe(),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 Bn.default=i,Bn}var zn={},Qc;function CE(){if(Qc)return zn;Qc=1,Object.defineProperty(zn,"__esModule",{value:!0});const e=Pe(),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 zn.default=r,zn}var Vn={},Kn={},Wc;function ME(){if(Wc)return Kn;Wc=1,Object.defineProperty(Kn,"__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 Kn.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Kn}var Jc;function LE(){if(Jc)return Vn;Jc=1,Object.defineProperty(Vn,"__esModule",{value:!0});const e=Pe(),t=ke(),r=ME(),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,f=l.opts.unicode===!1?(0,e._)`${a}.length`:(0,e._)`${(0,t.useFunc)(o.gen,r.default)}(${a})`;o.fail$data((0,e._)`${f} ${u} ${c}`)}};return Vn.default=i,Vn}var Hn={},Xc;function UE(){if(Xc)return Hn;Xc=1,Object.defineProperty(Hn,"__esModule",{value:!0});const e=Pt(),t=ke(),r=Pe(),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:f}=o,h=f.opts.unicodeRegExp?"u":"";if(c){const{regExp:y}=f.opts.code,b=y.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(s,y),w=s.let("valid");s.try(()=>s.assign(w,(0,r._)`${b}(${u}, ${h}).test(${a})`),()=>s.assign(w,!1)),o.fail$data((0,r._)`!${w}`)}else{const y=(0,e.usePattern)(o,l);o.fail$data((0,r._)`!${y}.test(${a})`)}}};return Hn.default=i,Hn}var Gn={},Zc;function FE(){if(Zc)return Gn;Zc=1,Object.defineProperty(Gn,"__esModule",{value:!0});const e=Pe(),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 Gn.default=r,Gn}var Yn={},ep;function BE(){if(ep)return Yn;ep=1,Object.defineProperty(Yn,"__esModule",{value:!0});const e=Pt(),t=kd(),r=Pe(),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:f,it:h}=s,{opts:y}=h;if(!f&&c.length===0)return;const b=c.length>=y.loopRequired;if(h.allErrors?w():x(),y.strictRequired){const v=s.parentSchema.properties,{definedProperties:P}=s.it;for(const g of c)if(v?.[g]===void 0&&!P.has(g)){const S=h.schemaEnv.baseId+h.errSchemaPath,I=`required property "${g}" is not defined at "${S}" (strictRequired)`;(0,n.checkStrictMode)(h,I,h.opts.strictRequired)}}function w(){var v;if(b||f)s.block$data(r.nil,T);else for(const P of c){const g=(v=(0,t.getSkipCondition)(s.parentSchema,P))!==null&&v!==void 0?v:(0,r._)`false`;a.if((0,r.not)(g),()=>(0,e.checkReportMissingProp)(s,P))}}function x(){const v=a.let("missing");if(b||f){const P=a.let("valid",!0);s.block$data(P,()=>E(v,P)),s.ok(P)}else a.if((0,e.checkMissingProp)(s,c,v)),(0,e.reportMissingProp)(s,v),a.else()}function T(){a.forOf("prop",l,v=>{s.setParams({missingProperty:v}),a.if((0,e.noPropertyInData)(a,u,v,y.ownProperties),()=>s.error())})}function E(v,P){s.setParams({missingProperty:v}),a.forOf(v,l,()=>{a.assign(P,(0,e.propertyInData)(a,u,v,y.ownProperties)),a.if((0,r.not)(P),()=>{s.error(),a.break()})},r.nil)}}};return Yn.default=o,Yn}var Qn={},tp;function zE(){if(tp)return Qn;tp=1,Object.defineProperty(Qn,"__esModule",{value:!0});const e=Pe(),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 Qn.default=n,Qn}var Wn={},rp;function VE(){if(rp)return Wn;rp=1,Object.defineProperty(Wn,"__esModule",{value:!0});const e=Pe(),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 Wn.default=n,Wn}var Jn={},np;function KE(){if(np)return Jn;np=1,Object.defineProperty(Jn,"__esModule",{value:!0});const e=Pe(),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 Jn.default=r,Jn}var Xn={},Zn={},ip;function xa(){if(ip)return Zn;ip=1,Object.defineProperty(Zn,"__esModule",{value:!0});const e=Z.requireFastDeepEqual();return e.code='require("ajv/dist/runtime/equal").default',Zn.default=e,Zn}var op;function HE(){if(op)return Xn;op=1,Object.defineProperty(Xn,"__esModule",{value:!0});const e=no(),t=Pe(),r=ke(),n=xa(),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:f,schemaCode:h,it:y}=s;if(!l&&!u)return;const b=a.let("valid"),w=f.items?(0,e.getSchemaTypes)(f.items):[];s.block$data(b,x,(0,t._)`${h} === false`),s.ok(b);function x(){const P=a.let("i",(0,t._)`${c}.length`),g=a.let("j");s.setParams({i:P,j:g}),a.assign(b,!0),a.if((0,t._)`${P} > 1`,()=>(T()?E:v)(P,g))}function T(){return w.length>0&&!w.some(P=>P==="object"||P==="array")}function E(P,g){const S=a.name("item"),I=(0,e.checkDataTypes)(w,S,y.opts.strictNumbers,e.DataType.Wrong),q=a.const("indices",(0,t._)`{}`);a.for((0,t._)`;${P}--;`,()=>{a.let(S,(0,t._)`${c}[${P}]`),a.if(I,(0,t._)`continue`),w.length>1&&a.if((0,t._)`typeof ${S} == "string"`,(0,t._)`${S} += "_"`),a.if((0,t._)`typeof ${q}[${S}] == "number"`,()=>{a.assign(g,(0,t._)`${q}[${S}]`),s.error(),a.assign(b,!1).break()}).code((0,t._)`${q}[${S}] = ${P}`)})}function v(P,g){const S=(0,r.useFunc)(a,n.default),I=a.name("outer");a.label(I).for((0,t._)`;${P}--;`,()=>a.for((0,t._)`${g} = ${P}; ${g}--;`,()=>a.if((0,t._)`${S}(${c}[${P}], ${c}[${g}])`,()=>{s.error(),a.assign(b,!1).break(I)})))}}};return Xn.default=o,Xn}var ei={},sp;function GE(){if(sp)return ei;sp=1,Object.defineProperty(ei,"__esModule",{value:!0});const e=Pe(),t=ke(),r=xa(),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 ei.default=i,ei}var ti={},ap;function YE(){if(ap)return ti;ap=1,Object.defineProperty(ti,"__esModule",{value:!0});const e=Pe(),t=ke(),r=xa(),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:f}=o;if(!c&&l.length===0)throw new Error("enum must have non-empty array");const h=l.length>=f.opts.loopEnum;let y;const b=()=>y??(y=(0,t.useFunc)(s,r.default));let w;if(h||c)w=s.let("valid"),o.block$data(w,x);else{if(!Array.isArray(l))throw new Error("ajv implementation error");const E=s.const("vSchema",u);w=(0,e.or)(...l.map((v,P)=>T(E,P)))}o.pass(w);function x(){s.assign(w,!1),s.forOf("v",u,E=>s.if((0,e._)`${b()}(${a}, ${E})`,()=>s.assign(w,!0).break()))}function T(E,v){const P=l[v];return typeof P=="object"&&P!==null?(0,e._)`${b()}(${a}, ${E}[${v}])`:(0,e._)`${a} === ${P}`}}};return ti.default=i,ti}var cp;function Ta(){if(cp)return Fn;cp=1,Object.defineProperty(Fn,"__esModule",{value:!0});const e=jE(),t=CE(),r=LE(),n=UE(),i=FE(),o=BE(),s=zE(),a=VE(),c=KE(),l=HE(),u=GE(),f=YE(),h=[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,f.default];return Fn.default=h,Fn}var ri={},yr={},pp;function jd(){if(pp)return yr;pp=1,Object.defineProperty(yr,"__esModule",{value:!0}),yr.validateAdditionalItems=void 0;const e=Pe(),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:f}=o;f.items=!0;const h=a.const("len",(0,e._)`${l}.length`);if(c===!1)o.setParams({len:s.length}),o.pass((0,e._)`${h} <= ${s.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(f,c)){const b=a.var("valid",(0,e._)`${h} <= ${s.length}`);a.if((0,e.not)(b),()=>y(b)),o.ok(b)}function y(b){a.forRange("i",s.length,h,w=>{o.subschema({keyword:u,dataProp:w,dataPropType:t.Type.Num},b),f.allErrors||a.if((0,e.not)(b),()=>a.break())})}}return yr.validateAdditionalItems=i,yr.default=n,yr}var ni={},gr={},lp;function Cd(){if(lp)return gr;lp=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.validateTuple=void 0;const e=Pe(),t=ke(),r=Pt(),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:f,it:h}=o;w(l),h.opts.unevaluated&&a.length&&h.items!==!0&&(h.items=t.mergeEvaluated.items(c,a.length,h.items));const y=c.name("valid"),b=c.const("len",(0,e._)`${u}.length`);a.forEach((x,T)=>{(0,t.alwaysValidSchema)(h,x)||(c.if((0,e._)`${b} > ${T}`,()=>o.subschema({keyword:f,schemaProp:T,dataProp:T},y)),o.ok(y))});function w(x){const{opts:T,errSchemaPath:E}=h,v=a.length,P=v===x.minItems&&(v===x.maxItems||x[s]===!1);if(T.strictTuples&&!P){const g=`"${f}" is ${v}-tuple, but minItems or maxItems/${s} are not specified or different at path "${E}"`;(0,t.checkStrictMode)(h,g,T.strictTuples)}}}return gr.validateTuple=i,gr.default=n,gr}var up;function QE(){if(up)return ni;up=1,Object.defineProperty(ni,"__esModule",{value:!0});const e=Cd(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return ni.default=t,ni}var ii={},dp;function WE(){if(dp)return ii;dp=1,Object.defineProperty(ii,"__esModule",{value:!0});const e=Pe(),t=ke(),r=Pt(),n=jd(),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 ii.default=o,ii}var oi={},fp;function JE(){if(fp)return oi;fp=1,Object.defineProperty(oi,"__esModule",{value:!0});const e=Pe(),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,f;const{minContains:h,maxContains:y}=a;l.opts.next?(u=h===void 0?1:h,f=y):u=1;const b=o.const("len",(0,e._)`${c}.length`);if(i.setParams({min:u,max:f}),f===void 0&&u===0){(0,t.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(f!==void 0&&u>f){(0,t.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,t.alwaysValidSchema)(l,s)){let v=(0,e._)`${b} >= ${u}`;f!==void 0&&(v=(0,e._)`${v} && ${b} <= ${f}`),i.pass(v);return}l.items=!0;const w=o.name("valid");f===void 0&&u===1?T(w,()=>o.if(w,()=>o.break())):u===0?(o.let(w,!0),f!==void 0&&o.if((0,e._)`${c}.length > 0`,x)):(o.let(w,!1),x()),i.result(w,()=>i.reset());function x(){const v=o.name("_valid"),P=o.let("count",0);T(v,()=>o.if(v,()=>E(P)))}function T(v,P){o.forRange("i",0,b,g=>{i.subschema({keyword:"contains",dataProp:g,dataPropType:t.Type.Num,compositeRule:!0},v),P()})}function E(v){o.code((0,e._)`${v}++`),f===void 0?o.if((0,e._)`${v} >= ${u}`,()=>o.assign(w,!0).break()):(o.if((0,e._)`${v} > ${f}`,()=>o.assign(w,!1).break()),u===1?o.assign(w,!0):o.if((0,e._)`${v} >= ${u}`,()=>o.assign(w,!0)))}}};return oi.default=n,oi}var Wo={},mp;function Pa(){return mp||(mp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Pe(),r=ke(),n=Pt();e.error={message:({params:{property:c,depsCount:l,deps:u}})=>{const f=l===1?"property":"properties";return(0,t.str)`must have ${f} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:l,deps:u,missingProperty:f}})=>(0,t._)`{property: ${c},
6
6
  missingProperty: ${f},
7
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 f in c){if(f==="__proto__")continue;const y=Array.isArray(c[f])?l:u;y[f]=c[f]}return[l,u]}function s(c,l=c.schema){const{gen:u,data:f,it:y}=c;if(Object.keys(l).length===0)return;const h=u.let("missing");for(const b in l){const w=l[b];if(w.length===0)continue;const E=(0,n.propertyInData)(u,f,b,y.opts.ownProperties);c.setParams({property:b,depsCount:w.length,deps:w.join(", ")}),y.allErrors?u.if(E,()=>{for(const T of w)(0,n.checkReportMissingProp)(c,T)}):(u.if((0,t._)`${E} && (${(0,n.checkMissingProp)(c,w,h)})`),(0,n.reportMissingProp)(c,h),u.else())}}e.validatePropertyDeps=s;function a(c,l=c.schema){const{gen:u,data:f,keyword:y,it:h}=c,b=u.name("valid");for(const w in l)(0,r.alwaysValidSchema)(h,l[w])||(u.if((0,n.propertyInData)(u,f,w,h.opts.ownProperties),()=>{const E=c.subschema({keyword:y,schemaProp:w},b);c.mergeValidEvaluated(E,b)},()=>u.var(b,!0)),c.ok(b))}e.validateSchemaDeps=a,e.default=i})(Go)),Go}var ni={},dp;function FE(){if(dp)return ni;dp=1,Object.defineProperty(ni,"__esModule",{value:!0});const e=Pe(),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 ni.default=n,ni}var ii={},fp;function Dd(){if(fp)return ii;fp=1,Object.defineProperty(ii,"__esModule",{value:!0});const e=Pt(),t=Pe(),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:f}=s,{schema:y=f.opts.defaultAdditionalProperties}=s;if(!u)throw new Error("ajv implementation error");const{allErrors:h,opts:b}=f;if(f.props=!0,b.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(f,y))return;const w=(0,e.allSchemaProperties)(c.properties),E=(0,e.allSchemaProperties)(c.patternProperties);T(),s.ok((0,t._)`${u} === ${r.default.errors}`);function T(){a.forIn("key",l,S=>{!w.length&&!E.length?x(S):a.if(I(S),()=>x(S))})}function I(S){let O;if(w.length>8){const k=(0,n.schemaRefOrVal)(f,c.properties,"properties");O=(0,e.isOwnProperty)(a,k,S)}else w.length?O=(0,t.or)(...w.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(b.removeAdditional==="all"||b.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)(f,y)){const O=a.name("valid");b.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 G={keyword:"additionalProperties",dataProp:S,dataPropType:n.Type.Str};k===!1&&Object.assign(G,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(G,O)}}};return ii.default=o,ii}var oi={},mp;function BE(){if(mp)return oi;mp=1,Object.defineProperty(oi,"__esModule",{value:!0});const e=$r(),t=Pt(),r=ke(),n=Dd(),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 f=(0,t.allSchemaProperties)(a);for(const E of f)u.definedProperties.add(E);u.opts.unevaluated&&f.length&&u.props!==!0&&(u.props=r.mergeEvaluated.props(s,(0,r.toHash)(f),u.props));const y=f.filter(E=>!(0,r.alwaysValidSchema)(u,a[E]));if(y.length===0)return;const h=s.name("valid");for(const E of y)b(E)?w(E):(s.if((0,t.propertyInData)(s,l,E,u.opts.ownProperties)),w(E),u.allErrors||s.else().var(h,!0),s.endIf()),o.it.definedProperties.add(E),o.ok(h);function b(E){return u.opts.useDefaults&&!u.compositeRule&&a[E].default!==void 0}function w(E){o.subschema({keyword:"properties",schemaProp:E,dataProp:E},h)}}};return oi.default=i,oi}var si={},hp;function zE(){if(hp)return si;hp=1,Object.defineProperty(si,"__esModule",{value:!0});const e=Pt(),t=Pe(),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:f}=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 b=f.strictSchema&&!f.allowMatchingProperties&&l.properties,w=s.name("valid");u.props!==!0&&!(u.props instanceof t.Name)&&(u.props=(0,n.evaluatedPropsToName)(s,u.props));const{props:E}=u;T();function T(){for(const x of y)b&&I(x),u.allErrors?v(x):(s.var(w,!0),v(x),s.if(w))}function I(x){for(const g in b)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},w),u.opts.unevaluated&&E!==!0?s.assign((0,t._)`${E}[${g}]`,!0):!S&&!u.allErrors&&s.if((0,t.not)(w),()=>s.break())})})}}};return si.default=i,si}var ai={},yp;function VE(){if(yp)return ai;yp=1,Object.defineProperty(ai,"__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 ai.default=t,ai}var ci={},gp;function KE(){if(gp)return ci;gp=1,Object.defineProperty(ci,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Pt().validateUnion,error:{message:"must match a schema in anyOf"}};return ci.default=t,ci}var pi={},vp;function HE(){if(vp)return pi;vp=1,Object.defineProperty(pi,"__esModule",{value:!0});const e=Pe(),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),f=o.let("passing",null),y=o.name("_valid");i.setParams({passing:f}),o.block(h),i.result(u,()=>i.reset(),()=>i.error(!0));function h(){l.forEach((b,w)=>{let E;(0,t.alwaysValidSchema)(c,b)?o.var(y,!0):E=i.subschema({keyword:"oneOf",schemaProp:w,compositeRule:!0},y),w>0&&o.if((0,e._)`${y} && ${u}`).assign(u,!1).assign(f,(0,e._)`[${f}, ${w}]`).else(),o.if(y,()=>{o.assign(u,!0),o.assign(f,w),E&&i.mergeEvaluated(E,e.Name)})})}}};return pi.default=n,pi}var li={},bp;function GE(){if(bp)return li;bp=1,Object.defineProperty(li,"__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 li.default=t,li}var ui={},wp;function YE(){if(wp)return ui;wp=1,Object.defineProperty(ui,"__esModule",{value:!0});const e=Pe(),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 f=s.let("valid",!0),y=s.name("_valid");if(h(),o.reset(),l&&u){const w=s.let("ifClause");o.setParams({ifClause:w}),s.if(y,b("then",w),b("else",w))}else l?s.if(y,b("then")):s.if((0,e.not)(y),b("else"));o.pass(f,()=>o.error(!0));function h(){const w=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},y);o.mergeEvaluated(w)}function b(w,E){return()=>{const T=o.subschema({keyword:w},y);s.assign(f,y),o.mergeValidEvaluated(T,f),E?s.assign(E,(0,e._)`${w}`):o.setParams({ifClause:w})}}}};function i(o,s){const a=o.schema[s];return a!==void 0&&!(0,t.alwaysValidSchema)(o,a)}return ui.default=n,ui}var di={},Sp;function QE(){if(Sp)return di;Sp=1,Object.defineProperty(di,"__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 di.default=t,di}var Ep;function Ta(){if(Ep)return Zn;Ep=1,Object.defineProperty(Zn,"__esModule",{value:!0});const e=Nd(),t=ME(),r=kd(),n=LE(),i=UE(),o=xa(),s=FE(),a=Dd(),c=BE(),l=zE(),u=VE(),f=KE(),y=HE(),h=GE(),b=YE(),w=QE();function E(T=!1){const I=[u.default,f.default,y.default,h.default,b.default,w.default,s.default,a.default,o.default,c.default,l.default];return T?I.push(t.default,n.default):I.push(e.default,r.default),I.push(i.default),I}return Zn.default=E,Zn}var fi={},vr={},xp;function qd(){if(xp)return vr;xp=1,Object.defineProperty(vr,"__esModule",{value:!0}),vr.dynamicAnchor=void 0;const e=Pe(),t=pt(),r=So(),n=Eo(),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 f=(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(c)}`,y=u.errSchemaPath==="#"?u.validateName:s(a);l.if((0,e._)`!${f}`,()=>l.assign(f,y))}vr.dynamicAnchor=o;function s(a){const{schemaEnv:c,schema:l,self:u}=a.it,{root:f,baseId:y,localRefs:h,meta:b}=c.root,{schemaId:w}=u.opts,E=new r.SchemaEnv({schema:l,schemaId:w,root:f,baseId:y,localRefs:h,meta:b});return r.compileSchema.call(u,E),(0,n.getValidate)(a,E)}return vr.default=i,vr}var br={},Tp;function Cd(){if(Tp)return br;Tp=1,Object.defineProperty(br,"__esModule",{value:!0}),br.dynamicRef=void 0;const e=Pe(),t=pt(),r=Eo(),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)f();else{const h=a.let("valid",!1);f(h),o.ok(h)}function f(h){if(l.schemaEnv.root.dynamicAnchors[u]){const b=a.let("_v",(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(u)}`);a.if(b,y(b,h),y(l.validateName,h))}else y(l.validateName,h)()}function y(h,b){return b?()=>a.block(()=>{(0,r.callRef)(o,h),a.let(b,!0)}):()=>(0,r.callRef)(o,h)}}return br.dynamicRef=i,br.default=n,br}var mi={},Pp;function WE(){if(Pp)return mi;Pp=1,Object.defineProperty(mi,"__esModule",{value:!0});const e=qd(),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 mi.default=r,mi}var hi={},Op;function JE(){if(Op)return hi;Op=1,Object.defineProperty(hi,"__esModule",{value:!0});const e=Cd(),t={keyword:"$recursiveRef",schemaType:"string",code:r=>(0,e.dynamicRef)(r,r.schema)};return hi.default=t,hi}var Ip;function XE(){if(Ip)return fi;Ip=1,Object.defineProperty(fi,"__esModule",{value:!0});const e=qd(),t=Cd(),r=WE(),n=JE(),i=[e.default,t.default,r.default,n.default];return fi.default=i,fi}var yi={},gi={},_p;function ZE(){if(_p)return gi;_p=1,Object.defineProperty(gi,"__esModule",{value:!0});const e=xa(),t={keyword:"dependentRequired",type:"object",schemaType:"object",error:e.error,code:r=>(0,e.validatePropertyDeps)(r)};return gi.default=t,gi}var vi={},Ap;function ex(){if(Ap)return vi;Ap=1,Object.defineProperty(vi,"__esModule",{value:!0});const e=xa(),t={keyword:"dependentSchemas",type:"object",schemaType:"object",code:r=>(0,e.validateSchemaDeps)(r)};return vi.default=t,vi}var bi={},Rp;function tx(){if(Rp)return bi;Rp=1,Object.defineProperty(bi,"__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 bi.default=t,bi}var $p;function rx(){if($p)return yi;$p=1,Object.defineProperty(yi,"__esModule",{value:!0});const e=ZE(),t=ex(),r=tx(),n=[e.default,t.default,r.default];return yi.default=n,yi}var wi={},Si={},Np;function nx(){if(Np)return Si;Np=1,Object.defineProperty(Si,"__esModule",{value:!0});const e=Pe(),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,f=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,T=>s.if(w(h,T),()=>b(T))));else if(h!==!0){const T=()=>s.forIn("key",c,I=>h===void 0?b(I):s.if(E(h,I),()=>b(I)));f&&u.errorPath.emptyStr()&&!u.compositeRule?s.if((0,e._)`${r.default.isAllOfVariant} === 0`,T):(!u.compositeRule||o.schema!==void 0)&&T()}f||(u.props=!0),o.ok((0,e._)`${l} === ${r.default.errors}`);function b(T){if(a===!1){o.setParams({unevaluatedProperty:T}),o.error(),y||s.break();return}if(!(0,t.alwaysValidSchema)(u,a)){const I=s.name("valid");o.subschema({keyword:"unevaluatedProperties",dataProp:T,dataPropType:t.Type.Str},I),y||s.if((0,e.not)(I),()=>s.break())}}function w(T,I){return(0,e._)`!${T} || !${T}[${I}]`}function E(T,I){const v=[];for(const x in T)T[x]===!0&&v.push((0,e._)`${I} !== ${x}`);return(0,e.and)(...v)}}};return Si.default=i,Si}var Ei={},kp;function ix(){if(kp)return Ei;kp=1,Object.defineProperty(Ei,"__esModule",{value:!0});const e=Pe(),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),()=>f(y,l)),i.ok(y)}c.items=!0;function f(y,h){o.forRange("i",h,u,b=>{i.subschema({keyword:"unevaluatedItems",dataProp:b,dataPropType:t.Type.Num},y),c.allErrors||o.if((0,e.not)(y),()=>o.break())})}}};return Ei.default=n,Ei}var Dp;function jd(){if(Dp)return wi;Dp=1,Object.defineProperty(wi,"__esModule",{value:!0});const e=nx(),t=ix(),r=[e.default,t.default];return wi.default=r,wi}var xi={},Ti={},qp;function ox(){if(qp)return Ti;qp=1,Object.defineProperty(Ti,"__esModule",{value:!0});const e=Pe(),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:f,errSchemaPath:y,schemaEnv:h,self:b}=u;if(!f.validateFormats)return;a?w():E();function w(){const T=o.scopeValue("formats",{ref:b.formats,code:f.code.formats}),I=o.const("fDef",(0,e._)`${T}[${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 f.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 T=b.formats[c];if(!T){g();return}if(T===!0)return;const[I,v,x]=S(T);I===i&&n.pass(O());function g(){if(f.strictSchema===!1){b.logger.warn(k());return}throw new Error(k());function k(){return`unknown format "${c}" ignored in schema at path "${y}"`}}function S(k){const G=k instanceof RegExp?(0,e.regexpCode)(k):f.code.formats?(0,e._)`${f.code.formats}${(0,e.getProperty)(c)}`:void 0,B=o.scopeValue("formats",{key:c,ref:k,code:G});return typeof k=="object"&&!(k instanceof RegExp)?[k.type||"string",k.validate,(0,e._)`${B}.validate`]:["string",k,B]}function O(){if(typeof T=="object"&&!(T instanceof RegExp)&&T.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 Ti.default=r,Ti}var Cp;function Pa(){if(Cp)return xi;Cp=1,Object.defineProperty(xi,"__esModule",{value:!0});const t=[ox().default];return xi.default=t,xi}var rr={},jp;function Md(){return jp||(jp=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.contentVocabulary=rr.metadataVocabulary=void 0,rr.metadataVocabulary=["title","description","default","deprecated","examples"],rr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),rr}var Mp;function sx(){if(Mp)return qn;Mp=1,Object.defineProperty(qn,"__esModule",{value:!0});const e=$d(),t=Ea(),r=Ta(),n=XE(),i=rx(),o=jd(),s=Pa(),a=Md(),c=[n.default,e.default,t.default,(0,r.default)(!0),s.default,a.metadataVocabulary,a.contentVocabulary,i.default,o.default];return qn.default=c,qn}var Pi={},Br={},Lp;function ax(){if(Lp)return Br;Lp=1,Object.defineProperty(Br,"__esModule",{value:!0}),Br.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Br.DiscrError=e={})),Br}var Up;function Oa(){if(Up)return Pi;Up=1,Object.defineProperty(Pi,"__esModule",{value:!0});const e=Pe(),t=ax(),r=So(),n=Nr(),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 f of c.allOf)if(!((u=f?.properties)===null||u===void 0)&&u[l])return f.properties[l]}}const a={keyword:"discriminator",type:"object",schemaType:"object",error:o,code(c){const{gen:l,data:u,schema:f,parentSchema:y,it:h}=c,b=y.oneOf?"oneOf":y.anyOf?"anyOf":void 0;if(!h.opts.discriminator)throw new Error("discriminator: requires discriminator option");const w=f.propertyName;if(typeof w!="string")throw new Error("discriminator: requires propertyName");if(!b)throw new Error("discriminator: requires oneOf or anyOf composite keyword");const E=y[b],T=l.let("valid",!1),I=l.const("tag",(0,e._)`${u}${(0,e.getProperty)(w)}`);l.if((0,e._)`typeof ${I} == "string"`,()=>v(),()=>c.error(!1,{discrError:t.DiscrError.Tag,tag:I,tagName:w})),c.ok(T);function v(){const S=g();l.if(!1);for(const O in S)l.elseIf((0,e._)`${I} === ${O}`),l.assign(T,x(S[O]));l.else(),c.error(!1,{discrError:t.DiscrError.Mapping,tag:I,tagName:w}),l.endIf()}function x(S){const O=l.name("valid"),k=c.subschema({keyword:b,schemaProp:S},O);return c.mergeEvaluated(k,e.Name),O}function g(){var S;const O={},k=B(y);let G=!0;for(let U=0;U<E.length;U++){let Y=E[U];const he=Y?.$ref;if(he&&f.mapping){const{mapping:Oe}=f,de=Object.keys(Oe).filter(Te=>Oe[Te]===Y.$ref);if(de.length){for(const Te of de)W(Te,U);continue}}if(he&&!(0,i.schemaHasRulesButRef)(Y,h.self.RULES)&&(Y=r.resolveRef.call(h.self,h.schemaEnv.root,h.baseId,he),Y instanceof r.SchemaEnv&&(Y=Y.schema),Y===void 0))throw new n.default(h.opts.uriResolver,h.baseId,he);let we=(S=Y?.properties)===null||S===void 0?void 0:S[w];if(!we&&Y?.allOf&&(we=s(Y,w)),typeof we!="object")throw new Error(`discriminator: ${b} subschemas (or referenced schemas) must have "properties/${w}" or match mapping`);G=G&&(k||B(Y)),K(we,U)}if(!G)throw new Error(`discriminator: "${w}" must be required`);return O;function B(U){if(Array.isArray(U.required)&&U.required.includes(w))return!0;if(U.allOf&&Array.isArray(U.allOf))for(const Y of U.allOf){const he=Y;if(Array.isArray(he.required)&&he.required.includes(w))return!0}return!1}function K(U,Y){if(U.const)W(U.const,Y);else if(U.enum)for(const he of U.enum)W(he,Y);else throw new Error(`discriminator: "properties/${w}" must have "const" or "enum"`)}function W(U,Y){if(typeof U!="string"||U in O)throw new Error(`discriminator: "${w}" values must be unique strings`);O[U]=Y}}}};return Pi.default=a,Pi}var Oi={};const cx="https://json-schema.org/draft/2020-12/schema",px="https://json-schema.org/draft/2020-12/schema",lx={"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},ux="meta",dx="Core and Validation specifications meta-schema",fx=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],mx=["object","boolean"],hx="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",yx={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}},gx={$schema:cx,$id:px,$vocabulary:lx,$dynamicAnchor:ux,title:dx,allOf:fx,type:mx,$comment:hx,properties:yx},vx="https://json-schema.org/draft/2020-12/schema",bx="https://json-schema.org/draft/2020-12/meta/applicator",wx={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},Sx="meta",Ex="Applicator vocabulary meta-schema",xx=["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"}},Px={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},Ox={$schema:vx,$id:bx,$vocabulary:wx,$dynamicAnchor:Sx,title:Ex,type:xx,properties:Tx,$defs:Px},Ix="https://json-schema.org/draft/2020-12/schema",_x="https://json-schema.org/draft/2020-12/meta/unevaluated",Ax={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},Rx="meta",$x="Unevaluated applicator vocabulary meta-schema",Nx=["object","boolean"],kx={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},Dx={$schema:Ix,$id:_x,$vocabulary:Ax,$dynamicAnchor:Rx,title:$x,type:Nx,properties:kx},qx="https://json-schema.org/draft/2020-12/schema",Cx="https://json-schema.org/draft/2020-12/meta/content",jx={"https://json-schema.org/draft/2020-12/vocab/content":!0},Mx="meta",Lx="Content vocabulary meta-schema",Ux=["object","boolean"],Fx={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},Bx={$schema:qx,$id:Cx,$vocabulary:jx,$dynamicAnchor:Mx,title:Lx,type:Ux,properties:Fx},zx="https://json-schema.org/draft/2020-12/schema",Vx="https://json-schema.org/draft/2020-12/meta/core",Kx={"https://json-schema.org/draft/2020-12/vocab/core":!0},Hx="meta",Gx="Core vocabulary meta-schema",Yx=["object","boolean"],Qx={$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"}}},Wx={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},Jx={$schema:zx,$id:Vx,$vocabulary:Kx,$dynamicAnchor:Hx,title:Gx,type:Yx,properties:Qx,$defs:Wx},Xx="https://json-schema.org/draft/2020-12/schema",Zx="https://json-schema.org/draft/2020-12/meta/format-annotation",eT={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},tT="meta",rT="Format vocabulary meta-schema for annotation results",nT=["object","boolean"],iT={format:{type:"string"}},oT={$schema:Xx,$id:Zx,$vocabulary:eT,$dynamicAnchor:tT,title:rT,type:nT,properties:iT},sT="https://json-schema.org/draft/2020-12/schema",aT="https://json-schema.org/draft/2020-12/meta/meta-data",cT={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},pT="meta",lT="Meta-data vocabulary meta-schema",uT=["object","boolean"],dT={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}},fT={$schema:sT,$id:aT,$vocabulary:cT,$dynamicAnchor:pT,title:lT,type:uT,properties:dT},mT="https://json-schema.org/draft/2020-12/schema",hT="https://json-schema.org/draft/2020-12/meta/validation",yT={"https://json-schema.org/draft/2020-12/vocab/validation":!0},gT="meta",vT="Validation vocabulary meta-schema",bT=["object","boolean"],wT={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"}}},ST={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:[]}},ET={$schema:mT,$id:hT,$vocabulary:yT,$dynamicAnchor:gT,title:vT,type:bT,properties:wT,$defs:ST};var Fp;function xT(){if(Fp)return Oi;Fp=1,Object.defineProperty(Oi,"__esModule",{value:!0});const e=gx,t=Ox,r=Dx,n=Bx,i=Jx,o=oT,s=fT,a=ET,c=["/properties"];function l(u){return[e,t,r,n,i,f(this,o),s,f(this,a)].forEach(y=>this.addMetaSchema(y,void 0,!1)),this;function f(y,h){return u?y.$dataMetaSchema(h,c):h}}return Oi.default=l,Oi}var Bp;function TT(){return Bp||(Bp=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=wa(),n=sx(),i=Oa(),o=xT(),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:b}=this.opts;b&&(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=$r();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var l=Pe();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=un();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return u.default}});var f=Nr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(Rn,Rn.exports)),Rn.exports}var PT=TT();const Ia=Z.getDefaultExportFromCjs(PT),OT=new Ia({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0});function zp(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(i=>OT.validate(i,r));return n===-1&&(n=0),t[n]}}function Er(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(Z.isPlainObject(t.properties)||Z.isPlainObject(t.additionalProperties)||Z.isPlainObject(t.items)&&(Z.isPlainObject(t.items.properties)||Z.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=Er(l,s,r);return typeof u=="string"&&(i[l]=u),u});return(s,a)=>{if(Z.isPlainObject(s)){const c=s[n];if(typeof c=="string"){const l=i[c];if(l&&r[l])return l}}return zp(t.oneOf,o)(s,a)}}else{const n=t.oneOf.map((i,o)=>Er(e+"_"+o,i,r));return zp(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]=Er(n+"."+c,l,r);let o;Z.isPlainObject(t.additionalProperties)&&(o=Er(e+"_additionalProperties",t.additionalProperties,r)),t.additionalProperties===!0&&(o={});let s;Z.isPlainObject(t.items)&&(Z.isPlainObject(t.items.properties)||Z.isPlainObject(t.items.additionalProperties)||t.items.oneOf)&&(s=Er(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(f=>[...t.required||[],...f.required]);let u=l.findIndex(f=>f.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 Ld(e,t){const r={},n=Er(e,t,r);return{ctx:r,discriminatorResolver:typeof n=="function"?n:void 0}}const _T=["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"],AT=["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-illogical-composition-keywords","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"],RT=["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"],$T=["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"],NT=["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"],kT=["info-contact"],DT=["info-contact","info-license","no-unused-components","spec-no-duplicated-method-params","spec-no-required-params-after-optional","spec-ref-siblings"],qT=["no-unused-types","type-description"],CT=["struct","no-unresolved-refs"],jT=[..._T,...AT,...RT,...$T,...NT,...kT,...DT,...qT,...CT],MT=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","remove-unused-components"],LT=["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"],Ud=[...LT,...MT],Fd={extends:{name:"Extends",properties:{},items:e=>typeof e=="string"&&!A.isAbsoluteUrl(e)&&!Z.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:Fd},UT=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...Jr.properties,apis:"ConfigApis",client:"Client",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),FT={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,...Od(Jr.properties,["plugins"]),client:"Client",clientOutput:{type:"string"}}}),zT={properties:{headers:{type:"array",items:{type:"string"}}}},VT={properties:{generators:{type:"array",items:{type:"string"}},argsStyle:{enum:["flat","grouped"]},serverUrl:{type:"string"},outputMode:{enum:["single","split"]},runtime:{enum:["inline","module"]},importExt:{enum:["js","ts"]},goPackage:{type:"string"},cliOutput:{type:"string"},errorMode:{enum:["throw","result"]},dateType:{enum:["string","Date"]},mockData:{enum:["static","faker"]},mockSeed:{type:"number"},queryKeyPrefix:{type:"string"},codeSamples:{type:"boolean"},docs:{type:"boolean"},docsFrontmatter:{type:"boolean"},setup:{type:"string"},options:A.mapOf("ClientGeneratorOptions"),pagination:"ClientPagination"}},KT={properties:{},additionalProperties:{}},Bd={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"}}},HT={properties:{...Bd.properties,exclude:{type:"array",items:{type:"string"}},operations:A.mapOf("ClientPaginationRule")}},GT={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(jT.includes(t))return typeof e=="string"?{enum:["error","warn","off"]}:"BuiltinRule";if(ba(t))return typeof e=="string"?{enum:["error","warn","off"]}:"CustomRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},YT={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"},QT={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"},WT={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(Ud.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinDecorator";if(ba(t))return typeof e=="string"?{type:"string"}:"CustomDecorator"}},JT={properties:{},additionalProperties:{},description:"Built-in decorators are the default decorators included with Redocly CLI.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},XT={properties:{},additionalProperties:{},description:"Custom decorators are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},ZT={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(Ud.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinPreprocessor";if(ba(t))return typeof e=="string"?{type:"string"}:"CustomPreprocessor"}},eP={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"},tP={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"};function rP(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 nP(e){return{...e[ot.ScorecardClassicLevel],properties:{...e[ot.ScorecardClassicLevel]?.properties,...Fd}}}const iP={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"},schema:"Schema",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"},oP={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"},sP={properties:{subject:"Subject",assertions:"Assertions",where:A.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 _a(e,t){const r=zi.flatMap(i=>{const o=ln(i),s=t?t.extendTypes(o,i):o;return Object.keys(s)}),{ctx:n}=Ld("rootRedoclyConfigSchema",e);return{...aP,ConfigRoot:UT(n),ConfigApisProperties:BT(n),Subject:rP([...r,...aE]),...n,[ot.ScorecardClassicLevel]:nP(n)}}const aP={ConfigurableRule:sP,ConfigApis:FT,ConfigGovernance:Jr,ConfigHTTP:zT,Client:VT,ClientGeneratorOptions:KT,ClientPagination:HT,ClientPaginationRule:Bd,Where:oP,BuiltinRule:YT,CustomRule:QT,BuiltinDecorator:JT,CustomDecorator:XT,BuiltinPreprocessor:eP,CustomPreprocessor:tP,Schema:De.Schema,SchemaProperties:De.SchemaProperties,PatternProperties:De.PatternProperties,NamedSchemas:De.NamedSchemas,DependentRequired:De.DependentRequired,Discriminator:De.Discriminator,DiscriminatorMapping:De.DiscriminatorMapping,ExternalDocs:De.ExternalDocs,Xml:De.Xml,Rules:GT,Decorators:WT,Preprocessors:ZT,Assertions:iP},{theme:oN,...cP}=vo.properties,pP={...vo,properties:cP},zd=_a(pP),dn=A.normalizeTypes(zd),Fs="redocly.yaml",Vd={extends:["recommended"]},to=".redocly.lint-ignore.yaml",Kd=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
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 f in c){if(f==="__proto__")continue;const h=Array.isArray(c[f])?l:u;h[f]=c[f]}return[l,u]}function s(c,l=c.schema){const{gen:u,data:f,it:h}=c;if(Object.keys(l).length===0)return;const y=u.let("missing");for(const b in l){const w=l[b];if(w.length===0)continue;const x=(0,n.propertyInData)(u,f,b,h.opts.ownProperties);c.setParams({property:b,depsCount:w.length,deps:w.join(", ")}),h.allErrors?u.if(x,()=>{for(const T of w)(0,n.checkReportMissingProp)(c,T)}):(u.if((0,t._)`${x} && (${(0,n.checkMissingProp)(c,w,y)})`),(0,n.reportMissingProp)(c,y),u.else())}}e.validatePropertyDeps=s;function a(c,l=c.schema){const{gen:u,data:f,keyword:h,it:y}=c,b=u.name("valid");for(const w in l)(0,r.alwaysValidSchema)(y,l[w])||(u.if((0,n.propertyInData)(u,f,w,y.opts.ownProperties),()=>{const x=c.subschema({keyword:h,schemaProp:w},b);c.mergeValidEvaluated(x,b)},()=>u.var(b,!0)),c.ok(b))}e.validateSchemaDeps=a,e.default=i})(Wo)),Wo}var si={},hp;function XE(){if(hp)return si;hp=1,Object.defineProperty(si,"__esModule",{value:!0});const e=Pe(),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 si.default=n,si}var ai={},yp;function Md(){if(yp)return ai;yp=1,Object.defineProperty(ai,"__esModule",{value:!0});const e=Pt(),t=Pe(),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:f}=s,{schema:h=f.opts.defaultAdditionalProperties}=s;if(!u)throw new Error("ajv implementation error");const{allErrors:y,opts:b}=f;if(f.props=!0,b.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(f,h))return;const w=(0,e.allSchemaProperties)(c.properties),x=(0,e.allSchemaProperties)(c.patternProperties);T(),s.ok((0,t._)`${u} === ${r.default.errors}`);function T(){a.forIn("key",l,S=>{!w.length&&!x.length?P(S):a.if(E(S),()=>P(S))})}function E(S){let I;if(w.length>8){const q=(0,n.schemaRefOrVal)(f,c.properties,"properties");I=(0,e.isOwnProperty)(a,q,S)}else w.length?I=(0,t.or)(...w.map(q=>(0,t._)`${S} === ${q}`)):I=t.nil;return x.length&&(I=(0,t.or)(I,...x.map(q=>(0,t._)`${(0,e.usePattern)(s,q)}.test(${S})`))),(0,t.not)(I)}function v(S){a.code((0,t._)`delete ${l}[${S}]`)}function P(S){if(b.removeAdditional==="all"||b.removeAdditional&&h===!1){v(S);return}if(h===!1){s.setParams({additionalProperty:S}),s.error(),y||a.break();return}if(typeof h=="object"&&!(0,n.alwaysValidSchema)(f,h)){const I=a.name("valid");b.removeAdditional==="failing"?(g(S,I,!1),a.if((0,t.not)(I),()=>{s.reset(),v(S)})):(g(S,I),y||a.if((0,t.not)(I),()=>a.break()))}}function g(S,I,q){const G={keyword:"additionalProperties",dataProp:S,dataPropType:n.Type.Str};q===!1&&Object.assign(G,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(G,I)}}};return ai.default=o,ai}var ci={},gp;function ZE(){if(gp)return ci;gp=1,Object.defineProperty(ci,"__esModule",{value:!0});const e=Nr(),t=Pt(),r=ke(),n=Md(),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 f=(0,t.allSchemaProperties)(a);for(const x of f)u.definedProperties.add(x);u.opts.unevaluated&&f.length&&u.props!==!0&&(u.props=r.mergeEvaluated.props(s,(0,r.toHash)(f),u.props));const h=f.filter(x=>!(0,r.alwaysValidSchema)(u,a[x]));if(h.length===0)return;const y=s.name("valid");for(const x of h)b(x)?w(x):(s.if((0,t.propertyInData)(s,l,x,u.opts.ownProperties)),w(x),u.allErrors||s.else().var(y,!0),s.endIf()),o.it.definedProperties.add(x),o.ok(y);function b(x){return u.opts.useDefaults&&!u.compositeRule&&a[x].default!==void 0}function w(x){o.subschema({keyword:"properties",schemaProp:x,dataProp:x},y)}}};return ci.default=i,ci}var pi={},vp;function ex(){if(vp)return pi;vp=1,Object.defineProperty(pi,"__esModule",{value:!0});const e=Pt(),t=Pe(),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:f}=u,h=(0,e.allSchemaProperties)(a),y=h.filter(P=>(0,r.alwaysValidSchema)(u,a[P]));if(h.length===0||y.length===h.length&&(!u.opts.unevaluated||u.props===!0))return;const b=f.strictSchema&&!f.allowMatchingProperties&&l.properties,w=s.name("valid");u.props!==!0&&!(u.props instanceof t.Name)&&(u.props=(0,n.evaluatedPropsToName)(s,u.props));const{props:x}=u;T();function T(){for(const P of h)b&&E(P),u.allErrors?v(P):(s.var(w,!0),v(P),s.if(w))}function E(P){for(const g in b)new RegExp(P).test(g)&&(0,r.checkStrictMode)(u,`property ${g} matches pattern ${P} (use allowMatchingProperties)`)}function v(P){s.forIn("key",c,g=>{s.if((0,t._)`${(0,e.usePattern)(o,P)}.test(${g})`,()=>{const S=y.includes(P);S||o.subschema({keyword:"patternProperties",schemaProp:P,dataProp:g,dataPropType:n.Type.Str},w),u.opts.unevaluated&&x!==!0?s.assign((0,t._)`${x}[${g}]`,!0):!S&&!u.allErrors&&s.if((0,t.not)(w),()=>s.break())})})}}};return pi.default=i,pi}var li={},bp;function tx(){if(bp)return li;bp=1,Object.defineProperty(li,"__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 li.default=t,li}var ui={},wp;function rx(){if(wp)return ui;wp=1,Object.defineProperty(ui,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Pt().validateUnion,error:{message:"must match a schema in anyOf"}};return ui.default=t,ui}var di={},Sp;function nx(){if(Sp)return di;Sp=1,Object.defineProperty(di,"__esModule",{value:!0});const e=Pe(),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),f=o.let("passing",null),h=o.name("_valid");i.setParams({passing:f}),o.block(y),i.result(u,()=>i.reset(),()=>i.error(!0));function y(){l.forEach((b,w)=>{let x;(0,t.alwaysValidSchema)(c,b)?o.var(h,!0):x=i.subschema({keyword:"oneOf",schemaProp:w,compositeRule:!0},h),w>0&&o.if((0,e._)`${h} && ${u}`).assign(u,!1).assign(f,(0,e._)`[${f}, ${w}]`).else(),o.if(h,()=>{o.assign(u,!0),o.assign(f,w),x&&i.mergeEvaluated(x,e.Name)})})}}};return di.default=n,di}var fi={},Ep;function ix(){if(Ep)return fi;Ep=1,Object.defineProperty(fi,"__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 fi.default=t,fi}var mi={},xp;function ox(){if(xp)return mi;xp=1,Object.defineProperty(mi,"__esModule",{value:!0});const e=Pe(),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 f=s.let("valid",!0),h=s.name("_valid");if(y(),o.reset(),l&&u){const w=s.let("ifClause");o.setParams({ifClause:w}),s.if(h,b("then",w),b("else",w))}else l?s.if(h,b("then")):s.if((0,e.not)(h),b("else"));o.pass(f,()=>o.error(!0));function y(){const w=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},h);o.mergeEvaluated(w)}function b(w,x){return()=>{const T=o.subschema({keyword:w},h);s.assign(f,h),o.mergeValidEvaluated(T,f),x?s.assign(x,(0,e._)`${w}`):o.setParams({ifClause:w})}}}};function i(o,s){const a=o.schema[s];return a!==void 0&&!(0,t.alwaysValidSchema)(o,a)}return mi.default=n,mi}var hi={},Tp;function sx(){if(Tp)return hi;Tp=1,Object.defineProperty(hi,"__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 hi.default=t,hi}var Pp;function Oa(){if(Pp)return ri;Pp=1,Object.defineProperty(ri,"__esModule",{value:!0});const e=jd(),t=QE(),r=Cd(),n=WE(),i=JE(),o=Pa(),s=XE(),a=Md(),c=ZE(),l=ex(),u=tx(),f=rx(),h=nx(),y=ix(),b=ox(),w=sx();function x(T=!1){const E=[u.default,f.default,h.default,y.default,b.default,w.default,s.default,a.default,o.default,c.default,l.default];return T?E.push(t.default,n.default):E.push(e.default,r.default),E.push(i.default),E}return ri.default=x,ri}var yi={},vr={},Op;function Ld(){if(Op)return vr;Op=1,Object.defineProperty(vr,"__esModule",{value:!0}),vr.dynamicAnchor=void 0;const e=Pe(),t=pt(),r=To(),n=Po(),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 f=(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(c)}`,h=u.errSchemaPath==="#"?u.validateName:s(a);l.if((0,e._)`!${f}`,()=>l.assign(f,h))}vr.dynamicAnchor=o;function s(a){const{schemaEnv:c,schema:l,self:u}=a.it,{root:f,baseId:h,localRefs:y,meta:b}=c.root,{schemaId:w}=u.opts,x=new r.SchemaEnv({schema:l,schemaId:w,root:f,baseId:h,localRefs:y,meta:b});return r.compileSchema.call(u,x),(0,n.getValidate)(a,x)}return vr.default=i,vr}var br={},Ip;function Ud(){if(Ip)return br;Ip=1,Object.defineProperty(br,"__esModule",{value:!0}),br.dynamicRef=void 0;const e=Pe(),t=pt(),r=Po(),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)f();else{const y=a.let("valid",!1);f(y),o.ok(y)}function f(y){if(l.schemaEnv.root.dynamicAnchors[u]){const b=a.let("_v",(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(u)}`);a.if(b,h(b,y),h(l.validateName,y))}else h(l.validateName,y)()}function h(y,b){return b?()=>a.block(()=>{(0,r.callRef)(o,y),a.let(b,!0)}):()=>(0,r.callRef)(o,y)}}return br.dynamicRef=i,br.default=n,br}var gi={},_p;function ax(){if(_p)return gi;_p=1,Object.defineProperty(gi,"__esModule",{value:!0});const e=Ld(),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 gi.default=r,gi}var vi={},Ap;function cx(){if(Ap)return vi;Ap=1,Object.defineProperty(vi,"__esModule",{value:!0});const e=Ud(),t={keyword:"$recursiveRef",schemaType:"string",code:r=>(0,e.dynamicRef)(r,r.schema)};return vi.default=t,vi}var Rp;function px(){if(Rp)return yi;Rp=1,Object.defineProperty(yi,"__esModule",{value:!0});const e=Ld(),t=Ud(),r=ax(),n=cx(),i=[e.default,t.default,r.default,n.default];return yi.default=i,yi}var bi={},wi={},$p;function lx(){if($p)return wi;$p=1,Object.defineProperty(wi,"__esModule",{value:!0});const e=Pa(),t={keyword:"dependentRequired",type:"object",schemaType:"object",error:e.error,code:r=>(0,e.validatePropertyDeps)(r)};return wi.default=t,wi}var Si={},Np;function ux(){if(Np)return Si;Np=1,Object.defineProperty(Si,"__esModule",{value:!0});const e=Pa(),t={keyword:"dependentSchemas",type:"object",schemaType:"object",code:r=>(0,e.validateSchemaDeps)(r)};return Si.default=t,Si}var Ei={},kp;function dx(){if(kp)return Ei;kp=1,Object.defineProperty(Ei,"__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 Ei.default=t,Ei}var Dp;function fx(){if(Dp)return bi;Dp=1,Object.defineProperty(bi,"__esModule",{value:!0});const e=lx(),t=ux(),r=dx(),n=[e.default,t.default,r.default];return bi.default=n,bi}var xi={},Ti={},qp;function mx(){if(qp)return Ti;qp=1,Object.defineProperty(Ti,"__esModule",{value:!0});const e=Pe(),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,f=o.schema===void 0&&o.it.opts.defaultUnevaluatedProperties===!1;if(!l)throw new Error("ajv implementation error");const{allErrors:h,props:y}=u;if(y instanceof e.Name)s.if((0,e._)`${y} !== true`,()=>s.forIn("key",c,T=>s.if(w(y,T),()=>b(T))));else if(y!==!0){const T=()=>s.forIn("key",c,E=>y===void 0?b(E):s.if(x(y,E),()=>b(E)));f&&u.errorPath.emptyStr()&&!u.compositeRule?s.if((0,e._)`${r.default.isAllOfVariant} === 0`,T):(!u.compositeRule||o.schema!==void 0)&&T()}f||(u.props=!0),o.ok((0,e._)`${l} === ${r.default.errors}`);function b(T){if(a===!1){o.setParams({unevaluatedProperty:T}),o.error(),h||s.break();return}if(!(0,t.alwaysValidSchema)(u,a)){const E=s.name("valid");o.subschema({keyword:"unevaluatedProperties",dataProp:T,dataPropType:t.Type.Str},E),h||s.if((0,e.not)(E),()=>s.break())}}function w(T,E){return(0,e._)`!${T} || !${T}[${E}]`}function x(T,E){const v=[];for(const P in T)T[P]===!0&&v.push((0,e._)`${E} !== ${P}`);return(0,e.and)(...v)}}};return Ti.default=i,Ti}var Pi={},jp;function hx(){if(jp)return Pi;jp=1,Object.defineProperty(Pi,"__esModule",{value:!0});const e=Pe(),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 h=o.var("valid",(0,e._)`${u} <= ${l}`);o.if((0,e.not)(h),()=>f(h,l)),i.ok(h)}c.items=!0;function f(h,y){o.forRange("i",y,u,b=>{i.subschema({keyword:"unevaluatedItems",dataProp:b,dataPropType:t.Type.Num},h),c.allErrors||o.if((0,e.not)(h),()=>o.break())})}}};return Pi.default=n,Pi}var Cp;function Fd(){if(Cp)return xi;Cp=1,Object.defineProperty(xi,"__esModule",{value:!0});const e=mx(),t=hx(),r=[e.default,t.default];return xi.default=r,xi}var Oi={},Ii={},Mp;function yx(){if(Mp)return Ii;Mp=1,Object.defineProperty(Ii,"__esModule",{value:!0});const e=Pe(),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:f,errSchemaPath:h,schemaEnv:y,self:b}=u;if(!f.validateFormats)return;a?w():x();function w(){const T=o.scopeValue("formats",{ref:b.formats,code:f.code.formats}),E=o.const("fDef",(0,e._)`${T}[${l}]`),v=o.let("fType"),P=o.let("format");o.if((0,e._)`typeof ${E} == "object" && !(${E} instanceof RegExp)`,()=>o.assign(v,(0,e._)`${E}.type || "string"`).assign(P,(0,e._)`${E}.validate`),()=>o.assign(v,(0,e._)`"string"`).assign(P,E)),n.fail$data((0,e.or)(g(),S()));function g(){return f.strictSchema===!1?e.nil:(0,e._)`${l} && !${P}`}function S(){const I=y.$async?(0,e._)`(${E}.async ? await ${P}(${s}) : ${P}(${s}))`:(0,e._)`${P}(${s})`,q=(0,e._)`(typeof ${P} == "function" ? ${I} : ${P}.test(${s}))`;return(0,e._)`${P} && ${P} !== true && ${v} === ${i} && !${q}`}}function x(){const T=b.formats[c];if(!T){g();return}if(T===!0)return;const[E,v,P]=S(T);E===i&&n.pass(I());function g(){if(f.strictSchema===!1){b.logger.warn(q());return}throw new Error(q());function q(){return`unknown format "${c}" ignored in schema at path "${h}"`}}function S(q){const G=q instanceof RegExp?(0,e.regexpCode)(q):f.code.formats?(0,e._)`${f.code.formats}${(0,e.getProperty)(c)}`:void 0,B=o.scopeValue("formats",{key:c,ref:q,code:G});return typeof q=="object"&&!(q instanceof RegExp)?[q.type||"string",q.validate,(0,e._)`${B}.validate`]:["string",q,B]}function I(){if(typeof T=="object"&&!(T instanceof RegExp)&&T.async){if(!y.$async)throw new Error("async format in sync schema");return(0,e._)`await ${P}(${s})`}return typeof v=="function"?(0,e._)`${P}(${s})`:(0,e._)`${P}.test(${s})`}}}};return Ii.default=r,Ii}var Lp;function Ia(){if(Lp)return Oi;Lp=1,Object.defineProperty(Oi,"__esModule",{value:!0});const t=[yx().default];return Oi.default=t,Oi}var rr={},Up;function Bd(){return Up||(Up=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.contentVocabulary=rr.metadataVocabulary=void 0,rr.metadataVocabulary=["title","description","default","deprecated","examples"],rr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),rr}var Fp;function gx(){if(Fp)return Mn;Fp=1,Object.defineProperty(Mn,"__esModule",{value:!0});const e=qd(),t=Ta(),r=Oa(),n=px(),i=fx(),o=Fd(),s=Ia(),a=Bd(),c=[n.default,e.default,t.default,(0,r.default)(!0),s.default,a.metadataVocabulary,a.contentVocabulary,i.default,o.default];return Mn.default=c,Mn}var _i={},Vr={},Bp;function vx(){if(Bp)return Vr;Bp=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Vr.DiscrError=e={})),Vr}var zp;function _a(){if(zp)return _i;zp=1,Object.defineProperty(_i,"__esModule",{value:!0});const e=Pe(),t=vx(),r=To(),n=kr(),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 f of c.allOf)if(!((u=f?.properties)===null||u===void 0)&&u[l])return f.properties[l]}}const a={keyword:"discriminator",type:"object",schemaType:"object",error:o,code(c){const{gen:l,data:u,schema:f,parentSchema:h,it:y}=c,b=h.oneOf?"oneOf":h.anyOf?"anyOf":void 0;if(!y.opts.discriminator)throw new Error("discriminator: requires discriminator option");const w=f.propertyName;if(typeof w!="string")throw new Error("discriminator: requires propertyName");if(!b)throw new Error("discriminator: requires oneOf or anyOf composite keyword");const x=h[b],T=l.let("valid",!1),E=l.const("tag",(0,e._)`${u}${(0,e.getProperty)(w)}`);l.if((0,e._)`typeof ${E} == "string"`,()=>v(),()=>c.error(!1,{discrError:t.DiscrError.Tag,tag:E,tagName:w})),c.ok(T);function v(){const S=g();l.if(!1);for(const I in S)l.elseIf((0,e._)`${E} === ${I}`),l.assign(T,P(S[I]));l.else(),c.error(!1,{discrError:t.DiscrError.Mapping,tag:E,tagName:w}),l.endIf()}function P(S){const I=l.name("valid"),q=c.subschema({keyword:b,schemaProp:S},I);return c.mergeEvaluated(q,e.Name),I}function g(){var S;const I={},q=B(h);let G=!0;for(let U=0;U<x.length;U++){let Y=x[U];const he=Y?.$ref;if(he&&f.mapping){const{mapping:Oe}=f,de=Object.keys(Oe).filter(Te=>Oe[Te]===Y.$ref);if(de.length){for(const Te of de)W(Te,U);continue}}if(he&&!(0,i.schemaHasRulesButRef)(Y,y.self.RULES)&&(Y=r.resolveRef.call(y.self,y.schemaEnv.root,y.baseId,he),Y instanceof r.SchemaEnv&&(Y=Y.schema),Y===void 0))throw new n.default(y.opts.uriResolver,y.baseId,he);let we=(S=Y?.properties)===null||S===void 0?void 0:S[w];if(!we&&Y?.allOf&&(we=s(Y,w)),typeof we!="object")throw new Error(`discriminator: ${b} subschemas (or referenced schemas) must have "properties/${w}" or match mapping`);G=G&&(q||B(Y)),H(we,U)}if(!G)throw new Error(`discriminator: "${w}" must be required`);return I;function B(U){if(Array.isArray(U.required)&&U.required.includes(w))return!0;if(U.allOf&&Array.isArray(U.allOf))for(const Y of U.allOf){const he=Y;if(Array.isArray(he.required)&&he.required.includes(w))return!0}return!1}function H(U,Y){if(U.const)W(U.const,Y);else if(U.enum)for(const he of U.enum)W(he,Y);else throw new Error(`discriminator: "properties/${w}" must have "const" or "enum"`)}function W(U,Y){if(typeof U!="string"||U in I)throw new Error(`discriminator: "${w}" values must be unique strings`);I[U]=Y}}}};return _i.default=a,_i}var Ai={};const bx="https://json-schema.org/draft/2020-12/schema",wx="https://json-schema.org/draft/2020-12/schema",Sx={"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},Ex="meta",xx="Core and Validation specifications meta-schema",Tx=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],Px=["object","boolean"],Ox="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",Ix={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}},_x={$schema:bx,$id:wx,$vocabulary:Sx,$dynamicAnchor:Ex,title:xx,allOf:Tx,type:Px,$comment:Ox,properties:Ix},Ax="https://json-schema.org/draft/2020-12/schema",Rx="https://json-schema.org/draft/2020-12/meta/applicator",$x={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},Nx="meta",kx="Applicator vocabulary meta-schema",Dx=["object","boolean"],qx={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"}},jx={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},Cx={$schema:Ax,$id:Rx,$vocabulary:$x,$dynamicAnchor:Nx,title:kx,type:Dx,properties:qx,$defs:jx},Mx="https://json-schema.org/draft/2020-12/schema",Lx="https://json-schema.org/draft/2020-12/meta/unevaluated",Ux={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},Fx="meta",Bx="Unevaluated applicator vocabulary meta-schema",zx=["object","boolean"],Vx={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},Kx={$schema:Mx,$id:Lx,$vocabulary:Ux,$dynamicAnchor:Fx,title:Bx,type:zx,properties:Vx},Hx="https://json-schema.org/draft/2020-12/schema",Gx="https://json-schema.org/draft/2020-12/meta/content",Yx={"https://json-schema.org/draft/2020-12/vocab/content":!0},Qx="meta",Wx="Content vocabulary meta-schema",Jx=["object","boolean"],Xx={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},Zx={$schema:Hx,$id:Gx,$vocabulary:Yx,$dynamicAnchor:Qx,title:Wx,type:Jx,properties:Xx},eT="https://json-schema.org/draft/2020-12/schema",tT="https://json-schema.org/draft/2020-12/meta/core",rT={"https://json-schema.org/draft/2020-12/vocab/core":!0},nT="meta",iT="Core vocabulary meta-schema",oT=["object","boolean"],sT={$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"}}},aT={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},cT={$schema:eT,$id:tT,$vocabulary:rT,$dynamicAnchor:nT,title:iT,type:oT,properties:sT,$defs:aT},pT="https://json-schema.org/draft/2020-12/schema",lT="https://json-schema.org/draft/2020-12/meta/format-annotation",uT={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},dT="meta",fT="Format vocabulary meta-schema for annotation results",mT=["object","boolean"],hT={format:{type:"string"}},yT={$schema:pT,$id:lT,$vocabulary:uT,$dynamicAnchor:dT,title:fT,type:mT,properties:hT},gT="https://json-schema.org/draft/2020-12/schema",vT="https://json-schema.org/draft/2020-12/meta/meta-data",bT={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},wT="meta",ST="Meta-data vocabulary meta-schema",ET=["object","boolean"],xT={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}},TT={$schema:gT,$id:vT,$vocabulary:bT,$dynamicAnchor:wT,title:ST,type:ET,properties:xT},PT="https://json-schema.org/draft/2020-12/schema",OT="https://json-schema.org/draft/2020-12/meta/validation",IT={"https://json-schema.org/draft/2020-12/vocab/validation":!0},_T="meta",AT="Validation vocabulary meta-schema",RT=["object","boolean"],$T={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"}}},NT={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:[]}},kT={$schema:PT,$id:OT,$vocabulary:IT,$dynamicAnchor:_T,title:AT,type:RT,properties:$T,$defs:NT};var Vp;function DT(){if(Vp)return Ai;Vp=1,Object.defineProperty(Ai,"__esModule",{value:!0});const e=_x,t=Cx,r=Kx,n=Zx,i=cT,o=yT,s=TT,a=kT,c=["/properties"];function l(u){return[e,t,r,n,i,f(this,o),s,f(this,a)].forEach(h=>this.addMetaSchema(h,void 0,!1)),this;function f(h,y){return u?h.$dataMetaSchema(y,c):y}}return Ai.default=l,Ai}var Kp;function qT(){return Kp||(Kp=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=Ea(),n=gx(),i=_a(),o=DT(),s="https://json-schema.org/draft/2020-12/schema";class a extends r.default{constructor(y={}){super({...y,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(y=>this.addVocabulary(y)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:y,meta:b}=this.opts;b&&(o.default.call(this,y),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=Nr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var l=Pe();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=mn();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return u.default}});var f=kr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(kn,kn.exports)),kn.exports}var jT=qT();const Aa=Z.getDefaultExportFromCjs(jT),CT=new Aa({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0});function Hp(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(i=>CT.validate(i,r));return n===-1&&(n=0),t[n]}}function xr(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(Z.isPlainObject(t.properties)||Z.isPlainObject(t.additionalProperties)||Z.isPlainObject(t.items)&&(Z.isPlainObject(t.items.properties)||Z.isPlainObject(t.items.additionalProperties)||t.items.oneOf))return MT(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=xr(l,s,r);return typeof u=="string"&&(i[l]=u),u});return(s,a)=>{if(Z.isPlainObject(s)){const c=s[n];if(typeof c=="string"){const l=i[c];if(l&&r[l])return l}}return Hp(t.oneOf,o)(s,a)}}else{const n=t.oneOf.map((i,o)=>xr(e+"_"+o,i,r));return Hp(t.oneOf,n)}return t}function MT(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]=xr(n+"."+c,l,r);let o;Z.isPlainObject(t.additionalProperties)&&(o=xr(e+"_additionalProperties",t.additionalProperties,r)),t.additionalProperties===!0&&(o={});let s;Z.isPlainObject(t.items)&&(Z.isPlainObject(t.items.properties)||Z.isPlainObject(t.items.additionalProperties)||t.items.oneOf)&&(s=xr(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(f=>[...t.required||[],...f.required]);let u=l.findIndex(f=>f.every(h=>c[h]!==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 zd(e,t){const r={},n=xr(e,t,r);return{ctx:r,discriminatorResolver:typeof n=="function"?n:void 0}}const LT=["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"],UT=["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-illogical-composition-keywords","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"],FT=["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"],BT=["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"],zT=["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"],VT=["info-contact"],KT=["info-contact","info-license","no-unused-components","spec-no-duplicated-method-params","spec-no-required-params-after-optional","spec-ref-siblings"],HT=["no-unused-types","type-description"],GT=["struct","no-unresolved-refs"],YT=[...LT,...UT,...FT,...BT,...zT,...VT,...KT,...HT,...GT],QT=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","remove-unused-components"],WT=["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"],Vd=[...WT,...QT],Kd={extends:{name:"Extends",properties:{},items:e=>typeof e=="string"&&!A.isAbsoluteUrl(e)&&!Z.path.extname(e)?{type:"string"}:{...en,directResolveAs:{name:"ConfigGovernance",...en}},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"},en={properties:Kd},JT=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...en.properties,apis:"ConfigApis",client:"Client",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),XT={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"},ZT=e=>({...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...e["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,...Rd(en.properties,["plugins"]),client:"Client",clientOutput:{type:"string"}}}),eP={properties:{headers:{type:"array",items:{type:"string"}}}},tP={properties:{generators:{type:"array",items:{type:"string"}},argsStyle:{enum:["flat","grouped"]},serverUrl:{type:"string"},outputMode:{enum:["single","split"]},runtime:{enum:["inline","module"]},importExt:{enum:["js","ts"]},goPackage:{type:"string"},cliOutput:{type:"string"},errorMode:{enum:["throw","result"]},dateType:{enum:["string","Date"]},mockData:{enum:["static","faker"]},mockSeed:{type:"number"},queryKeyPrefix:{type:"string"},codeSamples:{type:"boolean"},docs:{type:"boolean"},docsFrontmatter:{type:"boolean"},setup:{type:"string"},options:A.mapOf("ClientGeneratorOptions"),pagination:"ClientPagination"}},rP={properties:{},additionalProperties:{}},Hd={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"}}},nP={properties:{...Hd.properties,exclude:{type:"array",items:{type:"string"}},operations:A.mapOf("ClientPaginationRule")}},iP={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(YT.includes(t))return typeof e=="string"?{enum:["error","warn","off"]}:"BuiltinRule";if(Sa(t))return typeof e=="string"?{enum:["error","warn","off"]}:"CustomRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},oP={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"},sP={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"},aP={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(Vd.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinDecorator";if(Sa(t))return typeof e=="string"?{type:"string"}:"CustomDecorator"}},cP={properties:{},additionalProperties:{},description:"Built-in decorators are the default decorators included with Redocly CLI.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},pP={properties:{},additionalProperties:{},description:"Custom decorators are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},lP={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(Vd.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinPreprocessor";if(Sa(t))return typeof e=="string"?{type:"string"}:"CustomPreprocessor"}},uP={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"},dP={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"};function fP(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 mP(e){return{...e[ot.ScorecardClassicLevel],properties:{...e[ot.ScorecardClassicLevel]?.properties,...Kd}}}const hP={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"},schema:"Schema",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"},yP={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"},gP={properties:{subject:"Subject",assertions:"Assertions",where:A.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 Ra(e,t){const r=Hi.flatMap(i=>{const o=fn(i),s=t?t.extendTypes(o,i):o;return Object.keys(s)}),{ctx:n}=zd("rootRedoclyConfigSchema",e);return{...vP,ConfigRoot:JT(n),ConfigApisProperties:ZT(n),Subject:fP([...r,...vE]),...n,[ot.ScorecardClassicLevel]:mP(n)}}const vP={ConfigurableRule:gP,ConfigApis:XT,ConfigGovernance:en,ConfigHTTP:eP,Client:tP,ClientGeneratorOptions:rP,ClientPagination:nP,ClientPaginationRule:Hd,Where:yP,BuiltinRule:oP,CustomRule:sP,BuiltinDecorator:cP,CustomDecorator:pP,BuiltinPreprocessor:uP,CustomPreprocessor:dP,Schema:De.Schema,SchemaProperties:De.SchemaProperties,PatternProperties:De.PatternProperties,NamedSchemas:De.NamedSchemas,DependentRequired:De.DependentRequired,Discriminator:De.Discriminator,DiscriminatorMapping:De.DiscriminatorMapping,ExternalDocs:De.ExternalDocs,Xml:De.Xml,Rules:iP,Decorators:aP,Preprocessors:lP,Assertions:hP},{theme:yN,...bP}=So.properties,wP={...So,properties:bP},Gd=Ra(wP),hn=A.normalizeTypes(Gd),Vs="redocly.yaml",Yd={extends:["recommended"]},io=".redocly.lint-ignore.yaml",Qd=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
9
9
  # See https://redocly.com/docs/cli/ for more information.
10
- `,Aa="configBundler",Ra="pluginsCollector",Hd=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];function Gd(e){return{http:{headers:e?.http?.headers??[],customFetch:void 0}}}function Ii(e,t){const r=new Set(t);let n=0;for(const i of e)r.has(i)&&n++;return n}function lP(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}var _i={exports:{}},Ai={},Ri={},Vp;function uP(){if(Vp)return Ri;Vp=1,Object.defineProperty(Ri,"__esModule",{value:!0});const e=Pe(),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 Ri.default=i,Ri}var $i={},Kp;function dP(){if(Kp)return $i;Kp=1,Object.defineProperty($i,"__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 $i.default=t,$i}var Hp;function fP(){if(Hp)return Ai;Hp=1,Object.defineProperty(Ai,"__esModule",{value:!0});const e=Eo(),t=Ta(),r=jd(),n=Pa(),i=Ea(),o=uP(),s=dP(),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 Ai.default=u,Ai}const mP="http://json-schema.org/draft-04/schema#",hP="http://json-schema.org/draft-04/schema#",yP="Core schema meta-schema",gP={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}},vP="object",bP={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:"#"}},wP={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},SP={id:mP,$schema:hP,description:yP,definitions:gP,type:vP,properties:bP,dependencies:wP,default:{}};var Gp;function EP(){return Gp||(Gp=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=wa(),n=fP(),i=Oa(),o=SP,s=["/properties"],a="http://json-schema.org/draft-04/schema";class c extends r.default{constructor(b={}){super({...b,schemaId:"id",dynamicRef:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(b=>this.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema(b,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=$r();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=Pe();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 f=un();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var y=Nr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return y.default}})})(_i,_i.exports)),_i.exports}var xP=EP();const TP=Z.getDefaultExportFromCjs(xP);var Ni={exports:{}},Yo={},Yp;function PP(){return Yp||(Yp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(K,W){return{validate:K,compare:W}}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(),b),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:T,"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:B,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,b),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(K){return K%4===0&&(K%100!==0||K%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(K){const W=n.exec(K);if(!W)return!1;const U=+W[1],Y=+W[2],he=+W[3];return Y>=1&&Y<=12&&he>=1&&he<=(Y===2&&r(U)?29:i[Y])}function s(K,W){if(K&&W)return K>W?1:K<W?-1:0}const a=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function c(K){return function(U){const Y=a.exec(U);if(!Y)return!1;const he=+Y[1],we=+Y[2],Oe=+Y[3],de=Y[4],Te=Y[5]==="-"?-1:1,H=+(Y[6]||0),M=+(Y[7]||0);if(H>23||M>59||K&&!de)return!1;if(he<=23&&we<=59&&Oe<60)return!0;const Q=we-M*Te,z=he-H*Te-(Q<0?1:0);return(z===23||z===-1)&&(Q===59||Q===-1)&&Oe<61}}function l(K,W){if(!(K&&W))return;const U=new Date("2020-01-01T"+K).valueOf(),Y=new Date("2020-01-01T"+W).valueOf();if(U&&Y)return U-Y}function u(K,W){if(!(K&&W))return;const U=a.exec(K),Y=a.exec(W);if(U&&Y)return K=U[1]+U[2]+U[3],W=Y[1]+Y[2]+Y[3],K>W?1:K<W?-1:0}const f=/t|\s/i;function y(K){const W=c(K);return function(Y){const he=Y.split(f);return he.length===2&&o(he[0])&&W(he[1])}}function h(K,W){if(!(K&&W))return;const U=new Date(K).valueOf(),Y=new Date(W).valueOf();if(U&&Y)return U-Y}function b(K,W){if(!(K&&W))return;const[U,Y]=K.split(f),[he,we]=W.split(f),Oe=s(U,he);if(Oe!==void 0)return Oe||l(Y,we)}const w=/\/|:/,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 T(K){return w.test(K)&&E.test(K)}const I=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function v(K){return I.lastIndex=0,I.test(K)}const x=-2147483648,g=2**31-1;function S(K){return Number.isInteger(K)&&K<=g&&K>=x}function O(K){return Number.isInteger(K)}function k(){return!0}const G=/[^\\]\\Z/;function B(K){if(G.test(K))return!1;try{return new RegExp(K),!0}catch{return!1}}})(Yo)),Yo}var Qo={},ki={exports:{}},Di={},Qp;function OP(){if(Qp)return Di;Qp=1,Object.defineProperty(Di,"__esModule",{value:!0});const e=$d(),t=Ea(),r=Ta(),n=Pa(),i=Md(),o=[e.default,t.default,(0,r.default)(),n.default,i.metadataVocabulary,i.contentVocabulary];return Di.default=o,Di}const IP="http://json-schema.org/draft-07/schema#",_P="http://json-schema.org/draft-07/schema#",AP="Core schema meta-schema",RP={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:[]}},$P=["object","boolean"],NP={$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:"#"}},kP={$schema:IP,$id:_P,title:AP,definitions:RP,type:$P,properties:NP,default:!0};var Wp;function DP(){return Wp||(Wp=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=wa(),n=OP(),i=Oa(),o=kP,s=["/properties"],a="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(b=>this.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema(b,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=$r();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=Pe();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 f=un();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var y=Nr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return y.default}})})(ki,ki.exports)),ki.exports}var Jp;function qP(){return Jp||(Jp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=DP(),r=Pe(),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:f,it:y}=a,{opts:h,self:b}=y;if(!h.validateFormats)return;const w=new t.KeywordCxt(y,b.RULES.all.format.definition,"format");w.$data?E():T();function E(){const v=c.scopeValue("formats",{ref:b.formats,code:h.code.formats}),x=c.const("fmt",(0,r._)`${v}[${w.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 T(){const v=w.schema,x=b.formats[v];if(!x||x===!0)return;if(typeof x!="object"||x instanceof RegExp||typeof x.compare!="function")throw new Error(`"${f}": 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[f].fail} 0`}},dependencies:["format"]};const s=a=>(a.addKeyword(e.formatLimitDefinition),a);e.default=s})(Qo)),Qo}var Xp;function CP(){return Xp||(Xp=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=PP(),n=qP(),i=Pe(),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[f,y]=u.mode==="fast"?[r.fastFormats,s]:[r.fullFormats,o],h=u.formats||r.formatNames;return c(l,h,f,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,f,y){var h,b;(h=(b=l.opts.code).formats)!==null&&h!==void 0||(b.formats=(0,i._)`require("ajv-formats/dist/formats").${y}`);for(const w of u)l.addFormat(w,f[w])}e.exports=t=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a})(Ni,Ni.exports)),Ni.exports}var jP=CP();const MP=Z.getDefaultExportFromCjs(jP);function Zp(e){return e==="draft4"?"id":"$id"}function LP(e){return e==="oas2"||e==="oas3_0"?"draft4":"2020"}class xo{instances={};validate(t,r,n){const{schemaLoc:i,instancePath:o,resolve:s,allowAdditionalProperties:a,ajvContext:c,specVersion:l}=n,u=LP(l),f=this.getValidator(r,i,s,a,u);if(!f)return{valid:!0,errors:[]};const y={instancePath:o,parentData:{fake:{}},parentDataProperty:"fake",rootData:{},dynamicAnchors:{}};return{valid:!!f.call(c??{},t,y),errors:(f.errors||[]).map(b)};function b(w){let E=w.message;const T=w.keyword==="enum"?w.params.allowedValues:void 0;T&&(E+=` ${T.map(x=>`"${x}"`).join(", ")}`),w.keyword==="type"&&(E=`type ${E}`);const I=w.instancePath.substring(o.length+1),v=I.substring(I.lastIndexOf("/")+1);if(v&&(E=`\`${v}\` property ${E}`),w.keyword==="additionalProperties"||w.keyword==="unevaluatedProperties"){const x=w.params.additionalProperty||w.params.unevaluatedProperty;E=`${E} \`${x}\``,w.instancePath+="/"+A.escapePointerFragment(x)}return{...w,message:E,suggest:T}}}getAjv(t,r){if(!this.instances[r]){const n=Zp(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 Ia(i):new TP(i),MP(this.instances[r])}return this.instances[r]}getValidator(t,r,n,i,o){const s=this.getAjv(n,o),a=encodeURI(r.absolutePointer),c=Zp(o);return s.getSchema(a)||(s.setDefaultUnevaluatedProperties(i),s.addSchema({[c]:a,...t},a)),s.getSchema(a)}}const Yd=new Set(["mutuallyExclusive","mutuallyRequired","enum","pattern","notPattern","minLength","maxLength","casing","sortOrder","disallowed","required","requireAny","ref","const","defined"]),Qd=new Set(["pattern","notPattern","enum","defined","nonEmpty","minLength","maxLength","casing","sortOrder","ref","const","contains","schema"]),el=new WeakMap,UP=new A.Location(new A.Source("assertion",""),"#/schema"),pr={pattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||Z.isPlainObject(e))return[];const i=Array.isArray(e)?e:[e],o=Yr(t);return i.map(s=>!o?.test(s)&&{message:`"${s}" should match a regex ${t}`,location:et(e)?r:Z.isPlainObject(n)?r.child(s).key():r.key()}).filter(A.isTruthy)},notPattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||Z.isPlainObject(e))return[];const i=Array.isArray(e)?e:[e],o=Yr(t);return i.map(s=>o?.test(s)&&{message:`"${s}" should not match a regex ${t}`,location:et(e)?r:Z.isPlainObject(n)?r.child(s).key():r.key()}).filter(A.isTruthy)},enum:(e,t,{baseLocation:r})=>typeof e>"u"||Z.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(A.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(A.isTruthy),contains:(e,t,{baseLocation:r})=>{if(typeof e>"u"||Z.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(A.isTruthy)},disallowed:(e,t,{baseLocation:r})=>typeof e>"u"||Z.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(A.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(A.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"||Z.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(A.isTruthy)},sortOrder:(e,t,{baseLocation:r})=>{const n=t.direction||t,i=t.property;return Array.isArray(e)&&e.length>0&&Z.isPlainObject(e[0])&&!i?[{message:"Please define a property to sort objects by",location:r}]:typeof e>"u"||lP(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})=>Ii(e,t)<2?[]:[{message:`${t.join(", ")} keys should be mutually exclusive`,location:r.key()}],mutuallyRequired:(e,t,{baseLocation:r})=>(Ii(e,t)>0?Ii(e,t)===t.length:!0)?[]:[{message:`Properties ${t.join(", ")} are mutually required`,location:r.key()}],requireAny:(e,t,{baseLocation:r})=>Ii(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=Yr(t);return i&&o?.test(n.$ref)?[]:[{message:`$ref value should match ${t}`,location:i?r:r.key()}]},schema:(e,t,{baseLocation:r,rawValue:n,resolve:i})=>{if(typeof e>"u")return[];if(typeof t=="boolean")return t?[]:[{message:"boolean schema is false",location:r}];let o=el.get(t);o||(o=new xo,el.set(t,o));const s=A.isRef(n)&&i(n)?.location||r;let a;try{({errors:a}=o.validate(e,t,{schemaLoc:UP,instancePath:"",resolve:i,allowAdditionalProperties:!1,specVersion:"oas3_1"}))}catch(c){throw new Error(`the 'schema' assertion has an invalid schema: ${c.message}`)}return a.map(c=>{const l=c.instancePath?A.joinPointer(s.pointer,c.instancePath.slice(1)):s.pointer,u=new A.Location(s.source,l),f=c.keyword==="additionalProperties"||c.keyword==="unevaluatedProperties";return{message:c.message,location:f?u.key():u}})}};function FP(e){return(t,r,n)=>e.call(null,t,r,n)}function BP(e,t){if(!e.rules)return{};const r={},n=[];for(const[i,o]of Object.entries(e.rules))if(i.startsWith("rule/")&&Z.isPlainObject(o)){const s=o;if(t){tl(t,s);for(const a of s.where||[])tl(t,a)}n.push({...s,assertionId:i})}else r[i]=o;return n.length>0&&(r.assertions=n),r}function tl(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}.`);pr[r]=FP(o.assertions[i])}}class fn{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=Gd(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!t.resolve?.doNotResolveExamples;const n=i=>BP({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({...Od(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||!Z.isPlainObject(this.resolvedConfig?.apis?.[t]))return this;const{apis:r,...n}=this.resolvedConfig,{root:i,output:o,...s}=r[t];return new fn({...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?Z.pathBrowserifyExports.dirname(this.configPath):process.cwd(),n=A.isAbsoluteUrl(t)?t:Z.pathBrowserifyExports.resolve(r,t);delete this.ignore[n]}saveIgnore(){const t=this.configPath?Z.pathBrowserifyExports.dirname(this.configPath):process.cwd(),r=Z.pathBrowserifyExports.join(t,to),n={};for(const i of Object.keys(this.ignore)){const o=A.isAbsoluteUrl(i)?i:_u(Z.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,Kd+A.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 zi)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 zi)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(t){for(const r of t||[])for(const n of zi)this.decorators[n][r]&&(this.decorators[n][r]="off")}}function dt(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(f=>({severity:c,ruleId:o,message:l,visitor:f})):{severity:c,message:l,ruleId:o,visitor:u}})).flatMap(i=>i).filter(dt)}const zP={},VP={},KP={};function Wd(e){return Array.isArray(e)&&e.length===0}function Jd(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(A.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(Z.isPlainObject(e))for(const s of Object.keys(e)){if(A.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&&(Ir(e)||Wd(e))&&delete n[i]}function xr(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=rl(t),e=rl(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function rl(e){return Array.isArray(e)?e:[e]}const HP="any",Xd=({property:e,value:t,matchStrategy:r,applyTo:n})=>{const i=r||HP;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 f=A.isRef(a[u])?c.resolve(a[u]).node:a[u];if(Z.isPlainObject(f)){const y=f[e];xr(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];xr(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]&&!xr(s?.[e],t,i);return{any:{enter:(s,a)=>{Jd(s,a,o)}}}},GP="any",Zd=({property:e,value:t,matchStrategy:r,applyTo:n})=>{const i=r||GP;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 f=A.isRef(a[u])?c.resolve(a[u]).node:a[u];if(Z.isPlainObject(f)){const y=f[e];xr(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];xr(c,t,i)&&delete a.parent[a.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}const o=s=>xr(s?.[e],t,i);return{any:{enter:(s,a)=>{Jd(s,a,o)}}}};function nl(e){const t=(void 0)(e,"utf-8");return A.parseYaml(t)}function Zr(e,t){return A.isAbsoluteUrl(e)||t===void 0?e:Z.pathBrowserifyExports.resolve(Z.pathBrowserifyExports.dirname(t),e)}function $a(e){return(void 0)(e,"utf-8")}const ef=({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=$a(Zr(e,i?.configPath))}catch(o){r({message:`Failed to read markdown override file for "info.description".
11
- ${o.message}`,location:n.child("description")})}}}}),tf=e=>({Info:{leave(t){if(!Z.isPlainObject(e))throw new Error('"info-override" decorator should be called with an object');const{severity:r,...n}=e;Object.assign(t,n)}}}),rf=({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=$a(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()})}}}}),YP="x-internal",nf=({internalFlagProperty:e=YP})=>{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(A.isRef(n[l])&&i.resolve(n[l]).node?.[e]){if(Z.isPlainObject(s.discriminator?.mapping))for(const f in s.discriminator.mapping)o?.[f]===n[l].$ref&&delete s.discriminator.mapping[f];n.splice(l,1),c=!0,l--}n[l]?.[e]&&(n.splice(l,1),c=!0,l--)}else if(Z.isPlainObject(n))for(const l of Object.keys(n)){if(A.isRef(n[l])){const u=i.resolve(n[l]);Z.isPlainObject(u.node)&&u.node?.[e]&&(delete n[l],c=!0)}Z.isPlainObject(n[l])&&n[l]?.[e]&&(delete n[l],c=!0)}c&&(Ir(n)||Wd(n))&&delete s[a]}let r={};return{DiscriminatorMapping:{enter:n=>{r=JSON.parse(JSON.stringify(n))}},any:{enter:(n,i)=>{t(n,i,r)}}}},of=({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=$a(Zr(i,n?.configPath))}catch(o){r({message:`Failed to read markdown override file for tag "${t.name}".
13
- ${o.message}`})}}}}),QP=["definitions","parameters","responses","securityDefinitions"],sf=()=>{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]=A.parseRef(i).pointer;if(!(!o||!s)&&QP.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),Ir(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})}}}},WP={"operation-description-override":rf,"tag-description-override":of,"info-description-override":ef,"info-override":tf,"remove-x-internal":nf,"filter-in":Xd,"filter-out":Zd,"remove-unused-components":sf},JP=({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=il(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:nl(Zr(c,r.config?.configPath))}}),t.responses[o]=s)}if(i.request&&t.requestBody){const o=il(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:nl(Zr(a,r.config?.configPath))}}),t.requestBody=o}}}}});function il(e,t){if(!A.isRef(e))return e;const r=t(e);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}function XP(e,t){return t in e}function ol(e){if(!e.startsWith("#/components/"))return;const[t,r,n]=A.parseRef(e).pointer;if(!(!r||!n))return`${r}/${n}`}const af=()=>{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&&XP(n.components,l)){i.add(s);const y=n.components[l];delete y[c],e.delete(s),Ir(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=ol(n.$ref);if(!a)return;const c=ol(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),Ir(n.components)&&delete n.components}},NamedSchemas:{Schema(n,i){const o=n.allOf?.some(s=>A.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})}}}},ZP={"operation-description-override":rf,"tag-description-override":of,"info-description-override":ef,"info-override":tf,"remove-x-internal":nf,"filter-in":Xd,"filter-out":Zd,"media-type-examples-override":JP,"remove-unused-components":af},eO={},tO={},rO=()=>({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 nO(e){return e}const Bs=void 0,Ne=new Proxy(Z.tty,{get(e,t){return A.isBrowser?nO:e[t]}});class iO{info(t){return A.isBrowser?console.info(t):process.stderr.write(t)}warn(t){return A.isBrowser?console.warn(t):process.stderr.write(Ne.yellow(t))}error(t){return A.isBrowser?console.error(t):process.stderr.write(Ne.red(t))}output(t){return A.isBrowser?console.log(t):process.stdout.write(t)}printNewLine(){A.isBrowser?console.log(`
10
+ `,$a="configBundler",Na="pluginsCollector",Wd=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];function Jd(e){return{http:{headers:e?.http?.headers??[],customFetch:void 0}}}function Ri(e,t){const r=new Set(t);let n=0;for(const i of e)r.has(i)&&n++;return n}function SP(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}var $i={exports:{}},Ni={},ki={},Gp;function EP(){if(Gp)return ki;Gp=1,Object.defineProperty(ki,"__esModule",{value:!0});const e=Pe(),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 ki.default=i,ki}var Di={},Yp;function xP(){if(Yp)return Di;Yp=1,Object.defineProperty(Di,"__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 Di.default=t,Di}var Qp;function TP(){if(Qp)return Ni;Qp=1,Object.defineProperty(Ni,"__esModule",{value:!0});const e=Po(),t=Oa(),r=Fd(),n=Ia(),i=Ta(),o=EP(),s=xP(),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 Ni.default=u,Ni}const PP="http://json-schema.org/draft-04/schema#",OP="http://json-schema.org/draft-04/schema#",IP="Core schema meta-schema",_P={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}},AP="object",RP={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:"#"}},$P={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},NP={id:PP,$schema:OP,description:IP,definitions:_P,type:AP,properties:RP,dependencies:$P,default:{}};var Wp;function kP(){return Wp||(Wp=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=Ea(),n=TP(),i=_a(),o=NP,s=["/properties"],a="http://json-schema.org/draft-04/schema";class c extends r.default{constructor(b={}){super({...b,schemaId:"id",dynamicRef:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(b=>this.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema(b,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=Nr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=Pe();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 f=mn();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var h=kr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})($i,$i.exports)),$i.exports}var DP=kP();const qP=Z.getDefaultExportFromCjs(DP);var qi={exports:{}},Jo={},Jp;function jP(){return Jp||(Jp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(H,W){return{validate:H,compare:W}}e.fullFormats={date:t(o,s),time:t(c(!0),l),"date-time":t(h(!0),y),"iso-time":t(c(),u),"iso-date-time":t(h(),b),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:T,"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:B,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:I},float:{type:"number",validate:q},double:{type:"number",validate:q},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,y),"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,b),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(H){return H%4===0&&(H%100!==0||H%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(H){const W=n.exec(H);if(!W)return!1;const U=+W[1],Y=+W[2],he=+W[3];return Y>=1&&Y<=12&&he>=1&&he<=(Y===2&&r(U)?29:i[Y])}function s(H,W){if(H&&W)return H>W?1:H<W?-1:0}const a=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function c(H){return function(U){const Y=a.exec(U);if(!Y)return!1;const he=+Y[1],we=+Y[2],Oe=+Y[3],de=Y[4],Te=Y[5]==="-"?-1:1,K=+(Y[6]||0),M=+(Y[7]||0);if(K>23||M>59||H&&!de)return!1;if(he<=23&&we<=59&&Oe<60)return!0;const Q=we-M*Te,z=he-K*Te-(Q<0?1:0);return(z===23||z===-1)&&(Q===59||Q===-1)&&Oe<61}}function l(H,W){if(!(H&&W))return;const U=new Date("2020-01-01T"+H).valueOf(),Y=new Date("2020-01-01T"+W).valueOf();if(U&&Y)return U-Y}function u(H,W){if(!(H&&W))return;const U=a.exec(H),Y=a.exec(W);if(U&&Y)return H=U[1]+U[2]+U[3],W=Y[1]+Y[2]+Y[3],H>W?1:H<W?-1:0}const f=/t|\s/i;function h(H){const W=c(H);return function(Y){const he=Y.split(f);return he.length===2&&o(he[0])&&W(he[1])}}function y(H,W){if(!(H&&W))return;const U=new Date(H).valueOf(),Y=new Date(W).valueOf();if(U&&Y)return U-Y}function b(H,W){if(!(H&&W))return;const[U,Y]=H.split(f),[he,we]=W.split(f),Oe=s(U,he);if(Oe!==void 0)return Oe||l(Y,we)}const w=/\/|:/,x=/^(?:[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 T(H){return w.test(H)&&x.test(H)}const E=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function v(H){return E.lastIndex=0,E.test(H)}const P=-2147483648,g=2**31-1;function S(H){return Number.isInteger(H)&&H<=g&&H>=P}function I(H){return Number.isInteger(H)}function q(){return!0}const G=/[^\\]\\Z/;function B(H){if(G.test(H))return!1;try{return new RegExp(H),!0}catch{return!1}}})(Jo)),Jo}var Xo={},ji={exports:{}},Ci={},Xp;function CP(){if(Xp)return Ci;Xp=1,Object.defineProperty(Ci,"__esModule",{value:!0});const e=qd(),t=Ta(),r=Oa(),n=Ia(),i=Bd(),o=[e.default,t.default,(0,r.default)(),n.default,i.metadataVocabulary,i.contentVocabulary];return Ci.default=o,Ci}const MP="http://json-schema.org/draft-07/schema#",LP="http://json-schema.org/draft-07/schema#",UP="Core schema meta-schema",FP={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:[]}},BP=["object","boolean"],zP={$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:"#"}},VP={$schema:MP,$id:LP,title:UP,definitions:FP,type:BP,properties:zP,default:!0};var Zp;function KP(){return Zp||(Zp=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=Ea(),n=CP(),i=_a(),o=VP,s=["/properties"],a="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(b=>this.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema(b,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=Nr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=Pe();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 f=mn();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var h=kr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(ji,ji.exports)),ji.exports}var el;function HP(){return el||(el=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=KP(),r=Pe(),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:f,it:h}=a,{opts:y,self:b}=h;if(!y.validateFormats)return;const w=new t.KeywordCxt(h,b.RULES.all.format.definition,"format");w.$data?x():T();function x(){const v=c.scopeValue("formats",{ref:b.formats,code:y.code.formats}),P=c.const("fmt",(0,r._)`${v}[${w.schemaCode}]`);a.fail$data((0,r.or)((0,r._)`typeof ${P} != "object"`,(0,r._)`${P} instanceof RegExp`,(0,r._)`typeof ${P}.compare != "function"`,E(P)))}function T(){const v=w.schema,P=b.formats[v];if(!P||P===!0)return;if(typeof P!="object"||P instanceof RegExp||typeof P.compare!="function")throw new Error(`"${f}": format "${v}" does not define "compare" function`);const g=c.scopeValue("formats",{key:v,ref:P,code:y.code.formats?(0,r._)`${y.code.formats}${(0,r.getProperty)(v)}`:void 0});a.fail$data(E(g))}function E(v){return(0,r._)`${v}.compare(${l}, ${u}) ${i[f].fail} 0`}},dependencies:["format"]};const s=a=>(a.addKeyword(e.formatLimitDefinition),a);e.default=s})(Xo)),Xo}var tl;function GP(){return tl||(tl=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=jP(),n=HP(),i=Pe(),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[f,h]=u.mode==="fast"?[r.fastFormats,s]:[r.fullFormats,o],y=u.formats||r.formatNames;return c(l,y,f,h),u.keywords&&(0,n.default)(l),l};a.get=(l,u="full")=>{const h=(u==="fast"?r.fastFormats:r.fullFormats)[l];if(!h)throw new Error(`Unknown format "${l}"`);return h};function c(l,u,f,h){var y,b;(y=(b=l.opts.code).formats)!==null&&y!==void 0||(b.formats=(0,i._)`require("ajv-formats/dist/formats").${h}`);for(const w of u)l.addFormat(w,f[w])}e.exports=t=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a})(qi,qi.exports)),qi.exports}var YP=GP();const QP=Z.getDefaultExportFromCjs(YP);function rl(e){return e==="draft4"?"id":"$id"}function WP(e){return e==="oas2"||e==="oas3_0"?"draft4":"2020"}class Oo{instances={};validate(t,r,n){const{schemaLoc:i,instancePath:o,resolve:s,allowAdditionalProperties:a,ajvContext:c,specVersion:l}=n,u=WP(l),f=this.getValidator(r,i,s,a,u);if(!f)return{valid:!0,errors:[]};const h={instancePath:o,parentData:{fake:{}},parentDataProperty:"fake",rootData:{},dynamicAnchors:{}};return{valid:!!f.call(c??{},t,h),errors:(f.errors||[]).map(b)};function b(w){let x=w.message;const T=w.keyword==="enum"?w.params.allowedValues:void 0;T&&(x+=` ${T.map(P=>`"${P}"`).join(", ")}`),w.keyword==="type"&&(x=`type ${x}`);const E=w.instancePath.substring(o.length+1),v=E.substring(E.lastIndexOf("/")+1);if(v&&(x=`\`${v}\` property ${x}`),w.keyword==="additionalProperties"||w.keyword==="unevaluatedProperties"){const P=w.params.additionalProperty||w.params.unevaluatedProperty;x=`${x} \`${P}\``,w.instancePath+="/"+A.escapePointerFragment(P)}return{...w,message:x,suggest:T}}}getAjv(t,r){if(!this.instances[r]){const n=rl(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 Aa(i):new qP(i),QP(this.instances[r])}return this.instances[r]}getValidator(t,r,n,i,o){const s=this.getAjv(n,o),a=encodeURI(r.absolutePointer),c=rl(o);return s.getSchema(a)||(s.setDefaultUnevaluatedProperties(i),s.addSchema({[c]:a,...t},a)),s.getSchema(a)}}const Xd=new Set(["mutuallyExclusive","mutuallyRequired","enum","pattern","notPattern","minLength","maxLength","casing","sortOrder","disallowed","required","requireAny","ref","const","defined"]),Zd=new Set(["pattern","notPattern","enum","defined","nonEmpty","minLength","maxLength","casing","sortOrder","ref","const","contains","schema"]),nl=new WeakMap,JP=new A.Location(new A.Source("assertion",""),"#/schema"),pr={pattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||Z.isPlainObject(e))return[];const i=Array.isArray(e)?e:[e],o=Jr(t);return i.map(s=>!o?.test(s)&&{message:`${JSON.stringify(s)} should match a regex ${t}`,location:et(e)?r:Z.isPlainObject(n)?r.child(s).key():r.key()}).filter(A.isTruthy)},notPattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||Z.isPlainObject(e))return[];const i=Array.isArray(e)?e:[e],o=Jr(t);return i.map(s=>o?.test(s)&&{message:`${JSON.stringify(s)} should not match a regex ${t}`,location:et(e)?r:Z.isPlainObject(n)?r.child(s).key():r.key()}).filter(A.isTruthy)},enum:(e,t,{baseLocation:r})=>typeof e>"u"||Z.isPlainObject(e)?[]:(Array.isArray(e)?e:[e]).map(i=>!t.includes(i)&&{message:`${JSON.stringify(i)} should be one of the predefined values`,location:et(e)?r:r.child(i).key()}).filter(A.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(A.isTruthy),contains:(e,t,{baseLocation:r})=>{if(typeof e>"u"||Z.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(A.isTruthy)},disallowed:(e,t,{baseLocation:r})=>typeof e>"u"||Z.isPlainObject(e)?[]:(Array.isArray(e)?e:[e]).map(i=>t.includes(i)&&{message:`${JSON.stringify(i)} is disallowed`,location:et(e)?r:r.child(i).key()}).filter(A.isTruthy),const:(e,t,{baseLocation:r})=>typeof e>"u"?[]:Array.isArray(e)?e.map(n=>t!==n&&{message:`${JSON.stringify(n)} should be equal ${JSON.stringify(t)}`,location:et(e)?r:r.child(n).key()}).filter(A.isTruthy):e!==t?[{message:`${JSON.stringify(e)} should be equal ${JSON.stringify(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"||Z.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:`${JSON.stringify(o)} should use ${t}`,location:et(e)?r:r.child(o).key()}).filter(A.isTruthy)},sortOrder:(e,t,{baseLocation:r})=>{const n=t.direction||t,i=t.property;return Array.isArray(e)&&e.length>0&&Z.isPlainObject(e[0])&&!i?[{message:"Please define a property to sort objects by",location:r}]:typeof e>"u"||SP(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})=>Ri(e,t)<2?[]:[{message:`${t.join(", ")} keys should be mutually exclusive`,location:r.key()}],mutuallyRequired:(e,t,{baseLocation:r})=>(Ri(e,t)>0?Ri(e,t)===t.length:!0)?[]:[{message:`Properties ${t.join(", ")} are mutually required`,location:r.key()}],requireAny:(e,t,{baseLocation:r})=>Ri(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=Jr(t);return i&&o?.test(n.$ref)?[]:[{message:`$ref value should match ${t}`,location:i?r:r.key()}]},schema:(e,t,{baseLocation:r,rawValue:n,resolve:i})=>{if(typeof e>"u")return[];if(typeof t=="boolean")return t?[]:[{message:"boolean schema is false",location:r}];let o=nl.get(t);o||(o=new Oo,nl.set(t,o));const s=A.isRef(n)&&i(n)?.location||r;let a;try{({errors:a}=o.validate(e,t,{schemaLoc:JP,instancePath:"",resolve:i,allowAdditionalProperties:!1,specVersion:"oas3_1"}))}catch(c){throw new Error(`the 'schema' assertion has an invalid schema: ${c.message}`)}return a.map(c=>{const l=c.instancePath?A.joinPointer(s.pointer,c.instancePath.slice(1)):s.pointer,u=new A.Location(s.source,l),f=c.keyword==="additionalProperties"||c.keyword==="unevaluatedProperties";return{message:c.message,location:f?u.key():u}})}};function XP(e){return(t,r,n)=>e.call(null,t,r,n)}function ZP(e,t){if(!e.rules)return{};const r={},n=[];for(const[i,o]of Object.entries(e.rules))if(i.startsWith("rule/")&&Z.isPlainObject(o)){const s=o;if(t){il(t,s);for(const a of s.where||[])il(t,a)}n.push({...s,assertionId:i})}else r[i]=o;return n.length>0&&(r.assertions=n),r}function il(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}.`);pr[r]=XP(o.assertions[i])}}class yn{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=Jd(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!t.resolve?.doNotResolveExamples;const n=i=>ZP({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({...Rd(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||!Z.isPlainObject(this.resolvedConfig?.apis?.[t]))return this;const{apis:r,...n}=this.resolvedConfig,{root:i,output:o,...s}=r[t];return new yn({...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?Z.pathBrowserifyExports.dirname(this.configPath):process.cwd(),n=A.isAbsoluteUrl(t)?t:Z.pathBrowserifyExports.resolve(r,t);delete this.ignore[n]}saveIgnore(){const t=this.configPath?Z.pathBrowserifyExports.dirname(this.configPath):process.cwd(),r=Z.pathBrowserifyExports.join(t,io),n={};for(const i of Object.keys(this.ignore)){const o=A.isAbsoluteUrl(i)?i:$u(Z.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,Qd+A.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 Hi)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 Hi)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(t){for(const r of t||[])for(const n of Hi)this.decorators[n][r]&&(this.decorators[n][r]="off")}}function dt(e){return e!==void 0}function tn(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(f=>({severity:c,ruleId:o,message:l,visitor:f})):{severity:c,message:l,ruleId:o,visitor:u}})).flatMap(i=>i).filter(dt)}const eO={},tO={},rO={};function ef(e){return Array.isArray(e)&&e.length===0}function tf(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(A.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(Z.isPlainObject(e))for(const s of Object.keys(e)){if(A.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&&(_r(e)||ef(e))&&delete n[i]}function Tr(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=ol(t),e=ol(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function ol(e){return Array.isArray(e)?e:[e]}const nO="any",rf=({property:e,value:t,matchStrategy:r,applyTo:n})=>{const i=r||nO;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 f=A.isRef(a[u])?c.resolve(a[u]).node:a[u];if(Z.isPlainObject(f)){const h=f[e];Tr(h,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];Tr(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]&&!Tr(s?.[e],t,i);return{any:{enter:(s,a)=>{tf(s,a,o)}}}},iO="any",nf=({property:e,value:t,matchStrategy:r,applyTo:n})=>{const i=r||iO;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 f=A.isRef(a[u])?c.resolve(a[u]).node:a[u];if(Z.isPlainObject(f)){const h=f[e];Tr(h,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];Tr(c,t,i)&&delete a.parent[a.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}const o=s=>Tr(s?.[e],t,i);return{any:{enter:(s,a)=>{tf(s,a,o)}}}};function sl(e){const t=(void 0)(e,"utf-8");return A.parseYaml(t)}function rn(e,t){return A.isAbsoluteUrl(e)||t===void 0?e:Z.pathBrowserifyExports.resolve(Z.pathBrowserifyExports.dirname(t),e)}function ka(e){return(void 0)(e,"utf-8")}const of=({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=ka(rn(e,i?.configPath))}catch(o){r({message:`Failed to read markdown override file for "info.description".
11
+ ${o.message}`,location:n.child("description")})}}}}),sf=e=>({Info:{leave(t){if(!Z.isPlainObject(e))throw new Error('"info-override" decorator should be called with an object');const{severity:r,...n}=e;Object.assign(t,n)}}}),af=({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=ka(rn(s,i?.configPath))}catch(s){r({message:`Failed to read markdown override file for operation "${o}".
12
+ ${s.message}`,location:n.child("operationId").key()})}}}}),oO="x-internal",cf=({internalFlagProperty:e=oO})=>{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(A.isRef(n[l])&&i.resolve(n[l]).node?.[e]){if(Z.isPlainObject(s.discriminator?.mapping))for(const f in s.discriminator.mapping)o?.[f]===n[l].$ref&&delete s.discriminator.mapping[f];n.splice(l,1),c=!0,l--}n[l]?.[e]&&(n.splice(l,1),c=!0,l--)}else if(Z.isPlainObject(n))for(const l of Object.keys(n)){if(A.isRef(n[l])){const u=i.resolve(n[l]);Z.isPlainObject(u.node)&&u.node?.[e]&&(delete n[l],c=!0)}Z.isPlainObject(n[l])&&n[l]?.[e]&&(delete n[l],c=!0)}c&&(_r(n)||ef(n))&&delete s[a]}let r={};return{DiscriminatorMapping:{enter:n=>{r=JSON.parse(JSON.stringify(n))}},any:{enter:(n,i)=>{t(n,i,r)}}}},pf=({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=ka(rn(i,n?.configPath))}catch(o){r({message:`Failed to read markdown override file for tag "${t.name}".
13
+ ${o.message}`})}}}}),sO=["definitions","parameters","responses","securityDefinitions"],lf=()=>{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]=A.parseRef(i).pointer;if(!(!o||!s)&&sO.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(h=>h!==a&&!o.has(h))&&u&&(o.add(a),delete i[u][l],e.delete(a),_r(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})}}}},aO={"operation-description-override":af,"tag-description-override":pf,"info-description-override":of,"info-override":sf,"remove-x-internal":cf,"filter-in":rf,"filter-out":nf,"remove-unused-components":lf},cO=({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=al(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:sl(rn(c,r.config?.configPath))}}),t.responses[o]=s)}if(i.request&&t.requestBody){const o=al(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:sl(rn(a,r.config?.configPath))}}),t.requestBody=o}}}}});function al(e,t){if(!A.isRef(e))return e;const r=t(e);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}function pO(e,t){return t in e}function cl(e){if(!e.startsWith("#/components/"))return;const[t,r,n]=A.parseRef(e).pointer;if(!(!r||!n))return`${r}/${n}`}const uf=()=>{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(h=>h!==s&&!i.has(h))||u)&&l&&n.components&&pO(n.components,l)){i.add(s);const h=n.components[l];delete h[c],e.delete(s),_r(h)&&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=cl(n.$ref);if(!a)return;const c=cl(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),_r(n.components)&&delete n.components}},NamedSchemas:{Schema(n,i){const o=n.allOf?.some(s=>A.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})}}}},lO={"operation-description-override":af,"tag-description-override":pf,"info-description-override":of,"info-override":sf,"remove-x-internal":cf,"filter-in":rf,"filter-out":nf,"media-type-examples-override":cO,"remove-unused-components":uf},uO={},dO={},fO=()=>({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 mO(e){return e}const Ks=void 0,Ne=new Proxy(Z.tty,{get(e,t){return A.isBrowser?mO:e[t]}});class hO{info(t){return A.isBrowser?console.info(t):process.stderr.write(t)}warn(t){return A.isBrowser?console.warn(t):process.stderr.write(Ne.yellow(t))}error(t){return A.isBrowser?console.error(t):process.stderr.write(Ne.red(t))}output(t){return A.isBrowser?console.log(t):process.stdout.write(t)}printNewLine(){A.isBrowser?console.log(`
14
14
  `):process.stdout.write(`
15
15
  `)}printSeparator(t){const r=process.stdout.columns||80,n=t.repeat(Math.ceil(r/t.length)).slice(0,r),i=A.isBrowser?n:Ne.gray(n);return A.isBrowser?console.log(i):process.stdout.write(i)}indent(t,r){const n=A.isBrowser?" ":" ";return t.split(`
16
16
  `).map(i=>n.repeat(r)+i).join(`
17
- `)}}const Re=new iO,zs={problems:"{{problems}}",assertionName:"{{assertionName}}",nodeType:"{{nodeType}}",key:"{{key}}",property:"{{property}}",file:"{{file}}",pointer:"{{pointer}}"};function sl(e){const{filterInParentKeys:t,filterOutParentKeys:r,matchParentKeys:n}=e,i=n&&Yr(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(A.isTruthy)}function cf(e){const t=ca(pr).filter(i=>e.assertions[i]!==void 0).map(i=>({name:i,conditions:e.assertions[i],runsOnKeys:Yd.has(i),runsOnValues:Qd.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 pf({subject:e}){return(Array.isArray(e.property)?e.property:[e?.property]).filter(Boolean)}function lf(e,t,r){const n=pf(e),i=[];for(const o of t)if(n.length)for(const s of n)i.push(al({assert:o,ctx:r,assertionProperty:s}));else i.push(al({assert:o,ctx:r}));return i.flat()}function oO(e,t){const r=sl(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(!Z.isPlainObject(l.assertions))throw new Error(`${e.assertionId} -> where -> [${c}]: 'assertions' (Object) is required`);const u=sl(l.subject),f=cf(l),y=(b,w,E)=>!u.every(T=>T(w))||!!lf(l,f,{...E,node:b}).length,h={...(u.length||f.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:(b,w,E)=>!!(h.skip?.(b,w,E)||n?.(b,w))}}:o=o[l.subject?.type]=h}return o[e.subject.type]=i[e.subject.type],s}function sO(e,t){return(r,n)=>{const i=pf(t),o=`${Ne.blue(e)} failed because the ${Ne.blue(t.subject.type)} ${Ne.blue(i.join(", "))} didn't meet the assertions: ${zs.problems}`.replace(/ +/g," "),s=lf(t,cf(t),{...n,node:r});if(s.length)for(const a of aO(s)){const c=t.message||o,u={problems:uf(a),assertionName:e,nodeType:t.subject.type,property:i.join(", "),key:String(n.key),pointer:n.location.pointer,file:df(n.location.source.absoluteRef)};n.report({message:ff(c,u),location:cO(a)||n.location,forceSeverity:t.severity||"error",suggest:t.suggest||[],...t.reference&&{reference:t.reference},ruleId:e})}}}function aO(e){const t={};for(const r of e){if(!r.location)continue;const n=r.location.absolutePointer;t[n]=t[n]||[],t[n].push(r)}return Object.values(t)}function cO(e){return e.length?e[0].location:void 0}function uf(e){return e.length===1?e[0].message??"":e.map(t=>`
18
- - ${t.message??""}`).join("")}function df(e){return A.isAbsoluteUrl(e)?e.split("/").at(-1)||e:e.split(/[/\\]/).at(-1)||e}function ff(e,t){let r=e;for(const n of Object.keys(zs)){const i=zs[n],o=t[n];i&&(r=r.split(i).join(o))}return r}function al({assert:e,ctx:t,assertionProperty:r}){const n=e.name==="ref"?t.rawLocation:t.location;if(r){const i=A.isRef(t.node[r])?t.resolve(t.node[r])?.node:t.node[r],o=t.rawNode[r],s=n.child(r);return pr[e.name](i,e.conditions,{...t,baseLocation:s,rawValue:o})}else{const i=Array.isArray(t.node)?t.node:Object.keys(t.node);return pr[e.name](i,e.conditions,{...t,rawValue:t.rawNode,baseLocation:n})}}const Xt=e=>{const t=[],r=Object.values(e).filter(n=>Z.isPlainObject(n));for(const[n,i]of r.entries()){if(!et(i.subject.type))throw new Error(`${i.assertionId}: 'type' (String) is required`);if(!Z.isPlainObject(i.assertions))throw new Error(`${i.assertionId}: 'assertions' (Object) is required`);const o=sO(i.assertionId,i),s=oO(i,o);t.push(s)}return t};function pO(e){return Z.isPlainObject(e)||Array.isArray(e)}const mn=()=>({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=pO(s);(a?i.some(l=>zt(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 Wo,cl;function lO(){return cl||(cl=1,Wo=(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,f,y,h,b,w,E,T,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)),T=r.charCodeAt(s+(u=a+1)),I=r.charCodeAt(s+(f=a+2)),v=r.charCodeAt(s+(y=a+3)),h=a+=4,c=0;c<g;c+=2)b=x[c],w=x[c+1],l=e(b,l,u,E,w),u=e(l,u,f,T,w),f=e(u,f,y,I,w),h=e(f,y,h,v,w),x[c]=h,y=f,f=u,u=l,l=b;for(;a<o;)for(E=r.charCodeAt(s+(l=a)),h=++a,c=0;c<g;c+=2)b=x[c],x[c]=h=e(b,l,h,E,x[c+1]),l=b;return h}})()),Wo}var uO=lO();const dO=Z.getDefaultExportFromCjs(uO),To=(e,t,r)=>{if(A.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}},Jo=(e,t,r,n,i)=>!!(e.properties&&A.getOwn(e.properties,t)!==void 0||e.allOf?.some(o=>ar(o,t,r,n,i))||Wr(e.anyOf)&&e.anyOf.every(o=>ar(o,t,r,new Set(n),i))||Wr(e.oneOf)&&e.oneOf.every(o=>ar(o,t,r,new Set(n),i))),ar=(e,t,r,n=new Set,i)=>{if(A.isRef(e)&&Jo(e,t,r,n,i))return!0;const{schema:o,location:s,chain:a}=To(e,r,i);if(!o)return!1;if(!n.has(o)&&(n.add(o),Jo(o,t,r,n,s)))return!0;for(const c of a??[])if(!(!Z.isPlainObject(c.node)||n.has(c.node))&&(n.add(c.node),Jo(c.node,t,r,n,c.location)))return!0;return!1};function Vi(e){return Array.isArray(e)?"array":e===null?"null":Number.isInteger(e)?"integer":typeof e}function ro(e){const t=e?.security;return Array.isArray(t)&&t.length>0}function mf(e,t,r){if(ro(e))return!0;if(!Array.isArray(e?.traits))return!1;for(const n of e.traits){const i=A.isRef(n)?t(n,r).node:n;if(ro(i))return!0}return!1}function no(e,t,r){if(r&&e===null)return!0;switch(t){case"array":return Array.isArray(e);case"object":return Z.isPlainObject(e);case"null":return e===null;case"integer":return Number.isInteger(e);default:return typeof e===t}}function Po(e,t){return`${e} object should contain \`${t}\` field.`}function fO(e,t){return`${e} object should contain one of the fields: ${t.map(r=>`\`${r}\``).join(", ")}.`}function hf(e,t){return`${e} object \`${t}\` must be non-empty string.`}function kr({fieldName:e,value:t,ctx:r,reference:n}){Z.isPlainObject(t)&&(t[e]===void 0?r.report({message:Po(r.type.name,e),location:r.location.child([e]).key(),reference:n}):t[e]||r.report({message:hf(r.type.name,e),location:r.location.child([e]).key(),reference:n}))}function mO({fieldNames:e,value:t,ctx:r,reference:n}){if(Z.isPlainObject(t)){e.some(i=>t.hasOwnProperty(i))||r.report({message:fO(r.type.name,e),location:r.location.key(),reference:n});for(const i of e)t.hasOwnProperty(i)&&!t[i]&&r.report({message:hf(r.type.name,i),location:r.location.child([i]).key(),reference:n})}}function Oo(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=dO(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 yf(e){if(Z.isPlainObject(e)){if(dt(e.dataValue))return{value:e.dataValue,field:"dataValue"};if(dt(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:f,specVersion:y}=o;try{const{valid:h,errors:b}=s.validate(e,t,{schemaLoc:u.child("schema"),instancePath:i.pointer,resolve:l,allowAdditionalProperties:a,ajvContext:c,specVersion:y});if(!h)for(const w of b)f({message:`Example value must conform to the schema: ${w.message}.`,location:{...new A.Location(i.source,w.instancePath),reportOnKey:w.keyword==="unevaluatedProperties"||w.keyword==="additionalProperties"},from:u,suggest:w.suggest,reference:n})}catch(h){if(h.message==="discriminator: requires oneOf or anyOf composite keyword")return;f({message:`Example validation errored: ${h.message}.`,location:u.child("schema"),from:u,reference:n})}}const hO=10;function pl(e,t,r,n,{report:i,location:o},s){if(e&&!e.includes(t)){const a=e.length>hO?`\`${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:Oo(t,e)})}}function io({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 Vs(e,t){return t?e.name.toLowerCase():e.name}const hn=()=>({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=>!no(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 "${Vi(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)no(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"})}}}}),Io=()=>({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"})}}),yn=()=>{const e=[],t=new Set,r=(n,i,o)=>{if(Wr(n.required))for(const[s,a]of n.required.entries())ar(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)!Z.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=f=>To(f,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())!ar(n,l,i)&&!ar(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"})}}}},gn=()=>({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"})}}),Kt=()=>({ref:{leave(e,{report:t,location:r},n){n.node===void 0&&Sr(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;Sr(o,t,n.child(i))}}});function Sr(e,t,r){const n=e.error;n instanceof A.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 vn=()=>({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"}))}}),Ht=()=>({any(e,{report:t,type:r,location:n,rawLocation:i,key:o,resolve:s,ignoreNextVisitorsOnNode:a}){const c=Vi(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!==A.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 f=r.allowed?.(e);if(f&&Z.isPlainObject(e))for(const h in e)f.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 b of y||[])e.hasOwnProperty(b)&&(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 b=n.child([h]);let w=e[h],E=A.getOwn(r.properties,h);if(E===void 0&&(E=r.additionalProperties),typeof E=="function"&&(E=E(w,h)),A.isNamedType(E))continue;const T=E,I=Vi(w);if(T===void 0){if(h.startsWith("x-"))continue;t({message:`Property \`${h}\` is not expected here.`,suggest:Oo(h,Object.keys(r.properties)),from:l,location:b.key()});continue}if(T!==null){if(T.resolvable!==!1&&A.isRef(w)&&(w=s(w).node),T.items&&T.items?.enum&&Array.isArray(w))for(let v=0;v<w.length;v++)pl(T.items?.enum,w[v],h,l,{report:t,location:n.child([h,v])},T.items?.documentationLink);if(T.enum)pl(T.enum,w,h,l,{report:t,location:n.child([h])},T.documentationLink);else if(T.type&&!no(w,T.type,!1))t({message:`Expected type \`${T.type}\` but got \`${I}\`.`,from:l,location:b}),a();else if(I==="array"&&T.items?.type){const v=T.items?.type;for(let x=0;x<w.length;x++){const g=w[x];no(g,v,!1)||t({message:`Expected type \`${v}\` but got \`${Vi(g)}\`.`,from:l,location:b.child([x])})}}typeof T.minimum=="number"&&T.minimum>e[h]&&t({message:`The value of the ${h} field must be greater than or equal to ${T.minimum}`,from:l,location:n.child([h])})}}}}),yO=()=>({CriterionObject:{enter(e,{report:t,location:r}){e.type&&(e.type==="xpath"||Z.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"})}}}),gO=()=>{function e(t,{report:r,location:n}){if(Array.isArray(t))for(const i of t){const o=A.getOwn(i,"scheme"),s=A.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)}}}},vO=()=>({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"})}}}),bO=()=>{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"})}}}}}},wO={apiKey:["apiKey"],basic:["username","password"],digest:["username","password"],bearer:["token"],oauth2:["accessToken"],openIdConnect:["accessToken"],mutualTLS:[]};function ll(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,a=i?.type==="http"?s?.toLowerCase():s;if(s==="mutualTLS"){Re.warn("Please use CLI option to provide mutualTLS certificates for mutualTls authentication security schema.");continue}const c=wO[a];if(c)for(const l of c)(!o||!(l in o))&&t({message:`The \`${l}\` 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 SO=()=>({Step:{enter(e,t){ll(e?.["x-security"],t)}},Workflow:{enter(e,t){ll(e?.["x-security"],t)}}}),EO=()=>({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)}}}}),xO=()=>{const e=new Map,t=new Map,r=[];function n({value:s,report:a,location:c,path:l,definedWorkflowOutputs:u}){const f=/\$workflows\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g;let y;for(;(y=f.exec(s))!==null;){const[h,b,w]=y,E=u.get(b);E?E.includes(w)||a({message:`Output key "${w}" is not defined in workflow "${b}". Available outputs: [ ${E.join(", ")} ].`,location:c.child(l)}):a({message:`Workflow "${b}" 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 f=/\$steps\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g;let y;for(;(y=f.exec(s))!==null;){const[h,b,w]=y,E=u.get(b);E?E.includes(w)||a({message:`Output key "${w}" is not defined in step "${b}". Available outputs: [ ${E.join(", ")} ].`,location:c.child(l)}):a({message:`Step "${b}" 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(Z.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()}}}},TO=()=>({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)}}}),PO=()=>{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)}}}}},OO=()=>{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)}}}},IO=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){e?.length||t({message:"The `sourceDescriptions` list must have at least one entry.",location:r})}}}),_O=["x-operation","operationId","operationPath","channelPath","workflowId"],AO=()=>({Step:{enter(e,{report:t,location:r}){const n=_O.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"})}}}),RO=()=>({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)}}}),$O=()=>({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)}}}),NO=()=>({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)}}}}),kO=()=>{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)}}}}},DO=()=>{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))}}}},qO={assertions:Xt,"criteria-unique":EO,"no-criteria-xpath":yO,"no-duplicated-enum-values":mn,"no-unsafe-markdown":vn,"no-enum-type-mismatch":hn,"no-mixed-number-range-constraints":Io,"no-required-schema-properties-undefined":yn,"no-schema-type-mismatch":gn,"no-unresolved-refs":Kt,"no-x-security-both-scheme-and-scheme-name":gO,"no-x-security-scheme-name-without-openapi":vO,"outputs-defined":xO,"parameters-unique":TO,"requestBody-replacements-unique":PO,"sourceDescription-name-unique":OO,"sourceDescription-type":rO,"sourceDescriptions-not-empty":IO,"spec-step-mutually-exclusive-fields":AO,"step-onFailure-unique":RO,"step-onSuccess-unique":$O,"stepId-unique":NO,struct:Ht,"workflow-dependsOn":kO,"workflowId-unique":DO,"x-security-scheme-name-reference":bO,"x-security-scheme-required-values":SO},CO={},Dr=()=>({Info(e,{report:t,location:r}){e.contact||t({message:Po("Info","contact"),location:r.child("contact").key(),reference:"https://redocly.com/docs/cli/rules/oas/info-contact"})}}),jO=/^1\.0\.\d+(-.+)?$/;function Na(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 qr(e){if(!Z.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"&&jO.test(e.overlay))return"overlay1";throw new Error("Unsupported specification")}const _o=()=>{let e;return{Root:{enter(t){e=qr(t)},License:{leave(t,r){e==="oas3_1"||e==="oas3_2"?mO({fieldNames:["url","identifier"],value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"}):kr({fieldName:"url",value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"})}}}}},Ao=({ignoreCase:e=!1})=>{const t=new Set;return{Tag:{leave(r,n){const i=Vs(r,e);t.has(i)?n.report({message:`Duplicate tag name found: '${r.name}'.`,location:n.location}):t.add(i)}}}},Ro=()=>({Root:{PathItem:{Operation(e,t){kr({fieldName:"operationId",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId"})}}}});function MO(e,t,r){if("flows"in e&&e.flows){const{node:n,location:i}=A.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=A.isRef(a)?t(a,o).node:a;return Object.keys(c?.scopes||{})});return[...new Set(s)]}return Object.keys(e.scopes||{})}const ka=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:Oo(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"?MO(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])})}}},$o=()=>({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"})}}}),No=()=>({Tag(e,t){kr({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/tag-description"})}}),ko=({ignoreCase:e=!1})=>({Root(t,{report:r,location:n}){if(t.tags)for(let i=0;i<t.tags.length-1;i++)Vs(t.tags[i],e)>Vs(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"})}}),LO=()=>({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"})}}),UO=()=>({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"})}}),ul="https://redocly.com/docs/cli/rules/async/security-defined",FO=()=>{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:ul});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:ul})}}},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(),ro(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}){mf(o,a)||r.push({location:s,channelServers:n})}}}},BO={struct:Ht,"no-unresolved-refs":Kt,assertions:Xt,"info-contact":Dr,"info-license-strict":_o,"operation-operationId":Ro,"security-defined":FO,"channels-kebab-case":LO,"no-channel-trailing-slash":UO,"tag-description":No,"tags-alphabetical":ko,"no-duplicated-enum-values":mn,"no-unsafe-markdown":vn,"no-duplicated-tag-names":Ao,"no-required-schema-properties-undefined":yn,"no-enum-type-mismatch":hn,"no-mixed-number-range-constraints":Io,"no-schema-type-mismatch":gn,"security-scopes-defined":ka,"spec-ref-siblings":$o},zO={},VO=()=>({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"})}}),KO=()=>({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"})}}),dl="#/components/securitySchemes/",HO="#/components/",Xo="https://redocly.com/docs/cli/rules/async/security-defined";function GO(e){const t=e.indexOf("#");return t===-1?e:e.slice(t)}function YO(e){if(!e.startsWith(dl))return!1;const t=e.slice(dl.length);return t!==""&&!t.includes("/")}const QO=()=>{const e=[];let t,r,n,i,o;const s=(a,c,l)=>{const u=a.channel,f=A.isRef(u)?c(u,l):void 0,h=(A.isRef(u)?f?.node:u)?.servers;let b,w;return h&&h.length>0?(b=h,w=f?.location?.source.absoluteRef??l):(b=t?Object.values(t):[],w=r),b.length===0?!1:b.every(E=>{const T=A.isRef(E)?c(E,w).node:E;return ro(T)})};return{Root:{enter(a,{location:c,resolve:l}){const u=a?.servers;if(A.isRef(u)){const y=l(u);t=y.node??void 0,r=y.location?.source.absoluteRef}else t=u,r=void 0;const f=a?.operations;if(A.isRef(f)){const y=l(f);n=y.node??void 0,i=y.location?.source.absoluteRef,o=y.location}else n=f,i=void 0,o=c.child(["operations"])},leave(a,{report:c,resolve:l}){for(const u of e){if((u.local||u.refPointer.startsWith(HO))&&!YO(u.refPointer)){c({message:"Security scheme `$ref` must point to `#/components/securitySchemes`.",location:u.location.key(),reference:Xo});continue}u.resolved||c({message:`There is no \`${u.name}\` security scheme defined.`,location:u.location.key(),reference:Xo})}if(n&&o){const u=o;for(const[f,y]of Object.entries(n)){let h,b;if(A.isRef(y)){const w=l(y,i);h=w.node,b=w.location?.source.absoluteRef}else h=y,b=i;h&&(mf(h,l,b)||s(h,l,b)||c({message:"Every operation should have security defined on it.",location:u.child([f]).key(),reference:Xo}))}}}},SecuritySchemeList:{enter(a,{location:c,resolve:l}){if(a)for(let u=0;u<a.length;u++){const f=a[u];if(!A.isRef(f))continue;const y=c.child([u]),h=l(f),b=GO(f.$ref),w=b.split("/").pop()??f.$ref;e.push({location:y,name:w,refPointer:b,resolved:h.node!=null,local:f.$ref.startsWith("#")})}}}}};function WO(e,t,r){if(!e.flows)return[];const{node:n,location:i}=A.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=A.isRef(a)?t(a,o).node:a;return Object.keys(c?.availableScopes||{})});return[...new Set(s)]}const JO=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=A.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"?WO(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:Oo(l,s),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}}},XO={struct:Ht,"no-unresolved-refs":Kt,assertions:Xt,"info-contact":Dr,"info-license-strict":_o,"operation-operationId":Ro,"security-defined":QO,"channels-kebab-case":VO,"no-channel-trailing-slash":KO,"tag-description":No,"tags-alphabetical":ko,"no-duplicated-enum-values":mn,"no-unsafe-markdown":vn,"no-duplicated-tag-names":Ao,"no-required-schema-properties-undefined":yn,"no-enum-type-mismatch":hn,"no-mixed-number-range-constraints":Io,"no-schema-type-mismatch":gn,"security-scopes-defined":JO,"spec-ref-siblings":$o},ZO={};function gf(e){return ca(pr).filter(t=>e.assertions[t]!==void 0).map(t=>({name:t,conditions:e.assertions[t],runsOnKeys:Yd.has(t),runsOnValues:Qd.has(t)}))}const eI=e=>{const t=Object.values(e).filter(Z.isPlainObject),r=[];for(const n of t){if(n.severity==="off")continue;const i=n.subject?.type;if(!i)continue;if(!Z.isPlainObject(n.assertions))throw new Error(`${n.assertionId}: 'assertions' (Object) is required`);const o=gf(n),s=tI(n);r.push({[i]:(a,c)=>{rI(a,c,s)&&nI(a,c,n,o)}})}return r};function tI(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(!Z.isPlainObject(t.assertions))throw new Error(`${e.assertionId} -> where -> [${r}]: 'assertions' (Object) is required`);return{kind:t.subject.type,definition:t,assertsToApply:gf(t)}}):[]}function rI(e,t,r){let n=r;const i=r.at(-1);if(i&&i.kind===e.kind){if(!fl(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&&fl(c,s,t)){a=!0;break}}if(!a)return!1}return!0}function fl(e,t,r){const{value:n}=vf(e,t.definition.subject.property),i=new A.Location(r.source,"#/");return t.assertsToApply.every(o=>pr[o.name](n,o.conditions,{baseLocation:i,rawValue:n}).length===0)}function nI(e,t,r,n){const i=bf(r.subject.property),{value:o,locNode:s}=vf(e,r.subject.property),a=new A.Location(t.source,"#/"),c=n.flatMap(u=>pr[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:ff(r.message??l,{problems:uf(c),assertionName:r.assertionId,nodeType:r.subject.type,property:i??"",key:"",pointer:"",file:df(t.source.absoluteRef)}),node:s,suggest:r.suggest,ruleId:r.assertionId,severity:r.severity})}function Zo(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 vf(e,t){const r=bf(t);if(r===void 0)return Zo(e);const n=e[r];if(Array.isArray(n))return{value:n.map(o=>Zo(o).value),locNode:e};const i=Zo(n);return{value:i.value,locNode:iI(i.locNode)?i.locNode:e}}function iI(e){return Z.isPlainObject(e)&&"kind"in e}function bf(e){return Array.isArray(e)?e[0]:e}const oI=["Query","Mutation","Subscription"];function sI(e){let t=e;for(;t.kind==="ListType"||t.kind==="NonNullType";)t=t.type;return t.name.value}const aI=()=>{const e=new Map,t=new Set,r=new Set;let n=!1;const i=u=>t.add(sI(u)),o=u=>e.set(u.name.value,u.name),s=u=>{for(const f of u.interfaces??[])i(f);for(const f of u.fields??[]){i(f.type);for(const y of f.arguments??[])i(y.type)}},a=u=>{for(const f of u.types??[])i(f)},c=u=>{for(const f of u.fields??[])i(f.type)},l=u=>{for(const f of u.operationTypes??[])r.add(f.type.name.value)};return{SchemaDefinition:u=>{n=!0,l(u)},SchemaExtension:l,DirectiveDefinition:u=>{for(const f of u.arguments??[])i(f.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,f)=>{if(!n)for(const y of oI)e.has(y)&&r.add(y);if(r.size!==0)for(const[y,h]of e)t.has(y)||r.has(y)||f.report({message:`Type \`${y}\` is declared but never used.`,node:h})}}}};function Ue(e,t){if(!!!e)throw new Error(t)}function lr(e){return typeof e=="object"&&e!==null}function xt(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}const cI=/\r\n|[\n\r]/g;function oo(e,t){let r=0,n=1;for(const i of e.body.matchAll(cI)){if(typeof i.index=="number"||xt(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function pI(e){return wf(e.source,oo(e.source,e.start))}function wf(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),f=u[i];if(f.length>120){const y=Math.floor(c/80),h=c%80,b=[];for(let w=0;w<f.length;w+=80)b.push(f.slice(w,w+80));return l+ml([[`${s} |`,b[0]],...b.slice(1,y+1).map(w=>["|",w]),["|","^".padStart(h)],["|",b[y+1]]])}return l+ml([[`${s-1} |`,u[i-1]],[`${s} |`,f],["|","^".padStart(c)],[`${s+1} |`,u[i+1]]])}function ml(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 lI(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:f}=lI(r);super(t),this.name="GraphQLError",this.path=l??void 0,this.originalError=u??void 0,this.nodes=hl(Array.isArray(s)?s:s?[s]:void 0);const y=hl((n=this.nodes)===null||n===void 0?void 0:n.map(b=>b.loc).filter(b=>b!=null));this.source=a??(y==null||(i=y[0])===null||i===void 0?void 0:i.source),this.positions=c??y?.map(b=>b.start),this.locations=c&&a?c.map(b=>oo(a,b)):y?.map(b=>oo(b.source,b.start));const h=lr(u?.extensions)?u?.extensions:void 0;this.extensions=(o=f??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+=`
17
+ `)}}const Re=new hO,Hs={problems:"{{problems}}",assertionName:"{{assertionName}}",nodeType:"{{nodeType}}",key:"{{key}}",property:"{{property}}",file:"{{file}}",pointer:"{{pointer}}"};function pl(e){const{filterInParentKeys:t,filterOutParentKeys:r,matchParentKeys:n}=e,i=n&&Jr(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(A.isTruthy)}function df(e){const t=la(pr).filter(i=>e.assertions[i]!==void 0).map(i=>({name:i,conditions:e.assertions[i],runsOnKeys:Xd.has(i),runsOnValues:Zd.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 ff({subject:e}){return(Array.isArray(e.property)?e.property:[e?.property]).filter(Boolean)}function mf(e,t,r){const n=ff(e),i=[];for(const o of t)if(n.length)for(const s of n)i.push(ll({assert:o,ctx:r,assertionProperty:s}));else i.push(ll({assert:o,ctx:r}));return i.flat()}function yO(e,t){const r=pl(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(!Z.isPlainObject(l.assertions))throw new Error(`${e.assertionId} -> where -> [${c}]: 'assertions' (Object) is required`);const u=pl(l.subject),f=df(l),h=(b,w,x)=>!u.every(T=>T(w))||!!mf(l,f,{...x,node:b}).length,y={...(u.length||f.length)&&{skip:h}};l.subject.type===e.subject.type&&c===a.length-1?i[e.subject.type]={enter:t,...y.skip&&{skip:y.skip}||n&&{skip:(b,w,x)=>!!(y.skip?.(b,w,x)||n?.(b,w))}}:o=o[l.subject?.type]=y}return o[e.subject.type]=i[e.subject.type],s}function gO(e,t){return(r,n)=>{const i=ff(t),o=`${Ne.blue(e)} failed because the ${Ne.blue(t.subject.type)} ${Ne.blue(i.join(", "))} didn't meet the assertions: ${Hs.problems}`.replace(/ +/g," "),s=mf(t,df(t),{...n,node:r});if(s.length)for(const a of vO(s)){const c=t.message||o,u={problems:hf(a),assertionName:e,nodeType:t.subject.type,property:i.join(", "),key:String(n.key),pointer:n.location.pointer,file:yf(n.location.source.absoluteRef)};n.report({message:gf(c,u),location:bO(a)||n.location,forceSeverity:t.severity||"error",suggest:t.suggest||[],...t.reference&&{reference:t.reference},ruleId:e})}}}function vO(e){const t={};for(const r of e){if(!r.location)continue;const n=r.location.absolutePointer;t[n]=t[n]||[],t[n].push(r)}return Object.values(t)}function bO(e){return e.length?e[0].location:void 0}function hf(e){return e.length===1?e[0].message??"":e.map(t=>`
18
+ - ${t.message??""}`).join("")}function yf(e){return A.isAbsoluteUrl(e)?e.split("/").at(-1)||e:e.split(/[/\\]/).at(-1)||e}function gf(e,t){let r=e;for(const n of Object.keys(Hs)){const i=Hs[n],o=t[n];i&&(r=r.split(i).join(o))}return r}function ll({assert:e,ctx:t,assertionProperty:r}){const n=e.name==="ref"?t.rawLocation:t.location;if(r){const i=A.isRef(t.node[r])?t.resolve(t.node[r])?.node:t.node[r],o=t.rawNode[r],s=n.child(r);return pr[e.name](i,e.conditions,{...t,baseLocation:s,rawValue:o})}else{const i=Array.isArray(t.node)?t.node:Object.keys(t.node);return pr[e.name](i,e.conditions,{...t,rawValue:t.rawNode,baseLocation:n})}}const Xt=e=>{const t=[],r=Object.values(e).filter(n=>Z.isPlainObject(n));for(const[n,i]of r.entries()){if(!et(i.subject.type))throw new Error(`${i.assertionId}: 'type' (String) is required`);if(!Z.isPlainObject(i.assertions))throw new Error(`${i.assertionId}: 'assertions' (Object) is required`);const o=gO(i.assertionId,i),s=yO(i,o);t.push(s)}return t};function wO(e){return Z.isPlainObject(e)||Array.isArray(e)}const gn=()=>({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=wO(s);(a?i.some(l=>zt(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 Zo,ul;function SO(){return ul||(ul=1,Zo=(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,f,h,y,b,w,x,T,E,v,P=[];for(c=0;c<i;c++)P.push(c+1),P.push(t.charCodeAt(s+c));for(var g=P.length-1;a<o-3;)for(x=r.charCodeAt(s+(l=a)),T=r.charCodeAt(s+(u=a+1)),E=r.charCodeAt(s+(f=a+2)),v=r.charCodeAt(s+(h=a+3)),y=a+=4,c=0;c<g;c+=2)b=P[c],w=P[c+1],l=e(b,l,u,x,w),u=e(l,u,f,T,w),f=e(u,f,h,E,w),y=e(f,h,y,v,w),P[c]=y,h=f,f=u,u=l,l=b;for(;a<o;)for(x=r.charCodeAt(s+(l=a)),y=++a,c=0;c<g;c+=2)b=P[c],P[c]=y=e(b,l,y,x,P[c+1]),l=b;return y}})()),Zo}var EO=SO();const xO=Z.getDefaultExportFromCjs(EO),Io=(e,t,r)=>{if(A.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}},es=(e,t,r,n,i)=>!!(e.properties&&A.getOwn(e.properties,t)!==void 0||e.allOf?.some(o=>ar(o,t,r,n,i))||Zr(e.anyOf)&&e.anyOf.every(o=>ar(o,t,r,new Set(n),i))||Zr(e.oneOf)&&e.oneOf.every(o=>ar(o,t,r,new Set(n),i))),ar=(e,t,r,n=new Set,i)=>{if(A.isRef(e)&&es(e,t,r,n,i))return!0;const{schema:o,location:s,chain:a}=Io(e,r,i);if(!o)return!1;if(!n.has(o)&&(n.add(o),es(o,t,r,n,s)))return!0;for(const c of a??[])if(!(!Z.isPlainObject(c.node)||n.has(c.node))&&(n.add(c.node),es(c.node,t,r,n,c.location)))return!0;return!1};function Gi(e){return Array.isArray(e)?"array":e===null?"null":Number.isInteger(e)?"integer":typeof e}function oo(e){const t=e?.security;return Array.isArray(t)&&t.length>0}function vf(e,t,r){if(oo(e))return!0;if(!Array.isArray(e?.traits))return!1;for(const n of e.traits){const i=A.isRef(n)?t(n,r).node:n;if(oo(i))return!0}return!1}function so(e,t,r){if(r&&e===null)return!0;switch(t){case"array":return Array.isArray(e);case"object":return Z.isPlainObject(e);case"null":return e===null;case"integer":return Number.isInteger(e);default:return typeof e===t}}function _o(e,t){return`${e} object should contain \`${t}\` field.`}function TO(e,t){return`${e} object should contain one of the fields: ${t.map(r=>`\`${r}\``).join(", ")}.`}function bf(e,t){return`${e} object \`${t}\` must be non-empty string.`}function Dr({fieldName:e,value:t,ctx:r,reference:n}){Z.isPlainObject(t)&&(t[e]===void 0?r.report({message:_o(r.type.name,e),location:r.location.child([e]).key(),reference:n}):t[e]||r.report({message:bf(r.type.name,e),location:r.location.child([e]).key(),reference:n}))}function PO({fieldNames:e,value:t,ctx:r,reference:n}){if(Z.isPlainObject(t)){e.some(i=>t.hasOwnProperty(i))||r.report({message:TO(r.type.name,e),location:r.location.key(),reference:n});for(const i of e)t.hasOwnProperty(i)&&!t[i]&&r.report({message:bf(r.type.name,i),location:r.location.child([i]).key(),reference:n})}}function Ao(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=xO(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 wf(e){if(Z.isPlainObject(e)){if(dt(e.dataValue))return{value:e.dataValue,field:"dataValue"};if(dt(e.value))return{value:e.value,field:"value"}}}function nn({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:f,specVersion:h}=o;try{const{valid:y,errors:b}=s.validate(e,t,{schemaLoc:u.child("schema"),instancePath:i.pointer,resolve:l,allowAdditionalProperties:a,ajvContext:c,specVersion:h});if(!y)for(const w of b)f({message:`Example value must conform to the schema: ${w.message}.`,location:{...new A.Location(i.source,w.instancePath),reportOnKey:w.keyword==="unevaluatedProperties"||w.keyword==="additionalProperties"},from:u,suggest:w.suggest,reference:n})}catch(y){if(y.message==="discriminator: requires oneOf or anyOf composite keyword")return;f({message:`Example validation errored: ${y.message}.`,location:u.child("schema"),from:u,reference:n})}}const OO=10;function dl(e,t,r,n,{report:i,location:o},s){if(e&&!e.includes(t)){const a=e.length>OO?`\`${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:Ao(t,e)})}}function ao({responseCodes:e,codeRange:t,report:r,reference:n,disallowDefault:i=!1}){const o=new RegExp(`^${t[0]}[0-9Xx]{2}$`);e.some(a=>!i&&t==="2XX"&&a==="default"||o.test(a))||r({message:`Operation must have at least one \`${t}\` response.`,location:{reportOnKey:!0},reference:n})}function Gs(e,t){return t?e.name.toLowerCase():e.name}const vn=()=>({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=>!so(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 "${Gi(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)so(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"})}}}}),Ro=()=>({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"})}}),bn=()=>{const e=[],t=new Set,r=(n,i,o)=>{if(Zr(n.required))for(const[s,a]of n.required.entries())ar(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)!Z.isPlainObject(a)||t.has(a)||(t.add(a),r(a,c,i))}},Schema:{leave(n){e.pop()},enter(n,i){if(e.push(n),!Zr(n.required))return;const o=(c,l)=>{const u=f=>Io(f,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())!ar(n,l,i)&&!ar(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"})}}}},wn=()=>({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"})}}),Kt=()=>({ref:{leave(e,{report:t,location:r},n){n.node===void 0&&Er(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;Er(o,t,n.child(i))}}});function Er(e,t,r){const n=e.error;n instanceof A.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 Sn=()=>({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"}))}}),Ht=()=>({any(e,{report:t,type:r,location:n,rawLocation:i,key:o,resolve:s,ignoreNextVisitorsOnNode:a}){const c=Gi(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!==A.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 y of u||[])e.hasOwnProperty(y)||t({message:`The field \`${y}\` must be present on this level.`,from:l,location:[{reportOnKey:!0}]});const f=r.allowed?.(e);if(f&&Z.isPlainObject(e))for(const y in e)f.includes(y)||r.extensionsPrefix&&y.startsWith(r.extensionsPrefix)||!Object.keys(r.properties).includes(y)||t({message:`The field \`${y}\` is not allowed here.`,from:l,location:n.child([y]).key()});const h=r.requiredOneOf||null;if(h){let y=!1;for(const b of h||[])e.hasOwnProperty(b)&&(y=!0);y||t({message:`Must contain at least one of the following fields: ${r.requiredOneOf?.join(", ")}.`,from:l,location:[{reportOnKey:!0}]})}for(const y of Object.keys(e)){const b=n.child([y]);let w=e[y],x=A.getOwn(r.properties,y);if(x===void 0&&(x=r.additionalProperties),typeof x=="function"&&(x=x(w,y)),A.isNamedType(x))continue;const T=x,E=Gi(w);if(T===void 0){if(y.startsWith("x-"))continue;t({message:`Property \`${y}\` is not expected here.`,suggest:Ao(y,Object.keys(r.properties)),from:l,location:b.key()});continue}if(T!==null){if(T.resolvable!==!1&&A.isRef(w)&&(w=s(w).node),T.items&&T.items?.enum&&Array.isArray(w))for(let v=0;v<w.length;v++)dl(T.items?.enum,w[v],y,l,{report:t,location:n.child([y,v])},T.items?.documentationLink);if(T.enum)dl(T.enum,w,y,l,{report:t,location:n.child([y])},T.documentationLink);else if(T.type&&!so(w,T.type,!1))t({message:`Expected type \`${T.type}\` but got \`${E}\`.`,from:l,location:b}),a();else if(E==="array"&&T.items?.type){const v=T.items?.type;for(let P=0;P<w.length;P++){const g=w[P];so(g,v,!1)||t({message:`Expected type \`${v}\` but got \`${Gi(g)}\`.`,from:l,location:b.child([P])})}}typeof T.minimum=="number"&&T.minimum>e[y]&&t({message:`The value of the ${y} field must be greater than or equal to ${T.minimum}`,from:l,location:n.child([y])})}}}}),IO=()=>({CriterionObject:{enter(e,{report:t,location:r}){e.type&&(e.type==="xpath"||Z.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"})}}}),_O=()=>{function e(t,{report:r,location:n}){if(Array.isArray(t))for(const i of t){const o=A.getOwn(i,"scheme"),s=A.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)}}}},AO=()=>({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"})}}}),RO=()=>{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"})}}}}}},$O={apiKey:["apiKey"],basic:["username","password"],digest:["username","password"],bearer:["token"],oauth2:["accessToken"],openIdConnect:["accessToken"],mutualTLS:[]};function fl(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,a=i?.type==="http"?s?.toLowerCase():s;if(s==="mutualTLS"){Re.warn("Please use CLI option to provide mutualTLS certificates for mutualTls authentication security schema.");continue}const c=$O[a];if(c)for(const l of c)(!o||!(l in o))&&t({message:`The \`${l}\` 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 NO=()=>({Step:{enter(e,t){fl(e?.["x-security"],t)}},Workflow:{enter(e,t){fl(e?.["x-security"],t)}}}),kO=()=>({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)}}}}),DO=()=>{const e=new Map,t=new Map,r=[];function n({value:s,report:a,location:c,path:l,definedWorkflowOutputs:u}){const f=/\$workflows\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g;let h;for(;(h=f.exec(s))!==null;){const[y,b,w]=h,x=u.get(b);x?x.includes(w)||a({message:`Output key "${w}" is not defined in workflow "${b}". Available outputs: [ ${x.join(", ")} ].`,location:c.child(l)}):a({message:`Workflow "${b}" referenced in runtime expression "${y}" is not defined or has no outputs.`,location:c.child(l)})}}function i({value:s,report:a,location:c,path:l,definedStepOutputs:u}){const f=/\$steps\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g;let h;for(;(h=f.exec(s))!==null;){const[y,b,w]=h,x=u.get(b);x?x.includes(w)||a({message:`Output key "${w}" is not defined in step "${b}". Available outputs: [ ${x.join(", ")} ].`,location:c.child(l)}):a({message:`Step "${b}" referenced in runtime expression "${y}" 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(Z.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()}}}},qO=()=>({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)}}}),jO=()=>{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)}}}}},CO=()=>{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)}}}},MO=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){e?.length||t({message:"The `sourceDescriptions` list must have at least one entry.",location:r})}}}),LO=["x-operation","operationId","operationPath","channelPath","workflowId"],UO=()=>({Step:{enter(e,{report:t,location:r}){const n=LO.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"})}}}),FO=()=>({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)}}}),BO=()=>({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)}}}),zO=()=>({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)}}}}),VO=()=>{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)}}}}},KO=()=>{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))}}}},HO={assertions:Xt,"criteria-unique":kO,"no-criteria-xpath":IO,"no-duplicated-enum-values":gn,"no-unsafe-markdown":Sn,"no-enum-type-mismatch":vn,"no-mixed-number-range-constraints":Ro,"no-required-schema-properties-undefined":bn,"no-schema-type-mismatch":wn,"no-unresolved-refs":Kt,"no-x-security-both-scheme-and-scheme-name":_O,"no-x-security-scheme-name-without-openapi":AO,"outputs-defined":DO,"parameters-unique":qO,"requestBody-replacements-unique":jO,"sourceDescription-name-unique":CO,"sourceDescription-type":fO,"sourceDescriptions-not-empty":MO,"spec-step-mutually-exclusive-fields":UO,"step-onFailure-unique":FO,"step-onSuccess-unique":BO,"stepId-unique":zO,struct:Ht,"workflow-dependsOn":VO,"workflowId-unique":KO,"x-security-scheme-name-reference":RO,"x-security-scheme-required-values":NO},GO={},qr=()=>({Info(e,{report:t,location:r}){e.contact||t({message:_o("Info","contact"),location:r.child("contact").key(),reference:"https://redocly.com/docs/cli/rules/oas/info-contact"})}}),YO=/^1\.0\.\d+(-.+)?$/;function Da(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 jr(e){if(!Z.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"&&YO.test(e.overlay))return"overlay1";throw new Error("Unsupported specification")}const $o=()=>{let e;return{Root:{enter(t){e=jr(t)},License:{leave(t,r){e==="oas3_1"||e==="oas3_2"?PO({fieldNames:["url","identifier"],value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"}):Dr({fieldName:"url",value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"})}}}}},No=({ignoreCase:e=!1})=>{const t=new Set;return{Tag:{leave(r,n){const i=Gs(r,e);t.has(i)?n.report({message:`Duplicate tag name found: '${r.name}'.`,location:n.location}):t.add(i)}}}},ko=()=>({Root:{PathItem:{Operation(e,t){Dr({fieldName:"operationId",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId"})}}}});function QO(e,t,r){if("flows"in e&&e.flows){const{node:n,location:i}=A.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=A.isRef(a)?t(a,o).node:a;return Object.keys(c?.scopes||{})});return[...new Set(s)]}return Object.keys(e.scopes||{})}const qa=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:Ao(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"?QO(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])})}}},Do=()=>({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"})}}}),qo=()=>({Tag(e,t){Dr({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/tag-description"})}}),jo=({ignoreCase:e=!1})=>({Root(t,{report:r,location:n}){if(t.tags)for(let i=0;i<t.tags.length-1;i++)Gs(t.tags[i],e)>Gs(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"})}}),WO=()=>({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"})}}),JO=()=>({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"})}}),ml="https://redocly.com/docs/cli/rules/async/security-defined",XO=()=>{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:ml});const a=[...t.keys()];for(const{location:c,channelServers:l}of r){const u=l??a;u.length>0&&u.every(h=>t.get(h))||s({message:"Every operation should have security defined on it.",location:c.key(),reference:ml})}}},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(),oo(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}){vf(o,a)||r.push({location:s,channelServers:n})}}}},ZO={struct:Ht,"no-unresolved-refs":Kt,assertions:Xt,"info-contact":qr,"info-license-strict":$o,"operation-operationId":ko,"security-defined":XO,"channels-kebab-case":WO,"no-channel-trailing-slash":JO,"tag-description":qo,"tags-alphabetical":jo,"no-duplicated-enum-values":gn,"no-unsafe-markdown":Sn,"no-duplicated-tag-names":No,"no-required-schema-properties-undefined":bn,"no-enum-type-mismatch":vn,"no-mixed-number-range-constraints":Ro,"no-schema-type-mismatch":wn,"security-scopes-defined":qa,"spec-ref-siblings":Do},eI={},tI=()=>({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"})}}),rI=()=>({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"})}}),hl="#/components/securitySchemes/",nI="#/components/",ts="https://redocly.com/docs/cli/rules/async/security-defined";function iI(e){const t=e.indexOf("#");return t===-1?e:e.slice(t)}function oI(e){if(!e.startsWith(hl))return!1;const t=e.slice(hl.length);return t!==""&&!t.includes("/")}const sI=()=>{const e=[];let t,r,n,i,o;const s=(a,c,l)=>{const u=a.channel,f=A.isRef(u)?c(u,l):void 0,y=(A.isRef(u)?f?.node:u)?.servers;let b,w;return y&&y.length>0?(b=y,w=f?.location?.source.absoluteRef??l):(b=t?Object.values(t):[],w=r),b.length===0?!1:b.every(x=>{const T=A.isRef(x)?c(x,w).node:x;return oo(T)})};return{Root:{enter(a,{location:c,resolve:l}){const u=a?.servers;if(A.isRef(u)){const h=l(u);t=h.node??void 0,r=h.location?.source.absoluteRef}else t=u,r=void 0;const f=a?.operations;if(A.isRef(f)){const h=l(f);n=h.node??void 0,i=h.location?.source.absoluteRef,o=h.location}else n=f,i=void 0,o=c.child(["operations"])},leave(a,{report:c,resolve:l}){for(const u of e){if((u.local||u.refPointer.startsWith(nI))&&!oI(u.refPointer)){c({message:"Security scheme `$ref` must point to `#/components/securitySchemes`.",location:u.location.key(),reference:ts});continue}u.resolved||c({message:`There is no \`${u.name}\` security scheme defined.`,location:u.location.key(),reference:ts})}if(n&&o){const u=o;for(const[f,h]of Object.entries(n)){let y,b;if(A.isRef(h)){const w=l(h,i);y=w.node,b=w.location?.source.absoluteRef}else y=h,b=i;y&&(vf(y,l,b)||s(y,l,b)||c({message:"Every operation should have security defined on it.",location:u.child([f]).key(),reference:ts}))}}}},SecuritySchemeList:{enter(a,{location:c,resolve:l}){if(a)for(let u=0;u<a.length;u++){const f=a[u];if(!A.isRef(f))continue;const h=c.child([u]),y=l(f),b=iI(f.$ref),w=b.split("/").pop()??f.$ref;e.push({location:h,name:w,refPointer:b,resolved:y.node!=null,local:f.$ref.startsWith("#")})}}}}};function aI(e,t,r){if(!e.flows)return[];const{node:n,location:i}=A.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=A.isRef(a)?t(a,o).node:a;return Object.keys(c?.availableScopes||{})});return[...new Set(s)]}const cI=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=A.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"?aI(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:Ao(l,s),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}}},pI={struct:Ht,"no-unresolved-refs":Kt,assertions:Xt,"info-contact":qr,"info-license-strict":$o,"operation-operationId":ko,"security-defined":sI,"channels-kebab-case":tI,"no-channel-trailing-slash":rI,"tag-description":qo,"tags-alphabetical":jo,"no-duplicated-enum-values":gn,"no-unsafe-markdown":Sn,"no-duplicated-tag-names":No,"no-required-schema-properties-undefined":bn,"no-enum-type-mismatch":vn,"no-mixed-number-range-constraints":Ro,"no-schema-type-mismatch":wn,"security-scopes-defined":cI,"spec-ref-siblings":Do},lI={};function Sf(e){return la(pr).filter(t=>e.assertions[t]!==void 0).map(t=>({name:t,conditions:e.assertions[t],runsOnKeys:Xd.has(t),runsOnValues:Zd.has(t)}))}const uI=e=>{const t=Object.values(e).filter(Z.isPlainObject),r=[];for(const n of t){if(n.severity==="off")continue;const i=n.subject?.type;if(!i)continue;if(!Z.isPlainObject(n.assertions))throw new Error(`${n.assertionId}: 'assertions' (Object) is required`);const o=Sf(n),s=dI(n);r.push({[i]:(a,c)=>{fI(a,c,s)&&mI(a,c,n,o)}})}return r};function dI(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(!Z.isPlainObject(t.assertions))throw new Error(`${e.assertionId} -> where -> [${r}]: 'assertions' (Object) is required`);return{kind:t.subject.type,definition:t,assertsToApply:Sf(t)}}):[]}function fI(e,t,r){let n=r;const i=r.at(-1);if(i&&i.kind===e.kind){if(!yl(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&&yl(c,s,t)){a=!0;break}}if(!a)return!1}return!0}function yl(e,t,r){const{value:n}=Ef(e,t.definition.subject.property),i=new A.Location(r.source,"#/");return t.assertsToApply.every(o=>pr[o.name](n,o.conditions,{baseLocation:i,rawValue:n}).length===0)}function mI(e,t,r,n){const i=xf(r.subject.property),{value:o,locNode:s}=Ef(e,r.subject.property),a=new A.Location(t.source,"#/"),c=n.flatMap(u=>pr[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:gf(r.message??l,{problems:hf(c),assertionName:r.assertionId,nodeType:r.subject.type,property:i??"",key:"",pointer:"",file:yf(t.source.absoluteRef)}),node:s,suggest:r.suggest,ruleId:r.assertionId,severity:r.severity})}function rs(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 Ef(e,t){const r=xf(t);if(r===void 0)return rs(e);const n=e[r];if(Array.isArray(n))return{value:n.map(o=>rs(o).value),locNode:e};const i=rs(n);return{value:i.value,locNode:hI(i.locNode)?i.locNode:e}}function hI(e){return Z.isPlainObject(e)&&"kind"in e}function xf(e){return Array.isArray(e)?e[0]:e}const yI=["Query","Mutation","Subscription"];function gI(e){let t=e;for(;t.kind==="ListType"||t.kind==="NonNullType";)t=t.type;return t.name.value}const vI=()=>{const e=new Map,t=new Set,r=new Set;let n=!1;const i=u=>t.add(gI(u)),o=u=>e.set(u.name.value,u.name),s=u=>{for(const f of u.interfaces??[])i(f);for(const f of u.fields??[]){i(f.type);for(const h of f.arguments??[])i(h.type)}},a=u=>{for(const f of u.types??[])i(f)},c=u=>{for(const f of u.fields??[])i(f.type)},l=u=>{for(const f of u.operationTypes??[])r.add(f.type.name.value)};return{SchemaDefinition:u=>{n=!0,l(u)},SchemaExtension:l,DirectiveDefinition:u=>{for(const f of u.arguments??[])i(f.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,f)=>{if(!n)for(const h of yI)e.has(h)&&r.add(h);if(r.size!==0)for(const[h,y]of e)t.has(h)||r.has(h)||f.report({message:`Type \`${h}\` is declared but never used.`,node:y})}}}};function Ue(e,t){if(!!!e)throw new Error(t)}function lr(e){return typeof e=="object"&&e!==null}function xt(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}const bI=/\r\n|[\n\r]/g;function co(e,t){let r=0,n=1;for(const i of e.body.matchAll(bI)){if(typeof i.index=="number"||xt(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function wI(e){return Tf(e.source,co(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),f=u[i];if(f.length>120){const h=Math.floor(c/80),y=c%80,b=[];for(let w=0;w<f.length;w+=80)b.push(f.slice(w,w+80));return l+gl([[`${s} |`,b[0]],...b.slice(1,h+1).map(w=>["|",w]),["|","^".padStart(y)],["|",b[h+1]]])}return l+gl([[`${s-1} |`,u[i-1]],[`${s} |`,f],["|","^".padStart(c)],[`${s+1} |`,u[i+1]]])}function gl(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 SI(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:f}=SI(r);super(t),this.name="GraphQLError",this.path=l??void 0,this.originalError=u??void 0,this.nodes=vl(Array.isArray(s)?s:s?[s]:void 0);const h=vl((n=this.nodes)===null||n===void 0?void 0:n.map(b=>b.loc).filter(b=>b!=null));this.source=a??(h==null||(i=h[0])===null||i===void 0?void 0:i.source),this.positions=c??h?.map(b=>b.start),this.locations=c&&a?c.map(b=>co(a,b)):h?.map(b=>co(b.source,b.start));const y=lr(u?.extensions)?u?.extensions:void 0;this.extensions=(o=f??y)!==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
21
 
22
- `+pI(r.loc));else if(this.source&&this.locations)for(const r of this.locations)t+=`
22
+ `+wI(r.loc));else if(this.source&&this.locations)for(const r of this.locations)t+=`
23
23
 
24
- `+wf(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 hl(e){return e===void 0||e.length===0?void 0:e}class uI{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 dI{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 Da={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"]},fI=new Set(Object.keys(Da));function yl(e){const t=e?.kind;return typeof t=="string"&&fI.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 Ks(e){return e===9||e===32}function Sf(e){return e>=48&&e<=57}function Ef(e){return e>=97&&e<=122||e>=65&&e<=90}function xf(e){return Ef(e)||e===95}function Tf(e){return Ef(e)||Sf(e)||e===95}function mI(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=hI(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 hI(e){let t=0;for(;t<e.length&&Ks(e.charCodeAt(t));)++t;return t}function yI(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||Ks(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 f="";const y=i&&Ks(e.charCodeAt(0));return(u&&!y||o)&&(f+=`
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 vl(e){return e===void 0||e.length===0?void 0:e}class EI{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 xI{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 ja={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"]},TI=new Set(Object.keys(ja));function bl(e){const t=e?.kind;return typeof t=="string"&&TI.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 Ys(e){return e===9||e===32}function Pf(e){return e>=48&&e<=57}function Of(e){return e>=97&&e<=122||e>=65&&e<=90}function If(e){return Of(e)||e===95}function _f(e){return Of(e)||Pf(e)||e===95}function PI(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=OI(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 OI(e){let t=0;for(;t<e.length&&Ys(e.charCodeAt(t));)++t;return t}function II(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(y=>y.length===0||Ys(y.charCodeAt(0))),s=r.endsWith('\\"""'),a=e.endsWith('"')&&!s,c=e.endsWith("\\"),l=a||c,u=!i||e.length>70||l||o||s;let f="";const h=i&&Ys(e.charCodeAt(0));return(u&&!h||o)&&(f+=`
25
25
  `),f+=r,(u||l)&&(f+=`
26
- `),'"""'+f+'"""'}const gI=10,Pf=2;function me(e){return Do(e,[])}function Do(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return vI(e,t);default:return String(e)}}function vI(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(bI(e)){const n=e.toJSON();if(n!==e)return typeof n=="string"?n:Do(n,r)}else if(Array.isArray(e))return SI(e,r);return wI(e,r)}function bI(e){return typeof e.toJSON=="function"}function wI(e,t){const r=Object.entries(e);return r.length===0?"{}":t.length>Pf?"["+EI(e)+"]":"{ "+r.map(([i,o])=>i+": "+Do(o,t)).join(", ")+" }"}function SI(e,t){if(e.length===0)return"[]";if(t.length>Pf)return"[Array]";const r=Math.min(gI,e.length),n=e.length-r,i=[];for(let o=0;o<r;++o)i.push(Do(e[o],t));return n===1?i.push("... 1 more item"):n>1&&i.push(`... ${n} more items`),"["+i.join(", ")+"]"}function EI(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 xI=globalThis.process&&process.env.NODE_ENV==="production",Ot=xI?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.
26
+ `),'"""'+f+'"""'}const _I=10,Af=2;function me(e){return Co(e,[])}function Co(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return AI(e,t);default:return String(e)}}function AI(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(RI(e)){const n=e.toJSON();if(n!==e)return typeof n=="string"?n:Co(n,r)}else if(Array.isArray(e))return NI(e,r);return $I(e,r)}function RI(e){return typeof e.toJSON=="function"}function $I(e,t){const r=Object.entries(e);return r.length===0?"{}":t.length>Af?"["+kI(e)+"]":"{ "+r.map(([i,o])=>i+": "+Co(o,t)).join(", ")+" }"}function NI(e,t){if(e.length===0)return"[]";if(t.length>Af)return"[Array]";const r=Math.min(_I,e.length),n=e.length-r,i=[];for(let o=0;o<r;++o)i.push(Co(e[o],t));return n===1?i.push("... 1 more item"):n>1&&i.push(`... ${n} more items`),"["+i.join(", ")+"]"}function kI(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 DI=globalThis.process&&process.env.NODE_ENV==="production",Ot=DI?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
27
 
28
28
  Ensure that there is only one instance of "graphql" in the node_modules
29
29
  directory. If different versions of "graphql" are the dependencies of other
@@ -34,23 +34,23 @@ https://yarnpkg.com/en/docs/selective-version-resolutions
34
34
  Duplicate "graphql" modules cannot be used at the same time since different
35
35
  versions may have different capabilities and behavior. The data from one
36
36
  version used in the function from another could produce confusing and
37
- spurious results.`)}}return!1},TI=5;function Wt(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,TI),a=s.pop();return i+s.join(", ")+", or "+a+"?"}function gl(e){return e}function ur(e,t){const r=Object.create(null);for(const n of e)r[t(n)]=n;return r}function qa(e,t,r){const n=Object.create(null);for(const i of e)n[t(i)]=r(i);return n}function At(e,t){const r=Object.create(null);for(const n of Object.keys(e))r[n]=t(e[n],n);return r}function Ca(e,t){let r=0,n=0;for(;r<e.length&&n<t.length;){let i=e.charCodeAt(r),o=t.charCodeAt(n);if(qi(i)&&qi(o)){let s=0;do++r,s=s*10+i-Hs,i=e.charCodeAt(r);while(qi(i)&&s>0);let a=0;do++n,a=a*10+o-Hs,o=t.charCodeAt(n);while(qi(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 Hs=48,PI=57;function qi(e){return!isNaN(e)&&Hs<=e&&e<=PI}function mr(e,t){const r=Object.create(null),n=new OI(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:Ca(o,s)})}class OI{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=vl(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=vl(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 f=c[(u-1)%3],y=c[u%3];let h=y[0]=u;for(let b=1;b<=a;b++){const w=i[u-1]===o[b-1]?0:1;let E=Math.min(f[b]+1,y[b-1]+1,f[b-1]+w);if(u>1&&b>1&&i[u-1]===o[b-2]&&i[u-2]===o[b-1]){const T=c[(u-2)%3][b-2];E=Math.min(E,T+1)}E<h&&(h=E),y[b]=E}if(h>r)return}const l=c[s%3][a];return l<=r?l:void 0}}function vl(e){const t=e.length,r=new Array(t);for(let n=0;n<t;++n)r[n]=e.charCodeAt(n);return r}function ht(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 II(e){return`"${e.replace(_I,AI)}"`}const _I=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function AI(e){return RI[e.charCodeAt(0)]}const RI=["\\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"],Kr=Object.freeze({});function ja(e,t,r=Da){const n=new Map;for(const T of Object.values(exports.Kind))n.set(T,If(t,T));let i,o=Array.isArray(e),s=[e],a=-1,c=[],l=e,u,f;const y=[],h=[];do{a++;const T=a===s.length,I=T&&c.length!==0;if(T){if(u=h.length===0?void 0:y[y.length-1],l=f,f=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(f){if(u=o?a:s[a],l=f[u],l==null)continue;y.push(u)}let v;if(!Array.isArray(l)){var b,w;yl(l)||Ue(!1,`Invalid AST Node: ${me(l)}.`);const x=T?(b=n.get(l.kind))===null||b===void 0?void 0:b.leave:(w=n.get(l.kind))===null||w===void 0?void 0:w.enter;if(v=x?.call(t,l,u,f,y,h),v===Kr)break;if(v===!1){if(!T){y.pop();continue}}else if(v!==void 0&&(c.push([u,v]),!T))if(yl(v))l=v;else{y.pop();continue}}if(v===void 0&&I&&c.push([u,l]),T)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=[],f&&h.push(f),f=l}}while(i!==void 0);return c.length!==0?c[c.length-1][1]:e}function Of(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}=If(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 f=0;f<e.length;f++)if(t[f]===null){var u;const y=(u=o[f])===null||u===void 0?void 0:u.apply(e[f],c);if(y===!1)t[f]=l;else if(y===Kr)t[f]=Kr;else if(y!==void 0)return y}},leave(...c){const l=c[0];for(let f=0;f<e.length;f++)if(t[f]===null){var u;const y=(u=s[f])===null||u===void 0?void 0:u.apply(e[f],c);if(y===Kr)t[f]=Kr;else if(y!==void 0&&y!==!1)return y}else t[f]===l&&(t[f]=null)}};r[n]=a}return r}function If(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 ja(e,NI)}const $I=80,NI={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>ye(e.definitions,`
37
+ spurious results.`)}}return!1},qI=5;function Wt(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,qI),a=s.pop();return i+s.join(", ")+", or "+a+"?"}function wl(e){return e}function ur(e,t){const r=Object.create(null);for(const n of e)r[t(n)]=n;return r}function Ca(e,t,r){const n=Object.create(null);for(const i of e)n[t(i)]=r(i);return n}function At(e,t){const r=Object.create(null);for(const n of Object.keys(e))r[n]=t(e[n],n);return r}function Ma(e,t){let r=0,n=0;for(;r<e.length&&n<t.length;){let i=e.charCodeAt(r),o=t.charCodeAt(n);if(Mi(i)&&Mi(o)){let s=0;do++r,s=s*10+i-Qs,i=e.charCodeAt(r);while(Mi(i)&&s>0);let a=0;do++n,a=a*10+o-Qs,o=t.charCodeAt(n);while(Mi(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 Qs=48,jI=57;function Mi(e){return!isNaN(e)&&Qs<=e&&e<=jI}function mr(e,t){const r=Object.create(null),n=new CI(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:Ma(o,s)})}class CI{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=Sl(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=Sl(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 f=c[(u-1)%3],h=c[u%3];let y=h[0]=u;for(let b=1;b<=a;b++){const w=i[u-1]===o[b-1]?0:1;let x=Math.min(f[b]+1,h[b-1]+1,f[b-1]+w);if(u>1&&b>1&&i[u-1]===o[b-2]&&i[u-2]===o[b-1]){const T=c[(u-2)%3][b-2];x=Math.min(x,T+1)}x<y&&(y=x),h[b]=x}if(y>r)return}const l=c[s%3][a];return l<=r?l:void 0}}function Sl(e){const t=e.length,r=new Array(t);for(let n=0;n<t;++n)r[n]=e.charCodeAt(n);return r}function ht(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 MI(e){return`"${e.replace(LI,UI)}"`}const LI=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function UI(e){return FI[e.charCodeAt(0)]}const FI=["\\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"],Gr=Object.freeze({});function La(e,t,r=ja){const n=new Map;for(const T of Object.values(exports.Kind))n.set(T,$f(t,T));let i,o=Array.isArray(e),s=[e],a=-1,c=[],l=e,u,f;const h=[],y=[];do{a++;const T=a===s.length,E=T&&c.length!==0;if(T){if(u=y.length===0?void 0:h[h.length-1],l=f,f=y.pop(),E)if(o){l=l.slice();let P=0;for(const[g,S]of c){const I=g-P;S===null?(l.splice(I,1),P++):l[I]=S}}else{l={...l};for(const[P,g]of c)l[P]=g}a=i.index,s=i.keys,c=i.edits,o=i.inArray,i=i.prev}else if(f){if(u=o?a:s[a],l=f[u],l==null)continue;h.push(u)}let v;if(!Array.isArray(l)){var b,w;bl(l)||Ue(!1,`Invalid AST Node: ${me(l)}.`);const P=T?(b=n.get(l.kind))===null||b===void 0?void 0:b.leave:(w=n.get(l.kind))===null||w===void 0?void 0:w.enter;if(v=P?.call(t,l,u,f,h,y),v===Gr)break;if(v===!1){if(!T){h.pop();continue}}else if(v!==void 0&&(c.push([u,v]),!T))if(bl(v))l=v;else{h.pop();continue}}if(v===void 0&&E&&c.push([u,l]),T)h.pop();else{var x;i={inArray:o,index:a,keys:s,edits:c,prev:i},o=Array.isArray(l),s=o?l:(x=r[l.kind])!==null&&x!==void 0?x:[],a=-1,c=[],f&&y.push(f),f=l}}while(i!==void 0);return c.length!==0?c[c.length-1][1]:e}function Rf(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}=$f(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 f=0;f<e.length;f++)if(t[f]===null){var u;const h=(u=o[f])===null||u===void 0?void 0:u.apply(e[f],c);if(h===!1)t[f]=l;else if(h===Gr)t[f]=Gr;else if(h!==void 0)return h}},leave(...c){const l=c[0];for(let f=0;f<e.length;f++)if(t[f]===null){var u;const h=(u=s[f])===null||u===void 0?void 0:u.apply(e[f],c);if(h===Gr)t[f]=Gr;else if(h!==void 0&&h!==!1)return h}else t[f]===l&&(t[f]=null)}};r[n]=a}return r}function $f(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 La(e,zI)}const BI=80,zI={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>ye(e.definitions,`
38
38
 
39
- `)},OperationDefinition:{leave(e){const t=es(e.variableDefinitions)?Ie(`(
39
+ `)},OperationDefinition:{leave(e){const t=ns(e.variableDefinitions)?Ie(`(
40
40
  `,ye(e.variableDefinitions,`
41
41
  `),`
42
42
  )`):Ie("(",ye(e.variableDefinitions,", "),")"),r=Ie("",e.description,`
43
43
  `)+ye([e.operation,ye([e.name,t]),ye(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(" ",ye(n," "))},SelectionSet:{leave:({selections:e})=>bt(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){const o=Ie("",e,": ")+t;let s=o+Ie("(",ye(r,", "),")");return s.length>$I&&(s=o+Ie(`(
45
- `,Ki(ye(r,`
44
+ `)+e+": "+t+Ie(" = ",r)+Ie(" ",ye(n," "))},SelectionSet:{leave:({selections:e})=>bt(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){const o=Ie("",e,": ")+t;let s=o+Ie("(",ye(r,", "),")");return s.length>BI&&(s=o+Ie(`(
45
+ `,Yi(ye(r,`
46
46
  `)),`
47
47
  )`)),ye([s,ye(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Ie(" ",ye(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>ye(["...",Ie("on ",e),ye(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i,description:o})=>Ie("",o,`
48
- `)+`fragment ${e}${Ie("(",ye(r,", "),")")} on ${t} ${Ie("",ye(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?yI(e):II(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+ye(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+ye(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Ie("(",ye(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,`
48
+ `)+`fragment ${e}${Ie("(",ye(r,", "),")")} on ${t} ${Ie("",ye(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?II(e):MI(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+ye(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+ye(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Ie("(",ye(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
49
  `)+ye(["schema",ye(t," "),bt(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>Ie("",e,`
50
50
  `)+ye(["scalar",t,ye(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>Ie("",e,`
51
51
  `)+ye(["type",t,Ie("implements ",ye(r," & ")),ye(n," "),bt(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>Ie("",e,`
52
- `)+t+(es(r)?Ie(`(
53
- `,Ki(ye(r,`
52
+ `)+t+(ns(r)?Ie(`(
53
+ `,Yi(ye(r,`
54
54
  `)),`
55
55
  )`):Ie("(",ye(r,", "),")"))+": "+n+Ie(" ",ye(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>Ie("",e,`
56
56
  `)+ye([t+": "+r,Ie("= ",n),ye(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>Ie("",e,`
@@ -59,119 +59,119 @@ spurious results.`)}}return!1},TI=5;function Wt(e,t){const[r,n]=t?[e,t]:[void 0,
59
59
  `)+ye(["enum",t,ye(r," "),bt(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>Ie("",e,`
60
60
  `)+ye([t,ye(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>Ie("",e,`
61
61
  `)+ye(["input",t,ye(r," "),bt(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,directives:n,repeatable:i,locations:o})=>Ie("",e,`
62
- `)+"directive @"+t+(es(r)?Ie(`(
63
- `,Ki(ye(r,`
62
+ `)+"directive @"+t+(ns(r)?Ie(`(
63
+ `,Yi(ye(r,`
64
64
  `)),`
65
65
  )`):Ie("(",ye(r,", "),")"))+Ie(" ",ye(n," "))+(i?" repeatable":"")+" on "+ye(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>ye(["extend schema",ye(e," "),bt(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>ye(["extend scalar",e,ye(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>ye(["extend type",e,Ie("implements ",ye(t," & ")),ye(r," "),bt(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>ye(["extend interface",e,Ie("implements ",ye(t," & ")),ye(r," "),bt(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>ye(["extend union",e,ye(t," "),Ie("= ",ye(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>ye(["extend enum",e,ye(t," "),bt(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>ye(["extend input",e,ye(t," "),bt(r)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>ye(["extend directive @"+e,ye(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>ye([e,Ie(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>ye([e,Ie(".",t),Ie("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>ye(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>ye(["@",e,Ie("(",t,":)")])}};function ye(e,t=""){var r;return(r=e?.filter(n=>n).join(t))!==null&&r!==void 0?r:""}function bt(e){return Ie(`{
66
- `,Ki(ye(e,`
66
+ `,Yi(ye(e,`
67
67
  `)),`
68
- }`)}function Ie(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function Ki(e){return Ie(" ",e.replace(/\n/g,`
69
- `))}function es(e){var t;return(t=e?.some(r=>r.includes(`
70
- `)))!==null&&t!==void 0?t:!1}function Gs(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=>Gs(r,t));case exports.Kind.OBJECT:return qa(e.fields,r=>r.name.value,r=>Gs(r.value,t));case exports.Kind.VARIABLE:return t?.[e.name.value]}}function It(e){if(e!=null||Ue(!1,"Must provide name."),typeof e=="string"||Ue(!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(!Tf(e.charCodeAt(t)))throw new ie(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!xf(e.charCodeAt(0)))throw new ie(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function kI(e){if(e==="true"||e==="false"||e==="null")throw new ie(`Enum values cannot be named: ${e}`);return It(e)}function Ma(e){return Zt(e)||Ke(e)||He(e)||ft(e)||mt(e)||tt(e)||at(e)||Fe(e)}function Zt(e){return Ot(e,Jt)}function Ke(e){return Ot(e,Vt)}function He(e){return Ot(e,Ys)}function ft(e){return Ot(e,Qs)}function mt(e){return Ot(e,rn)}function tt(e){return Ot(e,Ws)}function at(e){return Ot(e,ct)}function Fe(e){return Ot(e,Ae)}function bn(e){return Zt(e)||mt(e)||tt(e)||La(e)&&bn(e.ofType)}function _f(e){return Zt(e)||Ke(e)||He(e)||ft(e)||mt(e)||La(e)&&_f(e.ofType)}function _r(e){return Zt(e)||mt(e)}function tn(e){return Ke(e)||He(e)||ft(e)}function cr(e){return He(e)||ft(e)}class ct{constructor(t){Ma(t)||Ue(!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){Af(t)||Ue(!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 La(e){return at(e)||Fe(e)}function Af(e){return Ma(e)&&!Fe(e)}function DI(e){if(e)return Fe(e)?e.ofType:e}function qI(e){return Zt(e)||Ke(e)||He(e)||ft(e)||mt(e)||tt(e)}function dr(e){if(e){let t=e;for(;La(t);)t=t.ofType;return t}}function Rf(e){return typeof e=="function"?e():e}function $f(e){return typeof e=="function"?e():e}class Jt{constructor(t){var r,n,i,o;const s=(r=t.parseValue)!==null&&r!==void 0?r:gl;this.name=It(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(n=t.serialize)!==null&&n!==void 0?n:gl,this.parseValue=s,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(a,c)=>s(Gs(a,c)),this.extensions=ht(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(o=t.extensionASTNodes)!==null&&o!==void 0?o:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||Ue(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${me(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||Ue(!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"||Ue(!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 Vt{constructor(t){var r;this.name=It(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=ht(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=()=>kf(t),this._interfaces=()=>Nf(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||Ue(!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:qf(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Nf(e){var t;const r=Rf((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(r)||Ue(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),r}function kf(e){const t=$f(e.fields);return Tr(t)||Ue(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),At(t,(r,n)=>{var i;Tr(r)||Ue(!1,`${e.name}.${n} field config must be an object.`),r.resolve==null||typeof r.resolve=="function"||Ue(!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 Tr(o)||Ue(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:It(n),description:r.description,type:r.type,args:Df(o),resolve:r.resolve,subscribe:r.subscribe,deprecationReason:r.deprecationReason,extensions:ht(r.extensions),astNode:r.astNode}})}function Df(e){return Object.entries(e).map(([t,r])=>({name:It(t),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:ht(r.extensions),astNode:r.astNode}))}function Tr(e){return lr(e)&&!Array.isArray(e)}function qf(e){return At(e,t=>({description:t.description,type:t.type,args:Cf(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function Cf(e){return qa(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function wn(e){return Fe(e.type)&&e.defaultValue===void 0}class Ys{constructor(t){var r;this.name=It(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=ht(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=kf.bind(void 0,t),this._interfaces=Nf.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||Ue(!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:qf(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Qs{constructor(t){var r;this.name=It(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=ht(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._types=CI.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||Ue(!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 CI(e){const t=Rf(e.types);return Array.isArray(t)||Ue(!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=It(t.name),this.description=t.description,this.extensions=ht(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._values=typeof t.values=="function"?t.values:bl(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=bl(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=ur(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}.`+Ci(this,n))}const r=this.getValue(t);if(r==null)throw new ie(`Value "${t}" does not exist in "${this.name}" enum.`+Ci(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}.`+Ci(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.`+Ci(this,i),{nodes:t})}return n.value}toConfig(){const t=qa(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 Ci(e,t){const r=e.getValues().map(i=>i.name),n=mr(t,r);return Wt("the enum value",n)}function bl(e,t){return Tr(t)||Ue(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([r,n])=>(Tr(n)||Ue(!1,`${e}.${r} must refer to an object with a "value" key representing an internal value but got: ${me(n)}.`),{name:kI(r),description:n.description,value:n.value!==void 0?n.value:r,deprecationReason:n.deprecationReason,extensions:ht(n.extensions),astNode:n.astNode}))}class Ws{constructor(t){var r,n;this.name=It(t.name),this.description=t.description,this.extensions=ht(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=jI.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){const t=At(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 jI(e){const t=$f(e.fields);return Tr(t)||Ue(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),At(t,(r,n)=>(!("resolve"in r)||Ue(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:It(n),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:ht(r.extensions),astNode:r.astNode}))}function jf(e){return Fe(e.type)&&e.defaultValue===void 0}function Js(e,t){return e===t?!0:Fe(e)&&Fe(t)||at(e)&&at(t)?Js(e.ofType,t.ofType):!1}function Pr(e,t,r){return t===r?!0:Fe(r)?Fe(t)?Pr(e,t.ofType,r.ofType):!1:Fe(t)?Pr(e,t.ofType,r):at(r)?at(t)?Pr(e,t.ofType,r.ofType):!1:at(t)?!1:cr(r)&&(He(t)||Ke(t))&&e.isSubType(r,t)}function wl(e,t,r){return t===r?!0:cr(t)?cr(r)?e.getPossibleTypes(t).some(n=>e.isSubType(r,n)):e.isSubType(t,r):cr(r)?e.isSubType(r,t):!1}const ts=2147483647,rs=-2147483648,MI=new Jt({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=Sn(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>ts||r<rs)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>ts||e<rs)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>ts||t<rs)throw new ie(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),LI=new Jt({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=Sn(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 Jt({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=Sn(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 Jt({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=Sn(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}}),Mf=new Jt({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=Sn(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}}),Ua=Object.freeze([Ve,MI,LI,st,Mf]);function UI(e){return Ua.some(({name:t})=>e.name===t)}function Sn(e){if(lr(e)){if(typeof e.valueOf=="function"){const t=e.valueOf();if(!lr(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}function Lf(e){return Ot(e,Ut)}class Ut{constructor(t){var r,n,i;this.name=It(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(r=t.isRepeatable)!==null&&r!==void 0?r:!1,this.deprecationReason=t.deprecationReason,this.extensions=ht(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],Array.isArray(t.locations)||Ue(!1,`@${t.name} locations must be an Array.`);const o=(i=t.args)!==null&&i!==void 0?i:{};lr(o)&&!Array.isArray(o)||Ue(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=Df(o)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:Cf(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 Uf=new Ut({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."}}}),Ff=new Ut({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."}}}),FI="No longer supported",Fa=new Ut({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:FI}}}),Bf=new Ut({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."}}}),zf=new Ut({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[exports.DirectiveLocation.INPUT_OBJECT],args:{}}),Cr=Object.freeze([Uf,Ff,Fa,Bf,zf]);function BI(e){return typeof e=="object"&&typeof e?.[Symbol.iterator]=="function"}function Hr(e,t){if(Fe(t)){const r=Hr(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(BI(e)){const n=[];for(const i of e){const o=Hr(i,r);o!=null&&n.push(o)}return{kind:exports.Kind.LIST,values:n}}return Hr(e,r)}if(tt(t)){if(!lr(e))return null;const r=[];for(const n of Object.values(t.getFields())){const i=Hr(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(_r(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 Sl.test(n)?{kind:exports.Kind.INT,value:n}:{kind:exports.Kind.FLOAT,value:n}}if(typeof r=="string")return mt(t)?{kind:exports.Kind.ENUM,value:r}:t===Mf&&Sl.test(r)?{kind:exports.Kind.INT,value:r}:{kind:exports.Kind.STRING,value:r};throw new TypeError(`Cannot convert value to AST: ${me(r)}.`)}xt(!1,"Unexpected input type: "+me(t))}const Sl=/^-?(?:0|[1-9][0-9]*)$/,Ba=new Vt({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(Rt))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Ae(Rt),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Rt,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Rt,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Ae(new ct(new Ae(Vf))),args:{includeDeprecated:{type:new Ae(st),defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.getDirectives():e.getDirectives().filter(r=>r.deprecationReason==null)}})}),Vf=new Vt({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(Kf))),resolve:e=>e.locations},args:{type:new Ae(new ct(new Ae(qo))),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}})}),Kf=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."}}}),Rt=new Vt({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(Yf),resolve(e){if(Zt(e))return Qe.SCALAR;if(Ke(e))return Qe.OBJECT;if(He(e))return Qe.INTERFACE;if(ft(e))return Qe.UNION;if(mt(e))return Qe.ENUM;if(tt(e))return Qe.INPUT_OBJECT;if(at(e))return Qe.LIST;if(Fe(e))return Qe.NON_NULL;xt(!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(Hf)),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(Rt)),resolve(e){if(Ke(e)||He(e))return e.getInterfaces()}},possibleTypes:{type:new ct(new Ae(Rt)),resolve(e,t,r,{schema:n}){if(cr(e))return n.getPossibleTypes(e)}},enumValues:{type:new ct(new Ae(Gf)),args:{includeDeprecated:{type:st,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(mt(e)){const r=e.getValues();return t?r:r.filter(n=>n.deprecationReason==null)}}},inputFields:{type:new ct(new Ae(qo)),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:Rt,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:st,resolve:e=>{if(tt(e))return e.isOneOf}}})}),Hf=new Vt({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(qo))),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(Rt),resolve:e=>e.type},isDeprecated:{type:new Ae(st),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ve,resolve:e=>e.deprecationReason}})}),qo=new Vt({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(Rt),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=Hr(r,t);return n?Je(n):null}},isDeprecated:{type:new Ae(st),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ve,resolve:e=>e.deprecationReason}})}),Gf=new Vt({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 Yf=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(Ba);new Ae(Ve);new Ae(Ve);const za=Object.freeze([Ba,Vf,Kf,Rt,Hf,qo,Gf,Yf]);function Qf(e){return za.some(({name:t})=>e.name===t)}function zI(e){return Ot(e,Wf)}function VI(e){if(!zI(e))throw new Error(`Expected ${me(e)} to be a GraphQL schema.`);return e}class Wf{constructor(t){var r,n;this.__validationErrors=t.assumeValid===!0?[]:void 0,lr(t)||Ue(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||Ue(!1,`"types" must be Array if provided but got: ${me(t.types)}.`),!t.directives||Array.isArray(t.directives)||Ue(!1,`"directives" must be Array if provided but got: ${me(t.directives)}.`),this.description=t.description,this.extensions=ht(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:Cr;const i=new Set(t.types);if(t.types!=null)for(const o of t.types)i.delete(o),Et(o,i);this._queryType!=null&&Et(this._queryType,i),this._mutationType!=null&&Et(this._mutationType,i),this._subscriptionType!=null&&Et(this._subscriptionType,i);for(const o of this._directives)if(Lf(o))for(const s of o.args)Et(s.type,i);Et(Ba,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||Ue(!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 ft(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),ft(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 Et(e,t){const r=dr(e);if(!t.has(r)){if(t.add(r),ft(r))for(const n of r.getTypes())Et(n,t);else if(Ke(r)||He(r)){for(const n of r.getInterfaces())Et(n,t);for(const n of Object.values(r.getFields())){Et(n.type,t);for(const i of n.args)Et(i.type,t)}}else if(tt(r))for(const n of Object.values(r.getFields()))Et(n.type,t)}return t}function KI(e){if(VI(e),e.__validationErrors)return e.__validationErrors;const t=new HI(e);GI(t),YI(t),QI(t);const r=t.getErrors();return e.__validationErrors=r,r}class HI{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 GI(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=ns(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=ns(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=ns(t,exports.OperationTypeNode.SUBSCRIPTION))!==null&&a!==void 0?a:s.astNode)}}function ns(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 YI(e){for(const r of e.schema.getDirectives()){if(!Lf(r)){e.reportError(`Expected directive but got: ${me(r)}.`,r?.astNode);continue}fr(e,r),r.locations.length===0&&e.reportError(`Directive @${r.name} must include 1 or more locations.`,r.astNode);for(const n of r.args)if(fr(e,n),bn(n.type)||e.reportError(`The type of @${r.name}(${n.name}:) must be Input Type but got: ${me(n.type)}.`,n.astNode),wn(n)&&n.deprecationReason!=null){var t;e.reportError(`Required argument @${r.name}(${n.name}:) cannot be deprecated.`,[Va(n.astNode),(t=n.astNode)===null||t===void 0?void 0:t.type])}}}function fr(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function QI(e){const t=r_(e),r=e.schema.getTypeMap();for(const n of Object.values(r)){if(!qI(n)){e.reportError(`Expected GraphQL named type but got: ${me(n)}.`,n.astNode);continue}Qf(n)||fr(e,n),Ke(n)||He(n)?(El(e,n),xl(e,n)):ft(n)?XI(e,n):mt(n)?ZI(e,n):tt(n)&&(e_(e,n),t(n))}}function El(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(fr(e,s),!_f(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(fr(e,a),!bn(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(wn(a)&&a.deprecationReason!=null){var o;e.reportError(`Required argument ${t.name}.${s.name}(${c}:) cannot be deprecated.`,[Va(a.astNode),(o=a.astNode)===null||o===void 0?void 0:o.type])}}}}function xl(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)}.`,Qr(t,n));continue}if(t===n){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Qr(t,n));continue}if(r[n.name]){e.reportError(`Type ${t.name} can only implement ${n.name} once.`,Qr(t,n));continue}r[n.name]=!0,JI(e,t,n),WI(e,t,n)}}function WI(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(!Pr(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 f of c.args){const y=f.name,h=u.args.find(b=>b.name===y);if(!h){e.reportError(`Interface field argument ${r.name}.${l}(${y}:) expected but ${t.name}.${l} does not provide it.`,[f.astNode,u.astNode]);continue}if(!Js(f.type,h.type)){var s,a;e.reportError(`Interface field argument ${r.name}.${l}(${y}:) expects type ${me(f.type)} but ${t.name}.${l}(${y}:) is type ${me(h.type)}.`,[(s=f.astNode)===null||s===void 0?void 0:s.type,(a=h.astNode)===null||a===void 0?void 0:a.type])}}for(const f of u.args){const y=f.name;!c.args.find(b=>b.name===y)&&wn(f)&&e.reportError(`Object field ${t.name}.${l} includes required argument ${y} that is missing from the Interface field ${r.name}.${l}.`,[f.astNode,c.astNode])}}}function JI(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}.`,[...Qr(r,i),...Qr(t,r)])}function XI(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.`,Tl(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)}.`,Tl(t,String(i)))}}function ZI(e,t){const r=t.getValues();r.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const n of r)fr(e,n)}function e_(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(fr(e,o),!bn(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(jf(o)&&o.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[Va(o.astNode),(i=o.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&t_(t,o,e)}}function t_(e,t,r){if(Fe(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 r_(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(Fe(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),f=u.map(y=>y.name).join(".");e.reportError(`Cannot reference Input Object "${c.name}" within itself through a series of non-null fields: "${f}".`,u.map(y=>y.astNode))}r.pop()}n[o.name]=void 0}}function Qr(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 Tl(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 Va(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(r=>r.name.value===Fa.name)}function kt(e,t){switch(t.kind){case exports.Kind.LIST_TYPE:{const r=kt(e,t.type);return r&&new ct(r)}case exports.Kind.NON_NULL_TYPE:{const r=kt(e,t.type);return r&&new Ae(r)}case exports.Kind.NAMED_TYPE:return e.getType(t.name.value)}}function n_(e){return e.kind===exports.Kind.OPERATION_DEFINITION||e.kind===exports.Kind.FRAGMENT_DEFINITION}function i_(e){return e.kind===exports.Kind.SCHEMA_DEFINITION||En(e)||e.kind===exports.Kind.DIRECTIVE_DEFINITION}function En(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 o_(e){return e.kind===exports.Kind.SCHEMA_EXTENSION||e.kind===exports.Kind.DIRECTIVE_EXTENSION||Ka(e)}function Ka(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 s_(e){return{Document(t){for(const r of t.definitions)if(!n_(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 a_(e){return{Field(t){const r=e.getParentType();if(r&&!e.getFieldDef()){const i=e.getSchema(),o=t.name.value;let s=Wt("to use an inline fragment on",c_(i,r,o));s===""&&(s=Wt(p_(r,o))),e.reportError(new ie(`Cannot query field "${o}" on type "${r.name}".`+s,{nodes:t}))}}}}function c_(e,t,r){if(!cr(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:Ca(s.name,a.name)}).map(s=>s.name)}function p_(e,t){if(Ke(e)||He(e)){const r=Object.keys(e.getFields());return mr(t,r)}return[]}function l_(e){return{InlineFragment(t){const r=t.typeCondition;if(r){const n=kt(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=kt(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 u_(e){return{...Jf(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=mr(o,s);e.reportError(new ie(`Unknown argument "${o}" on field "${i.name}.${n.name}".`+Wt(a),{nodes:t}))}}}}function Jf(e){const t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():Cr;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 f=mr(u,c);e.reportError(new ie(`Unknown argument "${u}" on directive "@${a}".`+Wt(f),{nodes:l}))}}return!1}}}function Xf(e){const t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():Cr;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,f=t[u];if(!f){e.reportError(new ie(`Unknown directive "@${u}".`,{nodes:o}));return}const y=d_(l);y&&!f.includes(y)&&e.reportError(new ie(`Directive "@${u}" may not be used on ${y}.`,{nodes:o}))}}}function d_(e){const t=e[e.length-1];switch("kind"in t||xt(!1),t.kind){case exports.Kind.OPERATION_DEFINITION:return f_(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||xt(!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:xt(!1,"Unexpected kind: "+me(t.kind))}}function f_(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 m_(e){return{FragmentSpread(t){const r=t.name.value;e.getFragment(r)||e.reportError(new ie(`Unknown fragment "${r}".`,{nodes:t.name}))}}}function Zf(e){const t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);for(const o of e.getDocument().definitions)En(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 f;const y=(f=l[2])!==null&&f!==void 0?f:a,h=y!=null&&h_(y);if(h&&Pl.includes(u))return;const b=mr(u,h?Pl.concat(i):i);e.reportError(new ie(`Unknown type "${u}".`+Wt(b),{nodes:o}))}}}}const Pl=[...Ua,...za].map(e=>e.name);function h_(e){return"kind"in e&&(i_(e)||o_(e))}function y_(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 g_(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 v_=3;function b_(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>=v_))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 w_(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 f=e.getFragment(l);f&&i(f)}else{const f=r.slice(u),y=f.slice(0,-1).map(h=>'"'+h.name.value+'"').join(", ");e.reportError(new ie(`Cannot spread fragment "${l}" within itself`+(y!==""?` via ${y}.`:"."),{nodes:f}))}r.pop()}n[s]=void 0}}}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}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 E_(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 x_(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 Ha(e){switch(e.kind){case exports.Kind.OBJECT:return{...e,fields:T_(e.fields)};case exports.Kind.LIST:return{...e,values:e.values.map(Ha)};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 T_(e){return e.map(t=>({...t,value:Ha(t.value)})).sort((t,r)=>Ca(t.name.value,r.name.value))}function em(e){return Array.isArray(e)?e.map(([t,r])=>`subfields "${t}" conflict because `+em(r)).join(" and "):e}function P_(e){const t=new nm,r=new $_,n=new Map;return{SelectionSet(i){const o=O_(e,n,t,r,e.getParentType(),i);for(const[[s,a],c,l]of o){const u=em(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 O_(e,t,r,n,i,o){const s=[],[a,c]=co(e,t,i,o);if(__(e,s,t,r,n,a),c.length!==0)for(let l=0;l<c.length;l++){so(e,s,t,r,n,!1,a,c[l]);for(let u=l+1;u<c.length;u++)ao(e,s,t,r,n,!1,c[l],c[u])}return s}function so(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){Ga(e,t,r,n,i,o,s,l);for(const f of u)so(e,t,r,n,i,o,s,f)}}function ao(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,f]=Zs(e,r,c),[y,h]=Zs(e,r,l);Ga(e,t,r,n,i,o,u,y);for(const b of h)ao(e,t,r,n,i,o,s,b);for(const b of f)ao(e,t,r,n,i,o,b,a)}function I_(e,t,r,n,i,o,s,a,c){const l=[],[u,f]=co(e,t,o,s),[y,h]=co(e,t,a,c);Ga(e,l,t,r,n,i,u,y);for(const b of h)so(e,l,t,r,n,i,u,b);for(const b of f)so(e,l,t,r,n,i,y,b);for(const b of f)for(const w of h)ao(e,l,t,r,n,i,b,w);return l}function __(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=tm(e,r,n,i,!1,s,a[c],a[l]);u&&t.push(u)}}function Ga(e,t,r,n,i,o,s,a){for(const[c,l]of Object.entries(s)){const u=a[c];if(u)for(const f of l)for(const y of u){const h=tm(e,r,n,i,o,c,f,y);h&&t.push(h)}}}function tm(e,t,r,n,i,o,s,a){const[c,l,u]=s,[f,y,h]=a,b=i||c!==f&&Ke(c)&&Ke(f);if(!b){const v=l.name.value,x=y.name.value;if(v!==x)return[[o,`"${v}" and "${x}" are different fields`],[l],[y]];if(!A_(l,y))return[[o,"they have differing arguments"],[l],[y]]}const w=u?.type,E=h?.type;if(w&&E&&Xs(w,E))return[[o,`they return conflicting types "${me(w)}" and "${me(E)}"`],[l],[y]];const T=l.selectionSet,I=y.selectionSet;if(T&&I){const v=I_(e,t,r,n,b,dr(w),T,dr(E),I);return R_(v,o,l,y)}}function A_(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(Ha(e))}function Xs(e,t){return at(e)?at(t)?Xs(e.ofType,t.ofType):!0:at(t)?!0:Fe(e)?Fe(t)?Xs(e.ofType,t.ofType):!0:Fe(t)?!0:_r(e)||_r(t)?e!==t:!1}function co(e,t,r,n){const i=t.get(n);if(i)return i;const o=Object.create(null),s=Object.create(null);rm(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=kt(e.getSchema(),r.typeCondition);return co(e,t,i,r.selectionSet)}function rm(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?kt(e.getSchema(),s):t;rm(e,a,o.selectionSet,n,i);break}}}function R_(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 nm{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 $_{constructor(){this._orderedPairSet=new nm}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 N_(e){return{InlineFragment(t){const r=e.getType(),n=e.getParentType();if(tn(r)&&tn(n)&&!wl(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=k_(e,r),i=e.getParentType();if(n&&i&&!wl(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 k_(e,t){const r=e.getFragment(t);if(r){const n=kt(e.getSchema(),r.typeCondition);if(tn(n))return n}}function D_(e){const t=e.getSchema(),r=Object.create(null);for(const i of e.getDocument().definitions)En(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=q_[s.kind]:a&&(c=C_(a)),c){if(c!==i.kind){const l=j_(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=mr(o,l);e.reportError(new ie(`Cannot extend type "${o}" because it is not defined.`+Wt(u),{nodes:i.name}))}}}const q_={[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 C_(e){if(Zt(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(ft(e))return exports.Kind.UNION_TYPE_EXTENSION;if(mt(e))return exports.Kind.ENUM_TYPE_EXTENSION;if(tt(e))return exports.Kind.INPUT_OBJECT_TYPE_EXTENSION;xt(!1,"Unexpected type: "+me(e))}function j_(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:xt(!1,"Unexpected kind: "+me(e))}}function M_(e){return{...im(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)&&wn(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 im(e){var t;const r=Object.create(null),n=e.getSchema(),i=(t=n?.getDirectives())!==null&&t!==void 0?t:Cr;for(const a of i)r[a.name]=ur(a.args.filter(wn),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]=ur(c.filter(L_),l=>l.name.value)}return{Directive:{leave(a){const c=a.name.value,l=r[c];if(l){var u;const f=(u=a.arguments)!==null&&u!==void 0?u:[],y=new Set(f.map(h=>h.name.value));for(const[h,b]of Object.entries(l))if(!y.has(h)){const w=Ma(b.type)?me(b.type):Je(b.type);e.reportError(new ie(`Directive "@${c}" argument "${h}" of type "${w}" is required, but it was not provided.`,{nodes:a}))}}}}}}function L_(e){return e.type.kind===exports.Kind.NON_NULL_TYPE&&e.defaultValue==null}function U_(e){return{Field(t){const r=e.getType(),n=t.selectionSet;if(r)if(_r(dr(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 sr(e,t,r){if(e){if(e.kind===exports.Kind.VARIABLE){const n=e.name.value;if(r==null||r[n]===void 0||!om(r,n))return;const i=r[n];return i===null&&Fe(t)?void 0:i}if(Fe(t))return e.kind===exports.Kind.NULL?void 0:sr(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(Il(s,r)){if(Fe(n))return;o.push(null)}else{const a=sr(s,n,r);if(a===void 0)return;o.push(a)}return o}const i=sr(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=ur(e.fields,o=>o.name.value);for(const o of Object.values(t.getFields())){const s=i[o.name];if(!s||Il(s.value,r)){if(o.defaultValue!==void 0)n[o.name]=o.defaultValue;else if(Fe(o.type))return;continue}const a=sr(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(_r(t)){let n;try{n=t.parseLiteral(e,r)}catch{return}return n===void 0?void 0:n}xt(!1,"Unexpected input type: "+me(t))}}function Il(e,t){return e.kind===exports.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0||!om(t,e.name.value))}function om(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function F_(e,t,r){var n;const i=Object.create(null),o=(n=t.arguments)!==null&&n!==void 0?n:[],s=ur(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(Fe(l))throw new ie(`Argument "${c}" of required type "${me(l)}" was not provided.`,{nodes:t});continue}const f=u.value;let y=f.kind===exports.Kind.NULL;if(f.kind===exports.Kind.VARIABLE){const b=f.name.value;if(r==null||!B_(r,b)){if(a.defaultValue!==void 0)i[c]=a.defaultValue;else if(Fe(l))throw new ie(`Argument "${c}" of required type "${me(l)}" was provided the variable "$${b}" which was not provided a runtime value.`,{nodes:f});continue}y=r[b]==null}if(y&&Fe(l))throw new ie(`Argument "${c}" of non-null type "${me(l)}" must not be null.`,{nodes:f});const h=sr(f,l,r);if(h===void 0)throw new ie(`Argument "${c}" has invalid value ${Je(f)}.`,{nodes:f});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 F_(e,i,r)}function B_(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function z_(e,t,r,n,i){const o=new Map;return ea(e,t,r,n,i,o,new Set),o}function ea(e,t,r,n,i,o,s){for(const a of i.selections)switch(a.kind){case exports.Kind.FIELD:{if(!is(r,a))continue;const c=V_(a),l=o.get(c);l!==void 0?l.push(a):o.set(c,[a]);break}case exports.Kind.INLINE_FRAGMENT:{if(!is(r,a)||!_l(e,a,n))continue;ea(e,t,r,n,a.selectionSet,o,s);break}case exports.Kind.FRAGMENT_SPREAD:{const c=a.name.value;if(s.has(c)||!is(r,a))continue;s.add(c);const l=t[c];if(!l||!_l(e,l,n))continue;ea(e,t,r,n,l.selectionSet,o,s);break}}}function is(e,t){const r=nn(Ff,t,e);if(r?.if===!0)return!1;const n=nn(Uf,t,e);return n?.if!==!1}function _l(e,t,r){const n=t.typeCondition;if(!n)return!0;const i=kt(e,n);return i===r?!0:cr(i)?e.isSubType(i,r):!1}function V_(e){return e.alias?e.alias.value:e.name.value}function K_(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=z_(r,a,o,n,t.selectionSet);if(c.size>1){const f=[...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:f}))}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 Ya(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 H_(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=Ya(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 sm(e){return{Field:t,Directive:t};function t(r){var n;const i=(n=r.arguments)!==null&&n!==void 0?n:[],o=Ya(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 G_(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 am(e){const t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():Cr;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(En(c)||Ka(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 f=u.name.value;t[f]&&(l[f]?e.reportError(new ie(`The directive "@${f}" can only be used once at this location.`,{nodes:[l[f],u]})):l[f]=u)}}}}function Y_(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 f=u.name.value,y=r[a];mt(y)&&y.getValue(f)?e.reportError(new ie(`Enum value "${a}.${f}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:u.name})):l[f]?e.reportError(new ie(`Enum value "${a}.${f}" can only be defined once.`,{nodes:[l[f],u.name]})):l[f]=u.name}return!1}}function Q_(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 f=u.name.value;W_(r[a],f)?e.reportError(new ie(`Field "${a}.${f}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:u.name})):l[f]?e.reportError(new ie(`Field "${a}.${f}" can only be defined once.`,{nodes:[l[f],u.name]})):l[f]=u.name}return!1}}function W_(e,t){return Ke(e)||He(e)||tt(e)?e.getFields()[t]!=null:!1}function J_(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 cm(e){const t=[];let r=Object.create(null);return{ObjectValue:{enter(){t.push(r),r=Object.create(null)},leave(){const n=t.pop();n||xt(!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 X_(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 Z_(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 eA(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 tA(e){return{OperationDefinition(t){var r;const n=(r=t.variableDefinitions)!==null&&r!==void 0?r:[],i=Ya(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 rA(e){return{ListValue(t){const r=DI(e.getParentInputType());if(!at(r))return nr(e,t),!1},ObjectValue(t){const r=dr(e.getInputType());if(!tt(r))return nr(e,t),!1;const n=ur(t.fields,i=>i.name.value);for(const i of Object.values(r.getFields()))if(!n[i.name]&&jf(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&&nA(e,t,r,n)},ObjectField(t){const r=dr(e.getParentInputType());if(!e.getInputType()&&tt(r)){const i=mr(t.name.value,Object.keys(r.getFields()));e.reportError(new ie(`Field "${t.name.value}" is not defined by type "${r.name}".`+Wt(i),{nodes:t}))}},NullValue(t){const r=e.getInputType();Fe(r)&&e.reportError(new ie(`Expected value of type "${me(r)}", found ${Je(t)}.`,{nodes:t}))},EnumValue:t=>nr(e,t),IntValue:t=>nr(e,t),FloatValue:t=>nr(e,t),StringValue:t=>nr(e,t),BooleanValue:t=>nr(e,t)}}function nr(e,t){const r=e.getInputType();if(!r)return;const n=dr(r);if(!_r(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 nA(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 iA(e){return{VariableDefinition(t){const r=kt(e.getSchema(),t.type);if(r!==void 0&&!bn(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 oA(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(),f=kt(u,l.type);if(f&&!sA(u,f,l.defaultValue,o,s)){const y=me(f),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&&Af(f)&&e.reportError(new ie(`Variable "$${c}" is of type "${f}" 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 sA(e,t,r,n,i){if(Fe(n)&&!Fe(t)){if(!(r!=null&&r.kind!==exports.Kind.NULL)&&!(i!==void 0))return!1;const a=n.ofType;return Pr(e,t,a)}return Pr(e,t,n)}const aA=Object.freeze([b_]);Object.freeze([s_,X_,y_,K_,Zf,l_,iA,U_,a_,J_,m_,E_,N_,w_,tA,S_,x_,Xf,am,u_,sm,rA,M_,oA,P_,cm,...aA]);const cA=Object.freeze([g_,Z_,eA,Y_,Q_,H_,G_,Zf,Xf,am,D_,Jf,sm,cm,im]);class pA{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 lA extends pA{constructor(t,r,n){super(t,n),this._schema=r}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}At(Da,e=>e.filter(t=>t!=="description"));function uA(e,t,r=cA){const n=[],i=new lA(e,t,s=>{n.push(s)}),o=r.map(s=>s(i));return ja(e,Of(o)),n}function dA(e){const t=uA(e);if(t.length!==0)throw new Error(t.map(r=>r.message).join(`
73
-
74
- `))}function fA(e,t,r){var n,i,o,s;const a=[],c=Object.create(null),l=Object.create(null),u=[];let f;const y=[];for(const $ of t.definitions)if($.kind===exports.Kind.SCHEMA_DEFINITION)f=$;else if($.kind===exports.Kind.SCHEMA_EXTENSION)y.push($);else if(En($))a.push($);else if(Ka($)){const j=$.name.value,V=c[j];c[j]=V?V.concat([$]):[$]}else if($.kind===exports.Kind.DIRECTIVE_DEFINITION)u.push($);else if($.kind===exports.Kind.DIRECTIVE_EXTENSION){const j=$.name.value,V=l[j];l[j]=V?V.concat([$]):[$]}if(Object.keys(c).length===0&&a.length===0&&Object.keys(l).length===0&&u.length===0&&y.length===0&&f==null)return e;const h=Object.create(null);for(const $ of e.types)h[$.name]=g($);for(const $ of a){var b;const j=$.name.value;h[j]=(b=Al[j])!==null&&b!==void 0?b:C($)}const w=Object.create(null);for(const $ of e.directives)w[$.name]=he($);const E={query:e.query&&v(e.query),mutation:e.mutation&&v(e.mutation),subscription:e.subscription&&v(e.subscription),...f&&Y([f]),...Y(y)},T=Object.values(w);return{description:(n=f)===null||n===void 0||(i=n.description)===null||i===void 0?void 0:i.value,...E,types:Object.values(h),directives:[...T.map(x),...u.map(de)],extensions:Object.create(null),astNode:(o=f)!==null&&o!==void 0?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(y),assumeValid:(s=r?.assumeValid)!==null&&s!==void 0?s:!1};function I($){return at($)?new ct(I($.ofType)):Fe($)?new Ae(I($.ofType)):v($)}function v($){return h[$.name]}function x($){const j=$.toConfig();return new Ut({...j,args:At(j.args,U)})}function g($){if(Qf($)||UI($))return $;if(Zt($))return k($);if(Ke($))return G($);if(He($))return B($);if(ft($))return K($);if(mt($))return O($);if(tt($))return S($);xt(!1,"Unexpected type: "+me($))}function S($){var j;const V=$.toConfig(),J=(j=c[V.name])!==null&&j!==void 0?j:[];return new Ws({...V,fields:()=>({...At(V.fields,ae=>({...ae,type:I(ae.type)})),...M(J)}),extensionASTNodes:V.extensionASTNodes.concat(J)})}function O($){var j;const V=$.toConfig(),J=(j=c[$.name])!==null&&j!==void 0?j:[];return new rn({...V,values:{...V.values,...Q(J)},extensionASTNodes:V.extensionASTNodes.concat(J)})}function k($){var j;const V=$.toConfig(),J=(j=c[V.name])!==null&&j!==void 0?j:[];let ae=V.specifiedByURL;for(const F of J){var D;ae=(D=Rl(F))!==null&&D!==void 0?D:ae}return new Jt({...V,specifiedByURL:ae,extensionASTNodes:V.extensionASTNodes.concat(J)})}function G($){var j;const V=$.toConfig(),J=(j=c[V.name])!==null&&j!==void 0?j:[];return new Vt({...V,interfaces:()=>[...$.getInterfaces().map(v),...z(J)],fields:()=>({...At(V.fields,W),...Te(J)}),extensionASTNodes:V.extensionASTNodes.concat(J)})}function B($){var j;const V=$.toConfig(),J=(j=c[V.name])!==null&&j!==void 0?j:[];return new Ys({...V,interfaces:()=>[...$.getInterfaces().map(v),...z(J)],fields:()=>({...At(V.fields,W),...Te(J)}),extensionASTNodes:V.extensionASTNodes.concat(J)})}function K($){var j;const V=$.toConfig(),J=(j=c[V.name])!==null&&j!==void 0?j:[];return new Qs({...V,types:()=>[...$.getTypes().map(v),..._(J)],extensionASTNodes:V.extensionASTNodes.concat(J)})}function W($){return{...$,type:I($.type),args:$.args&&At($.args,U)}}function U($){return{...$,type:I($.type)}}function Y($){const j={};for(const J of $){var V;const ae=(V=J.operationTypes)!==null&&V!==void 0?V:[];for(const D of ae)j[D.operation]=we(D.type)}return j}function he($){var j,V;const J=$.toConfig(),ae=(j=l[J.name])!==null&&j!==void 0?j:[],D=(V=J.deprecationReason)!==null&&V!==void 0?V:ae.map(F=>ir(F)).find(F=>F!=null);return new Ut({...J,deprecationReason:D,extensionASTNodes:J.extensionASTNodes.concat(ae)})}function we($){var j;const V=$.name.value,J=(j=Al[V])!==null&&j!==void 0?j:h[V];if(J===void 0)throw new Error(`Unknown type: "${V}".`);return J}function Oe($){return $.kind===exports.Kind.LIST_TYPE?new ct(Oe($.type)):$.kind===exports.Kind.NON_NULL_TYPE?new Ae(Oe($.type)):we($)}function de($){var j,V,J;const ae=(j=l[$.name.value])!==null&&j!==void 0?j:[],D=(V=ir($))!==null&&V!==void 0?V:ae.map(F=>ir(F)).find(F=>F!=null);return new Ut({name:$.name.value,description:(J=$.description)===null||J===void 0?void 0:J.value,locations:$.locations.map(({value:F})=>F),isRepeatable:$.repeatable,args:H($.arguments),deprecationReason:D,astNode:$,extensionASTNodes:ae})}function Te($){const j=Object.create(null);for(const ae of $){var V;const D=(V=ae.fields)!==null&&V!==void 0?V:[];for(const F of D){var J;j[F.name.value]={type:Oe(F.type),description:(J=F.description)===null||J===void 0?void 0:J.value,args:H(F.arguments),deprecationReason:ir(F),astNode:F}}}return j}function H($){const j=$??[],V=Object.create(null);for(const ae of j){var J;const D=Oe(ae.type);V[ae.name.value]={type:D,description:(J=ae.description)===null||J===void 0?void 0:J.value,defaultValue:sr(ae.defaultValue,D),deprecationReason:ir(ae),astNode:ae}}return V}function M($){const j=Object.create(null);for(const ae of $){var V;const D=(V=ae.fields)!==null&&V!==void 0?V:[];for(const F of D){var J;const X=Oe(F.type);j[F.name.value]={type:X,description:(J=F.description)===null||J===void 0?void 0:J.value,defaultValue:sr(F.defaultValue,X),deprecationReason:ir(F),astNode:F}}}return j}function Q($){const j=Object.create(null);for(const ae of $){var V;const D=(V=ae.values)!==null&&V!==void 0?V:[];for(const F of D){var J;j[F.name.value]={description:(J=F.description)===null||J===void 0?void 0:J.value,deprecationReason:ir(F),astNode:F}}}return j}function z($){return $.flatMap(j=>{var V,J;return(V=(J=j.interfaces)===null||J===void 0?void 0:J.map(we))!==null&&V!==void 0?V:[]})}function _($){return $.flatMap(j=>{var V,J;return(V=(J=j.types)===null||J===void 0?void 0:J.map(we))!==null&&V!==void 0?V:[]})}function C($){var j;const V=$.name.value,J=(j=c[V])!==null&&j!==void 0?j:[];switch($.kind){case exports.Kind.OBJECT_TYPE_DEFINITION:{var ae;const be=[$,...J];return new Vt({name:V,description:(ae=$.description)===null||ae===void 0?void 0:ae.value,interfaces:()=>z(be),fields:()=>Te(be),astNode:$,extensionASTNodes:J})}case exports.Kind.INTERFACE_TYPE_DEFINITION:{var D;const be=[$,...J];return new Ys({name:V,description:(D=$.description)===null||D===void 0?void 0:D.value,interfaces:()=>z(be),fields:()=>Te(be),astNode:$,extensionASTNodes:J})}case exports.Kind.ENUM_TYPE_DEFINITION:{var F;const be=[$,...J];return new rn({name:V,description:(F=$.description)===null||F===void 0?void 0:F.value,values:Q(be),astNode:$,extensionASTNodes:J})}case exports.Kind.UNION_TYPE_DEFINITION:{var X;const be=[$,...J];return new Qs({name:V,description:(X=$.description)===null||X===void 0?void 0:X.value,types:()=>_(be),astNode:$,extensionASTNodes:J})}case exports.Kind.SCALAR_TYPE_DEFINITION:{var te;return new Jt({name:V,description:(te=$.description)===null||te===void 0?void 0:te.value,specifiedByURL:Rl($),astNode:$,extensionASTNodes:J})}case exports.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var ge;const be=[$,...J];return new Ws({name:V,description:(ge=$.description)===null||ge===void 0?void 0:ge.value,fields:()=>M(be),astNode:$,extensionASTNodes:J,isOneOf:mA($)})}}}}const Al=ur([...Ua,...za],e=>e.name);function ir(e){const t=nn(Fa,e);return t?.reason}function Rl(e){const t=nn(Bf,e);return t?.url}function mA(e){return!!nn(zf,e)}function hA(e,t){e!=null&&e.kind===exports.Kind.DOCUMENT||Ue(!1,"Must provide valid Document AST."),t?.assumeValid!==!0&&t?.assumeValidSDL!==!0&&dA(e);const n=fA({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,...Cr.filter(o=>n.directives.every(s=>s.name!==o.name))];return new Wf({...n,directives:i})}const yA=()=>({Document:{enter:(e,t)=>{let r;try{r=hA(e,{assumeValidSDL:!1})}catch(n){gA(n,t);return}for(const n of KI(r))pm(n,t)}}});function gA(e,t){if(e instanceof ie)pm(e,t);else if(e instanceof Error)t.report({message:e.message});else throw e}function pm(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 vA=()=>{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}},bA={struct:yA,assertions:eI,"no-unused-types":aI,"type-description":vA},Qa=()=>({Info(e,{report:t}){e.license||t({message:Po("Info","license"),location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/info-license"})}}),lm=()=>({Paths(e,{report:t,location:r}){const n=[];for(const i of Object.keys(e)){const o=n.find(s=>wA(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 wA(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 um(e){return e.startsWith("{")&&e.endsWith("}")}function SA(e){const t=e.split(/(?:[-._])|([A-Z][a-z]+)/).filter(A.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 EA=["get","head","post","put","patch","delete","options","trace"],dm=({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||um(c))continue;const l=u=>e?SA(c).has(u):c.toLocaleLowerCase().includes(u);for(const u of EA)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"})}}}),fm=()=>({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)}}}),mm=e=>{const t=new xo;return{Parameter:{leave(r,n){if(dt(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"}),Z.isPlainObject(r.examples))for(const[i,o]of Object.entries(r.examples)){const s=yf(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"})}}}}},hm=e=>{const t=new xo;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(dt(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"})}}}}},ym=()=>({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"})}}),gm=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){const n=Object.keys(t||{});io({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||{});io({responseCodes:n,codeRange:"2XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response"})}}}),vm=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){const n=Object.keys(t||{});io({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||{});io({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}}}),bm=()=>({Operation(e,t){kr({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-description"})}}),wm=()=>{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))}}},xA=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/,Sm=()=>({Operation(e,{report:t,location:r}){e.operationId&&!xA.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"})}}),Em=()=>{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)}}}}},xm=()=>({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"})}}),Tm=()=>({Operation(e,t){kr({fieldName:"summary",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-summary"})}}),Pm=()=>{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"})}}},Om=()=>({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"})}}),Im=()=>({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"})}}),TA=["get","head","post","put","patch","delete","options","query","trace"],_m=e=>{const t=e&&e.order||TA;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"})}}}},Am=()=>({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"})}}}),PA=/\{([a-zA-Z0-9_.-]+)\}+/g,OA=2,po=()=>{const e={current:null};return{PathItem:{enter(r,{key:n}){Rm(e,n)},leave(){IA(e)},Parameter(r,{report:n,location:i,rawLocation:o}){$m({parameter:r,pathContext:e,report:n,location:i,rawLocation:o})},Operation:Nm(e,new Set)}}},Rm=(e,t)=>{e.current={path:t,templateParams:_A(t),definedParams:new Set}},IA=e=>{e.current=null},$m=({parameter:e,pathContext:t,report:r,location:n,rawLocation:i})=>{e.in==="path"&&e.name&&t.current&&(t.current.definedParams.add(e.name),km({paramName:e.name,templateParams:t.current.templateParams,path:t.current.path,report:r,location:n,rawLocation:i}))},Nm=(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>=OA)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,Rm(e,a)},leave(){e.current=o},Parameter(s,{report:a,location:c,rawLocation:l}){$m({parameter:s,pathContext:e,report:a,location:c,rawLocation:l})},get Operation(){return Nm(e,t,r+1)}}};return{enter(){t=new Set},leave(o,{report:s,location:a}){!e.current||!t||RA({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}){AA(o,t),o.in==="path"&&o.name&&e.current&&(t.add(o.name),km({paramName:o.name,templateParams:e.current.templateParams,path:e.current.path,report:s,location:a,rawLocation:c}))},Callback:{get PathItem(){return i()}}}},_A=e=>new Set(Array.from(e.matchAll(PA)).map(t=>t[1])),AA=(e,t)=>{Z.isPlainObject(e)&&"in"in e&&"name"in e&&e.in==="path"&&e.name&&t.add(e.name)},km=({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"})}},RA=({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"})},Dm=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)||!um(l)&&Iu.isSingular(l)&&i({message:`path segment \`${l}\` should be plural.`,location:s.key(),reference:"https://redocly.com/docs/cli/rules/oas/path-segment-plural"})}}}}},qm=()=>({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"})}}),Cm=()=>{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 Ar(e){return`${e}`.replace(/^(\d)\d\d$/,(t,r)=>`${r}XX`)}const jm=e=>{const t=e.names||{};return{Operation:{Response:{enter:(r,{report:n,location:i,key:o})=>{const s=t[o]||t[Ar(o)]||t[Ar(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"})}}}}},$l=["string","integer","number","boolean","null"],Mm=()=>({SchemaProperties(e,{report:t,location:r,specVersion:n,resolve:i}){for(const o of Object.keys(e)){const s=i(A.getOwn(e,o)).node;!s||!$A(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 $A(e){return!e.type||e.allOf||e.anyOf||e.oneOf||e.format==="binary"?!1:Array.isArray(e.type)?e.type.every(t=>$l.includes(t)):$l.includes(e.type)}const Lm=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))}}}},Um=()=>{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)&&A.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"})}}},NA=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 lo({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 Or({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 kA=({allowedValues:e})=>({Root(t,r){lo({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})},Operation:{leave(t,r){lo({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}),DA=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[Ar(r)]||t[Ar(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"})}}}}},qA=({allowedValues:e})=>({Root(t,r){lo({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})},Operation:{leave(t,r){lo({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}),CA={struct:Ht,"no-invalid-schema-examples":hm,"no-invalid-parameter-examples":mm,"info-contact":Dr,"info-license":Qa,"info-license-strict":_o,"tag-description":No,"tags-alphabetical":ko,"paths-kebab-case":qm,"no-enum-type-mismatch":hn,"boolean-parameter-prefixes":NA,"no-path-trailing-slash":ym,"operation-2xx-response":gm,"operation-4xx-response":vm,assertions:Xt,"operation-operationId-unique":wm,"operation-parameters-unique":Em,"path-parameters-defined":po,"operation-tag-defined":Pm,"path-declaration-must-exist":Im,"operation-operationId-url-safe":Sm,"operation-operationId":Ro,"operation-summary":Tm,"operation-description":bm,"path-not-include-query":Am,"path-params-defined":po,"parameter-description":Om,"operation-singular-tag":xm,"security-defined":Lm,"security-scopes-defined":ka,"no-unresolved-refs":Kt,"no-identical-paths":fm,"no-ambiguous-paths":lm,"path-http-verbs-order":_m,"no-http-verbs-in-paths":dm,"request-mime-type":kA,"response-mime-type":qA,"path-segment-plural":Dm,"response-contains-header":jm,"response-contains-property":DA,"scalar-property-missing-example":Mm,"required-string-property-missing-min-length":Cm,"spec-strict-refs":Um,"spec-ref-siblings":$o,"no-required-schema-properties-undefined":yn,"no-schema-type-mismatch":gn,"no-duplicated-enum-values":mn,"no-unsafe-markdown":vn,"no-duplicated-tag-names":Ao},jA={},MA=e=>({Parameter:{leave(t,r){if(!t.schema)return;const n=A.isRef(t.schema)?r.resolve(t.schema).node:t.schema;n&&LA(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 LA(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 UA=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"})}}}},ta="Schema",ra="Parameter",na="Response",ia="RequestBody",FA={[ta]:"schemas",[ra]:"parameters",[na]:"responses",[ia]:"requestBodies"},BA=e=>{const t=new Map,r=[];e.schemas!=="off"&&r.push(ta),e.parameters!=="off"&&r.push(ra),e.responses!=="off"&&r.push(na),e.requestBodies!=="off"&&r.push(ia);const n={ref:{leave(a,{type:c,resolve:l}){const u=c.name;if(r.includes(u)){const f=l(a);if(!f.location)return;s(u,f.location)}}},Root:{leave(a,c){t.forEach((l,u,f)=>{if(l.absolutePointers.size>1){const y=KA(u),h=zA(y.typeName),b=h?e[h]:null;for(const w of l.locations){const E=Array.from(l.absolutePointers).filter(I=>I!==w.absolutePointer.toString()).map(I=>`- ${I}`).join(`
76
- `),T={message:`Component '${h}/${y.componentName}' is not unique. It is also defined at:
77
- ${E}`,location:w,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};b&&(T.forceSeverity=b),c.report(T)}}})}}};return e.schemas!="off"&&(n.NamedSchemas={Schema(a,{location:c}){s(ta,c)}}),e.responses!="off"&&(n.NamedResponses={Response(a,{location:c}){s(na,c)}}),e.parameters!="off"&&(n.NamedParameters={Parameter(a,{location:c}){s(ra,c)}}),e.requestBodies!="off"&&(n.NamedRequestBodies={RequestBody(a,{location:c}){s(ia,c)}}),n;function i(a){const c=a.split("/").slice(-1)[0];return A.isSupportedExtension(c)?c.slice(0,c.lastIndexOf(".")):c}function o(a,c,l){const u=VA(a,c),f=t.get(u)??{absolutePointers:new Set,locations:[]},y=l.absolutePointer.toString();f.absolutePointers.has(y)||(f.absolutePointers.add(y),f.locations.push(l)),t.set(u,f)}function s(a,c){const l=i(c.absolutePointer.toString());o(a,l,c)}};function zA(e){return FA[e]??null}function VA(e,t){return`${e}/${t}`}function KA(e){const[t,r]=e.split("/");return{typeName:t,componentName:r}}const HA=()=>({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"})}}),GA=()=>({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"})}}),YA=new Set(["type","format","enum","const","nullable","properties","required","additionalProperties","discriminator","$ref","$id","$schema","$anchor","$comment","title","description","default","example","examples","deprecated","readOnly","writeOnly","externalDocs","xml"]),QA=()=>({AllOf(e,t){const r=t.parent;Array.isArray(e)&&((e.length===0||e.length===1&&Object.keys(r).length===1&&!WA(e[0],t.resolve))&&os(e,"allOf",t),ss(e,"allOf",t),as(e,"allOf",t))},AnyOf(e,t){const r=t.parent;if(!Array.isArray(e))return;const n=Z.isPlainObject(r.discriminator);e.length<2&&!n&&os(e,"anyOf",t),ss(e,"anyOf",t),as(e,"anyOf",t),n&&Nl(e,"anyOf",t)},OneOf(e,t){const r=t.parent;if(!Array.isArray(e))return;const{discriminator:n}=r,i=Z.isPlainObject(n);e.length<2&&!i&&os(e,"oneOf",t),ss(e,"oneOf",t),as(e,"oneOf",t),i&&Nl(e,"oneOf",t),fo(r)&&JA(e,t),XA(e,i?n:void 0,t)}});function os(e,t,r){const n=e.length===1?" Use the schema directly instead.":"";r.report({message:`\`${t}\` should have at least two schemas.${n}`,location:r.location.key()})}function WA(e,t){return Z.isPlainObject(on(e,t)?.schema.discriminator)}function ss(e,t,r){for(const[n,i]of e.entries())Z.isPlainObject(i)&&Object.keys(i).length===0&&r.report({message:`Schema in \`${t}\` is empty, so it matches any value.`,location:r.location.child([n])})}function Nl(e,t,r){for(const[n,i]of e.entries())A.isRef(i)||Z.isPlainObject(i)&&"$id"in i||r.report({message:`Schema in \`${t}\` is inline, so the \`discriminator\` cannot select it. Use a \`$ref\` to a named schema.`,location:r.location.child([n])})}function as(e,t,r){for(let n=1;n<e.length;n++){const i=e.findIndex(o=>zt(o,e[n]));i<n&&r.report({message:`Schema in \`${t}\` duplicates the schema at position ${i+1}.`,location:r.location.child([n])})}}function JA(e,t){e.some(n=>{const i=on(n,t.resolve);return i?fo(i.schema):!1})&&t.report({message:"The schema and a schema in `oneOf` both accept `null`, so nothing decides which one applies to a null value.",location:t.location.key()})}function XA(e,t,r){const{resolve:n,report:i,location:o}=r,s=r.specVersion!=="oas3_2",a=e.map(c=>on(c,n));for(let c=0;c<a.length-1;c++){const l=a[c];if(l)for(let u=c+1;u<a.length;u++){const f=a[u];if(!f||zt(e[c],e[u]))continue;const y=ZA(l,f,n,t,s);y&&i({message:`Schemas in \`oneOf\` must be mutually exclusive. Found overlapping schemas: ${kl(e[c],c)} and ${kl(e[u],u)}. ${y}`,location:o.key()})}}}function kl(e,t){return A.isRef(e)?`\`${e.$ref}\``:e.title?`\`${e.title}\``:`schema at position ${t+1}`}function ZA(e,t,r,n,i){const o=e.schema,s=t.schema;if(uo(o)||uo(s)||Fm(o,s))return null;if(fo(o)&&fo(s))return"Both schemas accept `null`.";const a=an(o),c=an(s);if(a&&c){const u=a.filter(f=>c.some(y=>zt(f,y)));return`Both schemas allow the values ${JSON.stringify(u)}.`}if(n)return i?eR(o,s,n):null;const l=tR(e,t,r);if(l)return l;if(!o.properties&&!s.properties){const u=zm(o,s);if(u?.length)return`Both schemas accept ${u.map(f=>`\`${f}\``).join(", ")}.`}return null}function eR(e,t,r){const{propertyName:n}=r;return typeof n!="string"||!!e.required?.includes(n)&&!!t.required?.includes(n)?null:dt(A.getOwn(e.properties??{},n))&&dt(A.getOwn(t.properties??{},n))?`Add \`${n}\` to \`required\` in every schema; the \`discriminator\` cannot read a property a value may omit.`:`Declare \`${n}\` in every schema and add it to \`required\`; the \`discriminator\` cannot read a property a value may omit.`}function tR(e,t,r){const n=rR(e,t);if(!n||Dl(e.schema,n.leftProperties,n.rightRequired)||Dl(t.schema,n.rightProperties,n.leftRequired)||nR(n)||n.sharedNames.length===0)return null;const i=iR(n,r);if(!i)return null;const{optionalDistinguishingNames:o,ambiguousNames:s}=i;if(o.length>0){const a=s.length>0?` Other shared properties: ${cs(s)}.`:"";return`Add ${cs(o)} to \`required\` in every schema; an optional property cannot distinguish the schemas.${a}`}return s.length>0?`Both schemas define ${cs(s)} without constraints that exclude each other. Add a discriminator, or constrain the shared properties to different values.`:null}function rR(e,t){const r=e.schema.properties,n=t.schema.properties;return!r||!n?null:{leftSource:e.source,rightSource:t.source,leftProperties:r,rightProperties:n,leftRequired:new Set(e.schema.required??[]),rightRequired:new Set(t.schema.required??[]),sharedNames:Object.keys(r).filter(i=>A.getOwn(n,i))}}function nR({leftProperties:e,rightProperties:t,leftRequired:r,rightRequired:n}){const i=[...r].some(s=>!A.getOwn(t,s)&&!n.has(s)),o=[...n].some(s=>!A.getOwn(e,s)&&!r.has(s));return i&&o}function iR({leftSource:e,rightSource:t,leftProperties:r,rightProperties:n,leftRequired:i,rightRequired:o,sharedNames:s},a){const c=[],l=[];for(const u of s){const f=i.has(u)&&o.has(u),y=on(A.getOwn(r,u),a,e),h=on(A.getOwn(n,u),a,t);if(!(!y||!h)&&!(uo(y.schema)||uo(h.schema))){if(Fm(y.schema,h.schema)){if(f)return null;c.push(u);continue}l.push(u)}}return{optionalDistinguishingNames:c,ambiguousNames:l}}function Dl(e,t,r){return e.additionalProperties!==!1?!1:[...r].some(n=>!A.getOwn(t,n))}function Fm(e,t){const r=an(e),n=an(t);return r&&n?!r.some(i=>n.some(o=>zt(i,o))):zm(e,t)?.length===0}function on(e,t,r){if(A.isRef(e)){const{node:n,location:i}=t(e,r);return Z.isPlainObject(n)?{schema:n,source:i?.source.absoluteRef}:void 0}return Z.isPlainObject(e)?{schema:e,source:r}:void 0}function uo(e){return Object.keys(e).some(t=>!YA.has(t)&&!t.startsWith("x-"))}function Bm(e){return"nullable"in e&&e.nullable===!0}function sn(e){const t=e.type;if(t===void 0)return;const r=new Set(Array.isArray(t)?t:[t]);return Bm(e)&&r.add("null"),r}function zm(e,t){const r=sn(e),n=sn(t);if(!r||!n)return;const i=[...r].filter(o=>n.has(o));return i.length===0&&oR(e,t)?["integer"]:i}function oR(e,t){const r=sn(e),n=sn(t);return r?.has("integer")&&n?.has("number")?ql(t):r?.has("number")&&n?.has("integer")?ql(e):!1}function ql(e){const t=an(e);return!t||t.some(r=>typeof r=="number"&&Number.isInteger(r))}function fo(e){return Bm(e)||sn(e)?.has("null")===!0}function an(e){if(e.enum)return e.enum;const t="const"in e?e.const:void 0;return dt(t)?[t]:void 0}function cs(e){return e.map(t=>`\`${t}\``).join(", ")}const sR=e=>{const t=new xo,r=i=>i.schema===void 0,n=i=>(o,s)=>{const{location:a,resolve:c}=s;if(dt(o.example))l(o.example,a.child("example"));else if(Z.isPlainObject(o.examples))for(const u of Object.keys(o.examples))l(o.examples[u],a.child(["examples",u]),!0);function l(u,f,y){if(A.isRef(u)){const b=c(u);if(!b.location)return;f=b.location,u=b.node}let h=u;if(y){const b=yf(u);if(!b)return;h=b.value,f=f.child(b.field)}en({example:h,schema:o.schema,options:{location:f,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"})}}}},aR=()=>({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"})}}),cR=()=>({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"})}}),pR=()=>({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=Cl(i);o&&n.push(...o)}else{const i=Cl(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 Cl(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 lR=()=>({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"})}}),uR=()=>{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=>A.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)}}},dR=()=>({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"})}}}),ps="https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807",fR=()=>({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:ps})},MediaType:{skip(e,t){return t!=="application/problem+json"},enter(e,t){if(kr({fieldName:"schema",value:e,ctx:t,reference:ps}),!e.schema)return;const{schema:r,location:n}=To(e.schema,t,t.location.child("schema"));if(!(!r||!n))for(const i of["type","title"])ar(e.schema,i,t)||t.report({message:Po("SchemaProperties",i),location:r.properties?n.child(["properties",i]).key():n.key(),reference:ps})}}}}),mR=({allowedValues:e})=>({Paths:{RequestBody:{leave(t,r){Or({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){Or({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}},WebhooksMap:{Response:{leave(t,r){Or({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}}),hR=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[Ar(r)]||t[Ar(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"})}}}}}},yR=({allowedValues:e})=>({Paths:{Response:{leave(t,r){Or({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){Or({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}},WebhooksMap:{RequestBody:{leave(t,r){Or({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}}),gR=()=>{const e=`^[${Pd}]+$`;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")}}}},vR=()=>{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=To(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"})}}}},bR=()=>({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"})}}),wR=()=>({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"})}}}),SR=()=>{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 jl(e){return e.filter(t=>!("$ref"in t)&&t.in==="querystring").length}function Ml(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 Ll(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 ER=()=>{let e={},t={},r=0;return{PathItem:{enter(n,i){e={},t={},r=0,Ml(jl(n.parameters||[]),i)},Parameter(n,i){Ll(n,i.location,e,i),n.in==="querystring"&&(r+=1)},Operation:{enter(n,i){t={...e};const o=r+jl(n.parameters||[]);Ml(o,i)},Parameter(n,i){Ll(n,i.location,t,i)}}}}},xR=()=>({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"}))}}}),TR={struct:Ht,"info-contact":Dr,"info-license":Qa,"info-license-strict":_o,"operation-2xx-response":gm,"operation-4xx-response":vm,"operation-4xx-problem-details-rfc7807":fR,assertions:Xt,"operation-operationId-unique":wm,"operation-parameters-unique":Em,"operation-tag-defined":Pm,"no-example-value-and-externalValue":GA,"no-mixed-number-range-constraints":Io,"no-enum-type-mismatch":hn,"no-path-trailing-slash":ym,"no-empty-servers":HA,"path-declaration-must-exist":Im,"operation-operationId-url-safe":Sm,"operation-operationId":Ro,"operation-summary":Tm,"tags-alphabetical":ko,"no-server-example.com":aR,"no-server-trailing-slash":cR,"tag-description":No,"operation-description":bm,"no-unused-components":uR,"path-not-include-query":Am,"path-parameters-defined":po,"path-params-defined":po,"parameter-description":Om,"operation-singular-tag":xm,"security-defined":Lm,"security-scopes-defined":ka,"no-unresolved-refs":Kt,"paths-kebab-case":qm,"boolean-parameter-prefixes":UA,"path-http-verbs-order":_m,"no-illogical-composition-keywords":QA,"no-invalid-media-type-examples":sR,"no-identical-paths":fm,"no-ambiguous-paths":lm,"no-undefined-server-variable":lR,"no-server-variables-empty-enum":pR,"no-http-verbs-in-paths":dm,"request-mime-type":mR,"response-mime-type":yR,"path-segment-plural":Dm,"no-invalid-schema-examples":hm,"no-invalid-parameter-examples":mm,"response-contains-header":jm,"response-contains-property":hR,"scalar-property-missing-example":Mm,"spec-components-invalid-map-name":gR,"required-string-property-missing-min-length":Cm,"spec-strict-refs":Um,"component-name-unique":BA,"array-parameter-serialization":MA,"no-required-schema-properties-undefined":yn,"no-schema-type-mismatch":gn,"no-duplicated-enum-values":mn,"no-unsafe-markdown":vn,"no-duplicated-tag-names":Ao,"nullable-type-sibling":dR,"spec-no-invalid-tag-parents":SR,"spec-no-invalid-encoding-combinations":wR,"spec-discriminator-defaultMapping":vR,"spec-example-values":bR,"spec-querystring-parameters":ER,"spec-ref-siblings":xR},PR={},OR=()=>{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())}}}},IR=()=>({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))})}}}),_R=()=>({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})}}}),AR={struct:Ht,"no-unresolved-refs":Kt,assertions:Xt,"info-license":Qa,"no-unused-components":OR,"info-contact":Dr,"spec-no-duplicated-method-params":IR,"spec-no-required-params-after-optional":_R,"spec-ref-siblings":$o},RR={},$R={"info-contact":Dr,struct:Ht,"no-unresolved-refs":Kt,assertions:Xt},NR={},kR={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-illogical-composition-keywords":"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-illogical-composition-keywords":"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-illogical-composition-keywords":"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"}},DR={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-illogical-composition-keywords":"off","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-illogical-composition-keywords":"off","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-illogical-composition-keywords":"off","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"}},qR={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-illogical-composition-keywords":"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-illogical-composition-keywords":"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-illogical-composition-keywords":"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"}},CR={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-illogical-composition-keywords":"warn","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-illogical-composition-keywords":"warn","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-illogical-composition-keywords":"warn","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"}},jR={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-illogical-composition-keywords":"off","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-illogical-composition-keywords":"off","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-illogical-composition-keywords":"off","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"}},MR={recommended:CR,"recommended-strict":qR,minimal:DR,all:kR,spec:jR},Ul={id:"",rules:{oas3:TR,oas2:CA,async2:BO,async3:XO,arazzo1:qO,overlay1:$R,openrpc1:AR,graphql:bA},preprocessors:{oas3:PR,oas2:jA,async2:zO,async3:ZO,arazzo1:CO,overlay1:NR,openrpc1:RR},decorators:{oas3:ZP,oas2:WP,async2:VP,async3:KP,arazzo1:zP,overlay1:tO,openrpc1:eO},configs:MR},LR={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function Ft(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 f=new Set;for(const h of Object.values(a.properties)){if(h===c){y(s,u);continue}Z.isPlainObject(h)&&h.name!==void 0&&f.add(h)}a.additionalProperties&&typeof a.additionalProperties!="function"&&(a.additionalProperties===c?y(s,u):a.additionalProperties.name!==void 0&&f.add(a.additionalProperties)),a.items&&typeof a.items!="function"&&(a.items===c?y(s,u):a.items.name!==void 0&&f.add(a.items)),a.extensionsPrefix&&f.add(A.SpecExtension);for(const h of Array.from(f.values()))n(s,h,c,l,u);function y(h,b){for(const w of b.slice(1))r[w.name]=r[w.name]||{enter:[],leave:[]},r[w.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 f of u){const y=a[f]||i(a,LR[f]),h=r[f];if(!y)continue;let b,w,E;const T=Z.isPlainObject(y);if(f==="ref"&&T&&y.skip)throw new Error("ref() visitor does not support skip");typeof y=="function"?b=y:T&&(b=y.enter,w=y.leave,E=y.skip);const I=(b?1:0)+(w?1:0)+(E?1:0),v=T&&Object.keys(y).length>I,x={activatedOn:null,type:t[f],parent:c,isSkippedLevel:!1};if(v&&o(s,y,x,l+1),c&&n(s,c.type,t[f],c),b||T){if(b&&typeof b!="function")throw new Error("DEV: should be function");h.enter.push({...s,visit:b||(()=>{}),skip:E,depth:l,context:x})}if(w){if(typeof w!="function")throw new Error("DEV: should be function");h.leave.push({...s,visit:w,depth:l,context:x})}}}}const qe=(e,t)=>{if(t)for(const r of Object.keys(t))Z.isPlainObject(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r]};function je(e,t){if(t)for(const r of Object.keys(t))e.hasOwnProperty(r)&&(Z.isPlainObject(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r])}function UR(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 Vm(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(Z.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)}`);qe(t.rules,r.rules),qe(t.oas2Rules,r.oas2Rules),je(t.oas2Rules,r.rules),qe(t.oas3_0Rules,r.oas3_0Rules),je(t.oas3_0Rules,r.rules),qe(t.oas3_1Rules,r.oas3_1Rules),je(t.oas3_1Rules,r.rules),qe(t.oas3_2Rules,r.oas3_2Rules),je(t.oas3_2Rules,r.rules),qe(t.async2Rules,r.async2Rules),je(t.async2Rules,r.rules),qe(t.async3Rules,r.async3Rules),je(t.async3Rules,r.rules),qe(t.arazzo1Rules,r.arazzo1Rules),je(t.arazzo1Rules,r.rules),qe(t.arazzo1_1Rules,r.arazzo1_1Rules),je(t.arazzo1_1Rules,r.rules),qe(t.overlay1Rules,r.overlay1Rules),je(t.overlay1Rules,r.rules),qe(t.openrpc1Rules,r.openrpc1Rules),je(t.openrpc1Rules,r.rules),qe(t.graphqlRules,r.graphqlRules),je(t.graphqlRules,r.rules),qe(t.preprocessors,r.preprocessors),qe(t.oas2Preprocessors,r.oas2Preprocessors),je(t.oas2Preprocessors,r.preprocessors),qe(t.oas3_0Preprocessors,r.oas3_0Preprocessors),je(t.oas3_0Preprocessors,r.preprocessors),qe(t.oas3_1Preprocessors,r.oas3_1Preprocessors),je(t.oas3_1Preprocessors,r.preprocessors),qe(t.oas3_2Preprocessors,r.oas3_2Preprocessors),je(t.oas3_2Preprocessors,r.preprocessors),qe(t.async2Preprocessors,r.async2Preprocessors),je(t.async2Preprocessors,r.preprocessors),qe(t.async3Preprocessors,r.async3Preprocessors),je(t.async3Preprocessors,r.preprocessors),qe(t.arazzo1Preprocessors,r.arazzo1Preprocessors),je(t.arazzo1Preprocessors,r.preprocessors),qe(t.arazzo1_1Preprocessors,r.arazzo1_1Preprocessors),je(t.arazzo1_1Preprocessors,r.preprocessors),qe(t.overlay1Preprocessors,r.overlay1Preprocessors),je(t.overlay1Preprocessors,r.preprocessors),qe(t.openrpc1Preprocessors,r.openrpc1Preprocessors),je(t.openrpc1Preprocessors,r.preprocessors),qe(t.decorators,r.decorators),qe(t.oas2Decorators,r.oas2Decorators),je(t.oas2Decorators,r.decorators),qe(t.oas3_0Decorators,r.oas3_0Decorators),je(t.oas3_0Decorators,r.decorators),qe(t.oas3_1Decorators,r.oas3_1Decorators),je(t.oas3_1Decorators,r.decorators),qe(t.oas3_2Decorators,r.oas3_2Decorators),je(t.oas3_2Decorators,r.decorators),qe(t.async2Decorators,r.async2Decorators),je(t.async2Decorators,r.decorators),qe(t.async3Decorators,r.async3Decorators),je(t.async3Decorators,r.decorators),qe(t.arazzo1Decorators,r.arazzo1Decorators),je(t.arazzo1Decorators,r.decorators),qe(t.arazzo1_1Decorators,r.arazzo1_1Decorators),je(t.arazzo1_1Decorators,r.decorators),qe(t.overlay1Decorators,r.overlay1Decorators),je(t.overlay1Decorators,r.decorators),qe(t.openrpc1Decorators,r.openrpc1Decorators),je(t.openrpc1Decorators,r.decorators)}return t}class FR extends Error{}function BR(e){return new Map(JSON.parse(JSON.stringify([...e])))}function Fl(e){return Z.isPlainObject(e)&&"id"in e}function zR(e){return typeof e=="function"}function Km({node:e,ctx:t,plugins:r}){if(!e.extends)return e;const n=(e.extends||[]).filter(A.isTruthy).map(i=>{if(!A.isAbsoluteUrl(i)&&!Z.path.extname(i))return l$(i,r);const o=t.resolve({$ref:i});return o.location&&o.node!==void 0?o.node:null}).filter(A.isTruthy);return Vm([...n.map(i=>Km({node:i,ctx:t,plugins:r})),{...e,extends:void 0}])}function ji(e,t){if(Z.isPlainObject(e)&&Array.isArray(e.plugins)){const{plugins:r,rootConfigDir:n}=t.getVisitorData();r.push(...e.plugins.map(i=>sa(i,t.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}const VR=Ft([{severity:"error",ruleId:Ra,visitor:{ref:{},ConfigGovernance:{leave(e,t){ji(e,t)}},ConfigApisProperties:{leave(e,t){ji(e,t)}},[ot.ScorecardClassicLevel]:{leave(e,t){ji(e,t)}},ConfigRoot:{leave(e,t){ji(e,t)}}}}],dn);function Mi(e,t){if(Z.isPlainObject(e)&&e.extends){const{plugins:r,skipPluginEval:n}=t.getVisitorData();if(n)return;const i=Km({node:e,ctx:t,plugins:r});Object.assign(e,i),delete e.extends}}const KR=Ft([{severity:"error",ruleId:Aa,visitor:{ref:{leave(e,t,r){A.replaceRef(e,r,t)}},ConfigGovernance:{leave(e,t){Mi(e,t)}},ConfigApisProperties:{leave(e,t){Mi(e,t)}},[ot.ScorecardClassicLevel]:{leave(e,t){Mi(e,t)}},ConfigRoot:{leave(e,t){Mi(e,t)}}}}],dn);function Bl(e,t){return{prev:e,value:t}}function zl(e){return e?.prev??null}function HR(e){const t={};for(;e.parent;)t[e.parent.type.name]=e.parent.activatedOn?.value.node,e=e.parent;return t}function GR(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 Bt(e){const{document:t,rootType:r,normalizedVisitors:n,resolvedRefMap:i,ctx:o}=e,s={},a=new Set,c=(E,T)=>`${E.name}::${T.absolutePointer}`,l=new Set,u={},f=n.any.enter,y=n.any.leave,h={},b={};for(const E of Object.keys(n))E==="any"||E==="ref"||(h[E]=f.concat(n[E]?.enter||[]),b[E]=(n[E]?.leave||[]).concat(y));w(t.parsed,r,new A.Location(t.source,"#/"),void 0,"");function w(E,T,I,v,x){const g=(de,Te=O.source.absoluteRef)=>{if(!A.isRef(de))return{location:I,node:de};const H=A.makeRefId(Te,de.$ref),M=i.get(H);if(!M)return{location:void 0,node:void 0};const{resolved:Q,node:z,document:_,nodePointer:C,error:$,chain:j}=M;return{location:Q?new A.Location(_.source,C):$ instanceof A.YamlParseError?new A.Location($.source,""):void 0,node:z,error:$,chain:j}},S=I;let O=I;const k=A.isRef(E),{node:G,location:B,error:K,chain:W}=g(E),U=new Set,Y=A.isRefWithSiblings(E)&&a.has(c(T,I));if(A.isRefWithSiblings(E)&&a.add(c(T,I)),k&&!Y){const de=n.ref.enter;for(const{visit:Te,ruleId:H,severity:M,message:Q,context:z}of de)U.add(z),Te(E,{report:C=>we(H,M,Q,C),resolve:g,rawNode:E,rawLocation:S,location:I,type:T,parent:v,key:x,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:()=>Oe(H)},{node:G,location:B,error:K,chain:W}),B?.source.absoluteRef&&o.refTypes&&o.refTypes.set(B?.source.absoluteRef,T)}if(G!==void 0&&B&&T.name!=="scalar"){const de=(j,V,J,ae)=>{let D=A.getOwn(T.properties,j);const F=T.extensionsPrefix!==void 0&&j.startsWith(T.extensionsPrefix);D===void 0&&!F&&(D=T.additionalProperties),typeof D=="function"&&(D=D(V,j)),F&&!A.isNamedType(D)&&(D=A.SpecExtension),!A.isNamedType(D)&&D?.directResolveAs&&(D=D.directResolveAs,V={$ref:V}),D&&D.name===void 0&&D.resolvable!==!1&&(D={name:"scalar",properties:{}}),!(!A.isNamedType(D)||D.name==="scalar"&&!A.isRef(V))&&w(V,D,J.child([j]),ae,j)};O=B;const Te=Z.isPlainObject(G)||Array.isArray(G)?G:I.absolutePointer,H=s[T.name]?.has?.(Te);let M=!1;const Q=h[T.name]||f.concat(n[T.name]?.enter||[]),z=[],_=`${O.absolutePointer}${O.pointer}`;for(const{context:j,visit:V,skip:J,ruleId:ae,severity:D,message:F}of Q){if(l.has(_))break;if(j.isSkippedLevel)j.parent.activatedOn&&!j.parent.activatedOn.value.nextLevelTypeActivated&&!j.seen.has(E)&&(j.seen.add(E),M=!0,z.push(j));else if(j.parent&&j.parent.activatedOn&&j.parent.activatedOn.value.node===u[j.parent.type.name]&&j.activatedOn?.value.withParentNode!==j.parent.activatedOn.value.node&&j.parent.activatedOn.value.nextLevelTypeActivated?.value!==T||!j.parent&&!H){z.push(j);const X={node:G,location:B,nextLevelTypeActivated:null,withParentNode:j.parent?.activatedOn?.value.node,skipped:(j.parent?.activatedOn?.value.skipped||J?.(G,x,{location:I,rawLocation:S,resolve:g,rawNode:E}))??!1};j.activatedOn=Bl(j.activatedOn,X);let te=j.parent;for(;te;)te.activatedOn.value.nextLevelTypeActivated=Bl(te.activatedOn.value.nextLevelTypeActivated,T),te=te.parent;X.skipped||(M=!0,U.add(j),he(V,G,E,j,ae,D,F))}}const C=u[T.name];if(u[T.name]=G,M||!H){if(s[T.name]=s[T.name]||new Set,s[T.name].add(Te),Array.isArray(G)){const j=T.items;if(j!==void 0){const V=typeof j=="function";for(let J=0;J<G.length;J++){const ae=B.child([J]);let D=V?j(G[J],ae.absolutePointer):j,F=G[J];D?.directResolveAs&&(D=D.directResolveAs,F={$ref:F}),A.isNamedType(D)&&w(F,D,ae,G,J)}}}else if(Z.isPlainObject(G)){const j=Object.keys(T.properties);T.additionalProperties?j.push(...Object.keys(G).filter(V=>!j.includes(V))):T.extensionsPrefix&&j.push(...Object.keys(G).filter(V=>V.startsWith(T.extensionsPrefix)&&!j.includes(V)));for(const V of j){const J=G[V];J!==void 0&&de(V,J,B,G)}}}if(k&&W?.length){const j=W[0];a.has(c(T,j.location))||w(j.node,T,j.location,void 0,x)}if(A.isRefWithSiblings(E)&&!Y)for(const j of Object.keys(E))j!=="$ref"&&E[j]!==G?.[j]&&de(j,E[j],I,E);u[T.name]=C;const $=b[T.name]||(n[T.name]?.leave||[]).concat(y);for(const j of z.reverse())if(j.isSkippedLevel)j.seen.delete(G);else if(j.activatedOn=zl(j.activatedOn),j.parent){let V=j.parent;for(;V;)V.activatedOn.value.nextLevelTypeActivated=zl(V.activatedOn.value.nextLevelTypeActivated),V=V.parent}for(const{context:j,visit:V,ruleId:J,severity:ae,message:D}of $)!j.isSkippedLevel&&U.has(j)&&he(V,G,E,j,J,ae,D)}if(O=I,k&&!Y){const de=n.ref.leave;for(const{visit:Te,ruleId:H,severity:M,context:Q,message:z}of de)U.has(Q)&&Te(E,{report:C=>we(H,M,z,C),resolve:g,rawNode:E,rawLocation:S,location:I,type:T,parent:v,key:x,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:()=>Oe(H)},{node:G,location:B,error:K,chain:W})}function he(de,Te,H,M,Q,z,_){de(Te,{report:$=>we(Q,z,_,$),resolve:g,rawNode:H,location:O,rawLocation:S,type:T,parent:v,key:x,parentLocations:GR(M),specVersion:o.specVersion,config:o.config,ignoreNextVisitorsOnNode:()=>{l.add(`${O.absolutePointer}${O.pointer}`)},getVisitorData:()=>Oe(Q)},HR(M),M)}function we(de,Te,H,M){const z=(M.location?Array.isArray(M.location)?M.location:[M.location]:[{...O,reportOnKey:!1}]).map(C=>({...O,reportOnKey:!1,...C})),_=M.forceSeverity||Te;_!=="off"&&o.problems.push({ruleId:M.ruleId||de,severity:_,...M,message:H?H.replace("{{message}}",M.message):M.message,suggest:M.suggest||[],location:z})}function Oe(de){return o.visitorsData[de]=o.visitorsData[de]||{},o.visitorsData[de]}}}function YR(e){return e.trim().split(/\s+/).map(t=>t.replace(/^[a-z]/,r=>r.toUpperCase())).join("")}function oa(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 QR({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,f=oa("Schema",e),y={ref:{leave(v,x,g){if(!g.location||g.node===void 0){Sr(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){A.parseRef(v.$ref).uri!==null&&v.$ref!==S.location.pointer&&(v.$ref=S.location.pointer);return}if(i&&A.isAbsoluteUrl(v.$ref))return;const O=oa(x.type.name,e);O?t?(b(O,S,x),A.replaceRef(v,S,x)):(v.$ref=b(O,S,x),h(v,g,x)):A.replaceRef(v,S,x)}},Example:{leave(v,x){if(A.isExternalValue(v)&&v.value===void 0){const g=x.resolve({$ref:v.externalValue});if(!g.location||g.node===void 0){Sr(g,x.report,x.location);return}if(i&&A.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"||!A.isMappingRef(v.defaultMapping))return;const g=x.resolve({$ref:v.defaultMapping});if(!g.location||g.node===void 0){Sr(g,x.report,x.location.child("defaultMapping"));return}v.defaultMapping=b(f,l(g),x)},DiscriminatorMapping:{leave(v,x){for(const g of Object.keys(v)){const S=v[g];if(!A.isMappingRef(S))continue;const O=x.resolve({$ref:S});if(!O.location||O.node===void 0){Sr(O,x.report,x.location.child(g));return}v[g]=b(f,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(A.makeRefId(g.location.source.absoluteRef,v.$ref),S),n.set(A.makeRefId(r.source.absoluteRef,v.$ref),S)}function b(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 w(v,x,g){if(A.isRef(v)){const S=g.resolve(v,c.absolutePointer);if((S.location&&l(S).location)?.absolutePointer===x.location.absolutePointer)return!0}return zt(v,x.node)}function E(v,x,g){const{node:S}=v,O=Z.isPlainObject(S)&&et(S.title)?S.title.trim():"",k=YR(O).replace(new RegExp(`[^${Pd}]`,"g"),"-"),G=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]&&!w(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:G,from:u.get(k),forceSeverity:o}}:{key:k}}function T(v,x,g){const S=A.pointerBaseName(v.location.pointer)||A.refBaseName(v.location.source.absoluteRef);let O=S;for(let k=2;x[O]&&!w(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===f){const{key:G,problem:B}=E(v,S,g);if(!B)return u.set(G,v.location.child("title")),G;const{name:K}=T(v,S,g);return S[K]||(g.report(B),u.set(K,v.location)),K}const{name:O,prevName:k}=T(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 Wa(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=qr(t.parsed),f=Na(u),y=r.getRulesForSpecVersion(f),h=A.normalizeTypes(r.extendTypes(n,u),r),b=Xr(y,r,"preprocessors",u),w=Xr(y,r,"decorators",u),E={problems:[],specVersion:u,config:r,refTypes:new Map,visitorsData:{}};let T=await A.resolveDocument({rootDocument:t,rootType:h.Root,externalRefResolver:i});b.length>0&&(Bt({document:t,rootType:h.Root,normalizedVisitors:Ft(b,h),resolvedRefMap:T,ctx:E}),T=await A.resolveDocument({rootDocument:t,rootType:h.Root,externalRefResolver:i}));const I=Ft([{severity:"error",ruleId:"bundler",visitor:QR({version:f,dereference:o,rootDocument:t,resolvedRefMap:T,keepUrlRefs:a,componentRenamingConflicts:c,componentNamesStrategy:l})},...w.filter(v=>v.ruleId!=="remove-unused-components")],h);if(Bt({document:t,rootType:h.Root,normalizedVisitors:I,resolvedRefMap:T,ctx:E}),s||r.getDecoratorSettings("remove-unused-components",u).severity!=="off"){const v=await A.resolveDocument({rootDocument:t,rootType:h.Root,externalRefResolver:i}),x=Ft([{severity:"error",ruleId:"remove-unused-components",visitor:f==="oas2"?sf():af()}],h);Bt({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 WR(e,t,r){const n={plugins:[],rootConfigDir:r},i={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[Ra]:n}};return Bt({document:e,rootType:dn.ConfigRoot,normalizedVisitors:VR,resolvedRefMap:t,ctx:i}),n.plugins}function JR(e,t,r,n=!1){const i={plugins:r,skipPluginEval:n},o={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[Aa]:i}};return Bt({document:e,rootType:dn.ConfigRoot,normalizedVisitors:KR,resolvedRefMap:t,ctx:o}),e.parsed??{}}async function XR(e){const{ref:t,doc:r,externalRefResolver:n=new A.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),Wa({document:o,...e,externalRefResolver:n,types:ln(qr(o.parsed))})}async function ZR(e){const{source:t,absoluteRef:r,externalRefResolver:n=new A.BaseResolver(e.config.resolve)}=e,i=A.makeDocumentFromString(t,r||"/");return Wa({document:i,...e,externalRefResolver:n,types:ln(qr(i.parsed))})}function ls(e){return!et(e)}const cn=new Map,Hi="v";let Ja=0,Vl=!1;function e$(){Z.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(Hi);if(!i)return n;const o=new URL(n.url);return o.pathname.includes("/node_modules/")||o.searchParams.has(Hi)?n:(o.searchParams.set(Hi,i),{...n,url:o.href})}})}function t$(){if(!Vl){if(Vl=!0,typeof Z.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}e$()}}function r$(e){return cn.has(e)}function n$(e){return cn.get(e)}function i$(e,t){cn.set(e,t)}function o$(){return Ja}function s$(e){const t=Z.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 a$=()=>{const e=[...cn.keys()];for(const t of e)s$(t);cn.clear(),Ja+=1,t$()};async function c$(e){const t=(void 0)(e);return t.searchParams.set(Hi,String(Ja)),import(t.href)}async function Hm({rawConfigDocument:e,configPath:t,externalRefResolver:r,customExtends:n,skipPluginEval:i}){const o=e===void 0?Vd:e.parsed;if(n!==void 0&&Z.isPlainObject(o)&&(o.extends=n),Z.isPlainObject(o)&&(o?.extends?.some(ls)||o?.scorecardClassic?.levels?.some(h=>h?.extends?.some(ls))||o?.scorecard?.levels?.some(h=>h?.extends?.some(ls))))throw new Error("Configuration format not detected in extends: values must be strings.");const s=e??{source:new A.Source(t??"",JSON.stringify(o)),parsed:o},a=await A.resolveDocument({rootDocument:s,rootType:dn.ConfigRoot,externalRefResolver:r??new A.BaseResolver(Gd(o?.resolve))});let c=[],l,u="";A.isBrowser?l=[...(o?.plugins||[]).filter(b=>!et(b)),Ul]:(u=Z.pathBrowserifyExports.dirname(t??""),c=WR(s,a,u),l=[...await Gm(c.map(b=>Kl(b)?b.absolutePath:b),u,i),Ul]);const f=JR(s,BR(a),l,i);f.apis&&!i&&(f.apis=Object.fromEntries(Object.entries(f.apis).map(([h,b])=>{const w=Vm([f,b]);return[h,{...b,...w}]})));const y=c.length?c.map(h=>Kl(h)&&h.isModule?h.rawPath:h.absolutePath&&Z.pathBrowserifyExports.relative(u,h.absolutePath)).filter(dt):void 0;return{resolvedConfig:{...f,plugins:y},resolvedRefMap:a,plugins:l}}function p$(e){for(const t of Hd)(void 0)(Z.pathBrowserifyExports.resolve(e,t))}function Kl(e){return"isModule"in e}const sa=(e,t,r)=>{if(!et(e))return e;(void 0)(Z.pathBrowserifyExports.resolve(Z.pathBrowserifyExports.dirname(t),e));try{return{absolutePath:Z.module.createRequire((typeof document>"u"?require("url").pathToFileURL(__filename).href:Dt&&Dt.tagName.toUpperCase()==="SCRIPT"&&Dt.src||new URL("replay-lint-DVAifLdU.js",document.baseURI).href)??__dirname).resolve(e,{paths:[r,(typeof document>"u"?require("url").pathToFileURL(__filename).href:Dt&&Dt.tagName.toUpperCase()==="SCRIPT"&&Dt.src||new URL("replay-lint-DVAifLdU.js",document.baseURI).href)?Z.pathBrowserifyExports.dirname((void 0)(typeof document>"u"?require("url").pathToFileURL(__filename).href:Dt&&Dt.tagName.toUpperCase()==="SCRIPT"&&Dt.src||new URL("replay-lint-DVAifLdU.js",document.baseURI).href)):__dirname]}),isModule:!0,rawPath:e}}catch{throw new Error(`Plugin "${e}" not found.`)}};async function Gm(e,t,r=!1){if(!e)return[];const n=async c=>{if(!et(c))return c;try{const l=Z.pathBrowserifyExports.isAbsolute(c)?c:sa(c,Z.pathBrowserifyExports.join(t,Fs),t).absolutePath;if(!r$(l)){const u=await c$(l),f=u.default||u,y={contentDir:t},h=Array.isArray(f)?f:[f];for(const E of h)E?.id&&Fl(E)&&Re.info(`Deprecated plugin format detected: ${E.id}
81
- `);const b=Fl(f)?f:zR(f)?await f(y):await f?.default?.(y),w=Array.isArray(b)?b:[b];b&&i$(l,w.map(E=>({...E,path:c,absolutePath:l})))}return n$(l)}catch(l){throw new Error(`Failed to load plugin "${c}": ${l.message}
82
-
83
- ${l.stack}`)}},i=new Map,o=p$(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=Z.pathBrowserifyExports.isAbsolute(l)?l:sa(l,Z.pathBrowserifyExports.join(t,Fs),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(A.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 f=>{if(!f)return;const y=f.id;if(typeof y!="string")throw new Error(Ne.red(`Plugin must define \`id\` property in ${Ne.blue(c.toString())}.`));const h=f.absolutePath??c.toString(),b=i.get(y);if(b){if(h!==b)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 w={id:y,...f.configs?{configs:f.configs}:{},...f.typeExtension?{typeExtension:f.typeExtension}:{}};if(f.rules){if(!f.rules.oas3&&!f.rules.oas2&&!f.rules.async2&&!f.rules.async3&&!f.rules.arazzo1&&!f.rules.overlay1&&!f.rules.openrpc1&&!f.rules.graphql)throw new Error(`Plugin rules must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo\`, \`overlay1\`, \`openrpc1\`, or \`graphql\` rules "${c}.`);w.rules={},f.rules.oas3&&(w.rules.oas3=ze(f.rules.oas3,y)),f.rules.oas2&&(w.rules.oas2=ze(f.rules.oas2,y)),f.rules.async2&&(w.rules.async2=ze(f.rules.async2,y)),f.rules.async3&&(w.rules.async3=ze(f.rules.async3,y)),f.rules.arazzo1&&(w.rules.arazzo1=ze(f.rules.arazzo1,y)),f.rules.overlay1&&(w.rules.overlay1=ze(f.rules.overlay1,y)),f.rules.openrpc1&&(w.rules.openrpc1=ze(f.rules.openrpc1,y)),f.rules.graphql&&(w.rules.graphql=ze(f.rules.graphql,y))}if(f.preprocessors){if(!f.preprocessors.oas3&&!f.preprocessors.oas2&&!f.preprocessors.async2&&!f.preprocessors.async3&&!f.preprocessors.arazzo1&&!f.preprocessors.overlay1&&!f.preprocessors.openrpc1)throw new Error(`Plugin \`preprocessors\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` preprocessors "${c}.`);w.preprocessors={},f.preprocessors.oas3&&(w.preprocessors.oas3=ze(f.preprocessors.oas3,y)),f.preprocessors.oas2&&(w.preprocessors.oas2=ze(f.preprocessors.oas2,y)),f.preprocessors.async2&&(w.preprocessors.async2=ze(f.preprocessors.async2,y)),f.preprocessors.async3&&(w.preprocessors.async3=ze(f.preprocessors.async3,y)),f.preprocessors.arazzo1&&(w.preprocessors.arazzo1=ze(f.preprocessors.arazzo1,y)),f.preprocessors.overlay1&&(w.preprocessors.overlay1=ze(f.preprocessors.overlay1,y)),f.preprocessors.openrpc1&&(w.preprocessors.openrpc1=ze(f.preprocessors.openrpc1,y))}if(f.decorators){if(!f.decorators.oas3&&!f.decorators.oas2&&!f.decorators.async2&&!f.decorators.async3&&!f.decorators.arazzo1&&!f.decorators.overlay1&&!f.decorators.openrpc1)throw new Error(`Plugin \`decorators\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` decorators "${c}.`);w.decorators={},f.decorators.oas3&&(w.decorators.oas3=ze(f.decorators.oas3,y)),f.decorators.oas2&&(w.decorators.oas2=ze(f.decorators.oas2,y)),f.decorators.async2&&(w.decorators.async2=ze(f.decorators.async2,y)),f.decorators.async3&&(w.decorators.async3=ze(f.decorators.async3,y)),f.decorators.arazzo1&&(w.decorators.arazzo1=ze(f.decorators.arazzo1,y)),f.decorators.overlay1&&(w.decorators.overlay1=ze(f.decorators.overlay1,y)),f.decorators.openrpc1&&(w.decorators.openrpc1=ze(f.decorators.openrpc1,y))}return f.assertions&&(w.assertions=f.assertions),{...f,...w}}))).filter(dt)}))).filter(dt).flat()}function l$(e,t){const{pluginId:r,configName:n}=UR(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 u$(e,t){const r=Object.create(null);for(const n of Object.keys(e)){const i=e[n],o=A.isAbsoluteUrl(n)?n:A.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 Ym(e,t){const r=e?A.getDir(e):A.isBrowser?"":process.cwd(),n=r?A.resolvePath(r,to):to,i=await t.resolveDocument(null,n,!0);return i instanceof Error||!i.parsed?{}:u$(i.parsed||{},r)}async function d$(e={}){const{configPath:t=void 0,customExtends:r,externalRefResolver:n,skipPluginEval:i}=e,o=n??new A.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 Hm({rawConfigDocument:s?Qm(s):void 0,customExtends:r,configPath:t,externalRefResolver:n,skipPluginEval:i}),u=await Ym(t,o);return new fn(a,{configPath:t,document:s,resolvedRefMap:c,plugins:l,ignore:u})}function f$(e){}async function m$(e,{configPath:t,externalRefResolver:r,ignore:n}={}){const i=typeof e=="string"?e:"",o=A.makeDocumentFromString(i,t??"");typeof e!="string"&&e&&(o.parsed=e);const{resolvedConfig:s,resolvedRefMap:a,plugins:c}=await Hm({rawConfigDocument:Qm(o),configPath:t,externalRefResolver:r});return new fn(s,{configPath:t,document:o,resolvedRefMap:a,plugins:c,ignore:n})}function Qm(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 us={},wt={},ds={},Hl;function Co(){return Hl||(Hl=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,f={key:c,value:l,startPosition:c.startPosition,endPosition:u,kind:t.MAPPING,parent:null,errors:[]};return f}e.newMapping=r;function n(c,l,u,f){return{errors:[],referencesAnchor:c,value:f,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})(ds)),ds}var Lt={},Gl;function jr(){if(Gl)return Lt;Gl=1,Object.defineProperty(Lt,"__esModule",{value:!0});function e(s){return typeof s>"u"||s===null}Lt.isNothing=e;function t(s){return typeof s=="object"&&s!==null}Lt.isObject=t;function r(s){return Array.isArray(s)?s:e(s)?[]:[s]}Lt.toArray=r;function n(s,a){var c,l,u,f;if(a)for(f=Object.keys(a),c=0,l=f.length;c<l;c+=1)u=f[c],s[u]=a[u];return s}Lt.extend=n;function i(s,a){var c="",l;for(l=0;l<a;l+=1)c+=s;return c}Lt.repeat=i;function o(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}return Lt.isNegativeZero=o,Lt}var fs,Yl;function xn(){if(Yl)return fs;Yl=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 fs=e,fs}var ms,Ql;function h$(){if(Ql)return ms;Ql=1;var e=jr(),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
68
+ }`)}function Ie(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function Yi(e){return Ie(" ",e.replace(/\n/g,`
69
+ `))}function ns(e){var t;return(t=e?.some(r=>r.includes(`
70
+ `)))!==null&&t!==void 0?t:!1}function Ws(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=>Ws(r,t));case exports.Kind.OBJECT:return Ca(e.fields,r=>r.name.value,r=>Ws(r.value,t));case exports.Kind.VARIABLE:return t?.[e.name.value]}}function It(e){if(e!=null||Ue(!1,"Must provide name."),typeof e=="string"||Ue(!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(!_f(e.charCodeAt(t)))throw new ie(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!If(e.charCodeAt(0)))throw new ie(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function VI(e){if(e==="true"||e==="false"||e==="null")throw new ie(`Enum values cannot be named: ${e}`);return It(e)}function Ua(e){return Zt(e)||Ke(e)||He(e)||ft(e)||mt(e)||tt(e)||at(e)||Fe(e)}function Zt(e){return Ot(e,Jt)}function Ke(e){return Ot(e,Vt)}function He(e){return Ot(e,Js)}function ft(e){return Ot(e,Xs)}function mt(e){return Ot(e,sn)}function tt(e){return Ot(e,Zs)}function at(e){return Ot(e,ct)}function Fe(e){return Ot(e,Ae)}function En(e){return Zt(e)||mt(e)||tt(e)||Fa(e)&&En(e.ofType)}function Nf(e){return Zt(e)||Ke(e)||He(e)||ft(e)||mt(e)||Fa(e)&&Nf(e.ofType)}function Ar(e){return Zt(e)||mt(e)}function on(e){return Ke(e)||He(e)||ft(e)}function cr(e){return He(e)||ft(e)}class ct{constructor(t){Ua(t)||Ue(!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){kf(t)||Ue(!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 Fa(e){return at(e)||Fe(e)}function kf(e){return Ua(e)&&!Fe(e)}function KI(e){if(e)return Fe(e)?e.ofType:e}function HI(e){return Zt(e)||Ke(e)||He(e)||ft(e)||mt(e)||tt(e)}function dr(e){if(e){let t=e;for(;Fa(t);)t=t.ofType;return t}}function Df(e){return typeof e=="function"?e():e}function qf(e){return typeof e=="function"?e():e}class Jt{constructor(t){var r,n,i,o;const s=(r=t.parseValue)!==null&&r!==void 0?r:wl;this.name=It(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(n=t.serialize)!==null&&n!==void 0?n:wl,this.parseValue=s,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(a,c)=>s(Ws(a,c)),this.extensions=ht(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(o=t.extensionASTNodes)!==null&&o!==void 0?o:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||Ue(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${me(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||Ue(!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"||Ue(!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 Vt{constructor(t){var r;this.name=It(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=ht(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=()=>Cf(t),this._interfaces=()=>jf(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||Ue(!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:Lf(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function jf(e){var t;const r=Df((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(r)||Ue(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),r}function Cf(e){const t=qf(e.fields);return Pr(t)||Ue(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),At(t,(r,n)=>{var i;Pr(r)||Ue(!1,`${e.name}.${n} field config must be an object.`),r.resolve==null||typeof r.resolve=="function"||Ue(!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 Pr(o)||Ue(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:It(n),description:r.description,type:r.type,args:Mf(o),resolve:r.resolve,subscribe:r.subscribe,deprecationReason:r.deprecationReason,extensions:ht(r.extensions),astNode:r.astNode}})}function Mf(e){return Object.entries(e).map(([t,r])=>({name:It(t),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:ht(r.extensions),astNode:r.astNode}))}function Pr(e){return lr(e)&&!Array.isArray(e)}function Lf(e){return At(e,t=>({description:t.description,type:t.type,args:Uf(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function Uf(e){return Ca(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function xn(e){return Fe(e.type)&&e.defaultValue===void 0}class Js{constructor(t){var r;this.name=It(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=ht(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=Cf.bind(void 0,t),this._interfaces=jf.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||Ue(!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:Lf(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Xs{constructor(t){var r;this.name=It(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=ht(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._types=GI.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||Ue(!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 GI(e){const t=Df(e.types);return Array.isArray(t)||Ue(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class sn{constructor(t){var r;this.name=It(t.name),this.description=t.description,this.extensions=ht(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._values=typeof t.values=="function"?t.values:El(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=El(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=ur(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}.`+Li(this,n))}const r=this.getValue(t);if(r==null)throw new ie(`Value "${t}" does not exist in "${this.name}" enum.`+Li(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}.`+Li(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.`+Li(this,i),{nodes:t})}return n.value}toConfig(){const t=Ca(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 Li(e,t){const r=e.getValues().map(i=>i.name),n=mr(t,r);return Wt("the enum value",n)}function El(e,t){return Pr(t)||Ue(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([r,n])=>(Pr(n)||Ue(!1,`${e}.${r} must refer to an object with a "value" key representing an internal value but got: ${me(n)}.`),{name:VI(r),description:n.description,value:n.value!==void 0?n.value:r,deprecationReason:n.deprecationReason,extensions:ht(n.extensions),astNode:n.astNode}))}class Zs{constructor(t){var r,n;this.name=It(t.name),this.description=t.description,this.extensions=ht(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=YI.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){const t=At(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 YI(e){const t=qf(e.fields);return Pr(t)||Ue(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),At(t,(r,n)=>(!("resolve"in r)||Ue(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:It(n),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:ht(r.extensions),astNode:r.astNode}))}function Ff(e){return Fe(e.type)&&e.defaultValue===void 0}function ea(e,t){return e===t?!0:Fe(e)&&Fe(t)||at(e)&&at(t)?ea(e.ofType,t.ofType):!1}function Or(e,t,r){return t===r?!0:Fe(r)?Fe(t)?Or(e,t.ofType,r.ofType):!1:Fe(t)?Or(e,t.ofType,r):at(r)?at(t)?Or(e,t.ofType,r.ofType):!1:at(t)?!1:cr(r)&&(He(t)||Ke(t))&&e.isSubType(r,t)}function xl(e,t,r){return t===r?!0:cr(t)?cr(r)?e.getPossibleTypes(t).some(n=>e.isSubType(r,n)):e.isSubType(t,r):cr(r)?e.isSubType(r,t):!1}const is=2147483647,os=-2147483648,QI=new Jt({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=Tn(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>is||r<os)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>is||e<os)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>is||t<os)throw new ie(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),WI=new Jt({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=Tn(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 Jt({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=Tn(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 Jt({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=Tn(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}}),Bf=new Jt({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=Tn(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}}),Ba=Object.freeze([Ve,QI,WI,st,Bf]);function JI(e){return Ba.some(({name:t})=>e.name===t)}function Tn(e){if(lr(e)){if(typeof e.valueOf=="function"){const t=e.valueOf();if(!lr(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}function zf(e){return Ot(e,Ut)}class Ut{constructor(t){var r,n,i;this.name=It(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(r=t.isRepeatable)!==null&&r!==void 0?r:!1,this.deprecationReason=t.deprecationReason,this.extensions=ht(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],Array.isArray(t.locations)||Ue(!1,`@${t.name} locations must be an Array.`);const o=(i=t.args)!==null&&i!==void 0?i:{};lr(o)&&!Array.isArray(o)||Ue(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=Mf(o)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:Uf(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 Vf=new Ut({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."}}}),Kf=new Ut({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."}}}),XI="No longer supported",za=new Ut({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:XI}}}),Hf=new Ut({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."}}}),Gf=new Ut({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[exports.DirectiveLocation.INPUT_OBJECT],args:{}}),Cr=Object.freeze([Vf,Kf,za,Hf,Gf]);function ZI(e){return typeof e=="object"&&typeof e?.[Symbol.iterator]=="function"}function Yr(e,t){if(Fe(t)){const r=Yr(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(ZI(e)){const n=[];for(const i of e){const o=Yr(i,r);o!=null&&n.push(o)}return{kind:exports.Kind.LIST,values:n}}return Yr(e,r)}if(tt(t)){if(!lr(e))return null;const r=[];for(const n of Object.values(t.getFields())){const i=Yr(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(Ar(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 Tl.test(n)?{kind:exports.Kind.INT,value:n}:{kind:exports.Kind.FLOAT,value:n}}if(typeof r=="string")return mt(t)?{kind:exports.Kind.ENUM,value:r}:t===Bf&&Tl.test(r)?{kind:exports.Kind.INT,value:r}:{kind:exports.Kind.STRING,value:r};throw new TypeError(`Cannot convert value to AST: ${me(r)}.`)}xt(!1,"Unexpected input type: "+me(t))}const Tl=/^-?(?:0|[1-9][0-9]*)$/,Va=new Vt({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(Rt))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Ae(Rt),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Rt,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Rt,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Ae(new ct(new Ae(Yf))),args:{includeDeprecated:{type:new Ae(st),defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.getDirectives():e.getDirectives().filter(r=>r.deprecationReason==null)}})}),Yf=new Vt({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(Qf))),resolve:e=>e.locations},args:{type:new Ae(new ct(new Ae(Mo))),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}})}),Qf=new sn({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."}}}),Rt=new Vt({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(Xf),resolve(e){if(Zt(e))return Qe.SCALAR;if(Ke(e))return Qe.OBJECT;if(He(e))return Qe.INTERFACE;if(ft(e))return Qe.UNION;if(mt(e))return Qe.ENUM;if(tt(e))return Qe.INPUT_OBJECT;if(at(e))return Qe.LIST;if(Fe(e))return Qe.NON_NULL;xt(!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(Wf)),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(Rt)),resolve(e){if(Ke(e)||He(e))return e.getInterfaces()}},possibleTypes:{type:new ct(new Ae(Rt)),resolve(e,t,r,{schema:n}){if(cr(e))return n.getPossibleTypes(e)}},enumValues:{type:new ct(new Ae(Jf)),args:{includeDeprecated:{type:st,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(mt(e)){const r=e.getValues();return t?r:r.filter(n=>n.deprecationReason==null)}}},inputFields:{type:new ct(new Ae(Mo)),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:Rt,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:st,resolve:e=>{if(tt(e))return e.isOneOf}}})}),Wf=new Vt({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(Mo))),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(Rt),resolve:e=>e.type},isDeprecated:{type:new Ae(st),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ve,resolve:e=>e.deprecationReason}})}),Mo=new Vt({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(Rt),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=Yr(r,t);return n?Je(n):null}},isDeprecated:{type:new Ae(st),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ve,resolve:e=>e.deprecationReason}})}),Jf=new Vt({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 Xf=new sn({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(Va);new Ae(Ve);new Ae(Ve);const Ka=Object.freeze([Va,Yf,Qf,Rt,Wf,Mo,Jf,Xf]);function Zf(e){return Ka.some(({name:t})=>e.name===t)}function e_(e){return Ot(e,em)}function t_(e){if(!e_(e))throw new Error(`Expected ${me(e)} to be a GraphQL schema.`);return e}class em{constructor(t){var r,n;this.__validationErrors=t.assumeValid===!0?[]:void 0,lr(t)||Ue(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||Ue(!1,`"types" must be Array if provided but got: ${me(t.types)}.`),!t.directives||Array.isArray(t.directives)||Ue(!1,`"directives" must be Array if provided but got: ${me(t.directives)}.`),this.description=t.description,this.extensions=ht(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:Cr;const i=new Set(t.types);if(t.types!=null)for(const o of t.types)i.delete(o),Et(o,i);this._queryType!=null&&Et(this._queryType,i),this._mutationType!=null&&Et(this._mutationType,i),this._subscriptionType!=null&&Et(this._subscriptionType,i);for(const o of this._directives)if(zf(o))for(const s of o.args)Et(s.type,i);Et(Va,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||Ue(!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 ft(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),ft(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 Et(e,t){const r=dr(e);if(!t.has(r)){if(t.add(r),ft(r))for(const n of r.getTypes())Et(n,t);else if(Ke(r)||He(r)){for(const n of r.getInterfaces())Et(n,t);for(const n of Object.values(r.getFields())){Et(n.type,t);for(const i of n.args)Et(i.type,t)}}else if(tt(r))for(const n of Object.values(r.getFields()))Et(n.type,t)}return t}function r_(e){if(t_(e),e.__validationErrors)return e.__validationErrors;const t=new n_(e);i_(t),o_(t),s_(t);const r=t.getErrors();return e.__validationErrors=r,r}class n_{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 i_(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=ss(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=ss(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=ss(t,exports.OperationTypeNode.SUBSCRIPTION))!==null&&a!==void 0?a:s.astNode)}}function ss(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 o_(e){for(const r of e.schema.getDirectives()){if(!zf(r)){e.reportError(`Expected directive but got: ${me(r)}.`,r?.astNode);continue}fr(e,r),r.locations.length===0&&e.reportError(`Directive @${r.name} must include 1 or more locations.`,r.astNode);for(const n of r.args)if(fr(e,n),En(n.type)||e.reportError(`The type of @${r.name}(${n.name}:) must be Input Type but got: ${me(n.type)}.`,n.astNode),xn(n)&&n.deprecationReason!=null){var t;e.reportError(`Required argument @${r.name}(${n.name}:) cannot be deprecated.`,[Ha(n.astNode),(t=n.astNode)===null||t===void 0?void 0:t.type])}}}function fr(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function s_(e){const t=f_(e),r=e.schema.getTypeMap();for(const n of Object.values(r)){if(!HI(n)){e.reportError(`Expected GraphQL named type but got: ${me(n)}.`,n.astNode);continue}Zf(n)||fr(e,n),Ke(n)||He(n)?(Pl(e,n),Ol(e,n)):ft(n)?p_(e,n):mt(n)?l_(e,n):tt(n)&&(u_(e,n),t(n))}}function Pl(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(fr(e,s),!Nf(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(fr(e,a),!En(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(xn(a)&&a.deprecationReason!=null){var o;e.reportError(`Required argument ${t.name}.${s.name}(${c}:) cannot be deprecated.`,[Ha(a.astNode),(o=a.astNode)===null||o===void 0?void 0:o.type])}}}}function Ol(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)}.`,Xr(t,n));continue}if(t===n){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Xr(t,n));continue}if(r[n.name]){e.reportError(`Type ${t.name} can only implement ${n.name} once.`,Xr(t,n));continue}r[n.name]=!0,c_(e,t,n),a_(e,t,n)}}function a_(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(!Or(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 f of c.args){const h=f.name,y=u.args.find(b=>b.name===h);if(!y){e.reportError(`Interface field argument ${r.name}.${l}(${h}:) expected but ${t.name}.${l} does not provide it.`,[f.astNode,u.astNode]);continue}if(!ea(f.type,y.type)){var s,a;e.reportError(`Interface field argument ${r.name}.${l}(${h}:) expects type ${me(f.type)} but ${t.name}.${l}(${h}:) is type ${me(y.type)}.`,[(s=f.astNode)===null||s===void 0?void 0:s.type,(a=y.astNode)===null||a===void 0?void 0:a.type])}}for(const f of u.args){const h=f.name;!c.args.find(b=>b.name===h)&&xn(f)&&e.reportError(`Object field ${t.name}.${l} includes required argument ${h} that is missing from the Interface field ${r.name}.${l}.`,[f.astNode,c.astNode])}}}function c_(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}.`,[...Xr(r,i),...Xr(t,r)])}function p_(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.`,Il(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)}.`,Il(t,String(i)))}}function l_(e,t){const r=t.getValues();r.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const n of r)fr(e,n)}function u_(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(fr(e,o),!En(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(Ff(o)&&o.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[Ha(o.astNode),(i=o.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&d_(t,o,e)}}function d_(e,t,r){if(Fe(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 f_(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(Fe(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),f=u.map(h=>h.name).join(".");e.reportError(`Cannot reference Input Object "${c.name}" within itself through a series of non-null fields: "${f}".`,u.map(h=>h.astNode))}r.pop()}n[o.name]=void 0}}function Xr(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 Il(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 Ha(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(r=>r.name.value===za.name)}function kt(e,t){switch(t.kind){case exports.Kind.LIST_TYPE:{const r=kt(e,t.type);return r&&new ct(r)}case exports.Kind.NON_NULL_TYPE:{const r=kt(e,t.type);return r&&new Ae(r)}case exports.Kind.NAMED_TYPE:return e.getType(t.name.value)}}function m_(e){return e.kind===exports.Kind.OPERATION_DEFINITION||e.kind===exports.Kind.FRAGMENT_DEFINITION}function h_(e){return e.kind===exports.Kind.SCHEMA_DEFINITION||Pn(e)||e.kind===exports.Kind.DIRECTIVE_DEFINITION}function Pn(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 y_(e){return e.kind===exports.Kind.SCHEMA_EXTENSION||e.kind===exports.Kind.DIRECTIVE_EXTENSION||Ga(e)}function Ga(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 g_(e){return{Document(t){for(const r of t.definitions)if(!m_(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 v_(e){return{Field(t){const r=e.getParentType();if(r&&!e.getFieldDef()){const i=e.getSchema(),o=t.name.value;let s=Wt("to use an inline fragment on",b_(i,r,o));s===""&&(s=Wt(w_(r,o))),e.reportError(new ie(`Cannot query field "${o}" on type "${r.name}".`+s,{nodes:t}))}}}}function b_(e,t,r){if(!cr(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:Ma(s.name,a.name)}).map(s=>s.name)}function w_(e,t){if(Ke(e)||He(e)){const r=Object.keys(e.getFields());return mr(t,r)}return[]}function S_(e){return{InlineFragment(t){const r=t.typeCondition;if(r){const n=kt(e.getSchema(),r);if(n&&!on(n)){const i=Je(r);e.reportError(new ie(`Fragment cannot condition on non composite type "${i}".`,{nodes:r}))}}},FragmentDefinition(t){const r=kt(e.getSchema(),t.typeCondition);if(r&&!on(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 E_(e){return{...tm(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=mr(o,s);e.reportError(new ie(`Unknown argument "${o}" on field "${i.name}.${n.name}".`+Wt(a),{nodes:t}))}}}}function tm(e){const t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():Cr;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 f=mr(u,c);e.reportError(new ie(`Unknown argument "${u}" on directive "@${a}".`+Wt(f),{nodes:l}))}}return!1}}}function rm(e){const t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():Cr;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,f=t[u];if(!f){e.reportError(new ie(`Unknown directive "@${u}".`,{nodes:o}));return}const h=x_(l);h&&!f.includes(h)&&e.reportError(new ie(`Directive "@${u}" may not be used on ${h}.`,{nodes:o}))}}}function x_(e){const t=e[e.length-1];switch("kind"in t||xt(!1),t.kind){case exports.Kind.OPERATION_DEFINITION:return T_(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||xt(!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:xt(!1,"Unexpected kind: "+me(t.kind))}}function T_(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 P_(e){return{FragmentSpread(t){const r=t.name.value;e.getFragment(r)||e.reportError(new ie(`Unknown fragment "${r}".`,{nodes:t.name}))}}}function nm(e){const t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);for(const o of e.getDocument().definitions)Pn(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 f;const h=(f=l[2])!==null&&f!==void 0?f:a,y=h!=null&&O_(h);if(y&&_l.includes(u))return;const b=mr(u,y?_l.concat(i):i);e.reportError(new ie(`Unknown type "${u}".`+Wt(b),{nodes:o}))}}}}const _l=[...Ba,...Ka].map(e=>e.name);function O_(e){return"kind"in e&&(h_(e)||y_(e))}function I_(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 __(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 A_=3;function R_(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>=A_))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 $_(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 f=e.getFragment(l);f&&i(f)}else{const f=r.slice(u),h=f.slice(0,-1).map(y=>'"'+y.name.value+'"').join(", ");e.reportError(new ie(`Cannot spread fragment "${l}" within itself`+(h!==""?` via ${h}.`:"."),{nodes:f}))}r.pop()}n[s]=void 0}}}function N_(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 k_(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 D_(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 Ya(e){switch(e.kind){case exports.Kind.OBJECT:return{...e,fields:q_(e.fields)};case exports.Kind.LIST:return{...e,values:e.values.map(Ya)};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 q_(e){return e.map(t=>({...t,value:Ya(t.value)})).sort((t,r)=>Ma(t.name.value,r.name.value))}function im(e){return Array.isArray(e)?e.map(([t,r])=>`subfields "${t}" conflict because `+im(r)).join(" and "):e}function j_(e){const t=new am,r=new B_,n=new Map;return{SelectionSet(i){const o=C_(e,n,t,r,e.getParentType(),i);for(const[[s,a],c,l]of o){const u=im(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 C_(e,t,r,n,i,o){const s=[],[a,c]=uo(e,t,i,o);if(L_(e,s,t,r,n,a),c.length!==0)for(let l=0;l<c.length;l++){po(e,s,t,r,n,!1,a,c[l]);for(let u=l+1;u<c.length;u++)lo(e,s,t,r,n,!1,c[l],c[u])}return s}function po(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]=ra(e,r,c);if(s!==l){Qa(e,t,r,n,i,o,s,l);for(const f of u)po(e,t,r,n,i,o,s,f)}}function lo(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,f]=ra(e,r,c),[h,y]=ra(e,r,l);Qa(e,t,r,n,i,o,u,h);for(const b of y)lo(e,t,r,n,i,o,s,b);for(const b of f)lo(e,t,r,n,i,o,b,a)}function M_(e,t,r,n,i,o,s,a,c){const l=[],[u,f]=uo(e,t,o,s),[h,y]=uo(e,t,a,c);Qa(e,l,t,r,n,i,u,h);for(const b of y)po(e,l,t,r,n,i,u,b);for(const b of f)po(e,l,t,r,n,i,h,b);for(const b of f)for(const w of y)lo(e,l,t,r,n,i,b,w);return l}function L_(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=om(e,r,n,i,!1,s,a[c],a[l]);u&&t.push(u)}}function Qa(e,t,r,n,i,o,s,a){for(const[c,l]of Object.entries(s)){const u=a[c];if(u)for(const f of l)for(const h of u){const y=om(e,r,n,i,o,c,f,h);y&&t.push(y)}}}function om(e,t,r,n,i,o,s,a){const[c,l,u]=s,[f,h,y]=a,b=i||c!==f&&Ke(c)&&Ke(f);if(!b){const v=l.name.value,P=h.name.value;if(v!==P)return[[o,`"${v}" and "${P}" are different fields`],[l],[h]];if(!U_(l,h))return[[o,"they have differing arguments"],[l],[h]]}const w=u?.type,x=y?.type;if(w&&x&&ta(w,x))return[[o,`they return conflicting types "${me(w)}" and "${me(x)}"`],[l],[h]];const T=l.selectionSet,E=h.selectionSet;if(T&&E){const v=M_(e,t,r,n,b,dr(w),T,dr(x),E);return F_(v,o,l,h)}}function U_(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:Al(s)===Al(a)})}function Al(e){return Je(Ya(e))}function ta(e,t){return at(e)?at(t)?ta(e.ofType,t.ofType):!0:at(t)?!0:Fe(e)?Fe(t)?ta(e.ofType,t.ofType):!0:Fe(t)?!0:Ar(e)||Ar(t)?e!==t:!1}function uo(e,t,r,n){const i=t.get(n);if(i)return i;const o=Object.create(null),s=Object.create(null);sm(e,r,n,o,s);const a=[o,Object.keys(s)];return t.set(n,a),a}function ra(e,t,r){const n=t.get(r.selectionSet);if(n)return n;const i=kt(e.getSchema(),r.typeCondition);return uo(e,t,i,r.selectionSet)}function sm(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?kt(e.getSchema(),s):t;sm(e,a,o.selectionSet,n,i);break}}}function F_(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 am{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 B_{constructor(){this._orderedPairSet=new am}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 z_(e){return{InlineFragment(t){const r=e.getType(),n=e.getParentType();if(on(r)&&on(n)&&!xl(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=V_(e,r),i=e.getParentType();if(n&&i&&!xl(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 V_(e,t){const r=e.getFragment(t);if(r){const n=kt(e.getSchema(),r.typeCondition);if(on(n))return n}}function K_(e){const t=e.getSchema(),r=Object.create(null);for(const i of e.getDocument().definitions)Pn(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=H_[s.kind]:a&&(c=G_(a)),c){if(c!==i.kind){const l=Y_(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=mr(o,l);e.reportError(new ie(`Cannot extend type "${o}" because it is not defined.`+Wt(u),{nodes:i.name}))}}}const H_={[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 G_(e){if(Zt(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(ft(e))return exports.Kind.UNION_TYPE_EXTENSION;if(mt(e))return exports.Kind.ENUM_TYPE_EXTENSION;if(tt(e))return exports.Kind.INPUT_OBJECT_TYPE_EXTENSION;xt(!1,"Unexpected type: "+me(e))}function Y_(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:xt(!1,"Unexpected kind: "+me(e))}}function Q_(e){return{...cm(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)&&xn(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 cm(e){var t;const r=Object.create(null),n=e.getSchema(),i=(t=n?.getDirectives())!==null&&t!==void 0?t:Cr;for(const a of i)r[a.name]=ur(a.args.filter(xn),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]=ur(c.filter(W_),l=>l.name.value)}return{Directive:{leave(a){const c=a.name.value,l=r[c];if(l){var u;const f=(u=a.arguments)!==null&&u!==void 0?u:[],h=new Set(f.map(y=>y.name.value));for(const[y,b]of Object.entries(l))if(!h.has(y)){const w=Ua(b.type)?me(b.type):Je(b.type);e.reportError(new ie(`Directive "@${c}" argument "${y}" of type "${w}" is required, but it was not provided.`,{nodes:a}))}}}}}}function W_(e){return e.type.kind===exports.Kind.NON_NULL_TYPE&&e.defaultValue==null}function J_(e){return{Field(t){const r=e.getType(),n=t.selectionSet;if(r)if(Ar(dr(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 sr(e,t,r){if(e){if(e.kind===exports.Kind.VARIABLE){const n=e.name.value;if(r==null||r[n]===void 0||!pm(r,n))return;const i=r[n];return i===null&&Fe(t)?void 0:i}if(Fe(t))return e.kind===exports.Kind.NULL?void 0:sr(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(Rl(s,r)){if(Fe(n))return;o.push(null)}else{const a=sr(s,n,r);if(a===void 0)return;o.push(a)}return o}const i=sr(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=ur(e.fields,o=>o.name.value);for(const o of Object.values(t.getFields())){const s=i[o.name];if(!s||Rl(s.value,r)){if(o.defaultValue!==void 0)n[o.name]=o.defaultValue;else if(Fe(o.type))return;continue}const a=sr(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(Ar(t)){let n;try{n=t.parseLiteral(e,r)}catch{return}return n===void 0?void 0:n}xt(!1,"Unexpected input type: "+me(t))}}function Rl(e,t){return e.kind===exports.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0||!pm(t,e.name.value))}function pm(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function X_(e,t,r){var n;const i=Object.create(null),o=(n=t.arguments)!==null&&n!==void 0?n:[],s=ur(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(Fe(l))throw new ie(`Argument "${c}" of required type "${me(l)}" was not provided.`,{nodes:t});continue}const f=u.value;let h=f.kind===exports.Kind.NULL;if(f.kind===exports.Kind.VARIABLE){const b=f.name.value;if(r==null||!Z_(r,b)){if(a.defaultValue!==void 0)i[c]=a.defaultValue;else if(Fe(l))throw new ie(`Argument "${c}" of required type "${me(l)}" was provided the variable "$${b}" which was not provided a runtime value.`,{nodes:f});continue}h=r[b]==null}if(h&&Fe(l))throw new ie(`Argument "${c}" of non-null type "${me(l)}" must not be null.`,{nodes:f});const y=sr(f,l,r);if(y===void 0)throw new ie(`Argument "${c}" has invalid value ${Je(f)}.`,{nodes:f});i[c]=y}return{...i}}function an(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 X_(e,i,r)}function Z_(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function eA(e,t,r,n,i){const o=new Map;return na(e,t,r,n,i,o,new Set),o}function na(e,t,r,n,i,o,s){for(const a of i.selections)switch(a.kind){case exports.Kind.FIELD:{if(!as(r,a))continue;const c=tA(a),l=o.get(c);l!==void 0?l.push(a):o.set(c,[a]);break}case exports.Kind.INLINE_FRAGMENT:{if(!as(r,a)||!$l(e,a,n))continue;na(e,t,r,n,a.selectionSet,o,s);break}case exports.Kind.FRAGMENT_SPREAD:{const c=a.name.value;if(s.has(c)||!as(r,a))continue;s.add(c);const l=t[c];if(!l||!$l(e,l,n))continue;na(e,t,r,n,l.selectionSet,o,s);break}}}function as(e,t){const r=an(Kf,t,e);if(r?.if===!0)return!1;const n=an(Vf,t,e);return n?.if!==!1}function $l(e,t,r){const n=t.typeCondition;if(!n)return!0;const i=kt(e,n);return i===r?!0:cr(i)?e.isSubType(i,r):!1}function tA(e){return e.alias?e.alias.value:e.name.value}function rA(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=eA(r,a,o,n,t.selectionSet);if(c.size>1){const f=[...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:f}))}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 Wa(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 nA(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=Wa(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 lm(e){return{Field:t,Directive:t};function t(r){var n;const i=(n=r.arguments)!==null&&n!==void 0?n:[],o=Wa(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 iA(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 um(e){const t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():Cr;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(Pn(c)||Ga(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 f=u.name.value;t[f]&&(l[f]?e.reportError(new ie(`The directive "@${f}" can only be used once at this location.`,{nodes:[l[f],u]})):l[f]=u)}}}}function oA(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 f=u.name.value,h=r[a];mt(h)&&h.getValue(f)?e.reportError(new ie(`Enum value "${a}.${f}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:u.name})):l[f]?e.reportError(new ie(`Enum value "${a}.${f}" can only be defined once.`,{nodes:[l[f],u.name]})):l[f]=u.name}return!1}}function sA(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 f=u.name.value;aA(r[a],f)?e.reportError(new ie(`Field "${a}.${f}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:u.name})):l[f]?e.reportError(new ie(`Field "${a}.${f}" can only be defined once.`,{nodes:[l[f],u.name]})):l[f]=u.name}return!1}}function aA(e,t){return Ke(e)||He(e)||tt(e)?e.getFields()[t]!=null:!1}function cA(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 dm(e){const t=[];let r=Object.create(null);return{ObjectValue:{enter(){t.push(r),r=Object.create(null)},leave(){const n=t.pop();n||xt(!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 pA(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 lA(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 uA(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 dA(e){return{OperationDefinition(t){var r;const n=(r=t.variableDefinitions)!==null&&r!==void 0?r:[],i=Wa(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 fA(e){return{ListValue(t){const r=KI(e.getParentInputType());if(!at(r))return nr(e,t),!1},ObjectValue(t){const r=dr(e.getInputType());if(!tt(r))return nr(e,t),!1;const n=ur(t.fields,i=>i.name.value);for(const i of Object.values(r.getFields()))if(!n[i.name]&&Ff(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&&mA(e,t,r,n)},ObjectField(t){const r=dr(e.getParentInputType());if(!e.getInputType()&&tt(r)){const i=mr(t.name.value,Object.keys(r.getFields()));e.reportError(new ie(`Field "${t.name.value}" is not defined by type "${r.name}".`+Wt(i),{nodes:t}))}},NullValue(t){const r=e.getInputType();Fe(r)&&e.reportError(new ie(`Expected value of type "${me(r)}", found ${Je(t)}.`,{nodes:t}))},EnumValue:t=>nr(e,t),IntValue:t=>nr(e,t),FloatValue:t=>nr(e,t),StringValue:t=>nr(e,t),BooleanValue:t=>nr(e,t)}}function nr(e,t){const r=e.getInputType();if(!r)return;const n=dr(r);if(!Ar(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 mA(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 hA(e){return{VariableDefinition(t){const r=kt(e.getSchema(),t.type);if(r!==void 0&&!En(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 yA(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(),f=kt(u,l.type);if(f&&!gA(u,f,l.defaultValue,o,s)){const h=me(f),y=me(o);e.reportError(new ie(`Variable "$${c}" of type "${h}" used in position expecting type "${y}".`,{nodes:[l,i]}))}tt(a)&&a.isOneOf&&kf(f)&&e.reportError(new ie(`Variable "$${c}" is of type "${f}" 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 gA(e,t,r,n,i){if(Fe(n)&&!Fe(t)){if(!(r!=null&&r.kind!==exports.Kind.NULL)&&!(i!==void 0))return!1;const a=n.ofType;return Or(e,t,a)}return Or(e,t,n)}const vA=Object.freeze([R_]);Object.freeze([g_,pA,I_,rA,nm,S_,hA,J_,v_,cA,P_,k_,z_,$_,dA,N_,D_,rm,um,E_,lm,fA,Q_,yA,j_,dm,...vA]);const bA=Object.freeze([__,lA,uA,oA,sA,nA,iA,nm,rm,um,K_,tm,lm,dm,cm]);class wA{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 SA extends wA{constructor(t,r,n){super(t,n),this._schema=r}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}At(ja,e=>e.filter(t=>t!=="description"));function EA(e,t,r=bA){const n=[],i=new SA(e,t,s=>{n.push(s)}),o=r.map(s=>s(i));return La(e,Rf(o)),n}function xA(e){const t=EA(e);if(t.length!==0)throw new Error(t.map(r=>r.message).join(`
73
+
74
+ `))}function TA(e,t,r){var n,i,o,s;const a=[],c=Object.create(null),l=Object.create(null),u=[];let f;const h=[];for(const $ of t.definitions)if($.kind===exports.Kind.SCHEMA_DEFINITION)f=$;else if($.kind===exports.Kind.SCHEMA_EXTENSION)h.push($);else if(Pn($))a.push($);else if(Ga($)){const C=$.name.value,V=c[C];c[C]=V?V.concat([$]):[$]}else if($.kind===exports.Kind.DIRECTIVE_DEFINITION)u.push($);else if($.kind===exports.Kind.DIRECTIVE_EXTENSION){const C=$.name.value,V=l[C];l[C]=V?V.concat([$]):[$]}if(Object.keys(c).length===0&&a.length===0&&Object.keys(l).length===0&&u.length===0&&h.length===0&&f==null)return e;const y=Object.create(null);for(const $ of e.types)y[$.name]=g($);for(const $ of a){var b;const C=$.name.value;y[C]=(b=Nl[C])!==null&&b!==void 0?b:j($)}const w=Object.create(null);for(const $ of e.directives)w[$.name]=he($);const x={query:e.query&&v(e.query),mutation:e.mutation&&v(e.mutation),subscription:e.subscription&&v(e.subscription),...f&&Y([f]),...Y(h)},T=Object.values(w);return{description:(n=f)===null||n===void 0||(i=n.description)===null||i===void 0?void 0:i.value,...x,types:Object.values(y),directives:[...T.map(P),...u.map(de)],extensions:Object.create(null),astNode:(o=f)!==null&&o!==void 0?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(h),assumeValid:(s=r?.assumeValid)!==null&&s!==void 0?s:!1};function E($){return at($)?new ct(E($.ofType)):Fe($)?new Ae(E($.ofType)):v($)}function v($){return y[$.name]}function P($){const C=$.toConfig();return new Ut({...C,args:At(C.args,U)})}function g($){if(Zf($)||JI($))return $;if(Zt($))return q($);if(Ke($))return G($);if(He($))return B($);if(ft($))return H($);if(mt($))return I($);if(tt($))return S($);xt(!1,"Unexpected type: "+me($))}function S($){var C;const V=$.toConfig(),J=(C=c[V.name])!==null&&C!==void 0?C:[];return new Zs({...V,fields:()=>({...At(V.fields,ae=>({...ae,type:E(ae.type)})),...M(J)}),extensionASTNodes:V.extensionASTNodes.concat(J)})}function I($){var C;const V=$.toConfig(),J=(C=c[$.name])!==null&&C!==void 0?C:[];return new sn({...V,values:{...V.values,...Q(J)},extensionASTNodes:V.extensionASTNodes.concat(J)})}function q($){var C;const V=$.toConfig(),J=(C=c[V.name])!==null&&C!==void 0?C:[];let ae=V.specifiedByURL;for(const F of J){var k;ae=(k=kl(F))!==null&&k!==void 0?k:ae}return new Jt({...V,specifiedByURL:ae,extensionASTNodes:V.extensionASTNodes.concat(J)})}function G($){var C;const V=$.toConfig(),J=(C=c[V.name])!==null&&C!==void 0?C:[];return new Vt({...V,interfaces:()=>[...$.getInterfaces().map(v),...z(J)],fields:()=>({...At(V.fields,W),...Te(J)}),extensionASTNodes:V.extensionASTNodes.concat(J)})}function B($){var C;const V=$.toConfig(),J=(C=c[V.name])!==null&&C!==void 0?C:[];return new Js({...V,interfaces:()=>[...$.getInterfaces().map(v),...z(J)],fields:()=>({...At(V.fields,W),...Te(J)}),extensionASTNodes:V.extensionASTNodes.concat(J)})}function H($){var C;const V=$.toConfig(),J=(C=c[V.name])!==null&&C!==void 0?C:[];return new Xs({...V,types:()=>[...$.getTypes().map(v),..._(J)],extensionASTNodes:V.extensionASTNodes.concat(J)})}function W($){return{...$,type:E($.type),args:$.args&&At($.args,U)}}function U($){return{...$,type:E($.type)}}function Y($){const C={};for(const J of $){var V;const ae=(V=J.operationTypes)!==null&&V!==void 0?V:[];for(const k of ae)C[k.operation]=we(k.type)}return C}function he($){var C,V;const J=$.toConfig(),ae=(C=l[J.name])!==null&&C!==void 0?C:[],k=(V=J.deprecationReason)!==null&&V!==void 0?V:ae.map(F=>ir(F)).find(F=>F!=null);return new Ut({...J,deprecationReason:k,extensionASTNodes:J.extensionASTNodes.concat(ae)})}function we($){var C;const V=$.name.value,J=(C=Nl[V])!==null&&C!==void 0?C:y[V];if(J===void 0)throw new Error(`Unknown type: "${V}".`);return J}function Oe($){return $.kind===exports.Kind.LIST_TYPE?new ct(Oe($.type)):$.kind===exports.Kind.NON_NULL_TYPE?new Ae(Oe($.type)):we($)}function de($){var C,V,J;const ae=(C=l[$.name.value])!==null&&C!==void 0?C:[],k=(V=ir($))!==null&&V!==void 0?V:ae.map(F=>ir(F)).find(F=>F!=null);return new Ut({name:$.name.value,description:(J=$.description)===null||J===void 0?void 0:J.value,locations:$.locations.map(({value:F})=>F),isRepeatable:$.repeatable,args:K($.arguments),deprecationReason:k,astNode:$,extensionASTNodes:ae})}function Te($){const C=Object.create(null);for(const ae of $){var V;const k=(V=ae.fields)!==null&&V!==void 0?V:[];for(const F of k){var J;C[F.name.value]={type:Oe(F.type),description:(J=F.description)===null||J===void 0?void 0:J.value,args:K(F.arguments),deprecationReason:ir(F),astNode:F}}}return C}function K($){const C=$??[],V=Object.create(null);for(const ae of C){var J;const k=Oe(ae.type);V[ae.name.value]={type:k,description:(J=ae.description)===null||J===void 0?void 0:J.value,defaultValue:sr(ae.defaultValue,k),deprecationReason:ir(ae),astNode:ae}}return V}function M($){const C=Object.create(null);for(const ae of $){var V;const k=(V=ae.fields)!==null&&V!==void 0?V:[];for(const F of k){var J;const X=Oe(F.type);C[F.name.value]={type:X,description:(J=F.description)===null||J===void 0?void 0:J.value,defaultValue:sr(F.defaultValue,X),deprecationReason:ir(F),astNode:F}}}return C}function Q($){const C=Object.create(null);for(const ae of $){var V;const k=(V=ae.values)!==null&&V!==void 0?V:[];for(const F of k){var J;C[F.name.value]={description:(J=F.description)===null||J===void 0?void 0:J.value,deprecationReason:ir(F),astNode:F}}}return C}function z($){return $.flatMap(C=>{var V,J;return(V=(J=C.interfaces)===null||J===void 0?void 0:J.map(we))!==null&&V!==void 0?V:[]})}function _($){return $.flatMap(C=>{var V,J;return(V=(J=C.types)===null||J===void 0?void 0:J.map(we))!==null&&V!==void 0?V:[]})}function j($){var C;const V=$.name.value,J=(C=c[V])!==null&&C!==void 0?C:[];switch($.kind){case exports.Kind.OBJECT_TYPE_DEFINITION:{var ae;const be=[$,...J];return new Vt({name:V,description:(ae=$.description)===null||ae===void 0?void 0:ae.value,interfaces:()=>z(be),fields:()=>Te(be),astNode:$,extensionASTNodes:J})}case exports.Kind.INTERFACE_TYPE_DEFINITION:{var k;const be=[$,...J];return new Js({name:V,description:(k=$.description)===null||k===void 0?void 0:k.value,interfaces:()=>z(be),fields:()=>Te(be),astNode:$,extensionASTNodes:J})}case exports.Kind.ENUM_TYPE_DEFINITION:{var F;const be=[$,...J];return new sn({name:V,description:(F=$.description)===null||F===void 0?void 0:F.value,values:Q(be),astNode:$,extensionASTNodes:J})}case exports.Kind.UNION_TYPE_DEFINITION:{var X;const be=[$,...J];return new Xs({name:V,description:(X=$.description)===null||X===void 0?void 0:X.value,types:()=>_(be),astNode:$,extensionASTNodes:J})}case exports.Kind.SCALAR_TYPE_DEFINITION:{var te;return new Jt({name:V,description:(te=$.description)===null||te===void 0?void 0:te.value,specifiedByURL:kl($),astNode:$,extensionASTNodes:J})}case exports.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var ge;const be=[$,...J];return new Zs({name:V,description:(ge=$.description)===null||ge===void 0?void 0:ge.value,fields:()=>M(be),astNode:$,extensionASTNodes:J,isOneOf:PA($)})}}}}const Nl=ur([...Ba,...Ka],e=>e.name);function ir(e){const t=an(za,e);return t?.reason}function kl(e){const t=an(Hf,e);return t?.url}function PA(e){return!!an(Gf,e)}function OA(e,t){e!=null&&e.kind===exports.Kind.DOCUMENT||Ue(!1,"Must provide valid Document AST."),t?.assumeValid!==!0&&t?.assumeValidSDL!==!0&&xA(e);const n=TA({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,...Cr.filter(o=>n.directives.every(s=>s.name!==o.name))];return new em({...n,directives:i})}const IA=()=>({Document:{enter:(e,t)=>{let r;try{r=OA(e,{assumeValidSDL:!1})}catch(n){_A(n,t);return}for(const n of r_(r))fm(n,t)}}});function _A(e,t){if(e instanceof ie)fm(e,t);else if(e instanceof Error)t.report({message:e.message});else throw e}function fm(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 AA=()=>{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}},RA={struct:IA,assertions:uI,"no-unused-types":vI,"type-description":AA},Ja=()=>({Info(e,{report:t}){e.license||t({message:_o("Info","license"),location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/info-license"})}}),mm=()=>({Paths(e,{report:t,location:r}){const n=[];for(const i of Object.keys(e)){const o=n.find(s=>$A(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 $A(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 hm(e){return e.startsWith("{")&&e.endsWith("}")}function NA(e){const t=e.split(/(?:[-._])|([A-Z][a-z]+)/).filter(A.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 kA=["get","head","post","put","patch","delete","options","trace"],ym=({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||hm(c))continue;const l=u=>e?NA(c).has(u):c.toLocaleLowerCase().includes(u);for(const u of kA)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"})}}}),gm=()=>({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)}}}),vm=e=>{const t=new Oo;return{Parameter:{leave(r,n){if(dt(r.example)&&nn({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"}),Z.isPlainObject(r.examples))for(const[i,o]of Object.entries(r.examples)){const s=wf(o);s&&nn({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"})}}}}},bm=e=>{const t=new Oo;return{Schema:{leave(r,n){const i=r.examples;if(Array.isArray(i))for(const o of i)nn({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(dt(r.example)){if(r.nullable===!0&&r.example===null&&r.type!==void 0)return;nn({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"})}}}}},wm=()=>({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"})}}),Sm=({validateWebhooks:e,disallowDefault:t=!1})=>({Paths:{Responses(r,{report:n}){const i=Object.keys(r||{});ao({responseCodes:i,codeRange:"2XX",report:n,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response",disallowDefault:t})}},WebhooksMap:{Responses(r,{report:n}){if(!e)return;const i=Object.keys(r||{});ao({responseCodes:i,codeRange:"2XX",report:n,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response",disallowDefault:t})}}}),Em=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){const n=Object.keys(t||{});ao({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||{});ao({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}}}),xm=()=>({Operation(e,t){Dr({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-description"})}}),Tm=()=>{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))}}},DA=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/,Pm=()=>({Operation(e,{report:t,location:r}){e.operationId&&!DA.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"})}}),Om=()=>{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)}}}}},Im=()=>({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"})}}),_m=()=>({Operation(e,t){Dr({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"})}}},Rm=()=>({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"})}}),$m=()=>({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"})}}),qA=["get","head","post","put","patch","delete","options","query","trace"],Nm=e=>{const t=e&&e.order||qA;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"})}}}},km=()=>({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"})}}}),jA=/\{([a-zA-Z0-9_.-]+)\}+/g,CA=2,fo=()=>{const e={current:null};return{PathItem:{enter(r,{key:n}){Dm(e,n)},leave(){MA(e)},Parameter(r,{report:n,location:i,rawLocation:o}){qm({parameter:r,pathContext:e,report:n,location:i,rawLocation:o})},Operation:jm(e,new Set)}}},Dm=(e,t)=>{e.current={path:t,templateParams:LA(t),definedParams:new Set}},MA=e=>{e.current=null},qm=({parameter:e,pathContext:t,report:r,location:n,rawLocation:i})=>{e.in==="path"&&e.name&&t.current&&(t.current.definedParams.add(e.name),Cm({paramName:e.name,templateParams:t.current.templateParams,path:t.current.path,report:r,location:n,rawLocation:i}))},jm=(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>=CA)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}){qm({parameter:s,pathContext:e,report:a,location:c,rawLocation:l})},get Operation(){return jm(e,t,r+1)}}};return{enter(){t=new Set},leave(o,{report:s,location:a}){!e.current||!t||FA({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}){UA(o,t),o.in==="path"&&o.name&&e.current&&(t.add(o.name),Cm({paramName:o.name,templateParams:e.current.templateParams,path:e.current.path,report:s,location:a,rawLocation:c}))},Callback:{get PathItem(){return i()}}}},LA=e=>new Set(Array.from(e.matchAll(jA)).map(t=>t[1])),UA=(e,t)=>{Z.isPlainObject(e)&&"in"in e&&"name"in e&&e.in==="path"&&e.name&&t.add(e.name)},Cm=({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"})}},FA=({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"})},Mm=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)||!hm(l)&&Ru.isSingular(l)&&i({message:`path segment \`${l}\` should be plural.`,location:s.key(),reference:"https://redocly.com/docs/cli/rules/oas/path-segment-plural"})}}}}},Lm=()=>({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"})}}),Um=()=>{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 Rr(e){return`${e}`.replace(/^(\d)\d\d$/,(t,r)=>`${r}XX`)}const Fm=e=>{const t=e.names||{};return{Operation:{Response:{enter:(r,{report:n,location:i,key:o})=>{const s=t[o]||t[Rr(o)]||t[Rr(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"})}}}}},Dl=["string","integer","number","boolean","null"],Bm=()=>({SchemaProperties(e,{report:t,location:r,specVersion:n,resolve:i}){for(const o of Object.keys(e)){const s=i(A.getOwn(e,o)).node;!s||!BA(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 BA(e){return!e.type||e.allOf||e.anyOf||e.oneOf||e.format==="binary"?!1:Array.isArray(e.type)?e.type.every(t=>Dl.includes(t)):Dl.includes(e.type)}const zm=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))}}}},Vm=()=>{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)&&A.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"})}}},zA=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 mo({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 Ir({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 VA=({allowedValues:e})=>({Root(t,r){mo({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})},Operation:{leave(t,r){mo({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},Schema(n,{report:i,location:o}){if(n.type!=="object")return;const s=t[r]||t[Rr(r)]||t[Rr(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"})}}}}},HA=({allowedValues:e})=>({Root(t,r){mo({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})},Operation:{leave(t,r){mo({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}),GA={struct:Ht,"no-invalid-schema-examples":bm,"no-invalid-parameter-examples":vm,"info-contact":qr,"info-license":Ja,"info-license-strict":$o,"tag-description":qo,"tags-alphabetical":jo,"paths-kebab-case":Lm,"no-enum-type-mismatch":vn,"boolean-parameter-prefixes":zA,"no-path-trailing-slash":wm,"operation-2xx-response":Sm,"operation-4xx-response":Em,assertions:Xt,"operation-operationId-unique":Tm,"operation-parameters-unique":Om,"path-parameters-defined":fo,"operation-tag-defined":Am,"path-declaration-must-exist":$m,"operation-operationId-url-safe":Pm,"operation-operationId":ko,"operation-summary":_m,"operation-description":xm,"path-not-include-query":km,"path-params-defined":fo,"parameter-description":Rm,"operation-singular-tag":Im,"security-defined":zm,"security-scopes-defined":qa,"no-unresolved-refs":Kt,"no-identical-paths":gm,"no-ambiguous-paths":mm,"path-http-verbs-order":Nm,"no-http-verbs-in-paths":ym,"request-mime-type":VA,"response-mime-type":HA,"path-segment-plural":Mm,"response-contains-header":Fm,"response-contains-property":KA,"scalar-property-missing-example":Bm,"required-string-property-missing-min-length":Um,"spec-strict-refs":Vm,"spec-ref-siblings":Do,"no-required-schema-properties-undefined":bn,"no-schema-type-mismatch":wn,"no-duplicated-enum-values":gn,"no-unsafe-markdown":Sn,"no-duplicated-tag-names":No},YA={},QA=e=>({Parameter:{leave(t,r){if(!t.schema)return;const n=A.isRef(t.schema)?r.resolve(t.schema).node:t.schema;n&&WA(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 WA(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 JA=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"})}}}};function XA(e){return e.trim().split(/\s+/).map(t=>t.replace(/^[a-z]/,r=>r.toUpperCase())).join("")}function Km(e){const t=Z.isPlainObject(e)&&et(e.title)?e.title.trim():"",r=XA(t).replace(new RegExp(`[^${Ad}]`,"g"),"-");return{title:t,name:r}}function Qr(e){return e.chain?.[0]??{node:e.node,location:e.location}}const wr="Schema",ia="Parameter",oa="Response",sa="RequestBody",ZA={[wr]:"schemas",[ia]:"parameters",[oa]:"responses",[sa]:"requestBodies"},eR=e=>{const t=new Map,r=new Map,n=e.strategy==="title";let i;const o=[];e.schemas!=="off"&&o.push(wr),e.parameters!=="off"&&o.push(ia),e.responses!=="off"&&o.push(oa),e.requestBodies!=="off"&&o.push(sa);const s={ref:{leave(f,{type:h,resolve:y,location:b}){const w=h.name;if(o.includes(w)){const x=y(f);if(!x.location)return;const T=Qr(x);if(u(w,T.location,b)){const{title:E,name:v}=Km(T.node);if(E){c(w,v,T.location,T.location.child("title"));return}r.set(T.location.absolutePointer.toString(),T.location),l(w,T.location);return}l(w,x.location)}}},Root:{enter(f,{location:h}){i=h.source.absoluteRef},leave(f,h){t.forEach((y,b,w)=>{if(y.size>1){const x=nR(b),T=tR(x.typeName),E=T?e[T]:null;for(const[v,P]of y){const g=Array.from(y.keys()).filter(I=>I!==v).map(I=>`- ${I}`).join(`
76
+ `),S={message:`Component '${T}/${x.componentName}' is not unique. It is also defined at:
77
+ ${g}`,location:P,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};E&&(S.forceSeverity=E),h.report(S)}}});for(const y of r.values()){const b={message:"Schema must define a `title` when using `strategy: title`. Bundling fails without it.",location:y,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};e.schemas&&(b.forceSeverity=e.schemas),h.report(b)}}}};return e.schemas!="off"&&(s.NamedSchemas={Schema(f,{location:h,key:y,parentLocations:b}){if(u(wr,h)){c(wr,String(y),b.NamedSchemas.child(y));return}l(wr,h)}}),e.responses!="off"&&(s.NamedResponses={Response(f,{location:h}){l(oa,h)}}),e.parameters!="off"&&(s.NamedParameters={Parameter(f,{location:h}){l(ia,h)}}),e.requestBodies!="off"&&(s.NamedRequestBodies={RequestBody(f,{location:h}){l(sa,h)}}),s;function a(f){const h=f.split("/").slice(-1)[0];return A.isSupportedExtension(h)?h.slice(0,h.lastIndexOf(".")):h}function c(f,h,y,b=y){const w=rR(f,h),x=t.get(w)??new Map,T=y.absolutePointer.toString();x.has(T)||x.set(T,b),t.set(w,x)}function l(f,h){const y=a(h.absolutePointer.toString());c(f,y,h)}function u(f,h,y=h){return n&&f===wr&&(h.source.absoluteRef!==i||y.source.absoluteRef!==i)}};function tR(e){return ZA[e]??null}function rR(e,t){return`${e}/${t}`}function nR(e){const[t,r]=e.split("/");return{typeName:t,componentName:r}}const iR=()=>({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"})}}),oR=()=>({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"})}}),sR=new Set(["type","format","enum","const","nullable","properties","required","additionalProperties","discriminator","$ref","$id","$schema","$anchor","$comment","title","description","default","example","examples","deprecated","readOnly","writeOnly","externalDocs","xml"]),aR=()=>({AllOf(e,t){const r=t.parent;Array.isArray(e)&&((e.length===0||e.length===1&&Object.keys(r).length===1&&!cR(e[0],t.resolve))&&cs(e,"allOf",t),ps(e,"allOf",t),ls(e,"allOf",t))},AnyOf(e,t){const r=t.parent;if(!Array.isArray(e))return;const n=Z.isPlainObject(r.discriminator);e.length<2&&!n&&cs(e,"anyOf",t),ps(e,"anyOf",t),ls(e,"anyOf",t),n&&ql(e,"anyOf",t)},OneOf(e,t){const r=t.parent;if(!Array.isArray(e))return;const{discriminator:n}=r,i=Z.isPlainObject(n);e.length<2&&!i&&cs(e,"oneOf",t),ps(e,"oneOf",t),ls(e,"oneOf",t),i&&ql(e,"oneOf",t),yo(r)&&pR(e,t),lR(e,i?n:void 0,t)}});function cs(e,t,r){const n=e.length===1?" Use the schema directly instead.":"";r.report({message:`\`${t}\` should have at least two schemas.${n}`,location:r.location.key()})}function cR(e,t){return Z.isPlainObject(cn(e,t)?.schema.discriminator)}function ps(e,t,r){for(const[n,i]of e.entries())Z.isPlainObject(i)&&Object.keys(i).length===0&&r.report({message:`Schema in \`${t}\` is empty, so it matches any value.`,location:r.location.child([n])})}function ql(e,t,r){for(const[n,i]of e.entries())A.isRef(i)||Z.isPlainObject(i)&&"$id"in i||r.report({message:`Schema in \`${t}\` is inline, so the \`discriminator\` cannot select it. Use a \`$ref\` to a named schema.`,location:r.location.child([n])})}function ls(e,t,r){for(let n=1;n<e.length;n++){const i=e.findIndex(o=>zt(o,e[n]));i<n&&r.report({message:`Schema in \`${t}\` duplicates the schema at position ${i+1}.`,location:r.location.child([n])})}}function pR(e,t){e.some(n=>{const i=cn(n,t.resolve);return i?yo(i.schema):!1})&&t.report({message:"The schema and a schema in `oneOf` both accept `null`, so nothing decides which one applies to a null value.",location:t.location.key()})}function lR(e,t,r){const{resolve:n,report:i,location:o}=r,s=r.specVersion!=="oas3_2",a=e.map(c=>cn(c,n));for(let c=0;c<a.length-1;c++){const l=a[c];if(l)for(let u=c+1;u<a.length;u++){const f=a[u];if(!f||zt(e[c],e[u]))continue;const h=uR(l,f,n,t,s);h&&i({message:`Schemas in \`oneOf\` must be mutually exclusive. Found overlapping schemas: ${jl(e[c],c)} and ${jl(e[u],u)}. ${h}`,location:o.key()})}}}function jl(e,t){return A.isRef(e)?`\`${e.$ref}\``:e.title?`\`${e.title}\``:`schema at position ${t+1}`}function uR(e,t,r,n,i){const o=e.schema,s=t.schema;if(ho(o)||ho(s)||Hm(o,s))return null;if(yo(o)&&yo(s))return"Both schemas accept `null`.";const a=ln(o),c=ln(s);if(a&&c){const u=a.filter(f=>c.some(h=>zt(f,h)));return`Both schemas allow the values ${JSON.stringify(u)}.`}if(n)return i?dR(o,s,n):null;const l=fR(e,t,r);if(l)return l;if(!o.properties&&!s.properties){const u=Ym(o,s);if(u?.length)return`Both schemas accept ${u.map(f=>`\`${f}\``).join(", ")}.`}return null}function dR(e,t,r){const{propertyName:n}=r;return typeof n!="string"||!!e.required?.includes(n)&&!!t.required?.includes(n)?null:dt(A.getOwn(e.properties??{},n))&&dt(A.getOwn(t.properties??{},n))?`Add \`${n}\` to \`required\` in every schema; the \`discriminator\` cannot read a property a value may omit.`:`Declare \`${n}\` in every schema and add it to \`required\`; the \`discriminator\` cannot read a property a value may omit.`}function fR(e,t,r){const n=mR(e,t);if(!n||Cl(e.schema,n.leftProperties,n.rightRequired)||Cl(t.schema,n.rightProperties,n.leftRequired)||hR(n)||n.sharedNames.length===0)return null;const i=yR(n,r);if(!i)return null;const{optionalDistinguishingNames:o,ambiguousNames:s}=i;if(o.length>0){const a=s.length>0?` Other shared properties: ${us(s)}.`:"";return`Add ${us(o)} to \`required\` in every schema; an optional property cannot distinguish the schemas.${a}`}return s.length>0?`Both schemas define ${us(s)} without constraints that exclude each other. Add a discriminator, or constrain the shared properties to different values.`:null}function mR(e,t){const r=e.schema.properties,n=t.schema.properties;return!r||!n?null:{leftSource:e.source,rightSource:t.source,leftProperties:r,rightProperties:n,leftRequired:new Set(e.schema.required??[]),rightRequired:new Set(t.schema.required??[]),sharedNames:Object.keys(r).filter(i=>A.getOwn(n,i))}}function hR({leftProperties:e,rightProperties:t,leftRequired:r,rightRequired:n}){const i=[...r].some(s=>!A.getOwn(t,s)&&!n.has(s)),o=[...n].some(s=>!A.getOwn(e,s)&&!r.has(s));return i&&o}function yR({leftSource:e,rightSource:t,leftProperties:r,rightProperties:n,leftRequired:i,rightRequired:o,sharedNames:s},a){const c=[],l=[];for(const u of s){const f=i.has(u)&&o.has(u),h=cn(A.getOwn(r,u),a,e),y=cn(A.getOwn(n,u),a,t);if(!(!h||!y)&&!(ho(h.schema)||ho(y.schema))){if(Hm(h.schema,y.schema)){if(f)return null;c.push(u);continue}l.push(u)}}return{optionalDistinguishingNames:c,ambiguousNames:l}}function Cl(e,t,r){return e.additionalProperties!==!1?!1:[...r].some(n=>!A.getOwn(t,n))}function Hm(e,t){const r=ln(e),n=ln(t);return r&&n?!r.some(i=>n.some(o=>zt(i,o))):Ym(e,t)?.length===0}function cn(e,t,r){if(A.isRef(e)){const{node:n,location:i}=t(e,r);return Z.isPlainObject(n)?{schema:n,source:i?.source.absoluteRef}:void 0}return Z.isPlainObject(e)?{schema:e,source:r}:void 0}function ho(e){return Object.keys(e).some(t=>!sR.has(t)&&!t.startsWith("x-"))}function Gm(e){return"nullable"in e&&e.nullable===!0}function pn(e){const t=e.type;if(t===void 0)return;const r=new Set(Array.isArray(t)?t:[t]);return Gm(e)&&r.add("null"),r}function Ym(e,t){const r=pn(e),n=pn(t);if(!r||!n)return;const i=[...r].filter(o=>n.has(o));return i.length===0&&gR(e,t)?["integer"]:i}function gR(e,t){const r=pn(e),n=pn(t);return r?.has("integer")&&n?.has("number")?Ml(t):r?.has("number")&&n?.has("integer")?Ml(e):!1}function Ml(e){const t=ln(e);return!t||t.some(r=>typeof r=="number"&&Number.isInteger(r))}function yo(e){return Gm(e)||pn(e)?.has("null")===!0}function ln(e){if(e.enum)return e.enum;const t="const"in e?e.const:void 0;return dt(t)?[t]:void 0}function us(e){return e.map(t=>`\`${t}\``).join(", ")}const vR=e=>{const t=new Oo,r=i=>i.schema===void 0,n=i=>(o,s)=>{const{location:a,resolve:c}=s;if(dt(o.example))l(o.example,a.child("example"));else if(Z.isPlainObject(o.examples))for(const u of Object.keys(o.examples))l(o.examples[u],a.child(["examples",u]),!0);function l(u,f,h){if(A.isRef(u)){const b=c(u);if(!b.location)return;f=b.location,u=b.node}let y=u;if(h){const b=wf(u);if(!b)return;y=b.value,f=f.child(b.field)}nn({example:y,schema:o.schema,options:{location:f,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"})}}}},bR=()=>({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"})}}),wR=()=>({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"})}}),SR=()=>({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=Ll(i);o&&n.push(...o)}else{const i=Ll(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 Ll(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 ER=()=>({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"})}}),xR=()=>{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=>A.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)}}},TR=()=>({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"})}}}),ds="https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807",PR=()=>({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:ds})},MediaType:{skip(e,t){return t!=="application/problem+json"},enter(e,t){if(Dr({fieldName:"schema",value:e,ctx:t,reference:ds}),!e.schema)return;const{schema:r,location:n}=Io(e.schema,t,t.location.child("schema"));if(!(!r||!n))for(const i of["type","title"])ar(e.schema,i,t)||t.report({message:_o("SchemaProperties",i),location:r.properties?n.child(["properties",i]).key():n.key(),reference:ds})}}}}),OR=({allowedValues:e})=>({Paths:{RequestBody:{leave(t,r){Ir({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){Ir({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}},WebhooksMap:{Response:{leave(t,r){Ir({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}}),IR=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[Rr(r)]||t[Rr(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"})}}}}}},_R=({allowedValues:e})=>({Paths:{Response:{leave(t,r){Ir({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){Ir({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}},WebhooksMap:{RequestBody:{leave(t,r){Ir({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}}),AR=()=>{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")}}}},RR=()=>{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=Io(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"})}}}},$R=()=>({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"})}}),NR=()=>({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"})}}}),kR=()=>{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 Ul(e){return e.filter(t=>!("$ref"in t)&&t.in==="querystring").length}function Fl(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 Bl(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 DR=()=>{let e={},t={},r=0;return{PathItem:{enter(n,i){e={},t={},r=0,Fl(Ul(n.parameters||[]),i)},Parameter(n,i){Bl(n,i.location,e,i),n.in==="querystring"&&(r+=1)},Operation:{enter(n,i){t={...e};const o=r+Ul(n.parameters||[]);Fl(o,i)},Parameter(n,i){Bl(n,i.location,t,i)}}}}},qR=()=>({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"}))}}}),jR={struct:Ht,"info-contact":qr,"info-license":Ja,"info-license-strict":$o,"operation-2xx-response":Sm,"operation-4xx-response":Em,"operation-4xx-problem-details-rfc7807":PR,assertions:Xt,"operation-operationId-unique":Tm,"operation-parameters-unique":Om,"operation-tag-defined":Am,"no-example-value-and-externalValue":oR,"no-mixed-number-range-constraints":Ro,"no-enum-type-mismatch":vn,"no-path-trailing-slash":wm,"no-empty-servers":iR,"path-declaration-must-exist":$m,"operation-operationId-url-safe":Pm,"operation-operationId":ko,"operation-summary":_m,"tags-alphabetical":jo,"no-server-example.com":bR,"no-server-trailing-slash":wR,"tag-description":qo,"operation-description":xm,"no-unused-components":xR,"path-not-include-query":km,"path-parameters-defined":fo,"path-params-defined":fo,"parameter-description":Rm,"operation-singular-tag":Im,"security-defined":zm,"security-scopes-defined":qa,"no-unresolved-refs":Kt,"paths-kebab-case":Lm,"boolean-parameter-prefixes":JA,"path-http-verbs-order":Nm,"no-illogical-composition-keywords":aR,"no-invalid-media-type-examples":vR,"no-identical-paths":gm,"no-ambiguous-paths":mm,"no-undefined-server-variable":ER,"no-server-variables-empty-enum":SR,"no-http-verbs-in-paths":ym,"request-mime-type":OR,"response-mime-type":_R,"path-segment-plural":Mm,"no-invalid-schema-examples":bm,"no-invalid-parameter-examples":vm,"response-contains-header":Fm,"response-contains-property":IR,"scalar-property-missing-example":Bm,"spec-components-invalid-map-name":AR,"required-string-property-missing-min-length":Um,"spec-strict-refs":Vm,"component-name-unique":eR,"array-parameter-serialization":QA,"no-required-schema-properties-undefined":bn,"no-schema-type-mismatch":wn,"no-duplicated-enum-values":gn,"no-unsafe-markdown":Sn,"no-duplicated-tag-names":No,"nullable-type-sibling":TR,"spec-no-invalid-tag-parents":kR,"spec-no-invalid-encoding-combinations":NR,"spec-discriminator-defaultMapping":RR,"spec-example-values":$R,"spec-querystring-parameters":DR,"spec-ref-siblings":qR},CR={},MR=()=>{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())}}}},LR=()=>({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))})}}}),UR=()=>({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})}}}),FR={struct:Ht,"no-unresolved-refs":Kt,assertions:Xt,"info-license":Ja,"no-unused-components":MR,"info-contact":qr,"spec-no-duplicated-method-params":LR,"spec-no-required-params-after-optional":UR,"spec-ref-siblings":Do},BR={},zR={"info-contact":qr,struct:Ht,"no-unresolved-refs":Kt,assertions:Xt},VR={},KR={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-illogical-composition-keywords":"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-illogical-composition-keywords":"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-illogical-composition-keywords":"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"}},HR={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-illogical-composition-keywords":"off","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-illogical-composition-keywords":"off","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-illogical-composition-keywords":"off","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"}},GR={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-illogical-composition-keywords":"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-illogical-composition-keywords":"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-illogical-composition-keywords":"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"}},YR={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-illogical-composition-keywords":"warn","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-illogical-composition-keywords":"warn","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-illogical-composition-keywords":"warn","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"}},QR={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-illogical-composition-keywords":"off","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-illogical-composition-keywords":"off","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-illogical-composition-keywords":"off","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"}},WR={recommended:YR,"recommended-strict":GR,minimal:HR,all:KR,spec:QR},zl={id:"",rules:{oas3:jR,oas2:GA,async2:ZO,async3:pI,arazzo1:HO,overlay1:zR,openrpc1:FR,graphql:RA},preprocessors:{oas3:CR,oas2:YA,async2:eI,async3:lI,arazzo1:GO,overlay1:VR,openrpc1:BR},decorators:{oas3:lO,oas2:aO,async2:tO,async3:rO,arazzo1:eO,overlay1:dO,openrpc1:uO},configs:WR},JR={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function Ft(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 f=new Set;for(const y of Object.values(a.properties)){if(y===c){h(s,u);continue}Z.isPlainObject(y)&&y.name!==void 0&&f.add(y)}a.additionalProperties&&typeof a.additionalProperties!="function"&&(a.additionalProperties===c?h(s,u):a.additionalProperties.name!==void 0&&f.add(a.additionalProperties)),a.items&&typeof a.items!="function"&&(a.items===c?h(s,u):a.items.name!==void 0&&f.add(a.items)),a.extensionsPrefix&&f.add(A.SpecExtension);for(const y of Array.from(f.values()))n(s,y,c,l,u);function h(y,b){for(const w of b.slice(1))r[w.name]=r[w.name]||{enter:[],leave:[]},r[w.name].enter.push({...y,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 f of u){const h=a[f]||i(a,JR[f]),y=r[f];if(!h)continue;let b,w,x;const T=Z.isPlainObject(h);if(f==="ref"&&T&&h.skip)throw new Error("ref() visitor does not support skip");typeof h=="function"?b=h:T&&(b=h.enter,w=h.leave,x=h.skip);const E=(b?1:0)+(w?1:0)+(x?1:0),v=T&&Object.keys(h).length>E,P={activatedOn:null,type:t[f],parent:c,isSkippedLevel:!1};if(v&&o(s,h,P,l+1),c&&n(s,c.type,t[f],c),b||T){if(b&&typeof b!="function")throw new Error("DEV: should be function");y.enter.push({...s,visit:b||(()=>{}),skip:x,depth:l,context:P})}if(w){if(typeof w!="function")throw new Error("DEV: should be function");y.leave.push({...s,visit:w,depth:l,context:P})}}}}const qe=(e,t)=>{if(t)for(const r of Object.keys(t))Z.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)&&(Z.isPlainObject(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r])}function XR(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 Qm(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(Z.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)}`);qe(t.rules,r.rules),qe(t.oas2Rules,r.oas2Rules),Ce(t.oas2Rules,r.rules),qe(t.oas3_0Rules,r.oas3_0Rules),Ce(t.oas3_0Rules,r.rules),qe(t.oas3_1Rules,r.oas3_1Rules),Ce(t.oas3_1Rules,r.rules),qe(t.oas3_2Rules,r.oas3_2Rules),Ce(t.oas3_2Rules,r.rules),qe(t.async2Rules,r.async2Rules),Ce(t.async2Rules,r.rules),qe(t.async3Rules,r.async3Rules),Ce(t.async3Rules,r.rules),qe(t.arazzo1Rules,r.arazzo1Rules),Ce(t.arazzo1Rules,r.rules),qe(t.arazzo1_1Rules,r.arazzo1_1Rules),Ce(t.arazzo1_1Rules,r.rules),qe(t.overlay1Rules,r.overlay1Rules),Ce(t.overlay1Rules,r.rules),qe(t.openrpc1Rules,r.openrpc1Rules),Ce(t.openrpc1Rules,r.rules),qe(t.graphqlRules,r.graphqlRules),Ce(t.graphqlRules,r.rules),qe(t.preprocessors,r.preprocessors),qe(t.oas2Preprocessors,r.oas2Preprocessors),Ce(t.oas2Preprocessors,r.preprocessors),qe(t.oas3_0Preprocessors,r.oas3_0Preprocessors),Ce(t.oas3_0Preprocessors,r.preprocessors),qe(t.oas3_1Preprocessors,r.oas3_1Preprocessors),Ce(t.oas3_1Preprocessors,r.preprocessors),qe(t.oas3_2Preprocessors,r.oas3_2Preprocessors),Ce(t.oas3_2Preprocessors,r.preprocessors),qe(t.async2Preprocessors,r.async2Preprocessors),Ce(t.async2Preprocessors,r.preprocessors),qe(t.async3Preprocessors,r.async3Preprocessors),Ce(t.async3Preprocessors,r.preprocessors),qe(t.arazzo1Preprocessors,r.arazzo1Preprocessors),Ce(t.arazzo1Preprocessors,r.preprocessors),qe(t.arazzo1_1Preprocessors,r.arazzo1_1Preprocessors),Ce(t.arazzo1_1Preprocessors,r.preprocessors),qe(t.overlay1Preprocessors,r.overlay1Preprocessors),Ce(t.overlay1Preprocessors,r.preprocessors),qe(t.openrpc1Preprocessors,r.openrpc1Preprocessors),Ce(t.openrpc1Preprocessors,r.preprocessors),qe(t.decorators,r.decorators),qe(t.oas2Decorators,r.oas2Decorators),Ce(t.oas2Decorators,r.decorators),qe(t.oas3_0Decorators,r.oas3_0Decorators),Ce(t.oas3_0Decorators,r.decorators),qe(t.oas3_1Decorators,r.oas3_1Decorators),Ce(t.oas3_1Decorators,r.decorators),qe(t.oas3_2Decorators,r.oas3_2Decorators),Ce(t.oas3_2Decorators,r.decorators),qe(t.async2Decorators,r.async2Decorators),Ce(t.async2Decorators,r.decorators),qe(t.async3Decorators,r.async3Decorators),Ce(t.async3Decorators,r.decorators),qe(t.arazzo1Decorators,r.arazzo1Decorators),Ce(t.arazzo1Decorators,r.decorators),qe(t.arazzo1_1Decorators,r.arazzo1_1Decorators),Ce(t.arazzo1_1Decorators,r.decorators),qe(t.overlay1Decorators,r.overlay1Decorators),Ce(t.overlay1Decorators,r.decorators),qe(t.openrpc1Decorators,r.openrpc1Decorators),Ce(t.openrpc1Decorators,r.decorators)}return t}class ZR extends Error{}function e$(e){return new Map(JSON.parse(JSON.stringify([...e])))}function Vl(e){return Z.isPlainObject(e)&&"id"in e}function t$(e){return typeof e=="function"}function Wm({node:e,ctx:t,plugins:r}){if(!e.extends)return e;const n=(e.extends||[]).filter(A.isTruthy).map(i=>{if(!A.isAbsoluteUrl(i)&&!Z.path.extname(i))return S$(i,r);const o=t.resolve({$ref:i});return o.location&&o.node!==void 0?o.node:null}).filter(A.isTruthy);return Qm([...n.map(i=>Wm({node:i,ctx:t,plugins:r})),{...e,extends:void 0}])}function Ui(e,t){if(Z.isPlainObject(e)&&Array.isArray(e.plugins)){const{plugins:r,rootConfigDir:n}=t.getVisitorData();r.push(...e.plugins.map(i=>ca(i,t.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}const r$=Ft([{severity:"error",ruleId:Na,visitor:{ref:{},ConfigGovernance:{leave(e,t){Ui(e,t)}},ConfigApisProperties:{leave(e,t){Ui(e,t)}},[ot.ScorecardClassicLevel]:{leave(e,t){Ui(e,t)}},ConfigRoot:{leave(e,t){Ui(e,t)}}}}],hn);function Fi(e,t){if(Z.isPlainObject(e)&&e.extends){const{plugins:r,skipPluginEval:n}=t.getVisitorData();if(n)return;const i=Wm({node:e,ctx:t,plugins:r});Object.assign(e,i),delete e.extends}}const n$=Ft([{severity:"error",ruleId:$a,visitor:{ref:{leave(e,t,r){A.replaceRef(e,r,t)}},ConfigGovernance:{leave(e,t){Fi(e,t)}},ConfigApisProperties:{leave(e,t){Fi(e,t)}},[ot.ScorecardClassicLevel]:{leave(e,t){Fi(e,t)}},ConfigRoot:{leave(e,t){Fi(e,t)}}}}],hn);function Kl(e,t){return{prev:e,value:t}}function Hl(e){return e?.prev??null}function i$(e){const t={};for(;e.parent;)t[e.parent.type.name]=e.parent.activatedOn?.value.node,e=e.parent;return t}function o$(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 Bt(e){const{document:t,rootType:r,normalizedVisitors:n,resolvedRefMap:i,ctx:o}=e,s={},a=new Set,c=(x,T)=>`${x.name}::${T.absolutePointer}`,l=new Set,u={},f=n.any.enter,h=n.any.leave,y={},b={};for(const x of Object.keys(n))x==="any"||x==="ref"||(y[x]=f.concat(n[x]?.enter||[]),b[x]=(n[x]?.leave||[]).concat(h));w(t.parsed,r,new A.Location(t.source,"#/"),void 0,"");function w(x,T,E,v,P){const g=(de,Te=I.source.absoluteRef)=>{if(!A.isRef(de))return{location:E,node:de};const K=A.makeRefId(Te,de.$ref),M=i.get(K);if(!M)return{location:void 0,node:void 0};const{resolved:Q,node:z,document:_,nodePointer:j,error:$,chain:C}=M;return{location:Q?new A.Location(_.source,j):$ instanceof A.YamlParseError?new A.Location($.source,""):void 0,node:z,error:$,chain:C}},S=E;let I=E;const q=A.isRef(x),{node:G,location:B,error:H,chain:W}=g(x),U=new Set,Y=A.isRefWithSiblings(x)&&a.has(c(T,E));if(A.isRefWithSiblings(x)&&a.add(c(T,E)),q&&!Y){const de=n.ref.enter;for(const{visit:Te,ruleId:K,severity:M,message:Q,context:z}of de)U.add(z),Te(x,{report:j=>we(K,M,Q,j),resolve:g,rawNode:x,rawLocation:S,location:E,type:T,parent:v,key:P,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:()=>Oe(K)},{node:G,location:B,error:H,chain:W}),B?.source.absoluteRef&&o.refTypes&&o.refTypes.set(B?.source.absoluteRef,T)}if(G!==void 0&&B&&T.name!=="scalar"){const de=(C,V,J,ae)=>{let k=A.getOwn(T.properties,C);const F=T.extensionsPrefix!==void 0&&C.startsWith(T.extensionsPrefix);k===void 0&&!F&&(k=T.additionalProperties),typeof k=="function"&&(k=k(V,C)),F&&!A.isNamedType(k)&&(k=A.SpecExtension),!A.isNamedType(k)&&k?.directResolveAs&&(k=k.directResolveAs,V={$ref:V}),k&&k.name===void 0&&k.resolvable!==!1&&(k={name:"scalar",properties:{}}),!(!A.isNamedType(k)||k.name==="scalar"&&!A.isRef(V))&&w(V,k,J.child([C]),ae,C)};I=B;const Te=Z.isPlainObject(G)||Array.isArray(G)?G:E.absolutePointer,K=s[T.name]?.has?.(Te);let M=!1;const Q=y[T.name]||f.concat(n[T.name]?.enter||[]),z=[],_=`${I.absolutePointer}${I.pointer}`;for(const{context:C,visit:V,skip:J,ruleId:ae,severity:k,message:F}of Q){if(l.has(_))break;if(C.isSkippedLevel)C.parent.activatedOn&&!C.parent.activatedOn.value.nextLevelTypeActivated&&!C.seen.has(x)&&(C.seen.add(x),M=!0,z.push(C));else if(C.parent&&C.parent.activatedOn&&C.parent.activatedOn.value.node===u[C.parent.type.name]&&C.activatedOn?.value.withParentNode!==C.parent.activatedOn.value.node&&C.parent.activatedOn.value.nextLevelTypeActivated?.value!==T||!C.parent&&!K){z.push(C);const X={node:G,location:B,nextLevelTypeActivated:null,withParentNode:C.parent?.activatedOn?.value.node,skipped:(C.parent?.activatedOn?.value.skipped||J?.(G,P,{location:E,rawLocation:S,resolve:g,rawNode:x}))??!1};C.activatedOn=Kl(C.activatedOn,X);let te=C.parent;for(;te;)te.activatedOn.value.nextLevelTypeActivated=Kl(te.activatedOn.value.nextLevelTypeActivated,T),te=te.parent;X.skipped||(M=!0,U.add(C),he(V,G,x,C,ae,k,F))}}const j=u[T.name];if(u[T.name]=G,M||!K){if(s[T.name]=s[T.name]||new Set,s[T.name].add(Te),Array.isArray(G)){const C=T.items;if(C!==void 0){const V=typeof C=="function";for(let J=0;J<G.length;J++){const ae=B.child([J]);let k=V?C(G[J],ae.absolutePointer):C,F=G[J];k?.directResolveAs&&(k=k.directResolveAs,F={$ref:F}),A.isNamedType(k)&&w(F,k,ae,G,J)}}}else if(Z.isPlainObject(G)){const C=Object.keys(T.properties);T.additionalProperties?C.push(...Object.keys(G).filter(V=>!C.includes(V))):T.extensionsPrefix&&C.push(...Object.keys(G).filter(V=>V.startsWith(T.extensionsPrefix)&&!C.includes(V)));for(const V of C){const J=G[V];J!==void 0&&de(V,J,B,G)}}}if(q&&W?.length){const C=W[0];a.has(c(T,C.location))||w(C.node,T,C.location,void 0,P)}if(A.isRefWithSiblings(x)&&!Y)for(const C of Object.keys(x))C!=="$ref"&&x[C]!==G?.[C]&&de(C,x[C],E,x);u[T.name]=j;const $=b[T.name]||(n[T.name]?.leave||[]).concat(h);for(const C of z.reverse())if(C.isSkippedLevel)C.seen.delete(G);else if(C.activatedOn=Hl(C.activatedOn),C.parent){let V=C.parent;for(;V;)V.activatedOn.value.nextLevelTypeActivated=Hl(V.activatedOn.value.nextLevelTypeActivated),V=V.parent}for(const{context:C,visit:V,ruleId:J,severity:ae,message:k}of $)!C.isSkippedLevel&&U.has(C)&&he(V,G,x,C,J,ae,k)}if(I=E,q&&!Y){const de=n.ref.leave;for(const{visit:Te,ruleId:K,severity:M,context:Q,message:z}of de)U.has(Q)&&Te(x,{report:j=>we(K,M,z,j),resolve:g,rawNode:x,rawLocation:S,location:E,type:T,parent:v,key:P,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:()=>Oe(K)},{node:G,location:B,error:H,chain:W})}function he(de,Te,K,M,Q,z,_){de(Te,{report:$=>we(Q,z,_,$),resolve:g,rawNode:K,location:I,rawLocation:S,type:T,parent:v,key:P,parentLocations:o$(M),specVersion:o.specVersion,config:o.config,ignoreNextVisitorsOnNode:()=>{l.add(`${I.absolutePointer}${I.pointer}`)},getVisitorData:()=>Oe(Q)},i$(M),M)}function we(de,Te,K,M){const z=(M.location?Array.isArray(M.location)?M.location:[M.location]:[{...I,reportOnKey:!1}]).map(j=>({...I,reportOnKey:!1,...j})),_=M.forceSeverity||Te;_!=="off"&&o.problems.push({ruleId:M.ruleId||de,severity:_,...M,message:K?K.replace("{{message}}",M.message):M.message,suggest:M.suggest||[],location:z})}function Oe(de){return o.visitorsData[de]=o.visitorsData[de]||{},o.visitorsData[de]}}}function aa(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 s$({version:e,dereference:t,rootDocument:r,resolvedRefMap:n,keepUrlRefs:i,componentRenamingConflicts:o="warn",componentNamesStrategy:s="basename"}){let a,c;const l=new Map,u=aa("Schema",e),f={ref:{leave(E,v,P){if(!P.location||P.node===void 0){Er(P,v.report,v.location);return}const g=Qr(P);if(g.location.source===r.source&&g.location.source===v.location.source&&v.type.name!=="scalar"&&!t){A.parseRef(E.$ref).uri!==null&&E.$ref!==g.location.pointer&&(E.$ref=g.location.pointer);return}if(i&&A.isAbsoluteUrl(E.$ref))return;const S=aa(v.type.name,e);S?t?(y(S,g,v),A.replaceRef(E,g,v)):(E.$ref=y(S,g,v),h(E,P,v)):A.replaceRef(E,g,v)}},Example:{leave(E,v){if(A.isExternalValue(E)&&E.value===void 0){const P=v.resolve({$ref:E.externalValue});if(!P.location||P.node===void 0){Er(P,v.report,v.location);return}if(i&&A.isAbsoluteUrl(E.externalValue))return;E.value=v.resolve({$ref:E.externalValue}).node,delete E.externalValue}}},Root:{enter(E,v){c=v.location,e==="oas3"?a=E.components=E.components||{}:e==="oas2"?a=E:e==="async2"?a=E.components=E.components||{}:e==="async3"?a=E.components=E.components||{}:e==="arazzo1"?a=E.components=E.components||{}:e==="openrpc1"&&(a=E.components=E.components||{})}}};e==="oas3"&&(f.Discriminator={leave(E,v){if(typeof E.defaultMapping!="string"||!A.isMappingRef(E.defaultMapping))return;const P=v.resolve({$ref:E.defaultMapping});if(!P.location||P.node===void 0){Er(P,v.report,v.location.child("defaultMapping"));return}E.defaultMapping=y(u,Qr(P),v)},DiscriminatorMapping:{leave(E,v){for(const P of Object.keys(E)){const g=E[P];if(!A.isMappingRef(g))continue;const S=v.resolve({$ref:g});if(!S.location||S.node===void 0){Er(S,v.report,v.location.child(P));return}E[P]=y(u,Qr(S),v)}}}});function h(E,v,P){const g={resolved:!0,isRemote:!1,node:v.node,chain:v.chain,document:r,nodePointer:E.$ref};n.set(A.makeRefId(P.location.source.absoluteRef,E.$ref),g),n.set(A.makeRefId(r.source.absoluteRef,E.$ref),g)}function y(E,v,P){a[E]=a[E]||{};const g=T(v,E,P);return a[E][g]=v.node,e==="oas3"||e==="async2"||e==="async3"||e==="openrpc1"?`#/components/${E}/${g}`:`#/${E}/${g}`}function b(E,v,P){if(A.isRef(E)){const g=P.resolve(E,c.absolutePointer);if((g.location&&Qr(g).location)?.absolutePointer===v.location.absolutePointer)return!0}return zt(E,v.node)}function w(E,v,P){const{title:g,name:S}=Km(E.node),I=E.location.child("title");return g===""?{key:S,problem:{message:"Schema must define a `title` when using `--component-names-strategy title`.",location:E.location,forceSeverity:"error"}}:v[S]&&!b(v[S],E,P)?{key:S,problem:{message:`Title "${g}" maps to component name \`${S}\`, already used by another schema. Rename one of the titles.`,location:I,from:l.get(S),forceSeverity:o}}:{key:S}}function x(E,v,P){const g=A.pointerBaseName(E.location.pointer)||A.refBaseName(E.location.source.absoluteRef);let S=g;for(let I=2;v[S]&&!b(v[S],E,P);I++)S=`${g}-${I}`;return{name:S,prevName:g}}function T(E,v,P){const g=a[v];if(s==="title"&&v===u){const{key:q,problem:G}=w(E,g,P);if(!G)return l.set(q,E.location.child("title")),q;const{name:B}=x(E,g,P);return g[B]||(P.report(G),l.set(B,E.location)),B}const{name:S,prevName:I}=x(E,g,P);return!g[S]&&I!==S&&P.report({message:`Two schemas are referenced with the same name but different content. Renamed ${I} to ${S}.`,location:P.location,forceSeverity:o}),S}return f}async function Xa(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=jr(t.parsed),f=Da(u),h=r.getRulesForSpecVersion(f),y=A.normalizeTypes(r.extendTypes(n,u),r),b=tn(h,r,"preprocessors",u),w=tn(h,r,"decorators",u),x={problems:[],specVersion:u,config:r,refTypes:new Map,visitorsData:{}};let T=await A.resolveDocument({rootDocument:t,rootType:y.Root,externalRefResolver:i});b.length>0&&(Bt({document:t,rootType:y.Root,normalizedVisitors:Ft(b,y),resolvedRefMap:T,ctx:x}),T=await A.resolveDocument({rootDocument:t,rootType:y.Root,externalRefResolver:i}));const E=Ft([{severity:"error",ruleId:"bundler",visitor:s$({version:f,dereference:o,rootDocument:t,resolvedRefMap:T,keepUrlRefs:a,componentRenamingConflicts:c,componentNamesStrategy:l})},...w.filter(v=>v.ruleId!=="remove-unused-components")],y);if(Bt({document:t,rootType:y.Root,normalizedVisitors:E,resolvedRefMap:T,ctx:x}),s||r.getDecoratorSettings("remove-unused-components",u).severity!=="off"){const v=await A.resolveDocument({rootDocument:t,rootType:y.Root,externalRefResolver:i}),P=Ft([{severity:"error",ruleId:"remove-unused-components",visitor:f==="oas2"?lf():uf()}],y);Bt({document:t,rootType:y.Root,normalizedVisitors:P,resolvedRefMap:v,ctx:x})}return{bundle:t,problems:x.problems.map(v=>r.addProblemToIgnore(v)),fileDependencies:i.getFiles(),rootType:y.Root,refTypes:x.refTypes,visitorsData:x.visitorsData}}function a$(e,t,r){const n={plugins:[],rootConfigDir:r},i={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[Na]:n}};return Bt({document:e,rootType:hn.ConfigRoot,normalizedVisitors:r$,resolvedRefMap:t,ctx:i}),n.plugins}function c$(e,t,r,n=!1){const i={plugins:r,skipPluginEval:n},o={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[$a]:i}};return Bt({document:e,rootType:hn.ConfigRoot,normalizedVisitors:n$,resolvedRefMap:t,ctx:o}),e.parsed??{}}async function p$(e){const{ref:t,doc:r,externalRefResolver:n=new A.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),Xa({document:o,...e,externalRefResolver:n,types:fn(jr(o.parsed))})}async function l$(e){const{source:t,absoluteRef:r,externalRefResolver:n=new A.BaseResolver(e.config.resolve)}=e,i=A.makeDocumentFromString(t,r||"/");return Xa({document:i,...e,externalRefResolver:n,types:fn(jr(i.parsed))})}function fs(e){return!et(e)}const un=new Map,Qi="v";let Za=0,Gl=!1;function u$(){Z.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(Qi);if(!i)return n;const o=new URL(n.url);return o.pathname.includes("/node_modules/")||o.searchParams.has(Qi)?n:(o.searchParams.set(Qi,i),{...n,url:o.href})}})}function d$(){if(!Gl){if(Gl=!0,typeof Z.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}u$()}}function f$(e){return un.has(e)}function m$(e){return un.get(e)}function h$(e,t){un.set(e,t)}function y$(){return Za}function g$(e){const t=Z.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 v$=()=>{const e=[...un.keys()];for(const t of e)g$(t);un.clear(),Za+=1,d$()};async function b$(e){const t=(void 0)(e);return t.searchParams.set(Qi,String(Za)),import(t.href)}async function Jm({rawConfigDocument:e,configPath:t,externalRefResolver:r,customExtends:n,skipPluginEval:i}){const o=e===void 0?Yd:e.parsed;if(n!==void 0&&Z.isPlainObject(o)&&(o.extends=n),Z.isPlainObject(o)&&(o?.extends?.some(fs)||o?.scorecardClassic?.levels?.some(y=>y?.extends?.some(fs))||o?.scorecard?.levels?.some(y=>y?.extends?.some(fs))))throw new Error("Configuration format not detected in extends: values must be strings.");const s=e??{source:new A.Source(t??"",JSON.stringify(o)),parsed:o},a=await A.resolveDocument({rootDocument:s,rootType:hn.ConfigRoot,externalRefResolver:r??new A.BaseResolver(Jd(o?.resolve))});let c=[],l,u="";A.isBrowser?l=[...(o?.plugins||[]).filter(b=>!et(b)),zl]:(u=Z.pathBrowserifyExports.dirname(t??""),c=a$(s,a,u),l=[...await Xm(c.map(b=>Yl(b)?b.absolutePath:b),u,i),zl]);const f=c$(s,e$(a),l,i);f.apis&&!i&&(f.apis=Object.fromEntries(Object.entries(f.apis).map(([y,b])=>{const w=Qm([f,b]);return[y,{...b,...w}]})));const h=c.length?c.map(y=>Yl(y)&&y.isModule?y.rawPath:y.absolutePath&&Z.pathBrowserifyExports.relative(u,y.absolutePath)).filter(dt):void 0;return{resolvedConfig:{...f,plugins:h},resolvedRefMap:a,plugins:l}}function w$(e){for(const t of Wd)(void 0)(Z.pathBrowserifyExports.resolve(e,t))}function Yl(e){return"isModule"in e}const ca=(e,t,r)=>{if(!et(e))return e;(void 0)(Z.pathBrowserifyExports.resolve(Z.pathBrowserifyExports.dirname(t),e));try{return{absolutePath:Z.module.createRequire((typeof document>"u"?require("url").pathToFileURL(__filename).href:Dt&&Dt.tagName.toUpperCase()==="SCRIPT"&&Dt.src||new URL("replay-lint-4XFKTmSY.js",document.baseURI).href)??__dirname).resolve(e,{paths:[r,(typeof document>"u"?require("url").pathToFileURL(__filename).href:Dt&&Dt.tagName.toUpperCase()==="SCRIPT"&&Dt.src||new URL("replay-lint-4XFKTmSY.js",document.baseURI).href)?Z.pathBrowserifyExports.dirname((void 0)(typeof document>"u"?require("url").pathToFileURL(__filename).href:Dt&&Dt.tagName.toUpperCase()==="SCRIPT"&&Dt.src||new URL("replay-lint-4XFKTmSY.js",document.baseURI).href)):__dirname]}),isModule:!0,rawPath:e}}catch{throw new Error(`Plugin "${e}" not found.`)}};async function Xm(e,t,r=!1){if(!e)return[];const n=async c=>{if(!et(c))return c;try{const l=Z.pathBrowserifyExports.isAbsolute(c)?c:ca(c,Z.pathBrowserifyExports.join(t,Vs),t).absolutePath;if(!f$(l)){const u=await b$(l),f=u.default||u,h={contentDir:t},y=Array.isArray(f)?f:[f];for(const x of y)x?.id&&Vl(x)&&Re.info(`Deprecated plugin format detected: ${x.id}
81
+ `);const b=Vl(f)?f:t$(f)?await f(h):await f?.default?.(h),w=Array.isArray(b)?b:[b];b&&h$(l,w.map(x=>({...x,path:c,absolutePath:l})))}return m$(l)}catch(l){throw new Error(`Failed to load plugin "${c}": ${l.message}
82
+
83
+ ${l.stack}`)}},i=new Map,o=w$(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=Z.pathBrowserifyExports.isAbsolute(l)?l:ca(l,Z.pathBrowserifyExports.join(t,Vs),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(A.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 f=>{if(!f)return;const h=f.id;if(typeof h!="string")throw new Error(Ne.red(`Plugin must define \`id\` property in ${Ne.blue(c.toString())}.`));const y=f.absolutePath??c.toString(),b=i.get(h);if(b){if(y!==b)throw new Error(Ne.red(`Plugin "id" must be unique. Plugin ${Ne.blue(y)} uses id "${Ne.blue(h)}" already seen in ${Ne.blue(y)}`));return}i.set(h,y);const w={id:h,...f.configs?{configs:f.configs}:{},...f.typeExtension?{typeExtension:f.typeExtension}:{}};if(f.rules){if(!f.rules.oas3&&!f.rules.oas2&&!f.rules.async2&&!f.rules.async3&&!f.rules.arazzo1&&!f.rules.overlay1&&!f.rules.openrpc1&&!f.rules.graphql)throw new Error(`Plugin rules must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo\`, \`overlay1\`, \`openrpc1\`, or \`graphql\` rules "${c}.`);w.rules={},f.rules.oas3&&(w.rules.oas3=ze(f.rules.oas3,h)),f.rules.oas2&&(w.rules.oas2=ze(f.rules.oas2,h)),f.rules.async2&&(w.rules.async2=ze(f.rules.async2,h)),f.rules.async3&&(w.rules.async3=ze(f.rules.async3,h)),f.rules.arazzo1&&(w.rules.arazzo1=ze(f.rules.arazzo1,h)),f.rules.overlay1&&(w.rules.overlay1=ze(f.rules.overlay1,h)),f.rules.openrpc1&&(w.rules.openrpc1=ze(f.rules.openrpc1,h)),f.rules.graphql&&(w.rules.graphql=ze(f.rules.graphql,h))}if(f.preprocessors){if(!f.preprocessors.oas3&&!f.preprocessors.oas2&&!f.preprocessors.async2&&!f.preprocessors.async3&&!f.preprocessors.arazzo1&&!f.preprocessors.overlay1&&!f.preprocessors.openrpc1)throw new Error(`Plugin \`preprocessors\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` preprocessors "${c}.`);w.preprocessors={},f.preprocessors.oas3&&(w.preprocessors.oas3=ze(f.preprocessors.oas3,h)),f.preprocessors.oas2&&(w.preprocessors.oas2=ze(f.preprocessors.oas2,h)),f.preprocessors.async2&&(w.preprocessors.async2=ze(f.preprocessors.async2,h)),f.preprocessors.async3&&(w.preprocessors.async3=ze(f.preprocessors.async3,h)),f.preprocessors.arazzo1&&(w.preprocessors.arazzo1=ze(f.preprocessors.arazzo1,h)),f.preprocessors.overlay1&&(w.preprocessors.overlay1=ze(f.preprocessors.overlay1,h)),f.preprocessors.openrpc1&&(w.preprocessors.openrpc1=ze(f.preprocessors.openrpc1,h))}if(f.decorators){if(!f.decorators.oas3&&!f.decorators.oas2&&!f.decorators.async2&&!f.decorators.async3&&!f.decorators.arazzo1&&!f.decorators.overlay1&&!f.decorators.openrpc1)throw new Error(`Plugin \`decorators\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` decorators "${c}.`);w.decorators={},f.decorators.oas3&&(w.decorators.oas3=ze(f.decorators.oas3,h)),f.decorators.oas2&&(w.decorators.oas2=ze(f.decorators.oas2,h)),f.decorators.async2&&(w.decorators.async2=ze(f.decorators.async2,h)),f.decorators.async3&&(w.decorators.async3=ze(f.decorators.async3,h)),f.decorators.arazzo1&&(w.decorators.arazzo1=ze(f.decorators.arazzo1,h)),f.decorators.overlay1&&(w.decorators.overlay1=ze(f.decorators.overlay1,h)),f.decorators.openrpc1&&(w.decorators.openrpc1=ze(f.decorators.openrpc1,h))}return f.assertions&&(w.assertions=f.assertions),{...f,...w}}))).filter(dt)}))).filter(dt).flat()}function S$(e,t){const{pluginId:r,configName:n}=XR(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 E$(e,t){const r=Object.create(null);for(const n of Object.keys(e)){const i=e[n],o=A.isAbsoluteUrl(n)?n:A.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 Zm(e,t){const r=e?A.getDir(e):A.isBrowser?"":process.cwd(),n=r?A.resolvePath(r,io):io,i=await t.resolveDocument(null,n,!0);return i instanceof Error||!i.parsed?{}:E$(i.parsed||{},r)}async function x$(e={}){const{configPath:t=void 0,customExtends:r,externalRefResolver:n,skipPluginEval:i}=e,o=n??new A.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 Jm({rawConfigDocument:s?eh(s):void 0,customExtends:r,configPath:t,externalRefResolver:n,skipPluginEval:i}),u=await Zm(t,o);return new yn(a,{configPath:t,document:s,resolvedRefMap:c,plugins:l,ignore:u})}function T$(e){}async function P$(e,{configPath:t,externalRefResolver:r,ignore:n}={}){const i=typeof e=="string"?e:"",o=A.makeDocumentFromString(i,t??"");typeof e!="string"&&e&&(o.parsed=e);const{resolvedConfig:s,resolvedRefMap:a,plugins:c}=await Jm({rawConfigDocument:eh(o),configPath:t,externalRefResolver:r});return new yn(s,{configPath:t,document:o,resolvedRefMap:a,plugins:c,ignore:n})}function eh(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 ms={},wt={},hs={},Ql;function Lo(){return Ql||(Ql=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,f={key:c,value:l,startPosition:c.startPosition,endPosition:u,kind:t.MAPPING,parent:null,errors:[]};return f}e.newMapping=r;function n(c,l,u,f){return{errors:[],referencesAnchor:c,value:f,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})(hs)),hs}var Lt={},Wl;function Mr(){if(Wl)return Lt;Wl=1,Object.defineProperty(Lt,"__esModule",{value:!0});function e(s){return typeof s>"u"||s===null}Lt.isNothing=e;function t(s){return typeof s=="object"&&s!==null}Lt.isObject=t;function r(s){return Array.isArray(s)?s:e(s)?[]:[s]}Lt.toArray=r;function n(s,a){var c,l,u,f;if(a)for(f=Object.keys(a),c=0,l=f.length;c<l;c+=1)u=f[c],s[u]=a[u];return s}Lt.extend=n;function i(s,a){var c="",l;for(l=0;l<a;l+=1)c+=s;return c}Lt.repeat=i;function o(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}return Lt.isNegativeZero=o,Lt}var ys,Jl;function On(){if(Jl)return ys;Jl=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 ys=e,ys}var gs,Xl;function O$(){if(Xl)return gs;Xl=1;var e=Mr(),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
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
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
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 ms=t,ms}var Li={},Ui={},Wl;function nt(){if(Wl)return Ui;Wl=1,Object.defineProperty(Ui,"__esModule",{value:!0});var e=xn(),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 Ui.Type=i,Ui}var Jl;function Tn(){if(Jl)return Li;Jl=1,Object.defineProperty(Li,"__esModule",{value:!0});var e=jr(),t=xn(),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(f,y){f.tag===u.tag&&l.push(y)}),c.push(u)}),c.filter(function(u,f){return l.indexOf(f)===-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 Li.Schema=o,Li}var hs,Xl;function y$(){if(Xl)return hs;Xl=1;var e=nt();return hs=new e.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),hs}var ys,Zl;function g$(){if(Zl)return ys;Zl=1;var e=nt();return ys=new e.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),ys}var gs,eu;function v$(){if(eu)return gs;eu=1;var e=nt();return gs=new e.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),gs}var vs,tu;function b$(){if(tu)return vs;tu=1;var e=Tn();return vs=new e.Schema({explicit:[y$(),g$(),v$()]}),vs}var bs,ru;function w$(){if(ru)return bs;ru=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 bs=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"}),bs}var ws,nu;function S$(){if(nu)return ws;nu=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 ws=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"}),ws}var Ss,iu;function E$(){if(iu)return Ss;iu=1;var e=jr(),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,f=!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;f=!0}return f}if(y==="x"){for(u++;u<l;u++)if(y=c[u],y!=="_"){if(!r(c.charCodeAt(u)))return!1;f=!0}return f}for(;u<l;u++)if(y=c[u],y!=="_"){if(!n(c.charCodeAt(u)))return!1;f=!0}return f}for(;u<l;u++)if(y=c[u],y!=="_"){if(y===":")break;if(!i(c.charCodeAt(u)))return!1;f=!0}return f?y!==":"?!0:/^(:[0-5]?[0-9])+$/.test(c.slice(u)):!1}function s(c){var l=c,u=1,f,y,h=[];return l.indexOf("_")!==-1&&(l=l.replace(/_/g,"")),f=l[0],(f==="-"||f==="+")&&(f==="-"&&(u=-1),l=l.slice(1),f=l[0]),l==="0"?0:f==="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(b){h.unshift(parseInt(b,10))}),l=0,y=1,h.forEach(function(b){l+=b*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 Ss=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"]}}),Ss}var Es,ou;function x$(){if(ou)return Es;ou=1;var e=jr(),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,f;return c=a.replace(/_/g,"").toLowerCase(),l=c[0]==="-"?-1:1,f=[],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){f.unshift(parseFloat(y,10))}),c=0,u=1,f.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 Es=new t.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:n,construct:i,predicate:s,represent:o,defaultStyle:"lowercase"}),Es}var xs,su;function T$(){if(su)return xs;su=1;var e=Tn();return xs=new e.Schema({include:[b$()],implicit:[w$(),S$(),E$(),x$()]}),xs}var Ts,au;function P$(){if(au)return Ts;au=1;var e=Tn();return Ts=new e.Schema({include:[T$()]}),Ts}var Ps,cu;function O$(){if(cu)return Ps;cu=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,f,y,h=0,b=null,w,E,T;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],f=+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]&&(w=+s[10],E=+(s[11]||0),b=(w*60+E)*6e4,s[9]==="-"&&(b=-b)),T=new Date(Date.UTC(a,c,l,u,f,y,h)),b&&T.setTime(T.getTime()-b),T}function i(o){return o.toISOString()}return Ps=new e.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:r,construct:n,instanceOf:Date,represent:i}),Ps}var Os,pu;function I$(){if(pu)return Os;pu=1;var e=nt();function t(r){return r==="<<"||r===null}return Os=new e.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),Os}var Is={},zr={},lu;function _$(){if(lu)return zr;lu=1,zr.byteLength=a,zr.toByteArray=l,zr.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 b=h.length;if(b%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=h.indexOf("=");w===-1&&(w=b);var E=w===b?0:4-w%4;return[w,E]}function a(h){var b=s(h),w=b[0],E=b[1];return(w+E)*3/4-E}function c(h,b,w){return(b+w)*3/4-w}function l(h){var b,w=s(h),E=w[0],T=w[1],I=new r(c(h,E,T)),v=0,x=T>0?E-4:E,g;for(g=0;g<x;g+=4)b=t[h.charCodeAt(g)]<<18|t[h.charCodeAt(g+1)]<<12|t[h.charCodeAt(g+2)]<<6|t[h.charCodeAt(g+3)],I[v++]=b>>16&255,I[v++]=b>>8&255,I[v++]=b&255;return T===2&&(b=t[h.charCodeAt(g)]<<2|t[h.charCodeAt(g+1)]>>4,I[v++]=b&255),T===1&&(b=t[h.charCodeAt(g)]<<10|t[h.charCodeAt(g+1)]<<4|t[h.charCodeAt(g+2)]>>2,I[v++]=b>>8&255,I[v++]=b&255),I}function u(h){return e[h>>18&63]+e[h>>12&63]+e[h>>6&63]+e[h&63]}function f(h,b,w){for(var E,T=[],I=b;I<w;I+=3)E=(h[I]<<16&16711680)+(h[I+1]<<8&65280)+(h[I+2]&255),T.push(u(E));return T.join("")}function y(h){for(var b,w=h.length,E=w%3,T=[],I=16383,v=0,x=w-E;v<x;v+=I)T.push(f(h,v,v+I>x?x:v+I));return E===1?(b=h[w-1],T.push(e[b>>2]+e[b<<4&63]+"==")):E===2&&(b=(h[w-2]<<8)+h[w-1],T.push(e[b>>10]+e[b>>4&63]+e[b<<2&63]+"=")),T.join("")}return zr}var Fi={};var uu;function A$(){return uu||(uu=1,Fi.read=function(e,t,r,n,i){var o,s,a=i*8-n-1,c=(1<<a)-1,l=c>>1,u=-7,f=r?i-1:0,y=r?-1:1,h=e[t+f];for(f+=y,o=h&(1<<-u)-1,h>>=-u,u+=a;u>0;o=o*256+e[t+f],f+=y,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=n;u>0;s=s*256+e[t+f],f+=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)},Fi.write=function(e,t,r,n,i,o){var s,a,c,l=o*8-i-1,u=(1<<l)-1,f=u>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,b=n?1:-1,w=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+f>=1?t+=y/c:t+=y*Math.pow(2,1-f),t*c>=2&&(s++,c/=2),s+f>=u?(a=0,s=u):s+f>=1?(a=(t*c-1)*Math.pow(2,i),s=s+f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[r+h]=a&255,h+=b,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;e[r+h]=s&255,h+=b,s/=256,l-=8);e[r+h-b]|=w*128}),Fi}var du;function R$(){return du||(du=1,(function(e){const t=_$(),r=A$(),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,m){if(typeof p=="number"){if(typeof d=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(p)}return c(p,d,m)}a.poolSize=8192;function c(p,d,m){if(typeof p=="string")return y(p,d);if(ArrayBuffer.isView(p))return b(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 w(p,d,m);if(typeof p=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const P=p.valueOf&&p.valueOf();if(P!=null&&P!==p)return a.from(P,d,m);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,m);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,m){return c(p,d,m)},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,m){return l(p),p<=0?s(p):d!==void 0?typeof m=="string"?s(p).fill(d,m):s(p).fill(d):s(p)}a.alloc=function(p,d,m){return u(p,d,m)};function f(p){return l(p),s(p<0?0:T(p)|0)}a.allocUnsafe=function(p){return f(p)},a.allocUnsafeSlow=function(p){return f(p)};function y(p,d){if((typeof d!="string"||d==="")&&(d="utf8"),!a.isEncoding(d))throw new TypeError("Unknown encoding: "+d);const m=v(p,d)|0;let P=s(m);const R=P.write(p,d);return R!==m&&(P=P.slice(0,R)),P}function h(p){const d=p.length<0?0:T(p.length)|0,m=s(d);for(let P=0;P<d;P+=1)m[P]=p[P]&255;return m}function b(p){if(le(p,Uint8Array)){const d=new Uint8Array(p);return w(d.buffer,d.byteOffset,d.byteLength)}return h(p)}function w(p,d,m){if(d<0||p.byteLength<d)throw new RangeError('"offset" is outside of buffer bounds');if(p.byteLength<d+(m||0))throw new RangeError('"length" is outside of buffer bounds');let P;return d===void 0&&m===void 0?P=new Uint8Array(p):m===void 0?P=new Uint8Array(p,d):P=new Uint8Array(p,d,m),Object.setPrototypeOf(P,a.prototype),P}function E(p){if(a.isBuffer(p)){const d=T(p.length)|0,m=s(d);return m.length===0||p.copy(m,0,0,d),m}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 T(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,m){if(le(d,Uint8Array)&&(d=a.from(d,d.offset,d.byteLength)),le(m,Uint8Array)&&(m=a.from(m,m.offset,m.byteLength)),!a.isBuffer(d)||!a.isBuffer(m))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(d===m)return 0;let P=d.length,R=m.length;for(let N=0,L=Math.min(P,R);N<L;++N)if(d[N]!==m[N]){P=d[N],R=m[N];break}return P<R?-1:R<P?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,m){if(!Array.isArray(d))throw new TypeError('"list" argument must be an Array of Buffers');if(d.length===0)return a.alloc(0);let P;if(m===void 0)for(m=0,P=0;P<d.length;++P)m+=d[P].length;const R=a.allocUnsafe(m);let N=0;for(P=0;P<d.length;++P){let L=d[P];if(le(L,Uint8Array))N+L.length>R.length?(a.isBuffer(L)||(L=a.from(L)),L.copy(R,N)):Uint8Array.prototype.set.call(R,L,N);else if(a.isBuffer(L))L.copy(R,N);else throw new TypeError('"list" argument must be an Array of Buffers');N+=L.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 m=p.length,P=arguments.length>2&&arguments[2]===!0;if(!P&&m===0)return 0;let R=!1;for(;;)switch(d){case"ascii":case"latin1":case"binary":return m;case"utf8":case"utf-8":return q(p).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m*2;case"hex":return m>>>1;case"base64":return ne(p).length;default:if(R)return P?-1:q(p).length;d=(""+d).toLowerCase(),R=!0}}a.byteLength=v;function x(p,d,m){let P=!1;if((d===void 0||d<0)&&(d=0),d>this.length||((m===void 0||m>this.length)&&(m=this.length),m<=0)||(m>>>=0,d>>>=0,m<=d))return"";for(p||(p="utf8");;)switch(p){case"hex":return Te(this,d,m);case"utf8":case"utf-8":return Y(this,d,m);case"ascii":return Oe(this,d,m);case"latin1":case"binary":return de(this,d,m);case"base64":return U(this,d,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,d,m);default:if(P)throw new TypeError("Unknown encoding: "+p);p=(p+"").toLowerCase(),P=!0}}a.prototype._isBuffer=!0;function g(p,d,m){const P=p[d];p[d]=p[m],p[m]=P}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 m=0;m<d;m+=2)g(this,m,m+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 m=0;m<d;m+=4)g(this,m,m+3),g(this,m+1,m+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 m=0;m<d;m+=8)g(this,m,m+7),g(this,m+1,m+6),g(this,m+2,m+5),g(this,m+3,m+4);return this},a.prototype.toString=function(){const d=this.length;return d===0?"":arguments.length===0?Y(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 m=e.INSPECT_MAX_BYTES;return d=this.toString("hex",0,m).replace(/(.{2})/g,"$1 ").trim(),this.length>m&&(d+=" ... "),"<Buffer "+d+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(d,m,P,R,N){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(m===void 0&&(m=0),P===void 0&&(P=d?d.length:0),R===void 0&&(R=0),N===void 0&&(N=this.length),m<0||P>d.length||R<0||N>this.length)throw new RangeError("out of range index");if(R>=N&&m>=P)return 0;if(R>=N)return-1;if(m>=P)return 1;if(m>>>=0,P>>>=0,R>>>=0,N>>>=0,this===d)return 0;let L=N-R,re=P-m;const se=Math.min(L,re),Se=this.slice(R,N),ce=d.slice(m,P);for(let ve=0;ve<se;++ve)if(Se[ve]!==ce[ve]){L=Se[ve],re=ce[ve];break}return L<re?-1:re<L?1:0};function S(p,d,m,P,R){if(p.length===0)return-1;if(typeof m=="string"?(P=m,m=0):m>2147483647?m=2147483647:m<-2147483648&&(m=-2147483648),m=+m,ue(m)&&(m=R?0:p.length-1),m<0&&(m=p.length+m),m>=p.length){if(R)return-1;m=p.length-1}else if(m<0)if(R)m=0;else return-1;if(typeof d=="string"&&(d=a.from(d,P)),a.isBuffer(d))return d.length===0?-1:O(p,d,m,P,R);if(typeof d=="number")return d=d&255,typeof Uint8Array.prototype.indexOf=="function"?R?Uint8Array.prototype.indexOf.call(p,d,m):Uint8Array.prototype.lastIndexOf.call(p,d,m):O(p,[d],m,P,R);throw new TypeError("val must be string, number or Buffer")}function O(p,d,m,P,R){let N=1,L=p.length,re=d.length;if(P!==void 0&&(P=String(P).toLowerCase(),P==="ucs2"||P==="ucs-2"||P==="utf16le"||P==="utf-16le")){if(p.length<2||d.length<2)return-1;N=2,L/=2,re/=2,m/=2}function se(ce,ve){return N===1?ce[ve]:ce.readUInt16BE(ve*N)}let Se;if(R){let ce=-1;for(Se=m;Se<L;Se++)if(se(p,Se)===se(d,ce===-1?0:Se-ce)){if(ce===-1&&(ce=Se),Se-ce+1===re)return ce*N}else ce!==-1&&(Se-=Se-ce),ce=-1}else for(m+re>L&&(m=L-re),Se=m;Se>=0;Se--){let ce=!0;for(let ve=0;ve<re;ve++)if(se(p,Se+ve)!==se(d,ve)){ce=!1;break}if(ce)return Se}return-1}a.prototype.includes=function(d,m,P){return this.indexOf(d,m,P)!==-1},a.prototype.indexOf=function(d,m,P){return S(this,d,m,P,!0)},a.prototype.lastIndexOf=function(d,m,P){return S(this,d,m,P,!1)};function k(p,d,m,P){m=Number(m)||0;const R=p.length-m;P?(P=Number(P),P>R&&(P=R)):P=R;const N=d.length;P>N/2&&(P=N/2);let L;for(L=0;L<P;++L){const re=parseInt(d.substr(L*2,2),16);if(ue(re))return L;p[m+L]=re}return L}function G(p,d,m,P){return oe(q(d,p.length-m),p,m,P)}function B(p,d,m,P){return oe(ee(d),p,m,P)}function K(p,d,m,P){return oe(ne(d),p,m,P)}function W(p,d,m,P){return oe(pe(d,p.length-m),p,m,P)}a.prototype.write=function(d,m,P,R){if(m===void 0)R="utf8",P=this.length,m=0;else if(P===void 0&&typeof m=="string")R=m,P=this.length,m=0;else if(isFinite(m))m=m>>>0,isFinite(P)?(P=P>>>0,R===void 0&&(R="utf8")):(R=P,P=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const N=this.length-m;if((P===void 0||P>N)&&(P=N),d.length>0&&(P<0||m<0)||m>this.length)throw new RangeError("Attempt to write outside buffer bounds");R||(R="utf8");let L=!1;for(;;)switch(R){case"hex":return k(this,d,m,P);case"utf8":case"utf-8":return G(this,d,m,P);case"ascii":case"latin1":case"binary":return B(this,d,m,P);case"base64":return K(this,d,m,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,d,m,P);default:if(L)throw new TypeError("Unknown encoding: "+R);R=(""+R).toLowerCase(),L=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function U(p,d,m){return d===0&&m===p.length?t.fromByteArray(p):t.fromByteArray(p.slice(d,m))}function Y(p,d,m){m=Math.min(p.length,m);const P=[];let R=d;for(;R<m;){const N=p[R];let L=null,re=N>239?4:N>223?3:N>191?2:1;if(R+re<=m){let se,Se,ce,ve;switch(re){case 1:N<128&&(L=N);break;case 2:se=p[R+1],(se&192)===128&&(ve=(N&31)<<6|se&63,ve>127&&(L=ve));break;case 3:se=p[R+1],Se=p[R+2],(se&192)===128&&(Se&192)===128&&(ve=(N&15)<<12|(se&63)<<6|Se&63,ve>2047&&(ve<55296||ve>57343)&&(L=ve));break;case 4:se=p[R+1],Se=p[R+2],ce=p[R+3],(se&192)===128&&(Se&192)===128&&(ce&192)===128&&(ve=(N&15)<<18|(se&63)<<12|(Se&63)<<6|ce&63,ve>65535&&ve<1114112&&(L=ve))}}L===null?(L=65533,re=1):L>65535&&(L-=65536,P.push(L>>>10&1023|55296),L=56320|L&1023),P.push(L),R+=re}return we(P)}const he=4096;function we(p){const d=p.length;if(d<=he)return String.fromCharCode.apply(String,p);let m="",P=0;for(;P<d;)m+=String.fromCharCode.apply(String,p.slice(P,P+=he));return m}function Oe(p,d,m){let P="";m=Math.min(p.length,m);for(let R=d;R<m;++R)P+=String.fromCharCode(p[R]&127);return P}function de(p,d,m){let P="";m=Math.min(p.length,m);for(let R=d;R<m;++R)P+=String.fromCharCode(p[R]);return P}function Te(p,d,m){const P=p.length;(!d||d<0)&&(d=0),(!m||m<0||m>P)&&(m=P);let R="";for(let N=d;N<m;++N)R+=fe[p[N]];return R}function H(p,d,m){const P=p.slice(d,m);let R="";for(let N=0;N<P.length-1;N+=2)R+=String.fromCharCode(P[N]+P[N+1]*256);return R}a.prototype.slice=function(d,m){const P=this.length;d=~~d,m=m===void 0?P:~~m,d<0?(d+=P,d<0&&(d=0)):d>P&&(d=P),m<0?(m+=P,m<0&&(m=0)):m>P&&(m=P),m<d&&(m=d);const R=this.subarray(d,m);return Object.setPrototypeOf(R,a.prototype),R};function M(p,d,m){if(p%1!==0||p<0)throw new RangeError("offset is not uint");if(p+d>m)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(d,m,P){d=d>>>0,m=m>>>0,P||M(d,m,this.length);let R=this[d],N=1,L=0;for(;++L<m&&(N*=256);)R+=this[d+L]*N;return R},a.prototype.readUintBE=a.prototype.readUIntBE=function(d,m,P){d=d>>>0,m=m>>>0,P||M(d,m,this.length);let R=this[d+--m],N=1;for(;m>0&&(N*=256);)R+=this[d+--m]*N;return R},a.prototype.readUint8=a.prototype.readUInt8=function(d,m){return d=d>>>0,m||M(d,1,this.length),this[d]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(d,m){return d=d>>>0,m||M(d,2,this.length),this[d]|this[d+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(d,m){return d=d>>>0,m||M(d,2,this.length),this[d]<<8|this[d+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(d,m){return d=d>>>0,m||M(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,m){return d=d>>>0,m||M(d,4,this.length),this[d]*16777216+(this[d+1]<<16|this[d+2]<<8|this[d+3])},a.prototype.readBigUInt64LE=Ee(function(d){d=d>>>0,X(d,"offset");const m=this[d],P=this[d+7];(m===void 0||P===void 0)&&te(d,this.length-8);const R=m+this[++d]*2**8+this[++d]*2**16+this[++d]*2**24,N=this[++d]+this[++d]*2**8+this[++d]*2**16+P*2**24;return BigInt(R)+(BigInt(N)<<BigInt(32))}),a.prototype.readBigUInt64BE=Ee(function(d){d=d>>>0,X(d,"offset");const m=this[d],P=this[d+7];(m===void 0||P===void 0)&&te(d,this.length-8);const R=m*2**24+this[++d]*2**16+this[++d]*2**8+this[++d],N=this[++d]*2**24+this[++d]*2**16+this[++d]*2**8+P;return(BigInt(R)<<BigInt(32))+BigInt(N)}),a.prototype.readIntLE=function(d,m,P){d=d>>>0,m=m>>>0,P||M(d,m,this.length);let R=this[d],N=1,L=0;for(;++L<m&&(N*=256);)R+=this[d+L]*N;return N*=128,R>=N&&(R-=Math.pow(2,8*m)),R},a.prototype.readIntBE=function(d,m,P){d=d>>>0,m=m>>>0,P||M(d,m,this.length);let R=m,N=1,L=this[d+--R];for(;R>0&&(N*=256);)L+=this[d+--R]*N;return N*=128,L>=N&&(L-=Math.pow(2,8*m)),L},a.prototype.readInt8=function(d,m){return d=d>>>0,m||M(d,1,this.length),this[d]&128?(255-this[d]+1)*-1:this[d]},a.prototype.readInt16LE=function(d,m){d=d>>>0,m||M(d,2,this.length);const P=this[d]|this[d+1]<<8;return P&32768?P|4294901760:P},a.prototype.readInt16BE=function(d,m){d=d>>>0,m||M(d,2,this.length);const P=this[d+1]|this[d]<<8;return P&32768?P|4294901760:P},a.prototype.readInt32LE=function(d,m){return d=d>>>0,m||M(d,4,this.length),this[d]|this[d+1]<<8|this[d+2]<<16|this[d+3]<<24},a.prototype.readInt32BE=function(d,m){return d=d>>>0,m||M(d,4,this.length),this[d]<<24|this[d+1]<<16|this[d+2]<<8|this[d+3]},a.prototype.readBigInt64LE=Ee(function(d){d=d>>>0,X(d,"offset");const m=this[d],P=this[d+7];(m===void 0||P===void 0)&&te(d,this.length-8);const R=this[d+4]+this[d+5]*2**8+this[d+6]*2**16+(P<<24);return(BigInt(R)<<BigInt(32))+BigInt(m+this[++d]*2**8+this[++d]*2**16+this[++d]*2**24)}),a.prototype.readBigInt64BE=Ee(function(d){d=d>>>0,X(d,"offset");const m=this[d],P=this[d+7];(m===void 0||P===void 0)&&te(d,this.length-8);const R=(m<<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+P)}),a.prototype.readFloatLE=function(d,m){return d=d>>>0,m||M(d,4,this.length),r.read(this,d,!0,23,4)},a.prototype.readFloatBE=function(d,m){return d=d>>>0,m||M(d,4,this.length),r.read(this,d,!1,23,4)},a.prototype.readDoubleLE=function(d,m){return d=d>>>0,m||M(d,8,this.length),r.read(this,d,!0,52,8)},a.prototype.readDoubleBE=function(d,m){return d=d>>>0,m||M(d,8,this.length),r.read(this,d,!1,52,8)};function Q(p,d,m,P,R,N){if(!a.isBuffer(p))throw new TypeError('"buffer" argument must be a Buffer instance');if(d>R||d<N)throw new RangeError('"value" argument is out of bounds');if(m+P>p.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(d,m,P,R){if(d=+d,m=m>>>0,P=P>>>0,!R){const re=Math.pow(2,8*P)-1;Q(this,d,m,P,re,0)}let N=1,L=0;for(this[m]=d&255;++L<P&&(N*=256);)this[m+L]=d/N&255;return m+P},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(d,m,P,R){if(d=+d,m=m>>>0,P=P>>>0,!R){const re=Math.pow(2,8*P)-1;Q(this,d,m,P,re,0)}let N=P-1,L=1;for(this[m+N]=d&255;--N>=0&&(L*=256);)this[m+N]=d/L&255;return m+P},a.prototype.writeUint8=a.prototype.writeUInt8=function(d,m,P){return d=+d,m=m>>>0,P||Q(this,d,m,1,255,0),this[m]=d&255,m+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(d,m,P){return d=+d,m=m>>>0,P||Q(this,d,m,2,65535,0),this[m]=d&255,this[m+1]=d>>>8,m+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(d,m,P){return d=+d,m=m>>>0,P||Q(this,d,m,2,65535,0),this[m]=d>>>8,this[m+1]=d&255,m+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(d,m,P){return d=+d,m=m>>>0,P||Q(this,d,m,4,4294967295,0),this[m+3]=d>>>24,this[m+2]=d>>>16,this[m+1]=d>>>8,this[m]=d&255,m+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(d,m,P){return d=+d,m=m>>>0,P||Q(this,d,m,4,4294967295,0),this[m]=d>>>24,this[m+1]=d>>>16,this[m+2]=d>>>8,this[m+3]=d&255,m+4};function z(p,d,m,P,R){F(d,P,R,p,m,7);let N=Number(d&BigInt(4294967295));p[m++]=N,N=N>>8,p[m++]=N,N=N>>8,p[m++]=N,N=N>>8,p[m++]=N;let L=Number(d>>BigInt(32)&BigInt(4294967295));return p[m++]=L,L=L>>8,p[m++]=L,L=L>>8,p[m++]=L,L=L>>8,p[m++]=L,m}function _(p,d,m,P,R){F(d,P,R,p,m,7);let N=Number(d&BigInt(4294967295));p[m+7]=N,N=N>>8,p[m+6]=N,N=N>>8,p[m+5]=N,N=N>>8,p[m+4]=N;let L=Number(d>>BigInt(32)&BigInt(4294967295));return p[m+3]=L,L=L>>8,p[m+2]=L,L=L>>8,p[m+1]=L,L=L>>8,p[m]=L,m+8}a.prototype.writeBigUInt64LE=Ee(function(d,m=0){return z(this,d,m,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Ee(function(d,m=0){return _(this,d,m,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(d,m,P,R){if(d=+d,m=m>>>0,!R){const se=Math.pow(2,8*P-1);Q(this,d,m,P,se-1,-se)}let N=0,L=1,re=0;for(this[m]=d&255;++N<P&&(L*=256);)d<0&&re===0&&this[m+N-1]!==0&&(re=1),this[m+N]=(d/L>>0)-re&255;return m+P},a.prototype.writeIntBE=function(d,m,P,R){if(d=+d,m=m>>>0,!R){const se=Math.pow(2,8*P-1);Q(this,d,m,P,se-1,-se)}let N=P-1,L=1,re=0;for(this[m+N]=d&255;--N>=0&&(L*=256);)d<0&&re===0&&this[m+N+1]!==0&&(re=1),this[m+N]=(d/L>>0)-re&255;return m+P},a.prototype.writeInt8=function(d,m,P){return d=+d,m=m>>>0,P||Q(this,d,m,1,127,-128),d<0&&(d=255+d+1),this[m]=d&255,m+1},a.prototype.writeInt16LE=function(d,m,P){return d=+d,m=m>>>0,P||Q(this,d,m,2,32767,-32768),this[m]=d&255,this[m+1]=d>>>8,m+2},a.prototype.writeInt16BE=function(d,m,P){return d=+d,m=m>>>0,P||Q(this,d,m,2,32767,-32768),this[m]=d>>>8,this[m+1]=d&255,m+2},a.prototype.writeInt32LE=function(d,m,P){return d=+d,m=m>>>0,P||Q(this,d,m,4,2147483647,-2147483648),this[m]=d&255,this[m+1]=d>>>8,this[m+2]=d>>>16,this[m+3]=d>>>24,m+4},a.prototype.writeInt32BE=function(d,m,P){return d=+d,m=m>>>0,P||Q(this,d,m,4,2147483647,-2147483648),d<0&&(d=4294967295+d+1),this[m]=d>>>24,this[m+1]=d>>>16,this[m+2]=d>>>8,this[m+3]=d&255,m+4},a.prototype.writeBigInt64LE=Ee(function(d,m=0){return z(this,d,m,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Ee(function(d,m=0){return _(this,d,m,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function C(p,d,m,P,R,N){if(m+P>p.length)throw new RangeError("Index out of range");if(m<0)throw new RangeError("Index out of range")}function $(p,d,m,P,R){return d=+d,m=m>>>0,R||C(p,d,m,4),r.write(p,d,m,P,23,4),m+4}a.prototype.writeFloatLE=function(d,m,P){return $(this,d,m,!0,P)},a.prototype.writeFloatBE=function(d,m,P){return $(this,d,m,!1,P)};function j(p,d,m,P,R){return d=+d,m=m>>>0,R||C(p,d,m,8),r.write(p,d,m,P,52,8),m+8}a.prototype.writeDoubleLE=function(d,m,P){return j(this,d,m,!0,P)},a.prototype.writeDoubleBE=function(d,m,P){return j(this,d,m,!1,P)},a.prototype.copy=function(d,m,P,R){if(!a.isBuffer(d))throw new TypeError("argument should be a Buffer");if(P||(P=0),!R&&R!==0&&(R=this.length),m>=d.length&&(m=d.length),m||(m=0),R>0&&R<P&&(R=P),R===P||d.length===0||this.length===0)return 0;if(m<0)throw new RangeError("targetStart out of bounds");if(P<0||P>=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-m<R-P&&(R=d.length-m+P);const N=R-P;return this===d&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(m,P,R):Uint8Array.prototype.set.call(d,this.subarray(P,R),m),N},a.prototype.fill=function(d,m,P,R){if(typeof d=="string"){if(typeof m=="string"?(R=m,m=0,P=this.length):typeof P=="string"&&(R=P,P=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 L=d.charCodeAt(0);(R==="utf8"&&L<128||R==="latin1")&&(d=L)}}else typeof d=="number"?d=d&255:typeof d=="boolean"&&(d=Number(d));if(m<0||this.length<m||this.length<P)throw new RangeError("Out of range index");if(P<=m)return this;m=m>>>0,P=P===void 0?this.length:P>>>0,d||(d=0);let N;if(typeof d=="number")for(N=m;N<P;++N)this[N]=d;else{const L=a.isBuffer(d)?d:a.from(d,R),re=L.length;if(re===0)throw new TypeError('The value "'+d+'" is invalid for argument "value"');for(N=0;N<P-m;++N)this[N+m]=L[N%re]}return this};const V={};function J(p,d,m){V[p]=class extends m{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}`}}}J("ERR_BUFFER_OUT_OF_BOUNDS",function(p){return p?`${p} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),J("ERR_INVALID_ARG_TYPE",function(p,d){return`The "${p}" argument must be of type number. Received type ${typeof d}`},TypeError),J("ERR_OUT_OF_RANGE",function(p,d,m){let P=`The value of "${p}" is out of range.`,R=m;return Number.isInteger(m)&&Math.abs(m)>2**32?R=ae(String(m)):typeof m=="bigint"&&(R=String(m),(m>BigInt(2)**BigInt(32)||m<-(BigInt(2)**BigInt(32)))&&(R=ae(R)),R+="n"),P+=` It must be ${d}. Received ${R}`,P},RangeError);function ae(p){let d="",m=p.length;const P=p[0]==="-"?1:0;for(;m>=P+4;m-=3)d=`_${p.slice(m-3,m)}${d}`;return`${p.slice(0,m)}${d}`}function D(p,d,m){X(d,"offset"),(p[d]===void 0||p[d+m]===void 0)&&te(d,p.length-(m+1))}function F(p,d,m,P,R,N){if(p>m||p<d){const L=typeof d=="bigint"?"n":"";let re;throw d===0||d===BigInt(0)?re=`>= 0${L} and < 2${L} ** ${(N+1)*8}${L}`:re=`>= -(2${L} ** ${(N+1)*8-1}${L}) and < 2 ** ${(N+1)*8-1}${L}`,new V.ERR_OUT_OF_RANGE("value",re,p)}D(P,R,N)}function X(p,d){if(typeof p!="number")throw new V.ERR_INVALID_ARG_TYPE(d,"number",p)}function te(p,d,m){throw Math.floor(p)!==p?(X(p,m),new V.ERR_OUT_OF_RANGE("offset","an integer",p)):d<0?new V.ERR_BUFFER_OUT_OF_BOUNDS:new V.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${d}`,p)}const ge=/[^+/0-9A-Za-z-_]/g;function be(p){if(p=p.split("=")[0],p=p.trim().replace(ge,""),p.length<2)return"";for(;p.length%4!==0;)p=p+"=";return p}function q(p,d){d=d||1/0;let m;const P=p.length;let R=null;const N=[];for(let L=0;L<P;++L){if(m=p.charCodeAt(L),m>55295&&m<57344){if(!R){if(m>56319){(d-=3)>-1&&N.push(239,191,189);continue}else if(L+1===P){(d-=3)>-1&&N.push(239,191,189);continue}R=m;continue}if(m<56320){(d-=3)>-1&&N.push(239,191,189),R=m;continue}m=(R-55296<<10|m-56320)+65536}else R&&(d-=3)>-1&&N.push(239,191,189);if(R=null,m<128){if((d-=1)<0)break;N.push(m)}else if(m<2048){if((d-=2)<0)break;N.push(m>>6|192,m&63|128)}else if(m<65536){if((d-=3)<0)break;N.push(m>>12|224,m>>6&63|128,m&63|128)}else if(m<1114112){if((d-=4)<0)break;N.push(m>>18|240,m>>12&63|128,m>>6&63|128,m&63|128)}else throw new Error("Invalid code point")}return N}function ee(p){const d=[];for(let m=0;m<p.length;++m)d.push(p.charCodeAt(m)&255);return d}function pe(p,d){let m,P,R;const N=[];for(let L=0;L<p.length&&!((d-=2)<0);++L)m=p.charCodeAt(L),P=m>>8,R=m%256,N.push(R),N.push(P);return N}function ne(p){return t.toByteArray(be(p))}function oe(p,d,m,P){let R;for(R=0;R<P&&!(R+m>=d.length||R>=p.length);++R)d[R+m]=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 m=0;m<16;++m){const P=m*16;for(let R=0;R<16;++R)d[P+R]=p[m]+p[R]}return d})();function Ee(p){return typeof BigInt>"u"?Be:p}function Be(){throw new Error("BigInt not supported")}})(Is)),Is}var _s,fu;function $$(){if(fu)return _s;fu=1;var e=R$().Buffer,t=nt(),r=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
88
- \r`;function n(a){if(a===null)return!1;var c,l,u=0,f=a.length,y=r;for(l=0;l<f;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,""),f=u.length,y=r,h=0,b=[];for(c=0;c<f;c++)c%4===0&&c&&(b.push(h>>16&255),b.push(h>>8&255),b.push(h&255)),h=h<<6|y.indexOf(u.charAt(c));return l=f%4*6,l===0?(b.push(h>>16&255),b.push(h>>8&255),b.push(h&255)):l===18?(b.push(h>>10&255),b.push(h>>2&255)):l===12&&b.push(h>>4&255),e?new e(b):b}function o(a){var c="",l=0,u,f,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 f=y%3,f===0?(c+=h[l>>18&63],c+=h[l>>12&63],c+=h[l>>6&63],c+=h[l&63]):f===2?(c+=h[l>>10&63],c+=h[l>>4&63],c+=h[l<<2&63],c+=h[64]):f===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 _s=new t.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:n,construct:i,predicate:s,represent:o}),_s}var As,mu;function N$(){if(mu)return As;mu=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,f,y=o;for(a=0,c=y.length;a<c;a+=1){if(l=y[a],f=!1,r.call(l)!=="[object Object]")return!1;for(u in l)if(t.call(l,u))if(!f)f=!0;else return!1;if(!f)return!1;if(s.indexOf(u)===-1)s.push(u);else return!1}return!0}function i(o){return o!==null?o:[]}return As=new e.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:n,construct:i}),As}var Rs,hu;function k$(){if(hu)return Rs;hu=1;var e=nt(),t=Co(),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],f=u.mappings[0],y=t.newItems();y.parent=c,y.startPosition=f.key.startPosition,y.endPosition=f.value.startPosition,f.key.parent=y,f.value.parent=y,y.items=[f.key,f.value],c.items.push(y)}return c}return Rs=new e.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:n,construct:i}),Rs}var $s,yu;function D$(){if(yu)return $s;yu=1;var e=nt(),t=Co();function r(i){return i===null?!0:i.kind==t.Kind.MAP}function n(i){return i!==null?i:{}}return $s=new e.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:n}),$s}var Ns,gu;function Xa(){if(gu)return Ns;gu=1;var e=Tn(),t=new e.Schema({include:[P$()],implicit:[O$(),I$()],explicit:[$$(),N$(),k$(),D$()]});return Ns=t,Ns}var ks,vu;function q$(){if(vu)return ks;vu=1;var e=nt();function t(){return!0}function r(){}function n(){return""}function i(o){return typeof o>"u"}return ks=new e.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:n}),ks}var Ds,bu;function C$(){if(bu)return Ds;bu=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 Ds=new e.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:n}),Ds}var qs,wu;function Wm(){if(wu)return qs;wu=1;var e=Tn(),t=new e.Schema({include:[Xa()],explicit:[q$(),C$()]});return e.Schema.DEFAULT=t,qs=t,qs}var Su;function j$(){if(Su)return wt;Su=1,Object.defineProperty(wt,"__esModule",{value:!0});var e=Co(),t=jr(),r=xn(),n=h$(),i=Xa(),o=Wm(),s=Object.prototype.hasOwnProperty,a=1,c=2,l=3,u=4,f=1,y=2,h=3,b=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,w=/[\x85\u2028\u2029]/,E=/[,\[\]\{\}]/,T=/^(?:!|!!|![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 G(p){return 48<=p&&p<=57?p-48:-1}function B(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 K(p){return p<=65535?String.fromCharCode(p):String.fromCharCode((p-65536>>10)+55296,(p-65536&1023)+56320)}for(var W=new Array(256),U=new Array(256),Y=new Array(256),he=new Array(256),we=0;we<256;we++)he[we]=U[we]=B(we),W[we]=U[we]?1:0,Y[we]=1,W[we]||(he[we]="\\"+String.fromCharCode(we));var Oe=(function(){function p(d,m){this.errorMap={},this.errors=[],this.lines=[],this.input=d,this.filename=m.filename||null,this.schema=m.schema||o,this.onWarning=m.onWarning||null,this.legacy=m.legacy||!1,this.allowAnyEscape=m.allowAnyEscape||!1,this.ignoreDuplicateKeys=m.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=d.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}return p})();function de(p,d,m){return m===void 0&&(m=!1),new r(d,new n(p.filename,p.input,p.position,p.line,p.position-p.lineStart),m)}function Te(p,d,m,P,R){P===void 0&&(P=!1),R===void 0&&(R=!1);var N=$(p,d);if(N){var L=m+d;if(!p.errorMap[L]){var re=new n(p.filename,p.input,d,N.line,d-N.start);R&&(re.toLineEnd=!0);var se=new r(m,re,P);p.errors.push(se)}}}function H(p,d){var m=de(p,d),P=m.message+m.mark.position;if(!p.errorMap[P]){p.errors.push(m),p.errorMap[P]=1;for(var R=p.position;;){if(p.position>=p.input.length-1)return;var N=p.input.charAt(p.position);if(N==`
90
- `){p.position--,p.position==R&&(p.position+=1);return}if(N=="\r"){p.position--,p.position==R&&(p.position+=1);return}p.position++}}}function M(p,d){var m=de(p,d);p.onWarning&&p.onWarning.call(null,m)}var Q={YAML:function(d,m,P){var R,N,L;d.version!==null&&H(d,"duplication of %YAML directive"),P.length!==1&&H(d,"YAML directive accepts exactly one argument"),R=/^([0-9]+)\.([0-9]+)$/.exec(P[0]),R===null&&H(d,"ill-formed argument of the YAML directive"),N=parseInt(R[1],10),L=parseInt(R[2],10),N!==1&&H(d,"found incompatible YAML document (version 1.2 is required)"),d.version=P[0],d.checkLineBreaks=L<2,L!==2&&H(d,"found incompatible YAML document (version 1.2 is required)")},TAG:function(d,m,P){var R,N;P.length!==2&&H(d,"TAG directive accepts exactly two arguments"),R=P[0],N=P[1],T.test(R)||H(d,"ill-formed tag handle (first argument) of the TAG directive"),s.call(d.tagMap,R)&&H(d,'there is a previously declared suffix for "'+R+'" tag handle'),I.test(N)||H(d,"ill-formed tag prefix (second argument) of the TAG directive"),d.tagMap[R]=N}};function z(p,d,m,P){var R,N,L,re,se=p.result;if(se.startPosition==-1&&(se.startPosition=d),d<=m){if(re=p.input.slice(d,m),P)for(R=0,N=re.length;R<N;R+=1)L=re.charCodeAt(R),L===9||32<=L&&L<=1114111||H(p,"expected valid JSON character");else b.test(re)&&H(p,"the stream contains non-printable characters");se.value+=re,se.endPosition=m}}function _(p,d,m,P,R){if(P!=null){d===null&&(d={startPosition:P.startPosition,endPosition:R.endPosition,parent:null,errors:[],mappings:[],kind:e.Kind.MAP});var N=e.newMapping(P,R);return N.parent=d,P.parent=N,R!=null&&(R.parent=N),!p.ignoreDuplicateKeys&&d.mappings.forEach(function(L){L.key&&L.key.value===(N.key&&N.key.value)&&(Te(p,N.key.startPosition,"duplicate key"),Te(p,L.key.startPosition,"duplicate key"))}),d.mappings.push(N),d.endPosition=R?R.endPosition:P.endPosition+1,d}}function C(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++):H(p,"a line break is expected"),p.line+=1,p.lineStart=p.position,p.lines.push({start:p.lineStart,line:p.line})}function $(p,d){for(var m,P=0;P<p.lines.length&&!(p.lines[P].start>d);P++)m=p.lines[P];return m||{start:0,line:0}}function j(p,d,m){for(var P=0,R=p.input.charCodeAt(p.position);R!==0;){for(;x(R);)R===9&&p.errors.push(de(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(C(p),R=p.input.charCodeAt(p.position),P++,p.lineIndent=0;R===32;)p.lineIndent++,R=p.input.charCodeAt(++p.position);else break}return m!==-1&&P!==0&&p.lineIndent<m&&M(p,"deficient indentation"),P}function V(p){var d=p.position,m;return m=p.input.charCodeAt(d),!!((m===45||m===46)&&p.input.charCodeAt(d+1)===m&&p.input.charCodeAt(d+2)===m&&(d+=3,m=p.input.charCodeAt(d),m===0||g(m)))}function J(p,d,m){m===1?d.value+=" ":m>1&&(d.value+=t.repeat(`
91
- `,m-1))}function ae(p,d,m){var P,R,N,L,re,se,Se,ce,ve=p.kind,Ce=p.result,xe,$e=e.newScalar();if($e.plainScalar=!0,p.result=$e,xe=p.input.charCodeAt(p.position),g(xe)||S(xe)||xe===35||xe===38||xe===42||xe===33||xe===124||xe===62||xe===39||xe===34||xe===37||xe===64||xe===96||(xe===63||xe===45)&&(R=p.input.charCodeAt(p.position+1),g(R)||m&&S(R)))return!1;for(p.kind="scalar",N=L=p.position,re=!1;xe!==0;){if(xe===58){if(R=p.input.charCodeAt(p.position+1),g(R)||m&&S(R))break}else if(xe===35){if(P=p.input.charCodeAt(p.position-1),g(P))break}else{if(p.position===p.lineStart&&V(p)||m&&S(xe))break;if(v(xe))if(se=p.line,Se=p.lineStart,ce=p.lineIndent,j(p,!1,-1),p.lineIndent>=d){re=!0,xe=p.input.charCodeAt(p.position);continue}else{p.position=L,p.line=se,p.lineStart=Se,p.lineIndent=ce;break}}if(re&&(z(p,N,L,!1),J(p,$e,p.line-se),N=L=p.position,re=!1),x(xe)||(L=p.position+1),xe=p.input.charCodeAt(++p.position),p.position>=p.input.length)return!1}return z(p,N,L,!1),p.result.startPosition!=-1?($e.rawValue=p.input.substring($e.startPosition,$e.endPosition),!0):(p.kind=ve,p.result=Ce,!1)}function D(p,d){var m,P,R;if(m=p.input.charCodeAt(p.position),m!==39)return!1;var N=e.newScalar();for(N.singleQuoted=!0,p.kind="scalar",p.result=N,N.startPosition=p.position,p.position++,P=R=p.position;(m=p.input.charCodeAt(p.position))!==0;)if(m===39)if(z(p,P,p.position,!0),m=p.input.charCodeAt(++p.position),N.endPosition=p.position,m===39)P=R=p.position,p.position++;else return!0;else v(m)?(z(p,P,R,!0),J(p,N,j(p,!1,d)),P=R=p.position):p.position===p.lineStart&&V(p)?H(p,"unexpected end of the document within a single quoted scalar"):(p.position++,R=p.position,N.endPosition=p.position);H(p,"unexpected end of the stream within a single quoted scalar")}function F(p,d){var m,P,R,N,L,re;if(re=p.input.charCodeAt(p.position),re!==34)return!1;p.kind="scalar";var se=e.newScalar();for(se.doubleQuoted=!0,p.result=se,se.startPosition=p.position,p.position++,m=P=p.position;(re=p.input.charCodeAt(p.position))!==0;){if(re===34)return z(p,m,p.position,!0),p.position++,se.endPosition=p.position,se.rawValue=p.input.substring(se.startPosition,se.endPosition),!0;if(re===92){if(z(p,m,p.position,!0),re=p.input.charCodeAt(++p.position),v(re))j(p,!1,d);else if(re<256&&(p.allowAnyEscape?Y[re]:W[re]))se.value+=p.allowAnyEscape?he[re]:U[re],p.position++;else if((L=k(re))>0){for(R=L,N=0;R>0;R--)re=p.input.charCodeAt(++p.position),(L=O(re))>=0?N=(N<<4)+L:H(p,"expected hexadecimal character");se.value+=K(N),p.position++}else H(p,"unknown escape sequence");m=P=p.position}else v(re)?(z(p,m,P,!0),J(p,se,j(p,!1,d)),m=P=p.position):p.position===p.lineStart&&V(p)?H(p,"unexpected end of the document within a double quoted scalar"):(p.position++,P=p.position)}H(p,"unexpected end of the stream within a double quoted scalar")}function X(p,d){var m=!0,P,R=p.tag,N,L=p.anchor,re,se,Se,ce,ve,Ce,xe,$e,Ye;if(Ye=p.input.charCodeAt(p.position),Ye===91)se=93,ve=!1,N=e.newItems(),N.startPosition=p.position;else if(Ye===123)se=125,ve=!0,N=e.newMap(),N.startPosition=p.position;else return!1;for(p.anchor!==null&&(N.anchorId=p.anchor,p.anchorMap[p.anchor]=N),Ye=p.input.charCodeAt(++p.position);Ye!==0;){if(j(p,!0,d),Ye=p.input.charCodeAt(p.position),Ye===se)return p.position++,p.tag=R,p.anchor=L,p.kind=ve?"mapping":"sequence",p.result=N,N.endPosition=p.position,!0;if(!m){var jo=p.position;H(p,"missed comma between flow collection entries"),p.position=jo+1}if(xe=Ce=$e=null,Se=ce=!1,Ye===63&&(re=p.input.charCodeAt(p.position+1),g(re)&&(Se=ce=!0,p.position++,j(p,!0,d))),P=p.line,ne(p,d,a,!1,!0),xe=p.tag,Ce=p.result,j(p,!0,d),Ye=p.input.charCodeAt(p.position),(ce||p.line===P)&&Ye===58&&(Se=!0,Ye=p.input.charCodeAt(++p.position),j(p,!0,d),ne(p,d,a,!1,!0),$e=p.result),ve)_(p,N,xe,Ce,$e);else if(Se){var Pn=_(p,null,xe,Ce,$e);Pn.parent=N,N.items.push(Pn)}else Ce&&(Ce.parent=N),N.items.push(Ce);N.endPosition=p.position+1,j(p,!0,d),Ye=p.input.charCodeAt(p.position),Ye===44?(m=!0,Ye=p.input.charCodeAt(++p.position)):m=!1}H(p,"unexpected end of the stream within a flow collection")}function te(p,d){var m,P,R=f,N=!1,L=d,re=0,se=!1,Se,ce;if(ce=p.input.charCodeAt(p.position),ce===124)P=!1;else if(ce===62)P=!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)f===R?R=ce===43?h:y:H(p,"repeat of a chomping mode identifier");else if((Se=G(ce))>=0)Se===0?H(p,"bad explicit indentation width of a block scalar; it cannot be less than one"):N?H(p,"repeat of an indentation width identifier"):(L=d+Se-1,N=!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(C(p),p.lineIndent=0,ce=p.input.charCodeAt(p.position);(!N||p.lineIndent<L)&&ce===32;)p.lineIndent++,ce=p.input.charCodeAt(++p.position);if(!N&&p.lineIndent>L&&(L=p.lineIndent),v(ce)){re++;continue}if(p.lineIndent<L){R===h?ve.value+=t.repeat(`
87
+ `+i)),o},r})();return gs=t,gs}var Bi={},zi={},Zl;function nt(){if(Zl)return zi;Zl=1,Object.defineProperty(zi,"__esModule",{value:!0});var e=On(),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 zi.Type=i,zi}var eu;function In(){if(eu)return Bi;eu=1,Object.defineProperty(Bi,"__esModule",{value:!0});var e=Mr(),t=On(),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(f,h){f.tag===u.tag&&l.push(h)}),c.push(u)}),c.filter(function(u,f){return l.indexOf(f)===-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 Bi.Schema=o,Bi}var vs,tu;function I$(){if(tu)return vs;tu=1;var e=nt();return vs=new e.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),vs}var bs,ru;function _$(){if(ru)return bs;ru=1;var e=nt();return bs=new e.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),bs}var ws,nu;function A$(){if(nu)return ws;nu=1;var e=nt();return ws=new e.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),ws}var Ss,iu;function R$(){if(iu)return Ss;iu=1;var e=In();return Ss=new e.Schema({explicit:[I$(),_$(),A$()]}),Ss}var Es,ou;function $$(){if(ou)return Es;ou=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 Es=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"}),Es}var xs,su;function N$(){if(su)return xs;su=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 xs=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"}),xs}var Ts,au;function k$(){if(au)return Ts;au=1;var e=Mr(),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,f=!1,h;if(!l)return!1;if(h=c[u],(h==="-"||h==="+")&&(h=c[++u]),h==="0"){if(u+1===l)return!0;if(h=c[++u],h==="b"){for(u++;u<l;u++)if(h=c[u],h!=="_"){if(h!=="0"&&h!=="1")return!1;f=!0}return f}if(h==="x"){for(u++;u<l;u++)if(h=c[u],h!=="_"){if(!r(c.charCodeAt(u)))return!1;f=!0}return f}for(;u<l;u++)if(h=c[u],h!=="_"){if(!n(c.charCodeAt(u)))return!1;f=!0}return f}for(;u<l;u++)if(h=c[u],h!=="_"){if(h===":")break;if(!i(c.charCodeAt(u)))return!1;f=!0}return f?h!==":"?!0:/^(:[0-5]?[0-9])+$/.test(c.slice(u)):!1}function s(c){var l=c,u=1,f,h,y=[];return l.indexOf("_")!==-1&&(l=l.replace(/_/g,"")),f=l[0],(f==="-"||f==="+")&&(f==="-"&&(u=-1),l=l.slice(1),f=l[0]),l==="0"?0:f==="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(b){y.unshift(parseInt(b,10))}),l=0,h=1,y.forEach(function(b){l+=b*h,h*=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 Ts=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"]}}),Ts}var Ps,cu;function D$(){if(cu)return Ps;cu=1;var e=Mr(),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,f;return c=a.replace(/_/g,"").toLowerCase(),l=c[0]==="-"?-1:1,f=[],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(h){f.unshift(parseFloat(h,10))}),c=0,u=1,f.forEach(function(h){c+=h*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 Ps=new t.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:n,construct:i,predicate:s,represent:o,defaultStyle:"lowercase"}),Ps}var Os,pu;function q$(){if(pu)return Os;pu=1;var e=In();return Os=new e.Schema({include:[R$()],implicit:[$$(),N$(),k$(),D$()]}),Os}var Is,lu;function j$(){if(lu)return Is;lu=1;var e=In();return Is=new e.Schema({include:[q$()]}),Is}var _s,uu;function C$(){if(uu)return _s;uu=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,f,h,y=0,b=null,w,x,T;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],f=+s[5],h=+s[6],s[7]){for(y=s[7].slice(0,3);y.length<3;)y=y+"0";y=+y}return s[9]&&(w=+s[10],x=+(s[11]||0),b=(w*60+x)*6e4,s[9]==="-"&&(b=-b)),T=new Date(Date.UTC(a,c,l,u,f,h,y)),b&&T.setTime(T.getTime()-b),T}function i(o){return o.toISOString()}return _s=new e.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:r,construct:n,instanceOf:Date,represent:i}),_s}var As,du;function M$(){if(du)return As;du=1;var e=nt();function t(r){return r==="<<"||r===null}return As=new e.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),As}var Rs={},Kr={},fu;function L$(){if(fu)return Kr;fu=1,Kr.byteLength=a,Kr.toByteArray=l,Kr.fromByteArray=h;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(y){var b=y.length;if(b%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=y.indexOf("=");w===-1&&(w=b);var x=w===b?0:4-w%4;return[w,x]}function a(y){var b=s(y),w=b[0],x=b[1];return(w+x)*3/4-x}function c(y,b,w){return(b+w)*3/4-w}function l(y){var b,w=s(y),x=w[0],T=w[1],E=new r(c(y,x,T)),v=0,P=T>0?x-4:x,g;for(g=0;g<P;g+=4)b=t[y.charCodeAt(g)]<<18|t[y.charCodeAt(g+1)]<<12|t[y.charCodeAt(g+2)]<<6|t[y.charCodeAt(g+3)],E[v++]=b>>16&255,E[v++]=b>>8&255,E[v++]=b&255;return T===2&&(b=t[y.charCodeAt(g)]<<2|t[y.charCodeAt(g+1)]>>4,E[v++]=b&255),T===1&&(b=t[y.charCodeAt(g)]<<10|t[y.charCodeAt(g+1)]<<4|t[y.charCodeAt(g+2)]>>2,E[v++]=b>>8&255,E[v++]=b&255),E}function u(y){return e[y>>18&63]+e[y>>12&63]+e[y>>6&63]+e[y&63]}function f(y,b,w){for(var x,T=[],E=b;E<w;E+=3)x=(y[E]<<16&16711680)+(y[E+1]<<8&65280)+(y[E+2]&255),T.push(u(x));return T.join("")}function h(y){for(var b,w=y.length,x=w%3,T=[],E=16383,v=0,P=w-x;v<P;v+=E)T.push(f(y,v,v+E>P?P:v+E));return x===1?(b=y[w-1],T.push(e[b>>2]+e[b<<4&63]+"==")):x===2&&(b=(y[w-2]<<8)+y[w-1],T.push(e[b>>10]+e[b>>4&63]+e[b<<2&63]+"=")),T.join("")}return Kr}var Vi={};var mu;function U$(){return mu||(mu=1,Vi.read=function(e,t,r,n,i){var o,s,a=i*8-n-1,c=(1<<a)-1,l=c>>1,u=-7,f=r?i-1:0,h=r?-1:1,y=e[t+f];for(f+=h,o=y&(1<<-u)-1,y>>=-u,u+=a;u>0;o=o*256+e[t+f],f+=h,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=n;u>0;s=s*256+e[t+f],f+=h,u-=8);if(o===0)o=1-l;else{if(o===c)return s?NaN:(y?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-l}return(y?-1:1)*s*Math.pow(2,o-n)},Vi.write=function(e,t,r,n,i,o){var s,a,c,l=o*8-i-1,u=(1<<l)-1,f=u>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:o-1,b=n?1:-1,w=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+f>=1?t+=h/c:t+=h*Math.pow(2,1-f),t*c>=2&&(s++,c/=2),s+f>=u?(a=0,s=u):s+f>=1?(a=(t*c-1)*Math.pow(2,i),s=s+f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[r+y]=a&255,y+=b,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;e[r+y]=s&255,y+=b,s/=256,l-=8);e[r+y-b]|=w*128}),Vi}var hu;function F$(){return hu||(hu=1,(function(e){const t=L$(),r=U$(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=E,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,m){if(typeof p=="number"){if(typeof d=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(p)}return c(p,d,m)}a.poolSize=8192;function c(p,d,m){if(typeof p=="string")return h(p,d);if(ArrayBuffer.isView(p))return b(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 w(p,d,m);if(typeof p=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const O=p.valueOf&&p.valueOf();if(O!=null&&O!==p)return a.from(O,d,m);const R=x(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,m);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,m){return c(p,d,m)},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,m){return l(p),p<=0?s(p):d!==void 0?typeof m=="string"?s(p).fill(d,m):s(p).fill(d):s(p)}a.alloc=function(p,d,m){return u(p,d,m)};function f(p){return l(p),s(p<0?0:T(p)|0)}a.allocUnsafe=function(p){return f(p)},a.allocUnsafeSlow=function(p){return f(p)};function h(p,d){if((typeof d!="string"||d==="")&&(d="utf8"),!a.isEncoding(d))throw new TypeError("Unknown encoding: "+d);const m=v(p,d)|0;let O=s(m);const R=O.write(p,d);return R!==m&&(O=O.slice(0,R)),O}function y(p){const d=p.length<0?0:T(p.length)|0,m=s(d);for(let O=0;O<d;O+=1)m[O]=p[O]&255;return m}function b(p){if(le(p,Uint8Array)){const d=new Uint8Array(p);return w(d.buffer,d.byteOffset,d.byteLength)}return y(p)}function w(p,d,m){if(d<0||p.byteLength<d)throw new RangeError('"offset" is outside of buffer bounds');if(p.byteLength<d+(m||0))throw new RangeError('"length" is outside of buffer bounds');let O;return d===void 0&&m===void 0?O=new Uint8Array(p):m===void 0?O=new Uint8Array(p,d):O=new Uint8Array(p,d,m),Object.setPrototypeOf(O,a.prototype),O}function x(p){if(a.isBuffer(p)){const d=T(p.length)|0,m=s(d);return m.length===0||p.copy(m,0,0,d),m}if(p.length!==void 0)return typeof p.length!="number"||ue(p.length)?s(0):y(p);if(p.type==="Buffer"&&Array.isArray(p.data))return y(p.data)}function T(p){if(p>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return p|0}function E(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,m){if(le(d,Uint8Array)&&(d=a.from(d,d.offset,d.byteLength)),le(m,Uint8Array)&&(m=a.from(m,m.offset,m.byteLength)),!a.isBuffer(d)||!a.isBuffer(m))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(d===m)return 0;let O=d.length,R=m.length;for(let N=0,L=Math.min(O,R);N<L;++N)if(d[N]!==m[N]){O=d[N],R=m[N];break}return O<R?-1:R<O?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,m){if(!Array.isArray(d))throw new TypeError('"list" argument must be an Array of Buffers');if(d.length===0)return a.alloc(0);let O;if(m===void 0)for(m=0,O=0;O<d.length;++O)m+=d[O].length;const R=a.allocUnsafe(m);let N=0;for(O=0;O<d.length;++O){let L=d[O];if(le(L,Uint8Array))N+L.length>R.length?(a.isBuffer(L)||(L=a.from(L)),L.copy(R,N)):Uint8Array.prototype.set.call(R,L,N);else if(a.isBuffer(L))L.copy(R,N);else throw new TypeError('"list" argument must be an Array of Buffers');N+=L.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 m=p.length,O=arguments.length>2&&arguments[2]===!0;if(!O&&m===0)return 0;let R=!1;for(;;)switch(d){case"ascii":case"latin1":case"binary":return m;case"utf8":case"utf-8":return D(p).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m*2;case"hex":return m>>>1;case"base64":return ne(p).length;default:if(R)return O?-1:D(p).length;d=(""+d).toLowerCase(),R=!0}}a.byteLength=v;function P(p,d,m){let O=!1;if((d===void 0||d<0)&&(d=0),d>this.length||((m===void 0||m>this.length)&&(m=this.length),m<=0)||(m>>>=0,d>>>=0,m<=d))return"";for(p||(p="utf8");;)switch(p){case"hex":return Te(this,d,m);case"utf8":case"utf-8":return Y(this,d,m);case"ascii":return Oe(this,d,m);case"latin1":case"binary":return de(this,d,m);case"base64":return U(this,d,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,d,m);default:if(O)throw new TypeError("Unknown encoding: "+p);p=(p+"").toLowerCase(),O=!0}}a.prototype._isBuffer=!0;function g(p,d,m){const O=p[d];p[d]=p[m],p[m]=O}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 m=0;m<d;m+=2)g(this,m,m+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 m=0;m<d;m+=4)g(this,m,m+3),g(this,m+1,m+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 m=0;m<d;m+=8)g(this,m,m+7),g(this,m+1,m+6),g(this,m+2,m+5),g(this,m+3,m+4);return this},a.prototype.toString=function(){const d=this.length;return d===0?"":arguments.length===0?Y(this,0,d):P.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 m=e.INSPECT_MAX_BYTES;return d=this.toString("hex",0,m).replace(/(.{2})/g,"$1 ").trim(),this.length>m&&(d+=" ... "),"<Buffer "+d+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(d,m,O,R,N){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(m===void 0&&(m=0),O===void 0&&(O=d?d.length:0),R===void 0&&(R=0),N===void 0&&(N=this.length),m<0||O>d.length||R<0||N>this.length)throw new RangeError("out of range index");if(R>=N&&m>=O)return 0;if(R>=N)return-1;if(m>=O)return 1;if(m>>>=0,O>>>=0,R>>>=0,N>>>=0,this===d)return 0;let L=N-R,re=O-m;const se=Math.min(L,re),Se=this.slice(R,N),ce=d.slice(m,O);for(let ve=0;ve<se;++ve)if(Se[ve]!==ce[ve]){L=Se[ve],re=ce[ve];break}return L<re?-1:re<L?1:0};function S(p,d,m,O,R){if(p.length===0)return-1;if(typeof m=="string"?(O=m,m=0):m>2147483647?m=2147483647:m<-2147483648&&(m=-2147483648),m=+m,ue(m)&&(m=R?0:p.length-1),m<0&&(m=p.length+m),m>=p.length){if(R)return-1;m=p.length-1}else if(m<0)if(R)m=0;else return-1;if(typeof d=="string"&&(d=a.from(d,O)),a.isBuffer(d))return d.length===0?-1:I(p,d,m,O,R);if(typeof d=="number")return d=d&255,typeof Uint8Array.prototype.indexOf=="function"?R?Uint8Array.prototype.indexOf.call(p,d,m):Uint8Array.prototype.lastIndexOf.call(p,d,m):I(p,[d],m,O,R);throw new TypeError("val must be string, number or Buffer")}function I(p,d,m,O,R){let N=1,L=p.length,re=d.length;if(O!==void 0&&(O=String(O).toLowerCase(),O==="ucs2"||O==="ucs-2"||O==="utf16le"||O==="utf-16le")){if(p.length<2||d.length<2)return-1;N=2,L/=2,re/=2,m/=2}function se(ce,ve){return N===1?ce[ve]:ce.readUInt16BE(ve*N)}let Se;if(R){let ce=-1;for(Se=m;Se<L;Se++)if(se(p,Se)===se(d,ce===-1?0:Se-ce)){if(ce===-1&&(ce=Se),Se-ce+1===re)return ce*N}else ce!==-1&&(Se-=Se-ce),ce=-1}else for(m+re>L&&(m=L-re),Se=m;Se>=0;Se--){let ce=!0;for(let ve=0;ve<re;ve++)if(se(p,Se+ve)!==se(d,ve)){ce=!1;break}if(ce)return Se}return-1}a.prototype.includes=function(d,m,O){return this.indexOf(d,m,O)!==-1},a.prototype.indexOf=function(d,m,O){return S(this,d,m,O,!0)},a.prototype.lastIndexOf=function(d,m,O){return S(this,d,m,O,!1)};function q(p,d,m,O){m=Number(m)||0;const R=p.length-m;O?(O=Number(O),O>R&&(O=R)):O=R;const N=d.length;O>N/2&&(O=N/2);let L;for(L=0;L<O;++L){const re=parseInt(d.substr(L*2,2),16);if(ue(re))return L;p[m+L]=re}return L}function G(p,d,m,O){return oe(D(d,p.length-m),p,m,O)}function B(p,d,m,O){return oe(ee(d),p,m,O)}function H(p,d,m,O){return oe(ne(d),p,m,O)}function W(p,d,m,O){return oe(pe(d,p.length-m),p,m,O)}a.prototype.write=function(d,m,O,R){if(m===void 0)R="utf8",O=this.length,m=0;else if(O===void 0&&typeof m=="string")R=m,O=this.length,m=0;else if(isFinite(m))m=m>>>0,isFinite(O)?(O=O>>>0,R===void 0&&(R="utf8")):(R=O,O=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const N=this.length-m;if((O===void 0||O>N)&&(O=N),d.length>0&&(O<0||m<0)||m>this.length)throw new RangeError("Attempt to write outside buffer bounds");R||(R="utf8");let L=!1;for(;;)switch(R){case"hex":return q(this,d,m,O);case"utf8":case"utf-8":return G(this,d,m,O);case"ascii":case"latin1":case"binary":return B(this,d,m,O);case"base64":return H(this,d,m,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,d,m,O);default:if(L)throw new TypeError("Unknown encoding: "+R);R=(""+R).toLowerCase(),L=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function U(p,d,m){return d===0&&m===p.length?t.fromByteArray(p):t.fromByteArray(p.slice(d,m))}function Y(p,d,m){m=Math.min(p.length,m);const O=[];let R=d;for(;R<m;){const N=p[R];let L=null,re=N>239?4:N>223?3:N>191?2:1;if(R+re<=m){let se,Se,ce,ve;switch(re){case 1:N<128&&(L=N);break;case 2:se=p[R+1],(se&192)===128&&(ve=(N&31)<<6|se&63,ve>127&&(L=ve));break;case 3:se=p[R+1],Se=p[R+2],(se&192)===128&&(Se&192)===128&&(ve=(N&15)<<12|(se&63)<<6|Se&63,ve>2047&&(ve<55296||ve>57343)&&(L=ve));break;case 4:se=p[R+1],Se=p[R+2],ce=p[R+3],(se&192)===128&&(Se&192)===128&&(ce&192)===128&&(ve=(N&15)<<18|(se&63)<<12|(Se&63)<<6|ce&63,ve>65535&&ve<1114112&&(L=ve))}}L===null?(L=65533,re=1):L>65535&&(L-=65536,O.push(L>>>10&1023|55296),L=56320|L&1023),O.push(L),R+=re}return we(O)}const he=4096;function we(p){const d=p.length;if(d<=he)return String.fromCharCode.apply(String,p);let m="",O=0;for(;O<d;)m+=String.fromCharCode.apply(String,p.slice(O,O+=he));return m}function Oe(p,d,m){let O="";m=Math.min(p.length,m);for(let R=d;R<m;++R)O+=String.fromCharCode(p[R]&127);return O}function de(p,d,m){let O="";m=Math.min(p.length,m);for(let R=d;R<m;++R)O+=String.fromCharCode(p[R]);return O}function Te(p,d,m){const O=p.length;(!d||d<0)&&(d=0),(!m||m<0||m>O)&&(m=O);let R="";for(let N=d;N<m;++N)R+=fe[p[N]];return R}function K(p,d,m){const O=p.slice(d,m);let R="";for(let N=0;N<O.length-1;N+=2)R+=String.fromCharCode(O[N]+O[N+1]*256);return R}a.prototype.slice=function(d,m){const O=this.length;d=~~d,m=m===void 0?O:~~m,d<0?(d+=O,d<0&&(d=0)):d>O&&(d=O),m<0?(m+=O,m<0&&(m=0)):m>O&&(m=O),m<d&&(m=d);const R=this.subarray(d,m);return Object.setPrototypeOf(R,a.prototype),R};function M(p,d,m){if(p%1!==0||p<0)throw new RangeError("offset is not uint");if(p+d>m)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(d,m,O){d=d>>>0,m=m>>>0,O||M(d,m,this.length);let R=this[d],N=1,L=0;for(;++L<m&&(N*=256);)R+=this[d+L]*N;return R},a.prototype.readUintBE=a.prototype.readUIntBE=function(d,m,O){d=d>>>0,m=m>>>0,O||M(d,m,this.length);let R=this[d+--m],N=1;for(;m>0&&(N*=256);)R+=this[d+--m]*N;return R},a.prototype.readUint8=a.prototype.readUInt8=function(d,m){return d=d>>>0,m||M(d,1,this.length),this[d]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(d,m){return d=d>>>0,m||M(d,2,this.length),this[d]|this[d+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(d,m){return d=d>>>0,m||M(d,2,this.length),this[d]<<8|this[d+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(d,m){return d=d>>>0,m||M(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,m){return d=d>>>0,m||M(d,4,this.length),this[d]*16777216+(this[d+1]<<16|this[d+2]<<8|this[d+3])},a.prototype.readBigUInt64LE=Ee(function(d){d=d>>>0,X(d,"offset");const m=this[d],O=this[d+7];(m===void 0||O===void 0)&&te(d,this.length-8);const R=m+this[++d]*2**8+this[++d]*2**16+this[++d]*2**24,N=this[++d]+this[++d]*2**8+this[++d]*2**16+O*2**24;return BigInt(R)+(BigInt(N)<<BigInt(32))}),a.prototype.readBigUInt64BE=Ee(function(d){d=d>>>0,X(d,"offset");const m=this[d],O=this[d+7];(m===void 0||O===void 0)&&te(d,this.length-8);const R=m*2**24+this[++d]*2**16+this[++d]*2**8+this[++d],N=this[++d]*2**24+this[++d]*2**16+this[++d]*2**8+O;return(BigInt(R)<<BigInt(32))+BigInt(N)}),a.prototype.readIntLE=function(d,m,O){d=d>>>0,m=m>>>0,O||M(d,m,this.length);let R=this[d],N=1,L=0;for(;++L<m&&(N*=256);)R+=this[d+L]*N;return N*=128,R>=N&&(R-=Math.pow(2,8*m)),R},a.prototype.readIntBE=function(d,m,O){d=d>>>0,m=m>>>0,O||M(d,m,this.length);let R=m,N=1,L=this[d+--R];for(;R>0&&(N*=256);)L+=this[d+--R]*N;return N*=128,L>=N&&(L-=Math.pow(2,8*m)),L},a.prototype.readInt8=function(d,m){return d=d>>>0,m||M(d,1,this.length),this[d]&128?(255-this[d]+1)*-1:this[d]},a.prototype.readInt16LE=function(d,m){d=d>>>0,m||M(d,2,this.length);const O=this[d]|this[d+1]<<8;return O&32768?O|4294901760:O},a.prototype.readInt16BE=function(d,m){d=d>>>0,m||M(d,2,this.length);const O=this[d+1]|this[d]<<8;return O&32768?O|4294901760:O},a.prototype.readInt32LE=function(d,m){return d=d>>>0,m||M(d,4,this.length),this[d]|this[d+1]<<8|this[d+2]<<16|this[d+3]<<24},a.prototype.readInt32BE=function(d,m){return d=d>>>0,m||M(d,4,this.length),this[d]<<24|this[d+1]<<16|this[d+2]<<8|this[d+3]},a.prototype.readBigInt64LE=Ee(function(d){d=d>>>0,X(d,"offset");const m=this[d],O=this[d+7];(m===void 0||O===void 0)&&te(d,this.length-8);const R=this[d+4]+this[d+5]*2**8+this[d+6]*2**16+(O<<24);return(BigInt(R)<<BigInt(32))+BigInt(m+this[++d]*2**8+this[++d]*2**16+this[++d]*2**24)}),a.prototype.readBigInt64BE=Ee(function(d){d=d>>>0,X(d,"offset");const m=this[d],O=this[d+7];(m===void 0||O===void 0)&&te(d,this.length-8);const R=(m<<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+O)}),a.prototype.readFloatLE=function(d,m){return d=d>>>0,m||M(d,4,this.length),r.read(this,d,!0,23,4)},a.prototype.readFloatBE=function(d,m){return d=d>>>0,m||M(d,4,this.length),r.read(this,d,!1,23,4)},a.prototype.readDoubleLE=function(d,m){return d=d>>>0,m||M(d,8,this.length),r.read(this,d,!0,52,8)},a.prototype.readDoubleBE=function(d,m){return d=d>>>0,m||M(d,8,this.length),r.read(this,d,!1,52,8)};function Q(p,d,m,O,R,N){if(!a.isBuffer(p))throw new TypeError('"buffer" argument must be a Buffer instance');if(d>R||d<N)throw new RangeError('"value" argument is out of bounds');if(m+O>p.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(d,m,O,R){if(d=+d,m=m>>>0,O=O>>>0,!R){const re=Math.pow(2,8*O)-1;Q(this,d,m,O,re,0)}let N=1,L=0;for(this[m]=d&255;++L<O&&(N*=256);)this[m+L]=d/N&255;return m+O},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(d,m,O,R){if(d=+d,m=m>>>0,O=O>>>0,!R){const re=Math.pow(2,8*O)-1;Q(this,d,m,O,re,0)}let N=O-1,L=1;for(this[m+N]=d&255;--N>=0&&(L*=256);)this[m+N]=d/L&255;return m+O},a.prototype.writeUint8=a.prototype.writeUInt8=function(d,m,O){return d=+d,m=m>>>0,O||Q(this,d,m,1,255,0),this[m]=d&255,m+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(d,m,O){return d=+d,m=m>>>0,O||Q(this,d,m,2,65535,0),this[m]=d&255,this[m+1]=d>>>8,m+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(d,m,O){return d=+d,m=m>>>0,O||Q(this,d,m,2,65535,0),this[m]=d>>>8,this[m+1]=d&255,m+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(d,m,O){return d=+d,m=m>>>0,O||Q(this,d,m,4,4294967295,0),this[m+3]=d>>>24,this[m+2]=d>>>16,this[m+1]=d>>>8,this[m]=d&255,m+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(d,m,O){return d=+d,m=m>>>0,O||Q(this,d,m,4,4294967295,0),this[m]=d>>>24,this[m+1]=d>>>16,this[m+2]=d>>>8,this[m+3]=d&255,m+4};function z(p,d,m,O,R){F(d,O,R,p,m,7);let N=Number(d&BigInt(4294967295));p[m++]=N,N=N>>8,p[m++]=N,N=N>>8,p[m++]=N,N=N>>8,p[m++]=N;let L=Number(d>>BigInt(32)&BigInt(4294967295));return p[m++]=L,L=L>>8,p[m++]=L,L=L>>8,p[m++]=L,L=L>>8,p[m++]=L,m}function _(p,d,m,O,R){F(d,O,R,p,m,7);let N=Number(d&BigInt(4294967295));p[m+7]=N,N=N>>8,p[m+6]=N,N=N>>8,p[m+5]=N,N=N>>8,p[m+4]=N;let L=Number(d>>BigInt(32)&BigInt(4294967295));return p[m+3]=L,L=L>>8,p[m+2]=L,L=L>>8,p[m+1]=L,L=L>>8,p[m]=L,m+8}a.prototype.writeBigUInt64LE=Ee(function(d,m=0){return z(this,d,m,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Ee(function(d,m=0){return _(this,d,m,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(d,m,O,R){if(d=+d,m=m>>>0,!R){const se=Math.pow(2,8*O-1);Q(this,d,m,O,se-1,-se)}let N=0,L=1,re=0;for(this[m]=d&255;++N<O&&(L*=256);)d<0&&re===0&&this[m+N-1]!==0&&(re=1),this[m+N]=(d/L>>0)-re&255;return m+O},a.prototype.writeIntBE=function(d,m,O,R){if(d=+d,m=m>>>0,!R){const se=Math.pow(2,8*O-1);Q(this,d,m,O,se-1,-se)}let N=O-1,L=1,re=0;for(this[m+N]=d&255;--N>=0&&(L*=256);)d<0&&re===0&&this[m+N+1]!==0&&(re=1),this[m+N]=(d/L>>0)-re&255;return m+O},a.prototype.writeInt8=function(d,m,O){return d=+d,m=m>>>0,O||Q(this,d,m,1,127,-128),d<0&&(d=255+d+1),this[m]=d&255,m+1},a.prototype.writeInt16LE=function(d,m,O){return d=+d,m=m>>>0,O||Q(this,d,m,2,32767,-32768),this[m]=d&255,this[m+1]=d>>>8,m+2},a.prototype.writeInt16BE=function(d,m,O){return d=+d,m=m>>>0,O||Q(this,d,m,2,32767,-32768),this[m]=d>>>8,this[m+1]=d&255,m+2},a.prototype.writeInt32LE=function(d,m,O){return d=+d,m=m>>>0,O||Q(this,d,m,4,2147483647,-2147483648),this[m]=d&255,this[m+1]=d>>>8,this[m+2]=d>>>16,this[m+3]=d>>>24,m+4},a.prototype.writeInt32BE=function(d,m,O){return d=+d,m=m>>>0,O||Q(this,d,m,4,2147483647,-2147483648),d<0&&(d=4294967295+d+1),this[m]=d>>>24,this[m+1]=d>>>16,this[m+2]=d>>>8,this[m+3]=d&255,m+4},a.prototype.writeBigInt64LE=Ee(function(d,m=0){return z(this,d,m,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Ee(function(d,m=0){return _(this,d,m,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function j(p,d,m,O,R,N){if(m+O>p.length)throw new RangeError("Index out of range");if(m<0)throw new RangeError("Index out of range")}function $(p,d,m,O,R){return d=+d,m=m>>>0,R||j(p,d,m,4),r.write(p,d,m,O,23,4),m+4}a.prototype.writeFloatLE=function(d,m,O){return $(this,d,m,!0,O)},a.prototype.writeFloatBE=function(d,m,O){return $(this,d,m,!1,O)};function C(p,d,m,O,R){return d=+d,m=m>>>0,R||j(p,d,m,8),r.write(p,d,m,O,52,8),m+8}a.prototype.writeDoubleLE=function(d,m,O){return C(this,d,m,!0,O)},a.prototype.writeDoubleBE=function(d,m,O){return C(this,d,m,!1,O)},a.prototype.copy=function(d,m,O,R){if(!a.isBuffer(d))throw new TypeError("argument should be a Buffer");if(O||(O=0),!R&&R!==0&&(R=this.length),m>=d.length&&(m=d.length),m||(m=0),R>0&&R<O&&(R=O),R===O||d.length===0||this.length===0)return 0;if(m<0)throw new RangeError("targetStart out of bounds");if(O<0||O>=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-m<R-O&&(R=d.length-m+O);const N=R-O;return this===d&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(m,O,R):Uint8Array.prototype.set.call(d,this.subarray(O,R),m),N},a.prototype.fill=function(d,m,O,R){if(typeof d=="string"){if(typeof m=="string"?(R=m,m=0,O=this.length):typeof O=="string"&&(R=O,O=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 L=d.charCodeAt(0);(R==="utf8"&&L<128||R==="latin1")&&(d=L)}}else typeof d=="number"?d=d&255:typeof d=="boolean"&&(d=Number(d));if(m<0||this.length<m||this.length<O)throw new RangeError("Out of range index");if(O<=m)return this;m=m>>>0,O=O===void 0?this.length:O>>>0,d||(d=0);let N;if(typeof d=="number")for(N=m;N<O;++N)this[N]=d;else{const L=a.isBuffer(d)?d:a.from(d,R),re=L.length;if(re===0)throw new TypeError('The value "'+d+'" is invalid for argument "value"');for(N=0;N<O-m;++N)this[N+m]=L[N%re]}return this};const V={};function J(p,d,m){V[p]=class extends m{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}`}}}J("ERR_BUFFER_OUT_OF_BOUNDS",function(p){return p?`${p} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),J("ERR_INVALID_ARG_TYPE",function(p,d){return`The "${p}" argument must be of type number. Received type ${typeof d}`},TypeError),J("ERR_OUT_OF_RANGE",function(p,d,m){let O=`The value of "${p}" is out of range.`,R=m;return Number.isInteger(m)&&Math.abs(m)>2**32?R=ae(String(m)):typeof m=="bigint"&&(R=String(m),(m>BigInt(2)**BigInt(32)||m<-(BigInt(2)**BigInt(32)))&&(R=ae(R)),R+="n"),O+=` It must be ${d}. Received ${R}`,O},RangeError);function ae(p){let d="",m=p.length;const O=p[0]==="-"?1:0;for(;m>=O+4;m-=3)d=`_${p.slice(m-3,m)}${d}`;return`${p.slice(0,m)}${d}`}function k(p,d,m){X(d,"offset"),(p[d]===void 0||p[d+m]===void 0)&&te(d,p.length-(m+1))}function F(p,d,m,O,R,N){if(p>m||p<d){const L=typeof d=="bigint"?"n":"";let re;throw d===0||d===BigInt(0)?re=`>= 0${L} and < 2${L} ** ${(N+1)*8}${L}`:re=`>= -(2${L} ** ${(N+1)*8-1}${L}) and < 2 ** ${(N+1)*8-1}${L}`,new V.ERR_OUT_OF_RANGE("value",re,p)}k(O,R,N)}function X(p,d){if(typeof p!="number")throw new V.ERR_INVALID_ARG_TYPE(d,"number",p)}function te(p,d,m){throw Math.floor(p)!==p?(X(p,m),new V.ERR_OUT_OF_RANGE("offset","an integer",p)):d<0?new V.ERR_BUFFER_OUT_OF_BOUNDS:new V.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${d}`,p)}const ge=/[^+/0-9A-Za-z-_]/g;function be(p){if(p=p.split("=")[0],p=p.trim().replace(ge,""),p.length<2)return"";for(;p.length%4!==0;)p=p+"=";return p}function D(p,d){d=d||1/0;let m;const O=p.length;let R=null;const N=[];for(let L=0;L<O;++L){if(m=p.charCodeAt(L),m>55295&&m<57344){if(!R){if(m>56319){(d-=3)>-1&&N.push(239,191,189);continue}else if(L+1===O){(d-=3)>-1&&N.push(239,191,189);continue}R=m;continue}if(m<56320){(d-=3)>-1&&N.push(239,191,189),R=m;continue}m=(R-55296<<10|m-56320)+65536}else R&&(d-=3)>-1&&N.push(239,191,189);if(R=null,m<128){if((d-=1)<0)break;N.push(m)}else if(m<2048){if((d-=2)<0)break;N.push(m>>6|192,m&63|128)}else if(m<65536){if((d-=3)<0)break;N.push(m>>12|224,m>>6&63|128,m&63|128)}else if(m<1114112){if((d-=4)<0)break;N.push(m>>18|240,m>>12&63|128,m>>6&63|128,m&63|128)}else throw new Error("Invalid code point")}return N}function ee(p){const d=[];for(let m=0;m<p.length;++m)d.push(p.charCodeAt(m)&255);return d}function pe(p,d){let m,O,R;const N=[];for(let L=0;L<p.length&&!((d-=2)<0);++L)m=p.charCodeAt(L),O=m>>8,R=m%256,N.push(R),N.push(O);return N}function ne(p){return t.toByteArray(be(p))}function oe(p,d,m,O){let R;for(R=0;R<O&&!(R+m>=d.length||R>=p.length);++R)d[R+m]=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 m=0;m<16;++m){const O=m*16;for(let R=0;R<16;++R)d[O+R]=p[m]+p[R]}return d})();function Ee(p){return typeof BigInt>"u"?Be:p}function Be(){throw new Error("BigInt not supported")}})(Rs)),Rs}var $s,yu;function B$(){if(yu)return $s;yu=1;var e=F$().Buffer,t=nt(),r=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
88
+ \r`;function n(a){if(a===null)return!1;var c,l,u=0,f=a.length,h=r;for(l=0;l<f;l++)if(c=h.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,""),f=u.length,h=r,y=0,b=[];for(c=0;c<f;c++)c%4===0&&c&&(b.push(y>>16&255),b.push(y>>8&255),b.push(y&255)),y=y<<6|h.indexOf(u.charAt(c));return l=f%4*6,l===0?(b.push(y>>16&255),b.push(y>>8&255),b.push(y&255)):l===18?(b.push(y>>10&255),b.push(y>>2&255)):l===12&&b.push(y>>4&255),e?new e(b):b}function o(a){var c="",l=0,u,f,h=a.length,y=r;for(u=0;u<h;u++)u%3===0&&u&&(c+=y[l>>18&63],c+=y[l>>12&63],c+=y[l>>6&63],c+=y[l&63]),l=(l<<8)+a[u];return f=h%3,f===0?(c+=y[l>>18&63],c+=y[l>>12&63],c+=y[l>>6&63],c+=y[l&63]):f===2?(c+=y[l>>10&63],c+=y[l>>4&63],c+=y[l<<2&63],c+=y[64]):f===1&&(c+=y[l>>2&63],c+=y[l<<4&63],c+=y[64],c+=y[64]),c}function s(a){return e&&e.isBuffer(a)}return $s=new t.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:n,construct:i,predicate:s,represent:o}),$s}var Ns,gu;function z$(){if(gu)return Ns;gu=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,f,h=o;for(a=0,c=h.length;a<c;a+=1){if(l=h[a],f=!1,r.call(l)!=="[object Object]")return!1;for(u in l)if(t.call(l,u))if(!f)f=!0;else return!1;if(!f)return!1;if(s.indexOf(u)===-1)s.push(u);else return!1}return!0}function i(o){return o!==null?o:[]}return Ns=new e.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:n,construct:i}),Ns}var ks,vu;function V$(){if(vu)return ks;vu=1;var e=nt(),t=Lo(),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],f=u.mappings[0],h=t.newItems();h.parent=c,h.startPosition=f.key.startPosition,h.endPosition=f.value.startPosition,f.key.parent=h,f.value.parent=h,h.items=[f.key,f.value],c.items.push(h)}return c}return ks=new e.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:n,construct:i}),ks}var Ds,bu;function K$(){if(bu)return Ds;bu=1;var e=nt(),t=Lo();function r(i){return i===null?!0:i.kind==t.Kind.MAP}function n(i){return i!==null?i:{}}return Ds=new e.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:n}),Ds}var qs,wu;function ec(){if(wu)return qs;wu=1;var e=In(),t=new e.Schema({include:[j$()],implicit:[C$(),M$()],explicit:[B$(),z$(),V$(),K$()]});return qs=t,qs}var js,Su;function H$(){if(Su)return js;Su=1;var e=nt();function t(){return!0}function r(){}function n(){return""}function i(o){return typeof o>"u"}return js=new e.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:n}),js}var Cs,Eu;function G$(){if(Eu)return Cs;Eu=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 Cs=new e.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:n}),Cs}var Ms,xu;function th(){if(xu)return Ms;xu=1;var e=In(),t=new e.Schema({include:[ec()],explicit:[H$(),G$()]});return e.Schema.DEFAULT=t,Ms=t,Ms}var Tu;function Y$(){if(Tu)return wt;Tu=1,Object.defineProperty(wt,"__esModule",{value:!0});var e=Lo(),t=Mr(),r=On(),n=O$(),i=ec(),o=th(),s=Object.prototype.hasOwnProperty,a=1,c=2,l=3,u=4,f=1,h=2,y=3,b=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,w=/[\x85\u2028\u2029]/,x=/[,\[\]\{\}]/,T=/^(?:!|!!|![a-z\-]+!)$/i,E=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function v(p){return p===10||p===13}function P(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 I(p){var d;return 48<=p&&p<=57?p-48:(d=p|32,97<=d&&d<=102?d-97+10:-1)}function q(p){return p===120?2:p===117?4:p===85?8:0}function G(p){return 48<=p&&p<=57?p-48:-1}function B(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 H(p){return p<=65535?String.fromCharCode(p):String.fromCharCode((p-65536>>10)+55296,(p-65536&1023)+56320)}for(var W=new Array(256),U=new Array(256),Y=new Array(256),he=new Array(256),we=0;we<256;we++)he[we]=U[we]=B(we),W[we]=U[we]?1:0,Y[we]=1,W[we]||(he[we]="\\"+String.fromCharCode(we));var Oe=(function(){function p(d,m){this.errorMap={},this.errors=[],this.lines=[],this.input=d,this.filename=m.filename||null,this.schema=m.schema||o,this.onWarning=m.onWarning||null,this.legacy=m.legacy||!1,this.allowAnyEscape=m.allowAnyEscape||!1,this.ignoreDuplicateKeys=m.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=d.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}return p})();function de(p,d,m){return m===void 0&&(m=!1),new r(d,new n(p.filename,p.input,p.position,p.line,p.position-p.lineStart),m)}function Te(p,d,m,O,R){O===void 0&&(O=!1),R===void 0&&(R=!1);var N=$(p,d);if(N){var L=m+d;if(!p.errorMap[L]){var re=new n(p.filename,p.input,d,N.line,d-N.start);R&&(re.toLineEnd=!0);var se=new r(m,re,O);p.errors.push(se)}}}function K(p,d){var m=de(p,d),O=m.message+m.mark.position;if(!p.errorMap[O]){p.errors.push(m),p.errorMap[O]=1;for(var R=p.position;;){if(p.position>=p.input.length-1)return;var N=p.input.charAt(p.position);if(N==`
90
+ `){p.position--,p.position==R&&(p.position+=1);return}if(N=="\r"){p.position--,p.position==R&&(p.position+=1);return}p.position++}}}function M(p,d){var m=de(p,d);p.onWarning&&p.onWarning.call(null,m)}var Q={YAML:function(d,m,O){var R,N,L;d.version!==null&&K(d,"duplication of %YAML directive"),O.length!==1&&K(d,"YAML directive accepts exactly one argument"),R=/^([0-9]+)\.([0-9]+)$/.exec(O[0]),R===null&&K(d,"ill-formed argument of the YAML directive"),N=parseInt(R[1],10),L=parseInt(R[2],10),N!==1&&K(d,"found incompatible YAML document (version 1.2 is required)"),d.version=O[0],d.checkLineBreaks=L<2,L!==2&&K(d,"found incompatible YAML document (version 1.2 is required)")},TAG:function(d,m,O){var R,N;O.length!==2&&K(d,"TAG directive accepts exactly two arguments"),R=O[0],N=O[1],T.test(R)||K(d,"ill-formed tag handle (first argument) of the TAG directive"),s.call(d.tagMap,R)&&K(d,'there is a previously declared suffix for "'+R+'" tag handle'),E.test(N)||K(d,"ill-formed tag prefix (second argument) of the TAG directive"),d.tagMap[R]=N}};function z(p,d,m,O){var R,N,L,re,se=p.result;if(se.startPosition==-1&&(se.startPosition=d),d<=m){if(re=p.input.slice(d,m),O)for(R=0,N=re.length;R<N;R+=1)L=re.charCodeAt(R),L===9||32<=L&&L<=1114111||K(p,"expected valid JSON character");else b.test(re)&&K(p,"the stream contains non-printable characters");se.value+=re,se.endPosition=m}}function _(p,d,m,O,R){if(O!=null){d===null&&(d={startPosition:O.startPosition,endPosition:R.endPosition,parent:null,errors:[],mappings:[],kind:e.Kind.MAP});var N=e.newMapping(O,R);return N.parent=d,O.parent=N,R!=null&&(R.parent=N),!p.ignoreDuplicateKeys&&d.mappings.forEach(function(L){L.key&&L.key.value===(N.key&&N.key.value)&&(Te(p,N.key.startPosition,"duplicate key"),Te(p,L.key.startPosition,"duplicate key"))}),d.mappings.push(N),d.endPosition=R?R.endPosition:O.endPosition+1,d}}function j(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++):K(p,"a line break is expected"),p.line+=1,p.lineStart=p.position,p.lines.push({start:p.lineStart,line:p.line})}function $(p,d){for(var m,O=0;O<p.lines.length&&!(p.lines[O].start>d);O++)m=p.lines[O];return m||{start:0,line:0}}function C(p,d,m){for(var O=0,R=p.input.charCodeAt(p.position);R!==0;){for(;P(R);)R===9&&p.errors.push(de(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(j(p),R=p.input.charCodeAt(p.position),O++,p.lineIndent=0;R===32;)p.lineIndent++,R=p.input.charCodeAt(++p.position);else break}return m!==-1&&O!==0&&p.lineIndent<m&&M(p,"deficient indentation"),O}function V(p){var d=p.position,m;return m=p.input.charCodeAt(d),!!((m===45||m===46)&&p.input.charCodeAt(d+1)===m&&p.input.charCodeAt(d+2)===m&&(d+=3,m=p.input.charCodeAt(d),m===0||g(m)))}function J(p,d,m){m===1?d.value+=" ":m>1&&(d.value+=t.repeat(`
91
+ `,m-1))}function ae(p,d,m){var O,R,N,L,re,se,Se,ce,ve=p.kind,je=p.result,xe,$e=e.newScalar();if($e.plainScalar=!0,p.result=$e,xe=p.input.charCodeAt(p.position),g(xe)||S(xe)||xe===35||xe===38||xe===42||xe===33||xe===124||xe===62||xe===39||xe===34||xe===37||xe===64||xe===96||(xe===63||xe===45)&&(R=p.input.charCodeAt(p.position+1),g(R)||m&&S(R)))return!1;for(p.kind="scalar",N=L=p.position,re=!1;xe!==0;){if(xe===58){if(R=p.input.charCodeAt(p.position+1),g(R)||m&&S(R))break}else if(xe===35){if(O=p.input.charCodeAt(p.position-1),g(O))break}else{if(p.position===p.lineStart&&V(p)||m&&S(xe))break;if(v(xe))if(se=p.line,Se=p.lineStart,ce=p.lineIndent,C(p,!1,-1),p.lineIndent>=d){re=!0,xe=p.input.charCodeAt(p.position);continue}else{p.position=L,p.line=se,p.lineStart=Se,p.lineIndent=ce;break}}if(re&&(z(p,N,L,!1),J(p,$e,p.line-se),N=L=p.position,re=!1),P(xe)||(L=p.position+1),xe=p.input.charCodeAt(++p.position),p.position>=p.input.length)return!1}return z(p,N,L,!1),p.result.startPosition!=-1?($e.rawValue=p.input.substring($e.startPosition,$e.endPosition),!0):(p.kind=ve,p.result=je,!1)}function k(p,d){var m,O,R;if(m=p.input.charCodeAt(p.position),m!==39)return!1;var N=e.newScalar();for(N.singleQuoted=!0,p.kind="scalar",p.result=N,N.startPosition=p.position,p.position++,O=R=p.position;(m=p.input.charCodeAt(p.position))!==0;)if(m===39)if(z(p,O,p.position,!0),m=p.input.charCodeAt(++p.position),N.endPosition=p.position,m===39)O=R=p.position,p.position++;else return!0;else v(m)?(z(p,O,R,!0),J(p,N,C(p,!1,d)),O=R=p.position):p.position===p.lineStart&&V(p)?K(p,"unexpected end of the document within a single quoted scalar"):(p.position++,R=p.position,N.endPosition=p.position);K(p,"unexpected end of the stream within a single quoted scalar")}function F(p,d){var m,O,R,N,L,re;if(re=p.input.charCodeAt(p.position),re!==34)return!1;p.kind="scalar";var se=e.newScalar();for(se.doubleQuoted=!0,p.result=se,se.startPosition=p.position,p.position++,m=O=p.position;(re=p.input.charCodeAt(p.position))!==0;){if(re===34)return z(p,m,p.position,!0),p.position++,se.endPosition=p.position,se.rawValue=p.input.substring(se.startPosition,se.endPosition),!0;if(re===92){if(z(p,m,p.position,!0),re=p.input.charCodeAt(++p.position),v(re))C(p,!1,d);else if(re<256&&(p.allowAnyEscape?Y[re]:W[re]))se.value+=p.allowAnyEscape?he[re]:U[re],p.position++;else if((L=q(re))>0){for(R=L,N=0;R>0;R--)re=p.input.charCodeAt(++p.position),(L=I(re))>=0?N=(N<<4)+L:K(p,"expected hexadecimal character");se.value+=H(N),p.position++}else K(p,"unknown escape sequence");m=O=p.position}else v(re)?(z(p,m,O,!0),J(p,se,C(p,!1,d)),m=O=p.position):p.position===p.lineStart&&V(p)?K(p,"unexpected end of the document within a double quoted scalar"):(p.position++,O=p.position)}K(p,"unexpected end of the stream within a double quoted scalar")}function X(p,d){var m=!0,O,R=p.tag,N,L=p.anchor,re,se,Se,ce,ve,je,xe,$e,Ye;if(Ye=p.input.charCodeAt(p.position),Ye===91)se=93,ve=!1,N=e.newItems(),N.startPosition=p.position;else if(Ye===123)se=125,ve=!0,N=e.newMap(),N.startPosition=p.position;else return!1;for(p.anchor!==null&&(N.anchorId=p.anchor,p.anchorMap[p.anchor]=N),Ye=p.input.charCodeAt(++p.position);Ye!==0;){if(C(p,!0,d),Ye=p.input.charCodeAt(p.position),Ye===se)return p.position++,p.tag=R,p.anchor=L,p.kind=ve?"mapping":"sequence",p.result=N,N.endPosition=p.position,!0;if(!m){var Uo=p.position;K(p,"missed comma between flow collection entries"),p.position=Uo+1}if(xe=je=$e=null,Se=ce=!1,Ye===63&&(re=p.input.charCodeAt(p.position+1),g(re)&&(Se=ce=!0,p.position++,C(p,!0,d))),O=p.line,ne(p,d,a,!1,!0),xe=p.tag,je=p.result,C(p,!0,d),Ye=p.input.charCodeAt(p.position),(ce||p.line===O)&&Ye===58&&(Se=!0,Ye=p.input.charCodeAt(++p.position),C(p,!0,d),ne(p,d,a,!1,!0),$e=p.result),ve)_(p,N,xe,je,$e);else if(Se){var _n=_(p,null,xe,je,$e);_n.parent=N,N.items.push(_n)}else je&&(je.parent=N),N.items.push(je);N.endPosition=p.position+1,C(p,!0,d),Ye=p.input.charCodeAt(p.position),Ye===44?(m=!0,Ye=p.input.charCodeAt(++p.position)):m=!1}K(p,"unexpected end of the stream within a flow collection")}function te(p,d){var m,O,R=f,N=!1,L=d,re=0,se=!1,Se,ce;if(ce=p.input.charCodeAt(p.position),ce===124)O=!1;else if(ce===62)O=!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)f===R?R=ce===43?y:h:K(p,"repeat of a chomping mode identifier");else if((Se=G(ce))>=0)Se===0?K(p,"bad explicit indentation width of a block scalar; it cannot be less than one"):N?K(p,"repeat of an indentation width identifier"):(L=d+Se-1,N=!0);else break;if(P(ce)){do ce=p.input.charCodeAt(++p.position);while(P(ce));if(ce===35)do ce=p.input.charCodeAt(++p.position);while(!v(ce)&&ce!==0)}for(;ce!==0;){for(j(p),p.lineIndent=0,ce=p.input.charCodeAt(p.position);(!N||p.lineIndent<L)&&ce===32;)p.lineIndent++,ce=p.input.charCodeAt(++p.position);if(!N&&p.lineIndent>L&&(L=p.lineIndent),v(ce)){re++;continue}if(p.lineIndent<L){R===y?ve.value+=t.repeat(`
92
92
  `,re):R===f&&N&&(ve.value+=`
93
- `);break}for(P?x(ce)?(se=!0,ve.value+=t.repeat(`
93
+ `);break}for(O?P(ce)?(se=!0,ve.value+=t.repeat(`
94
94
  `,re+1)):se?(se=!1,ve.value+=t.repeat(`
95
95
  `,re+1)):re===0?N&&(ve.value+=" "):ve.value+=t.repeat(`
96
96
  `,re):N&&(ve.value+=t.repeat(`
97
- `,re+1)),N=!0,re=0,m=p.position;!v(ce)&&ce!==0;)ce=p.input.charCodeAt(++p.position);z(p,m,p.position,!1)}ve.endPosition=p.position;for(var Ce=p.position-1;;){var xe=p.input[Ce];if(xe=="\r"||xe==`
98
- `||xe!=" "&&xe!=" ")break;Ce--}return ve.endPosition=Ce,ve.rawValue=p.input.substring(ve.startPosition,ve.endPosition),!0}function ge(p,d){var m,P=p.tag,R=p.anchor,N=e.newItems(),L,re=!1,se;for(p.anchor!==null&&(N.anchorId=p.anchor,p.anchorMap[p.anchor]=N),N.startPosition=p.position,se=p.input.charCodeAt(p.position);se!==0&&!(se!==45||(L=p.input.charCodeAt(p.position+1),!g(L)));){if(re=!0,p.position++,j(p,!0,-1)&&p.lineIndent<=d){N.items.push(null),se=p.input.charCodeAt(p.position);continue}if(m=p.line,ne(p,d,l,!1,!0),p.result&&(p.result.parent=N,N.items.push(p.result)),j(p,!0,-1),se=p.input.charCodeAt(p.position),(p.line===m||p.lineIndent>d)&&se!==0)H(p,"bad indentation of a sequence entry");else if(p.lineIndent<d)break}return N.endPosition=p.position,re?(p.tag=P,p.anchor=R,p.kind="sequence",p.result=N,N.endPosition=p.position,!0):!1}function be(p,d,m){var P,R,N,L=p.tag,re=p.anchor,se=e.newMap(),Se=null,ce=null,ve=null,Ce=!1,xe=!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(P=p.input.charCodeAt(p.position+1),N=p.line,($e===63||$e===58)&&g(P))$e===63?(Ce&&(_(p,se,Se,ce,null),Se=ce=ve=null),xe=!0,Ce=!0,R=!0):Ce?(Ce=!1,R=!0):H(p,"incomplete explicit mapping pair; a key node is missed"),p.position+=1,$e=P;else if(ne(p,m,c,!1,!0))if(p.line===N){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)||H(p,"a whitespace character is expected after the key-value separator within a block mapping"),Ce&&(_(p,se,Se,ce,null),Se=ce=ve=null),xe=!0,Ce=!1,R=!1,Se=p.tag,ce=p.result;else{if(p.position==p.lineStart&&V(p))break;if(xe)H(p,"can not read an implicit mapping pair; a colon is missed");else return p.tag=L,p.anchor=re,!0}}else if(xe){for(H(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=L,p.anchor=re,!0;else break;if((p.line===N||p.lineIndent>d)&&(ne(p,d,u,!0,R)&&(Ce?ce=p.result:ve=p.result),Ce||(_(p,se,Se,ce,ve),Se=ce=ve=null),j(p,!0,-1),$e=p.input.charCodeAt(p.position)),p.lineIndent>d&&$e!==0)H(p,"bad indentation of a mapping entry");else if(p.lineIndent<d)break}return Ce&&_(p,se,Se,ce,null),xe&&(p.tag=L,p.anchor=re,p.kind="mapping",p.result=se),xe}function q(p){var d,m=!1,P=!1,R,N,L;if(L=p.input.charCodeAt(p.position),L!==33)return!1;if(p.tag!==null&&H(p,"duplication of a tag property"),L=p.input.charCodeAt(++p.position),L===60?(m=!0,L=p.input.charCodeAt(++p.position)):L===33?(P=!0,R="!!",L=p.input.charCodeAt(++p.position)):R="!",d=p.position,m){do L=p.input.charCodeAt(++p.position);while(L!==0&&L!==62);p.position<p.length?(N=p.input.slice(d,p.position),L=p.input.charCodeAt(++p.position)):H(p,"unexpected end of the stream within a verbatim tag")}else{for(;L!==0&&!g(L);)L===33&&(P?H(p,"tag suffix cannot contain exclamation marks"):(R=p.input.slice(d-1,p.position+1),T.test(R)||H(p,"named tag handle cannot contain such characters"),P=!0,d=p.position+1)),L=p.input.charCodeAt(++p.position);N=p.input.slice(d,p.position),E.test(N)&&H(p,"tag suffix cannot contain flow indicator characters")}return N&&!I.test(N)&&H(p,"tag name cannot contain such characters: "+N),m?p.tag=N:s.call(p.tagMap,R)?p.tag=p.tagMap[R]+N:R==="!"?p.tag="!"+N:R==="!!"?p.tag="tag:yaml.org,2002:"+N:H(p,'undeclared tag handle "'+R+'"'),!0}function ee(p){var d,m;if(m=p.input.charCodeAt(p.position),m!==38)return!1;for(p.anchor!==null&&H(p,"duplication of an anchor property"),m=p.input.charCodeAt(++p.position),d=p.position;m!==0&&!g(m)&&!S(m);)m=p.input.charCodeAt(++p.position);return p.position===d&&H(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,m;p.length,p.input;var P;if(P=p.input.charCodeAt(p.position),P!==42)return!1;for(P=p.input.charCodeAt(++p.position),d=p.position;P!==0&&!g(P)&&!S(P);)P=p.input.charCodeAt(++p.position);return p.position<=d&&(H(p,"name of an alias node must contain at least one character"),p.position=d+1),m=p.input.slice(d,p.position),p.anchorMap.hasOwnProperty(m)||(H(p,'unidentified alias "'+m+'"'),p.position<=d&&(p.position=d+1)),p.result=e.newAnchorRef(m,d,p.position,p.anchorMap[m]),j(p,!0,-1),!0}function ne(p,d,m,P,R){var N,L,re,se=1,Se=!1,ce=!1,ve,Ce,xe,$e,Ye;p.tag=null,p.anchor=null,p.kind=null,p.result=null,N=L=re=u===m||l===m,P&&j(p,!0,-1)&&(Se=!0,p.lineIndent>d?se=1:p.lineIndent===d?se=0:p.lineIndent<d&&(se=-1));var jo=p.position;if(p.position-p.lineStart,se===1)for(;q(p)||ee(p);)j(p,!0,-1)?(Se=!0,re=N,p.lineIndent>d?se=1:p.lineIndent===d?se=0:p.lineIndent<d&&(se=-1)):re=!1;if(re&&(re=Se||R),(se===1||u===m)&&(a===m||c===m?$e=d:$e=d+1,Ye=p.position-p.lineStart,se===1?re&&(ge(p,Ye)||be(p,Ye,$e))||X(p,$e)?ce=!0:(L&&te(p,$e)||D(p,$e)||F(p,$e)?ce=!0:pe(p)?(ce=!0,(p.tag!==null||p.anchor!==null)&&H(p,"alias node should not have any properties")):ae(p,$e,a===m)&&(ce=!0,p.tag===null&&(p.tag="?")),p.anchor!==null&&(p.anchorMap[p.anchor]=p.result,p.result.anchorId=p.anchor)):se===0&&(ce=re&&ge(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,H(p,"!include without value")),p.result.kind=e.Kind.INCLUDE_REF;else if(p.tag==="?")for(ve=0,Ce=p.implicitTypes.length;ve<Ce;ve+=1){xe=p.implicitTypes[ve];var Pn=p.result.value;if(xe.resolve(Pn)){p.result.valueObject=xe.construct(p.result.value),p.tag=xe.tag,p.anchor!==null&&(p.result.anchorId=p.anchor,p.anchorMap[p.anchor]=p.result);break}}else s.call(p.typeMap,p.tag)?(xe=p.typeMap[p.tag],p.result!==null&&xe.kind!==p.kind&&H(p,"unacceptable node kind for !<"+p.tag+'> tag; it should be "'+xe.kind+'", not "'+p.kind+'"'),xe.resolve(p.result)?(p.result=xe.construct(p.result),p.anchor!==null&&(p.result.anchorId=p.anchor,p.anchorMap[p.anchor]=p.result)):H(p,"cannot resolve a node with !<"+p.tag+"> explicit tag")):Te(p,jo,"unknown tag <"+p.tag+">",!1,!0);return p.tag!==null||p.anchor!==null||ce}function oe(p){var d=p.position,m,P,R,N=!1,L;for(p.version=null,p.checkLineBreaks=p.legacy,p.tagMap={},p.anchorMap={};(L=p.input.charCodeAt(p.position))!==0&&(j(p,!0,-1),L=p.input.charCodeAt(p.position),!(p.lineIndent>0||L!==37));){for(N=!0,L=p.input.charCodeAt(++p.position),m=p.position;L!==0&&!g(L);)L=p.input.charCodeAt(++p.position);for(P=p.input.slice(m,p.position),R=[],P.length<1&&H(p,"directive name must not be less than one character in length");L!==0;){for(;x(L);)L=p.input.charCodeAt(++p.position);if(L===35){do L=p.input.charCodeAt(++p.position);while(L!==0&&!v(L));break}if(v(L))break;for(m=p.position;L!==0&&!g(L);)L=p.input.charCodeAt(++p.position);R.push(p.input.slice(m,p.position))}L!==0&&C(p),s.call(Q,P)?Q[P](p,P,R):(M(p,'unknown document directive "'+P+'"'),p.position++)}if(j(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,j(p,!0,-1)):N&&H(p,"directives end mark is expected"),ne(p,p.lineIndent-1,u,!1,!0),j(p,!0,-1),p.checkLineBreaks&&w.test(p.input.slice(d,p.position))&&M(p,"non-ASCII line breaks are interpreted as content"),p.documents.push(p.result),p.position===p.lineStart&&V(p)){p.input.charCodeAt(p.position)===46&&(p.position+=3,j(p,!0,-1));return}if(p.position<p.length-1)H(p,"end of the stream or a document separator is expected");else return}function le(p,d){p=String(p),d=d||{};var m=p.length;m!==0&&(p.charCodeAt(m-1)!==10&&p.charCodeAt(m-1)!==13&&(p+=`
99
- `),p.charCodeAt(0)===65279&&(p=p.slice(1)));var P=new Oe(p,d);for(P.input+="\0";P.input.charCodeAt(P.position)===32;)P.lineIndent+=1,P.position+=1;for(;P.position<P.length-1;){var R=P.position;if(oe(P),P.position<=R)for(;P.position<P.length-1;P.position++){var N=P.input.charAt(P.position);if(N==`
100
- `)break}}var L=P.documents,re=L.length;re>0&&(L[re-1].endPosition=m);for(var se=0,Se=L;se<Se.length;se++){var ce=Se[se];ce.errors=P.errors,ce.startPosition>ce.endPosition&&(ce.startPosition=ce.endPosition)}return L}function ue(p,d,m){m===void 0&&(m={});var P=le(p,m),R,N;for(R=0,N=P.length;R<N;R+=1)d(P[R])}wt.loadAll=ue;function fe(p,d){d===void 0&&(d={});var m=le(p,d);if(m.length!==0){if(m.length===1)return m[0];var P=new r("expected a single document in the stream, but found more");return P.mark=new n("","",0,0,0),P.mark.position=m[0].endPosition,m[0].errors.push(P),m[0]}}wt.load=fe;function Ee(p,d,m){m===void 0&&(m={}),ue(p,d,t.extend({schema:i},m))}wt.safeLoadAll=Ee;function Be(p,d){return d===void 0&&(d={}),fe(p,t.extend({schema:i},d))}return wt.safeLoad=Be,wt.loadAll=ue,wt.load=fe,wt.safeLoadAll=Ee,wt.safeLoad=Be,wt}var Vr={},Eu;function M$(){if(Eu)return Vr;Eu=1,Object.defineProperty(Vr,"__esModule",{value:!0});var e=jr(),t=xn(),r=Wm(),n=Xa(),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=9,a=10,c=13,l=32,u=33,f=34,y=35,h=37,b=38,w=39,E=42,T=44,I=45,v=58,x=62,g=63,S=64,O=91,k=93,G=96,B=123,K=124,W=125,U={};U[0]="\\0",U[7]="\\a",U[8]="\\b",U[9]="\\t",U[10]="\\n",U[11]="\\v",U[12]="\\f",U[13]="\\r",U[27]="\\e",U[34]='\\"',U[92]="\\\\",U[133]="\\N",U[160]="\\_",U[8232]="\\L",U[8233]="\\P";var Y=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function he(q,ee){var pe,ne,oe,le,ue,fe,Ee;if(ee===null)return{};for(pe={},ne=Object.keys(ee),oe=0,le=ne.length;oe<le;oe+=1)ue=ne[oe],fe=String(ee[ue]),ue.slice(0,2)==="!!"&&(ue="tag:yaml.org,2002:"+ue.slice(2)),Ee=q.compiledTypeMap[ue],Ee&&o.call(Ee.styleAliases,fe)&&(fe=Ee.styleAliases[fe]),pe[ue]=fe;return pe}function we(q){var ee,pe,ne;if(ee=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-ee.length)+ee}function Oe(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=he(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 de(q,ee){for(var pe=e.repeat(" ",ee),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 Te(q,ee){return`
103
- `+e.repeat(" ",q.indent*ee)}function H(q,ee){var pe,ne,oe;for(pe=0,ne=q.implicitTypes.length;pe<ne;pe+=1)if(oe=q.implicitTypes[pe],oe.resolve(ee))return!0;return!1}function M(q){this.source=q,this.result="",this.checkpoint=0}M.prototype.takeUpTo=function(q){var ee;if(q<this.checkpoint)throw ee=new Error("position should be > checkpoint"),ee.position=q,ee.checkpoint=this.checkpoint,ee;return this.result+=this.source.slice(this.checkpoint,q),this.checkpoint=q,this},M.prototype.escapeChar=function(){var q,ee;return q=this.source.charCodeAt(this.checkpoint),ee=U[q]||we(q),this.result+=ee,this.checkpoint+=1,this},M.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function Q(q,ee,pe){var ne,oe,le,ue,fe,Ee,Be,p,d,m,P,R,N,L,re,se,Se,ce,ve,Ce,xe;if(ee.length===0){q.dump="''";return}if(ee.indexOf("!include")==0){q.dump=""+ee;return}if(ee.indexOf("!$$$novalue")==0){q.dump="";return}if(Y.indexOf(ee)!==-1){q.dump="'"+ee+"'";return}for(ne=!0,oe=ee.length?ee.charCodeAt(0):0,le=l===oe||l===ee.charCodeAt(ee.length-1),(I===oe||g===oe||S===oe||G===oe)&&(ne=!1),le?(ne=!1,ue=!1,fe=!1):(ue=!0,fe=!0),Ee=!0,Be=new M(ee),p=!1,d=0,m=0,P=q.indent*pe,R=80,P<40?R-=P:R=40,L=0;L<ee.length;L++){if(N=ee.charCodeAt(L),ne)if(!C(N))ne=!1;else continue;Ee&&N===w&&(Ee=!1),re=U[N],se=$(N),!(!re&&!se)&&(N!==a&&N!==f&&N!==w?(ue=!1,fe=!1):N===a&&(p=!0,Ee=!1,L>0&&(Se=ee.charCodeAt(L-1),Se===l&&(fe=!1,ue=!1)),ue&&(ce=L-d,d=L,ce>m&&(m=ce))),N!==f&&(Ee=!1),Be.takeUpTo(L),Be.escapeChar())}if(ne&&H(q,ee)&&(ne=!1),ve="",(ue||fe)&&(Ce=0,ee.charCodeAt(ee.length-1)===a&&(Ce+=1,ee.charCodeAt(ee.length-2)===a&&(Ce+=1)),Ce===0?ve="-":Ce===2&&(ve="+")),fe&&m<R&&(ue=!1),p||(fe=!1),ne)q.dump=ee;else if(Ee)q.dump="'"+ee+"'";else if(ue)xe=z(ee,R),q.dump=">"+ve+`
104
- `+de(xe,P);else if(fe)ve||(ee=ee.replace(/\n$/,"")),q.dump="|"+ve+`
105
- `+de(ee,P);else if(Be)Be.finish(),q.dump='"'+Be.result+'"';else throw new Error("Failed to dump scalar value")}function z(q,ee){var pe="",ne=0,oe=q.length,le=/\n+$/.exec(q),ue;for(le&&(oe=le.index+1);ne<oe;)ue=q.indexOf(`
97
+ `,re+1)),N=!0,re=0,m=p.position;!v(ce)&&ce!==0;)ce=p.input.charCodeAt(++p.position);z(p,m,p.position,!1)}ve.endPosition=p.position;for(var je=p.position-1;;){var xe=p.input[je];if(xe=="\r"||xe==`
98
+ `||xe!=" "&&xe!=" ")break;je--}return ve.endPosition=je,ve.rawValue=p.input.substring(ve.startPosition,ve.endPosition),!0}function ge(p,d){var m,O=p.tag,R=p.anchor,N=e.newItems(),L,re=!1,se;for(p.anchor!==null&&(N.anchorId=p.anchor,p.anchorMap[p.anchor]=N),N.startPosition=p.position,se=p.input.charCodeAt(p.position);se!==0&&!(se!==45||(L=p.input.charCodeAt(p.position+1),!g(L)));){if(re=!0,p.position++,C(p,!0,-1)&&p.lineIndent<=d){N.items.push(null),se=p.input.charCodeAt(p.position);continue}if(m=p.line,ne(p,d,l,!1,!0),p.result&&(p.result.parent=N,N.items.push(p.result)),C(p,!0,-1),se=p.input.charCodeAt(p.position),(p.line===m||p.lineIndent>d)&&se!==0)K(p,"bad indentation of a sequence entry");else if(p.lineIndent<d)break}return N.endPosition=p.position,re?(p.tag=O,p.anchor=R,p.kind="sequence",p.result=N,N.endPosition=p.position,!0):!1}function be(p,d,m){var O,R,N,L=p.tag,re=p.anchor,se=e.newMap(),Se=null,ce=null,ve=null,je=!1,xe=!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(O=p.input.charCodeAt(p.position+1),N=p.line,($e===63||$e===58)&&g(O))$e===63?(je&&(_(p,se,Se,ce,null),Se=ce=ve=null),xe=!0,je=!0,R=!0):je?(je=!1,R=!0):K(p,"incomplete explicit mapping pair; a key node is missed"),p.position+=1,$e=O;else if(ne(p,m,c,!1,!0))if(p.line===N){for($e=p.input.charCodeAt(p.position);P($e);)$e=p.input.charCodeAt(++p.position);if($e===58)$e=p.input.charCodeAt(++p.position),g($e)||K(p,"a whitespace character is expected after the key-value separator within a block mapping"),je&&(_(p,se,Se,ce,null),Se=ce=ve=null),xe=!0,je=!1,R=!1,Se=p.tag,ce=p.result;else{if(p.position==p.lineStart&&V(p))break;if(xe)K(p,"can not read an implicit mapping pair; a colon is missed");else return p.tag=L,p.anchor=re,!0}}else if(xe){for(K(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=L,p.anchor=re,!0;else break;if((p.line===N||p.lineIndent>d)&&(ne(p,d,u,!0,R)&&(je?ce=p.result:ve=p.result),je||(_(p,se,Se,ce,ve),Se=ce=ve=null),C(p,!0,-1),$e=p.input.charCodeAt(p.position)),p.lineIndent>d&&$e!==0)K(p,"bad indentation of a mapping entry");else if(p.lineIndent<d)break}return je&&_(p,se,Se,ce,null),xe&&(p.tag=L,p.anchor=re,p.kind="mapping",p.result=se),xe}function D(p){var d,m=!1,O=!1,R,N,L;if(L=p.input.charCodeAt(p.position),L!==33)return!1;if(p.tag!==null&&K(p,"duplication of a tag property"),L=p.input.charCodeAt(++p.position),L===60?(m=!0,L=p.input.charCodeAt(++p.position)):L===33?(O=!0,R="!!",L=p.input.charCodeAt(++p.position)):R="!",d=p.position,m){do L=p.input.charCodeAt(++p.position);while(L!==0&&L!==62);p.position<p.length?(N=p.input.slice(d,p.position),L=p.input.charCodeAt(++p.position)):K(p,"unexpected end of the stream within a verbatim tag")}else{for(;L!==0&&!g(L);)L===33&&(O?K(p,"tag suffix cannot contain exclamation marks"):(R=p.input.slice(d-1,p.position+1),T.test(R)||K(p,"named tag handle cannot contain such characters"),O=!0,d=p.position+1)),L=p.input.charCodeAt(++p.position);N=p.input.slice(d,p.position),x.test(N)&&K(p,"tag suffix cannot contain flow indicator characters")}return N&&!E.test(N)&&K(p,"tag name cannot contain such characters: "+N),m?p.tag=N:s.call(p.tagMap,R)?p.tag=p.tagMap[R]+N:R==="!"?p.tag="!"+N:R==="!!"?p.tag="tag:yaml.org,2002:"+N:K(p,'undeclared tag handle "'+R+'"'),!0}function ee(p){var d,m;if(m=p.input.charCodeAt(p.position),m!==38)return!1;for(p.anchor!==null&&K(p,"duplication of an anchor property"),m=p.input.charCodeAt(++p.position),d=p.position;m!==0&&!g(m)&&!S(m);)m=p.input.charCodeAt(++p.position);return p.position===d&&K(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,m;p.length,p.input;var O;if(O=p.input.charCodeAt(p.position),O!==42)return!1;for(O=p.input.charCodeAt(++p.position),d=p.position;O!==0&&!g(O)&&!S(O);)O=p.input.charCodeAt(++p.position);return p.position<=d&&(K(p,"name of an alias node must contain at least one character"),p.position=d+1),m=p.input.slice(d,p.position),p.anchorMap.hasOwnProperty(m)||(K(p,'unidentified alias "'+m+'"'),p.position<=d&&(p.position=d+1)),p.result=e.newAnchorRef(m,d,p.position,p.anchorMap[m]),C(p,!0,-1),!0}function ne(p,d,m,O,R){var N,L,re,se=1,Se=!1,ce=!1,ve,je,xe,$e,Ye;p.tag=null,p.anchor=null,p.kind=null,p.result=null,N=L=re=u===m||l===m,O&&C(p,!0,-1)&&(Se=!0,p.lineIndent>d?se=1:p.lineIndent===d?se=0:p.lineIndent<d&&(se=-1));var Uo=p.position;if(p.position-p.lineStart,se===1)for(;D(p)||ee(p);)C(p,!0,-1)?(Se=!0,re=N,p.lineIndent>d?se=1:p.lineIndent===d?se=0:p.lineIndent<d&&(se=-1)):re=!1;if(re&&(re=Se||R),(se===1||u===m)&&(a===m||c===m?$e=d:$e=d+1,Ye=p.position-p.lineStart,se===1?re&&(ge(p,Ye)||be(p,Ye,$e))||X(p,$e)?ce=!0:(L&&te(p,$e)||k(p,$e)||F(p,$e)?ce=!0:pe(p)?(ce=!0,(p.tag!==null||p.anchor!==null)&&K(p,"alias node should not have any properties")):ae(p,$e,a===m)&&(ce=!0,p.tag===null&&(p.tag="?")),p.anchor!==null&&(p.anchorMap[p.anchor]=p.result,p.result.anchorId=p.anchor)):se===0&&(ce=re&&ge(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,K(p,"!include without value")),p.result.kind=e.Kind.INCLUDE_REF;else if(p.tag==="?")for(ve=0,je=p.implicitTypes.length;ve<je;ve+=1){xe=p.implicitTypes[ve];var _n=p.result.value;if(xe.resolve(_n)){p.result.valueObject=xe.construct(p.result.value),p.tag=xe.tag,p.anchor!==null&&(p.result.anchorId=p.anchor,p.anchorMap[p.anchor]=p.result);break}}else s.call(p.typeMap,p.tag)?(xe=p.typeMap[p.tag],p.result!==null&&xe.kind!==p.kind&&K(p,"unacceptable node kind for !<"+p.tag+'> tag; it should be "'+xe.kind+'", not "'+p.kind+'"'),xe.resolve(p.result)?(p.result=xe.construct(p.result),p.anchor!==null&&(p.result.anchorId=p.anchor,p.anchorMap[p.anchor]=p.result)):K(p,"cannot resolve a node with !<"+p.tag+"> explicit tag")):Te(p,Uo,"unknown tag <"+p.tag+">",!1,!0);return p.tag!==null||p.anchor!==null||ce}function oe(p){var d=p.position,m,O,R,N=!1,L;for(p.version=null,p.checkLineBreaks=p.legacy,p.tagMap={},p.anchorMap={};(L=p.input.charCodeAt(p.position))!==0&&(C(p,!0,-1),L=p.input.charCodeAt(p.position),!(p.lineIndent>0||L!==37));){for(N=!0,L=p.input.charCodeAt(++p.position),m=p.position;L!==0&&!g(L);)L=p.input.charCodeAt(++p.position);for(O=p.input.slice(m,p.position),R=[],O.length<1&&K(p,"directive name must not be less than one character in length");L!==0;){for(;P(L);)L=p.input.charCodeAt(++p.position);if(L===35){do L=p.input.charCodeAt(++p.position);while(L!==0&&!v(L));break}if(v(L))break;for(m=p.position;L!==0&&!g(L);)L=p.input.charCodeAt(++p.position);R.push(p.input.slice(m,p.position))}L!==0&&j(p),s.call(Q,O)?Q[O](p,O,R):(M(p,'unknown document directive "'+O+'"'),p.position++)}if(C(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,C(p,!0,-1)):N&&K(p,"directives end mark is expected"),ne(p,p.lineIndent-1,u,!1,!0),C(p,!0,-1),p.checkLineBreaks&&w.test(p.input.slice(d,p.position))&&M(p,"non-ASCII line breaks are interpreted as content"),p.documents.push(p.result),p.position===p.lineStart&&V(p)){p.input.charCodeAt(p.position)===46&&(p.position+=3,C(p,!0,-1));return}if(p.position<p.length-1)K(p,"end of the stream or a document separator is expected");else return}function le(p,d){p=String(p),d=d||{};var m=p.length;m!==0&&(p.charCodeAt(m-1)!==10&&p.charCodeAt(m-1)!==13&&(p+=`
99
+ `),p.charCodeAt(0)===65279&&(p=p.slice(1)));var O=new Oe(p,d);for(O.input+="\0";O.input.charCodeAt(O.position)===32;)O.lineIndent+=1,O.position+=1;for(;O.position<O.length-1;){var R=O.position;if(oe(O),O.position<=R)for(;O.position<O.length-1;O.position++){var N=O.input.charAt(O.position);if(N==`
100
+ `)break}}var L=O.documents,re=L.length;re>0&&(L[re-1].endPosition=m);for(var se=0,Se=L;se<Se.length;se++){var ce=Se[se];ce.errors=O.errors,ce.startPosition>ce.endPosition&&(ce.startPosition=ce.endPosition)}return L}function ue(p,d,m){m===void 0&&(m={});var O=le(p,m),R,N;for(R=0,N=O.length;R<N;R+=1)d(O[R])}wt.loadAll=ue;function fe(p,d){d===void 0&&(d={});var m=le(p,d);if(m.length!==0){if(m.length===1)return m[0];var O=new r("expected a single document in the stream, but found more");return O.mark=new n("","",0,0,0),O.mark.position=m[0].endPosition,m[0].errors.push(O),m[0]}}wt.load=fe;function Ee(p,d,m){m===void 0&&(m={}),ue(p,d,t.extend({schema:i},m))}wt.safeLoadAll=Ee;function Be(p,d){return d===void 0&&(d={}),fe(p,t.extend({schema:i},d))}return wt.safeLoad=Be,wt.loadAll=ue,wt.load=fe,wt.safeLoadAll=Ee,wt.safeLoad=Be,wt}var Hr={},Pu;function Q$(){if(Pu)return Hr;Pu=1,Object.defineProperty(Hr,"__esModule",{value:!0});var e=Mr(),t=On(),r=th(),n=ec(),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=9,a=10,c=13,l=32,u=33,f=34,h=35,y=37,b=38,w=39,x=42,T=44,E=45,v=58,P=62,g=63,S=64,I=91,q=93,G=96,B=123,H=124,W=125,U={};U[0]="\\0",U[7]="\\a",U[8]="\\b",U[9]="\\t",U[10]="\\n",U[11]="\\v",U[12]="\\f",U[13]="\\r",U[27]="\\e",U[34]='\\"',U[92]="\\\\",U[133]="\\N",U[160]="\\_",U[8232]="\\L",U[8233]="\\P";var Y=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function he(D,ee){var pe,ne,oe,le,ue,fe,Ee;if(ee===null)return{};for(pe={},ne=Object.keys(ee),oe=0,le=ne.length;oe<le;oe+=1)ue=ne[oe],fe=String(ee[ue]),ue.slice(0,2)==="!!"&&(ue="tag:yaml.org,2002:"+ue.slice(2)),Ee=D.compiledTypeMap[ue],Ee&&o.call(Ee.styleAliases,fe)&&(fe=Ee.styleAliases[fe]),pe[ue]=fe;return pe}function we(D){var ee,pe,ne;if(ee=D.toString(16).toUpperCase(),D<=255)pe="x",ne=2;else if(D<=65535)pe="u",ne=4;else if(D<=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-ee.length)+ee}function Oe(D){this.schema=D.schema||r,this.indent=Math.max(1,D.indent||2),this.skipInvalid=D.skipInvalid||!1,this.flowLevel=e.isNothing(D.flowLevel)?-1:D.flowLevel,this.styleMap=he(this.schema,D.styles||null),this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function de(D,ee){for(var pe=e.repeat(" ",ee),ne=0,oe=-1,le="",ue,fe=D.length;ne<fe;)oe=D.indexOf(`
101
+ `,ne),oe===-1?(ue=D.slice(ne),ne=fe):(ue=D.slice(ne,oe+1),ne=oe+1),ue.length&&ue!==`
102
+ `&&(le+=pe),le+=ue;return le}function Te(D,ee){return`
103
+ `+e.repeat(" ",D.indent*ee)}function K(D,ee){var pe,ne,oe;for(pe=0,ne=D.implicitTypes.length;pe<ne;pe+=1)if(oe=D.implicitTypes[pe],oe.resolve(ee))return!0;return!1}function M(D){this.source=D,this.result="",this.checkpoint=0}M.prototype.takeUpTo=function(D){var ee;if(D<this.checkpoint)throw ee=new Error("position should be > checkpoint"),ee.position=D,ee.checkpoint=this.checkpoint,ee;return this.result+=this.source.slice(this.checkpoint,D),this.checkpoint=D,this},M.prototype.escapeChar=function(){var D,ee;return D=this.source.charCodeAt(this.checkpoint),ee=U[D]||we(D),this.result+=ee,this.checkpoint+=1,this},M.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function Q(D,ee,pe){var ne,oe,le,ue,fe,Ee,Be,p,d,m,O,R,N,L,re,se,Se,ce,ve,je,xe;if(ee.length===0){D.dump="''";return}if(ee.indexOf("!include")==0){D.dump=""+ee;return}if(ee.indexOf("!$$$novalue")==0){D.dump="";return}if(Y.indexOf(ee)!==-1){D.dump="'"+ee+"'";return}for(ne=!0,oe=ee.length?ee.charCodeAt(0):0,le=l===oe||l===ee.charCodeAt(ee.length-1),(E===oe||g===oe||S===oe||G===oe)&&(ne=!1),le?(ne=!1,ue=!1,fe=!1):(ue=!0,fe=!0),Ee=!0,Be=new M(ee),p=!1,d=0,m=0,O=D.indent*pe,R=80,O<40?R-=O:R=40,L=0;L<ee.length;L++){if(N=ee.charCodeAt(L),ne)if(!j(N))ne=!1;else continue;Ee&&N===w&&(Ee=!1),re=U[N],se=$(N),!(!re&&!se)&&(N!==a&&N!==f&&N!==w?(ue=!1,fe=!1):N===a&&(p=!0,Ee=!1,L>0&&(Se=ee.charCodeAt(L-1),Se===l&&(fe=!1,ue=!1)),ue&&(ce=L-d,d=L,ce>m&&(m=ce))),N!==f&&(Ee=!1),Be.takeUpTo(L),Be.escapeChar())}if(ne&&K(D,ee)&&(ne=!1),ve="",(ue||fe)&&(je=0,ee.charCodeAt(ee.length-1)===a&&(je+=1,ee.charCodeAt(ee.length-2)===a&&(je+=1)),je===0?ve="-":je===2&&(ve="+")),fe&&m<R&&(ue=!1),p||(fe=!1),ne)D.dump=ee;else if(Ee)D.dump="'"+ee+"'";else if(ue)xe=z(ee,R),D.dump=">"+ve+`
104
+ `+de(xe,O);else if(fe)ve||(ee=ee.replace(/\n$/,"")),D.dump="|"+ve+`
105
+ `+de(ee,O);else if(Be)Be.finish(),D.dump='"'+Be.result+'"';else throw new Error("Failed to dump scalar value")}function z(D,ee){var pe="",ne=0,oe=D.length,le=/\n+$/.exec(D),ue;for(le&&(oe=le.index+1);ne<oe;)ue=D.indexOf(`
106
106
  `,ne),ue>oe||ue===-1?(pe&&(pe+=`
107
107
 
108
- `),pe+=_(q.slice(ne,oe),ee),ne=oe):(pe&&(pe+=`
109
-
110
- `),pe+=_(q.slice(ne,ue),ee),ne=ue+1);return le&&le[0]!==`
111
- `&&(pe+=le[0]),pe}function _(q,ee){if(q==="")return q;for(var pe=/[^\s] [^\s]/g,ne="",oe=0,le=0,ue=pe.exec(q),fe,Ee,Be;ue;)fe=ue.index,fe-le>ee&&(oe!==le?Ee=oe:Ee=fe,ne&&(ne+=`
112
- `),Be=q.slice(le,Ee),ne+=Be,le=Ee+1),oe=fe+1,ue=pe.exec(q);return ne&&(ne+=`
113
- `),le!==oe&&q.length-le>ee?ne+=q.slice(le,oe)+`
114
- `+q.slice(oe+1):ne+=q.slice(le),ne}function C(q){return s!==q&&a!==q&&c!==q&&T!==q&&O!==q&&k!==q&&B!==q&&W!==q&&y!==q&&b!==q&&E!==q&&u!==q&&K!==q&&x!==q&&w!==q&&f!==q&&h!==q&&v!==q&&!U[q]&&!$(q)}function $(q){return!(32<=q&&q<=126||q===133||160<=q&&q<=55295||57344<=q&&q<=65533||65536<=q&&q<=1114111)}function j(q,ee,pe){var ne="",oe=q.tag,le,ue;for(le=0,ue=pe.length;le<ue;le+=1)F(q,ee,pe[le],!1,!1)&&(le!==0&&(ne+=", "),ne+=q.dump);q.tag=oe,q.dump="["+ne+"]"}function V(q,ee,pe,ne){var oe="",le=q.tag,ue,fe;for(ue=0,fe=pe.length;ue<fe;ue+=1)F(q,ee+1,pe[ue],!0,!0)&&((!ne||ue!==0)&&(oe+=Te(q,ee)),oe+="- "+q.dump);q.tag=le,q.dump=oe||"[]"}function J(q,ee,pe){var ne="",oe=q.tag,le=Object.keys(pe),ue,fe,Ee,Be,p;for(ue=0,fe=le.length;ue<fe;ue+=1)p="",ue!==0&&(p+=", "),Ee=le[ue],Be=pe[Ee],F(q,ee,Ee,!1,!1)&&(q.dump.length>1024&&(p+="? "),p+=q.dump+": ",F(q,ee,Be,!1,!1)&&(p+=q.dump,ne+=p));q.tag=oe,q.dump="{"+ne+"}"}function ae(q,ee,pe,ne){var oe="",le=q.tag,ue=Object.keys(pe),fe,Ee,Be,p,d,m;for(fe=0,Ee=ue.length;fe<Ee;fe+=1)m="",(!ne||fe!==0)&&(m+=Te(q,ee)),Be=ue[fe],p=pe[Be],F(q,ee+1,Be,!0,!0)&&(d=q.tag!==null&&q.tag!=="?"||q.dump&&q.dump.length>1024,d&&(q.dump&&a===q.dump.charCodeAt(0)?m+="?":m+="? "),m+=q.dump,d&&(m+=Te(q,ee)),F(q,ee+1,p,!0,d)&&(q.dump&&a===q.dump.charCodeAt(0)?m+=":":m+=": ",m+=q.dump,oe+=m));q.tag=le,q.dump=oe||"{}"}function D(q,ee,pe){var ne,oe,le,ue,fe,Ee;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 ee=="object"&&ee instanceof fe.instanceOf)&&(!fe.predicate||fe.predicate(ee))){if(q.tag=pe?fe.tag:"?",fe.represent){if(Ee=q.styleMap[fe.tag]||fe.defaultStyle,i.call(fe.represent)==="[object Function]")ne=fe.represent(ee,Ee);else if(o.call(fe.represent,Ee))ne=fe.represent[Ee](ee,Ee);else throw new t("!<"+fe.tag+'> tag resolver accepts not "'+Ee+'" style');q.dump=ne}return!0}return!1}function F(q,ee,pe,ne,oe){q.tag=null,q.dump=pe,D(q,pe,!1)||D(q,pe,!0);var le=i.call(q.dump);ne&&(ne=0>q.flowLevel||q.flowLevel>ee),(q.tag!==null&&q.tag!=="?"||q.indent!==2&&ee>0)&&(oe=!1);var ue=le==="[object Object]"||le==="[object Array]",fe,Ee;if(ue&&(fe=q.duplicates.indexOf(pe),Ee=fe!==-1),Ee&&q.usedDuplicates[fe])q.dump="*ref_"+fe;else{if(ue&&Ee&&!q.usedDuplicates[fe]&&(q.usedDuplicates[fe]=!0),le==="[object Object]")ne&&Object.keys(q.dump).length!==0?(ae(q,ee,q.dump,oe),Ee&&(q.dump="&ref_"+fe+(ee===0?`
115
- `:"")+q.dump)):(J(q,ee,q.dump),Ee&&(q.dump="&ref_"+fe+" "+q.dump));else if(le==="[object Array]")ne&&q.dump.length!==0?(V(q,ee,q.dump,oe),Ee&&(q.dump="&ref_"+fe+(ee===0?`
116
- `:"")+q.dump)):(j(q,ee,q.dump),Ee&&(q.dump="&ref_"+fe+" "+q.dump));else if(le==="[object String]")q.tag!=="?"&&Q(q,q.dump,ee);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,ee){var pe=[],ne=[],oe,le;for(te(q,pe,ne),oe=0,le=ne.length;oe<le;oe+=1)ee.duplicates.push(pe[ne[oe]]);ee.usedDuplicates=new Array(le)}function te(q,ee,pe){i.call(q);var ne,oe,le;if(q!==null&&typeof q=="object")if(oe=ee.indexOf(q),oe!==-1)pe.indexOf(oe)===-1&&pe.push(oe);else if(ee.push(q),Array.isArray(q))for(oe=0,le=q.length;oe<le;oe+=1)te(q[oe],ee,pe);else for(ne=Object.keys(q),oe=0,le=ne.length;oe<le;oe+=1)te(q[ne[oe]],ee,pe)}function ge(q,ee){ee=ee||{};var pe=new Oe(ee);return X(q,pe),F(pe,0,q,!0,!0)?pe.dump+`
117
- `:""}Vr.dump=ge;function be(q,ee){return ge(q,e.extend({schema:n},ee))}return Vr.safeDump=be,Vr}var Cs={},xu;function L$(){return xu||(xu=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]+$/,f=/^0x[0-9a-fA-F]+$/;if(l.test(c)||u.test(c)||f.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})(Cs)),Cs}var Tu;function U$(){return Tu||(Tu=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=j$();e.load=r.load,e.loadAll=r.loadAll,e.safeLoad=r.safeLoad,e.safeLoadAll=r.safeLoadAll;var n=M$();e.dump=n.dump,e.safeDump=n.safeDump,e.YAMLException=xn(),t(Co()),t(L$())})(us)),us}var Gr=U$();const F$=150,B$=3;function aa(e,t){Bs.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-B$+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=mo(h));const b=y===s?r.col-1:u,w=y===a?n.col-1:h.length;l.push([`${y}`,f(h,b,w,Ne.red)]),t||l.push(["",Pu(h,b,w)])}return c>0&&(l.push(["…",`${Za(u)}${Ne.gray(`< ${c} more lines >`)}`]),l.push([`${a}`,f(o[a-1],-1,n.col-1,Ne.red)]),t||l.push(["",Pu(o[a-1],-1,n.col-1)])),z$([[`${s-2}`,f(o[s-1-2])],[`${s-1}`,f(o[s-1-1])],...l,[`${a+1}`,f(o[a-1+1])],[`${a+2}`,f(o[a-1+2])]]);function f(y,h=-1,b=1/0,w=Ne.gray){return!t||!y?y:(h===-1&&(h=mo(y)),b=Math.min(b,y.length),y.substr(0,h)+w(y.substring(h,b))+y.substr(b))}}function z$(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:mo(o)));return t.map(([i,o])=>Ne.gray(K$(r,i)+" |")+(o?" "+V$(o.substring(n)):"")).join(`
118
- `)}function V$(e,t=F$){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 Pu(e,t=-1,r=1/0){return t===-1&&(t=mo(e)),r=Math.min(r,e.length),Za(t)+"^".repeat(Math.max(r-t,1))}function Za(e){return" ".repeat(e)}function K$(e,t){return Za(e-t.length)+t}function mo(e){for(let t=0;t<e.length;t++)if(e[t]!==" ")return t;return e.length}function Qt(e){if(e.pointer===void 0)return e;const{source:t,pointer:r,reportOnKey:n}=e,i=t.getAst(Gr.safeLoad),o=Jm(i,r,!!n);return{...e,pointer:void 0,...H$(t.body,o?.startPosition??1,o?.endPosition??1)}}function H$(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 Jm(e,t,r){const n=A.parsePointer(t.substr(2));if(e===void 0)return;let i=e;for(const o of n)if(i.kind===Gr.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===Gr.Kind.SEQ){const s=i.items[parseInt(o,10)];if(!s)break;i=s}if(r){const o=i.parent;return!o||o.kind===Gr.Kind.SEQ?i:o.kind===Gr.Kind.MAPPING?o.key:i}else return i}const G$={INVALID_SEVERITY_LEVEL:"Invalid severity level; accepted values: error or warn"},Ou={warn:e=>Ne.bgYellow(Ne.black(e)),error:Ne.bgRed},Xm={warn:Ne.yellow,error:Ne.red},wr={warn:"Warning",error:"Error"},Y$={error:"critical",warn:"minor"},Q$=+(A.env.REDOCLY_CLI_LINT_MAX_SUGGESTIONS??5);function ho(e){return e==="error"?1:2}function Zm(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 W$(e,t){const{maxProblems:r=100,cwd:n=A.isBrowser?"":process.cwd(),format:i="codeframe",color:o=Bs.enabled,totals:s=Zm(e),version:a="2.0",command:c}=t;Bs.enabled=o;const l=e.length;e=e.filter(v=>!v.ignored);const u=l-e.length;if(e=e.sort((v,x)=>ho(v.severity)-ho(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(`${b(x,v)}
120
- `):Re.output(`${b(x,v)}
121
- `)}break;case"stylish":{const v=js(e);for(const[x,{ruleIdPad:g,locationPad:S,fileProblems:O}]of Object.entries(v)){Re.output(`${Ne.blue(A.isAbsoluteUrl(x)?x:Z.pathBrowserifyExports.relative(n,x))}:
122
- `);for(let k=0;k<O.length;k++){const G=O[k];Re.output(`${w(G,S,g)}
108
+ `),pe+=_(D.slice(ne,oe),ee),ne=oe):(pe&&(pe+=`
109
+
110
+ `),pe+=_(D.slice(ne,ue),ee),ne=ue+1);return le&&le[0]!==`
111
+ `&&(pe+=le[0]),pe}function _(D,ee){if(D==="")return D;for(var pe=/[^\s] [^\s]/g,ne="",oe=0,le=0,ue=pe.exec(D),fe,Ee,Be;ue;)fe=ue.index,fe-le>ee&&(oe!==le?Ee=oe:Ee=fe,ne&&(ne+=`
112
+ `),Be=D.slice(le,Ee),ne+=Be,le=Ee+1),oe=fe+1,ue=pe.exec(D);return ne&&(ne+=`
113
+ `),le!==oe&&D.length-le>ee?ne+=D.slice(le,oe)+`
114
+ `+D.slice(oe+1):ne+=D.slice(le),ne}function j(D){return s!==D&&a!==D&&c!==D&&T!==D&&I!==D&&q!==D&&B!==D&&W!==D&&h!==D&&b!==D&&x!==D&&u!==D&&H!==D&&P!==D&&w!==D&&f!==D&&y!==D&&v!==D&&!U[D]&&!$(D)}function $(D){return!(32<=D&&D<=126||D===133||160<=D&&D<=55295||57344<=D&&D<=65533||65536<=D&&D<=1114111)}function C(D,ee,pe){var ne="",oe=D.tag,le,ue;for(le=0,ue=pe.length;le<ue;le+=1)F(D,ee,pe[le],!1,!1)&&(le!==0&&(ne+=", "),ne+=D.dump);D.tag=oe,D.dump="["+ne+"]"}function V(D,ee,pe,ne){var oe="",le=D.tag,ue,fe;for(ue=0,fe=pe.length;ue<fe;ue+=1)F(D,ee+1,pe[ue],!0,!0)&&((!ne||ue!==0)&&(oe+=Te(D,ee)),oe+="- "+D.dump);D.tag=le,D.dump=oe||"[]"}function J(D,ee,pe){var ne="",oe=D.tag,le=Object.keys(pe),ue,fe,Ee,Be,p;for(ue=0,fe=le.length;ue<fe;ue+=1)p="",ue!==0&&(p+=", "),Ee=le[ue],Be=pe[Ee],F(D,ee,Ee,!1,!1)&&(D.dump.length>1024&&(p+="? "),p+=D.dump+": ",F(D,ee,Be,!1,!1)&&(p+=D.dump,ne+=p));D.tag=oe,D.dump="{"+ne+"}"}function ae(D,ee,pe,ne){var oe="",le=D.tag,ue=Object.keys(pe),fe,Ee,Be,p,d,m;for(fe=0,Ee=ue.length;fe<Ee;fe+=1)m="",(!ne||fe!==0)&&(m+=Te(D,ee)),Be=ue[fe],p=pe[Be],F(D,ee+1,Be,!0,!0)&&(d=D.tag!==null&&D.tag!=="?"||D.dump&&D.dump.length>1024,d&&(D.dump&&a===D.dump.charCodeAt(0)?m+="?":m+="? "),m+=D.dump,d&&(m+=Te(D,ee)),F(D,ee+1,p,!0,d)&&(D.dump&&a===D.dump.charCodeAt(0)?m+=":":m+=": ",m+=D.dump,oe+=m));D.tag=le,D.dump=oe||"{}"}function k(D,ee,pe){var ne,oe,le,ue,fe,Ee;for(oe=pe?D.explicitTypes:D.implicitTypes,le=0,ue=oe.length;le<ue;le+=1)if(fe=oe[le],(fe.instanceOf||fe.predicate)&&(!fe.instanceOf||typeof ee=="object"&&ee instanceof fe.instanceOf)&&(!fe.predicate||fe.predicate(ee))){if(D.tag=pe?fe.tag:"?",fe.represent){if(Ee=D.styleMap[fe.tag]||fe.defaultStyle,i.call(fe.represent)==="[object Function]")ne=fe.represent(ee,Ee);else if(o.call(fe.represent,Ee))ne=fe.represent[Ee](ee,Ee);else throw new t("!<"+fe.tag+'> tag resolver accepts not "'+Ee+'" style');D.dump=ne}return!0}return!1}function F(D,ee,pe,ne,oe){D.tag=null,D.dump=pe,k(D,pe,!1)||k(D,pe,!0);var le=i.call(D.dump);ne&&(ne=0>D.flowLevel||D.flowLevel>ee),(D.tag!==null&&D.tag!=="?"||D.indent!==2&&ee>0)&&(oe=!1);var ue=le==="[object Object]"||le==="[object Array]",fe,Ee;if(ue&&(fe=D.duplicates.indexOf(pe),Ee=fe!==-1),Ee&&D.usedDuplicates[fe])D.dump="*ref_"+fe;else{if(ue&&Ee&&!D.usedDuplicates[fe]&&(D.usedDuplicates[fe]=!0),le==="[object Object]")ne&&Object.keys(D.dump).length!==0?(ae(D,ee,D.dump,oe),Ee&&(D.dump="&ref_"+fe+(ee===0?`
115
+ `:"")+D.dump)):(J(D,ee,D.dump),Ee&&(D.dump="&ref_"+fe+" "+D.dump));else if(le==="[object Array]")ne&&D.dump.length!==0?(V(D,ee,D.dump,oe),Ee&&(D.dump="&ref_"+fe+(ee===0?`
116
+ `:"")+D.dump)):(C(D,ee,D.dump),Ee&&(D.dump="&ref_"+fe+" "+D.dump));else if(le==="[object String]")D.tag!=="?"&&Q(D,D.dump,ee);else{if(D.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+le)}D.tag!==null&&D.tag!=="?"&&(D.dump="!<"+D.tag+"> "+D.dump)}return!0}function X(D,ee){var pe=[],ne=[],oe,le;for(te(D,pe,ne),oe=0,le=ne.length;oe<le;oe+=1)ee.duplicates.push(pe[ne[oe]]);ee.usedDuplicates=new Array(le)}function te(D,ee,pe){i.call(D);var ne,oe,le;if(D!==null&&typeof D=="object")if(oe=ee.indexOf(D),oe!==-1)pe.indexOf(oe)===-1&&pe.push(oe);else if(ee.push(D),Array.isArray(D))for(oe=0,le=D.length;oe<le;oe+=1)te(D[oe],ee,pe);else for(ne=Object.keys(D),oe=0,le=ne.length;oe<le;oe+=1)te(D[ne[oe]],ee,pe)}function ge(D,ee){ee=ee||{};var pe=new Oe(ee);return X(D,pe),F(pe,0,D,!0,!0)?pe.dump+`
117
+ `:""}Hr.dump=ge;function be(D,ee){return ge(D,e.extend({schema:n},ee))}return Hr.safeDump=be,Hr}var Ls={},Ou;function W$(){return Ou||(Ou=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]+$/,f=/^0x[0-9a-fA-F]+$/;if(l.test(c)||u.test(c)||f.test(c))return o.int;var h=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,y=/^[-+]?(\.inf|\.Inf|\.INF)$/;return h.test(c)||y.test(c)||[".nan",".NaN",".NAN"].indexOf(c)>=0?o.float:o.string}e.determineScalarType=s})(Ls)),Ls}var Iu;function J$(){return Iu||(Iu=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=Y$();e.load=r.load,e.loadAll=r.loadAll,e.safeLoad=r.safeLoad,e.safeLoadAll=r.safeLoadAll;var n=Q$();e.dump=n.dump,e.safeDump=n.safeDump,e.YAMLException=On(),t(Lo()),t(W$())})(ms)),ms}var Wr=J$();const X$=150,Z$=3;function pa(e,t){Ks.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-Z$+1,0);c<2&&(c=0);const l=[];let u=0;for(let h=s;h<=a&&!(c>0&&h>=a-c);h++){const y=o[h-1]||"";y!==""&&(u=go(y));const b=h===s?r.col-1:u,w=h===a?n.col-1:y.length;l.push([`${h}`,f(y,b,w,Ne.red)]),t||l.push(["",_u(y,b,w)])}return c>0&&(l.push(["…",`${tc(u)}${Ne.gray(`< ${c} more lines >`)}`]),l.push([`${a}`,f(o[a-1],-1,n.col-1,Ne.red)]),t||l.push(["",_u(o[a-1],-1,n.col-1)])),eN([[`${s-2}`,f(o[s-1-2])],[`${s-1}`,f(o[s-1-1])],...l,[`${a+1}`,f(o[a-1+1])],[`${a+2}`,f(o[a-1+2])]]);function f(h,y=-1,b=1/0,w=Ne.gray){return!t||!h?h:(y===-1&&(y=go(h)),b=Math.min(b,h.length),h.substr(0,y)+w(h.substring(y,b))+h.substr(b))}}function eN(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:go(o)));return t.map(([i,o])=>Ne.gray(rN(r,i)+" |")+(o?" "+tN(o.substring(n)):"")).join(`
118
+ `)}function tN(e,t=X$){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 _u(e,t=-1,r=1/0){return t===-1&&(t=go(e)),r=Math.min(r,e.length),tc(t)+"^".repeat(Math.max(r-t,1))}function tc(e){return" ".repeat(e)}function rN(e,t){return tc(e-t.length)+t}function go(e){for(let t=0;t<e.length;t++)if(e[t]!==" ")return t;return e.length}function Qt(e){if(e.pointer===void 0)return e;const{source:t,pointer:r,reportOnKey:n}=e,i=t.getAst(Wr.safeLoad),o=rh(i,r,!!n);return{...e,pointer:void 0,...nN(t.body,o?.startPosition??1,o?.endPosition??1)}}function nN(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 rh(e,t,r){const n=A.parsePointer(t.substr(2));if(e===void 0)return;let i=e;for(const o of n)if(i.kind===Wr.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===Wr.Kind.SEQ){const s=i.items[parseInt(o,10)];if(!s)break;i=s}if(r){const o=i.parent;return!o||o.kind===Wr.Kind.SEQ?i:o.kind===Wr.Kind.MAPPING?o.key:i}else return i}const iN={INVALID_SEVERITY_LEVEL:"Invalid severity level; accepted values: error or warn"},Au={warn:e=>Ne.bgYellow(Ne.black(e)),error:Ne.bgRed},nh={warn:Ne.yellow,error:Ne.red},Sr={warn:"Warning",error:"Error"},oN={error:"critical",warn:"minor"},sN=+(A.env.REDOCLY_CLI_LINT_MAX_SUGGESTIONS??5);function vo(e){return e==="error"?1:2}function ih(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 aN(e,t){const{maxProblems:r=100,cwd:n=A.isBrowser?"":process.cwd(),format:i="codeframe",color:o=Ks.enabled,totals:s=ih(e),version:a="2.0",command:c}=t;Ks.enabled=o;const l=e.length;e=e.filter(v=>!v.ignored);const u=l-e.length;if(e=e.sort((v,P)=>vo(v.severity)-vo(P.severity)).slice(0,r),!l&&i!=="json"&&i!=="junit")return;switch(i){case"json":h();break;case"codeframe":for(let v=0;v<e.length;v++){const P=e[v];c==="bundle"?Re.info(`${b(P,v)}
120
+ `):Re.output(`${b(P,v)}
121
+ `)}break;case"stylish":{const v=Us(e);for(const[P,{ruleIdPad:g,locationPad:S,fileProblems:I}]of Object.entries(v)){Re.output(`${Ne.blue(A.isAbsoluteUrl(P)?P:Z.pathBrowserifyExports.relative(n,P))}:
122
+ `);for(let q=0;q<I.length;q++){const G=I[q];Re.output(`${w(G,S,g)}
123
123
  `)}Re.output(`
124
- `)}break}case"markdown":{const v=js(e);for(const[x,{fileProblems:g}]of Object.entries(v)){Re.output(`## Lint: ${A.isAbsoluteUrl(x)?x:Z.pathBrowserifyExports.relative(n,x)}
124
+ `)}break}case"markdown":{const v=Us(e);for(const[P,{fileProblems:g}]of Object.entries(v)){Re.output(`## Lint: ${A.isAbsoluteUrl(P)?P:Z.pathBrowserifyExports.relative(n,P)}
125
125
 
126
126
  `),Re.output(`| Severity | Location | Problem | Message |
127
127
  `),Re.output(`|---|---|---|---|
128
- `);for(let S=0;S<g.length;S++){const O=g[S];Re.output(`${E(O)}
128
+ `);for(let S=0;S<g.length;S++){const I=g[S];Re.output(`${x(I)}
129
129
  `)}Re.output(`
130
130
  `),s.errors>0?Re.output(`Validation failed
131
131
  Errors: ${s.errors}
132
132
  `):Re.output(`Validation successful
133
133
  `),s.warnings>0&&Re.output(`Warnings: ${s.warnings}
134
134
  `),Re.output(`
135
- `)}break}case"checkstyle":{const v=js(e);Re.output(`<?xml version="1.0" encoding="UTF-8"?>
135
+ `)}break}case"checkstyle":{const v=Us(e);Re.output(`<?xml version="1.0" encoding="UTF-8"?>
136
136
  `),Re.output(`<checkstyle version="4.3">
137
- `);for(const[x,{fileProblems:g}]of Object.entries(v))Re.output(`<file name="${St(A.isAbsoluteUrl(x)?x:Z.pathBrowserifyExports.relative(n,x))}">
137
+ `);for(const[P,{fileProblems:g}]of Object.entries(v))Re.output(`<file name="${St(A.isAbsoluteUrl(P)?P:Z.pathBrowserifyExports.relative(n,P))}">
138
138
  `),g.forEach(T),Re.output(`</file>
139
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=A.isAbsoluteUrl(S)?S:Z.pathBrowserifyExports.relative(n,S),G=O.filter(K=>K.severity==="error").length,B=O.filter(K=>K.severity==="warn").length;Re.output(`<testsuite name="${St(k)}" tests="${O.length}" errors="${G}" failures="${B}">
143
- `),O.forEach(K=>I(K,k)),Re.output(`</testsuite>
140
+ `);break}case"junit":{const v=e.filter(S=>S.severity==="error").length,P=e.filter(S=>S.severity==="warn").length,g={};for(const S of e){const I=S.location[0].source.absoluteRef;g[I]||(g[I]=[]),g[I].push(S)}Re.output(`<?xml version="1.0" encoding="UTF-8"?>
141
+ `),Re.output(`<testsuites name="redocly lint" tests="${e.length}" errors="${v}" failures="${P}" skipped="0">
142
+ `);for(const[S,I]of Object.entries(g)){const q=A.isAbsoluteUrl(S)?S:Z.pathBrowserifyExports.relative(n,S),G=I.filter(H=>H.severity==="error").length,B=I.filter(H=>H.severity==="warn").length;Re.output(`<testsuite name="${St(q)}" tests="${I.length}" errors="${G}" failures="${B}">
143
+ `),I.forEach(H=>E(H,q)),Re.output(`</testsuite>
144
144
  `)}Re.output(`</testsuites>
145
- `);break}case"codeclimate":f();break;case"summary":J$(e);break;case"github-actions":Z$(e,n)}l-u>r&&Re.info(`< ... ${l-r} more problems hidden > ${Ne.gray("increase with `--max-problems N`")}
146
- `);function f(){const v=e.map(x=>{const g=x.location[0],S=Qt(g);return{description:x.message,location:{path:A.isAbsoluteUrl(g.source.absoluteRef)?g.source.absoluteRef:Z.pathBrowserifyExports.relative(n,g.source.absoluteRef),lines:{begin:S.start.line}},severity:Y$[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:A.isAbsoluteUrl(S.source.absoluteRef)?S.source.absoluteRef:Z.pathBrowserifyExports.relative(n,S.source.absoluteRef)}})),from:x.from?{...x.from,source:{ref:A.isAbsoluteUrl(x.from?.source.absoluteRef)?x.from?.source.absoluteRef:Z.pathBrowserifyExports.relative(n,x.from?.source.absoluteRef||n)}}:void 0};if(A.env.FORMAT_JSON_WITH_CODEFRAMES){const S=x.location[0],O=Qt(S);g.codeframe=aa(O,o)}return g})};Re.output(JSON.stringify(v,null,2))}function h(v){const{severity:x}=v;if(!Ou[x])throw new Error(G$.INVALID_SEVERITY_LEVEL);return Ou[x]}function b(v,x){const g=h(v),S=v.location[0],O=A.isAbsoluteUrl(S.source.absoluteRef)?S.source.absoluteRef:Z.pathBrowserifyExports.relative(n,S.source.absoluteRef),k=Qt(S),G=S.pointer?Ne.gray(`at ${S.pointer}`):"",B=`${O}:${k.start.line}:${k.start.col}`;return`[${x+1}] ${g(B)} ${G}
145
+ `);break}case"codeclimate":f();break;case"summary":cN(e);break;case"github-actions":lN(e,n)}l-u>r&&Re.info(`< ... ${l-r} more problems hidden > ${Ne.gray("increase with `--max-problems N`")}
146
+ `);function f(){const v=e.map(P=>{const g=P.location[0],S=Qt(g);return{description:P.message,location:{path:A.isAbsoluteUrl(g.source.absoluteRef)?g.source.absoluteRef:Z.pathBrowserifyExports.relative(n,g.source.absoluteRef),lines:{begin:S.start.line}},severity:oN[P.severity],fingerprint:`${P.ruleId}${P.location.length>0?"-"+P.location[0].pointer:""}`}});Re.output(JSON.stringify(v,null,2))}function h(){const v={totals:s,version:a,problems:e.map(P=>{const g={...P,location:P.location.map(S=>({...S,source:{ref:A.isAbsoluteUrl(S.source.absoluteRef)?S.source.absoluteRef:Z.pathBrowserifyExports.relative(n,S.source.absoluteRef)}})),from:P.from?{...P.from,source:{ref:A.isAbsoluteUrl(P.from?.source.absoluteRef)?P.from?.source.absoluteRef:Z.pathBrowserifyExports.relative(n,P.from?.source.absoluteRef||n)}}:void 0};if(A.env.FORMAT_JSON_WITH_CODEFRAMES){const S=P.location[0],I=Qt(S);g.codeframe=pa(I,o)}return g})};Re.output(JSON.stringify(v,null,2))}function y(v){const{severity:P}=v;if(!Au[P])throw new Error(iN.INVALID_SEVERITY_LEVEL);return Au[P]}function b(v,P){const g=y(v),S=v.location[0],I=A.isAbsoluteUrl(S.source.absoluteRef)?S.source.absoluteRef:Z.pathBrowserifyExports.relative(n,S.source.absoluteRef),q=Qt(S),G=S.pointer?Ne.gray(`at ${S.pointer}`):"",B=`${I}:${q.start.line}:${q.start.col}`;return`[${P+1}] ${g(B)} ${G}
147
147
 
148
148
  ${v.message}
149
149
 
150
- `+eh(v)+aa(k,o)+`
150
+ `+oh(v)+pa(q,o)+`
151
151
 
152
- `+X$(n,v.from)+`${wr[v.severity]} was generated by the ${Ne.blue(v.ruleId)} rule.
152
+ `+pN(n,v.from)+`${Sr[v.severity]} was generated by the ${Ne.blue(v.ruleId)} rule.
153
153
 
154
154
  `+(v.reference?`Reference: ${Ne.blue(v.reference)}
155
155
 
156
- `:"")}function w(v,x,g){const S=Xm[v.severity];if(!wr[v.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";const O=S(wr[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(!wr[v.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";const x=wr[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 T(v){const{line:x,col:g}=v.location[0].start,S=v.severity=="warn"?"warning":"error",O=St(v.message),k=St(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}=Qt(g),O=v.severity==="error"?"error":"failure",k=St(v.ruleId),G=St(v.message),B=[`Rule: ${k}`,`Severity: ${St(v.severity)}`,`File: ${St(x)}`,`Line: ${S.line}`,`Column: ${S.col}`];g.pointer&&B.push(`Pointer: ${St(g.pointer)}`),B.push(`Message: ${G}`),Re.output(`<testcase classname="${k}" name="${k}" file="${St(x)}" line="${S.line}">
159
- `),Re.output(`<${O} message="${G}" type="${k}">${B.join(`
160
- `)}</${O}>
156
+ `:"")}function w(v,P,g){const S=nh[v.severity];if(!Sr[v.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";const I=S(Sr[v.severity].toLowerCase().padEnd(7)),{start:q}=v.location[0];return` ${`${q.line}:${q.col}`.padEnd(P)} ${I} ${v.ruleId.padEnd(g)} ${v.message}`}function x(v){if(!Sr[v.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";const P=Sr[v.severity].toLowerCase(),{start:g}=v.location[0];return`| ${P} | line ${`${g.line}:${g.col}`} | [${v.ruleId}](https://redocly.com/docs/cli/rules/${v.ruleId}/) | ${v.message.replaceAll(`
157
+ `,"<br>")} |`}function T(v){const{line:P,col:g}=v.location[0].start,S=v.severity=="warn"?"warning":"error",I=St(v.message),q=St(v.ruleId);Re.output(`<error line="${P}" column="${g}" severity="${S}" message="${I}" source="${q}" />
158
+ `)}function E(v,P){const g=v.location[0],{start:S}=Qt(g),I=v.severity==="error"?"error":"failure",q=St(v.ruleId),G=St(v.message),B=[`Rule: ${q}`,`Severity: ${St(v.severity)}`,`File: ${St(P)}`,`Line: ${S.line}`,`Column: ${S.col}`];g.pointer&&B.push(`Pointer: ${St(g.pointer)}`),B.push(`Message: ${G}`),Re.output(`<testcase classname="${q}" name="${q}" file="${St(P)}" line="${S.line}">
159
+ `),Re.output(`<${I} message="${G}" type="${q}">${B.join(`
160
+ `)}</${I}>
161
161
  `),Re.output(`</testcase>
162
- `)}}function J$(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])=>ho(n.severity)-ho(i.severity)||i.count-n.count);for(const[n,i]of r){const o=Xm[i.severity],s=o(wr[i.severity].toLowerCase().padEnd(7));Re.output(`${s} ${n}: ${i.count}
162
+ `)}}function cN(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])=>vo(n.severity)-vo(i.severity)||i.count-n.count);for(const[n,i]of r){const o=nh[i.severity],s=o(Sr[i.severity].toLowerCase().padEnd(7));Re.output(`${s} ${n}: ${i.count}
163
163
  `)}Re.output(`
164
- `)}function X$(e,t){if(!t)return"";const r=Z.pathBrowserifyExports.relative(e,t.source.absoluteRef),n=Qt(t),i=`${r}:${n.start.line}:${n.start.col}`,o=t.pointer?Ne.gray(`at ${t.pointer}`):"";return`referenced from ${Ne.blue(i)} ${o}
164
+ `)}function pN(e,t){if(!t)return"";const r=Z.pathBrowserifyExports.relative(e,t.source.absoluteRef),n=Qt(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
165
 
166
- `}function eh(e){return e.suggest.length===0?"":e.suggest.length===1?`Did you mean: ${e.suggest[0]} ?
166
+ `}function oh(e){return e.suggest.length===0?"":e.suggest.length===1?`Did you mean: ${e.suggest[0]} ?
167
167
 
168
168
  `:`Did you mean:
169
- - ${e.suggest.slice(0,Q$).join(`
169
+ - ${e.suggest.slice(0,sN).join(`
170
170
  - `)}
171
171
 
172
- `}const js=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(Qt)};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 St(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 Z$(e,t){for(const s of e)for(const a of s.location.map(Qt)){let c;switch(s.severity){case"error":c="error";break;case"warn":c="warning";break}const l=eh(s),u=s.reference?`Reference: ${s.reference}
172
+ `}const Us=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(Qt)};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 St(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 lN(e,t){for(const s of e)for(const a of s.location.map(Qt)){let c;switch(s.severity){case"error":c="error";break;case"warn":c="warning";break}const l=oh(s),u=s.reference?`Reference: ${s.reference}
173
173
 
174
174
  `:"",f=s.message+(l!==""||u!==""?`
175
175
 
176
- `:"")+l+u,y={title:s.ruleId,file:A.isAbsoluteUrl(a.source.absoluteRef)?a.source.absoluteRef:Z.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(f)}
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:aN,...eN}=vo.properties,tN={...vo,properties:eN};async function rN(e){const{ref:t,externalRefResolver:r=new A.BaseResolver(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),ec({document:n,...e,externalRefResolver:r})}async function nN(e){const{source:t,absoluteRef:r,externalRefResolver:n=new A.BaseResolver(e.config.resolve)}=e,i=A.makeDocumentFromString(t,r||"/");return ec({document:i,...e,externalRefResolver:n})}async function ec(e){const{document:t,customTypes:r,externalRefResolver:n,config:i}=e;if(A.isGraphqlRef(t.source.absoluteRef)){const{lintGraphqlDocument:h}=await Promise.resolve().then(()=>require("./replay-lint-graphql-U_VxwRr1.js"));return h({document:t,config:i})}const o=qr(t.parsed),s=i.getRulesForSpecVersion(Na(o)),a=A.normalizeTypes(i.extendTypes(r??ln(o),o),i),c={problems:[],specVersion:o,config:i,visitorsData:{}},l=Xr(s,i,"preprocessors",o),u=Xr(s,i,"rules",o);let f=await A.resolveDocument({rootDocument:t,rootType:a.Root,externalRefResolver:n});l.length>0&&(Bt({document:t,rootType:a.Root,normalizedVisitors:Ft(l,a),resolvedRefMap:f,ctx:c}),f=await A.resolveDocument({rootDocument:t,rootType:a.Root,externalRefResolver:n}));const y=Ft(u,a);return Bt({document:t,rootType:a.Root,normalizedVisitors:y,resolvedRefMap:f,ctx:c}),c.problems.map(h=>i.addProblemToIgnore(h))}async function iN(e){const{severity:t,externalRefResolver:r=new A.BaseResolver,config:n}=e;if(!n.document)throw new Error("Config document is not set.");const i={problems:[],specVersion:"config",config:n,visitorsData:{}},o=A.normalizeTypes(e.externalConfigTypes||_a(tN,n)),s=[{severity:t||"error",ruleId:"configuration struct",visitor:Ht()},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:Kt()}],a=Ft(s,o),c=n.resolvedRefMap||await A.resolveDocument({rootDocument:n.document,rootType:o.ConfigRoot,externalRefResolver:r});return Bt({document:n.document,rootType:o.ConfigRoot,normalizedVisitors:a,resolvedRefMap:c,ctx:i}),i.problems}exports.Ajv=Ia;exports.Arazzo1Types=rt;exports.Arazzo1_1Types=Ku;exports.Assertions=Xt;exports.AsyncApi2Types=zu;exports.AsyncApi3Types=Vu;exports.CONFIG_BUNDLER_VISITOR_ID=Aa;exports.CONFIG_FILE_NAME=Fs;exports.Config=fn;exports.ConfigTypes=zd;exports.ConfigValidationError=FR;exports.DEFAULT_CONFIG=Vd;exports.DEFAULT_PROJECT_PLUGIN_PATHS=Hd;exports.GraphQLError=ie;exports.IGNORE_BANNER=Kd;exports.IGNORE_FILE=to;exports.Location=uI;exports.NoUnresolvedRefs=Kt;exports.Oas2Types=Au;exports.Oas3Types=Tt;exports.Oas3_1Types=De;exports.Oas3_2Types=Ze;exports.OpenRpcTypes=Gu;exports.Overlay1Types=Hu;exports.PLUGINS_COLLECTOR_VISITOR_ID=Ra;exports.Ps=sE;exports.Rs=oE;exports.Struct=Ht;exports.Token=dI;exports.bundle=XR;exports.bundleDocument=Wa;exports.bundleFromString=ZR;exports.clearPluginsCache=a$;exports.createConfig=m$;exports.createConfigTypes=_a;exports.dedentBlockStringLines=mI;exports.dequal=zt;exports.detectSpec=qr;exports.devAssert=Ue;exports.findConfig=f$;exports.formatProblems=W$;exports.getAstNodeByPointer=Jm;exports.getCodeframe=aa;exports.getLineColLocation=Qt;exports.getLocation=oo;exports.getMajorSpecVersion=Na;exports.getNodeTypesFromJSONSchema=Ld;exports.getPluginCacheVersion=o$;exports.getTotals=Zm;exports.getTypes=ln;exports.initRules=Xr;exports.inspect=me;exports.instanceOf=Ot;exports.isDigit=Sf;exports.isEmptyObject=Ir;exports.isNameContinue=Tf;exports.isNameStart=xf;exports.isNotEmptyArray=Wr;exports.isString=et;exports.keysOf=ca;exports.lint=rN;exports.lintConfig=iN;exports.lintDocument=ec;exports.lintFromString=nN;exports.loadConfig=d$;exports.loadIgnoreConfig=Ym;exports.logger=Re;exports.mapTypeToComponent=oa;exports.normalizeVisitors=Ft;exports.pluralize=oh;exports.regexFromString=Yr;exports.resolvePlugins=Gm;exports.slash=_u;exports.t=Ge;exports.visit=ja;exports.visitInParallel=Of;exports.walkDocument=Bt;exports.xmlEscape=St;
176
+ `:"")+l+u,h={title:s.ruleId,file:A.isAbsoluteUrl(a.source.absoluteRef)?a.source.absoluteRef:Z.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(h)}::${i(f)}
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:vN,...uN}=So.properties,dN={...So,properties:uN};async function fN(e){const{ref:t,externalRefResolver:r=new A.BaseResolver(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),rc({document:n,...e,externalRefResolver:r})}async function mN(e){const{source:t,absoluteRef:r,externalRefResolver:n=new A.BaseResolver(e.config.resolve)}=e,i=A.makeDocumentFromString(t,r||"/");return rc({document:i,...e,externalRefResolver:n})}async function rc(e){const{document:t,customTypes:r,externalRefResolver:n,config:i}=e;if(A.isGraphqlRef(t.source.absoluteRef)){const{lintGraphqlDocument:y}=await Promise.resolve().then(()=>require("./replay-lint-graphql-BsBWkZ6L.js"));return y({document:t,config:i})}const o=jr(t.parsed),s=i.getRulesForSpecVersion(Da(o)),a=A.normalizeTypes(i.extendTypes(r??fn(o),o),i),c={problems:[],specVersion:o,config:i,visitorsData:{}},l=tn(s,i,"preprocessors",o),u=tn(s,i,"rules",o);let f=await A.resolveDocument({rootDocument:t,rootType:a.Root,externalRefResolver:n});l.length>0&&(Bt({document:t,rootType:a.Root,normalizedVisitors:Ft(l,a),resolvedRefMap:f,ctx:c}),f=await A.resolveDocument({rootDocument:t,rootType:a.Root,externalRefResolver:n}));const h=Ft(u,a);return Bt({document:t,rootType:a.Root,normalizedVisitors:h,resolvedRefMap:f,ctx:c}),c.problems.map(y=>i.addProblemToIgnore(y))}async function hN(e){const{severity:t,externalRefResolver:r=new A.BaseResolver,config:n}=e;if(!n.document)throw new Error("Config document is not set.");const i={problems:[],specVersion:"config",config:n,visitorsData:{}},o=A.normalizeTypes(e.externalConfigTypes||Ra(dN,n)),s=[{severity:t||"error",ruleId:"configuration struct",visitor:Ht()},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:Kt()}],a=Ft(s,o),c=n.resolvedRefMap||await A.resolveDocument({rootDocument:n.document,rootType:o.ConfigRoot,externalRefResolver:r});return Bt({document:n.document,rootType:o.ConfigRoot,normalizedVisitors:a,resolvedRefMap:c,ctx:i}),i.problems}exports.Ajv=Aa;exports.Arazzo1Types=rt;exports.Arazzo1_1Types=Yu;exports.Assertions=Xt;exports.AsyncApi2Types=Hu;exports.AsyncApi3Types=Gu;exports.CONFIG_BUNDLER_VISITOR_ID=$a;exports.CONFIG_FILE_NAME=Vs;exports.Config=yn;exports.ConfigTypes=Gd;exports.ConfigValidationError=ZR;exports.DEFAULT_CONFIG=Yd;exports.DEFAULT_PROJECT_PLUGIN_PATHS=Wd;exports.GraphQLError=ie;exports.IGNORE_BANNER=Qd;exports.IGNORE_FILE=io;exports.Js=yE;exports.Location=EI;exports.Ls=gE;exports.NoUnresolvedRefs=Kt;exports.Oas2Types=Nu;exports.Oas3Types=Tt;exports.Oas3_1Types=De;exports.Oas3_2Types=Ze;exports.OpenRpcTypes=Wu;exports.Overlay1Types=Qu;exports.PLUGINS_COLLECTOR_VISITOR_ID=Na;exports.Struct=Ht;exports.Token=xI;exports.bundle=p$;exports.bundleDocument=Xa;exports.bundleFromString=l$;exports.clearPluginsCache=v$;exports.createConfig=P$;exports.createConfigTypes=Ra;exports.dedentBlockStringLines=PI;exports.dequal=zt;exports.detectSpec=jr;exports.devAssert=Ue;exports.findConfig=T$;exports.formatProblems=aN;exports.getAstNodeByPointer=rh;exports.getCodeframe=pa;exports.getLineColLocation=Qt;exports.getLocation=co;exports.getMajorSpecVersion=Da;exports.getNodeTypesFromJSONSchema=zd;exports.getPluginCacheVersion=y$;exports.getTotals=ih;exports.getTypes=fn;exports.initRules=tn;exports.inspect=me;exports.instanceOf=Ot;exports.isDigit=Pf;exports.isEmptyObject=_r;exports.isNameContinue=_f;exports.isNameStart=If;exports.isNotEmptyArray=Zr;exports.isString=et;exports.keysOf=la;exports.lint=fN;exports.lintConfig=hN;exports.lintDocument=rc;exports.lintFromString=mN;exports.loadConfig=x$;exports.loadIgnoreConfig=Zm;exports.logger=Re;exports.mapTypeToComponent=aa;exports.normalizeVisitors=Ft;exports.pluralize=lh;exports.regexFromString=Jr;exports.resolvePlugins=Xm;exports.slash=$u;exports.t=Ge;exports.visit=La;exports.visitInParallel=Rf;exports.walkDocument=Bt;exports.xmlEscape=St;