apiuikit 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apiuikit.cjs.js +1 -1
- package/dist/apiuikit.css +1 -1
- package/dist/apiuikit.es.js +16 -9
- package/dist/components/Bindings.d.ts +3 -1
- package/dist/components/Navigation.d.ts +11 -4
- package/dist/components/SearchPanel.d.ts +9 -0
- package/dist/components/schema/SchemaNode.d.ts +10 -1
- package/dist/components/schema/SchemaTab.d.ts +3 -1
- package/dist/components/schema/SchemaTree.d.ts +5 -1
- package/dist/components/schema/SchemaTreeRow.d.ts +2 -1
- package/dist/config/config.d.ts +1 -0
- package/dist/containers/AsyncAPI/AsyncAPIDocumentProvider.d.ts +12 -0
- package/dist/containers/AsyncAPI/tests/searchHighlight.test.d.ts +1 -0
- package/dist/containers/Messages/MessageDetails.d.ts +3 -1
- package/dist/containers/Messages/Messages.d.ts +3 -1
- package/dist/containers/Operation/Operation.d.ts +3 -1
- package/dist/containers/Operation/Operations.d.ts +3 -1
- package/dist/containers/Schema/Schemas.d.ts +6 -1
- package/dist/containers/Server/Server.d.ts +8 -1
- package/dist/containers/Server/Servers.d.ts +7 -3
- package/dist/helpers/protobuf/lazyProtoToJsonSchema.d.ts +14 -0
- package/dist/helpers/schemaFormat.d.ts +3 -0
- package/dist/helpers/searchIndex.d.ts +18 -0
- package/dist/helpers/textHighlight.d.ts +2 -0
- package/dist/hooks/useSpecSearch.d.ts +13 -0
- package/dist/icons/Server.d.ts +4 -3
- package/dist/index-Bad1aEIj.js +11352 -0
- package/dist/{index-yG3rYT_D.js → index-CzcxQGxP.js} +1 -1
- package/dist/{index-DqcOEYz_.cjs → index-D7GelPk0.cjs} +1 -1
- package/dist/index-gn5KpvCL.cjs +73 -0
- package/dist/index.d.ts +2 -0
- package/dist/protoToJsonSchema-8Mm10CIx.cjs +83 -0
- package/dist/protoToJsonSchema-BJpwl2Am.js +6174 -0
- package/dist/protobufSchemaParser-Cj2WOp05.js +55 -0
- package/dist/protobufSchemaParser-D_2rEsD4.cjs +1 -0
- package/dist/public/sections.d.ts +42 -0
- package/dist/public/tests/sections.test.d.ts +1 -0
- package/dist/stories/Authorization.stories.d.ts +13 -0
- package/dist/stories/Bindings.stories.d.ts +12 -0
- package/dist/stories/ChannelAddress.stories.d.ts +13 -0
- package/dist/stories/CodeBlock.stories.d.ts +11 -0
- package/dist/stories/Examples.stories.d.ts +11 -0
- package/dist/stories/Information.stories.d.ts +1 -0
- package/dist/stories/Message.stories.d.ts +11 -0
- package/dist/stories/Messages.stories.d.ts +10 -0
- package/dist/stories/Operation.stories.d.ts +10 -0
- package/dist/stories/Operations.stories.d.ts +10 -0
- package/dist/stories/SchemaTab.stories.d.ts +11 -0
- package/dist/stories/SearchPanel.stories.d.ts +16 -0
- package/dist/stories/Server.stories.d.ts +3 -1
- package/dist/stories/TabToggle.stories.d.ts +10 -0
- package/dist/stories/Tabs.stories.d.ts +11 -0
- package/dist/stories/documentContextDecorator.d.ts +25 -0
- package/package.json +2 -3
- package/dist/index-BYmrdiVi.cjs +0 -155
- package/dist/index-DfH4J5EL.js +0 -15436
- package/dist/stories/Button.d.ts +0 -14
- package/dist/stories/Button.stories.d.ts +0 -23
|
@@ -5,7 +5,7 @@ var Vp = (xi) => {
|
|
|
5
5
|
var vd = (xi, Oi, Ai) => Oi in xi ? bd(xi, Oi, { enumerable: !0, configurable: !0, writable: !0, value: Ai }) : xi[Oi] = Ai;
|
|
6
6
|
var Np = (xi, Oi, Ai) => vd(xi, typeof Oi != "symbol" ? Oi + "" : Oi, Ai), Fp = (xi, Oi, Ai) => Oi.has(xi) || Vp("Cannot " + Ai);
|
|
7
7
|
var ir = (xi, Oi, Ai) => (Fp(xi, Oi, "read from private field"), Ai ? Ai.call(xi) : Oi.get(xi)), so = (xi, Oi, Ai) => Oi.has(xi) ? Vp("Cannot add the same private member more than once") : Oi instanceof WeakSet ? Oi.add(xi) : Oi.set(xi, Ai), da = (xi, Oi, Ai, sn) => (Fp(xi, Oi, "write to private field"), sn ? sn.call(xi, Ai) : Oi.set(xi, Ai), Ai);
|
|
8
|
-
import { g as jd } from "./index-
|
|
8
|
+
import { g as jd } from "./index-Bad1aEIj.js";
|
|
9
9
|
function $d(xi, Oi) {
|
|
10
10
|
for (var Ai = 0; Ai < Oi.length; Ai++) {
|
|
11
11
|
const sn = Oi[Ai];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var bd=Object.defineProperty;var Vp=xi=>{throw TypeError(xi)};var vd=(xi,Oi,Ai)=>Oi in xi?bd(xi,Oi,{enumerable:!0,configurable:!0,writable:!0,value:Ai}):xi[Oi]=Ai;var Np=(xi,Oi,Ai)=>vd(xi,typeof Oi!="symbol"?Oi+"":Oi,Ai),Fp=(xi,Oi,Ai)=>Oi.has(xi)||Vp("Cannot "+Ai);var ir=(xi,Oi,Ai)=>(Fp(xi,Oi,"read from private field"),Ai?Ai.call(xi):Oi.get(xi)),so=(xi,Oi,Ai)=>Oi.has(xi)?Vp("Cannot add the same private member more than once"):Oi instanceof WeakSet?Oi.add(xi):Oi.set(xi,Ai),da=(xi,Oi,Ai,sn)=>(Fp(xi,Oi,"write to private field"),sn?sn.call(xi,Ai):Oi.set(xi,Ai),Ai);const jd=require("./index-BYmrdiVi.cjs");function $d(xi,Oi){for(var Ai=0;Ai<Oi.length;Ai++){const sn=Oi[Ai];if(typeof sn!="string"&&!Array.isArray(sn)){for(const li in sn)if(li!=="default"&&!(li in xi)){const xr=Object.getOwnPropertyDescriptor(sn,li);xr&&Object.defineProperty(xi,li,xr.get?xr:{enumerable:!0,get:()=>sn[li]})}}}return Object.freeze(Object.defineProperty(xi,Symbol.toStringTag,{value:"Module"}))}var es={exports:{}};/*! For license information please see index.js.LICENSE.txt */var xd=es.exports,Up;function _d(){return Up||(Up=1,(function(xi,Oi){(function(Ai,sn){xi.exports=sn()})(typeof self<"u"?self:xd,(()=>(()=>{var Ai={37233:(E,e,r)=>{E.exports={schemas:{"2.0.0":r(4023),"2.1.0":r(88520),"2.2.0":r(83105),"2.3.0":r(11306),"2.4.0":r(64939),"2.5.0":r(55708),"2.6.0":r(11669),"3.0.0":r(64292),"3.1.0":r(28243)},schemasWithoutId:{"2.0.0":r(69486),"2.1.0":r(61401),"2.2.0":r(30192),"2.3.0":r(85323),"2.4.0":r(45002),"2.5.0":r(85765),"2.6.0":r(94220),"3.0.0":r(95309),"3.1.0":r(88178)}}},64868:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});const i=r(8839);e.resolveFile=function(n){return new Promise(((c,f)=>{const t=n.href();i.readFile(t,"utf8",((d,l)=>{d?f(d):c(l)}))}))}},71602:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});const i=r(55478),n=r(98203);class c extends Error{constructor(){super(...arguments),this.name="OpenError"}}e.OpenError=c;class f extends Error{constructor(){super(...arguments),this.name="ReadError"}}function t(d,l={}){return i.__awaiter(this,void 0,void 0,(function*(){const h=d.href(),u=yield n.default(h,l);if(u.ok)return u.text();throw u.status===404?new c(`Page not found: ${h}`):new f(`${u.status} ${u.statusText}`)}))}e.NetworkError=f,e.resolveHttp=t,e.createResolveHttp=function(d={}){return l=>t(l,d)}},54668:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});var i=r(71602);e.createResolveHttp=i.createResolveHttp,e.resolveHttp=i.resolveHttp,e.NetworkError=i.NetworkError,e.OpenError=i.OpenError;var n=r(64868);e.resolveFile=n.resolveFile},30924:(E,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Cache=void 0,e.Cache=class{constructor(r={}){this._stats={hits:0,misses:0},this._data={},this._stdTTL=r.stdTTL}get stats(){return this._stats}get(r){const i=this._data[r];if(i&&(!this._stdTTL||new Date().getTime()-i.ts<this._stdTTL))return this._stats.hits+=1,i.val;this._stats.misses+=1}set(r,i){this._data[r]={ts:new Date().getTime(),val:i}}has(r){return r in this._data}purge(){Object.assign(this._stats,{hits:0,misses:0}),this._data={}}}},91226:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ResolveCrawler=void 0;const i=r(46734),n=r(30524),c=r(46123),f=r(19899);e.ResolveCrawler=class{constructor(t,d,l){this._resolved=l,this.resolvers=[],this.pointerGraph=new n.DepGraph({circular:!0}),this.pointerStemGraph=new n.DepGraph({circular:!0}),this.computeGraph=(h,u=[],j="#",b=[])=>{j||(j="#");let O=this._runner.computeRef({val:h,jsonPointer:j,pointerStack:b});if(O!==void 0)this._resolveRef({ref:O,val:h,parentPath:u,pointerStack:b,parentPointer:j,cacheKey:j,resolvingPointer:this.jsonPointer});else if(typeof h=="object")for(const x in h){if(!h.hasOwnProperty(x))continue;const _=h[x],g=f.addToJSONPointer(j,x);O=this._runner.computeRef({key:x,val:_,jsonPointer:g,pointerStack:b}),u.push(x),O!==void 0?this._resolveRef({ref:O,val:_,parentPath:u,parentPointer:g,pointerStack:b,cacheKey:f.uriToJSONPointer(O),resolvingPointer:this.jsonPointer}):typeof _=="object"&&this.computeGraph(_,u,g,b),u.pop()}},this._resolveRef=h=>{const{pointerStack:u,parentPath:j,parentPointer:b,ref:O}=h;if(f.uriIsJSONPointer(O)){if(this._runner.dereferenceInline){const x=f.uriToJSONPointer(O);let _;try{_=(0,i.pointerToPath)(x)}catch{return void this._resolved.errors.push({code:"PARSE_POINTER",message:`'${O}' JSON pointer is invalid`,uri:this._runner.baseUri,uriStack:this._runner.uriStack,pointerStack:[],path:[]})}let g=_.length>0;for(const D in _)if(j[D]!==_[D]){g=!1;break}if(g)return;this.pointerStemGraph.hasNode(x)||this.pointerStemGraph.addNode(x);let S="#",R="";for(let D=0;D<j.length;D++){const N=j[D];if(N===_[D])S+=`/${N}`;else{R+=`/${N}`;const w=`${S}${R}`;w!==b&&w!==x&&(this.pointerStemGraph.hasNode(w)||this.pointerStemGraph.addNode(w),this.pointerStemGraph.addDependency(w,x))}}this.pointerGraph.hasNode(b)||this.pointerGraph.addNode(b),this.pointerGraph.hasNode(x)||this.pointerGraph.addNode(x);const q=`${this._runner.baseUri.toString()}${x}`;this._runner.graph.hasNode(q)||this._runner.graph.addNode(q,{refMap:{}}),this._runner.root!==q&&this._runner.graph.addDependency(this._runner.root,q),this.pointerGraph.addDependency(b,x),this.jsonPointer&&(u.length<2||!u.includes(x))&&(u.push(x),this.computeGraph(c(this._runner.source,_),_,x,u),u.pop())}}else{const x=O.toString();this._runner.graph.hasNode(x)||this._runner.graph.addNode(x,{refMap:{}}),this._runner.root!==x&&this._runner.graph.addDependency(this._runner.root,x),this._runner.dereferenceRemote&&!this._runner.atMaxUriDepth()&&this.resolvers.push(this._runner.lookupAndResolveUri(h))}},this.jsonPointer=d,this._runner=t}}},16586:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultGetRef=e.Cache=void 0,r(70824).__exportStar(r(65582),e);var i=r(30924);Object.defineProperty(e,"Cache",{enumerable:!0,get:function(){return i.Cache}});var n=r(49850);Object.defineProperty(e,"defaultGetRef",{enumerable:!0,get:function(){return n.defaultGetRef}})},65582:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Resolver=void 0;const i=r(30524),n=r(30924),c=r(49850);e.Resolver=class{constructor(f={}){this.ctx={},this.uriCache=f.uriCache||new n.Cache,this.resolvers=f.resolvers||{},this.getRef=f.getRef,this.transformRef=f.transformRef,this.dereferenceInline=f.dereferenceInline===void 0||f.dereferenceInline,this.dereferenceRemote=f.dereferenceRemote===void 0||f.dereferenceRemote,this.parseResolveResult=f.parseResolveResult,this.transformDereferenceResult=f.transformDereferenceResult,this.ctx=f.ctx}resolve(f,t={}){const d=new i.DepGraph({circular:!0});return new c.ResolveRunner(f,d,Object.assign(Object.assign({uriCache:this.uriCache,resolvers:this.resolvers,getRef:this.getRef,transformRef:this.transformRef,dereferenceInline:this.dereferenceInline,dereferenceRemote:this.dereferenceRemote,parseResolveResult:this.parseResolveResult,transformDereferenceResult:this.transformDereferenceResult},t),{ctx:Object.assign({},this.ctx||{},t.ctx||{})})).resolve(t)}}},49850:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ResolveRunner=e.defaultGetRef=void 0;const i=r(70824),n=r(46734),c=r(98136),f=r(30524),t=r(79725),d=r(46123),l=r(41263),h=r(99472),u=r(99960),j=r(30924),b=r(91226),O=r(19899),x=r(2940);let _=0;e.defaultGetRef=(S,R)=>{if(R&&typeof R=="object"&&typeof R.$ref=="string")return R.$ref};class g{constructor(R,q=new f.DepGraph({circular:!0}),D={}){this.ctx={},this.computeRef=T=>{const z=this.getRef(T.key,T.val);if(z===void 0)return;let J=new u.ExtendedURI(z);if(z[0]!=="#")if(this.isFile(J)){let F=J.toString();J.is("absolute")||(F=this.baseUri.toString()?(0,c.join)((0,c.dirname)(this.baseUri.toString()),(0,c.stripRoot)(F)):""),F&&(J=new h((0,c.toFSPath)(F)).fragment(J.fragment()))}else(J.scheme().includes("http")||J.scheme()===""&&this.baseUri.scheme().includes("http"))&&this.baseUri.authority()!==""&&J.authority()===""&&(J=J.absoluteTo(this.baseUri));return String(J).length>0&&this.isFile(this.baseUri)&&this.isFile(J)&&this.baseUri.path()===J.path()&&(J=new u.ExtendedURI(`#${J.fragment()}`)),this.transformRef?this.transformRef(Object.assign(Object.assign({},T),{ref:J,uri:this.baseUri}),this.ctx):J},this.atMaxUriDepth=()=>this.uriStack.length>=100,this.lookupUri=T=>i.__awaiter(this,void 0,void 0,(function*(){const{ref:z}=T;let J=z.scheme();!this.resolvers[J]&&this.isFile(z)&&(J="file");const F=this.resolvers[J];if(!F)throw new Error(`No resolver defined for scheme '${z.scheme()||"file"}' in ref ${z.toString()}`);let H=yield F.resolve(z,this.ctx);if(this.parseResolveResult)try{H=(yield this.parseResolveResult({uriResult:H,result:H,targetAuthority:z,parentAuthority:this.baseUri,parentPath:T.parentPath,fragment:T.fragment})).result}catch(K){throw new Error(`Could not parse remote reference response for '${z.toString()}' - ${String(K)}`)}return new g(H,this.graph,{depth:this.depth+1,baseUri:z.toString(),root:z,uriStack:this.uriStack,uriCache:this.uriCache,resolvers:this.resolvers,transformRef:this.transformRef,parseResolveResult:this.parseResolveResult,transformDereferenceResult:this.transformDereferenceResult,dereferenceRemote:this.dereferenceRemote,dereferenceInline:this.dereferenceInline,ctx:this.ctx})})),this.lookupAndResolveUri=T=>i.__awaiter(this,void 0,void 0,(function*(){const{val:z,ref:J,resolvingPointer:F,parentPointer:H,pointerStack:K}=T,Y=T.parentPath?T.parentPath.slice():[],ee=this.computeUriCacheKey(J),Z={uri:J,pointerStack:K,targetPath:F===H?[]:Y};if(this.uriStack.includes(ee))return Z.resolved={result:z,graph:this.graph,refMap:{},errors:[],runner:this},Z;{let A;const V=this.baseUri.toString(),Q=V&&this.depth!==0?V:null;try{if(this.atMaxUriDepth())throw new Error(`Max uri depth (${this.uriStack.length}) reached. Halting, this is probably a circular loop.`);A=yield this.lookupUri({ref:J.clone().fragment(""),fragment:J.fragment(),cacheKey:ee,parentPath:Y}),Q&&(A.uriStack=A.uriStack.concat(Q))}catch(te){Z.error={code:"RESOLVE_URI",message:String(te),uri:J,uriStack:Q?this.uriStack.concat(Q):this.uriStack,pointerStack:K,path:Y}}if(A&&(Z.resolved=yield A.resolve({jsonPointer:O.uriToJSONPointer(J),parentPath:Y}),Z.resolved.errors.length)){for(const te of Z.resolved.errors)if(te.code==="POINTER_MISSING"&&te.path.join("/")===J.fragment().slice(1)){const W=J.fragment?(0,n.trimStart)(te.path,(0,n.trimStart)(J.fragment(),"/").split("/")):te.path;W&&W.length?l(Z.resolved.result,W,z):Z.resolved.result&&(Z.resolved.result=z)}}}return Z})),this.id=_+=1,this.depth=D.depth||0,this._source=R,this.resolvers=D.resolvers||{};const N=D.baseUri||"";let w=new h(N||"");this.isFile(w)&&(w=new h((0,c.toFSPath)(N))),this.baseUri=w,this.uriStack=D.uriStack||[],this.uriCache=D.uriCache||new j.Cache,this.root=D.root&&D.root.toString()||this.baseUri.toString()||"root",this.graph=q,this.graph.hasNode(this.root)||this.graph.addNode(this.root,{refMap:{},data:this._source}),this.baseUri&&this.depth===0&&this.uriCache.set(this.computeUriCacheKey(this.baseUri),this),this.getRef=D.getRef||e.defaultGetRef,this.transformRef=D.transformRef,this.depth?this.dereferenceInline=!0:this.dereferenceInline=D.dereferenceInline===void 0||D.dereferenceInline,this.dereferenceRemote=D.dereferenceRemote===void 0||D.dereferenceRemote,this.parseResolveResult=D.parseResolveResult,this.transformDereferenceResult=D.transformDereferenceResult,this.ctx=D.ctx,this.lookupUri=x(this.lookupUri,{serializer:this._cacheKeySerializer,cache:{create:()=>this.uriCache}})}get source(){return this._source}resolve(R){return i.__awaiter(this,void 0,void 0,(function*(){const q={result:this.source,graph:this.graph,refMap:{},errors:[],runner:this};let D;const N=R&&R.jsonPointer&&R.jsonPointer.trim();if(N&&N!=="#"&&N!=="#/"){try{D=(0,n.pointerToPath)(N)}catch{return q.errors.push({code:"PARSE_POINTER",message:`'${N}' JSON pointer is invalid`,uri:this.baseUri,uriStack:this.uriStack,pointerStack:[],path:[]}),q}q.result=d(q.result,D)}if(q.result===void 0)return q.errors.push({code:"POINTER_MISSING",message:`'${N}' does not exist @ '${this.baseUri.toString()}'`,uri:this.baseUri,uriStack:this.uriStack,pointerStack:[],path:D||[]}),q;const w=new b.ResolveCrawler(this,N,q);w.computeGraph(q.result,D,N||"");let T=[];if(w.resolvers.length&&(T=yield Promise.all(w.resolvers)),T.length)for(const z of T){let J=z.targetPath;J.length||(J=D||[]),q.refMap[String(this.baseUri.clone().fragment((0,n.pathToPointer)(J)))]=String(z.uri),this._setGraphNodeEdge(String(this.root),(0,n.pathToPointer)(J),String(z.uri)),z.error&&q.errors.push(z.error),z.resolved&&(z.resolved.errors&&(q.errors=q.errors.concat(z.resolved.errors)),z.resolved.result!==void 0&&(this._source=(0,t.default)(this._source,(F=>{if(z.resolved){if(!J.length)return z.resolved.result;l(F,J,z.resolved.result),this._setGraphNodeData(String(z.uri),z.resolved.result)}}))))}if(typeof this._source=="object"?(this.dereferenceInline&&(this._source=(0,t.default)(this._source,(z=>{let J=[];try{J=w.pointerGraph.overallOrder();for(const F of J){const H=w.pointerGraph.dependantsOf(F);if(!H.length)continue;const K=(0,n.pointerToPath)(F),Y=K.length===0?(0,t.original)(z):d(z,K);for(const ee of H){let Z;const A=(0,n.pointerToPath)(ee),V=w.pointerStemGraph.dependenciesOf(F);for(const Q of V)if((0,n.startsWith)(A,(0,n.pointerToPath)(Q))){Z=!0;break}Z||(q.refMap[(0,n.pathToPointer)(A)]=(0,n.pathToPointer)(K),this._setGraphNodeEdge(this.root,(0,n.pathToPointer)(A),(0,n.pathToPointer)(K)),Y!==void 0?(l(z,A,Y),this._setGraphNodeData((0,n.pathToPointer)(K),Y)):q.errors.push({code:"POINTER_MISSING",message:`'${F}' does not exist`,path:A,uri:this.baseUri,uriStack:this.uriStack,pointerStack:[]}))}}}catch{}}))),q.result=D?d(this._source,D):this._source):q.result=this._source,this.transformDereferenceResult){const z=new h(N||"");try{const{result:J,error:F}=yield this.transformDereferenceResult({source:this.source,result:q.result,targetAuthority:z,parentAuthority:this.baseUri,parentPath:R&&R.parentPath||[],fragment:z.fragment()});if(q.result=J,F)throw new Error(`Could not transform dereferenced result for '${z.toString()}' - ${String(F)}`)}catch(J){q.errors.push({code:"TRANSFORM_DEREFERENCED",message:`Error: Could not transform dereferenced result for '${this.baseUri.toString()}${z.fragment()!==""?`#${z.fragment()}`:""}' - ${String(J)}`,uri:z,uriStack:this.uriStack,pointerStack:[],path:D})}}return this._setGraphNodeData(this.root,this._source),q}))}_cacheKeySerializer(R){return R&&typeof R=="object"&&R.cacheKey?R.cacheKey:JSON.stringify(arguments)}computeUriCacheKey(R){return R.clone().fragment("").toString()}isFile(R){const q=R.scheme();if(q==="file")return!0;if(q){if(!this.resolvers[q])return!0}else{if(R.toString().charAt(0)==="/")return!0;if(this.baseUri){const D=this.baseUri.scheme();return!D||D==="file"||!this.resolvers[D]}}return!1}_setGraphNodeData(R,q){if(!this.graph.hasNode(R))return;const D=this.graph.getNodeData(R)||{};D.data=q,this.graph.setNodeData(R,D)}_setGraphNodeEdge(R,q,D){if(!this.graph.hasNode(R))return;const N=this.graph.getNodeData(R)||{};N.refMap=N.refMap||{},N.refMap[q]=D,this.graph.setNodeData(R,N)}}e.ResolveRunner=g},99960:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ExtendedURI=void 0;const i=r(99472);e.ExtendedURI=class extends i{constructor(n){super(n),this._value=n.trim()}get length(){return this._value.length}}},19899:(E,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.uriIsJSONPointer=e.uriToJSONPointer=e.addToJSONPointer=void 0;const r=(i,n,c)=>{const f=i.toString();let t="",d=f,l=0,h=d.indexOf(n);for(;h>-1;)t+=f.substring(l,l+h)+c,d=d.substring(h+n.length,d.length),l+=h+n.length,h=d.indexOf(n);return d.length>0&&(t+=f.substring(f.length-d.length,f.length)),t};e.addToJSONPointer=(i,n)=>{return`${i}/${c=n,r(r(c,"~","~0"),"/","~1")}`;var c},e.uriToJSONPointer=i=>"length"in i&&i.length===0?"":i.fragment()!==""?`#${i.fragment()}`:i.href()===""?"#":"",e.uriIsJSONPointer=i=>(!("length"in i)||i.length>0)&&i.path()===""},46734:(E,e,r)=>{r.r(e),r.d(e,{BUNDLE_ROOT:()=>Ee,ERRORS_ROOT:()=>Fe,KEYS:()=>ut,bundleTarget:()=>Ue,decodePointer:()=>a,decodePointerFragment:()=>qe,decodePointerUriFragment:()=>a,decycle:()=>_e,encodePointer:()=>It,encodePointerFragment:()=>Y,encodePointerUriFragment:()=>A,encodeUriPointer:()=>Z,extractPointerFromRef:()=>_t,extractSourceFromRef:()=>U,getFirstPrimitiveProperty:()=>Wt,getJsonPathForPosition:()=>X,getLastPathSegment:()=>he,getLocationForJsonPath:()=>ke,hasRef:()=>F,isExternalRef:()=>I,isLocalRef:()=>H,isPlainObject:()=>w,parseTree:()=>Qe,parseWithPointers:()=>Ae,pathToPointer:()=>V,pointerToPath:()=>s,remapRefs:()=>P,renameObjectKey:()=>Te,reparentBundleTarget:()=>Ce,resolveExternalRef:()=>ot,resolveExternalRefWithLocation:()=>Oe,resolveInlineRef:()=>B,resolveInlineRefWithLocation:()=>pe,safeParse:()=>Ve,safeStringify:()=>ze,startsWith:()=>Ye,stringify:()=>oe,toPropertyPath:()=>tt,trapAccess:()=>mt,traverse:()=>p,trimStart:()=>Ke});var i,n=r(45250),c=r(98136);function f(ne,je){je===void 0&&(je=!1);var ge=ne.length,ce=0,ye="",Ze=0,it=16,de=0,yt=0,kt=0,Bt=0,Ot=0;function lt(Ct,Mt){for(var At=0,He=0;At<Ct;){var Lt=ne.charCodeAt(ce);if(Lt>=48&&Lt<=57)He=16*He+Lt-48;else if(Lt>=65&&Lt<=70)He=16*He+Lt-65+10;else{if(!(Lt>=97&&Lt<=102))break;He=16*He+Lt-97+10}ce++,At++}return At<Ct&&(He=-1),He}function $i(){if(ye="",Ot=0,Ze=ce,yt=de,Bt=kt,ce>=ge)return Ze=ge,it=17;var Ct=ne.charCodeAt(ce);if(t(Ct)){do ce++,ye+=String.fromCharCode(Ct),Ct=ne.charCodeAt(ce);while(t(Ct));return it=15}if(d(Ct))return ce++,ye+=String.fromCharCode(Ct),Ct===13&&ne.charCodeAt(ce)===10&&(ce++,ye+=`
|
|
1
|
+
"use strict";var bd=Object.defineProperty;var Vp=xi=>{throw TypeError(xi)};var vd=(xi,Oi,Ai)=>Oi in xi?bd(xi,Oi,{enumerable:!0,configurable:!0,writable:!0,value:Ai}):xi[Oi]=Ai;var Np=(xi,Oi,Ai)=>vd(xi,typeof Oi!="symbol"?Oi+"":Oi,Ai),Fp=(xi,Oi,Ai)=>Oi.has(xi)||Vp("Cannot "+Ai);var ir=(xi,Oi,Ai)=>(Fp(xi,Oi,"read from private field"),Ai?Ai.call(xi):Oi.get(xi)),so=(xi,Oi,Ai)=>Oi.has(xi)?Vp("Cannot add the same private member more than once"):Oi instanceof WeakSet?Oi.add(xi):Oi.set(xi,Ai),da=(xi,Oi,Ai,sn)=>(Fp(xi,Oi,"write to private field"),sn?sn.call(xi,Ai):Oi.set(xi,Ai),Ai);const jd=require("./index-gn5KpvCL.cjs");function $d(xi,Oi){for(var Ai=0;Ai<Oi.length;Ai++){const sn=Oi[Ai];if(typeof sn!="string"&&!Array.isArray(sn)){for(const li in sn)if(li!=="default"&&!(li in xi)){const xr=Object.getOwnPropertyDescriptor(sn,li);xr&&Object.defineProperty(xi,li,xr.get?xr:{enumerable:!0,get:()=>sn[li]})}}}return Object.freeze(Object.defineProperty(xi,Symbol.toStringTag,{value:"Module"}))}var es={exports:{}};/*! For license information please see index.js.LICENSE.txt */var xd=es.exports,Up;function _d(){return Up||(Up=1,(function(xi,Oi){(function(Ai,sn){xi.exports=sn()})(typeof self<"u"?self:xd,(()=>(()=>{var Ai={37233:(E,e,r)=>{E.exports={schemas:{"2.0.0":r(4023),"2.1.0":r(88520),"2.2.0":r(83105),"2.3.0":r(11306),"2.4.0":r(64939),"2.5.0":r(55708),"2.6.0":r(11669),"3.0.0":r(64292),"3.1.0":r(28243)},schemasWithoutId:{"2.0.0":r(69486),"2.1.0":r(61401),"2.2.0":r(30192),"2.3.0":r(85323),"2.4.0":r(45002),"2.5.0":r(85765),"2.6.0":r(94220),"3.0.0":r(95309),"3.1.0":r(88178)}}},64868:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});const i=r(8839);e.resolveFile=function(n){return new Promise(((c,f)=>{const t=n.href();i.readFile(t,"utf8",((d,l)=>{d?f(d):c(l)}))}))}},71602:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});const i=r(55478),n=r(98203);class c extends Error{constructor(){super(...arguments),this.name="OpenError"}}e.OpenError=c;class f extends Error{constructor(){super(...arguments),this.name="ReadError"}}function t(d,l={}){return i.__awaiter(this,void 0,void 0,(function*(){const h=d.href(),u=yield n.default(h,l);if(u.ok)return u.text();throw u.status===404?new c(`Page not found: ${h}`):new f(`${u.status} ${u.statusText}`)}))}e.NetworkError=f,e.resolveHttp=t,e.createResolveHttp=function(d={}){return l=>t(l,d)}},54668:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});var i=r(71602);e.createResolveHttp=i.createResolveHttp,e.resolveHttp=i.resolveHttp,e.NetworkError=i.NetworkError,e.OpenError=i.OpenError;var n=r(64868);e.resolveFile=n.resolveFile},30924:(E,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Cache=void 0,e.Cache=class{constructor(r={}){this._stats={hits:0,misses:0},this._data={},this._stdTTL=r.stdTTL}get stats(){return this._stats}get(r){const i=this._data[r];if(i&&(!this._stdTTL||new Date().getTime()-i.ts<this._stdTTL))return this._stats.hits+=1,i.val;this._stats.misses+=1}set(r,i){this._data[r]={ts:new Date().getTime(),val:i}}has(r){return r in this._data}purge(){Object.assign(this._stats,{hits:0,misses:0}),this._data={}}}},91226:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ResolveCrawler=void 0;const i=r(46734),n=r(30524),c=r(46123),f=r(19899);e.ResolveCrawler=class{constructor(t,d,l){this._resolved=l,this.resolvers=[],this.pointerGraph=new n.DepGraph({circular:!0}),this.pointerStemGraph=new n.DepGraph({circular:!0}),this.computeGraph=(h,u=[],j="#",b=[])=>{j||(j="#");let O=this._runner.computeRef({val:h,jsonPointer:j,pointerStack:b});if(O!==void 0)this._resolveRef({ref:O,val:h,parentPath:u,pointerStack:b,parentPointer:j,cacheKey:j,resolvingPointer:this.jsonPointer});else if(typeof h=="object")for(const x in h){if(!h.hasOwnProperty(x))continue;const _=h[x],g=f.addToJSONPointer(j,x);O=this._runner.computeRef({key:x,val:_,jsonPointer:g,pointerStack:b}),u.push(x),O!==void 0?this._resolveRef({ref:O,val:_,parentPath:u,parentPointer:g,pointerStack:b,cacheKey:f.uriToJSONPointer(O),resolvingPointer:this.jsonPointer}):typeof _=="object"&&this.computeGraph(_,u,g,b),u.pop()}},this._resolveRef=h=>{const{pointerStack:u,parentPath:j,parentPointer:b,ref:O}=h;if(f.uriIsJSONPointer(O)){if(this._runner.dereferenceInline){const x=f.uriToJSONPointer(O);let _;try{_=(0,i.pointerToPath)(x)}catch{return void this._resolved.errors.push({code:"PARSE_POINTER",message:`'${O}' JSON pointer is invalid`,uri:this._runner.baseUri,uriStack:this._runner.uriStack,pointerStack:[],path:[]})}let g=_.length>0;for(const D in _)if(j[D]!==_[D]){g=!1;break}if(g)return;this.pointerStemGraph.hasNode(x)||this.pointerStemGraph.addNode(x);let S="#",R="";for(let D=0;D<j.length;D++){const N=j[D];if(N===_[D])S+=`/${N}`;else{R+=`/${N}`;const w=`${S}${R}`;w!==b&&w!==x&&(this.pointerStemGraph.hasNode(w)||this.pointerStemGraph.addNode(w),this.pointerStemGraph.addDependency(w,x))}}this.pointerGraph.hasNode(b)||this.pointerGraph.addNode(b),this.pointerGraph.hasNode(x)||this.pointerGraph.addNode(x);const q=`${this._runner.baseUri.toString()}${x}`;this._runner.graph.hasNode(q)||this._runner.graph.addNode(q,{refMap:{}}),this._runner.root!==q&&this._runner.graph.addDependency(this._runner.root,q),this.pointerGraph.addDependency(b,x),this.jsonPointer&&(u.length<2||!u.includes(x))&&(u.push(x),this.computeGraph(c(this._runner.source,_),_,x,u),u.pop())}}else{const x=O.toString();this._runner.graph.hasNode(x)||this._runner.graph.addNode(x,{refMap:{}}),this._runner.root!==x&&this._runner.graph.addDependency(this._runner.root,x),this._runner.dereferenceRemote&&!this._runner.atMaxUriDepth()&&this.resolvers.push(this._runner.lookupAndResolveUri(h))}},this.jsonPointer=d,this._runner=t}}},16586:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultGetRef=e.Cache=void 0,r(70824).__exportStar(r(65582),e);var i=r(30924);Object.defineProperty(e,"Cache",{enumerable:!0,get:function(){return i.Cache}});var n=r(49850);Object.defineProperty(e,"defaultGetRef",{enumerable:!0,get:function(){return n.defaultGetRef}})},65582:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Resolver=void 0;const i=r(30524),n=r(30924),c=r(49850);e.Resolver=class{constructor(f={}){this.ctx={},this.uriCache=f.uriCache||new n.Cache,this.resolvers=f.resolvers||{},this.getRef=f.getRef,this.transformRef=f.transformRef,this.dereferenceInline=f.dereferenceInline===void 0||f.dereferenceInline,this.dereferenceRemote=f.dereferenceRemote===void 0||f.dereferenceRemote,this.parseResolveResult=f.parseResolveResult,this.transformDereferenceResult=f.transformDereferenceResult,this.ctx=f.ctx}resolve(f,t={}){const d=new i.DepGraph({circular:!0});return new c.ResolveRunner(f,d,Object.assign(Object.assign({uriCache:this.uriCache,resolvers:this.resolvers,getRef:this.getRef,transformRef:this.transformRef,dereferenceInline:this.dereferenceInline,dereferenceRemote:this.dereferenceRemote,parseResolveResult:this.parseResolveResult,transformDereferenceResult:this.transformDereferenceResult},t),{ctx:Object.assign({},this.ctx||{},t.ctx||{})})).resolve(t)}}},49850:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ResolveRunner=e.defaultGetRef=void 0;const i=r(70824),n=r(46734),c=r(98136),f=r(30524),t=r(79725),d=r(46123),l=r(41263),h=r(99472),u=r(99960),j=r(30924),b=r(91226),O=r(19899),x=r(2940);let _=0;e.defaultGetRef=(S,R)=>{if(R&&typeof R=="object"&&typeof R.$ref=="string")return R.$ref};class g{constructor(R,q=new f.DepGraph({circular:!0}),D={}){this.ctx={},this.computeRef=T=>{const z=this.getRef(T.key,T.val);if(z===void 0)return;let J=new u.ExtendedURI(z);if(z[0]!=="#")if(this.isFile(J)){let F=J.toString();J.is("absolute")||(F=this.baseUri.toString()?(0,c.join)((0,c.dirname)(this.baseUri.toString()),(0,c.stripRoot)(F)):""),F&&(J=new h((0,c.toFSPath)(F)).fragment(J.fragment()))}else(J.scheme().includes("http")||J.scheme()===""&&this.baseUri.scheme().includes("http"))&&this.baseUri.authority()!==""&&J.authority()===""&&(J=J.absoluteTo(this.baseUri));return String(J).length>0&&this.isFile(this.baseUri)&&this.isFile(J)&&this.baseUri.path()===J.path()&&(J=new u.ExtendedURI(`#${J.fragment()}`)),this.transformRef?this.transformRef(Object.assign(Object.assign({},T),{ref:J,uri:this.baseUri}),this.ctx):J},this.atMaxUriDepth=()=>this.uriStack.length>=100,this.lookupUri=T=>i.__awaiter(this,void 0,void 0,(function*(){const{ref:z}=T;let J=z.scheme();!this.resolvers[J]&&this.isFile(z)&&(J="file");const F=this.resolvers[J];if(!F)throw new Error(`No resolver defined for scheme '${z.scheme()||"file"}' in ref ${z.toString()}`);let H=yield F.resolve(z,this.ctx);if(this.parseResolveResult)try{H=(yield this.parseResolveResult({uriResult:H,result:H,targetAuthority:z,parentAuthority:this.baseUri,parentPath:T.parentPath,fragment:T.fragment})).result}catch(K){throw new Error(`Could not parse remote reference response for '${z.toString()}' - ${String(K)}`)}return new g(H,this.graph,{depth:this.depth+1,baseUri:z.toString(),root:z,uriStack:this.uriStack,uriCache:this.uriCache,resolvers:this.resolvers,transformRef:this.transformRef,parseResolveResult:this.parseResolveResult,transformDereferenceResult:this.transformDereferenceResult,dereferenceRemote:this.dereferenceRemote,dereferenceInline:this.dereferenceInline,ctx:this.ctx})})),this.lookupAndResolveUri=T=>i.__awaiter(this,void 0,void 0,(function*(){const{val:z,ref:J,resolvingPointer:F,parentPointer:H,pointerStack:K}=T,Y=T.parentPath?T.parentPath.slice():[],ee=this.computeUriCacheKey(J),Z={uri:J,pointerStack:K,targetPath:F===H?[]:Y};if(this.uriStack.includes(ee))return Z.resolved={result:z,graph:this.graph,refMap:{},errors:[],runner:this},Z;{let A;const V=this.baseUri.toString(),Q=V&&this.depth!==0?V:null;try{if(this.atMaxUriDepth())throw new Error(`Max uri depth (${this.uriStack.length}) reached. Halting, this is probably a circular loop.`);A=yield this.lookupUri({ref:J.clone().fragment(""),fragment:J.fragment(),cacheKey:ee,parentPath:Y}),Q&&(A.uriStack=A.uriStack.concat(Q))}catch(te){Z.error={code:"RESOLVE_URI",message:String(te),uri:J,uriStack:Q?this.uriStack.concat(Q):this.uriStack,pointerStack:K,path:Y}}if(A&&(Z.resolved=yield A.resolve({jsonPointer:O.uriToJSONPointer(J),parentPath:Y}),Z.resolved.errors.length)){for(const te of Z.resolved.errors)if(te.code==="POINTER_MISSING"&&te.path.join("/")===J.fragment().slice(1)){const W=J.fragment?(0,n.trimStart)(te.path,(0,n.trimStart)(J.fragment(),"/").split("/")):te.path;W&&W.length?l(Z.resolved.result,W,z):Z.resolved.result&&(Z.resolved.result=z)}}}return Z})),this.id=_+=1,this.depth=D.depth||0,this._source=R,this.resolvers=D.resolvers||{};const N=D.baseUri||"";let w=new h(N||"");this.isFile(w)&&(w=new h((0,c.toFSPath)(N))),this.baseUri=w,this.uriStack=D.uriStack||[],this.uriCache=D.uriCache||new j.Cache,this.root=D.root&&D.root.toString()||this.baseUri.toString()||"root",this.graph=q,this.graph.hasNode(this.root)||this.graph.addNode(this.root,{refMap:{},data:this._source}),this.baseUri&&this.depth===0&&this.uriCache.set(this.computeUriCacheKey(this.baseUri),this),this.getRef=D.getRef||e.defaultGetRef,this.transformRef=D.transformRef,this.depth?this.dereferenceInline=!0:this.dereferenceInline=D.dereferenceInline===void 0||D.dereferenceInline,this.dereferenceRemote=D.dereferenceRemote===void 0||D.dereferenceRemote,this.parseResolveResult=D.parseResolveResult,this.transformDereferenceResult=D.transformDereferenceResult,this.ctx=D.ctx,this.lookupUri=x(this.lookupUri,{serializer:this._cacheKeySerializer,cache:{create:()=>this.uriCache}})}get source(){return this._source}resolve(R){return i.__awaiter(this,void 0,void 0,(function*(){const q={result:this.source,graph:this.graph,refMap:{},errors:[],runner:this};let D;const N=R&&R.jsonPointer&&R.jsonPointer.trim();if(N&&N!=="#"&&N!=="#/"){try{D=(0,n.pointerToPath)(N)}catch{return q.errors.push({code:"PARSE_POINTER",message:`'${N}' JSON pointer is invalid`,uri:this.baseUri,uriStack:this.uriStack,pointerStack:[],path:[]}),q}q.result=d(q.result,D)}if(q.result===void 0)return q.errors.push({code:"POINTER_MISSING",message:`'${N}' does not exist @ '${this.baseUri.toString()}'`,uri:this.baseUri,uriStack:this.uriStack,pointerStack:[],path:D||[]}),q;const w=new b.ResolveCrawler(this,N,q);w.computeGraph(q.result,D,N||"");let T=[];if(w.resolvers.length&&(T=yield Promise.all(w.resolvers)),T.length)for(const z of T){let J=z.targetPath;J.length||(J=D||[]),q.refMap[String(this.baseUri.clone().fragment((0,n.pathToPointer)(J)))]=String(z.uri),this._setGraphNodeEdge(String(this.root),(0,n.pathToPointer)(J),String(z.uri)),z.error&&q.errors.push(z.error),z.resolved&&(z.resolved.errors&&(q.errors=q.errors.concat(z.resolved.errors)),z.resolved.result!==void 0&&(this._source=(0,t.default)(this._source,(F=>{if(z.resolved){if(!J.length)return z.resolved.result;l(F,J,z.resolved.result),this._setGraphNodeData(String(z.uri),z.resolved.result)}}))))}if(typeof this._source=="object"?(this.dereferenceInline&&(this._source=(0,t.default)(this._source,(z=>{let J=[];try{J=w.pointerGraph.overallOrder();for(const F of J){const H=w.pointerGraph.dependantsOf(F);if(!H.length)continue;const K=(0,n.pointerToPath)(F),Y=K.length===0?(0,t.original)(z):d(z,K);for(const ee of H){let Z;const A=(0,n.pointerToPath)(ee),V=w.pointerStemGraph.dependenciesOf(F);for(const Q of V)if((0,n.startsWith)(A,(0,n.pointerToPath)(Q))){Z=!0;break}Z||(q.refMap[(0,n.pathToPointer)(A)]=(0,n.pathToPointer)(K),this._setGraphNodeEdge(this.root,(0,n.pathToPointer)(A),(0,n.pathToPointer)(K)),Y!==void 0?(l(z,A,Y),this._setGraphNodeData((0,n.pathToPointer)(K),Y)):q.errors.push({code:"POINTER_MISSING",message:`'${F}' does not exist`,path:A,uri:this.baseUri,uriStack:this.uriStack,pointerStack:[]}))}}}catch{}}))),q.result=D?d(this._source,D):this._source):q.result=this._source,this.transformDereferenceResult){const z=new h(N||"");try{const{result:J,error:F}=yield this.transformDereferenceResult({source:this.source,result:q.result,targetAuthority:z,parentAuthority:this.baseUri,parentPath:R&&R.parentPath||[],fragment:z.fragment()});if(q.result=J,F)throw new Error(`Could not transform dereferenced result for '${z.toString()}' - ${String(F)}`)}catch(J){q.errors.push({code:"TRANSFORM_DEREFERENCED",message:`Error: Could not transform dereferenced result for '${this.baseUri.toString()}${z.fragment()!==""?`#${z.fragment()}`:""}' - ${String(J)}`,uri:z,uriStack:this.uriStack,pointerStack:[],path:D})}}return this._setGraphNodeData(this.root,this._source),q}))}_cacheKeySerializer(R){return R&&typeof R=="object"&&R.cacheKey?R.cacheKey:JSON.stringify(arguments)}computeUriCacheKey(R){return R.clone().fragment("").toString()}isFile(R){const q=R.scheme();if(q==="file")return!0;if(q){if(!this.resolvers[q])return!0}else{if(R.toString().charAt(0)==="/")return!0;if(this.baseUri){const D=this.baseUri.scheme();return!D||D==="file"||!this.resolvers[D]}}return!1}_setGraphNodeData(R,q){if(!this.graph.hasNode(R))return;const D=this.graph.getNodeData(R)||{};D.data=q,this.graph.setNodeData(R,D)}_setGraphNodeEdge(R,q,D){if(!this.graph.hasNode(R))return;const N=this.graph.getNodeData(R)||{};N.refMap=N.refMap||{},N.refMap[q]=D,this.graph.setNodeData(R,N)}}e.ResolveRunner=g},99960:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ExtendedURI=void 0;const i=r(99472);e.ExtendedURI=class extends i{constructor(n){super(n),this._value=n.trim()}get length(){return this._value.length}}},19899:(E,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.uriIsJSONPointer=e.uriToJSONPointer=e.addToJSONPointer=void 0;const r=(i,n,c)=>{const f=i.toString();let t="",d=f,l=0,h=d.indexOf(n);for(;h>-1;)t+=f.substring(l,l+h)+c,d=d.substring(h+n.length,d.length),l+=h+n.length,h=d.indexOf(n);return d.length>0&&(t+=f.substring(f.length-d.length,f.length)),t};e.addToJSONPointer=(i,n)=>{return`${i}/${c=n,r(r(c,"~","~0"),"/","~1")}`;var c},e.uriToJSONPointer=i=>"length"in i&&i.length===0?"":i.fragment()!==""?`#${i.fragment()}`:i.href()===""?"#":"",e.uriIsJSONPointer=i=>(!("length"in i)||i.length>0)&&i.path()===""},46734:(E,e,r)=>{r.r(e),r.d(e,{BUNDLE_ROOT:()=>Ee,ERRORS_ROOT:()=>Fe,KEYS:()=>ut,bundleTarget:()=>Ue,decodePointer:()=>a,decodePointerFragment:()=>qe,decodePointerUriFragment:()=>a,decycle:()=>_e,encodePointer:()=>It,encodePointerFragment:()=>Y,encodePointerUriFragment:()=>A,encodeUriPointer:()=>Z,extractPointerFromRef:()=>_t,extractSourceFromRef:()=>U,getFirstPrimitiveProperty:()=>Wt,getJsonPathForPosition:()=>X,getLastPathSegment:()=>he,getLocationForJsonPath:()=>ke,hasRef:()=>F,isExternalRef:()=>I,isLocalRef:()=>H,isPlainObject:()=>w,parseTree:()=>Qe,parseWithPointers:()=>Ae,pathToPointer:()=>V,pointerToPath:()=>s,remapRefs:()=>P,renameObjectKey:()=>Te,reparentBundleTarget:()=>Ce,resolveExternalRef:()=>ot,resolveExternalRefWithLocation:()=>Oe,resolveInlineRef:()=>B,resolveInlineRefWithLocation:()=>pe,safeParse:()=>Ve,safeStringify:()=>ze,startsWith:()=>Ye,stringify:()=>oe,toPropertyPath:()=>tt,trapAccess:()=>mt,traverse:()=>p,trimStart:()=>Ke});var i,n=r(45250),c=r(98136);function f(ne,je){je===void 0&&(je=!1);var ge=ne.length,ce=0,ye="",Ze=0,it=16,de=0,yt=0,kt=0,Bt=0,Ot=0;function lt(Ct,Mt){for(var At=0,He=0;At<Ct;){var Lt=ne.charCodeAt(ce);if(Lt>=48&&Lt<=57)He=16*He+Lt-48;else if(Lt>=65&&Lt<=70)He=16*He+Lt-65+10;else{if(!(Lt>=97&&Lt<=102))break;He=16*He+Lt-97+10}ce++,At++}return At<Ct&&(He=-1),He}function $i(){if(ye="",Ot=0,Ze=ce,yt=de,Bt=kt,ce>=ge)return Ze=ge,it=17;var Ct=ne.charCodeAt(ce);if(t(Ct)){do ce++,ye+=String.fromCharCode(Ct),Ct=ne.charCodeAt(ce);while(t(Ct));return it=15}if(d(Ct))return ce++,ye+=String.fromCharCode(Ct),Ct===13&&ne.charCodeAt(ce)===10&&(ce++,ye+=`
|
|
2
2
|
`),de++,kt=ce,it=14;switch(Ct){case 123:return ce++,it=1;case 125:return ce++,it=2;case 91:return ce++,it=3;case 93:return ce++,it=4;case 58:return ce++,it=6;case 44:return ce++,it=5;case 34:return ce++,ye=(function(){for(var Vt="",St=ce;;){if(ce>=ge){Vt+=ne.substring(St,ce),Ot=2;break}var fi=ne.charCodeAt(ce);if(fi===34){Vt+=ne.substring(St,ce),ce++;break}if(fi!==92){if(fi>=0&&fi<=31){if(d(fi)){Vt+=ne.substring(St,ce),Ot=2;break}Ot=6}ce++}else{if(Vt+=ne.substring(St,ce),++ce>=ge){Ot=2;break}switch(ne.charCodeAt(ce++)){case 34:Vt+='"';break;case 92:Vt+="\\";break;case 47:Vt+="/";break;case 98:Vt+="\b";break;case 102:Vt+="\f";break;case 110:Vt+=`
|
|
3
3
|
`;break;case 114:Vt+="\r";break;case 116:Vt+=" ";break;case 117:var ni=lt(4);ni>=0?Vt+=String.fromCharCode(ni):Ot=4;break;default:Ot=5}St=ce}}return Vt})(),it=10;case 47:var Mt=ce-1;if(ne.charCodeAt(ce+1)===47){for(ce+=2;ce<ge&&!d(ne.charCodeAt(ce));)ce++;return ye=ne.substring(Mt,ce),it=12}if(ne.charCodeAt(ce+1)===42){ce+=2;for(var At=ge-1,He=!1;ce<At;){var Lt=ne.charCodeAt(ce);if(Lt===42&&ne.charCodeAt(ce+1)===47){ce+=2,He=!0;break}ce++,d(Lt)&&(Lt===13&&ne.charCodeAt(ce)===10&&ce++,de++,kt=ce)}return He||(ce++,Ot=1),ye=ne.substring(Mt,ce),it=13}return ye+=String.fromCharCode(Ct),ce++,it=16;case 45:if(ye+=String.fromCharCode(Ct),++ce===ge||!l(ne.charCodeAt(ce)))return it=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return ye+=(function(){var Vt=ce;if(ne.charCodeAt(ce)===48)ce++;else for(ce++;ce<ne.length&&l(ne.charCodeAt(ce));)ce++;if(ce<ne.length&&ne.charCodeAt(ce)===46){if(!(++ce<ne.length&&l(ne.charCodeAt(ce))))return Ot=3,ne.substring(Vt,ce);for(ce++;ce<ne.length&&l(ne.charCodeAt(ce));)ce++}var St=ce;if(ce<ne.length&&(ne.charCodeAt(ce)===69||ne.charCodeAt(ce)===101))if((++ce<ne.length&&ne.charCodeAt(ce)===43||ne.charCodeAt(ce)===45)&&ce++,ce<ne.length&&l(ne.charCodeAt(ce))){for(ce++;ce<ne.length&&l(ne.charCodeAt(ce));)ce++;St=ce}else Ot=3;return ne.substring(Vt,St)})(),it=11;default:for(;ce<ge&&pi(Ct);)ce++,Ct=ne.charCodeAt(ce);if(Ze!==ce){switch(ye=ne.substring(Ze,ce)){case"true":return it=8;case"false":return it=9;case"null":return it=7}return it=16}return ye+=String.fromCharCode(Ct),ce++,it=16}}function pi(Ct){if(t(Ct)||d(Ct))return!1;switch(Ct){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(Ct){ce=Ct,ye="",Ze=0,it=16,Ot=0},getPosition:function(){return ce},scan:je?function(){var Ct;do Ct=$i();while(Ct>=12&&Ct<=15);return Ct}:$i,getToken:function(){return it},getTokenValue:function(){return ye},getTokenOffset:function(){return Ze},getTokenLength:function(){return ce-Ze},getTokenStartLine:function(){return yt},getTokenStartCharacter:function(){return Ze-Bt},getTokenError:function(){return Ot}}}function t(ne){return ne===32||ne===9||ne===11||ne===12||ne===160||ne===5760||ne>=8192&&ne<=8203||ne===8239||ne===8287||ne===12288||ne===65279}function d(ne){return ne===10||ne===13||ne===8232||ne===8233}function l(ne){return ne>=48&&ne<=57}(function(ne){ne.DEFAULT={allowTrailingComma:!1}})(i||(i={}));var h=f,u=function ne(je,ge,ce){if((function(de,yt,kt){return yt>=de.offset&&yt<de.offset+de.length||yt===de.offset+de.length})(je,ge)){var ye=je.children;if(Array.isArray(ye))for(var Ze=0;Ze<ye.length&&ye[Ze].offset<=ge;Ze++){var it=ne(ye[Ze],ge);if(it)return it}return je}},j=function ne(je){if(!je.parent||!je.parent.children)return[];var ge=ne(je.parent);if(je.parent.type==="property"){var ce=je.parent.children[0].value;ge.push(ce)}else if(je.parent.type==="array"){var ye=je.parent.children.indexOf(je);ye!==-1&&ge.push(ye)}return ge},b=function(ne,je,ge){ge===void 0&&(ge=i.DEFAULT);var ce=f(ne,!1);function ye(Vt){return Vt?function(){return Vt(ce.getTokenOffset(),ce.getTokenLength(),ce.getTokenStartLine(),ce.getTokenStartCharacter())}:function(){return!0}}function Ze(Vt){return Vt?function(St){return Vt(St,ce.getTokenOffset(),ce.getTokenLength(),ce.getTokenStartLine(),ce.getTokenStartCharacter())}:function(){return!0}}var it=ye(je.onObjectBegin),de=Ze(je.onObjectProperty),yt=ye(je.onObjectEnd),kt=ye(je.onArrayBegin),Bt=ye(je.onArrayEnd),Ot=Ze(je.onLiteralValue),lt=Ze(je.onSeparator),$i=ye(je.onComment),pi=Ze(je.onError),Ct=ge&&ge.disallowComments,Mt=ge&&ge.allowTrailingComma;function At(){for(;;){var Vt=ce.scan();switch(ce.getTokenError()){case 4:He(14);break;case 5:He(15);break;case 3:He(13);break;case 1:Ct||He(11);break;case 2:He(12);break;case 6:He(16)}switch(Vt){case 12:case 13:Ct?He(10):$i();break;case 16:He(1);break;case 15:case 14:break;default:return Vt}}}function He(Vt,St,fi){if(St===void 0&&(St=[]),fi===void 0&&(fi=[]),pi(Vt),St.length+fi.length>0)for(var ni=ce.getToken();ni!==17;){if(St.indexOf(ni)!==-1){At();break}if(fi.indexOf(ni)!==-1)break;ni=At()}}function Lt(Vt){var St=ce.getTokenValue();return Vt?Ot(St):de(St),At(),!0}return At(),ce.getToken()===17?!!ge.allowEmptyContent||(He(4,[],[]),!1):(function Vt(){switch(ce.getToken()){case 3:return(function(){kt(),At();for(var St=!1;ce.getToken()!==4&&ce.getToken()!==17;){if(ce.getToken()===5){if(St||He(4,[],[]),lt(","),At(),ce.getToken()===4&&Mt)break}else St&&He(6,[],[]);Vt()||He(4,[],[4,5]),St=!0}return Bt(),ce.getToken()!==4?He(8,[4],[]):At(),!0})();case 1:return(function(){it(),At();for(var St=!1;ce.getToken()!==2&&ce.getToken()!==17;){if(ce.getToken()===5){if(St||He(4,[],[]),lt(","),At(),ce.getToken()===2&&Mt)break}else St&&He(6,[],[]);(ce.getToken()!==10?(He(3,[],[2,5]),0):(Lt(!1),ce.getToken()===6?(lt(":"),At(),Vt()||He(4,[],[2,5])):He(5,[],[2,5]),1))||He(4,[],[2,5]),St=!0}return yt(),ce.getToken()!==2?He(7,[2],[]):At(),!0})();case 10:return Lt(!0);default:return(function(){switch(ce.getToken()){case 11:var St=0;try{typeof(St=JSON.parse(ce.getTokenValue()))!="number"&&(He(2),St=0)}catch{He(2)}Ot(St);break;case 7:Ot(null);break;case 8:Ot(!0);break;case 9:Ot(!1);break;default:return!1}return At(),!0})()}})()?(ce.getToken()!==17&&He(9,[],[]),!0):(He(4,[],[]),!1)};function O(ne){switch(ne){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}const x=`__object_order_${Math.floor(Date.now()/36e5)}__`,_=Symbol.for(x),g={defineProperty:(ne,je,ge)=>(!Object.prototype.hasOwnProperty.call(ne,je)&&_ in ne?ne[_].push(je):"value"in ge&&je===_&&ge.value.lastIndexOf(_)===-1&&ge.value.push(_),Reflect.defineProperty(ne,je,ge)),deleteProperty(ne,je){const ge=Object.prototype.hasOwnProperty.call(ne,je),ce=Reflect.deleteProperty(ne,je);if(ce&&ge&&_ in ne){const ye=ne[_].indexOf(je);ye!==-1&&ne[_].splice(ye,1)}return ce},ownKeys:ne=>_ in ne?ne[_]:Reflect.ownKeys(ne),set(ne,je,ge){const ce=Object.prototype.hasOwnProperty.call(ne,je),ye=Reflect.set(ne,je,ge);return ye&&!ce&&_ in ne&&ne[_].push(je),ye}};function S(ne,je=Reflect.ownKeys(ne)){typeof process<"u"&&R(process)&&R(process.env);const ge=new Proxy(ne,g);return(function(ce,ye){_ in ce?(ce[_].length=0,ce[_].push(...ye)):Reflect.defineProperty(ce,_,{configurable:!0,value:ye})})(ge,je),ge}function R(ne){return ne!==null&&typeof ne=="object"}var q=r(94169),D=r(11145),N=r.n(D);function w(ne){if(typeof ne!="object"||ne===null)return!1;const je=Object.getPrototypeOf(ne);return je===null||je===Object.prototype||typeof ne.constructor=="function"&&Function.toString.call(Object)===Function.toString.call(ne.constructor)}function T(ne,je,ge){if(!w(ne)&&!Array.isArray(ne)||!(je in ne))throw new ReferenceError(`Could not resolve '${ge}'`)}function z(ne){if(typeof ne.$ref!="string")throw new TypeError("$ref should be a string")}const J=ne=>w(ne)&&"$ref"in ne,F=ne=>J(ne)&&typeof ne.$ref=="string",H=ne=>ne.length>0&&(ne==="#"||/^#\S*$/.test(ne)),K=(ne,je,ge)=>{const ce=ne.toString();let ye="",Ze=ce,it=0,de=Ze.indexOf(je);for(;de>-1;)ye+=ce.substring(it,it+de)+ge,Ze=Ze.substring(de+je.length,Ze.length),it+=de+je.length,de=Ze.indexOf(je);return Ze.length>0&&(ye+=ce.substring(ce.length-Ze.length,ce.length)),ye},Y=ne=>typeof ne=="number"?ne:K(K(ne,"~","~0"),"/","~1"),ee=/[^a-zA–Z0–9_.!~*'()\/\-\u{D800}-\u{DFFF}]/gu;function Z(ne){return ne.replace(ee,encodeURIComponent)}const A=ne=>{const je=Y(ne);return typeof je=="number"?je:Z(je)},V=ne=>Q(ne),Q=ne=>{if(ne&&typeof ne!="object")throw new TypeError("Invalid type: path must be an array of segments.");return ne.length===0?"#":`#/${ne.map(A).join("/")}`};function te(ne){try{return decodeURIComponent(ne)}catch{return ne}}const W=/%[0-9a-f]+/gi,a=ne=>{let je;try{je=decodeURIComponent(ne)}catch{je=ne.replace(W,te)}return K(K(je,"~1","/"),"~0","~")},s=ne=>v(ne),v=ne=>{if(typeof ne!="string")throw new TypeError("Invalid type: JSON Pointers are represented as strings.");if(ne.length===0||ne[0]!=="#")throw new URIError("Invalid JSON Pointer syntax; URI fragment identifiers must begin with a hash.");if(ne.length===1)return[];if(ne[1]!=="/")throw new URIError("Invalid JSON Pointer syntax.");return(je=>{const ge=je.length,ce=[];let ye=-1;for(;++ye<ge;)ce.push(a(je[ye]));return ce})(ne.substring(2).split("/"))},y=(ne,je,ge)=>{const ce={value:ne,path:ge};je.onEnter&&je.onEnter(ce);for(const ye of Object.keys(ne)){const Ze=ne[ye];je.onProperty&&je.onProperty({parent:ne,parentPath:ge,property:ye,propertyValue:Ze}),typeof Ze=="object"&&Ze!==null&&y(Ze,je,ge.concat(ye))}je.onLeave&&je.onLeave(ce)},p=(ne,je)=>{typeof ne=="object"&&ne!==null&&y(ne,typeof je=="function"?{onProperty:je}:je,[])};function P(ne,je,ge){p(ne,{onProperty({property:ce,propertyValue:ye,parent:Ze}){ce==="$ref"&&typeof ye=="string"&&ye.startsWith(je)&&(Ze.$ref=`${ge}${ye.slice(je.length)}`)}})}const I=ne=>ne.length>0&&ne[0]!=="#",U=ne=>{if(typeof ne!="string"||ne.length===0||!I(ne))return null;const je=ne.indexOf("#");return je===-1?ne:ne.slice(0,je)};function ie(ne,je){return w(je)&&w(ne)&&("summary"in ne||"description"in ne)?Object.assign(Object.assign(Object.assign({},je),"description"in ne?{description:ne.description}:null),"summary"in ne?{summary:ne.summary}:null):je}function*ae(ne,je,ge){J(ne.value)&&(z(ne.value),yield[-1,ne.value]);for(const[ce,ye]of je.entries())T(ne.value,ye,ge),ne.value=ne.value[ye],J(ne.value)&&(z(ne.value),yield[ce,ne.value])}function B(ne,je){return pe(ne,je).value}function pe(ne,je){return(function ge(ce,ye,Ze,it){if(U(ye)!==null)throw new ReferenceError("Cannot resolve external references");const de=s(ye);let yt=[...de];ye==="#"&&J(ce)&&(z(ce),de.unshift(...s(ce.$ref)));const kt={value:ce};for(const[Bt,Ot]of ae(kt,de,ye)){if(Ze.includes(Ot))return{source:null,location:it??yt,value:Ze[Ze.length-1]};Ze.push(Ot);const lt=ge(ce,Ot.$ref,Ze,yt);kt.value=lt.value,(yt=lt.location).push(...de.slice(Bt+1))}return{source:null,location:yt,value:Ze.length>0?ie(Ze[Ze.length-1],kt.value):kt.value}})(ne,je,[])}const Ee="#/__bundled__",Fe="#/__errors__",Ue=({document:ne,path:je,bundleRoot:ge="#/__bundled__",errorsRoot:ce="#/__errors__",cloneDocument:ye=!0,keyProvider:Ze},it)=>{if(je===ge||je===ce)throw new Error("Roots do not make any sense");const de=ye?(0,n.cloneDeep)(ne):ne;return Xe(de,s(ge),s(ce),je,Ze)(je,{[je]:!0},it)},Xe=(ne,je,ge,ce,ye)=>{const Ze=new Set,it=(de,yt,kt,Bt={},Ot={},lt={})=>{const $i=s(de),pi=(0,n.get)(ne,$i);p(kt||pi,{onEnter:({value:Mt})=>{if(F(Mt)&&H(Mt.$ref)){const At=Mt.$ref;if(lt[At])return;if(At===de&&(Bt[At]="#"),Bt[At])return void(Mt.$ref=Bt[At]);let He,Lt,Vt,St,fi;try{let ni;He=s(At),ye&&(ni=ye({document:ne,path:He})),ni||(ni=(({document:fn,path:Ii})=>Ii.length===0?"root":Array.isArray((0,n.get)(fn,Ii.slice(0,-1)))?`${Ii[Ii.length-2]}_${Ii[Ii.length-1]}`:String(Ii[Ii.length-1]))({document:ne,path:He})),Vt=ni;let Ci=1;for(;Ze.has(Vt);)if(Vt=`${ni}_${++Ci}`,Ci>20)throw new Error(`Keys ${ni}_2 through ${ni}_20 already taken.`);Ze.add(Vt),Lt=[...je,Vt],St=V(Lt)}catch(ni){lt[At]=ni instanceof Error?ni.message:String(ni)}if(!He||!Lt||!St)return;if(typeof ne=="object"&&ne!==null&&!(fi=(0,n.get)(ne,He)))try{fi=B(Object(ne),At)}catch{}fi!==void 0&&(Bt[At]=St,Mt.$ref=St,(0,n.has)(Ot,Lt)||(Array.isArray(fi)?(0,n.set)(Ot,Lt,new Array(fi.length).fill(null)):typeof fi=="object"&&(0,n.setWith)(Ot,Lt,{},Object),(0,n.set)(Ot,Lt,fi),At==="#"?(function(ni,Ci,fn,Ii){const vn=fn.map((Vi=>`[${JSON.stringify(Vi)}]`)).join(""),ci=JSON.parse(JSON.stringify((0,n.omit)(Object(ni),vn))),ei={};(0,n.set)(Ci,Ii,ci),(0,n.set)(ci,fn,ei),P(ci,"#",V(Ii)),ei.$ref="#"})(ne,Ot,s(ce),Lt):yt[At]||(yt[At]=!0,it(de,yt,fi,Bt,Ot,lt),yt[At]=!1)))}}});const Ct=(0,n.get)(Ot,je);return Ct&&Object.keys(Ct).length&&(0,n.set)(pi,je,Ct),(Object.keys(lt).length||(0,n.has)(ne,ge))&&(0,n.set)(pi,ge,(0,n.has)(ne,ge)?(0,n.get)(ne,ge):lt),pi};return it},qe=ne=>K(K(ne,"~1","/"),"~0","~"),_e=(ne,je)=>{const ge=new WeakMap;return(function ce(ye,Ze){let it;if(je&&(ye=je(ye)),w(ye)||Array.isArray(ye)){const de=ge.get(ye);return de?{$ref:de}:(ge.set(ye,V(Ze)),Array.isArray(ye)?it=ye.map(((yt,kt)=>ce(yt,[...Ze,String(kt)]))):(it={},Object.keys(ye).forEach((yt=>{it[yt]=ce(ye[yt],[...Ze,yt])}))),ge.delete(ye),it)}return ye})(ne,[])},It=ne=>K(K(ne,"~","~0"),"//","/~1"),_t=ne=>{if(typeof ne!="string"||ne.length===0)return null;const je=ne.indexOf("#");return je===-1?null:ne.slice(je)},Wt=ne=>{const je=h(ne,!0);if(je.scan(),je.getToken()!==1||(je.scan(),je.getToken()===2))return;if(je.getToken()!==10)throw new SyntaxError("Unexpected character");const ge=je.getTokenValue();if(je.scan(),je.getToken()!==6)throw new SyntaxError("Colon expected");switch(je.scan(),je.getToken()){case 10:return[ge,je.getTokenValue()];case 11:return[ge,Number(je.getTokenValue())];case 8:return[ge,!0];case 9:return[ge,!1];case 7:return[ge,null];case 16:throw new SyntaxError("Unexpected character");case 17:throw new SyntaxError("Unexpected end of file");default:return}},X=({lineMap:ne,ast:je},ge)=>{const ce=ne[ge.line],ye=ne[ge.line+1];if(ce===void 0)return;const Ze=u(je,ye===void 0?ce+ge.character:Math.min(ye,ce+ge.character));if(Ze===void 0)return;const it=j(Ze);return it.length!==0?it:void 0};function he(ne){return qe(ne.split("/").pop()||"")}const ke=({ast:ne},je,ge=!1)=>{const ce=(function(ye,Ze,it){e:for(const de of Ze){const yt=Number.isInteger(Number(de))?Number(de):de;if(typeof yt=="string"||typeof yt=="number"&&ye.type!=="array"){if(ye.type!=="object"||!Array.isArray(ye.children))return it?ye:void 0;for(const kt of ye.children)if(Array.isArray(kt.children)&&kt.children[0].value===String(yt)&&kt.children.length===2){ye=kt.children[1];continue e}return it?ye:void 0}if(ye.type!=="array"||yt<0||!Array.isArray(ye.children)||yt>=ye.children.length)return it?ye:void 0;ye=ye.children[yt]}return ye})(ne,je,ge);if(ce!==void 0&&ce.range!==void 0)return{range:ce.range}},Ae=(ne,je={disallowComments:!0})=>{const ge=[],{ast:ce,data:ye,lineMap:Ze}=Qe(ne,ge,je);return{data:ye,diagnostics:ge,ast:ce,lineMap:Ze}};function Qe(ne,je=[],ge){const ce=le(ne);let ye={type:"array",offset:-1,length:-1,children:[],parent:void 0},Ze=null,it=[];const de=new WeakMap,yt=[];function kt(Mt){ye.type==="property"&&(ye.length=Mt-ye.offset,ye=ye.parent)}function Bt(Mt,At,He){return{start:{line:Mt,character:At},end:{line:Mt,character:At+He}}}function Ot(Mt){return ye.children.push(Mt),Mt}function lt(Mt){Array.isArray(it)?it.push(Mt):Ze!==null&&(it[Ze]=Mt)}function $i(Mt){lt(Mt),yt.push(it),it=Mt,Ze=null}function pi(){it=yt.pop()}b(ne,{onObjectBegin:(Mt,At,He,Lt)=>{ye=Ot({type:"object",offset:Mt,length:-1,parent:ye,children:[],range:Bt(He,Lt,At)}),ge.ignoreDuplicateKeys===!1&&de.set(ye,[]),$i((function(Vt){return Vt?S({}):{}})(ge.preserveKeyOrder===!0))},onObjectProperty:(Mt,At,He,Lt,Vt)=>{if((ye=Ot({type:"property",offset:At,length:-1,parent:ye,children:[]})).children.push({type:"string",value:Mt,offset:At,length:He,parent:ye}),ge.ignoreDuplicateKeys===!1){const St=de.get(ye.parent);St&&(St.length!==0&&St.includes(Mt)?je.push({range:Bt(Lt,Vt,He),message:"DuplicateKey",severity:q.h_.Error,path:ve(ye),code:20}):St.push(Mt))}ge.preserveKeyOrder===!0&&(function(St,fi){if(!(fi in St))return;const ni=St[_],Ci=ni.indexOf(fi);Ci!==-1&&(ni.splice(Ci,1),ni.push(fi))})(it,Mt),Ze=Mt},onObjectEnd:(Mt,At,He,Lt)=>{ge.ignoreDuplicateKeys===!1&&de.delete(ye),ye.length=Mt+At-ye.offset,ye.range&&(ye.range.end.line=He,ye.range.end.character=Lt+At),ye=ye.parent,kt(Mt+At),pi()},onArrayBegin:(Mt,At,He,Lt)=>{ye=Ot({type:"array",offset:Mt,length:-1,parent:ye,children:[],range:Bt(He,Lt,At)}),$i([])},onArrayEnd:(Mt,At,He,Lt)=>{ye.length=Mt+At-ye.offset,ye.range&&(ye.range.end.line=He,ye.range.end.character=Lt+At),ye=ye.parent,kt(Mt+At),pi()},onLiteralValue:(Mt,At,He,Lt,Vt)=>{Ot({type:ct(Mt),offset:At,length:He,parent:ye,value:Mt,range:Bt(Lt,Vt,He)}),kt(At+He),lt(Mt)},onSeparator:(Mt,At)=>{ye.type==="property"&&(Mt===":"?ye.colonOffset=At:Mt===","&&kt(At))},onError:(Mt,At,He,Lt,Vt)=>{je.push({range:Bt(Lt,Vt,He),message:O(Mt),severity:q.h_.Error,code:Mt})}},ge);const Ct=ye.children[0];return Ct&&delete Ct.parent,{ast:Ct,data:it[0],lineMap:ce}}function ct(ne){switch(typeof ne){case"boolean":return"boolean";case"number":return"number";case"string":return"string";default:return"null"}}const le=ne=>{const je=[0];let ge=0;for(;ge<ne.length;ge++)ne[ge]===`
|
|
4
4
|
`&&je.push(ge+1);return je.push(ge+1),je};function ve(ne,je=[]){return ne.type==="property"&&je.unshift(ne.children[0].value),ne.parent!==void 0?(ne.parent.type==="array"&&ne.parent.parent!==void 0&&je.unshift(ne.parent.children.indexOf(ne)),ve(ne.parent,je)):je}const Te=(ne,je,ge)=>{if(!ne||!Object.hasOwnProperty.call(ne,je)||je===ge)return ne;const ce={};for(const[ye,Ze]of Object.entries(ne))ye===je?ce[ge]=Ze:ye in ce||(ce[ye]=Ze);return ce};function be(ne){return w(ne)||Array.isArray(ne)}function Ce(ne,je,ge){if(ge.length<=1||je.length<=1)throw Error("Source/target path must not be empty and point at root");if(je.indexOf(ge)===0)throw Error("Target path cannot be contained within source");const ce=s(je);let ye=ne;for(const de of ce){if(!be(ye))return;ye=ye[de]}if(!be(ye))return;const Ze=s(ge);let it=ne;for(const[de,yt]of Ze.entries()){if(!be(it)||yt in it)return;const kt=de===Ze.length-1?ye:{};it[yt]=kt,it=kt}delete ne[ce[0]],(function de(yt,kt,Bt){for(const Ot of Object.keys(yt)){const lt=yt[Ot];if(Ot!=="$ref")be(lt)&&de(lt,kt,Bt);else{if(typeof lt!="string"||!H(lt))continue;lt.indexOf(kt)===0&&(yt[Ot]=lt.replace(kt,Bt))}}})(ne,je,ge)}async function We(ne,je,ge,ce,ye){let Ze=(function(Ot,lt){const $i=U(lt);return $i===null?Ot:(0,c.isAbsolute)($i)?$i:(0,c.join)((0,c.dirname)(Ot),$i)})(je,ge);const it=_t(ge)||"#",de=await ne[Ze],yt=s(it);let kt=[...yt];const Bt={value:de};for(const[Ot,lt]of ae(Bt,yt,it)){if(ce.includes(lt))return{source:je,location:ye??kt,value:ce[ce.length-1]};ce.push(lt);const $i=await We(ne,Ze,lt.$ref,ce,kt);({source:Ze,location:kt}=$i),Bt.value=$i.value,kt.push(...yt.slice(Ot+1))}return{source:Ze,location:kt,value:ce.length>0?ie(ce[ce.length-1],Bt.value):Bt.value}}async function ot(ne,je,ge){return(await Oe(ne,je,ge)).value}function Oe(ne,je,ge){return We(ne,je,ge,[])}const Ve=(ne,je)=>{if(typeof ne!="string")return ne;try{const ge=Re(ne);return typeof ge=="string"?ge:JSON.parse(ne,je)}catch{return}},Re=ne=>{const je=Number(ne);return Number.isFinite(je)?String(je)===ne?je:ne:NaN},ze=(ne,je,ge)=>{if(typeof ne=="string")return ne;try{return JSON.stringify(ne,je,ge)}catch{return N()(ne,je,ge)}},Ye=(ne,je)=>{if(ne instanceof Array){if(je instanceof Array){if(je.length>ne.length)return!1;for(const ge in je){if(!je.hasOwnProperty(ge))continue;const ce=parseInt(ne[ge]),ye=parseInt(je[ge]);if(isNaN(ce)&&isNaN(ye)){if(ne[ge]!==je[ge])return!1}else if(ce!==ye)return!1}}}else{if(typeof ne!="string")return!1;if(typeof je=="string")return ne.startsWith(je)}return!0},oe=(ne,je,ge)=>{const ce=ze(ne,je,ge);if(ce===void 0)throw new Error("The value could not be stringified");return ce};function tt(ne){return ne.replace(/^(\/|#\/)/,"").split("/").map(qe).map(rt).join(".")}function rt(ne){return ne.includes(".")?`["${ne.replace(/"/g,'\\"')}"]`:ne}const ut=Symbol.for(x),vt={ownKeys:ne=>ut in ne?ne[ut]:Reflect.ownKeys(ne)},mt=ne=>new Proxy(ne,vt);function Ke(ne,je){if(typeof ne=="string"&&typeof je=="string")return(0,n.trimStart)(ne,je);if(!(ne&&Array.isArray(ne)&&ne.length&&je&&Array.isArray(je)&&je.length))return ne;let ge=0;for(const ce in ne)if(ne.hasOwnProperty(ce)){if(ne[ce]!==je[ce])break;ge++}return ne.slice(ge)}},98136:(E,e,r)=>{function i(w){let T="";return w.absolute&&(w.protocol==="file"?(w.drive&&(T+=w.drive),T+="/"):(T+=w.protocol+"://",w.origin&&(T+=w.origin+"/"))),(T+=w.path.join("/"))===""&&(T="."),T}function n(w,T,z,J){this.message=w,this.expected=T,this.found=z,this.location=J,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,n)}r.r(e),r.d(e,{basename:()=>h,deserializeSrn:()=>D,dirname:()=>u,extname:()=>j,format:()=>i,isAbsolute:()=>b,isURL:()=>O,join:()=>x,normalize:()=>t,parse:()=>f,relative:()=>_,resolve:()=>g,sep:()=>S,serializeSrn:()=>N,startsWithWindowsDrive:()=>R,stripRoot:()=>q,toFSPath:()=>t}),(function(w,T){function z(){this.constructor=w}z.prototype=T.prototype,w.prototype=new z})(n,Error),n.buildMessage=function(w,T){var z={literal:function(K){return'"'+F(K.text)+'"'},class:function(K){var Y,ee="";for(Y=0;Y<K.parts.length;Y++)ee+=K.parts[Y]instanceof Array?H(K.parts[Y][0])+"-"+H(K.parts[Y][1]):H(K.parts[Y]);return"["+(K.inverted?"^":"")+ee+"]"},any:function(K){return"any character"},end:function(K){return"end of input"},other:function(K){return K.description}};function J(K){return K.charCodeAt(0).toString(16).toUpperCase()}function F(K){return K.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Y){return"\\x0"+J(Y)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Y){return"\\x"+J(Y)}))}function H(K){return K.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Y){return"\\x0"+J(Y)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Y){return"\\x"+J(Y)}))}return"Expected "+(function(K){var Y,ee,Z,A=new Array(K.length);for(Y=0;Y<K.length;Y++)A[Y]=(Z=K[Y],z[Z.type](Z));if(A.sort(),A.length>0){for(Y=1,ee=1;Y<A.length;Y++)A[Y-1]!==A[Y]&&(A[ee]=A[Y],ee++);A.length=ee}switch(A.length){case 1:return A[0];case 2:return A[0]+" or "+A[1];default:return A.slice(0,-1).join(", ")+", or "+A[A.length-1]}})(w)+" but "+(function(K){return K?'"'+F(K)+'"':"end of input"})(T)+" found."};var c=function(w,T){T=T!==void 0?T:{};var z,J,F,H,K={},Y={Path:oe},ee=oe,Z=function(ge,ce,ye,Ze){return{protocol:ge,origin:ce,absolute:!0,...ye,...Ze}},A=function(ge,ce,ye){return{protocol:ge,origin:ce,absolute:!0,...ye,path:[]}},V="http://",Q=Oe("http://",!0),te=function(ge){return"http"},W="https://",a=Oe("https://",!0),s=function(ge){return"https"},v="",y=function(){return null},p=function(ge,ce,ye){return{protocol:ge,origin:null,absolute:!0,...ce,...ye}},P="file://",I=Oe("file://",!0),U="file:",ie=Oe("file:",!0),ae=function(ge){return"file"},B=function(ge,ce){return{protocol:"file",origin:null,absolute:!0,...ge,...ce}},pe=/^[A-Za-z]/,Ee=Ve([["A","Z"],["a","z"]],!1,!1),Fe=":",Ue=Oe(":",!1),Xe=function(ge){return{drive:ge.toLowerCase()+":"}},qe=function(){return{drive:null}},_e=function(){return{drive:null}},It=function(ge){return{protocol:null,origin:null,absolute:!1,drive:null,...ge}},_t=function(ge){return{path:ge}},Wt=function(ge,ce){return[ge,...ce]},X=function(ge){return[ge]},he=".",ke=Oe(".",!1),Ae="/",Qe=Oe("/",!1),ct="\\",le=Oe("\\",!1),ve=/^[^\/\\]/,Te=Ve(["/","\\"],!0,!1),be=0,Ce=[{line:1,column:1}],We=0,ot=[];if("startRule"in T){if(!(T.startRule in Y))throw new Error(`Can't start parsing from rule "`+T.startRule+'".');ee=Y[T.startRule]}function Oe(ge,ce){return{type:"literal",text:ge,ignoreCase:ce}}function Ve(ge,ce,ye){return{type:"class",parts:ge,inverted:ce,ignoreCase:ye}}function Re(ge){var ce,ye=Ce[ge];if(ye)return ye;for(ce=ge-1;!Ce[ce];)ce--;for(ye={line:(ye=Ce[ce]).line,column:ye.column};ce<ge;)w.charCodeAt(ce)===10?(ye.line++,ye.column=1):ye.column++,ce++;return Ce[ge]=ye,ye}function ze(ge,ce){var ye=Re(ge),Ze=Re(ce);return{start:{offset:ge,line:ye.line,column:ye.column},end:{offset:ce,line:Ze.line,column:Ze.column}}}function Ye(ge){be<We||(be>We&&(We=be,ot=[]),ot.push(ge))}function oe(){var ge;return(ge=(function(){var ce,ye,Ze,it,de;return ce=be,(ye=tt())!==K&&(Ze=rt())!==K&&(it=vt())!==K&&(de=mt())!==K?ce=ye=Z(ye,Ze,it,de):(be=ce,ce=K),ce===K&&(ce=be,(ye=tt())!==K&&(Ze=rt())!==K&&(it=(function(){var yt;return(yt=v)!==K&&(yt=_e()),yt})())!==K?ce=ye=A(ye,Ze,it):(be=ce,ce=K)),ce})())===K&&(ge=(function(){var ce,ye,Ze,it;return ce=be,(ye=(function(){var de;return w.substr(be,7).toLowerCase()===P?(de=w.substr(be,7),be+=7):(de=K,Ye(I)),de===K&&(w.substr(be,5).toLowerCase()===U?(de=w.substr(be,5),be+=5):(de=K,Ye(ie))),de!==K&&(de=ae()),de})())!==K&&(Ze=ut())!==K&&(it=mt())!==K?ce=ye=p(ye,Ze,it):(be=ce,ce=K),ce})())===K&&(ge=(function(){var ce,ye,Ze;return ce=be,(ye=ut())!==K&&(Ze=mt())!==K?ce=ye=B(ye,Ze):(be=ce,ce=K),ce})())===K&&(ge=(function(){var ce,ye;return ce=be,(function(){var Ze;return(Ze=(function(){var it,de,yt;return it=be,w.charCodeAt(be)===46?(de=he,be++):(de=K,Ye(ke)),de!==K&&(yt=ne())!==K?it=de=[de,yt]:(be=it,it=K),it})())===K&&(Ze=v),Ze})()!==K&&(ye=mt())!==K?ce=It(ye):(be=ce,ce=K),ce})()),ge}function tt(){var ge,ce;return w.substr(be,7).toLowerCase()===V?(ce=w.substr(be,7),be+=7):(ce=K,Ye(Q)),ce!==K&&(ce=te()),(ge=ce)===K&&(ge=(function(){var ye;return w.substr(be,8).toLowerCase()===W?(ye=w.substr(be,8),be+=8):(ye=K,Ye(a)),ye!==K&&(ye=s()),ye})()),ge}function rt(){var ge,ce,ye;if(ge=be,ce=[],(ye=je())!==K)for(;ye!==K;)ce.push(ye),ye=je();else ce=K;return(ge=ce!==K?w.substring(ge,be):ce)===K&&(ge=be,(ce=v)!==K&&(ce=y()),ge=ce),ge}function ut(){var ge;return(ge=(function(){var ce,ye,Ze,it;return ce=be,(ye=ne())===K&&(ye=null),ye!==K?(pe.test(w.charAt(be))?(Ze=w.charAt(be),be++):(Ze=K,Ye(Ee)),Ze!==K?(w.charCodeAt(be)===58?(it=Fe,be++):(it=K,Ye(Ue)),it!==K&&ne()!==K?ce=ye=Xe(Ze):(be=ce,ce=K)):(be=ce,ce=K)):(be=ce,ce=K),ce})())===K&&(ge=vt()),ge}function vt(){var ge;return(ge=ne())!==K&&(ge=qe()),ge}function mt(){var ge;return(ge=(function ce(){var ye,Ze,it;return ye=be,(Ze=Ke())!==K&&ne()!==K&&(it=ce())!==K?ye=Ze=Wt(Ze,it):(be=ye,ye=K),ye===K&&(ye=be,(Ze=Ke())!==K&&(Ze=X(Ze)),ye=Ze),ye})())!==K&&(ge=_t(ge)),ge}function Ke(){var ge,ce,ye;if(ge=be,ce=[],(ye=je())!==K)for(;ye!==K;)ce.push(ye),ye=je();else ce=K;return(ge=ce!==K?w.substring(ge,be):ce)===K&&(ge=v),ge}function ne(){var ge;return w.charCodeAt(be)===47?(ge=Ae,be++):(ge=K,Ye(Qe)),ge===K&&(w.charCodeAt(be)===92?(ge=ct,be++):(ge=K,Ye(le))),ge}function je(){var ge;return ve.test(w.charAt(be))?(ge=w.charAt(be),be++):(ge=K,Ye(Te)),ge}if((z=ee())!==K&&be===w.length)return z;throw z!==K&&be<w.length&&Ye({type:"end"}),J=ot,F=We<w.length?w.charAt(We):null,H=We<w.length?ze(We,We+1):ze(We,We),new n(n.buildMessage(J,F),J,F,H)};function f(w){if(typeof w!="string")throw new Error(`@stoplight/path: Cannot parse ${w} because it is not a string`);return c(w,{})}function t(w){return i(d(f(w)))}function d(w){let T=w.path;T=T.filter((J=>J!==""&&J!=="."));const z=[];for(const J of T)J===".."&&z.length&&z[z.length-1]!==".."?z.pop():J===".."&&w.absolute||z.push(J);return w.path=z,w}function l(w){let T=w.lastIndexOf(".");w===".."&&(T=-1),w==="."&&(T=-1);let z=w,J="";return T>0&&(z=w.slice(0,T),J=w.slice(T)),{name:z,ext:J}}const h=(w,T)=>{const z=d(f(w)).path.pop();if(!z)return"";const{name:J,ext:F}=l(z);return T===!0||T===F?J:`${J}${F}`},u=w=>{const T=d(f(w));return T.path.pop(),i(d(T))},j=w=>{const T=d(f(w)).path.pop();if(!T)return"";const{ext:z}=l(T);return z};function b(w){return f(w).absolute}function O(w){const T=f(w);return T.protocol==="http"||T.protocol==="https"}const x=(...w)=>{if(w.length===0)return".";const T=w.map(f),z=Object.assign({},T[0]);for(let J=1;J<T.length;J++){const F=T[J];if(F.absolute)throw new Error('Cannot join an absolute path "'+w[J]+'" in the middle of other paths.');for(const H of F.path)z.path.push(H)}return i(d(z))};function _(w,T){const z=d(f(T));if(!z.absolute)return i(z);const J=d(f(w));if(z.origin!==J.origin||!J.absolute||J.drive!==z.drive)return i(z);const F=Math.min(J.path.length,z.path.length);for(let H=0;H<F&&J.path[0]===z.path[0];H++)J.path.shift(),z.path.shift();return z.path.unshift(...J.path.fill("..")),i({origin:null,drive:null,absolute:!1,protocol:null,path:z.path})}function g(...w){if(w.length===0)return".";const T=d(f(w[w.length-1]));return T.absolute?i(T):x(...w)}const S="/",R=w=>f(w).drive!==null,q=w=>f(w).path.filter(Boolean).join("/");function D(w){const[T,z,J,...F]=w.split("/"),H=F.length?`/${F.join("/")}`:void 0;let K,Y;return H&&(K=F.find((ee=>ee.includes("."))))&&(Y=l(K).ext),{shortcode:T,orgSlug:z,projectSlug:J,uri:H,file:K,ext:Y}}function N({shortcode:w,orgSlug:T,projectSlug:z,uri:J=""}){return[w,T,z,J.replace(/^\//,"")].filter(Boolean).join("/")}},99999:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.aas2_6=e.aas2_5=e.aas2_4=e.aas2_3=e.aas2_2=e.aas2_1=e.aas2_0=e.asyncapi2=e.asyncApi2=e.aas2=void 0;const i=r(46734),n=/^2\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$/,c=/^2\.0(?:\.[0-9]*)?$/,f=/^2\.1(?:\.[0-9]*)?$/,t=/^2\.2(?:\.[0-9]*)?$/,d=/^2\.3(?:\.[0-9]*)?$/,l=/^2\.4(?:\.[0-9]*)?$/,h=/^2\.5(?:\.[0-9]*)?$/,u=/^2\.6(?:\.[0-9]*)?$/,j=b=>(0,i.isPlainObject)(b)&&"asyncapi"in b&&n.test(String(b.asyncapi));e.aas2=j,e.aas2.displayName="AsyncAPI 2.x",e.asyncApi2=e.aas2,e.asyncapi2=e.aas2,e.aas2_0=b=>j(b)&&c.test(String(b.asyncapi)),e.aas2_0.displayName="AsyncAPI 2.0.x",e.aas2_1=b=>j(b)&&f.test(String(b.asyncapi)),e.aas2_1.displayName="AsyncAPI 2.1.x",e.aas2_2=b=>j(b)&&t.test(String(b.asyncapi)),e.aas2_2.displayName="AsyncAPI 2.2.x",e.aas2_3=b=>j(b)&&d.test(String(b.asyncapi)),e.aas2_3.displayName="AsyncAPI 2.3.x",e.aas2_4=b=>j(b)&&l.test(String(b.asyncapi)),e.aas2_4.displayName="AsyncAPI 2.4.x",e.aas2_5=b=>j(b)&&h.test(String(b.asyncapi)),e.aas2_5.displayName="AsyncAPI 2.5.x",e.aas2_6=b=>j(b)&&u.test(String(b.asyncapi)),e.aas2_6.displayName="AsyncAPI 2.6.x"},67423:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});const i=r(57494);(0,i.__exportStar)(r(59171),e),(0,i.__exportStar)(r(99999),e),(0,i.__exportStar)(r(86202),e)},86202:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.detectDialect=e.extractDraftVersion=e.jsonSchemaDraft2020_12=e.jsonSchemaDraft2019_09=e.jsonSchemaDraft7=e.jsonSchemaDraft6=e.jsonSchemaDraft4=e.jsonSchemaLoose=e.jsonSchema=void 0;const i=r(46734),n=["array","boolean","integer","null","number","object","string"],c=["allOf","oneOf","anyOf","not","if"],f=/^https?:\/\/json-schema.org\/(?:draft-0([467])|draft\/(20(?:19-09|20-12)))\/(?:hyper-)?schema#?$/,t=h=>(function(u){return(0,i.isPlainObject)(u)&&"$schema"in u&&typeof u.$schema=="string"})(h)&&h.$schema.includes("//json-schema.org/");function d(h,u){const j=b=>t(b)&&l(b.$schema)===h;return j.displayName=u,j}function l(h){var u;const j=f.exec(h);return j!==null?`draft${(u=j[1])!==null&&u!==void 0?u:j[2]}`:null}e.jsonSchema=t,e.jsonSchema.displayName="JSON Schema",e.jsonSchemaLoose=h=>(0,i.isPlainObject)(h)&&(t(h)||(u=>"type"in u&&(typeof u.type=="string"?n.includes(u.type):Array.isArray(u.type)&&u.type.every((j=>n.includes(j)))))(h)||(u=>Array.isArray(u.enum))(h)||(u=>c.some((j=>j in u&&typeof u[j]=="object"&&u[j]!==null)))(h)),e.jsonSchemaLoose.displayName="JSON Schema (loose)",e.jsonSchemaDraft4=d("draft4","JSON Schema Draft 4"),e.jsonSchemaDraft6=d("draft6","JSON Schema Draft 6"),e.jsonSchemaDraft7=d("draft7","JSON Schema Draft 7"),e.jsonSchemaDraft2019_09=d("draft2019-09","JSON Schema Draft 2019-09"),e.jsonSchemaDraft2020_12=d("draft2020-12","JSON Schema Draft 2020-12"),e.extractDraftVersion=l,e.detectDialect=function(h){return t(h)?l(h.$schema):null}},59171:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.oas3_1=e.oas3_0=e.oas3=e.oas2=void 0;const i=r(46734);e.oas2=c=>(0,i.isPlainObject)(c)&&"swagger"in c&&parseInt(String(c.swagger))===2,e.oas2.displayName="OpenAPI 2.0 (Swagger)";const n=c=>(0,i.isPlainObject)(c)&&"openapi"in c&&Number.parseInt(String(c.openapi))===3;e.oas3=n,e.oas3.displayName="OpenAPI 3.x",e.oas3_0=c=>n(c)&&/^3\.0(?:\.[0-9]*)?$/.test(String(c.openapi)),e.oas3_0.displayName="OpenAPI 3.0.x",e.oas3_1=c=>n(c)&&/^3\.1(?:\.[0-9]*)?$/.test(String(c.openapi)),e.oas3_1.displayName="OpenAPI 3.1.x"},40456:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});const i=r(45250),n=r(23859),c=r(95955),f=r(9251),t=(l,h)=>typeof l!="number"&&!Number.isNaN(Number(l))||typeof h!="number"&&Number.isNaN(Number(h))?typeof l!="string"||typeof h!="string"?0:l.localeCompare(h):Math.min(1,Math.max(-1,Number(l)-Number(h)));function d(l){return typeof l=="string"||typeof l=="number"}e.default=(0,n.createRulesetFunction)({input:{type:["object","array"]},options:f.optionSchemas.alphabetical},(function(l,h,{path:u,documentInventory:j}){var b,O;let x;if(x=Array.isArray(l)?l:Object.keys((O=(b=j.findAssociatedItemForPath(u,!0))===null||b===void 0?void 0:b.document.trapAccess(l))!==null&&O!==void 0?O:l),x.length<2)return;const _=h==null?void 0:h.keyedBy;if(_!==void 0){const S=[];for(const R of x){if(!(0,i.isObject)(R))return[{message:'#{{print("property")}}must be an object'}];S.push(R[_])}x=S}if(!x.every(d))return[{message:'#{{print("property")}}must be one of the allowed types: number, string'}];const g=((S,R)=>{for(let q=0;q<S.length-1;q+=1)if(R(S[q],S[q+1])>=1)return[q,q+1];return null})(x,t);return g!=null?[{..._===void 0?{path:[...u,Array.isArray(l)?g[0]:x[g[0]]]}:null,message:_!==void 0?"properties must follow the alphabetical order":`${(0,c.printValue)(x[g[0]])} must be placed after ${(0,c.printValue)(x[g[1]])}`}]:void 0}))},97685:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CasingType=void 0;const i=r(45250),n=r(23859),c=r(9251),f=r(92805);Object.defineProperty(e,"CasingType",{enumerable:!0,get:function(){return f.CasingType}});const t={[f.CasingType.flat]:"[a-z][a-z{__DIGITS__}]*",[f.CasingType.camel]:"[a-z][a-z{__DIGITS__}]*(?:[A-Z{__DIGITS__}](?:[a-z{__DIGITS__}]+|$))*",[f.CasingType.pascal]:"[A-Z][a-z{__DIGITS__}]*(?:[A-Z{__DIGITS__}](?:[a-z{__DIGITS__}]+|$))*",[f.CasingType.kebab]:"[a-z][a-z{__DIGITS__}]*(?:-[a-z{__DIGITS__}]+)*",[f.CasingType.cobol]:"[A-Z][A-Z{__DIGITS__}]*(?:-[A-Z{__DIGITS__}]+)*",[f.CasingType.snake]:"[a-z][a-z{__DIGITS__}]*(?:_[a-z{__DIGITS__}]+)*",[f.CasingType.macro]:"[A-Z][A-Z{__DIGITS__}]*(?:_[A-Z{__DIGITS__}]+)*"};e.default=(0,n.createRulesetFunction)({input:{type:"string",minLength:1},options:c.optionSchemas.casing},(function(l,h){if(l.length!==1||h.separator===void 0||h.separator.allowLeading!==!0||l!==h.separator.char)return d(t[h.type],h).test(l)?void 0:[{message:`must be ${h.type} case`}]}));const d=(l,h)=>{const u=h.disallowDigits!==!0,j=l.replace(/\{__DIGITS__\}/g,u?"0-9":"");if(h.separator===void 0)return new RegExp(`^${j}$`);const b=`[${(0,i.escapeRegExp)(h.separator.char)}]`,O=h.separator.allowLeading===!0?`${b}?`:"";return new RegExp(`^${O}${j}(?:${b}${j})*$`)}},31181:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});const i=r(23859),n=r(9251);e.default=(0,i.createRulesetFunction)({input:null,options:n.optionSchemas.defined},(function(c){if(c===void 0)return[{message:'#{{print("property")}}must be defined'}]}))},18315:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});const i=r(23859),n=r(95955),c=r(9251);e.default=(0,i.createRulesetFunction)({input:{type:["string","number","null","boolean"]},options:c.optionSchemas.enumeration},(function(f,{values:t}){if(!t.includes(f))return[{message:`#{{print("value")}} must be equal to one of the allowed values: ${t.map(n.printValue).join(", ")}`}]}))},53547:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});const i=r(23859),n=r(9251);e.default=(0,i.createRulesetFunction)({input:null,options:n.optionSchemas.falsy},(function(c){if(c)return[{message:'#{{print("property")}}must be falsy'}]}))},69248:(E,e,r)=>{e.fK=e.vN=e.wQ=e.T1=void 0;const i=r(69371),n=((0,i.__importDefault)(r(40456)),(0,i.__importDefault)(r(97685)),(0,i.__importDefault)(r(31181)),(0,i.__importDefault)(r(18315)),(0,i.__importDefault)(r(53547)),(0,i.__importDefault)(r(54782)),(0,i.__importDefault)(r(41146)));Object.defineProperty(e,"T1",{enumerable:!0,get:function(){return n.default}});const c=(0,i.__importDefault)(r(95818));Object.defineProperty(e,"wQ",{enumerable:!0,get:function(){return c.default}});const f=(0,i.__importDefault)(r(11214));Object.defineProperty(e,"vN",{enumerable:!0,get:function(){return f.default}}),(0,i.__importDefault)(r(60928));const t=(0,i.__importDefault)(r(67884));Object.defineProperty(e,"fK",{enumerable:!0,get:function(){return t.default}}),(0,i.__importDefault)(r(6073))},54782:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});const i=r(23859),n=r(95955),c=r(46734),f=r(9251);e.default=(0,i.createRulesetFunction)({input:{type:["array","object","string","number"]},options:f.optionSchemas.length},(function(t,d){let l,h;return l=(0,c.isPlainObject)(t)?Object.keys(t).length:Array.isArray(t)?t.length:typeof t=="number"?t:t.length,"min"in d&&l<d.min&&(h=[{message:`#{{print("property")}}must be longer than ${(0,n.printValue)(d.min)}`}]),"max"in d&&l>d.max&&(h??(h=[])).push({message:`#{{print("property")}}must be shorter than ${(0,n.printValue)(d.max)}`}),h}))},9251:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.optionSchemas=void 0;const i=r(92805);e.optionSchemas={alphabetical:{type:["object","null"],properties:{keyedBy:{type:"string",description:"The key to sort an object by."}},additionalProperties:!1,errorMessage:{type:'"alphabetical" function has invalid options specified. Example valid options: null (no options), { "keyedBy": "my-key" }'}},casing:{required:["type"],type:"object",properties:{type:{type:"string",enum:Object.values(i.CasingType),errorMessage:`"casing" function and its "type" option accept the following values: ${Object.values(i.CasingType).join(", ")}`,description:"The casing type to match against."},disallowDigits:{type:"boolean",default:!1,description:"If not true, digits are allowed."},separator:{type:"object",required:["char"],additionalProperties:!1,properties:{char:{type:"string",maxLength:1,errorMessage:'"casing" function and its "separator.char" option accepts only char, i.e. "I" or "/"',description:"The additional char to separate groups of words."},allowLeading:{type:"boolean",description:"Can the group separator char be used at the first char?"}}}},additionalProperties:!1,errorMessage:{type:'"casing" function has invalid options specified. Example valid options: { "type": "camel" }, { "type": "pascal", "disallowDigits": true }'}},defined:null,enumeration:{type:"object",additionalProperties:!1,properties:{values:{type:"array",items:{type:["string","number","null","boolean"]},errorMessage:'"enumeration" and its "values" option support only arrays of primitive values, i.e. ["Berlin", "London", "Paris"]',description:"An array of possible values."}},required:["values"],errorMessage:{type:'"enumeration" function has invalid options specified. Example valid options: { "values": ["Berlin", "London", "Paris"] }, { "values": [2, 3, 5, 8, 13, 21] }'}},falsy:null,length:{type:"object",properties:{min:{type:"number",description:"The minimum length to match."},max:{type:"number",description:"The maximum length to match."}},minProperties:1,additionalProperties:!1,errorMessage:{type:'"length" function has invalid options specified. Example valid options: { "min": 2 }, { "max": 5 }, { "min": 0, "max": 10 }'}},pattern:{type:"object",additionalProperties:!1,properties:{match:{anyOf:[{type:"string"},{type:"object",properties:{exec:{},test:{},flags:{type:"string"}},required:["test","flags"],"x-internal":!0}],errorMessage:'"pattern" function and its "match" option must be string or RegExp instance',description:"If provided, value must match this regex."},notMatch:{anyOf:[{type:"string"},{type:"object",properties:{exec:{},test:{},flags:{type:"string"}},required:["test","flags"],"x-internal":!0}],errorMessage:'"pattern" function and its "notMatch" option must be string or RegExp instance',description:"If provided, value must _not_ match this regex."}},minProperties:1,errorMessage:{type:'"pattern" function has invalid options specified. Example valid options: { "match": "^Stoplight" }, { "notMatch": "Swagger" }, { "match": "Stoplight", "notMatch": "Swagger" }',minProperties:'"pattern" function has invalid options specified. Example valid options: { "match": "^Stoplight" }, { "notMatch": "Swagger" }, { "match": "Stoplight", "notMatch": "Swagger" }'}},truthy:null,undefined:null,schema:{additionalProperties:!1,properties:{schema:{type:"object",description:"Any valid JSON Schema document."},dialect:{enum:["auto","draft4","draft6","draft7","draft2019-09","draft2020-12"],default:"auto",description:"The JSON Schema draft used by function."},allErrors:{type:"boolean",default:!1,description:"Returns all errors when true; otherwise only returns the first error."},prepareResults:{"x-internal":!0}},required:["schema"],type:"object",errorMessage:{type:'"schema" function has invalid options specified. Example valid options: { "schema": { /* any JSON Schema can be defined here */ } , { "schema": { "type": "object" }, "dialect": "auto" }'}},unreferencedReusableObject:{type:"object",properties:{reusableObjectsLocation:{type:"string",format:"json-pointer-uri-fragment",errorMessage:'"unreferencedReusableObject" and its "reusableObjectsLocation" option support only valid JSON Pointer fragments, i.e. "#", "#/foo", "#/paths/~1user"',description:"A local json pointer to the document member holding the reusable objects (eg. #/definitions for an OAS2 document, #/components/schemas for an OAS3 document)."}},additionalProperties:!1,required:["reusableObjectsLocation"],errorMessage:{type:'"unreferencedReusableObject" function has invalid options specified. Example valid options: { "reusableObjectsLocation": "#/components/schemas" }, { "reusableObjectsLocation": "#/$defs" }',required:'"unreferencedReusableObject" function is missing "reusableObjectsLocation" option. Example valid options: { "reusableObjectsLocation": "#/components/schemas" }, { "reusableObjectsLocation": "#/$defs" }'}},xor:{type:"object",properties:{properties:{type:"array",items:{type:"string"},minItems:2,errorMessage:'"xor" and its "properties" option require at least 2-item tuples, i.e. ["id", "name"]',description:"The properties to check."}},additionalProperties:!1,required:["properties"],errorMessage:{type:'"xor" function has invalid options specified. Example valid options: { "properties": ["id", "name"] }, { "properties": ["country", "street"] }'}}}},41146:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});const i=r(23859),n=r(95955),c=r(9251),f=/^\/(.+)\/([a-z]*)$/,t=new Map;function d(l){const h=t.get(l);if(h!==void 0)return h.lastIndex=0,h;const u=(function(j){const b=f.exec(j);return b!==null?new RegExp(b[1],b[2]):new RegExp(j)})(l);return t.set(l,u),u}e.default=(0,i.createRulesetFunction)({input:{type:"string"},options:c.optionSchemas.pattern},(function(l,h){let u;return"match"in h&&(d(h.match).test(l)||(u=[{message:`#{{print("value")}} must match the pattern ${(0,n.printValue)(h.match)}`}])),"notMatch"in h&&d(h.notMatch).test(l)&&(u??(u=[])).push({message:`#{{print("value")}} must not match the pattern ${(0,n.printValue)(h.notMatch)}`}),u}))},79097:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createAjvInstances=void 0;const i=r(69371),n=(0,i.__importDefault)(r(11601)),c=(0,i.__importDefault)(r(88856)),f=(0,i.__importDefault)(r(88728)),t=(0,i.__importDefault)(r(33467)),d=(0,i.__importDefault)(r(74421)),l=(0,i.__importDefault)(r(67156)),h=(0,i.__importStar)(r(26443)),u=(0,i.__importStar)(r(33978)),j={warn(...x){const _=x[0];if(typeof _=="string"){if(_.startsWith("unknown format"))return;console.warn(...x)}},log:console.log,error:console.error};function b(x,_){const g=new x({allErrors:_,meta:!0,messages:!0,strict:!1,allowUnionTypes:!0,logger:j,unicodeRegExp:!1});return(0,d.default)(g),_&&(0,l.default)(g),x===n.default&&(g.addSchema(u),g.addSchema(h)),g}function O(x){let _,g;return{get default(){return _!=null||(_=b(x,!1)),_},get allErrors(){return g!=null||(g=b(x,!0)),g}}}e.createAjvInstances=function(){const x={auto:O(n.default),draft4:O(t.default),"draft2019-09":O(c.default),"draft2020-12":O(f.default)},_=new WeakMap;return function(g,S,R){var q,D,N,w;const T=((q=x[S])!==null&&q!==void 0?q:x.auto)[R?"allErrors":"default"],z=g.$id;if(typeof z=="string")return(D=T.getSchema(z))!==null&&D!==void 0?D:T.compile(g);{const J=(N=_.get(T))!==null&&N!==void 0?N:_.set(T,new WeakMap).get(T);return(w=J.get(g))!==null&&w!==void 0?w:J.set(g,T.compile(g)).get(g)}}}},95818:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});const i=r(69371),n=(0,i.__importDefault)(r(58883)),c=r(67423),f=r(79097),t=(0,i.__importDefault)(r(85748)),d=r(23859),l=r(45250),h=r(9251),u=new WeakMap;e.default=(0,d.createRulesetFunction)({input:null,options:h.optionSchemas.schema},(function(j,b,{path:O,rule:x,documentInventory:_}){var g,S,R;if(j===void 0)return[{path:O,message:'#{{print("property")}}must exist'}];const q=(g=u.get(_))!==null&&g!==void 0?g:u.set(_,(0,f.createAjvInstances)()).get(_),D=[],{allErrors:N=!1,schema:w}=b;try{const T=q(w,(S=b.dialect===void 0||b.dialect==="auto"?(0,c.detectDialect)(w):b==null?void 0:b.dialect)!==null&&S!==void 0?S:"draft7",N);(T==null?void 0:T(j))===!1&&Array.isArray(T.errors)&&((R=b.prepareResults)===null||R===void 0||R.call(b,T.errors),D.push(...(0,n.default)(w,T.errors,{propertyPath:O,targetValue:j}).map((({suggestion:z,error:J,path:F})=>({message:z!==void 0?`${J}. ${z}`:J,path:[...O,...F!==""?F.replace(/^\//,"").split("/"):[]]})))))}catch(T){if(!(0,l.isError)(T))throw new Error("Unexpected error");x!=null&&x.resolved&&T instanceof t.default||D.push({message:T.message,path:O})}return D}))},11214:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});const i=r(23859),n=r(9251);e.default=(0,i.createRulesetFunction)({input:null,options:n.optionSchemas.truthy},(function(c){if(!c)return[{message:'#{{print("property")}}must be truthy'}]}))},92805:(E,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.CasingType=void 0,(r=e.CasingType||(e.CasingType={})).flat="flat",r.camel="camel",r.pascal="pascal",r.kebab="kebab",r.cobol="cobol",r.snake="snake",r.macro="macro"},60928:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});const i=r(23859),n=r(9251);e.default=(0,i.createRulesetFunction)({input:null,options:n.optionSchemas.undefined},(function(c){if(c!==void 0)return[{message:'#{{print("property")}}must be undefined'}]}))},67884:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});const i=r(23859),n=r(95955),c=r(46734),f=r(9251);e.default=(0,i.createRulesetFunction)({input:{type:"object"},options:f.optionSchemas.unreferencedReusableObject},(function(t,d,{document:l,documentInventory:h}){var u;const j=h.graph;if(j===null)throw new Error("unreferencedReusableObject requires dependency graph");const b=(u=l.source)!==null&&u!==void 0?u:"",O=Object.keys(t).map((_=>`${b}${d.reusableObjectsLocation}/${_}`)),x=new Set(j.overallOrder().map((_=>(0,c.decodePointer)(_))));return O.filter((_=>!x.has(_))).map((_=>({message:"Potential orphaned reusable object has been detected",path:(0,n.safePointerToPath)(_)})))}))},6073:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});const i=r(23859),n=r(95955),c=r(9251);e.default=(0,i.createRulesetFunction)({input:{type:"object"},options:c.optionSchemas.xor},(function(f,{properties:t}){const d=[];if(Object.keys(f).filter((l=>t.includes(l))).length!==1){const l=t.map((j=>(0,n.printValue)(j))),h=l.pop();let u=l.join(", ")+(h!=null?` and ${h}`:"");u+=" must not be both defined or both undefined",d.push({message:u})}return d}))},63083:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});const i=r(39862);(0,i.__exportStar)(r(50973),e),(0,i.__exportStar)(r(72708),e),(0,i.__exportStar)(r(51562),e)},50973:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Json=e.parseJson=void 0;const i=r(46734);e.parseJson=n=>(0,i.parseWithPointers)(n,{ignoreDuplicateKeys:!1,preserveKeyOrder:!0}),e.Json={parse:e.parseJson,getLocationForJsonPath:i.getLocationForJsonPath,trapAccess:i.trapAccess}},51562:(E,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},72708:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Yaml=e.parseYaml=void 0;const i=r(3740);e.parseYaml=n=>(0,i.parseWithPointers)(n,{ignoreDuplicateKeys:!1,mergeKeys:!0,preserveKeyOrder:!0,attachComments:!1}),e.Yaml={parse:e.parseYaml,getLocationForJsonPath:function(n,c){return(0,i.getLocationForJsonPath)(n,c)},trapAccess:i.trapAccess}},88601:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createHttpAndFileResolver=e.ResolverDepGraph=e.Resolver=e.httpAndFileResolver=void 0;const i=r(2230),n=r(54668),c=r(16586);Object.defineProperty(e,"Resolver",{enumerable:!0,get:function(){return c.Resolver}});const f=r(95955),t=r(30524);function d(l){const h=(0,n.createResolveHttp)({...f.DEFAULT_REQUEST_OPTIONS,...l});return new c.Resolver({resolvers:{https:{resolve:h},http:{resolve:h},file:{resolve:n.resolveFile}}})}(0,i.__exportStar)(r(7944),e),e.httpAndFileResolver=d(),e.ResolverDepGraph=t.DepGraph,e.createHttpAndFileResolver=d},7944:(E,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},86663:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_REQUEST_OPTIONS=void 0;const i=(0,r(54078).__importDefault)(r(98203));e.DEFAULT_REQUEST_OPTIONS={},e.default=async(n,c={})=>(0,i.default)(n,{...c,...e.DEFAULT_REQUEST_OPTIONS})},95955:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_REQUEST_OPTIONS=e.fetch=void 0;const i=r(54078);(0,i.__exportStar)(r(14205),e);var n=r(86663);Object.defineProperty(e,"fetch",{enumerable:!0,get:function(){return(0,i.__importDefault)(n).default}}),Object.defineProperty(e,"DEFAULT_REQUEST_OPTIONS",{enumerable:!0,get:function(){return n.DEFAULT_REQUEST_OPTIONS}}),(0,i.__exportStar)(r(65744),e)},65744:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.readParsable=e.readFile=void 0;const i=r(54078),n=r(98136),c=(0,i.__importDefault)(r(67083)),f=(0,i.__importStar)(r(18248)),t=r(45250),d=(0,i.__importDefault)(r(86663)),l=r(92918);async function h(u,j){if((0,n.isURL)(u)){let b,O=null;try{const x={};if(x.agent=j.agent,j.timeout!==void 0){const _=new c.default;O=setTimeout((()=>{_.abort()}),j.timeout),x.signal=_.signal}if(b=await(0,d.default)(u,x),!b.ok)throw new Error(b.statusText);return await b.text()}catch(x){throw(0,t.isError)(x)&&x.name==="AbortError"?new Error("Timeout"):x}finally{O!==null&&clearTimeout(O)}}else try{return await new Promise(((b,O)=>{f.readFile(u,j.encoding,((x,_)=>{x!==null?O(x):b(_)}))}))}catch(b){throw new Error(`Could not read ${u}: ${(0,l.printError)(b)}`)}}e.readFile=h,e.readParsable=async function(u,j){try{return await h(u,j)}catch(b){throw new Error(`Could not parse ${u}: ${(0,l.printError)(b)}`)}}},39090:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.decodeSegmentFragment=void 0;const i=r(46734);e.decodeSegmentFragment=function(n){return typeof n!="string"?String(n):(0,i.decodePointerFragment)(n)}},14205:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});const i=r(54078);(0,i.__exportStar)(r(39090),e),(0,i.__exportStar)(r(92918),e),(0,i.__exportStar)(r(73389),e),(0,i.__exportStar)(r(24569),e),(0,i.__exportStar)(r(6291),e)},92918:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.printError=void 0;const i=r(45250);e.printError=function(n){return(0,i.isError)(n)?n.message:"unknown error"}},73389:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.printPath=e.PrintStyle=void 0;const i=r(46734);var n;(function(f){f.Dot="dot",f.Pointer="pointer",f.EscapedPointer="escapedPointer"})(n=e.PrintStyle||(e.PrintStyle={}));const c=f=>typeof f=="number"?f:(0,i.decodePointerFragment)(f);e.printPath=(f,t)=>{switch(t){case n.Dot:return(0,i.decodePointerFragment)((d=>d.reduce(((l,h,u)=>{var j;return`${l}${(j=(b=>{return typeof b=="number"?`[${b}]`:b.length===0?"['']":/\s/.test(b)?`['${b}']`:typeof(O=b)!="number"&&Number.isNaN(Number(O))?null:`[${b}]`;var O})(h))!==null&&j!==void 0?j:`${u===0?"":"."}${h}`}`}),""))(f));case n.Pointer:return f.length===0?"#":`#/${(0,i.decodePointerFragment)(f.join("/"))}`;case n.EscapedPointer:return(0,i.pathToPointer)(f.map(c));default:return String(f)}}},24569:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.printValue=void 0;const i=r(45250),n=r(46734);e.printValue=function(c){return c===void 0?"undefined":(0,i.isObject)(c)?Array.isArray(c)?"Array[]":c instanceof RegExp?String(c.source):!(0,n.isPlainObject)(c)&&"constructor"in c&&typeof c.constructor.name=="string"?c.constructor.name:"Object{}":JSON.stringify(c)}},6291:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getClosestJsonPath=e.safePointerToPath=e.getEndRef=e.traverseObjUntilRef=e.isAbsoluteRef=e.startsWithProtocol=void 0;const i=r(46734),n=r(98136),c=r(45250),f=/^[a-z]+:\/\//i;e.startsWithProtocol=t=>f.test(t),e.isAbsoluteRef=t=>(0,n.isAbsolute)(t)||(0,e.startsWithProtocol)(t),e.traverseObjUntilRef=(t,d)=>{let l=t;for(const h of d.slice()){if(!(0,c.isObject)(l))throw new TypeError("Segment is not a part of the object");if(!(h in l)){if((0,i.hasRef)(l))return l.$ref;throw new Error("Segment is not a part of the object")}l=l[h],d.shift()}return(0,i.isPlainObject)(l)&&(0,i.hasRef)(l)&&Object.keys(l).length===1?l.$ref:null},e.getEndRef=(t,d)=>{for(;d in t;)d=t[d];return d},e.safePointerToPath=t=>{const d=(0,i.extractPointerFromRef)(t);return d!==null?(0,i.pointerToPath)(d):[]},e.getClosestJsonPath=(t,d)=>{const l=[];if(!(0,c.isObject)(t))return l;let h=t;for(const u of d){if(!(0,c.isObject)(h)||!(u in h))break;l.push(u),h=h[u]}return l}},29228:(E,e)=>{function r(i){return i==null}Object.defineProperty(e,"__esModule",{value:!0}),e.isNothing=r,e.isObject=function(i){return typeof i=="object"&&i!==null},e.toArray=function(i){return Array.isArray(i)?i:r(i)?[]:[i]},e.extend=function(i,n){var c,f,t,d;if(n)for(c=0,f=(d=Object.keys(n)).length;c<f;c+=1)i[t=d[c]]=n[t];return i},e.repeat=function(i,n){var c,f="";for(c=0;c<n;c+=1)f+=i;return f},e.isNegativeZero=function(i){return i===0&&Number.NEGATIVE_INFINITY===1/i}},17128:(E,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});var i=r(29228),n=r(94716),c=r(80406),f=r(23102),t=Object.prototype.toString,d=Object.prototype.hasOwnProperty,l=9,h=10,u=13,j=32,b=33,O=34,x=35,_=37,g=38,S=39,R=42,q=44,D=45,N=58,w=61,T=62,z=63,J=64,F=91,H=93,K=96,Y=123,ee=124,Z=125,A={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},V=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Q(he){var ke,Ae,Qe;if(ke=he.toString(16).toUpperCase(),he<=255)Ae="x",Qe=2;else if(he<=65535)Ae="u",Qe=4;else{if(!(he<=4294967295))throw new n("code point within a string may not be greater than 0xFFFFFFFF");Ae="U",Qe=8}return"\\"+Ae+i.repeat("0",Qe-ke.length)+ke}function te(he){this.schema=he.schema||c,this.indent=Math.max(1,he.indent||2),this.noArrayIndent=he.noArrayIndent||!1,this.skipInvalid=he.skipInvalid||!1,this.flowLevel=i.isNothing(he.flowLevel)?-1:he.flowLevel,this.styleMap=(function(ke,Ae){var Qe,ct,le,ve,Te,be,Ce;if(Ae===null)return{};for(Qe={},le=0,ve=(ct=Object.keys(Ae)).length;le<ve;le+=1)Te=ct[le],be=String(Ae[Te]),Te.slice(0,2)==="!!"&&(Te="tag:yaml.org,2002:"+Te.slice(2)),(Ce=ke.compiledTypeMap.fallback[Te])&&d.call(Ce.styleAliases,be)&&(be=Ce.styleAliases[be]),Qe[Te]=be;return Qe})(this.schema,he.styles||null),this.sortKeys=he.sortKeys||!1,this.lineWidth=he.lineWidth||80,this.noRefs=he.noRefs||!1,this.noCompatMode=he.noCompatMode||!1,this.condenseFlow=he.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.comments=he.comments||{},this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function W(he,ke){for(var Ae,Qe=i.repeat(" ",ke),ct=0,le=-1,ve="",Te=he.length;ct<Te;)(le=he.indexOf(`
|