@redocly/openapi-docs 3.0.4 → 3.0.5
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.0.
|
|
5
|
+
* Version: "3.0.5"
|
|
6
6
|
*/(function($1,ph){typeof exports=="object"&&typeof module=="object"?module.exports=ph(require("null")):typeof define=="function"&&define.amd?define(["null"],ph):typeof exports=="object"?exports.RedoclyOpenAPIDocs=ph(require("null")):$1.RedoclyOpenAPIDocs=ph($1.null)})(this,GP=>(()=>{var $1={44607:(g,f,a)=>{"use strict";a.d(f,{A:()=>p});function p(b){var C=Object.create(null);return function(j){return C[j]===void 0&&(C[j]=b(j)),C[j]}}},41685:(g,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),b=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(),b.default.forEach(B=>this.addVocabulary(B)),this.opts.discriminator&&this.addKeyword(C.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:B,meta:I}=this.opts;I&&(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)}}g.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:(g,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(x){if(super(),!f.IDENTIFIER.test(x))throw new Error("CodeGen: name must be a valid identifier");this.str=x}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}f.Name=p;class b extends a{constructor(x){super(),this._items=typeof x=="string"?[x]:x}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const x=this._items[0];return x===""||x==='""'}get str(){var x;return(x=this._str)!==null&&x!==void 0?x:this._str=this._items.reduce((F,M)=>`${F}${M}`,"")}get names(){var x;return(x=this._names)!==null&&x!==void 0?x:this._names=this._items.reduce((F,M)=>(M instanceof p&&(F[M.str]=(F[M.str]||0)+1),F),{})}}f._Code=b,f.nil=new b("");function C(v,...x){const F=[v[0]];let M=0;for(;M<x.length;)S(F,x[M]),F.push(v[++M]);return new b(F)}f._=C;const j=new b("+");function E(v,...x){const F=[N(v[0])];let M=0;for(;M<x.length;)F.push(j),S(F,x[M]),F.push(j,N(v[++M]));return P(F),new b(F)}f.str=E;function S(v,x){x instanceof b?v.push(...x._items):x instanceof p?v.push(x):v.push(B(x))}f.addCodeArg=S;function P(v){let x=1;for(;x<v.length-1;){if(v[x]===j){const F=T(v[x-1],v[x+1]);if(F!==void 0){v.splice(x-1,3,F);continue}v[x++]="+"}x++}}function T(v,x){if(x==='""')return v;if(v==='""')return x;if(typeof v=="string")return x instanceof p||v[v.length-1]!=='"'?void 0:typeof x!="string"?`${v.slice(0,-1)}${x}"`:x[0]==='"'?v.slice(0,-1)+x.slice(1):void 0;if(typeof x=="string"&&x[0]==='"'&&!(v instanceof p))return`"${v}${x.slice(1)}`}function A(v,x){return x.emptyStr()?v:v.emptyStr()?x:E`${v}${x}`}f.strConcat=A;function B(v){return typeof v=="number"||typeof v=="boolean"||v===null?v:N(Array.isArray(v)?v.join(","):v)}function I(v){return new b(N(v))}f.stringify=I;function N(v){return JSON.stringify(v).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}f.safeStringify=N;function L(v){return typeof v=="string"&&f.IDENTIFIER.test(v)?new b(`.${v}`):C`[${v}]`}f.getProperty=L;function k(v){if(typeof v=="string"&&f.IDENTIFIER.test(v))return new b(`${v}`);throw new Error(`CodeGen: invalid export name: ${v}, use explicit $id name mapping`)}f.getEsmExportName=k;function u(v){return new b(v.toString())}f.regexpCode=u},11601:(g,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),b=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,oe){return this}}class S extends E{constructor(se,oe,be){super(),this.varKind=se,this.name=oe,this.rhs=be}render({es5:se,_n:oe}){const be=se?b.varKinds.var:this.varKind,fe=this.rhs===void 0?"":` = ${this.rhs}`;return`${be} ${this.name}${fe};`+oe}optimizeNames(se,oe){if(se[this.name.str])return this.rhs&&(this.rhs=ge(this.rhs,se,oe)),this}get names(){return this.rhs instanceof p._CodeOrName?this.rhs.names:{}}}class P extends E{constructor(se,oe,be){super(),this.lhs=se,this.rhs=oe,this.sideEffects=be}render({_n:se}){return`${this.lhs} = ${this.rhs};`+se}optimizeNames(se,oe){if(!(this.lhs instanceof p.Name&&!se[this.lhs.str]&&!this.sideEffects))return this.rhs=ge(this.rhs,se,oe),this}get names(){const se=this.lhs instanceof p.Name?{}:{...this.lhs.names};return ae(se,this.rhs)}}class T extends P{constructor(se,oe,be,fe){super(se,be,fe),this.op=oe}render({_n:se}){return`${this.lhs} ${this.op}= ${this.rhs};`+se}}class A 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 I extends E{constructor(se){super(),this.error=se}render({_n:se}){return`throw ${this.error};`+se}get names(){return this.error.names}}class N extends E{constructor(se){super(),this.code=se}render({_n:se}){return`${this.code};`+se}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(se,oe){return this.code=ge(this.code,se,oe),this}get names(){return this.code instanceof p._CodeOrName?this.code.names:{}}}class L extends E{constructor(se=[]){super(),this.nodes=se}render(se){return this.nodes.reduce((oe,be)=>oe+be.render(se),"")}optimizeNodes(){const{nodes:se}=this;let oe=se.length;for(;oe--;){const be=se[oe].optimizeNodes();Array.isArray(be)?se.splice(oe,1,...be):be?se[oe]=be:se.splice(oe,1)}return se.length>0?this:void 0}optimizeNames(se,oe){const{nodes:be}=this;let fe=be.length;for(;fe--;){const Me=be[fe];Me.optimizeNames(se,oe)||(Pe(se,Me.names),be.splice(fe,1))}return be.length>0?this:void 0}get names(){return this.nodes.reduce((se,oe)=>le(se,oe.names),{})}}class k extends L{render(se){return"{"+se._n+super.render(se)+"}"+se._n}}class u extends L{}class v extends k{}v.kind="else";class x extends k{constructor(se,oe){super(oe),this.condition=se}render(se){let oe=`if(${this.condition})`+super.render(se);return this.else&&(oe+="else "+this.else.render(se)),oe}optimizeNodes(){super.optimizeNodes();const se=this.condition;if(se===!0)return this.nodes;let oe=this.else;if(oe){const be=oe.optimizeNodes();oe=this.else=Array.isArray(be)?new v(be):be}if(oe)return se===!1?oe instanceof x?oe:oe.nodes:this.nodes.length?this:new x(ke(se),oe instanceof x?[oe]:oe.nodes);if(!(se===!1||!this.nodes.length))return this}optimizeNames(se,oe){var be;if(this.else=(be=this.else)===null||be===void 0?void 0:be.optimizeNames(se,oe),!!(super.optimizeNames(se,oe)||this.else))return this.condition=ge(this.condition,se,oe),this}get names(){const se=super.names;return ae(se,this.condition),this.else&&le(se,this.else.names),se}}x.kind="if";class F extends k{}F.kind="for";class M extends F{constructor(se){super(),this.iteration=se}render(se){return`for(${this.iteration})`+super.render(se)}optimizeNames(se,oe){if(super.optimizeNames(se,oe))return this.iteration=ge(this.iteration,se,oe),this}get names(){return le(super.names,this.iteration.names)}}class R extends F{constructor(se,oe,be,fe){super(),this.varKind=se,this.name=oe,this.from=be,this.to=fe}render(se){const oe=se.es5?b.varKinds.var:this.varKind,{name:be,from:fe,to:Me}=this;return`for(${oe} ${be}=${fe}; ${be}<${Me}; ${be}++)`+super.render(se)}get names(){const se=ae(super.names,this.from);return ae(se,this.to)}}class U extends F{constructor(se,oe,be,fe){super(),this.loop=se,this.varKind=oe,this.name=be,this.iterable=fe}render(se){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(se)}optimizeNames(se,oe){if(super.optimizeNames(se,oe))return this.iterable=ge(this.iterable,se,oe),this}get names(){return le(super.names,this.iterable.names)}}class Z extends k{constructor(se,oe,be){super(),this.name=se,this.args=oe,this.async=be}render(se){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(se)}}Z.kind="func";class W extends L{render(se){return"return "+super.render(se)}}W.kind="return";class G extends k{render(se){let oe="try"+super.render(se);return this.catch&&(oe+=this.catch.render(se)),this.finally&&(oe+=this.finally.render(se)),oe}optimizeNodes(){var se,oe;return super.optimizeNodes(),(se=this.catch)===null||se===void 0||se.optimizeNodes(),(oe=this.finally)===null||oe===void 0||oe.optimizeNodes(),this}optimizeNames(se,oe){var be,fe;return super.optimizeNames(se,oe),(be=this.catch)===null||be===void 0||be.optimizeNames(se,oe),(fe=this.finally)===null||fe===void 0||fe.optimizeNames(se,oe),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 k{constructor(se){super(),this.error=se}render(se){return`catch(${this.error})`+super.render(se)}}Q.kind="catch";class ue extends k{render(se){return"finally"+super.render(se)}}ue.kind="finally";class ce{constructor(se,oe={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...oe,_n:oe.lines?`
|
|
7
7
|
`:""},this._extScope=se,this._scope=new b.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,oe){const be=this._extScope.value(se,oe);return(this._values[be.prefix]||(this._values[be.prefix]=new Set)).add(be),be}getScopeValue(se,oe){return this._extScope.getValue(se,oe)}scopeRefs(se){return this._extScope.scopeRefs(se,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(se,oe,be,fe){const Me=this._scope.toName(oe);return be!==void 0&&fe&&(this._constants[Me.str]=be),this._leafNode(new S(se,Me,be)),Me}const(se,oe,be){return this._def(b.varKinds.const,se,oe,be)}let(se,oe,be){return this._def(b.varKinds.let,se,oe,be)}var(se,oe,be){return this._def(b.varKinds.var,se,oe,be)}assign(se,oe,be){return this._leafNode(new P(se,oe,be))}add(se,oe){return this._leafNode(new T(se,f.operators.ADD,oe))}code(se){return typeof se=="function"?se():se!==p.nil&&this._leafNode(new N(se)),this}object(...se){const oe=["{"];for(const[be,fe]of se)oe.length>1&&oe.push(","),oe.push(be),(be!==fe||this.opts.es5)&&(oe.push(":"),(0,p.addCodeArg)(oe,fe));return oe.push("}"),new p._Code(oe)}if(se,oe,be){if(this._blockNode(new x(se)),oe&&be)this.code(oe).else().code(be).endIf();else if(oe)this.code(oe).endIf();else if(be)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(se){return this._elseNode(new x(se))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(x,v)}_for(se,oe){return this._blockNode(se),oe&&this.code(oe).endFor(),this}for(se,oe){return this._for(new M(se),oe)}forRange(se,oe,be,fe,Me=this.opts.es5?b.varKinds.var:b.varKinds.let){const we=this._scope.toName(se);return this._for(new R(Me,we,oe,be),()=>fe(we))}forOf(se,oe,be,fe=b.varKinds.const){const Me=this._scope.toName(se);if(this.opts.es5){const we=oe instanceof p.Name?oe:this.var("_arr",oe);return this.forRange("_i",0,(0,p._)`${we}.length`,$e=>{this.var(Me,(0,p._)`${we}[${$e}]`),be(Me)})}return this._for(new U("of",fe,Me,oe),()=>be(Me))}forIn(se,oe,be,fe=this.opts.es5?b.varKinds.var:b.varKinds.const){if(this.opts.ownProperties)return this.forOf(se,(0,p._)`Object.keys(${oe})`,be);const Me=this._scope.toName(se);return this._for(new U("in",fe,Me,oe),()=>be(Me))}endFor(){return this._endBlockNode(F)}label(se){return this._leafNode(new A(se))}break(se){return this._leafNode(new B(se))}return(se){const oe=new W;if(this._blockNode(oe),this.code(se),oe.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(W)}try(se,oe,be){if(!oe&&!be)throw new Error('CodeGen: "try" without "catch" and "finally"');const fe=new G;if(this._blockNode(fe),this.code(se),oe){const Me=this.name("e");this._currNode=fe.catch=new Q(Me),oe(Me)}return be&&(this._currNode=fe.finally=new ue,this.code(be)),this._endBlockNode(Q,ue)}throw(se){return this._leafNode(new I(se))}block(se,oe){return this._blockStarts.push(this._nodes.length),se&&this.code(se).endBlock(oe),this}endBlock(se){const oe=this._blockStarts.pop();if(oe===void 0)throw new Error("CodeGen: not in self-balancing block");const be=this._nodes.length-oe;if(be<0||se!==void 0&&be!==se)throw new Error(`CodeGen: wrong number of nodes: ${be} vs ${se} expected`);return this._nodes.length=oe,this}func(se,oe=p.nil,be,fe){return this._blockNode(new Z(se,oe,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,oe){const be=this._currNode;if(be instanceof se||oe&&be instanceof oe)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${oe?`${se.kind}/${oe.kind}`:se.kind}"`)}_elseNode(se){const oe=this._currNode;if(!(oe instanceof x))throw new Error('CodeGen: "else" without "if"');return this._currNode=oe.else=se,this}get _root(){return this._nodes[0]}get _currNode(){const se=this._nodes;return se[se.length-1]}set _currNode(se){const oe=this._nodes;oe[oe.length-1]=se}}f.CodeGen=ce;function le(ie,se){for(const oe in se)ie[oe]=(ie[oe]||0)+(se[oe]||0);return ie}function ae(ie,se){return se instanceof p._CodeOrName?le(ie,se.names):ie}function ge(ie,se,oe){if(ie instanceof p.Name)return be(ie);if(!fe(ie))return ie;return new p._Code(ie._items.reduce((Me,we)=>(we instanceof p.Name&&(we=be(we)),we instanceof p._Code?Me.push(...we._items):Me.push(we),Me),[]));function be(Me){const we=oe[Me.str];return we===void 0||se[Me.str]!==1?Me:(delete se[Me.str],we)}function fe(Me){return Me instanceof p._Code&&Me._items.some(we=>we instanceof p.Name&&se[we.str]===1&&oe[we.str]!==void 0)}}function Pe(ie,se){for(const oe in se)ie[oe]=(ie[oe]||0)-(se[oe]||0)}function ke(ie){return typeof ie=="boolean"||typeof ie=="number"||ie===null?!ie:(0,p._)`!${_(ie)}`}f.not=ke;const Se=q(f.operators.AND);function Ne(...ie){return ie.reduce(Se)}f.and=Ne;const Fe=q(f.operators.OR);function te(...ie){return ie.reduce(Fe)}f.or=te;function q(ie){return(se,oe)=>se===p.nil?oe:oe===p.nil?se:(0,p._)`${_(se)} ${ie} ${_(oe)}`}function _(ie){return ie instanceof p.Name?ie:(0,p._)`(${ie})`}},4425:(g,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 b extends Error{constructor(A){super(`CodeGen: "code" for ${A} not defined`),this.value=A.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:A,parent:B}={}){this._names={},this._prefixes=A,this._parent=B}toName(A){return A instanceof p.Name?A:this.name(A)}name(A){return new p.Name(this._newName(A))}_newName(A){const B=this._names[A]||this._nameGroup(A);return`${A}${B.index++}`}_nameGroup(A){var B,I;if(!((I=(B=this._parent)===null||B===void 0?void 0:B._prefixes)===null||I===void 0)&&I.has(A)||this._prefixes&&!this._prefixes.has(A))throw new Error(`CodeGen: prefix "${A}" is not allowed in this scope`);return this._names[A]={prefix:A,index:0}}}f.Scope=j;class E extends p.Name{constructor(A,B){super(B),this.prefix=A}setValue(A,{property:B,itemIndex:I}){this.value=A,this.scopePath=(0,p._)`.${new p.Name(B)}[${I}]`}}f.ValueScopeName=E;const S=(0,p._)`\n`;class P extends j{constructor(A){super(A),this._values={},this._scope=A.scope,this.opts={...A,_n:A.lines?S:p.nil}}get(){return this._scope}name(A){return new E(A,this._newName(A))}value(A,B){var I;if(B.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const N=this.toName(A),{prefix:L}=N,k=(I=B.key)!==null&&I!==void 0?I:B.ref;let u=this._values[L];if(u){const F=u.get(k);if(F)return F}else u=this._values[L]=new Map;u.set(k,N);const v=this._scope[L]||(this._scope[L]=[]),x=v.length;return v[x]=B.ref,N.setValue(B,{property:L,itemIndex:x}),N}getValue(A,B){const I=this._values[A];if(I)return I.get(B)}scopeRefs(A,B=this._values){return this._reduceValues(B,I=>{if(I.scopePath===void 0)throw new Error(`CodeGen: name "${I}" has no value`);return(0,p._)`${A}${I.scopePath}`})}scopeCode(A=this._values,B,I){return this._reduceValues(A,N=>{if(N.value===void 0)throw new Error(`CodeGen: name "${N}" has no value`);return N.value.code},B,I)}_reduceValues(A,B,I={},N){let L=p.nil;for(const k in A){const u=A[k];if(!u)continue;const v=I[k]=I[k]||new Map;u.forEach(x=>{if(v.has(x))return;v.set(x,C.Started);let F=B(x);if(F){const M=this.opts.es5?f.varKinds.var:f.varKinds.const;L=(0,p._)`${L}${M} ${x} = ${F};${this.opts._n}`}else if(F=N?.(x))L=(0,p._)`${L}${F}${this.opts._n}`;else throw new b(x);v.set(x,C.Completed)})}return L}}f.ValueScope=P},52952:(g,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),b=a(64207),C=a(38955);f.keywordError={message:({keyword:v})=>(0,p.str)`must pass "${v}" keyword validation`},f.keyword$DataError={message:({keyword:v,schemaType:x})=>x?(0,p.str)`"${v}" keyword must be ${x} ($data)`:(0,p.str)`"${v}" keyword is invalid ($data)`};function j(v,x=f.keywordError,F,M){const{it:R}=v,{gen:U,compositeRule:Z,allErrors:W}=R,G=I(v,x,F);M??(Z||W)?T(U,G):A(R,(0,p._)`[${G}]`)}f.reportError=j;function E(v,x=f.keywordError,F){const{it:M}=v,{gen:R,compositeRule:U,allErrors:Z}=M,W=I(v,x,F);T(R,W),U||Z||A(M,C.default.vErrors)}f.reportExtraError=E;function S(v,x){v.assign(C.default.errors,x),v.if((0,p._)`${C.default.vErrors} !== null`,()=>v.if(x,()=>v.assign((0,p._)`${C.default.vErrors}.length`,x),()=>v.assign(C.default.vErrors,null)))}f.resetErrorsCount=S;function P({gen:v,keyword:x,schemaValue:F,data:M,errsCount:R,it:U}){if(R===void 0)throw new Error("ajv implementation error");const Z=v.name("err");v.forRange("i",R,C.default.errors,W=>{v.const(Z,(0,p._)`${C.default.vErrors}[${W}]`),v.if((0,p._)`${Z}.instancePath === undefined`,()=>v.assign((0,p._)`${Z}.instancePath`,(0,p.strConcat)(C.default.instancePath,U.errorPath))),v.assign((0,p._)`${Z}.schemaPath`,(0,p.str)`${U.errSchemaPath}/${x}`),U.opts.verbose&&(v.assign((0,p._)`${Z}.schema`,F),v.assign((0,p._)`${Z}.data`,M))})}f.extendErrors=P;function T(v,x){const F=v.const("err",x);v.if((0,p._)`${C.default.vErrors} === null`,()=>v.assign(C.default.vErrors,(0,p._)`[${F}]`),(0,p._)`${C.default.vErrors}.push(${F})`),v.code((0,p._)`${C.default.errors}++`)}function A(v,x){const{gen:F,validateName:M,schemaEnv:R}=v;R.$async?F.throw((0,p._)`new ${v.ValidationError}(${x})`):(F.assign((0,p._)`${M}.errors`,x),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 I(v,x,F){const{createErrors:M}=v.it;return M===!1?(0,p._)`{}`:N(v,x,F)}function N(v,x,F={}){const{gen:M,it:R}=v,U=[L(R,F),k(v,F)];return u(v,x,U),M.object(...U)}function L({errorPath:v},{instancePath:x}){const F=x?(0,p.str)`${v}${(0,b.getErrorPath)(x,b.Type.Str)}`:v;return[C.default.instancePath,(0,p.strConcat)(C.default.instancePath,F)]}function k({keyword:v,it:{errSchemaPath:x}},{schemaPath:F,parentSchema:M}){let R=M?x:(0,p.str)`${x}/${v}`;return F&&(R=(0,p.str)`${R}${(0,b.getErrorPath)(F,b.Type.Str)}`),[B.schemaPath,R]}function u(v,{params:x,message:F},M){const{keyword:R,data:U,schemaValue:Z,it:W}=v,{opts:G,propertyName:Q,topSchemaRef:ue,schemaPath:ce}=W;M.push([B.keyword,R],[B.params,typeof x=="function"?x(v):x||(0,p._)`{}`]),G.messages&&M.push([B.message,typeof F=="function"?F(v):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:(g,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),b=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 R;typeof F.schema=="object"&&(R=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)(R?.[F.schemaId||"$id"]),this.schemaPath=F.schemaPath,this.localRefs=F.localRefs,this.meta=F.meta,this.$async=R?.$async,this.refs={}}}f.SchemaEnv=P;function T(x){const F=I.call(this,x);if(F)return F;const M=(0,j.getFullPath)(this.opts.uriResolver,x.root.baseId),{es5:R,lines:U}=this.opts.code,{ownProperties:Z}=this.opts,W=new p.CodeGen(this.scope,{es5:R,lines:U,ownProperties:Z});let G;x.$async&&(G=W.scopeValue("Error",{ref:b.default,code:(0,p._)`require("ajv/dist/runtime/validation_error").default`}));const Q=W.scopeName("validate");x.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:x.schema,code:(0,p.stringify)(x.schema)}:{ref:x.schema}),validateName:Q,ValidationError:G,schema:x.schema,schemaEnv:x,rootId:M,baseId:x.baseId||M,schemaPath:p.nil,errSchemaPath:x.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,p._)`""`,opts:this.opts,self:this};let ce;try{this._compilations.add(x),(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,x));const ge=new Function(`${C.default.self}`,`${C.default.scope}`,ce)(this,this.scope.get());if(this.scope.value(Q,{ref:ge}),ge.errors=null,ge.schema=x.schema,ge.schemaEnv=x,x.$async&&(ge.$async=!0),this.opts.code.source===!0&&(ge.source={validateName:Q,validateCode:le,scopeValues:W._values}),this.opts.unevaluated){const{props:Pe,items:ke}=ue;ge.evaluated={props:Pe instanceof p.Name?void 0:Pe,items:ke instanceof p.Name?void 0:ke,dynamicProps:Pe instanceof p.Name,dynamicItems:ke instanceof p.Name},ge.source&&(ge.source.evaluated=(0,p.stringify)(ge.evaluated))}return x.validate=ge,x}catch(le){throw delete x.validate,delete x.validateName,ce&&this.logger.error("Error compiling schema, function code:",ce),le}finally{this._compilations.delete(x)}}f.compileSchema=T;function A(x,F,M){var R;const U=(0,j.resolveUrl)(this.opts.uriResolver,F,M),Z=x.refs[U];if(Z)return Z;let W=L.call(this,x,U);if(W===void 0){const G=(R=x.localRefs)===null||R===void 0?void 0:R[U],{schemaId:Q}=this.opts;G&&(W=new P({schema:G,schemaId:Q,root:x,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=L.call(this,x,U))}if(W!==void 0)return x.refs[U]=B.call(this,W)}f.resolveRef=A;function B(x){return(0,j.inlineRef)(x.schema,this.opts.inlineRefs)?x.schema:x.validate?x:T.call(this,x)}function I(x){for(const F of this._compilations)if(N(F,x))return F}f.getCompilingSchema=I;function N(x,F){return x.schema===F.schema&&x.root===F.root&&x.baseId===F.baseId}function L(x,F){let M;for(;typeof(M=this.refs[F])=="string";)F=M;return M||this.schemas[F]||k.call(this,x,F)}function k(x,F){const M=this.opts.uriResolver.parse(F),R=(0,j._getFullPath)(this.opts.uriResolver,M);let U=(0,j.getFullPath)(this.opts.uriResolver,x.baseId,void 0);if(Object.keys(x.schema).length>0&&R===U)return v.call(this,M,x);const Z=(0,j.normalizeId)(R),W=this.refs[Z]||this.schemas[Z];if(typeof W=="string"){const G=k.call(this,x,W);return typeof G?.schema!="object"?void 0:v.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:x,baseId:U})}return v.call(this,M,W)}}f.resolveSchema=k;const u=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function v(x,{baseId:F,schema:M,root:R}){var U;if(((U=x.fragment)===null||U===void 0?void 0:U[0])!=="/")return;for(const G of x.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=k.call(this,R,G)}const{schemaId:W}=this.opts;if(Z=Z||new P({schema:M,schemaId:W,root:R,baseId:F}),Z.schema!==Z.root.schema)return Z}},38955:(g,f,a)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const p=a(11601),b={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=b},10059:(g,f,a)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const p=a(92863);class b 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=b},92863:(g,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),b=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(v,x=!0){return typeof v=="boolean"?!0:x===!0?!P(v):x?T(v)<=x:!1}f.inlineRef=E;const S=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function P(v){for(const x in v){if(S.has(x))return!0;const F=v[x];if(Array.isArray(F)&&F.some(P)||typeof F=="object"&&P(F))return!0}return!1}function T(v){let x=0;for(const F in v){if(F==="$ref")return 1/0;if(x++,!j.has(F)&&(typeof v[F]=="object"&&(0,p.eachItem)(v[F],M=>x+=T(M)),x===1/0))return 1/0}return x}function A(v,x="",F){F!==!1&&(x=N(x));const M=v.parse(x);return B(v,M)}f.getFullPath=A;function B(v,x){return v.serialize(x).split("#")[0]+"#"}f._getFullPath=B;const I=/#\/?$/;function N(v){return v?v.replace(I,""):""}f.normalizeId=N;function L(v,x,F){return F=N(F),v.resolve(x,F)}f.resolveUrl=L;const k=/^[a-z_][-a-z0-9._]*$/i;function u(v,x){if(typeof v=="boolean")return{};const{schemaId:F,uriResolver:M}=this.opts,R=N(v[F]||x),U={"":R},Z=A(M,R,!1),W={},G=new Set;return C(v,{allKeys:!0},(ce,le,ae,ge)=>{if(ge===void 0)return;const Pe=Z+le;let ke=U[ge];typeof ce[F]=="string"&&(ke=Se.call(this,ce[F])),Ne.call(this,ce.$anchor),Ne.call(this,ce.$dynamicAnchor),U[le]=ke;function Se(Fe){const te=this.opts.uriResolver.resolve;if(Fe=N(ke?te(ke,Fe):Fe),G.has(Fe))throw ue(Fe);G.add(Fe);let q=this.refs[Fe];return typeof q=="string"&&(q=this.refs[q]),typeof q=="object"?Q(ce,q.schema,Fe):Fe!==N(Pe)&&(Fe[0]==="#"?(Q(ce,W[Fe],Fe),W[Fe]=ce):this.refs[Fe]=Pe),Fe}function Ne(Fe){if(typeof Fe=="string"){if(!k.test(Fe))throw new Error(`invalid anchor "${Fe}"`);Se.call(this,`#${Fe}`)}}}),W;function Q(ce,le,ae){if(le!==void 0&&!b(ce,le))throw ue(ae)}function ue(ce){return new Error(`reference "${ce}" resolves to more than one schema`)}}f.getSchemaRefs=u},57760:(g,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 b(j){return typeof j=="string"&&p.has(j)}f.isJSONType=b;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:(g,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),b=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 A(Z){return N(decodeURIComponent(Z))}f.unescapeFragment=A;function B(Z){return encodeURIComponent(I(Z))}f.escapeFragment=B;function I(Z){return typeof Z=="number"?`${Z}`:Z.replace(/~/g,"~0").replace(/\//g,"~1")}f.escapeJsonPointer=I;function N(Z){return Z.replace(/~1/g,"/").replace(/~0/g,"~")}f.unescapeJsonPointer=N;function L(Z,W){if(Array.isArray(Z))for(const G of Z)W(G);else W(Z)}f.eachItem=L;function k({mergeNames:Z,mergeToName:W,mergeValues:G,resultToName:Q}){return(ue,ce,le,ae)=>{const ge=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&&!(ge instanceof p.Name)?Q(ue,ge):ge}}f.mergeEvaluated={props:k({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} || {}`),v(Z,G,W))}),mergeValues:(Z,W)=>Z===!0?!0:{...Z,...W},resultToName:u}),items:k({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&&v(Z,G,W),G}f.evaluatedPropsToName=u;function v(Z,W,G){Object.keys(G).forEach(Q=>Z.assign((0,p._)`${W}${(0,p.getProperty)(Q)}`,!0))}f.setEvaluated=v;const x={};function F(Z,W){return Z.scopeValue("func",{ref:W,code:x[W.code]||(x[W.code]=new b._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 R(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():"/"+I(Z)}f.getErrorPath=R;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:(g,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=>b(C,E))}f.shouldUseGroup=p;function b(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=b},219:(g,f,a)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.boolOrEmptySchema=f.topBoolOrEmptySchema=void 0;const p=a(52952),b=a(11601),C=a(38955),j={message:"boolean schema is false"};function E(T){const{gen:A,schema:B,validateName:I}=T;B===!1?P(T,!1):typeof B=="object"&&B.$async===!0?A.return(C.default.data):(A.assign((0,b._)`${I}.errors`,null),A.return(!0))}f.topBoolOrEmptySchema=E;function S(T,A){const{gen:B,schema:I}=T;I===!1?(B.var(A,!1),P(T)):B.var(A,!0)}f.boolOrEmptySchema=S;function P(T,A){const{gen:B,data:I}=T,N={gen:B,keyword:"false schema",data:I,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:T};(0,p.reportError)(N,j,void 0,A)}},9788:(g,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),b=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 R=T(M.type);if(R.includes("null")){if(M.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!R.length&&M.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');M.nullable===!0&&R.push("null")}return R}f.getSchemaTypes=P;function T(M){const R=Array.isArray(M)?M:M?[M]:[];if(R.every(p.isJSONType))return R;throw new Error("type must be JSONType or JSONType[]: "+R.join(","))}f.getJSONTypes=T;function A(M,R){const{gen:U,data:Z,opts:W}=M,G=I(R,W.coerceTypes),Q=R.length>0&&!(G.length===0&&R.length===1&&(0,b.schemaHasRulesForType)(M,R[0]));if(Q){const ue=u(R,Z,W.strictNumbers,S.Wrong);U.if(ue,()=>{G.length?N(M,R,G):x(M)})}return Q}f.coerceAndCheckDataType=A;const B=new Set(["string","number","integer","boolean","null"]);function I(M,R){return R?M.filter(U=>B.has(U)||R==="array"&&U==="array"):[]}function N(M,R,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(R,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(),x(M),Z.endIf(),Z.if((0,j._)`${ue} !== undefined`,()=>{Z.assign(W,ue),L(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
|
|
@@ -1552,7 +1552,7 @@ ${fe}`}}const R=oe=>Array.isArray(oe)&&oe.some(be=>(0,b.isObject)(be)),U=oe=>oe.
|
|
|
1552
1552
|
|
|
1553
1553
|
margin-left: 0;
|
|
1554
1554
|
}
|
|
1555
|
-
`;function I({data:u,expandLevel:v=1,className:x,onCopyClick:F}){const
|
|
1555
|
+
`;function I({data:u,expandLevel:v=1,className:x,onCopyClick:F,title:M}){const R=u&&Object.values(u).some(ue=>typeof ue=="object"&&ue!==null),[U,Z]=b.useState(void 0),W=()=>{Z(!0),setTimeout(()=>{Z(void 0)})},G=()=>{Z(!1),setTimeout(()=>{Z(void 0)})},Q=JSON.stringify(u,null,2);return(0,p.jsx)(k,{"data-testid":"json-viewer","data-component-name":"JsonViewer/JsonViewer",className:x,children:(0,p.jsx)(j.N,{header:{title:M,className:"code-block-header",controls:{copy:{data:u,onClick:F,handleOutside:!0},expand:R?{onClick:W}:void 0,collapse:R?{onClick:G}:void 0}},source:Q,children:(0,p.jsx)(L,{children:(0,p.jsx)(P,{value:u,level:0,standalone:!0,expandAllSignal:U,defaultExpandLevel:Math.max(1,v)})})})})}const N=(0,b.memo)(I),L=C.Ay.div`
|
|
1556
1556
|
position: relative;
|
|
1557
1557
|
`,k=C.Ay.div`
|
|
1558
1558
|
display: flex;
|
|
@@ -6696,15 +6696,6 @@ ${fe}`}}const R=oe=>Array.isArray(oe)&&oe.some(be=>(0,b.isObject)(be)),U=oe=>oe.
|
|
|
6696
6696
|
--schema-recursive-bg-color: var(--color-persian-green-6); // @presenter Color
|
|
6697
6697
|
--schema-recursive-border-color: var(--schema-recursive-bg-color); // @presenter Color
|
|
6698
6698
|
|
|
6699
|
-
/**
|
|
6700
|
-
* @tokens GraphQL Docs Reference Schema Non null label
|
|
6701
|
-
* @presenter Color
|
|
6702
|
-
*/
|
|
6703
|
-
|
|
6704
|
-
--schema-non-null-text-color: var(--schema-inline-code-text-color);
|
|
6705
|
-
--schema-non-null-bg-color: var(--schema-inline-bg-color);
|
|
6706
|
-
--schema-non-null-border-color: var(--schema-inline-border-color);
|
|
6707
|
-
|
|
6708
6699
|
/**
|
|
6709
6700
|
* @tokens API Reference Schema Nested styles
|
|
6710
6701
|
*/
|
|
@@ -12052,4 +12043,4 @@ Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An
|
|
|
12052
12043
|
`,e0e=({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})})})},t0e=({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})})})},Xde=R.Ay.div`
|
|
12053
12044
|
padding: 20px;
|
|
12054
12045
|
color: red;
|
|
12055
|
-
`;class n0e 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,g.jsxs)(Xde,{children:[(0,g.jsx)("h1",{children:"Something went wrong..."}),(0,g.jsxs)("small",{children:[" ",this.state.error.message," "]}),(0,g.jsx)("p",{children:(0,g.jsxs)("details",{children:[(0,g.jsx)("summary",{children:"Stack trace"}),(0,g.jsx)("pre",{children:this.state.error.stack})]})}),typeof __REDOC_VERSION__<"u"?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("small",{children:[" References docs version: ",__REDOC_VERSION__]})," ",(0,g.jsx)("br",{})]}):null,typeof __REDOC_REVISION__<"u"?(0,g.jsxs)("small",{children:[" Commit: ",__REDOC_REVISION__]}):null]}):(0,g.jsx)(g.Fragment,{children:u.Children.only(this.props.children)})}}var Gde=Object.defineProperty,HL=Object.getOwnPropertySymbols,Jde=Object.prototype.hasOwnProperty,qde=Object.prototype.propertyIsEnumerable,QL=(n,e,t)=>e in n?Gde(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,ZL=(n,e)=>{for(var t in e||(e={}))Jde.call(e,t)&&QL(n,t,e[t]);if(HL)for(var t of HL(e))qde.call(e,t)&&QL(n,t,e[t]);return n};const KL=(0,M.JA)(),_de=KL?(0,k.dirname)(KL)+"/":"";function efe(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 tfe(n){const e=efe(n),t={};for(const o in e){const l=o.replace(/-(.)/g,(c,d)=>d.toUpperCase());t[l]=e[o]}return t}function nfe(n,e=document.querySelector("redoc")){(0,x.c)(e,(0,g.jsx)(WL,{store:n}))}function YL(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,x.H)(t).render((0,u.createElement)(Kde,{definition:l,definitionUrl:o,options:ZL(ZL({},e),tfe(t))},["Loading..."]))}function XL(n){po.p=n}const rfe="3.0.
|
|
12046
|
+
`;class n0e 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,g.jsxs)(Xde,{children:[(0,g.jsx)("h1",{children:"Something went wrong..."}),(0,g.jsxs)("small",{children:[" ",this.state.error.message," "]}),(0,g.jsx)("p",{children:(0,g.jsxs)("details",{children:[(0,g.jsx)("summary",{children:"Stack trace"}),(0,g.jsx)("pre",{children:this.state.error.stack})]})}),typeof __REDOC_VERSION__<"u"?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("small",{children:[" References docs version: ",__REDOC_VERSION__]})," ",(0,g.jsx)("br",{})]}):null,typeof __REDOC_REVISION__<"u"?(0,g.jsxs)("small",{children:[" Commit: ",__REDOC_REVISION__]}):null]}):(0,g.jsx)(g.Fragment,{children:u.Children.only(this.props.children)})}}var Gde=Object.defineProperty,HL=Object.getOwnPropertySymbols,Jde=Object.prototype.hasOwnProperty,qde=Object.prototype.propertyIsEnumerable,QL=(n,e,t)=>e in n?Gde(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,ZL=(n,e)=>{for(var t in e||(e={}))Jde.call(e,t)&&QL(n,t,e[t]);if(HL)for(var t of HL(e))qde.call(e,t)&&QL(n,t,e[t]);return n};const KL=(0,M.JA)(),_de=KL?(0,k.dirname)(KL)+"/":"";function efe(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 tfe(n){const e=efe(n),t={};for(const o in e){const l=o.replace(/-(.)/g,(c,d)=>d.toUpperCase());t[l]=e[o]}return t}function nfe(n,e=document.querySelector("redoc")){(0,x.c)(e,(0,g.jsx)(WL,{store:n}))}function YL(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,x.H)(t).render((0,u.createElement)(Kde,{definition:l,definitionUrl:o,options:ZL(ZL({},e),tfe(t))},["Loading..."]))}function XL(n){po.p=n}const rfe="3.0.5",ofe="7dfc6de191";function ife(){const n=(0,M.iT)("redoc");if(!n)return;const e=n.getAttribute("spec-url");e&&YL(e,{},n)}F.IS_BROWSER&&XL(_de),ife()})(),db})());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/openapi-docs",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"description": "Redocly OpenAPI Docs",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-esm/index.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"url": "~0.11.0",
|
|
45
45
|
"url-template": "^2.0.8",
|
|
46
46
|
"util": "~0.12.5",
|
|
47
|
-
"@redocly/replay": "0.0.
|
|
47
|
+
"@redocly/replay": "0.0.5",
|
|
48
48
|
"@redocly/config": "0.6.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"webpack": "5.91.0",
|
|
96
96
|
"webpack-cli": "5.1.4",
|
|
97
97
|
"webpack-dev-server": "4.15.2",
|
|
98
|
-
"@redocly/theme": "0.37.
|
|
98
|
+
"@redocly/theme": "0.37.4"
|
|
99
99
|
},
|
|
100
100
|
"scripts": {
|
|
101
101
|
"start": "webpack serve --mode=development --hot",
|