@redocly/openapi-docs 0.82.1-rc.1 → 0.82.2-rc.1
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: "0.82.
|
|
5
|
+
* Version: "0.82.2-rc.1"
|
|
6
6
|
*/(function(k1,dh){typeof exports=="object"&&typeof module=="object"?module.exports=dh(require("null")):typeof define=="function"&&define.amd?define(["null"],dh):typeof exports=="object"?exports.RedoclyOpenAPIDocs=dh(require("null")):k1.RedoclyOpenAPIDocs=dh(k1.null)})(this,X3=>(()=>{var k1={96119:(g,f,a)=>{"use strict";a.d(f,{Z:()=>p});function p(C){var P=Object.create(null);return function(M){return P[M]===void 0&&(P[M]=C(M)),P[M]}}},92806:(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(29271),C=a(16314),P=a(53245),M=a(60895),S="https://json-schema.org/draft/2020-12/schema";class w extends p.default{constructor($={}){super({...$,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),C.default.forEach($=>this.addVocabulary($)),this.opts.discriminator&&this.addKeyword(P.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:$,meta:T}=this.opts;T&&(M.default.call(this,$),this.refs["http://json-schema.org/schema"]=S)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(S)?S:void 0)}}g.exports=f=w,Object.defineProperty(f,"__esModule",{value:!0}),f.default=w;var E=a(34863);Object.defineProperty(f,"KeywordCxt",{enumerable:!0,get:function(){return E.KeywordCxt}});var j=a(25865);Object.defineProperty(f,"_",{enumerable:!0,get:function(){return j._}}),Object.defineProperty(f,"str",{enumerable:!0,get:function(){return j.str}}),Object.defineProperty(f,"stringify",{enumerable:!0,get:function(){return j.stringify}}),Object.defineProperty(f,"nil",{enumerable:!0,get:function(){return j.nil}}),Object.defineProperty(f,"Name",{enumerable:!0,get:function(){return j.Name}}),Object.defineProperty(f,"CodeGen",{enumerable:!0,get:function(){return j.CodeGen}})},9838:(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(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 C 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((k,L)=>`${k}${L}`,"")}get names(){var b;return(b=this._names)!==null&&b!==void 0?b:this._names=this._items.reduce((k,L)=>(L instanceof p&&(k[L.str]=(k[L.str]||0)+1),k),{})}}f._Code=C,f.nil=new C("");function P(O,...b){const k=[O[0]];let L=0;for(;L<b.length;)w(k,b[L]),k.push(O[++L]);return new C(k)}f._=P;const M=new C("+");function S(O,...b){const k=[U(O[0])];let L=0;for(;L<b.length;)k.push(M),w(k,b[L]),k.push(M,U(O[++L]));return E(k),new C(k)}f.str=S;function w(O,b){b instanceof C?O.push(...b._items):b instanceof p?O.push(b):O.push($(b))}f.addCodeArg=w;function E(O){let b=1;for(;b<O.length-1;){if(O[b]===M){const k=j(O[b-1],O[b+1]);if(k!==void 0){O.splice(b-1,3,k);continue}O[b++]="+"}b++}}function j(O,b){if(b==='""')return O;if(O==='""')return b;if(typeof O=="string")return b instanceof p||O[O.length-1]!=='"'?void 0:typeof b!="string"?`${O.slice(0,-1)}${b}"`:b[0]==='"'?O.slice(0,-1)+b.slice(1):void 0;if(typeof b=="string"&&b[0]==='"'&&!(O instanceof p))return`"${O}${b.slice(1)}`}function A(O,b){return b.emptyStr()?O:O.emptyStr()?b:S`${O}${b}`}f.strConcat=A;function $(O){return typeof O=="number"||typeof O=="boolean"||O===null?O:U(Array.isArray(O)?O.join(","):O)}function T(O){return new C(U(O))}f.stringify=T;function U(O){return JSON.stringify(O).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}f.safeStringify=U;function B(O){return typeof O=="string"&&f.IDENTIFIER.test(O)?new C(`.${O}`):P`[${O}]`}f.getProperty=B;function z(O){if(typeof O=="string"&&f.IDENTIFIER.test(O))return new C(`${O}`);throw new Error(`CodeGen: invalid export name: ${O}, use explicit $id name mapping`)}f.getEsmExportName=z;function d(O){return new C(O.toString())}f.regexpCode=d},25865:(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(9838),C=a(11949);var P=a(9838);Object.defineProperty(f,"_",{enumerable:!0,get:function(){return P._}}),Object.defineProperty(f,"str",{enumerable:!0,get:function(){return P.str}}),Object.defineProperty(f,"strConcat",{enumerable:!0,get:function(){return P.strConcat}}),Object.defineProperty(f,"nil",{enumerable:!0,get:function(){return P.nil}}),Object.defineProperty(f,"getProperty",{enumerable:!0,get:function(){return P.getProperty}}),Object.defineProperty(f,"stringify",{enumerable:!0,get:function(){return P.stringify}}),Object.defineProperty(f,"regexpCode",{enumerable:!0,get:function(){return P.regexpCode}}),Object.defineProperty(f,"Name",{enumerable:!0,get:function(){return P.Name}});var M=a(11949);Object.defineProperty(f,"Scope",{enumerable:!0,get:function(){return M.Scope}}),Object.defineProperty(f,"ValueScope",{enumerable:!0,get:function(){return M.ValueScope}}),Object.defineProperty(f,"ValueScopeName",{enumerable:!0,get:function(){return M.ValueScopeName}}),Object.defineProperty(f,"varKinds",{enumerable:!0,get:function(){return M.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 S{optimizeNodes(){return this}optimizeNames(ie,ne){return this}}class w extends S{constructor(ie,ne,Oe){super(),this.varKind=ie,this.name=ne,this.rhs=Oe}render({es5:ie,_n:ne}){const Oe=ie?C.varKinds.var:this.varKind,fe=this.rhs===void 0?"":` = ${this.rhs}`;return`${Oe} ${this.name}${fe};`+ne}optimizeNames(ie,ne){if(ie[this.name.str])return this.rhs&&(this.rhs=Ce(this.rhs,ie,ne)),this}get names(){return this.rhs instanceof p._CodeOrName?this.rhs.names:{}}}class E extends S{constructor(ie,ne,Oe){super(),this.lhs=ie,this.rhs=ne,this.sideEffects=Oe}render({_n:ie}){return`${this.lhs} = ${this.rhs};`+ie}optimizeNames(ie,ne){if(!(this.lhs instanceof p.Name&&!ie[this.lhs.str]&&!this.sideEffects))return this.rhs=Ce(this.rhs,ie,ne),this}get names(){const ie=this.lhs instanceof p.Name?{}:{...this.lhs.names};return pe(ie,this.rhs)}}class j extends E{constructor(ie,ne,Oe,fe){super(ie,Oe,fe),this.op=ne}render({_n:ie}){return`${this.lhs} ${this.op}= ${this.rhs};`+ie}}class A extends S{constructor(ie){super(),this.label=ie,this.names={}}render({_n:ie}){return`${this.label}:`+ie}}class $ extends S{constructor(ie){super(),this.label=ie,this.names={}}render({_n:ie}){return`break${this.label?` ${this.label}`:""};`+ie}}class T extends S{constructor(ie){super(),this.error=ie}render({_n:ie}){return`throw ${this.error};`+ie}get names(){return this.error.names}}class U extends S{constructor(ie){super(),this.code=ie}render({_n:ie}){return`${this.code};`+ie}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(ie,ne){return this.code=Ce(this.code,ie,ne),this}get names(){return this.code instanceof p._CodeOrName?this.code.names:{}}}class B extends S{constructor(ie=[]){super(),this.nodes=ie}render(ie){return this.nodes.reduce((ne,Oe)=>ne+Oe.render(ie),"")}optimizeNodes(){const{nodes:ie}=this;let ne=ie.length;for(;ne--;){const Oe=ie[ne].optimizeNodes();Array.isArray(Oe)?ie.splice(ne,1,...Oe):Oe?ie[ne]=Oe:ie.splice(ne,1)}return ie.length>0?this:void 0}optimizeNames(ie,ne){const{nodes:Oe}=this;let fe=Oe.length;for(;fe--;){const Me=Oe[fe];Me.optimizeNames(ie,ne)||(ke(ie,Me.names),Oe.splice(fe,1))}return Oe.length>0?this:void 0}get names(){return this.nodes.reduce((ie,ne)=>ye(ie,ne.names),{})}}class z extends B{render(ie){return"{"+ie._n+super.render(ie)+"}"+ie._n}}class d extends B{}class O extends z{}O.kind="else";class b extends z{constructor(ie,ne){super(ne),this.condition=ie}render(ie){let ne=`if(${this.condition})`+super.render(ie);return this.else&&(ne+="else "+this.else.render(ie)),ne}optimizeNodes(){super.optimizeNodes();const ie=this.condition;if(ie===!0)return this.nodes;let ne=this.else;if(ne){const Oe=ne.optimizeNodes();ne=this.else=Array.isArray(Oe)?new O(Oe):Oe}if(ne)return ie===!1?ne instanceof b?ne:ne.nodes:this.nodes.length?this:new b(We(ie),ne instanceof b?[ne]:ne.nodes);if(!(ie===!1||!this.nodes.length))return this}optimizeNames(ie,ne){var Oe;if(this.else=(Oe=this.else)===null||Oe===void 0?void 0:Oe.optimizeNames(ie,ne),!!(super.optimizeNames(ie,ne)||this.else))return this.condition=Ce(this.condition,ie,ne),this}get names(){const ie=super.names;return pe(ie,this.condition),this.else&&ye(ie,this.else.names),ie}}b.kind="if";class k extends z{}k.kind="for";class L extends k{constructor(ie){super(),this.iteration=ie}render(ie){return`for(${this.iteration})`+super.render(ie)}optimizeNames(ie,ne){if(super.optimizeNames(ie,ne))return this.iteration=Ce(this.iteration,ie,ne),this}get names(){return ye(super.names,this.iteration.names)}}class R extends k{constructor(ie,ne,Oe,fe){super(),this.varKind=ie,this.name=ne,this.from=Oe,this.to=fe}render(ie){const ne=ie.es5?C.varKinds.var:this.varKind,{name:Oe,from:fe,to:Me}=this;return`for(${ne} ${Oe}=${fe}; ${Oe}<${Me}; ${Oe}++)`+super.render(ie)}get names(){const ie=pe(super.names,this.from);return pe(ie,this.to)}}class V extends k{constructor(ie,ne,Oe,fe){super(),this.loop=ie,this.varKind=ne,this.name=Oe,this.iterable=fe}render(ie){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(ie)}optimizeNames(ie,ne){if(super.optimizeNames(ie,ne))return this.iterable=Ce(this.iterable,ie,ne),this}get names(){return ye(super.names,this.iterable.names)}}class G extends z{constructor(ie,ne,Oe){super(),this.name=ie,this.args=ne,this.async=Oe}render(ie){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(ie)}}G.kind="func";class W extends B{render(ie){return"return "+super.render(ie)}}W.kind="return";class q extends z{render(ie){let ne="try"+super.render(ie);return this.catch&&(ne+=this.catch.render(ie)),this.finally&&(ne+=this.finally.render(ie)),ne}optimizeNodes(){var ie,ne;return super.optimizeNodes(),(ie=this.catch)===null||ie===void 0||ie.optimizeNodes(),(ne=this.finally)===null||ne===void 0||ne.optimizeNodes(),this}optimizeNames(ie,ne){var Oe,fe;return super.optimizeNames(ie,ne),(Oe=this.catch)===null||Oe===void 0||Oe.optimizeNames(ie,ne),(fe=this.finally)===null||fe===void 0||fe.optimizeNames(ie,ne),this}get names(){const ie=super.names;return this.catch&&ye(ie,this.catch.names),this.finally&&ye(ie,this.finally.names),ie}}class Q extends z{constructor(ie){super(),this.error=ie}render(ie){return`catch(${this.error})`+super.render(ie)}}Q.kind="catch";class se extends z{render(ie){return"finally"+super.render(ie)}}se.kind="finally";class le{constructor(ie,ne={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...ne,_n:ne.lines?`
|
|
7
7
|
`:""},this._extScope=ie,this._scope=new C.Scope({parent:ie}),this._nodes=[new d]}toString(){return this._root.render(this.opts)}name(ie){return this._scope.name(ie)}scopeName(ie){return this._extScope.name(ie)}scopeValue(ie,ne){const Oe=this._extScope.value(ie,ne);return(this._values[Oe.prefix]||(this._values[Oe.prefix]=new Set)).add(Oe),Oe}getScopeValue(ie,ne){return this._extScope.getValue(ie,ne)}scopeRefs(ie){return this._extScope.scopeRefs(ie,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(ie,ne,Oe,fe){const Me=this._scope.toName(ne);return Oe!==void 0&&fe&&(this._constants[Me.str]=Oe),this._leafNode(new w(ie,Me,Oe)),Me}const(ie,ne,Oe){return this._def(C.varKinds.const,ie,ne,Oe)}let(ie,ne,Oe){return this._def(C.varKinds.let,ie,ne,Oe)}var(ie,ne,Oe){return this._def(C.varKinds.var,ie,ne,Oe)}assign(ie,ne,Oe){return this._leafNode(new E(ie,ne,Oe))}add(ie,ne){return this._leafNode(new j(ie,f.operators.ADD,ne))}code(ie){return typeof ie=="function"?ie():ie!==p.nil&&this._leafNode(new U(ie)),this}object(...ie){const ne=["{"];for(const[Oe,fe]of ie)ne.length>1&&ne.push(","),ne.push(Oe),(Oe!==fe||this.opts.es5)&&(ne.push(":"),(0,p.addCodeArg)(ne,fe));return ne.push("}"),new p._Code(ne)}if(ie,ne,Oe){if(this._blockNode(new b(ie)),ne&&Oe)this.code(ne).else().code(Oe).endIf();else if(ne)this.code(ne).endIf();else if(Oe)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(ie){return this._elseNode(new b(ie))}else(){return this._elseNode(new O)}endIf(){return this._endBlockNode(b,O)}_for(ie,ne){return this._blockNode(ie),ne&&this.code(ne).endFor(),this}for(ie,ne){return this._for(new L(ie),ne)}forRange(ie,ne,Oe,fe,Me=this.opts.es5?C.varKinds.var:C.varKinds.let){const De=this._scope.toName(ie);return this._for(new R(Me,De,ne,Oe),()=>fe(De))}forOf(ie,ne,Oe,fe=C.varKinds.const){const Me=this._scope.toName(ie);if(this.opts.es5){const De=ne instanceof p.Name?ne:this.var("_arr",ne);return this.forRange("_i",0,(0,p._)`${De}.length`,$e=>{this.var(Me,(0,p._)`${De}[${$e}]`),Oe(Me)})}return this._for(new V("of",fe,Me,ne),()=>Oe(Me))}forIn(ie,ne,Oe,fe=this.opts.es5?C.varKinds.var:C.varKinds.const){if(this.opts.ownProperties)return this.forOf(ie,(0,p._)`Object.keys(${ne})`,Oe);const Me=this._scope.toName(ie);return this._for(new V("in",fe,Me,ne),()=>Oe(Me))}endFor(){return this._endBlockNode(k)}label(ie){return this._leafNode(new A(ie))}break(ie){return this._leafNode(new $(ie))}return(ie){const ne=new W;if(this._blockNode(ne),this.code(ie),ne.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(W)}try(ie,ne,Oe){if(!ne&&!Oe)throw new Error('CodeGen: "try" without "catch" and "finally"');const fe=new q;if(this._blockNode(fe),this.code(ie),ne){const Me=this.name("e");this._currNode=fe.catch=new Q(Me),ne(Me)}return Oe&&(this._currNode=fe.finally=new se,this.code(Oe)),this._endBlockNode(Q,se)}throw(ie){return this._leafNode(new T(ie))}block(ie,ne){return this._blockStarts.push(this._nodes.length),ie&&this.code(ie).endBlock(ne),this}endBlock(ie){const ne=this._blockStarts.pop();if(ne===void 0)throw new Error("CodeGen: not in self-balancing block");const Oe=this._nodes.length-ne;if(Oe<0||ie!==void 0&&Oe!==ie)throw new Error(`CodeGen: wrong number of nodes: ${Oe} vs ${ie} expected`);return this._nodes.length=ne,this}func(ie,ne=p.nil,Oe,fe){return this._blockNode(new G(ie,ne,Oe)),fe&&this.code(fe).endFunc(),this}endFunc(){return this._endBlockNode(G)}optimize(ie=1){for(;ie-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(ie){return this._currNode.nodes.push(ie),this}_blockNode(ie){this._currNode.nodes.push(ie),this._nodes.push(ie)}_endBlockNode(ie,ne){const Oe=this._currNode;if(Oe instanceof ie||ne&&Oe instanceof ne)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${ne?`${ie.kind}/${ne.kind}`:ie.kind}"`)}_elseNode(ie){const ne=this._currNode;if(!(ne instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=ne.else=ie,this}get _root(){return this._nodes[0]}get _currNode(){const ie=this._nodes;return ie[ie.length-1]}set _currNode(ie){const ne=this._nodes;ne[ne.length-1]=ie}}f.CodeGen=le;function ye(de,ie){for(const ne in ie)de[ne]=(de[ne]||0)+(ie[ne]||0);return de}function pe(de,ie){return ie instanceof p._CodeOrName?ye(de,ie.names):de}function Ce(de,ie,ne){if(de instanceof p.Name)return Oe(de);if(!fe(de))return de;return new p._Code(de._items.reduce((Me,De)=>(De instanceof p.Name&&(De=Oe(De)),De instanceof p._Code?Me.push(...De._items):Me.push(De),Me),[]));function Oe(Me){const De=ne[Me.str];return De===void 0||ie[Me.str]!==1?Me:(delete ie[Me.str],De)}function fe(Me){return Me instanceof p._Code&&Me._items.some(De=>De instanceof p.Name&&ie[De.str]===1&&ne[De.str]!==void 0)}}function ke(de,ie){for(const ne in ie)de[ne]=(de[ne]||0)-(ie[ne]||0)}function We(de){return typeof de=="boolean"||typeof de=="number"||de===null?!de:(0,p._)`!${re(de)}`}f.not=We;const Ie=te(f.operators.AND);function Ze(...de){return de.reduce(Ie)}f.and=Ze;const Fe=te(f.operators.OR);function oe(...de){return de.reduce(Fe)}f.or=oe;function te(de){return(ie,ne)=>ie===p.nil?ne:ne===p.nil?ie:(0,p._)`${re(ie)} ${de} ${re(ne)}`}function re(de){return de instanceof p.Name?de:(0,p._)`(${de})`}},11949:(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(9838);class C extends Error{constructor(A){super(`CodeGen: "code" for ${A} not defined`),this.value=A.value}}var P;(function(j){j[j.Started=0]="Started",j[j.Completed=1]="Completed"})(P=f.UsedValueState||(f.UsedValueState={})),f.varKinds={const:new p.Name("const"),let:new p.Name("let"),var:new p.Name("var")};class M{constructor({prefixes:A,parent:$}={}){this._names={},this._prefixes=A,this._parent=$}toName(A){return A instanceof p.Name?A:this.name(A)}name(A){return new p.Name(this._newName(A))}_newName(A){const $=this._names[A]||this._nameGroup(A);return`${A}${$.index++}`}_nameGroup(A){var $,T;if(!((T=($=this._parent)===null||$===void 0?void 0:$._prefixes)===null||T===void 0)&&T.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=M;class S extends p.Name{constructor(A,$){super($),this.prefix=A}setValue(A,{property:$,itemIndex:T}){this.value=A,this.scopePath=(0,p._)`.${new p.Name($)}[${T}]`}}f.ValueScopeName=S;const w=(0,p._)`\n`;class E extends M{constructor(A){super(A),this._values={},this._scope=A.scope,this.opts={...A,_n:A.lines?w:p.nil}}get(){return this._scope}name(A){return new S(A,this._newName(A))}value(A,$){var T;if($.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const U=this.toName(A),{prefix:B}=U,z=(T=$.key)!==null&&T!==void 0?T:$.ref;let d=this._values[B];if(d){const k=d.get(z);if(k)return k}else d=this._values[B]=new Map;d.set(z,U);const O=this._scope[B]||(this._scope[B]=[]),b=O.length;return O[b]=$.ref,U.setValue($,{property:B,itemIndex:b}),U}getValue(A,$){const T=this._values[A];if(T)return T.get($)}scopeRefs(A,$=this._values){return this._reduceValues($,T=>{if(T.scopePath===void 0)throw new Error(`CodeGen: name "${T}" has no value`);return(0,p._)`${A}${T.scopePath}`})}scopeCode(A=this._values,$,T){return this._reduceValues(A,U=>{if(U.value===void 0)throw new Error(`CodeGen: name "${U}" has no value`);return U.value.code},$,T)}_reduceValues(A,$,T={},U){let B=p.nil;for(const z in A){const d=A[z];if(!d)continue;const O=T[z]=T[z]||new Map;d.forEach(b=>{if(O.has(b))return;O.set(b,P.Started);let k=$(b);if(k){const L=this.opts.es5?f.varKinds.var:f.varKinds.const;B=(0,p._)`${B}${L} ${b} = ${k};${this.opts._n}`}else if(k=U?.(b))B=(0,p._)`${B}${k}${this.opts._n}`;else throw new C(b);O.set(b,P.Completed)})}return B}}f.ValueScope=E},63007:(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(25865),C=a(28314),P=a(50459);f.keywordError={message:({keyword:O})=>(0,p.str)`must pass "${O}" keyword validation`},f.keyword$DataError={message:({keyword:O,schemaType:b})=>b?(0,p.str)`"${O}" keyword must be ${b} ($data)`:(0,p.str)`"${O}" keyword is invalid ($data)`};function M(O,b=f.keywordError,k,L){const{it:R}=O,{gen:V,compositeRule:G,allErrors:W}=R,q=T(O,b,k);L??(G||W)?j(V,q):A(R,(0,p._)`[${q}]`)}f.reportError=M;function S(O,b=f.keywordError,k){const{it:L}=O,{gen:R,compositeRule:V,allErrors:G}=L,W=T(O,b,k);j(R,W),V||G||A(L,P.default.vErrors)}f.reportExtraError=S;function w(O,b){O.assign(P.default.errors,b),O.if((0,p._)`${P.default.vErrors} !== null`,()=>O.if(b,()=>O.assign((0,p._)`${P.default.vErrors}.length`,b),()=>O.assign(P.default.vErrors,null)))}f.resetErrorsCount=w;function E({gen:O,keyword:b,schemaValue:k,data:L,errsCount:R,it:V}){if(R===void 0)throw new Error("ajv implementation error");const G=O.name("err");O.forRange("i",R,P.default.errors,W=>{O.const(G,(0,p._)`${P.default.vErrors}[${W}]`),O.if((0,p._)`${G}.instancePath === undefined`,()=>O.assign((0,p._)`${G}.instancePath`,(0,p.strConcat)(P.default.instancePath,V.errorPath))),O.assign((0,p._)`${G}.schemaPath`,(0,p.str)`${V.errSchemaPath}/${b}`),V.opts.verbose&&(O.assign((0,p._)`${G}.schema`,k),O.assign((0,p._)`${G}.data`,L))})}f.extendErrors=E;function j(O,b){const k=O.const("err",b);O.if((0,p._)`${P.default.vErrors} === null`,()=>O.assign(P.default.vErrors,(0,p._)`[${k}]`),(0,p._)`${P.default.vErrors}.push(${k})`),O.code((0,p._)`${P.default.errors}++`)}function A(O,b){const{gen:k,validateName:L,schemaEnv:R}=O;R.$async?k.throw((0,p._)`new ${O.ValidationError}(${b})`):(k.assign((0,p._)`${L}.errors`,b),k.return(!1))}const $={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 T(O,b,k){const{createErrors:L}=O.it;return L===!1?(0,p._)`{}`:U(O,b,k)}function U(O,b,k={}){const{gen:L,it:R}=O,V=[B(R,k),z(O,k)];return d(O,b,V),L.object(...V)}function B({errorPath:O},{instancePath:b}){const k=b?(0,p.str)`${O}${(0,C.getErrorPath)(b,C.Type.Str)}`:O;return[P.default.instancePath,(0,p.strConcat)(P.default.instancePath,k)]}function z({keyword:O,it:{errSchemaPath:b}},{schemaPath:k,parentSchema:L}){let R=L?b:(0,p.str)`${b}/${O}`;return k&&(R=(0,p.str)`${R}${(0,C.getErrorPath)(k,C.Type.Str)}`),[$.schemaPath,R]}function d(O,{params:b,message:k},L){const{keyword:R,data:V,schemaValue:G,it:W}=O,{opts:q,propertyName:Q,topSchemaRef:se,schemaPath:le}=W;L.push([$.keyword,R],[$.params,typeof b=="function"?b(O):b||(0,p._)`{}`]),q.messages&&L.push([$.message,typeof k=="function"?k(O):k]),q.verbose&&L.push([$.schema,G],[$.parentSchema,(0,p._)`${se}${le}`],[P.default.data,V]),Q&&L.push([$.propertyName,Q])}},38518:(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(25865),C=a(16128),P=a(50459),M=a(75040),S=a(28314),w=a(34863);class E{constructor(k){var L;this.refs={},this.dynamicAnchors={};let R;typeof k.schema=="object"&&(R=k.schema),this.schema=k.schema,this.schemaId=k.schemaId,this.root=k.root||this,this.baseId=(L=k.baseId)!==null&&L!==void 0?L:(0,M.normalizeId)(R?.[k.schemaId||"$id"]),this.schemaPath=k.schemaPath,this.localRefs=k.localRefs,this.meta=k.meta,this.$async=R?.$async,this.refs={}}}f.SchemaEnv=E;function j(b){const k=T.call(this,b);if(k)return k;const L=(0,M.getFullPath)(this.opts.uriResolver,b.root.baseId),{es5:R,lines:V}=this.opts.code,{ownProperties:G}=this.opts,W=new p.CodeGen(this.scope,{es5:R,lines:V,ownProperties:G});let q;b.$async&&(q=W.scopeValue("Error",{ref:C.default,code:(0,p._)`require("ajv/dist/runtime/validation_error").default`}));const Q=W.scopeName("validate");b.validateName=Q;const se={gen:W,allErrors:this.opts.allErrors,data:P.default.data,parentData:P.default.parentData,parentDataProperty:P.default.parentDataProperty,dataNames:[P.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:q,schema:b.schema,schemaEnv:b,rootId:L,baseId:b.baseId||L,schemaPath:p.nil,errSchemaPath:b.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,p._)`""`,opts:this.opts,self:this};let le;try{this._compilations.add(b),(0,w.validateFunctionCode)(se),W.optimize(this.opts.code.optimize);const ye=W.toString();le=`const visitedNodesForRef = new WeakMap(); ${W.scopeRefs(P.default.scope)}return ${ye}`,this.opts.code.process&&(le=this.opts.code.process(le,b));const Ce=new Function(`${P.default.self}`,`${P.default.scope}`,le)(this,this.scope.get());if(this.scope.value(Q,{ref:Ce}),Ce.errors=null,Ce.schema=b.schema,Ce.schemaEnv=b,b.$async&&(Ce.$async=!0),this.opts.code.source===!0&&(Ce.source={validateName:Q,validateCode:ye,scopeValues:W._values}),this.opts.unevaluated){const{props:ke,items:We}=se;Ce.evaluated={props:ke instanceof p.Name?void 0:ke,items:We instanceof p.Name?void 0:We,dynamicProps:ke instanceof p.Name,dynamicItems:We instanceof p.Name},Ce.source&&(Ce.source.evaluated=(0,p.stringify)(Ce.evaluated))}return b.validate=Ce,b}catch(ye){throw delete b.validate,delete b.validateName,le&&this.logger.error("Error compiling schema, function code:",le),ye}finally{this._compilations.delete(b)}}f.compileSchema=j;function A(b,k,L){var R;const V=(0,M.resolveUrl)(this.opts.uriResolver,k,L),G=b.refs[V];if(G)return G;let W=B.call(this,b,V);if(W===void 0){const q=(R=b.localRefs)===null||R===void 0?void 0:R[V],{schemaId:Q}=this.opts;q&&(W=new E({schema:q,schemaId:Q,root:b,baseId:k}))}if(W===void 0&&this.opts.loadSchemaSync){const q=this.opts.loadSchemaSync(k,L,V);q&&!(this.refs[V]||this.schemas[V])&&(this.addSchema(q,V,void 0),W=B.call(this,b,V))}if(W!==void 0)return b.refs[V]=$.call(this,W)}f.resolveRef=A;function $(b){return(0,M.inlineRef)(b.schema,this.opts.inlineRefs)?b.schema:b.validate?b:j.call(this,b)}function T(b){for(const k of this._compilations)if(U(k,b))return k}f.getCompilingSchema=T;function U(b,k){return b.schema===k.schema&&b.root===k.root&&b.baseId===k.baseId}function B(b,k){let L;for(;typeof(L=this.refs[k])=="string";)k=L;return L||this.schemas[k]||z.call(this,b,k)}function z(b,k){const L=this.opts.uriResolver.parse(k),R=(0,M._getFullPath)(this.opts.uriResolver,L);let V=(0,M.getFullPath)(this.opts.uriResolver,b.baseId,void 0);if(Object.keys(b.schema).length>0&&R===V)return O.call(this,L,b);const G=(0,M.normalizeId)(R),W=this.refs[G]||this.schemas[G];if(typeof W=="string"){const q=z.call(this,b,W);return typeof q?.schema!="object"?void 0:O.call(this,L,q)}if(typeof W?.schema=="object"){if(W.validate||j.call(this,W),G===(0,M.normalizeId)(k)){const{schema:q}=W,{schemaId:Q}=this.opts,se=q[Q];return se&&(V=(0,M.resolveUrl)(this.opts.uriResolver,V,se)),new E({schema:q,schemaId:Q,root:b,baseId:V})}return O.call(this,L,W)}}f.resolveSchema=z;const d=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function O(b,{baseId:k,schema:L,root:R}){var V;if(((V=b.fragment)===null||V===void 0?void 0:V[0])!=="/")return;for(const q of b.fragment.slice(1).split("/")){if(typeof L=="boolean")return;const Q=L[(0,S.unescapeFragment)(q)];if(Q===void 0)return;L=Q;const se=typeof L=="object"&&L[this.opts.schemaId];!d.has(q)&&se&&(k=(0,M.resolveUrl)(this.opts.uriResolver,k,se))}let G;if(typeof L!="boolean"&&L.$ref&&!(0,S.schemaHasRulesButRef)(L,this.RULES)){const q=(0,M.resolveUrl)(this.opts.uriResolver,k,L.$ref);G=z.call(this,R,q)}const{schemaId:W}=this.opts;if(G=G||new E({schema:L,schemaId:W,root:R,baseId:k}),G.schema!==G.root.schema)return G}},50459:(g,f,a)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const p=a(25865),C={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=C},82438:(g,f,a)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});const p=a(75040);class C extends Error{constructor(M,S,w,E){super(E||`can't resolve reference ${w} from id ${S}`),this.missingRef=(0,p.resolveUrl)(M,S,w),this.missingSchema=(0,p.normalizeId)((0,p.getFullPath)(M,this.missingRef))}}f.default=C},75040:(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(28314),C=a(44204),P=a(5094),M=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function S(O,b=!0){return typeof O=="boolean"?!0:b===!0?!E(O):b?j(O)<=b:!1}f.inlineRef=S;const w=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function E(O){for(const b in O){if(w.has(b))return!0;const k=O[b];if(Array.isArray(k)&&k.some(E)||typeof k=="object"&&E(k))return!0}return!1}function j(O){let b=0;for(const k in O){if(k==="$ref")return 1/0;if(b++,!M.has(k)&&(typeof O[k]=="object"&&(0,p.eachItem)(O[k],L=>b+=j(L)),b===1/0))return 1/0}return b}function A(O,b="",k){k!==!1&&(b=U(b));const L=O.parse(b);return $(O,L)}f.getFullPath=A;function $(O,b){return O.serialize(b).split("#")[0]+"#"}f._getFullPath=$;const T=/#\/?$/;function U(O){return O?O.replace(T,""):""}f.normalizeId=U;function B(O,b,k){return k=U(k),O.resolve(b,k)}f.resolveUrl=B;const z=/^[a-z_][-a-z0-9._]*$/i;function d(O,b){if(typeof O=="boolean")return{};const{schemaId:k,uriResolver:L}=this.opts,R=U(O[k]||b),V={"":R},G=A(L,R,!1),W={},q=new Set;return P(O,{allKeys:!0},(le,ye,pe,Ce)=>{if(Ce===void 0)return;const ke=G+ye;let We=V[Ce];typeof le[k]=="string"&&(We=Ie.call(this,le[k])),Ze.call(this,le.$anchor),Ze.call(this,le.$dynamicAnchor),V[ye]=We;function Ie(Fe){const oe=this.opts.uriResolver.resolve;if(Fe=U(We?oe(We,Fe):Fe),q.has(Fe))throw se(Fe);q.add(Fe);let te=this.refs[Fe];return typeof te=="string"&&(te=this.refs[te]),typeof te=="object"?Q(le,te.schema,Fe):Fe!==U(ke)&&(Fe[0]==="#"?(Q(le,W[Fe],Fe),W[Fe]=le):this.refs[Fe]=ke),Fe}function Ze(Fe){if(typeof Fe=="string"){if(!z.test(Fe))throw new Error(`invalid anchor "${Fe}"`);Ie.call(this,`#${Fe}`)}}}),W;function Q(le,ye,pe){if(ye!==void 0&&!C(le,ye))throw se(pe)}function se(le){return new Error(`reference "${le}" resolves to more than one schema`)}}f.getSchemaRefs=d},94632:(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 C(M){return typeof M=="string"&&p.has(M)}f.isJSONType=C;function P(){const M={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...M,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},M.number,M.string,M.array,M.object],post:{rules:[]},all:{},keywords:{}}}f.getRules=P},28314:(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(25865),C=a(9838);function P(G){const W={};for(const q of G)W[q]=!0;return W}f.toHash=P;function M(G,W){return typeof W=="boolean"?W:Object.keys(W).length===0?!0:(S(G,W),!w(W,G.self.RULES.all))}f.alwaysValidSchema=M;function S(G,W=G.schema){const{opts:q,self:Q}=G;if(!q.strictSchema||typeof W=="boolean")return;const se=Q.RULES.keywords;for(const le in W)se[le]||V(G,`unknown keyword: "${le}"`)}f.checkUnknownRules=S;function w(G,W){if(typeof G=="boolean")return!G;for(const q in G)if(W[q])return!0;return!1}f.schemaHasRules=w;function E(G,W){if(typeof G=="boolean")return!G;for(const q in G)if(q!=="$ref"&&W.all[q])return!0;return!1}f.schemaHasRulesButRef=E;function j({topSchemaRef:G,schemaPath:W},q,Q,se){if(!se){if(typeof q=="number"||typeof q=="boolean")return q;if(typeof q=="string")return(0,p._)`${q}`}return(0,p._)`${G}${W}${(0,p.getProperty)(Q)}`}f.schemaRefOrVal=j;function A(G){return U(decodeURIComponent(G))}f.unescapeFragment=A;function $(G){return encodeURIComponent(T(G))}f.escapeFragment=$;function T(G){return typeof G=="number"?`${G}`:G.replace(/~/g,"~0").replace(/\//g,"~1")}f.escapeJsonPointer=T;function U(G){return G.replace(/~1/g,"/").replace(/~0/g,"~")}f.unescapeJsonPointer=U;function B(G,W){if(Array.isArray(G))for(const q of G)W(q);else W(G)}f.eachItem=B;function z({mergeNames:G,mergeToName:W,mergeValues:q,resultToName:Q}){return(se,le,ye,pe)=>{const Ce=ye===void 0?le:ye instanceof p.Name?(le instanceof p.Name?G(se,le,ye):W(se,le,ye),ye):le instanceof p.Name?(W(se,ye,le),le):q(le,ye);return pe===p.Name&&!(Ce instanceof p.Name)?Q(se,Ce):Ce}}f.mergeEvaluated={props:z({mergeNames:(G,W,q)=>G.if((0,p._)`${q} !== true && ${W} !== undefined`,()=>{G.if((0,p._)`${W} === true`,()=>G.assign(q,!0),()=>G.assign(q,(0,p._)`${q} || {}`).code((0,p._)`Object.assign(${q}, ${W})`))}),mergeToName:(G,W,q)=>G.if((0,p._)`${q} !== true`,()=>{W===!0?G.assign(q,!0):(G.assign(q,(0,p._)`${q} || {}`),O(G,q,W))}),mergeValues:(G,W)=>G===!0?!0:{...G,...W},resultToName:d}),items:z({mergeNames:(G,W,q)=>G.if((0,p._)`${q} !== true && ${W} !== undefined`,()=>G.assign(q,(0,p._)`${W} === true ? true : ${q} > ${W} ? ${q} : ${W}`)),mergeToName:(G,W,q)=>G.if((0,p._)`${q} !== true`,()=>G.assign(q,W===!0?!0:(0,p._)`${q} > ${W} ? ${q} : ${W}`)),mergeValues:(G,W)=>G===!0?!0:Math.max(G,W),resultToName:(G,W)=>G.var("items",W)})};function d(G,W){if(W===!0)return G.var("props",!0);const q=G.var("props",(0,p._)`{}`);return W!==void 0&&O(G,q,W),q}f.evaluatedPropsToName=d;function O(G,W,q){Object.keys(q).forEach(Q=>G.assign((0,p._)`${W}${(0,p.getProperty)(Q)}`,!0))}f.setEvaluated=O;const b={};function k(G,W){return G.scopeValue("func",{ref:W,code:b[W.code]||(b[W.code]=new C._Code(W.code))})}f.useFunc=k;var L;(function(G){G[G.Num=0]="Num",G[G.Str=1]="Str"})(L=f.Type||(f.Type={}));function R(G,W,q){if(G instanceof p.Name){const Q=W===L.Num;return q?Q?(0,p._)`"[" + ${G} + "]"`:(0,p._)`"['" + ${G} + "']"`:Q?(0,p._)`"/" + ${G}`:(0,p._)`"/" + ${G}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return q?(0,p.getProperty)(G).toString():"/"+T(G)}f.getErrorPath=R;function V(G,W,q=G.opts.strictSchema){if(q){if(W=`strict mode: ${W}`,q===!0)throw new Error(W);G.self.logger.warn(W)}}f.checkStrictMode=V},55565:(g,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.shouldUseRule=f.shouldUseGroup=f.schemaHasRulesForType=void 0;function a({schema:P,self:M},S){const w=M.RULES.types[S];return w&&w!==!0&&p(P,w)}f.schemaHasRulesForType=a;function p(P,M){return M.rules.some(S=>C(P,S))}f.shouldUseGroup=p;function C(P,M){var S;return P[M.keyword]!==void 0||((S=M.definition.implements)===null||S===void 0?void 0:S.some(w=>P[w]!==void 0))}f.shouldUseRule=C},22466:(g,f,a)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.boolOrEmptySchema=f.topBoolOrEmptySchema=void 0;const p=a(63007),C=a(25865),P=a(50459),M={message:"boolean schema is false"};function S(j){const{gen:A,schema:$,validateName:T}=j;$===!1?E(j,!1):typeof $=="object"&&$.$async===!0?A.return(P.default.data):(A.assign((0,C._)`${T}.errors`,null),A.return(!0))}f.topBoolOrEmptySchema=S;function w(j,A){const{gen:$,schema:T}=j;T===!1?($.var(A,!1),E(j)):$.var(A,!0)}f.boolOrEmptySchema=w;function E(j,A){const{gen:$,data:T}=j,U={gen:$,keyword:"false schema",data:T,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:j};(0,p.reportError)(U,M,void 0,A)}},35314:(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(94632),C=a(55565),P=a(63007),M=a(25865),S=a(28314);var w;(function(L){L[L.Correct=0]="Correct",L[L.Wrong=1]="Wrong"})(w=f.DataType||(f.DataType={}));function E(L){const R=j(L.type);if(R.includes("null")){if(L.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!R.length&&L.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');L.nullable===!0&&R.push("null")}return R}f.getSchemaTypes=E;function j(L){const R=Array.isArray(L)?L:L?[L]:[];if(R.every(p.isJSONType))return R;throw new Error("type must be JSONType or JSONType[]: "+R.join(","))}f.getJSONTypes=j;function A(L,R){const{gen:V,data:G,opts:W}=L,q=T(R,W.coerceTypes),Q=R.length>0&&!(q.length===0&&R.length===1&&(0,C.schemaHasRulesForType)(L,R[0]));if(Q){const se=d(R,G,W.strictNumbers,w.Wrong);V.if(se,()=>{q.length?U(L,R,q):b(L)})}return Q}f.coerceAndCheckDataType=A;const $=new Set(["string","number","integer","boolean","null"]);function T(L,R){return R?L.filter(V=>$.has(V)||R==="array"&&V==="array"):[]}function U(L,R,V){const{gen:G,data:W,opts:q}=L,Q=G.let("dataType",(0,M._)`typeof ${W}`),se=G.let("coerced",(0,M._)`undefined`);q.coerceTypes==="array"&&G.if((0,M._)`${Q} == 'object' && Array.isArray(${W}) && ${W}.length == 1`,()=>G.assign(W,(0,M._)`${W}[0]`).assign(Q,(0,M._)`typeof ${W}`).if(d(R,W,q.strictNumbers),()=>G.assign(se,W))),G.if((0,M._)`${se} !== undefined`);for(const ye of V)($.has(ye)||ye==="array"&&q.coerceTypes==="array")&&le(ye);G.else(),b(L),G.endIf(),G.if((0,M._)`${se} !== undefined`,()=>{G.assign(W,se),B(L,se)});function le(ye){switch(ye){case"string":G.elseIf((0,M._)`${Q} == "number" || ${Q} == "boolean"`).assign(se,(0,M._)`"" + ${W}`).elseIf((0,M._)`${W} === null`).assign(se,(0,M._)`""`);return;case"number":G.elseIf((0,M._)`${Q} == "boolean" || ${W} === null
|
|
8
8
|
|| (${Q} == "string" && ${W} && ${W} == +${W})`).assign(se,(0,M._)`+${W}`);return;case"integer":G.elseIf((0,M._)`${Q} === "boolean" || ${W} === null
|
|
@@ -11976,4 +11976,4 @@ Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An
|
|
|
11976
11976
|
`,Hme=({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})})})},Qme=({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})})})},Fde=R.ZP.div`
|
|
11977
11977
|
padding: 20px;
|
|
11978
11978
|
color: red;
|
|
11979
|
-
`;class Kme extends null{constructor(e){super(e),this.state={error:void 0}}componentDidCatch(e){return this.setState({error:e}),!1}render(){return this.state.error?jsxs(Fde,{children:[jsx("h1",{children:"Something went wrong..."}),jsxs("small",{children:[" ",this.state.error.message," "]}),jsx("p",{children:jsxs("details",{children:[jsx("summary",{children:"Stack trace"}),jsx("pre",{children:this.state.error.stack})]})}),typeof __REDOC_VERSION__<"u"?jsxs(Fragment,{children:[jsxs("small",{children:[" References docs version: ",__REDOC_VERSION__]})," ",jsx("br",{})]}):null,typeof __REDOC_REVISION__<"u"?jsxs("small",{children:[" Commit: ",__REDOC_REVISION__]}):null]}):jsx(Fragment,{children:Children.only(this.props.children)})}}var Ude=Object.defineProperty,HL=Object.getOwnPropertySymbols,Vde=Object.prototype.hasOwnProperty,zde=Object.prototype.propertyIsEnumerable,QL=(n,e,t)=>e in n?Ude(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,KL=(n,e)=>{for(var t in e||(e={}))Vde.call(e,t)&&QL(n,t,e[t]);if(HL)for(var t of HL(e))zde.call(e,t)&&QL(n,t,e[t]);return n};const YL=(0,L.uW)(),Wde=YL?(0,z.dirname)(YL)+"/":"";function Zde(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 Hde(n){const e=Zde(n),t={};for(const o in e){const l=o.replace(/-(.)/g,(c,u)=>u.toUpperCase());t[l]=e[o]}return t}function Qde(n,e=document.querySelector("redoc")){(0,b.a)(e,(0,g.jsx)(ZL,{store:n}))}function XL(n,e={},t=(0,L.R2)("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.s)(t).render((0,d.createElement)(kde,{definition:l,definitionUrl:o,options:KL(KL({},e),Hde(t))},["Loading..."]))}function GL(n){io.p=n}const Kde="0.82.
|
|
11979
|
+
`;class Kme extends null{constructor(e){super(e),this.state={error:void 0}}componentDidCatch(e){return this.setState({error:e}),!1}render(){return this.state.error?jsxs(Fde,{children:[jsx("h1",{children:"Something went wrong..."}),jsxs("small",{children:[" ",this.state.error.message," "]}),jsx("p",{children:jsxs("details",{children:[jsx("summary",{children:"Stack trace"}),jsx("pre",{children:this.state.error.stack})]})}),typeof __REDOC_VERSION__<"u"?jsxs(Fragment,{children:[jsxs("small",{children:[" References docs version: ",__REDOC_VERSION__]})," ",jsx("br",{})]}):null,typeof __REDOC_REVISION__<"u"?jsxs("small",{children:[" Commit: ",__REDOC_REVISION__]}):null]}):jsx(Fragment,{children:Children.only(this.props.children)})}}var Ude=Object.defineProperty,HL=Object.getOwnPropertySymbols,Vde=Object.prototype.hasOwnProperty,zde=Object.prototype.propertyIsEnumerable,QL=(n,e,t)=>e in n?Ude(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,KL=(n,e)=>{for(var t in e||(e={}))Vde.call(e,t)&&QL(n,t,e[t]);if(HL)for(var t of HL(e))zde.call(e,t)&&QL(n,t,e[t]);return n};const YL=(0,L.uW)(),Wde=YL?(0,z.dirname)(YL)+"/":"";function Zde(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 Hde(n){const e=Zde(n),t={};for(const o in e){const l=o.replace(/-(.)/g,(c,u)=>u.toUpperCase());t[l]=e[o]}return t}function Qde(n,e=document.querySelector("redoc")){(0,b.a)(e,(0,g.jsx)(ZL,{store:n}))}function XL(n,e={},t=(0,L.R2)("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.s)(t).render((0,d.createElement)(kde,{definition:l,definitionUrl:o,options:KL(KL({},e),Hde(t))},["Loading..."]))}function GL(n){io.p=n}const Kde="0.82.2-rc.1",Yde="23b6685bb8";function Xde(){const n=(0,L.R2)("redoc");if(!n)return;const e=n.getAttribute("spec-url");e&&XL(e,{},n)}k.IS_BROWSER&&GL(Wde),Xde()})(),sC})());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/openapi-docs",
|
|
3
|
-
"version": "0.82.
|
|
3
|
+
"version": "0.82.2-rc.1",
|
|
4
4
|
"description": "Redocly OpenAPI Docs",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-esm/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"openapi-docs": "bin.js"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@redocly/theme": "0.82.
|
|
19
|
+
"@redocly/theme": "0.82.2-rc.1",
|
|
20
20
|
"core-js": "^3.1.4",
|
|
21
21
|
"react": "^18.0.0",
|
|
22
22
|
"react-dom": "^18.0.0",
|
|
@@ -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.82.
|
|
47
|
+
"@redocly/replay": "0.82.2-rc.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@cfaester/enzyme-adapter-react-18": "0.7.1",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"webpack": "5.88.2",
|
|
95
95
|
"webpack-cli": "5.1.4",
|
|
96
96
|
"webpack-dev-server": "4.15.1",
|
|
97
|
-
"@redocly/theme": "0.82.
|
|
97
|
+
"@redocly/theme": "0.82.2-rc.1"
|
|
98
98
|
},
|
|
99
99
|
"scripts": {
|
|
100
100
|
"start": "webpack serve --mode=development --hot",
|