@redocly/openapi-docs 3.2.8 → 3.2.9

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.
@@ -2,7 +2,7 @@
2
2
  * Redocly OpenAPI Docs
3
3
  * (c) Copyright 2018 Redocly LLC, all rights reserved.
4
4
  * -------------------------------------------------------------
5
- * Version: "3.2.8"
5
+ * Version: "3.2.9"
6
6
  */(function($1,uh){typeof exports=="object"&&typeof module=="object"?module.exports=uh(require("null")):typeof define=="function"&&define.amd?define(["null"],uh):typeof exports=="object"?exports.RedoclyOpenAPIDocs=uh(require("null")):$1.RedoclyOpenAPIDocs=uh($1.null)})(this,u4=>(()=>{var $1={44607:(h,f,a)=>{"use strict";a.d(f,{A:()=>p});function p(x){var C=Object.create(null);return function(j){return C[j]===void 0&&(C[j]=x(j)),C[j]}}},41685:(h,f,a)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CodeGen=f.Name=f.nil=f.stringify=f.str=f._=f.KeywordCxt=void 0;const p=a(30646),x=a(78234),C=a(30833),j=a(86640),E="https://json-schema.org/draft/2020-12/schema";class S extends p.default{constructor(B={}){super({...B,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),x.default.forEach(B=>this.addVocabulary(B)),this.opts.discriminator&&this.addKeyword(C.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:B,meta:D}=this.opts;D&&(j.default.call(this,B),this.refs["http://json-schema.org/schema"]=E)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(E)?E:void 0)}}h.exports=f=S,Object.defineProperty(f,"__esModule",{value:!0}),f.default=S;var P=a(72630);Object.defineProperty(f,"KeywordCxt",{enumerable:!0,get:function(){return P.KeywordCxt}});var T=a(11601);Object.defineProperty(f,"_",{enumerable:!0,get:function(){return T._}}),Object.defineProperty(f,"str",{enumerable:!0,get:function(){return T.str}}),Object.defineProperty(f,"stringify",{enumerable:!0,get:function(){return T.stringify}}),Object.defineProperty(f,"nil",{enumerable:!0,get:function(){return T.nil}}),Object.defineProperty(f,"Name",{enumerable:!0,get:function(){return T.Name}}),Object.defineProperty(f,"CodeGen",{enumerable:!0,get:function(){return T.CodeGen}})},21860:(h,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.regexpCode=f.getEsmExportName=f.getProperty=f.safeStringify=f.stringify=f.strConcat=f.addCodeArg=f.str=f._=f.nil=f._Code=f.Name=f.IDENTIFIER=f._CodeOrName=void 0;class a{}f._CodeOrName=a,f.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class p extends a{constructor(b){if(super(),!f.IDENTIFIER.test(b))throw new Error("CodeGen: name must be a valid identifier");this.str=b}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}f.Name=p;class x extends a{constructor(b){super(),this._items=typeof b=="string"?[b]:b}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const b=this._items[0];return b===""||b==='""'}get str(){var b;return(b=this._str)!==null&&b!==void 0?b:this._str=this._items.reduce((F,M)=>`${F}${M}`,"")}get names(){var b;return(b=this._names)!==null&&b!==void 0?b:this._names=this._items.reduce((F,M)=>(M instanceof p&&(F[M.str]=(F[M.str]||0)+1),F),{})}}f._Code=x,f.nil=new x("");function C(y,...b){const F=[y[0]];let M=0;for(;M<b.length;)S(F,b[M]),F.push(y[++M]);return new x(F)}f._=C;const j=new x("+");function E(y,...b){const F=[k(y[0])];let M=0;for(;M<b.length;)F.push(j),S(F,b[M]),F.push(j,k(y[++M]));return P(F),new x(F)}f.str=E;function S(y,b){b instanceof x?y.push(...b._items):b instanceof p?y.push(b):y.push(B(b))}f.addCodeArg=S;function P(y){let b=1;for(;b<y.length-1;){if(y[b]===j){const F=T(y[b-1],y[b+1]);if(F!==void 0){y.splice(b-1,3,F);continue}y[b++]="+"}b++}}function T(y,b){if(b==='""')return y;if(y==='""')return b;if(typeof y=="string")return b instanceof p||y[y.length-1]!=='"'?void 0:typeof b!="string"?`${y.slice(0,-1)}${b}"`:b[0]==='"'?y.slice(0,-1)+b.slice(1):void 0;if(typeof b=="string"&&b[0]==='"'&&!(y instanceof p))return`"${y}${b.slice(1)}`}function w(y,b){return b.emptyStr()?y:y.emptyStr()?b:E`${y}${b}`}f.strConcat=w;function B(y){return typeof y=="number"||typeof y=="boolean"||y===null?y:k(Array.isArray(y)?y.join(","):y)}function D(y){return new x(k(y))}f.stringify=D;function k(y){return JSON.stringify(y).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}f.safeStringify=k;function $(y){return typeof y=="string"&&f.IDENTIFIER.test(y)?new x(`.${y}`):C`[${y}]`}f.getProperty=$;function N(y){if(typeof y=="string"&&f.IDENTIFIER.test(y))return new x(`${y}`);throw new Error(`CodeGen: invalid export name: ${y}, use explicit $id name mapping`)}f.getEsmExportName=N;function u(y){return new x(y.toString())}f.regexpCode=u},11601:(h,f,a)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.or=f.and=f.not=f.CodeGen=f.operators=f.varKinds=f.ValueScopeName=f.ValueScope=f.Scope=f.Name=f.regexpCode=f.stringify=f.getProperty=f.nil=f.strConcat=f.str=f._=void 0;const p=a(21860),x=a(4425);var C=a(21860);Object.defineProperty(f,"_",{enumerable:!0,get:function(){return C._}}),Object.defineProperty(f,"str",{enumerable:!0,get:function(){return C.str}}),Object.defineProperty(f,"strConcat",{enumerable:!0,get:function(){return C.strConcat}}),Object.defineProperty(f,"nil",{enumerable:!0,get:function(){return C.nil}}),Object.defineProperty(f,"getProperty",{enumerable:!0,get:function(){return C.getProperty}}),Object.defineProperty(f,"stringify",{enumerable:!0,get:function(){return C.stringify}}),Object.defineProperty(f,"regexpCode",{enumerable:!0,get:function(){return C.regexpCode}}),Object.defineProperty(f,"Name",{enumerable:!0,get:function(){return C.Name}});var j=a(4425);Object.defineProperty(f,"Scope",{enumerable:!0,get:function(){return j.Scope}}),Object.defineProperty(f,"ValueScope",{enumerable:!0,get:function(){return j.ValueScope}}),Object.defineProperty(f,"ValueScopeName",{enumerable:!0,get:function(){return j.ValueScopeName}}),Object.defineProperty(f,"varKinds",{enumerable:!0,get:function(){return j.varKinds}}),f.operators={GT:new p._Code(">"),GTE:new p._Code(">="),LT:new p._Code("<"),LTE:new p._Code("<="),EQ:new p._Code("==="),NEQ:new p._Code("!=="),NOT:new p._Code("!"),OR:new p._Code("||"),AND:new p._Code("&&"),ADD:new p._Code("+")};class E{optimizeNodes(){return this}optimizeNames(se,re){return this}}class S extends E{constructor(se,re,be){super(),this.varKind=se,this.name=re,this.rhs=be}render({es5:se,_n:re}){const be=se?x.varKinds.var:this.varKind,fe=this.rhs===void 0?"":` = ${this.rhs}`;return`${be} ${this.name}${fe};`+re}optimizeNames(se,re){if(se[this.name.str])return this.rhs&&(this.rhs=ve(this.rhs,se,re)),this}get names(){return this.rhs instanceof p._CodeOrName?this.rhs.names:{}}}class P extends E{constructor(se,re,be){super(),this.lhs=se,this.rhs=re,this.sideEffects=be}render({_n:se}){return`${this.lhs} = ${this.rhs};`+se}optimizeNames(se,re){if(!(this.lhs instanceof p.Name&&!se[this.lhs.str]&&!this.sideEffects))return this.rhs=ve(this.rhs,se,re),this}get names(){const se=this.lhs instanceof p.Name?{}:{...this.lhs.names};return ae(se,this.rhs)}}class T extends P{constructor(se,re,be,fe){super(se,be,fe),this.op=re}render({_n:se}){return`${this.lhs} ${this.op}= ${this.rhs};`+se}}class w extends E{constructor(se){super(),this.label=se,this.names={}}render({_n:se}){return`${this.label}:`+se}}class B extends E{constructor(se){super(),this.label=se,this.names={}}render({_n:se}){return`break${this.label?` ${this.label}`:""};`+se}}class D extends E{constructor(se){super(),this.error=se}render({_n:se}){return`throw ${this.error};`+se}get names(){return this.error.names}}class k extends E{constructor(se){super(),this.code=se}render({_n:se}){return`${this.code};`+se}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(se,re){return this.code=ve(this.code,se,re),this}get names(){return this.code instanceof p._CodeOrName?this.code.names:{}}}class $ extends E{constructor(se=[]){super(),this.nodes=se}render(se){return this.nodes.reduce((re,be)=>re+be.render(se),"")}optimizeNodes(){const{nodes:se}=this;let re=se.length;for(;re--;){const be=se[re].optimizeNodes();Array.isArray(be)?se.splice(re,1,...be):be?se[re]=be:se.splice(re,1)}return se.length>0?this:void 0}optimizeNames(se,re){const{nodes:be}=this;let fe=be.length;for(;fe--;){const Le=be[fe];Le.optimizeNames(se,re)||(Se(se,Le.names),be.splice(fe,1))}return be.length>0?this:void 0}get names(){return this.nodes.reduce((se,re)=>le(se,re.names),{})}}class N extends ${render(se){return"{"+se._n+super.render(se)+"}"+se._n}}class u extends ${}class y extends N{}y.kind="else";class b extends N{constructor(se,re){super(re),this.condition=se}render(se){let re=`if(${this.condition})`+super.render(se);return this.else&&(re+="else "+this.else.render(se)),re}optimizeNodes(){super.optimizeNodes();const se=this.condition;if(se===!0)return this.nodes;let re=this.else;if(re){const be=re.optimizeNodes();re=this.else=Array.isArray(be)?new y(be):be}if(re)return se===!1?re instanceof b?re:re.nodes:this.nodes.length?this:new b(ke(se),re instanceof b?[re]:re.nodes);if(!(se===!1||!this.nodes.length))return this}optimizeNames(se,re){var be;if(this.else=(be=this.else)===null||be===void 0?void 0:be.optimizeNames(se,re),!!(super.optimizeNames(se,re)||this.else))return this.condition=ve(this.condition,se,re),this}get names(){const se=super.names;return ae(se,this.condition),this.else&&le(se,this.else.names),se}}b.kind="if";class F extends N{}F.kind="for";class M extends F{constructor(se){super(),this.iteration=se}render(se){return`for(${this.iteration})`+super.render(se)}optimizeNames(se,re){if(super.optimizeNames(se,re))return this.iteration=ve(this.iteration,se,re),this}get names(){return le(super.names,this.iteration.names)}}class L extends F{constructor(se,re,be,fe){super(),this.varKind=se,this.name=re,this.from=be,this.to=fe}render(se){const re=se.es5?x.varKinds.var:this.varKind,{name:be,from:fe,to:Le}=this;return`for(${re} ${be}=${fe}; ${be}<${Le}; ${be}++)`+super.render(se)}get names(){const se=ae(super.names,this.from);return ae(se,this.to)}}class U extends F{constructor(se,re,be,fe){super(),this.loop=se,this.varKind=re,this.name=be,this.iterable=fe}render(se){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(se)}optimizeNames(se,re){if(super.optimizeNames(se,re))return this.iterable=ve(this.iterable,se,re),this}get names(){return le(super.names,this.iterable.names)}}class Z extends N{constructor(se,re,be){super(),this.name=se,this.args=re,this.async=be}render(se){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(se)}}Z.kind="func";class W extends ${render(se){return"return "+super.render(se)}}W.kind="return";class G extends N{render(se){let re="try"+super.render(se);return this.catch&&(re+=this.catch.render(se)),this.finally&&(re+=this.finally.render(se)),re}optimizeNodes(){var se,re;return super.optimizeNodes(),(se=this.catch)===null||se===void 0||se.optimizeNodes(),(re=this.finally)===null||re===void 0||re.optimizeNodes(),this}optimizeNames(se,re){var be,fe;return super.optimizeNames(se,re),(be=this.catch)===null||be===void 0||be.optimizeNames(se,re),(fe=this.finally)===null||fe===void 0||fe.optimizeNames(se,re),this}get names(){const se=super.names;return this.catch&&le(se,this.catch.names),this.finally&&le(se,this.finally.names),se}}class Q extends N{constructor(se){super(),this.error=se}render(se){return`catch(${this.error})`+super.render(se)}}Q.kind="catch";class ue extends N{render(se){return"finally"+super.render(se)}}ue.kind="finally";class ce{constructor(se,re={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...re,_n:re.lines?`
7
7
  `:""},this._extScope=se,this._scope=new x.Scope({parent:se}),this._nodes=[new u]}toString(){return this._root.render(this.opts)}name(se){return this._scope.name(se)}scopeName(se){return this._extScope.name(se)}scopeValue(se,re){const be=this._extScope.value(se,re);return(this._values[be.prefix]||(this._values[be.prefix]=new Set)).add(be),be}getScopeValue(se,re){return this._extScope.getValue(se,re)}scopeRefs(se){return this._extScope.scopeRefs(se,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(se,re,be,fe){const Le=this._scope.toName(re);return be!==void 0&&fe&&(this._constants[Le.str]=be),this._leafNode(new S(se,Le,be)),Le}const(se,re,be){return this._def(x.varKinds.const,se,re,be)}let(se,re,be){return this._def(x.varKinds.let,se,re,be)}var(se,re,be){return this._def(x.varKinds.var,se,re,be)}assign(se,re,be){return this._leafNode(new P(se,re,be))}add(se,re){return this._leafNode(new T(se,f.operators.ADD,re))}code(se){return typeof se=="function"?se():se!==p.nil&&this._leafNode(new k(se)),this}object(...se){const re=["{"];for(const[be,fe]of se)re.length>1&&re.push(","),re.push(be),(be!==fe||this.opts.es5)&&(re.push(":"),(0,p.addCodeArg)(re,fe));return re.push("}"),new p._Code(re)}if(se,re,be){if(this._blockNode(new b(se)),re&&be)this.code(re).else().code(be).endIf();else if(re)this.code(re).endIf();else if(be)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(se){return this._elseNode(new b(se))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(b,y)}_for(se,re){return this._blockNode(se),re&&this.code(re).endFor(),this}for(se,re){return this._for(new M(se),re)}forRange(se,re,be,fe,Le=this.opts.es5?x.varKinds.var:x.varKinds.let){const Te=this._scope.toName(se);return this._for(new L(Le,Te,re,be),()=>fe(Te))}forOf(se,re,be,fe=x.varKinds.const){const Le=this._scope.toName(se);if(this.opts.es5){const Te=re instanceof p.Name?re:this.var("_arr",re);return this.forRange("_i",0,(0,p._)`${Te}.length`,Ke=>{this.var(Le,(0,p._)`${Te}[${Ke}]`),be(Le)})}return this._for(new U("of",fe,Le,re),()=>be(Le))}forIn(se,re,be,fe=this.opts.es5?x.varKinds.var:x.varKinds.const){if(this.opts.ownProperties)return this.forOf(se,(0,p._)`Object.keys(${re})`,be);const Le=this._scope.toName(se);return this._for(new U("in",fe,Le,re),()=>be(Le))}endFor(){return this._endBlockNode(F)}label(se){return this._leafNode(new w(se))}break(se){return this._leafNode(new B(se))}return(se){const re=new W;if(this._blockNode(re),this.code(se),re.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(W)}try(se,re,be){if(!re&&!be)throw new Error('CodeGen: "try" without "catch" and "finally"');const fe=new G;if(this._blockNode(fe),this.code(se),re){const Le=this.name("e");this._currNode=fe.catch=new Q(Le),re(Le)}return be&&(this._currNode=fe.finally=new ue,this.code(be)),this._endBlockNode(Q,ue)}throw(se){return this._leafNode(new D(se))}block(se,re){return this._blockStarts.push(this._nodes.length),se&&this.code(se).endBlock(re),this}endBlock(se){const re=this._blockStarts.pop();if(re===void 0)throw new Error("CodeGen: not in self-balancing block");const be=this._nodes.length-re;if(be<0||se!==void 0&&be!==se)throw new Error(`CodeGen: wrong number of nodes: ${be} vs ${se} expected`);return this._nodes.length=re,this}func(se,re=p.nil,be,fe){return this._blockNode(new Z(se,re,be)),fe&&this.code(fe).endFunc(),this}endFunc(){return this._endBlockNode(Z)}optimize(se=1){for(;se-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(se){return this._currNode.nodes.push(se),this}_blockNode(se){this._currNode.nodes.push(se),this._nodes.push(se)}_endBlockNode(se,re){const be=this._currNode;if(be instanceof se||re&&be instanceof re)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${re?`${se.kind}/${re.kind}`:se.kind}"`)}_elseNode(se){const re=this._currNode;if(!(re instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=re.else=se,this}get _root(){return this._nodes[0]}get _currNode(){const se=this._nodes;return se[se.length-1]}set _currNode(se){const re=this._nodes;re[re.length-1]=se}}f.CodeGen=ce;function le(ie,se){for(const re in se)ie[re]=(ie[re]||0)+(se[re]||0);return ie}function ae(ie,se){return se instanceof p._CodeOrName?le(ie,se.names):ie}function ve(ie,se,re){if(ie instanceof p.Name)return be(ie);if(!fe(ie))return ie;return new p._Code(ie._items.reduce((Le,Te)=>(Te instanceof p.Name&&(Te=be(Te)),Te instanceof p._Code?Le.push(...Te._items):Le.push(Te),Le),[]));function be(Le){const Te=re[Le.str];return Te===void 0||se[Le.str]!==1?Le:(delete se[Le.str],Te)}function fe(Le){return Le instanceof p._Code&&Le._items.some(Te=>Te instanceof p.Name&&se[Te.str]===1&&re[Te.str]!==void 0)}}function Se(ie,se){for(const re in se)ie[re]=(ie[re]||0)-(se[re]||0)}function ke(ie){return typeof ie=="boolean"||typeof ie=="number"||ie===null?!ie:(0,p._)`!${q(ie)}`}f.not=ke;const Ce=J(f.operators.AND);function Ne(...ie){return ie.reduce(Ce)}f.and=Ne;const Be=J(f.operators.OR);function te(...ie){return ie.reduce(Be)}f.or=te;function J(ie){return(se,re)=>se===p.nil?re:re===p.nil?se:(0,p._)`${q(se)} ${ie} ${q(re)}`}function q(ie){return ie instanceof p.Name?ie:(0,p._)`(${ie})`}},4425:(h,f,a)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.ValueScope=f.ValueScopeName=f.Scope=f.varKinds=f.UsedValueState=void 0;const p=a(21860);class x extends Error{constructor(w){super(`CodeGen: "code" for ${w} not defined`),this.value=w.value}}var C;(function(T){T[T.Started=0]="Started",T[T.Completed=1]="Completed"})(C=f.UsedValueState||(f.UsedValueState={})),f.varKinds={const:new p.Name("const"),let:new p.Name("let"),var:new p.Name("var")};class j{constructor({prefixes:w,parent:B}={}){this._names={},this._prefixes=w,this._parent=B}toName(w){return w instanceof p.Name?w:this.name(w)}name(w){return new p.Name(this._newName(w))}_newName(w){const B=this._names[w]||this._nameGroup(w);return`${w}${B.index++}`}_nameGroup(w){var B,D;if(!((D=(B=this._parent)===null||B===void 0?void 0:B._prefixes)===null||D===void 0)&&D.has(w)||this._prefixes&&!this._prefixes.has(w))throw new Error(`CodeGen: prefix "${w}" is not allowed in this scope`);return this._names[w]={prefix:w,index:0}}}f.Scope=j;class E extends p.Name{constructor(w,B){super(B),this.prefix=w}setValue(w,{property:B,itemIndex:D}){this.value=w,this.scopePath=(0,p._)`.${new p.Name(B)}[${D}]`}}f.ValueScopeName=E;const S=(0,p._)`\n`;class P extends j{constructor(w){super(w),this._values={},this._scope=w.scope,this.opts={...w,_n:w.lines?S:p.nil}}get(){return this._scope}name(w){return new E(w,this._newName(w))}value(w,B){var D;if(B.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const k=this.toName(w),{prefix:$}=k,N=(D=B.key)!==null&&D!==void 0?D:B.ref;let u=this._values[$];if(u){const F=u.get(N);if(F)return F}else u=this._values[$]=new Map;u.set(N,k);const y=this._scope[$]||(this._scope[$]=[]),b=y.length;return y[b]=B.ref,k.setValue(B,{property:$,itemIndex:b}),k}getValue(w,B){const D=this._values[w];if(D)return D.get(B)}scopeRefs(w,B=this._values){return this._reduceValues(B,D=>{if(D.scopePath===void 0)throw new Error(`CodeGen: name "${D}" has no value`);return(0,p._)`${w}${D.scopePath}`})}scopeCode(w=this._values,B,D){return this._reduceValues(w,k=>{if(k.value===void 0)throw new Error(`CodeGen: name "${k}" has no value`);return k.value.code},B,D)}_reduceValues(w,B,D={},k){let $=p.nil;for(const N in w){const u=w[N];if(!u)continue;const y=D[N]=D[N]||new Map;u.forEach(b=>{if(y.has(b))return;y.set(b,C.Started);let F=B(b);if(F){const M=this.opts.es5?f.varKinds.var:f.varKinds.const;$=(0,p._)`${$}${M} ${b} = ${F};${this.opts._n}`}else if(F=k?.(b))$=(0,p._)`${$}${F}${this.opts._n}`;else throw new x(b);y.set(b,C.Completed)})}return $}}f.ValueScope=P},52952:(h,f,a)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.extendErrors=f.resetErrorsCount=f.reportExtraError=f.reportError=f.keyword$DataError=f.keywordError=void 0;const p=a(11601),x=a(64207),C=a(38955);f.keywordError={message:({keyword:y})=>(0,p.str)`must pass "${y}" keyword validation`},f.keyword$DataError={message:({keyword:y,schemaType:b})=>b?(0,p.str)`"${y}" keyword must be ${b} ($data)`:(0,p.str)`"${y}" keyword is invalid ($data)`};function j(y,b=f.keywordError,F,M){const{it:L}=y,{gen:U,compositeRule:Z,allErrors:W}=L,G=D(y,b,F);M??(Z||W)?T(U,G):w(L,(0,p._)`[${G}]`)}f.reportError=j;function E(y,b=f.keywordError,F){const{it:M}=y,{gen:L,compositeRule:U,allErrors:Z}=M,W=D(y,b,F);T(L,W),U||Z||w(M,C.default.vErrors)}f.reportExtraError=E;function S(y,b){y.assign(C.default.errors,b),y.if((0,p._)`${C.default.vErrors} !== null`,()=>y.if(b,()=>y.assign((0,p._)`${C.default.vErrors}.length`,b),()=>y.assign(C.default.vErrors,null)))}f.resetErrorsCount=S;function P({gen:y,keyword:b,schemaValue:F,data:M,errsCount:L,it:U}){if(L===void 0)throw new Error("ajv implementation error");const Z=y.name("err");y.forRange("i",L,C.default.errors,W=>{y.const(Z,(0,p._)`${C.default.vErrors}[${W}]`),y.if((0,p._)`${Z}.instancePath === undefined`,()=>y.assign((0,p._)`${Z}.instancePath`,(0,p.strConcat)(C.default.instancePath,U.errorPath))),y.assign((0,p._)`${Z}.schemaPath`,(0,p.str)`${U.errSchemaPath}/${b}`),U.opts.verbose&&(y.assign((0,p._)`${Z}.schema`,F),y.assign((0,p._)`${Z}.data`,M))})}f.extendErrors=P;function T(y,b){const F=y.const("err",b);y.if((0,p._)`${C.default.vErrors} === null`,()=>y.assign(C.default.vErrors,(0,p._)`[${F}]`),(0,p._)`${C.default.vErrors}.push(${F})`),y.code((0,p._)`${C.default.errors}++`)}function w(y,b){const{gen:F,validateName:M,schemaEnv:L}=y;L.$async?F.throw((0,p._)`new ${y.ValidationError}(${b})`):(F.assign((0,p._)`${M}.errors`,b),F.return(!1))}const B={keyword:new p.Name("keyword"),schemaPath:new p.Name("schemaPath"),params:new p.Name("params"),propertyName:new p.Name("propertyName"),message:new p.Name("message"),schema:new p.Name("schema"),parentSchema:new p.Name("parentSchema")};function D(y,b,F){const{createErrors:M}=y.it;return M===!1?(0,p._)`{}`:k(y,b,F)}function k(y,b,F={}){const{gen:M,it:L}=y,U=[$(L,F),N(y,F)];return u(y,b,U),M.object(...U)}function $({errorPath:y},{instancePath:b}){const F=b?(0,p.str)`${y}${(0,x.getErrorPath)(b,x.Type.Str)}`:y;return[C.default.instancePath,(0,p.strConcat)(C.default.instancePath,F)]}function N({keyword:y,it:{errSchemaPath:b}},{schemaPath:F,parentSchema:M}){let L=M?b:(0,p.str)`${b}/${y}`;return F&&(L=(0,p.str)`${L}${(0,x.getErrorPath)(F,x.Type.Str)}`),[B.schemaPath,L]}function u(y,{params:b,message:F},M){const{keyword:L,data:U,schemaValue:Z,it:W}=y,{opts:G,propertyName:Q,topSchemaRef:ue,schemaPath:ce}=W;M.push([B.keyword,L],[B.params,typeof b=="function"?b(y):b||(0,p._)`{}`]),G.messages&&M.push([B.message,typeof F=="function"?F(y):F]),G.verbose&&M.push([B.schema,Z],[B.parentSchema,(0,p._)`${ue}${ce}`],[C.default.data,U]),Q&&M.push([B.propertyName,Q])}},39663:(h,f,a)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.resolveSchema=f.getCompilingSchema=f.resolveRef=f.compileSchema=f.SchemaEnv=void 0;const p=a(11601),x=a(3450),C=a(38955),j=a(92863),E=a(64207),S=a(72630);class P{constructor(F){var M;this.refs={},this.dynamicAnchors={};let L;typeof F.schema=="object"&&(L=F.schema),this.schema=F.schema,this.schemaId=F.schemaId,this.root=F.root||this,this.baseId=(M=F.baseId)!==null&&M!==void 0?M:(0,j.normalizeId)(L?.[F.schemaId||"$id"]),this.schemaPath=F.schemaPath,this.localRefs=F.localRefs,this.meta=F.meta,this.$async=L?.$async,this.refs={}}}f.SchemaEnv=P;function T(b){const F=D.call(this,b);if(F)return F;const M=(0,j.getFullPath)(this.opts.uriResolver,b.root.baseId),{es5:L,lines:U}=this.opts.code,{ownProperties:Z}=this.opts,W=new p.CodeGen(this.scope,{es5:L,lines:U,ownProperties:Z});let G;b.$async&&(G=W.scopeValue("Error",{ref:x.default,code:(0,p._)`require("ajv/dist/runtime/validation_error").default`}));const Q=W.scopeName("validate");b.validateName=Q;const ue={gen:W,allErrors:this.opts.allErrors,data:C.default.data,parentData:C.default.parentData,parentDataProperty:C.default.parentDataProperty,dataNames:[C.default.data],dataPathArr:[p.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:W.scopeValue("schema",this.opts.code.source===!0?{ref:b.schema,code:(0,p.stringify)(b.schema)}:{ref:b.schema}),validateName:Q,ValidationError:G,schema:b.schema,schemaEnv:b,rootId:M,baseId:b.baseId||M,schemaPath:p.nil,errSchemaPath:b.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,p._)`""`,opts:this.opts,self:this};let ce;try{this._compilations.add(b),(0,S.validateFunctionCode)(ue),W.optimize(this.opts.code.optimize);const le=W.toString();ce=`const visitedNodesForRef = new WeakMap(); ${W.scopeRefs(C.default.scope)}return ${le}`,this.opts.code.process&&(ce=this.opts.code.process(ce,b));const ve=new Function(`${C.default.self}`,`${C.default.scope}`,ce)(this,this.scope.get());if(this.scope.value(Q,{ref:ve}),ve.errors=null,ve.schema=b.schema,ve.schemaEnv=b,b.$async&&(ve.$async=!0),this.opts.code.source===!0&&(ve.source={validateName:Q,validateCode:le,scopeValues:W._values}),this.opts.unevaluated){const{props:Se,items:ke}=ue;ve.evaluated={props:Se instanceof p.Name?void 0:Se,items:ke instanceof p.Name?void 0:ke,dynamicProps:Se instanceof p.Name,dynamicItems:ke instanceof p.Name},ve.source&&(ve.source.evaluated=(0,p.stringify)(ve.evaluated))}return b.validate=ve,b}catch(le){throw delete b.validate,delete b.validateName,ce&&this.logger.error("Error compiling schema, function code:",ce),le}finally{this._compilations.delete(b)}}f.compileSchema=T;function w(b,F,M){var L;const U=(0,j.resolveUrl)(this.opts.uriResolver,F,M),Z=b.refs[U];if(Z)return Z;let W=$.call(this,b,U);if(W===void 0){const G=(L=b.localRefs)===null||L===void 0?void 0:L[U],{schemaId:Q}=this.opts;G&&(W=new P({schema:G,schemaId:Q,root:b,baseId:F}))}if(W===void 0&&this.opts.loadSchemaSync){const G=this.opts.loadSchemaSync(F,M,U);G&&!(this.refs[U]||this.schemas[U])&&(this.addSchema(G,U,void 0),W=$.call(this,b,U))}if(W!==void 0)return b.refs[U]=B.call(this,W)}f.resolveRef=w;function B(b){return(0,j.inlineRef)(b.schema,this.opts.inlineRefs)?b.schema:b.validate?b:T.call(this,b)}function D(b){for(const F of this._compilations)if(k(F,b))return F}f.getCompilingSchema=D;function k(b,F){return b.schema===F.schema&&b.root===F.root&&b.baseId===F.baseId}function $(b,F){let M;for(;typeof(M=this.refs[F])=="string";)F=M;return M||this.schemas[F]||N.call(this,b,F)}function N(b,F){const M=this.opts.uriResolver.parse(F),L=(0,j._getFullPath)(this.opts.uriResolver,M);let U=(0,j.getFullPath)(this.opts.uriResolver,b.baseId,void 0);if(Object.keys(b.schema).length>0&&L===U)return y.call(this,M,b);const Z=(0,j.normalizeId)(L),W=this.refs[Z]||this.schemas[Z];if(typeof W=="string"){const G=N.call(this,b,W);return typeof G?.schema!="object"?void 0:y.call(this,M,G)}if(typeof W?.schema=="object"){if(W.validate||T.call(this,W),Z===(0,j.normalizeId)(F)){const{schema:G}=W,{schemaId:Q}=this.opts,ue=G[Q];return ue&&(U=(0,j.resolveUrl)(this.opts.uriResolver,U,ue)),new P({schema:G,schemaId:Q,root:b,baseId:U})}return y.call(this,M,W)}}f.resolveSchema=N;const u=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(b,{baseId:F,schema:M,root:L}){var U;if(((U=b.fragment)===null||U===void 0?void 0:U[0])!=="/")return;for(const G of b.fragment.slice(1).split("/")){if(typeof M=="boolean")return;const Q=M[(0,E.unescapeFragment)(G)];if(Q===void 0)return;M=Q;const ue=typeof M=="object"&&M[this.opts.schemaId];!u.has(G)&&ue&&(F=(0,j.resolveUrl)(this.opts.uriResolver,F,ue))}let Z;if(typeof M!="boolean"&&M.$ref&&!(0,E.schemaHasRulesButRef)(M,this.RULES)){const G=(0,j.resolveUrl)(this.opts.uriResolver,F,M.$ref);Z=N.call(this,L,G)}const{schemaId:W}=this.opts;if(Z=Z||new P({schema:M,schemaId:W,root:L,baseId:F}),Z.schema!==Z.root.schema)return Z}},38955:(h,f,a)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const p=a(11601),x={data:new p.Name("data"),valCxt:new p.Name("valCxt"),instancePath:new p.Name("instancePath"),parentData:new p.Name("parentData"),parentDataProperty:new p.Name("parentDataProperty"),rootData:new p.Name("rootData"),dynamicAnchors:new p.Name("dynamicAnchors"),isAllOfVariant:new p.Name("isAllOfVariant"),vErrors:new p.Name("vErrors"),errors:new p.Name("errors"),this:new p.Name("this"),self:new p.Name("self"),scope:new p.Name("scope"),json:new p.Name("json"),jsonPos:new p.Name("jsonPos"),jsonLen:new p.Name("jsonLen"),jsonPart:new p.Name("jsonPart")};f.default=x},10059:(h,f,a)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const p=a(92863);class x extends Error{constructor(j,E,S,P){super(P||`can't resolve reference ${S} from id ${E}`),this.missingRef=(0,p.resolveUrl)(j,E,S),this.missingSchema=(0,p.normalizeId)((0,p.getFullPath)(j,this.missingRef))}}f.default=x},92863:(h,f,a)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.getSchemaRefs=f.resolveUrl=f.normalizeId=f._getFullPath=f.getFullPath=f.inlineRef=void 0;const p=a(64207),x=a(67371),C=a(50205),j=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function E(y,b=!0){return typeof y=="boolean"?!0:b===!0?!P(y):b?T(y)<=b:!1}f.inlineRef=E;const S=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function P(y){for(const b in y){if(S.has(b))return!0;const F=y[b];if(Array.isArray(F)&&F.some(P)||typeof F=="object"&&P(F))return!0}return!1}function T(y){let b=0;for(const F in y){if(F==="$ref")return 1/0;if(b++,!j.has(F)&&(typeof y[F]=="object"&&(0,p.eachItem)(y[F],M=>b+=T(M)),b===1/0))return 1/0}return b}function w(y,b="",F){F!==!1&&(b=k(b));const M=y.parse(b);return B(y,M)}f.getFullPath=w;function B(y,b){return y.serialize(b).split("#")[0]+"#"}f._getFullPath=B;const D=/#\/?$/;function k(y){return y?y.replace(D,""):""}f.normalizeId=k;function $(y,b,F){return F=k(F),y.resolve(b,F)}f.resolveUrl=$;const N=/^[a-z_][-a-z0-9._]*$/i;function u(y,b){if(typeof y=="boolean")return{};const{schemaId:F,uriResolver:M}=this.opts,L=k(y[F]||b),U={"":L},Z=w(M,L,!1),W={},G=new Set;return C(y,{allKeys:!0},(ce,le,ae,ve)=>{if(ve===void 0)return;const Se=Z+le;let ke=U[ve];typeof ce[F]=="string"&&(ke=Ce.call(this,ce[F])),Ne.call(this,ce.$anchor),Ne.call(this,ce.$dynamicAnchor),U[le]=ke;function Ce(Be){const te=this.opts.uriResolver.resolve;if(Be=k(ke?te(ke,Be):Be),G.has(Be))throw ue(Be);G.add(Be);let J=this.refs[Be];return typeof J=="string"&&(J=this.refs[J]),typeof J=="object"?Q(ce,J.schema,Be):Be!==k(Se)&&(Be[0]==="#"?(Q(ce,W[Be],Be),W[Be]=ce):this.refs[Be]=Se),Be}function Ne(Be){if(typeof Be=="string"){if(!N.test(Be))throw new Error(`invalid anchor "${Be}"`);Ce.call(this,`#${Be}`)}}}),W;function Q(ce,le,ae){if(le!==void 0&&!x(ce,le))throw ue(ae)}function ue(ce){return new Error(`reference "${ce}" resolves to more than one schema`)}}f.getSchemaRefs=u},57760:(h,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.getRules=f.isJSONType=void 0;const a=["string","number","integer","boolean","null","object","array"],p=new Set(a);function x(j){return typeof j=="string"&&p.has(j)}f.isJSONType=x;function C(){const j={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...j,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},j.number,j.string,j.array,j.object],post:{rules:[]},all:{},keywords:{}}}f.getRules=C},64207:(h,f,a)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.checkStrictMode=f.getErrorPath=f.Type=f.useFunc=f.setEvaluated=f.evaluatedPropsToName=f.mergeEvaluated=f.eachItem=f.unescapeJsonPointer=f.escapeJsonPointer=f.escapeFragment=f.unescapeFragment=f.schemaRefOrVal=f.schemaHasRulesButRef=f.schemaHasRules=f.checkUnknownRules=f.alwaysValidSchema=f.toHash=void 0;const p=a(11601),x=a(21860);function C(Z){const W={};for(const G of Z)W[G]=!0;return W}f.toHash=C;function j(Z,W){return typeof W=="boolean"?W:Object.keys(W).length===0?!0:(E(Z,W),!S(W,Z.self.RULES.all))}f.alwaysValidSchema=j;function E(Z,W=Z.schema){const{opts:G,self:Q}=Z;if(!G.strictSchema||typeof W=="boolean")return;const ue=Q.RULES.keywords;for(const ce in W)ue[ce]||U(Z,`unknown keyword: "${ce}"`)}f.checkUnknownRules=E;function S(Z,W){if(typeof Z=="boolean")return!Z;for(const G in Z)if(W[G])return!0;return!1}f.schemaHasRules=S;function P(Z,W){if(typeof Z=="boolean")return!Z;for(const G in Z)if(G!=="$ref"&&W.all[G])return!0;return!1}f.schemaHasRulesButRef=P;function T({topSchemaRef:Z,schemaPath:W},G,Q,ue){if(!ue){if(typeof G=="number"||typeof G=="boolean")return G;if(typeof G=="string")return(0,p._)`${G}`}return(0,p._)`${Z}${W}${(0,p.getProperty)(Q)}`}f.schemaRefOrVal=T;function w(Z){return k(decodeURIComponent(Z))}f.unescapeFragment=w;function B(Z){return encodeURIComponent(D(Z))}f.escapeFragment=B;function D(Z){return typeof Z=="number"?`${Z}`:Z.replace(/~/g,"~0").replace(/\//g,"~1")}f.escapeJsonPointer=D;function k(Z){return Z.replace(/~1/g,"/").replace(/~0/g,"~")}f.unescapeJsonPointer=k;function $(Z,W){if(Array.isArray(Z))for(const G of Z)W(G);else W(Z)}f.eachItem=$;function N({mergeNames:Z,mergeToName:W,mergeValues:G,resultToName:Q}){return(ue,ce,le,ae)=>{const ve=le===void 0?ce:le instanceof p.Name?(ce instanceof p.Name?Z(ue,ce,le):W(ue,ce,le),le):ce instanceof p.Name?(W(ue,le,ce),ce):G(ce,le);return ae===p.Name&&!(ve instanceof p.Name)?Q(ue,ve):ve}}f.mergeEvaluated={props:N({mergeNames:(Z,W,G)=>Z.if((0,p._)`${G} !== true && ${W} !== undefined`,()=>{Z.if((0,p._)`${W} === true`,()=>Z.assign(G,!0),()=>Z.assign(G,(0,p._)`${G} || {}`).code((0,p._)`Object.assign(${G}, ${W})`))}),mergeToName:(Z,W,G)=>Z.if((0,p._)`${G} !== true`,()=>{W===!0?Z.assign(G,!0):(Z.assign(G,(0,p._)`${G} || {}`),y(Z,G,W))}),mergeValues:(Z,W)=>Z===!0?!0:{...Z,...W},resultToName:u}),items:N({mergeNames:(Z,W,G)=>Z.if((0,p._)`${G} !== true && ${W} !== undefined`,()=>Z.assign(G,(0,p._)`${W} === true ? true : ${G} > ${W} ? ${G} : ${W}`)),mergeToName:(Z,W,G)=>Z.if((0,p._)`${G} !== true`,()=>Z.assign(G,W===!0?!0:(0,p._)`${G} > ${W} ? ${G} : ${W}`)),mergeValues:(Z,W)=>Z===!0?!0:Math.max(Z,W),resultToName:(Z,W)=>Z.var("items",W)})};function u(Z,W){if(W===!0)return Z.var("props",!0);const G=Z.var("props",(0,p._)`{}`);return W!==void 0&&y(Z,G,W),G}f.evaluatedPropsToName=u;function y(Z,W,G){Object.keys(G).forEach(Q=>Z.assign((0,p._)`${W}${(0,p.getProperty)(Q)}`,!0))}f.setEvaluated=y;const b={};function F(Z,W){return Z.scopeValue("func",{ref:W,code:b[W.code]||(b[W.code]=new x._Code(W.code))})}f.useFunc=F;var M;(function(Z){Z[Z.Num=0]="Num",Z[Z.Str=1]="Str"})(M=f.Type||(f.Type={}));function L(Z,W,G){if(Z instanceof p.Name){const Q=W===M.Num;return G?Q?(0,p._)`"[" + ${Z} + "]"`:(0,p._)`"['" + ${Z} + "']"`:Q?(0,p._)`"/" + ${Z}`:(0,p._)`"/" + ${Z}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return G?(0,p.getProperty)(Z).toString():"/"+D(Z)}f.getErrorPath=L;function U(Z,W,G=Z.opts.strictSchema){if(G){if(W=`strict mode: ${W}`,G===!0)throw new Error(W);Z.self.logger.warn(W)}}f.checkStrictMode=U},17819:(h,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.shouldUseRule=f.shouldUseGroup=f.schemaHasRulesForType=void 0;function a({schema:C,self:j},E){const S=j.RULES.types[E];return S&&S!==!0&&p(C,S)}f.schemaHasRulesForType=a;function p(C,j){return j.rules.some(E=>x(C,E))}f.shouldUseGroup=p;function x(C,j){var E;return C[j.keyword]!==void 0||((E=j.definition.implements)===null||E===void 0?void 0:E.some(S=>C[S]!==void 0))}f.shouldUseRule=x},219:(h,f,a)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.boolOrEmptySchema=f.topBoolOrEmptySchema=void 0;const p=a(52952),x=a(11601),C=a(38955),j={message:"boolean schema is false"};function E(T){const{gen:w,schema:B,validateName:D}=T;B===!1?P(T,!1):typeof B=="object"&&B.$async===!0?w.return(C.default.data):(w.assign((0,x._)`${D}.errors`,null),w.return(!0))}f.topBoolOrEmptySchema=E;function S(T,w){const{gen:B,schema:D}=T;D===!1?(B.var(w,!1),P(T)):B.var(w,!0)}f.boolOrEmptySchema=S;function P(T,w){const{gen:B,data:D}=T,k={gen:B,keyword:"false schema",data:D,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:T};(0,p.reportError)(k,j,void 0,w)}},9788:(h,f,a)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.reportTypeError=f.checkDataTypes=f.checkDataType=f.coerceAndCheckDataType=f.getJSONTypes=f.getSchemaTypes=f.DataType=void 0;const p=a(57760),x=a(17819),C=a(52952),j=a(11601),E=a(64207);var S;(function(M){M[M.Correct=0]="Correct",M[M.Wrong=1]="Wrong"})(S=f.DataType||(f.DataType={}));function P(M){const L=T(M.type);if(L.includes("null")){if(M.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!L.length&&M.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');M.nullable===!0&&L.push("null")}return L}f.getSchemaTypes=P;function T(M){const L=Array.isArray(M)?M:M?[M]:[];if(L.every(p.isJSONType))return L;throw new Error("type must be JSONType or JSONType[]: "+L.join(","))}f.getJSONTypes=T;function w(M,L){const{gen:U,data:Z,opts:W}=M,G=D(L,W.coerceTypes),Q=L.length>0&&!(G.length===0&&L.length===1&&(0,x.schemaHasRulesForType)(M,L[0]));if(Q){const ue=u(L,Z,W.strictNumbers,S.Wrong);U.if(ue,()=>{G.length?k(M,L,G):b(M)})}return Q}f.coerceAndCheckDataType=w;const B=new Set(["string","number","integer","boolean","null"]);function D(M,L){return L?M.filter(U=>B.has(U)||L==="array"&&U==="array"):[]}function k(M,L,U){const{gen:Z,data:W,opts:G}=M,Q=Z.let("dataType",(0,j._)`typeof ${W}`),ue=Z.let("coerced",(0,j._)`undefined`);G.coerceTypes==="array"&&Z.if((0,j._)`${Q} == 'object' && Array.isArray(${W}) && ${W}.length == 1`,()=>Z.assign(W,(0,j._)`${W}[0]`).assign(Q,(0,j._)`typeof ${W}`).if(u(L,W,G.strictNumbers),()=>Z.assign(ue,W))),Z.if((0,j._)`${ue} !== undefined`);for(const le of U)(B.has(le)||le==="array"&&G.coerceTypes==="array")&&ce(le);Z.else(),b(M),Z.endIf(),Z.if((0,j._)`${ue} !== undefined`,()=>{Z.assign(W,ue),$(M,ue)});function ce(le){switch(le){case"string":Z.elseIf((0,j._)`${Q} == "number" || ${Q} == "boolean"`).assign(ue,(0,j._)`"" + ${W}`).elseIf((0,j._)`${W} === null`).assign(ue,(0,j._)`""`);return;case"number":Z.elseIf((0,j._)`${Q} == "boolean" || ${W} === null
8
8
  || (${Q} == "string" && ${W} && ${W} == +${W})`).assign(ue,(0,j._)`+${W}`);return;case"integer":Z.elseIf((0,j._)`${Q} === "boolean" || ${W} === null
@@ -12279,4 +12279,4 @@ Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An
12279
12279
  `,Fge=({pointer:n,schema:e})=>{const{options:t,parser:o}=useAtomValue(globalStoreAtom),l=e||{$ref:n},c=getSchema({parser:o,schemaOrRef:l,pointer:n||"",options:t,deps:{operation:{pointer:"RedocSchema"}}});return jsx(Row,{children:jsx(FullWidthPanel,{children:jsx(Schema,{schema:c,level:1,disableDeepLinks:!0})})})},kge=({pointer:n,mimeType:e,encoding:t})=>{const o=useAtomValue(globalParserAtom),l=useAtomValue(layoutAtom),c=getExamples({parser:o,infoOrRef:{$ref:n},mime:e,encoding:t});return jsx(Row,{layout:l,children:jsx(ExamplesWrap,{children:jsx(Example,{example:c,mimeType:e})})})},Dpe=L.Ay.div`
12280
12280
  padding: 20px;
12281
12281
  color: red;
12282
- `;class Nge extends u.Component{constructor(e){super(e),this.state={error:void 0}}componentDidCatch(e){return this.setState({error:e}),!1}render(){return this.state.error?(0,h.jsxs)(Dpe,{children:[(0,h.jsx)("h1",{children:"Something went wrong..."}),(0,h.jsxs)("small",{children:[" ",this.state.error.message," "]}),(0,h.jsx)("p",{children:(0,h.jsxs)("details",{children:[(0,h.jsx)("summary",{children:"Stack trace"}),(0,h.jsx)("pre",{children:this.state.error.stack})]})}),typeof __REDOC_VERSION__<"u"?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("small",{children:[" References docs version: ",__REDOC_VERSION__]})," ",(0,h.jsx)("br",{})]}):null,typeof __REDOC_REVISION__<"u"?(0,h.jsxs)("small",{children:[" Commit: ",__REDOC_REVISION__]}):null]}):(0,h.jsx)(h.Fragment,{children:u.Children.only(this.props.children)})}}var Tpe=Object.defineProperty,E$=Object.getOwnPropertySymbols,jpe=Object.prototype.hasOwnProperty,Mpe=Object.prototype.propertyIsEnumerable,A$=(n,e,t)=>e in n?Tpe(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,w$=(n,e)=>{for(var t in e||(e={}))jpe.call(e,t)&&A$(n,t,e[t]);if(E$)for(var t of E$(e))Mpe.call(e,t)&&A$(n,t,e[t]);return n};const I$=(0,M.JA)(),Rpe=I$?(0,N.dirname)(I$)+"/":"";function Lpe(n){const e={},t=n.attributes;for(let o=0;o<t.length;o++){const l=t[o];e[l.name]=l.value}return e}function $pe(n){const e=Lpe(n),t={};for(const o in e){const l=o.replace(/-(.)/g,(c,d)=>d.toUpperCase());t[l]=e[o]}return t}function Bpe(n,e=document.querySelector("redoc")){(0,b.c)(e,(0,h.jsx)(P$,{store:n}))}function D$(n,e={},t=(0,M.iT)("redoc")){if(t===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let o,l;typeof n=="string"?o=n:typeof n=="object"&&(l=n),(0,b.H)(t).render((0,u.createElement)(wpe,{definition:l,definitionUrl:o,options:w$(w$({},e),$pe(t))},["Loading..."]))}function T$(n){lo.p=n}const Fpe="3.2.8",kpe="909a85b265";function Npe(){const n=(0,M.iT)("redoc");if(!n)return;const e=n.getAttribute("spec-url");e&&D$(e,{},n)}F.IS_BROWSER&&T$(Rpe),Npe()})(),Cb})());
12282
+ `;class Nge extends u.Component{constructor(e){super(e),this.state={error:void 0}}componentDidCatch(e){return this.setState({error:e}),!1}render(){return this.state.error?(0,h.jsxs)(Dpe,{children:[(0,h.jsx)("h1",{children:"Something went wrong..."}),(0,h.jsxs)("small",{children:[" ",this.state.error.message," "]}),(0,h.jsx)("p",{children:(0,h.jsxs)("details",{children:[(0,h.jsx)("summary",{children:"Stack trace"}),(0,h.jsx)("pre",{children:this.state.error.stack})]})}),typeof __REDOC_VERSION__<"u"?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("small",{children:[" References docs version: ",__REDOC_VERSION__]})," ",(0,h.jsx)("br",{})]}):null,typeof __REDOC_REVISION__<"u"?(0,h.jsxs)("small",{children:[" Commit: ",__REDOC_REVISION__]}):null]}):(0,h.jsx)(h.Fragment,{children:u.Children.only(this.props.children)})}}var Tpe=Object.defineProperty,E$=Object.getOwnPropertySymbols,jpe=Object.prototype.hasOwnProperty,Mpe=Object.prototype.propertyIsEnumerable,A$=(n,e,t)=>e in n?Tpe(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,w$=(n,e)=>{for(var t in e||(e={}))jpe.call(e,t)&&A$(n,t,e[t]);if(E$)for(var t of E$(e))Mpe.call(e,t)&&A$(n,t,e[t]);return n};const I$=(0,M.JA)(),Rpe=I$?(0,N.dirname)(I$)+"/":"";function Lpe(n){const e={},t=n.attributes;for(let o=0;o<t.length;o++){const l=t[o];e[l.name]=l.value}return e}function $pe(n){const e=Lpe(n),t={};for(const o in e){const l=o.replace(/-(.)/g,(c,d)=>d.toUpperCase());t[l]=e[o]}return t}function Bpe(n,e=document.querySelector("redoc")){(0,b.c)(e,(0,h.jsx)(P$,{store:n}))}function D$(n,e={},t=(0,M.iT)("redoc")){if(t===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let o,l;typeof n=="string"?o=n:typeof n=="object"&&(l=n),(0,b.H)(t).render((0,u.createElement)(wpe,{definition:l,definitionUrl:o,options:w$(w$({},e),$pe(t))},["Loading..."]))}function T$(n){lo.p=n}const Fpe="3.2.9",kpe="6cd8455";function Npe(){const n=(0,M.iT)("redoc");if(!n)return;const e=n.getAttribute("spec-url");e&&D$(e,{},n)}F.IS_BROWSER&&T$(Rpe),Npe()})(),Cb})());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/openapi-docs",
3
- "version": "3.2.8",
3
+ "version": "3.2.9",
4
4
  "description": "Redocly OpenAPI Docs",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",
@@ -44,8 +44,8 @@
44
44
  "url": "~0.11.0",
45
45
  "url-template": "^2.0.8",
46
46
  "util": "~0.12.5",
47
- "@redocly/replay": "0.3.11",
48
- "@redocly/config": "0.7.0"
47
+ "@redocly/replay": "0.3.12",
48
+ "@redocly/config": "0.8.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@testing-library/jest-dom": "6.1.5",
@@ -92,7 +92,7 @@
92
92
  "webpack": "5.91.0",
93
93
  "webpack-cli": "5.1.4",
94
94
  "webpack-dev-server": "4.15.2",
95
- "@redocly/theme": "0.38.6"
95
+ "@redocly/theme": "0.38.7"
96
96
  },
97
97
  "scripts": {
98
98
  "start": "webpack serve --mode=development --hot",